com.im.df/1 5.8

com.im.df.util
Class DFCustomizerSupport

java.lang.Object
  extended by com.im.df.util.DFCustomizerSupport
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class DFCustomizerSupport
extends Object
implements 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
static JLabel INVISIBLE_VALUE
           
 
Constructor Summary
DFCustomizerSupport(JComponent component, Map<String,JComponent> propMap)
           
 
Method Summary
 boolean checkApplyCall()
           
 String getErrorMessage()
           
 boolean isDataValid()
           
 boolean isForceReadOnly()
           
 boolean isIgnoreBeanChanges()
           
 boolean isIgnoreWidgetChanges()
           
 boolean isModified()
           
 void propertyChange(PropertyChangeEvent evt)
           
protected  void propertyValueChanged(String propName, JComponent c)
           
 void setDataValid(boolean dataValid)
           
 void setErrorMessage(String msg)
           
 void setIgnoreBeanChanges(boolean ignore)
           
 void setIgnoreBeanChangesForThisPropertyOnly(String propertyToIgnore)
           
 void setIgnoreWidgetChanges(boolean publicIgnoreWidgetChanges)
           
 void setModified(boolean modified)
           
 void updateComponentsEnableStatus(boolean readOnlyMode, PropertiesEditingConfigurable config)
           
protected  void widgetValueChanged(String propName, JComponent comp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVISIBLE_VALUE

public static final JLabel INVISIBLE_VALUE
Constructor Detail

DFCustomizerSupport

public DFCustomizerSupport(JComponent component,
                           Map<String,JComponent> propMap)
Method Detail

setIgnoreWidgetChanges

public void setIgnoreWidgetChanges(boolean publicIgnoreWidgetChanges)

isIgnoreWidgetChanges

public boolean isIgnoreWidgetChanges()

isIgnoreBeanChanges

public boolean isIgnoreBeanChanges()

setIgnoreBeanChangesForThisPropertyOnly

public void setIgnoreBeanChangesForThisPropertyOnly(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(String msg)

getErrorMessage

public String getErrorMessage()

checkApplyCall

public boolean checkApplyCall()

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

updateComponentsEnableStatus

public void updateComponentsEnableStatus(boolean readOnlyMode,
                                         PropertiesEditingConfigurable config)

propertyValueChanged

protected void propertyValueChanged(String propName,
                                    JComponent c)

widgetValueChanged

protected void widgetValueChanged(String propName,
                                  JComponent comp)

isForceReadOnly

public boolean isForceReadOnly()

com.im.df/1 5.8