public class ModifyFieldCommand extends CategoryLineCommand
Modifier and Type | Field and Description |
---|---|
protected String |
currentValue
Field actual value.
|
protected String |
fieldName
Field index to to command.
|
protected String |
newValue
Field new value.
|
category, lineNumber
commandUUID, comment
Constructor and Description |
---|
ModifyFieldCommand() |
Modifier and Type | Method and Description |
---|---|
void |
doCommand(Project project,
AbstractDataContainer container)
Do command on project.
|
void |
fromStringRepresentation(String representation)
Init command from string representation.
|
Object |
getCurrentValue() |
String |
getDescription(Project project,
AbstractDataContainer container)
Return human readable string for ui display (used in selection replay,
and undo redo commands).
|
String |
getFieldName() |
String |
getLogString(Project project,
AbstractDataContainer container)
Return human readable string for log output.
|
Object |
getNewValue() |
protected String |
getRealFieldName(AbstractDataContainer container)
Look for real field name.
|
void |
setCurrentValue(String currentValue) |
void |
setFieldName(String fieldName) |
void |
setNewValue(String newValue) |
String |
toString() |
String |
toStringRepresentation()
Get command argument string representation.
|
void |
undoCommand(Project project,
AbstractDataContainer container)
Undo command on project.
|
getCategory, getLineNumber, setCategory, setLineNumber
getCommandUUID, getComment, setCommandUUID, setComment
protected String fieldName
protected String currentValue
protected String newValue
public String getFieldName()
public void setFieldName(String fieldName)
public Object getCurrentValue()
public void setCurrentValue(String currentValue)
public Object getNewValue()
public void setNewValue(String newValue)
public void doCommand(Project project, AbstractDataContainer container) throws CoserBusinessException
Command
doCommand
in class Command
project
- projectcontainer
- containerCoserBusinessException
public void undoCommand(Project project, AbstractDataContainer container) throws CoserBusinessException
Command
undoCommand
in class Command
project
- projectcontainer
- containerCoserBusinessException
public String toStringRepresentation()
Command
toStringRepresentation
in class Command
public void fromStringRepresentation(String representation)
Command
fromStringRepresentation
in class Command
representation
- string command representationpublic String getLogString(Project project, AbstractDataContainer container)
Command
getLogString
in class Command
project
- used to convert species codecontainer
- rarement utile, mais dans certains cas, sert a avoir les
vrais valeur de champs au lieu des noms techniquespublic String getDescription(Project project, AbstractDataContainer container)
Command
getDescription
in class Command
project
- used to convert species codecontainer
- rarement utile, mais dans certains cas, sert a avoir les
vrais valeur de champs au lieu des noms techniquesprotected String getRealFieldName(AbstractDataContainer container)
container
- le container pour lire les headers csvCopyright © 2010–2015 Ifremer. All rights reserved.