public class OptionModel extends Object implements io.ultreia.java4all.config.ConfigOptionDef
| Modifier and Type | Field and Description |
|---|---|
protected io.ultreia.java4all.config.ConfigOptionDef |
def
la definition de l'option (venant de la config)
|
protected TableCellEditor |
editor
l'editeur utilise pour modifier graphiquement l'option
|
protected Object |
originalValue
la valeur non modifié de l'option
|
protected String |
propertyName
le nom de la propriété javaBean (peut etre null, si option sans support javaBean)
|
protected TableCellRenderer |
renderer
le renderer utilise pour afficher graphiquement l'option
|
protected boolean |
saved
un drapeau pour savoir si l'option a été sauvée
|
protected String |
shortLabel
Une description courte à utiliser à la place de la clef i18n.
|
protected boolean |
valid
un drapeau pour savoir si l'option est valide (n'est pas utilisé actuellement)
|
protected Object |
value
la valeur actuelle de l'option (peut être la valeur orignal si non modifée)
|
| Modifier | Constructor and Description |
|---|---|
protected |
OptionModel(io.ultreia.java4all.config.ConfigOptionDef def,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue() |
String |
getDescription() |
TableCellEditor |
getEditor() |
String |
getKey() |
Object |
getOriginalValue() |
String |
getPropertyName() |
TableCellRenderer |
getRenderer() |
String |
getShortLabel() |
Class<?> |
getType() |
Object |
getValue() |
void |
initValue(Object originalValue) |
boolean |
isArrayType() |
boolean |
isFinal() |
boolean |
isModified() |
boolean |
isSaved() |
boolean |
isTransient() |
boolean |
isValid() |
void |
setDefaultValue(String defaultValue) |
protected void |
setEditor(TableCellEditor editor) |
void |
setFinal(boolean isFinal) |
protected void |
setPropertyName(String propertyName) |
void |
setRenderer(TableCellRenderer renderer) |
void |
setSaved(boolean saved) |
void |
setShortLabel(String shortLabel) |
void |
setTransient(boolean isTransient) |
void |
setValid(boolean valid) |
void |
setValue(Object value) |
String |
toString(Object value)
Get a string value of the given
value considered as a value of
this option, means if option is array type, then we will decorate the
value as a array. |
protected final io.ultreia.java4all.config.ConfigOptionDef def
protected boolean valid
protected boolean saved
protected Object originalValue
protected Object value
protected String propertyName
protected String shortLabel
protected TableCellEditor editor
protected TableCellRenderer renderer
protected OptionModel(io.ultreia.java4all.config.ConfigOptionDef def,
Object value)
public String getShortLabel()
public void setShortLabel(String shortLabel)
public String getKey()
getKey in interface io.ultreia.java4all.config.ConfigOptionDefpublic Class<?> getType()
getType in interface io.ultreia.java4all.config.ConfigOptionDefpublic boolean isArrayType()
public String getDescription()
getDescription in interface io.ultreia.java4all.config.ConfigOptionDefpublic String getDefaultValue()
getDefaultValue in interface io.ultreia.java4all.config.ConfigOptionDefpublic boolean isTransient()
isTransient in interface io.ultreia.java4all.config.ConfigOptionDefpublic boolean isFinal()
isFinal in interface io.ultreia.java4all.config.ConfigOptionDefpublic Object getOriginalValue()
public Object getValue()
public void setDefaultValue(String defaultValue)
setDefaultValue in interface io.ultreia.java4all.config.ConfigOptionDefpublic void setTransient(boolean isTransient)
setTransient in interface io.ultreia.java4all.config.ConfigOptionDefpublic void setFinal(boolean isFinal)
setFinal in interface io.ultreia.java4all.config.ConfigOptionDefpublic void setValue(Object value)
public boolean isModified()
public boolean isValid()
public void setValid(boolean valid)
public boolean isSaved()
public void setSaved(boolean saved)
public void initValue(Object originalValue)
public String getPropertyName()
public TableCellEditor getEditor()
protected void setEditor(TableCellEditor editor)
public TableCellRenderer getRenderer()
public void setRenderer(TableCellRenderer renderer)
protected void setPropertyName(String propertyName)
Copyright © 2008–2018 Ultreia.io. All rights reserved.