|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.swing.editor.config.model.OptionModel
public class OptionModel
le modele d'une option de la configuration a editer.
| Field Summary | |
|---|---|
protected org.nuiton.util.ApplicationConfig.OptionDef |
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 boolean |
saved
un drapeau pour savoir si l'option a été sauvée |
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) |
| Constructor Summary | |
|---|---|
protected |
OptionModel(org.nuiton.util.ApplicationConfig.OptionDef def,
Object value)
|
| Method Summary | |
|---|---|
String |
getDefaultValue()
|
String |
getDescription()
|
TableCellEditor |
getEditor()
|
String |
getKey()
|
Object |
getOriginalValue()
|
String |
getPropertyName()
|
Class<?> |
getType()
|
Object |
getValue()
|
void |
initValue(Object originalValue)
|
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 |
setSaved(boolean saved)
|
void |
setTransient(boolean isTransient)
|
void |
setValid(boolean valid)
|
void |
setValue(Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.nuiton.util.ApplicationConfig.OptionDef def
protected boolean valid
protected boolean saved
protected Object originalValue
protected Object value
protected String propertyName
protected TableCellEditor editor
| Constructor Detail |
|---|
protected OptionModel(org.nuiton.util.ApplicationConfig.OptionDef def,
Object value)
| Method Detail |
|---|
public String getKey()
getKey in interface org.nuiton.util.ApplicationConfig.OptionDefpublic Class<?> getType()
getType in interface org.nuiton.util.ApplicationConfig.OptionDefpublic String getDescription()
getDescription in interface org.nuiton.util.ApplicationConfig.OptionDefpublic String getDefaultValue()
getDefaultValue in interface org.nuiton.util.ApplicationConfig.OptionDefpublic boolean isTransient()
isTransient in interface org.nuiton.util.ApplicationConfig.OptionDefpublic boolean isFinal()
isFinal in interface org.nuiton.util.ApplicationConfig.OptionDefpublic Object getOriginalValue()
public Object getValue()
public void setDefaultValue(String defaultValue)
setDefaultValue in interface org.nuiton.util.ApplicationConfig.OptionDefpublic void setTransient(boolean isTransient)
setTransient in interface org.nuiton.util.ApplicationConfig.OptionDefpublic void setFinal(boolean isFinal)
setFinal in interface org.nuiton.util.ApplicationConfig.OptionDefpublic 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)
protected void setPropertyName(String propertyName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||