List of usage examples for javax.swing.event ChangeEvent ChangeEvent
public ChangeEvent(Object source)
From source file:org.pentaho.reporting.libraries.designtime.swing.date.DateCellEditor.java
protected void fireEditingStopped() { final CellEditorListener[] listeners = this.listeners.getListeners(CellEditorListener.class); final ChangeEvent event = new ChangeEvent(this); for (int i = 0; i < listeners.length; i++) { final CellEditorListener listener = listeners[i]; listener.editingStopped(event);/* w w w . j a va2 s. c om*/ } }
From source file:org.wings.STabbedPane.java
/** * Fire ChangeEvents at all registered change listeners. *///from www.jav a 2 s . co m protected void fireStateChanged() { ChangeEvent event = null; // maybe the better way to do this is to user the getListenerList // and iterate through all listeners, this saves the creation of // an array but it must cast to the apropriate listener Object[] listeners = getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == ChangeListener.class) { // Lazily create the event: if (event == null) event = new ChangeEvent(this); ((ChangeListener) listeners[i + 1]).stateChanged(event); } } }
From source file:pl.edu.icm.visnow.lib.basic.viewers.Viewer2D.Display2DPanel.java
/** * Notifies all registered listeners about the event. * * @param object Parameter #1 of the <CODE>ChangeEvent<CODE> constructor. *//*www . j a v a 2 s. c om*/ private void fireStateChanged() { ChangeEvent e = new ChangeEvent(this); for (ChangeListener listener : changeListenerList) { listener.stateChanged(e); } }