|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.command.PseudoCommand
org.openstreetmap.josm.command.Command
org.openstreetmap.josm.command.ChangePropertyKeyCommand
public class ChangePropertyKeyCommand
Command that replaces the key of several objects
Field Summary | |
---|---|
private java.lang.String |
key
The key that is subject to change. |
private java.lang.String |
newKey
The mew key. |
private java.util.List<OsmPrimitive> |
objects
All primitives, that are affected with this command. |
Constructor Summary | |
---|---|
ChangePropertyKeyCommand(java.util.Collection<? extends OsmPrimitive> objects,
java.lang.String key,
java.lang.String newKey)
Constructor |
Method Summary | |
---|---|
boolean |
executeCommand()
Executes the command on the dataset. |
void |
fillModifiedData(java.util.Collection<OsmPrimitive> modified,
java.util.Collection<OsmPrimitive> deleted,
java.util.Collection<OsmPrimitive> added)
Fill in the changed data this command operates on. |
java.util.Collection<PseudoCommand> |
getChildren()
Returns the subcommands of this command. |
javax.swing.Icon |
getDescriptionIcon()
Provides a descriptive icon of this command. |
java.lang.String |
getDescriptionText()
Provides a description text representing this command. |
Methods inherited from class org.openstreetmap.josm.command.Command |
---|
checkAndConfirmOutlyingOperation, getLayer, getOrig, getParticipatingPrimitives, invalidBecauselayerRemoved, undoCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.List<OsmPrimitive> objects
private final java.lang.String key
private final java.lang.String newKey
Constructor Detail |
---|
public ChangePropertyKeyCommand(java.util.Collection<? extends OsmPrimitive> objects, java.lang.String key, java.lang.String newKey)
objects
- all objects subject to change replacementkey
- The key to replacenewKey
- the new value of the keyMethod Detail |
---|
public boolean executeCommand()
Command
executeCommand
in class Command
public void fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
Command
fillModifiedData
in class Command
modified
- The modified primitivesdeleted
- The deleted primitivesadded
- The added primitivespublic java.lang.String getDescriptionText()
PseudoCommand
getDescriptionText
in class PseudoCommand
public javax.swing.Icon getDescriptionIcon()
PseudoCommand
getDescriptionIcon
in class PseudoCommand
public java.util.Collection<PseudoCommand> getChildren()
PseudoCommand
getChildren
in class PseudoCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |