Class 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 Detail

      • INVISIBLE_VALUE

        public static final javax.swing.JLabel INVISIBLE_VALUE
    • Constructor Detail

      • DFCustomizerSupport

        public DFCustomizerSupport​(javax.swing.JComponent component,
                                   java.util.Map<java.lang.String,​javax.swing.JComponent> propMap)
    • 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 interface java.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()