Package com.im.commons.ui.beans
Class DFCustomizerSupport
- java.lang.Object
-
- com.im.commons.ui.beans.DFCustomizerSupport
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.util.EventListener
public class DFCustomizerSupport extends java.lang.Object implements java.beans.PropertyChangeListener
Utility object which can help with connecting Swing UI objects and properties of some java bean. This support class is registering a listener to both sides and is doing the synchronisation.
-
-
Field Summary
Fields Modifier and Type Field Description static javax.swing.JLabel
INVISIBLE_VALUE
-
Constructor Summary
Constructors Constructor Description DFCustomizerSupport(javax.swing.JComponent component, java.util.Map<java.lang.String,javax.swing.JComponent> propMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkApplyCall()
java.lang.String
getErrorMessage()
boolean
isDataValid()
boolean
isForceReadOnly()
boolean
isIgnoreBeanChanges()
boolean
isIgnoreWidgetChanges()
boolean
isModified()
void
propertyChange(java.beans.PropertyChangeEvent evt)
protected void
propertyValueChanged(java.lang.String propName, javax.swing.JComponent c)
void
setDataValid(boolean dataValid)
void
setErrorMessage(java.lang.String msg)
void
setIgnoreBeanChanges(boolean ignore)
void
setIgnoreBeanChangesForThisPropertyOnly(java.lang.String propertyToIgnore)
void
setIgnoreWidgetChanges(boolean publicIgnoreWidgetChanges)
void
setModified(boolean modified)
protected void
widgetValueChanged(java.lang.String propName, javax.swing.JComponent comp)
-
-
-
Method Detail
-
setIgnoreWidgetChanges
public void setIgnoreWidgetChanges(boolean publicIgnoreWidgetChanges)
-
isIgnoreWidgetChanges
public boolean isIgnoreWidgetChanges()
-
isIgnoreBeanChanges
public boolean isIgnoreBeanChanges()
-
setIgnoreBeanChangesForThisPropertyOnly
public void setIgnoreBeanChangesForThisPropertyOnly(java.lang.String propertyToIgnore)
-
setIgnoreBeanChanges
public void setIgnoreBeanChanges(boolean ignore)
-
setDataValid
public void setDataValid(boolean dataValid)
-
isDataValid
public boolean isDataValid()
-
setModified
public void setModified(boolean modified)
-
isModified
public boolean isModified()
-
setErrorMessage
public void setErrorMessage(java.lang.String msg)
-
getErrorMessage
public java.lang.String getErrorMessage()
-
checkApplyCall
public boolean checkApplyCall()
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
propertyValueChanged
protected void propertyValueChanged(java.lang.String propName, javax.swing.JComponent c)
-
widgetValueChanged
protected void widgetValueChanged(java.lang.String propName, javax.swing.JComponent comp)
-
isForceReadOnly
public boolean isForceReadOnly()
-
-