/** Attach listeners to an instance of PropertyModel */ private final void attachToModel() { if (model != null) { model.addPropertyChangeListener(getListener()); } }
/** Attach listeners to an instance of PropertyModel */ private final void attachToModel() { if (model != null) { model.addPropertyChangeListener(getListener()); } }
/** Attach listeners to an instance of PropertyModel */ private final void attachToModel() { if (model != null) { model.addPropertyChangeListener(getListener()); } }
public Spud(Property prop, PropertyEditor editor, PropertyModel model, PropertyEnv env, Component customEditor, PropertyChangeListener envListener, VetoableChangeListener veto) { if (prop != null) { property = new WeakReference(property); } if (editor != null) { this.editor = new WeakReference(editor); } if (env != null) { this.env = new WeakReference(env); env.addPropertyChangeListener(WeakListeners.propertyChange(this, env)); env.addVetoableChangeListener(WeakListeners.vetoableChange(this, env)); } if (customEditor != null) { this.customEditor = new WeakReference(customEditor); } if (envListener != null) { this.envListener = new WeakReference(envListener); } if (veto != null) { this.venvListener = new WeakReference(veto); } if (model != null) { this.model = new WeakReference(model); model.addPropertyChangeListener(WeakListeners.propertyChange(this, editor)); } if (editor != null) { editor.addPropertyChangeListener(this); } }
public Spud(Property prop, PropertyEditor editor, PropertyModel model, PropertyEnv env, Component customEditor, PropertyChangeListener envListener, VetoableChangeListener veto) { if (prop != null) { property = new WeakReference(property); } if (editor != null) { this.editor = new WeakReference(editor); } if (env != null) { this.env = new WeakReference(env); env.addPropertyChangeListener(WeakListeners.propertyChange(this, env)); env.addVetoableChangeListener(WeakListeners.vetoableChange(this, env)); } if (customEditor != null) { this.customEditor = new WeakReference(customEditor); } if (envListener != null) { this.envListener = new WeakReference(envListener); } if (veto != null) { this.venvListener = new WeakReference(veto); } if (model != null) { this.model = new WeakReference(model); model.addPropertyChangeListener(WeakListeners.propertyChange(this, editor)); } if (editor != null) { editor.addPropertyChangeListener(this); } }