org.openstreetmap.josm.command
Class PseudoCommand

java.lang.Object
  extended by org.openstreetmap.josm.command.PseudoCommand
Direct Known Subclasses:
Command

public abstract class PseudoCommand
extends java.lang.Object

PseudoCommand is a reduced form of a command. It can be presented in a tree view as subcommand of real commands but it is just an empty shell and can not be executed or undone.


Constructor Summary
PseudoCommand()
           
 
Method Summary
 java.util.Collection<PseudoCommand> getChildren()
          Returns the subcommands of this command.
 javax.swing.Icon getDescriptionIcon()
          Provides a descriptive icon of this command.
abstract  java.lang.String getDescriptionText()
          Provides a description text representing this command.
abstract  java.util.Collection<? extends OsmPrimitive> getParticipatingPrimitives()
          Return the primitives that take part in this command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PseudoCommand

public PseudoCommand()
Method Detail

getDescriptionText

public abstract java.lang.String getDescriptionText()
Provides a description text representing this command.


getDescriptionIcon

public javax.swing.Icon getDescriptionIcon()
Provides a descriptive icon of this command.


getParticipatingPrimitives

public abstract java.util.Collection<? extends OsmPrimitive> getParticipatingPrimitives()
Return the primitives that take part in this command.


getChildren

public java.util.Collection<PseudoCommand> getChildren()
Returns the subcommands of this command. Override for subclasses that have child commands.

Returns:
the subcommands, null if there are no child commands


JOSM