Package org.openstreetmap.josm.command
Interface PseudoCommand
-
- All Known Implementing Classes:
AbstractNodesCommand,AddCommand,AddPrimitivesCommand,ChangeCommand,ChangeMembersCommand,ChangeNodesCommand,ChangePropertyCommand,ChangePropertyCommand.OsmPseudoCommand,ChangePropertyKeyCommand,ChangePropertyKeyCommand.SinglePrimitivePseudoCommand,ChangeRelationMemberRoleCommand,Command,ConflictAddCommand,ConflictResolveCommand,CoordinateConflictResolveCommand,DeleteCommand,DeleteCommand.DeleteChildCommand,DeletedStateConflictResolveCommand,JoinAreasAction.JoinAreaCommand,ModifiedConflictResolveCommand,MoveCommand,PurgeCommand,RelationMemberConflictResolverCommand,RemoveNodesCommand,RotateCommand,ScaleCommand,SelectCommand,SequenceCommand,SplitWayCommand,TagConflictResolveCommand,TransformNodesCommand,ValidatorDialog.AutofixCommand,VersionConflictResolveCommand,WayNodesConflictResolverCommand
public interface PseudoCommand
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.- Since:
- 3262 (creation), 10599 (functional interface)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.Collection<PseudoCommand>getChildren()Returns the subcommands of this command.default javax.swing.IcongetDescriptionIcon()Provides a descriptive icon of this command.java.lang.StringgetDescriptionText()Provides a description text representing this command.java.util.Collection<? extends OsmPrimitive>getParticipatingPrimitives()Return the primitives that take part in this command.
-
-
-
Method Detail
-
getDescriptionText
java.lang.String getDescriptionText()
Provides a description text representing this command.- Returns:
- description text representing this command
-
getDescriptionIcon
default javax.swing.Icon getDescriptionIcon()
Provides a descriptive icon of this command.- Returns:
- descriptive icon of this command
-
getParticipatingPrimitives
java.util.Collection<? extends OsmPrimitive> getParticipatingPrimitives()
Return the primitives that take part in this command.- Returns:
- primitives that take part in this command
-
getChildren
default 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
-
-