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