com.levigo.util.swing.action
Interface SelfDescribingCommand

All Superinterfaces:
Command
All Known Implementing Classes:
RedoCommand, UndoCommand

public interface SelfDescribingCommand
extends Command

SelfDescribingCommands are commands which are able to provide a name and a description for themselves. Name and description may be dynamic.


Method Summary
 String getName()
          Provide the equivalent of the Action.NAME property for this command.
 String getShortDescription()
          Provide the equivalent of the Action.SHORT_DESCRIPTION property for this command.
 
Methods inherited from interface com.levigo.util.swing.action.Command
canExecute, execute, isAvailable, isSelected
 

Method Detail

getName

String getName()
Provide the equivalent of the Action.NAME property for this command. Implementors are allowed to return null from this method in order to signal a fallback to a non-dynamic name.

Returns:
the name

getShortDescription

String getShortDescription()
Provide the equivalent of the Action.SHORT_DESCRIPTION property for this command. Implementors are allowed to return null from this method in order to signal a fallback to a non-dynamic description.

Returns:
the description


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.