com.sas.commands.dataselectors
Class ShowDetailSelectorCommand

com.sas.commands.dataselectors.ShowDetailSelectorCommand
All Implemented Interfaces:
CommandSupportedInterface, CancelInterface, ContentsChangedInterface, DataSelectorCommandInterface, DynamicAttributeCommandInterface, PendingCommandInterface, BaseEntityInterface, BaseEntityValueInterface, EntityKeyInterface, com.sas.lang.StringDataInterface, com.sas.PublicClonable, com.sas.util.Command, com.sas.util.SimpleCommand, java.lang.Cloneable, java.rmi.Remote

public class ShowDetailSelectorCommand
implements CommandSupportedInterface


Field Summary
protected  boolean contentsChanged
           
protected  java.util.HashMap eventInfo
           
protected  java.lang.Object eventSource
           
protected  boolean swing
           
 
Fields inherited from class com.sas.commands.dataselectors.BaseSelectorCommand
actionClass, CANCEL_MODE, COMMIT_MODE, complete, modal, mode, model, PROCESS_MODE, selector, selectorModel, SHOW_MODE
 
Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface
COMMAND_NAME_PREFIX
 
Constructor Summary
ShowDetailSelectorCommand()
          Default constructor
ShowDetailSelectorCommand(java.lang.String name)
          Constructor that accepts a command name.
ShowDetailSelectorCommand(java.lang.String name, boolean swing)
          Constructor that accepts a command name.
ShowDetailSelectorCommand(java.lang.String name, java.lang.String actionClass)
          Constructor that accepts a command name and an action class type.
 
Method Summary
protected  void commit(java.lang.Object o)
           
 java.util.HashMap getEventInfo()
          Returns a HashMap with information about the pending ContentsChangedEvent or null if no event is pending.
 java.lang.Object getEventSource()
          Returns the source of a pending ContentsChangedEvent event.
 TupleElementInterface[] getTupleElements()
           
 boolean isContentsChanged()
          Returns true if a ContentsChangedEvent should be generated, false otherwise.
 boolean isSupported(ActionSupportFilter actionFilter)
           Returns a boolean indicating whether the command is supported for the given area as specified by the current area information encapsulated in the ActionSupportFilter.
 boolean isSwing()
           
 void setEventSource(java.lang.Object eventSource)
           
 void setSwing(boolean swing)
           
 void setTupleElements(TupleElementInterface[] te)
           
protected  void show(java.lang.Object o)
           
 
Methods inherited from class com.sas.commands.dataselectors.BaseSelectorCommand
cancel, cancel, closeSelector, execute, getMode, getModel, getSelector, getSelectorModel, isComplete, isModal, process, setComplete, setModal, setMode, setModel, setSelector, setSelectorModel
 
Methods inherited from class com.sas.commands.BaseCommand
getLocale, getName, getNextCommandName, getText, isExecutable, isUndoable, setLocale, setName, setText, undo
 
Methods inherited from class com.sas.entities.BaseEntity
clone, containsAttributeNamed, equals, equals, getAttribute, getAttribute, getAttributeCount, getAttributes, getEntityKey, getPropertyDescriptors, getStringAttribute, listAttributeNames, removeAllAttributes, removeAttribute, reset, sameEntity, setAttribute, setAttributes, setEntityKey, toString
 
Methods inherited from interface com.sas.entities.BaseEntityValueInterface
getAttribute, setAttribute
 
Methods inherited from interface com.sas.util.Command
clone
 

Field Detail

swing

protected boolean swing

contentsChanged

protected boolean contentsChanged

eventInfo

protected java.util.HashMap eventInfo

eventSource

protected java.lang.Object eventSource
Constructor Detail

ShowDetailSelectorCommand

public ShowDetailSelectorCommand()
Default constructor


ShowDetailSelectorCommand

public ShowDetailSelectorCommand(java.lang.String name)
Constructor that accepts a command name.

Parameters:
name - the name for this command

ShowDetailSelectorCommand

public ShowDetailSelectorCommand(java.lang.String name,
                                 boolean swing)
Constructor that accepts a command name.

Parameters:
name - the name for this command

ShowDetailSelectorCommand

public ShowDetailSelectorCommand(java.lang.String name,
                                 java.lang.String actionClass)
Constructor that accepts a command name and an action class type.

Parameters:
name - the name for this command
actionClass - the class name of the associated action
Method Detail

show

protected void show(java.lang.Object o)
Overrides:
show in class BaseSelectorCommand

commit

protected void commit(java.lang.Object o)
               throws java.io.IOException
Overrides:
commit in class BaseSelectorCommand
Throws:
java.io.IOException

isSupported

public boolean isSupported(ActionSupportFilter actionFilter)
Description copied from interface: CommandSupportedInterface

Returns a boolean indicating whether the command is supported for the given area as specified by the current area information encapsulated in the ActionSupportFilter.

Specified by:
isSupported in interface CommandSupportedInterface
Parameters:
actionFilter - The ActionSupportFilter that encapsulates all the necessary information to describe the current area.
Returns:
a boolean indicating whether the command is supported
See Also:
BaseAction.setReturnStatus(int)

getTupleElements

public TupleElementInterface[] getTupleElements()

setTupleElements

public void setTupleElements(TupleElementInterface[] te)

isContentsChanged

public boolean isContentsChanged()
Description copied from class: BaseSelectorCommand
Returns true if a ContentsChangedEvent should be generated, false otherwise.

Specified by:
isContentsChanged in interface ContentsChangedInterface
Overrides:
isContentsChanged in class BaseSelectorCommand
Returns:
true if a ContentsChangedEvent should be generated, false otherwise.

getEventInfo

public java.util.HashMap getEventInfo()
Description copied from class: BaseSelectorCommand
Returns a HashMap with information about the pending ContentsChangedEvent or null if no event is pending.

Specified by:
getEventInfo in interface ContentsChangedInterface
Overrides:
getEventInfo in class BaseSelectorCommand
Returns:
event information

getEventSource

public java.lang.Object getEventSource()
Description copied from class: BaseSelectorCommand
Returns the source of a pending ContentsChangedEvent event. The source will be null if no event is pending.

Specified by:
getEventSource in interface ContentsChangedInterface
Overrides:
getEventSource in class BaseSelectorCommand
Returns:
the source of the event

setEventSource

public void setEventSource(java.lang.Object eventSource)

setSwing

public void setSwing(boolean swing)

isSwing

public boolean isSwing()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.