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.PropertyChangeListenerUtility 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.JLabelINVISIBLE_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 booleancheckApplyCall()java.lang.StringgetErrorMessage()booleanisDataValid()booleanisForceReadOnly()booleanisIgnoreBeanChanges()booleanisIgnoreWidgetChanges()booleanisModified()voidpropertyChange(java.beans.PropertyChangeEvent evt)protected voidpropertyValueChanged(java.lang.String propName, javax.swing.JComponent c)voidsetDataValid(boolean dataValid)voidsetErrorMessage(java.lang.String msg)voidsetIgnoreBeanChanges(boolean ignore)voidsetIgnoreBeanChangesForThisPropertyOnly(java.lang.String propertyToIgnore)voidsetIgnoreWidgetChanges(boolean publicIgnoreWidgetChanges)voidsetModified(boolean modified)protected voidwidgetValueChanged(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:
propertyChangein 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()
-
-