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, lineNumbercommandUUID, 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, setLineNumbergetCommandUUID, getComment, setCommandUUID, setCommentprotected 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
CommanddoCommand in class Commandproject - projectcontainer - containerCoserBusinessExceptionpublic void undoCommand(Project project, AbstractDataContainer container) throws CoserBusinessException
CommandundoCommand in class Commandproject - projectcontainer - containerCoserBusinessExceptionpublic String toStringRepresentation()
CommandtoStringRepresentation in class Commandpublic void fromStringRepresentation(String representation)
CommandfromStringRepresentation in class Commandrepresentation - string command representationpublic String getLogString(Project project, AbstractDataContainer container)
CommandgetLogString in class Commandproject - 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)
CommandgetDescription in class Commandproject - 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.