/** * Set batching for changes to <code>PanelModel</code>. Fires property "batch" when <code> * PanelModel</code> has changed and batch is set to false. * * @param batch batch value */ public void setBatch(boolean batch) { this.batch = batch; if (!this.batch && modified) { modified = false; support_.firePropertyChange("batch", null, null); } }
private void firePropertyChange(String name, int oldValue, int newValue) { if (batch) { modified = true; } else { support_.firePropertyChange(name, oldValue, newValue); } }
/** Removes the specified change listener. */ public static void removeChangeListener(PropertyChangeListener l) { if (m_pcsTypesMgr != null) m_pcsTypesMgr.removePropertyChangeListener(l); }
/** * Adds the specified change listener with the specified property. * * @param strProperty the property to which the listener should be listening to. * @param l the property change listener to be added. */ public static void addChangeListener(String strProperty, PropertyChangeListener l) { if (m_pcsTypesMgr != null) m_pcsTypesMgr.addPropertyChangeListener(strProperty, l); }
/** * Adds the specified change listener. * * @param l the property change listener to be added. */ public static void addChangeListener(PropertyChangeListener l) { if (m_pcsTypesMgr != null) m_pcsTypesMgr.addPropertyChangeListener(l); }
/** * Remove specific property change listener * * @param name property name * @param l property change listener */ public void removePropertyChangeListener(String name, PropertyChangeListener l) { support_.removePropertyChangeListener(name, l); }
/** * Remove property change listener. * * @param l property change listener */ public void removePropertyChangeListener(PropertyChangeListener l) { support_.removePropertyChangeListener(l); }
/** * Listen for specific property change. * * @param name property name * @param l property change listner */ public void addPropertyChangeListener(String name, PropertyChangeListener l) { support_.addPropertyChangeListener(name, l); }
/** * Add property change listener. * * @param l property change listener */ public void addPropertyChangeListener(PropertyChangeListener l) { support_.addPropertyChangeListener(l); }