@Override public void firePropertyChange(String s, Object a, Object b) { //do nothing if ("flat".equals(s)) { // NOI18N super.firePropertyChange(s, a, b); } }
public void firePropertyChange (String s, Object a, Object b) { //do nothing if ("flat".equals (s)) { super.firePropertyChange(s,a,b); } }
public void firePropertyChange (String s, Object a, Object b) { //do nothing if ("flat".equals (s)) { super.firePropertyChange(s,a,b); } }
@Override public void firePropertyChange (String s, Object a, Object b) { //do nothing if ("flat".equals (s)) { super.firePropertyChange(s,a,b); } }
/** Setter for visual preferences in displaying * of the value of the property. * @param preferences PREF_XXXX constants */ public void setPreferences (int preferences) { if (preferences != this.preferences) { int oldPreferences = this.preferences; this.preferences = preferences; hardReset(); firePropertyChange(PROP_PREFERENCES, oldPreferences,preferences); } }
/** Setter for visual preferences in displaying * of the value of the property. * @param preferences PREF_XXXX constants */ public void setPreferences (int preferences) { if (preferences != this.preferences) { int oldPreferences = this.preferences; this.preferences = preferences; hardReset(); firePropertyChange(PROP_PREFERENCES, oldPreferences,preferences); } }
/** Setter for visual preferences in displaying * of the value of the property. * @param preferences PREF_XXXX constants */ public void setPreferences(int preferences) { if (preferences != this.preferences) { int oldPreferences = this.preferences; this.preferences = preferences; hardReset(); firePropertyChange(PROP_PREFERENCES, oldPreferences, preferences); } }
public void propertyChange(PropertyChangeEvent evt) { if (evt.getSource() instanceof PropertyEnv) { firePropertyChange(PropertyPanel.PROP_STATE, evt.getOldValue(), evt.getNewValue()); } if (evt.getSource() instanceof PropertyModel) { if ((evt.getOldValue() == null) && (evt.getNewValue() == null)) { //the old hack of firing a null-null change to get the //infrastructure to dump everything and start from scratch hardReset(); } else { //Just notify the displayer that the value may have changed, //no need for anything radical reset(); } } }
public void propertyChange(PropertyChangeEvent evt) { if (evt.getSource() instanceof PropertyEnv) { firePropertyChange(PropertyPanel.PROP_STATE, evt.getOldValue(), evt.getNewValue()); } if (evt.getSource() instanceof PropertyModel) { if (evt.getOldValue() == null && evt.getNewValue() == null) { //the old hack of firing a null-null change to get the //infrastructure to dump everything and start from scratch hardReset(); } else { //Just notify the displayer that the value may have changed, //no need for anything radical reset(); } } }
public void propertyChange(PropertyChangeEvent evt) { if (evt.getSource() instanceof PropertyEnv) { firePropertyChange(PropertyPanel.PROP_STATE, evt.getOldValue(), evt.getNewValue()); } if (evt.getSource() instanceof PropertyModel) { if (evt.getOldValue() == null && evt.getNewValue() == null) { //the old hack of firing a null-null change to get the //infrastructure to dump everything and start from scratch hardReset(); } else { //Just notify the displayer that the value may have changed, //no need for anything radical reset(); } } }
/** Setter for property changeImmediate. * IF this is true the changes made in the property editor * are immediately propagated to the value of the property * (to the property model). * @param changeImmediate New value of property changeImmediate. */ public void setChangeImmediate(boolean changeImmediate) { if (this.changeImmediate == changeImmediate) { return; } this.changeImmediate = changeImmediate; if (isShowing()) { PropertyDisplayer displayer = getPropertyDisplayer(); if (displayer instanceof PropertyDisplayer_Editable) { ((PropertyDisplayer_Editable) displayer).setUpdatePolicy(changeImmediate ? PropertyDisplayer.UPDATE_ON_FOCUS_LOST : PropertyDisplayer.UPDATE_ON_EXPLICIT_REQUEST); } } firePropertyChange(PropertyEnv.PROP_CHANGE_IMMEDIATE, changeImmediate?Boolean.FALSE:Boolean.TRUE, changeImmediate?Boolean.TRUE:Boolean.FALSE); }
/** Setter for property changeImmediate. * IF this is true the changes made in the property editor * are immediately propagated to the value of the property * (to the property model). * @param changeImmediate New value of property changeImmediate. */ public void setChangeImmediate(boolean changeImmediate) { if (this.changeImmediate == changeImmediate) { return; } this.changeImmediate = changeImmediate; if (isShowing()) { PropertyDisplayer displayer = getPropertyDisplayer(); if (displayer instanceof PropertyDisplayer_Editable) { ((PropertyDisplayer_Editable) displayer).setUpdatePolicy(changeImmediate ? PropertyDisplayer.UPDATE_ON_FOCUS_LOST : PropertyDisplayer.UPDATE_ON_EXPLICIT_REQUEST); } } firePropertyChange(PropertyEnv.PROP_CHANGE_IMMEDIATE, changeImmediate?Boolean.FALSE:Boolean.TRUE, changeImmediate?Boolean.TRUE:Boolean.FALSE); }
/** Setter for property changeImmediate. * IF this is true the changes made in the property editor * are immediately propagated to the value of the property * (to the property model). * @param changeImmediate New value of property changeImmediate. */ public void setChangeImmediate(boolean changeImmediate) { if (this.changeImmediate == changeImmediate) { return; } this.changeImmediate = changeImmediate; if (isShowing()) { PropertyDisplayer displayer = getPropertyDisplayer(); if (displayer instanceof PropertyDisplayer_Editable) { ((PropertyDisplayer_Editable) displayer).setUpdatePolicy( changeImmediate ? PropertyDisplayer.UPDATE_ON_FOCUS_LOST : PropertyDisplayer.UPDATE_ON_EXPLICIT_REQUEST ); } } firePropertyChange( PropertyEnv.PROP_CHANGE_IMMEDIATE, changeImmediate ? Boolean.FALSE : Boolean.TRUE, changeImmediate ? Boolean.TRUE : Boolean.FALSE ); }