Beispiel #1
0
 /**
  * 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);
   }
 }
Beispiel #2
0
 private void firePropertyChange(String name, int oldValue, int newValue) {
   if (batch) {
     modified = true;
   } else {
     support_.firePropertyChange(name, oldValue, newValue);
   }
 }
Beispiel #3
0
 /** Removes the specified change listener. */
 public static void removeChangeListener(PropertyChangeListener l) {
   if (m_pcsTypesMgr != null) m_pcsTypesMgr.removePropertyChangeListener(l);
 }
Beispiel #4
0
 /**
  * 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);
 }
Beispiel #5
0
 /**
  * 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);
 }
Beispiel #6
0
 /**
  * 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);
 }
Beispiel #7
0
 /**
  * Remove property change listener.
  *
  * @param l property change listener
  */
 public void removePropertyChangeListener(PropertyChangeListener l) {
   support_.removePropertyChangeListener(l);
 }
Beispiel #8
0
 /**
  * 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);
 }
Beispiel #9
0
 /**
  * Add property change listener.
  *
  * @param l property change listener
  */
 public void addPropertyChangeListener(PropertyChangeListener l) {
   support_.addPropertyChangeListener(l);
 }