Package fr.ifremer.isisfish.ui.input
Class ChangeModel
java.lang.Object
fr.ifremer.isisfish.ui.input.ChangeModel
Cette classe est utilisé pour conservé un etat de changement
dans une UI, dans les cas ou les beans changent sur les validateurs et
que l'etat change du validateur est reset.
Elle permet aussi de se bind directement dessus (PCS);
Cela permet en gros d'agregger plusieurs validateurs.
- Version:
- $Revision$ Last update : $Date$ By : $Author$
- Author:
- chatellier
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
static final String
static final String
protected boolean
Iftrue
true,isChanged()
will always return true.protected PropertyChangeSupport
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) boolean
boolean
isValid()
void
void
removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) void
setChanged
(boolean changed) void
setStayChanged
(boolean stayChanged) void
setValid
(boolean valid)
-
Field Details
-
PROPERTY_CHANGED
- See Also:
-
PROPERTY_VALID
- See Also:
-
changed
protected boolean changed -
valid
protected boolean valid -
stayChanged
protected boolean stayChangedIftrue
true,isChanged()
will always return true. -
support
-
-
Constructor Details
-
ChangeModel
public ChangeModel()
-
-
Method Details
-
isChanged
public boolean isChanged() -
setChanged
public void setChanged(boolean changed) -
isValid
public boolean isValid() -
setValid
public void setValid(boolean valid) -
setStayChanged
public void setStayChanged(boolean stayChanged) -
addPropertyChangeListener
-
removePropertyChangeListener
-
addPropertyChangeListener
-
removePropertyChangeListener
-