@Override public void valueChanged(DateSelectionEvent ev) { if (EventType.CALENDAR_CHANGED.equals(ev.getEventType())) { updateCalendar(); } }
private void fireStartedEvent() { BackgroundEvent evt = new BackgroundEvent(this); for (BackgroundListener listener : listeners) { listener.started(evt); } }
private void fireDoneEvent() { BackgroundEvent evt = new BackgroundEvent(this); for (BackgroundListener listener : listeners) { listener.done(evt); } }
@Override public void treeCollapsed(TreeExpansionEvent event) { if (!hasListeners()) return; fireTreeCollapsed(retarget(event)); }
private void setFocused(boolean focused) { boolean old = isFocused(); this.focused = focused; firePropertyChange("focused", old, isFocused()); }
/** * Removes all property change listeners which are registered with this instance. */ private void removeAllListeners() { for (PropertyChangeListener l : getPropertyChangeListeners()) { removePropertyChangeListener(l); } }
/** * {@inheritDoc} */ @Override public void addDateSelectionListener(DateSelectionListener l) { listenerMap.add(DateSelectionListener.class, l); }
/** * Removes an ActionListener. * * @param l The action listener to remove. */ public void removeActionListener(ActionListener l) { listenerMap.remove(ActionListener.class, l); }
/** * Adds a <code>ChangeListener</code>. ChangeListeners are * notified after changes of any attribute. * * @param l the ChangeListener to add * @see #removeChangeListener */ @Override public final void addChangeListener(ChangeListener l) { listenerList.add(ChangeListener.class, l); }
/** * Removes a <code>ChangeListener</code>e. * * @param l the <code>ChangeListener</code> to remove * @see #addChangeListener */ @Override public final void removeChangeListener(ChangeListener l) { listenerList.remove(ChangeListener.class, l); }
private void fireProcessEvent(Object[] data) { BackgroundEvent evt = new BackgroundEvent(BackgroundWorker.this, data); for (BackgroundListener listener : listeners) { listener.process(evt); } }
private void fireDoInBackgroundEvent() { BackgroundEvent evt = new BackgroundEvent(this); for (BackgroundListener listener : listeners) { listener.doInBackground(evt); } }
@Override public void valueChanged(DateSelectionEvent ev) { if (EventType.CALENDAR_CHANGED.equals(ev.getEventType())) { updateCalendar(); } }
private void setFocused(boolean focused) { boolean old = isFocused(); this.focused = focused; firePropertyChange("focused", old, isFocused()); }
/** * Adds a PopupMenuListener.<p> * * PENDING JW: the canceled method is never called due to internal * interference in BasicDatePickerUI. Probably need to re-visit that. * * @param l the PopupMenuListener to add. */ public void addPopupMenuListener(PopupMenuListener l) { listenerMap.add(PopupMenuListener.class, l); }
/** * Removes a PopupMenuListener. * * @param l the PopupMenuListener to remove. */ public void removePopupMenuListener(PopupMenuListener l) { listenerMap.remove(PopupMenuListener.class, l); }
@Override public void valueChanged(DateSelectionEvent ev) { if (EventType.CALENDAR_CHANGED.equals(ev.getEventType())) { updateCalendar(); } }
/** * Adds a PopupMenuListener.<p> * * PENDING JW: the canceled method is never called due to internal * interference in BasicDatePickerUI. Probably need to re-visit that. * * @param l the PopupMenuListener to add. */ public void addPopupMenuListener(PopupMenuListener l) { listenerMap.add(PopupMenuListener.class, l); }
public void valueChanged(DateSelectionEvent ev) { if (EventType.CALENDAR_CHANGED.equals(ev.getEventType())) { updateCalendar(); } }
@Override public void valueChanged(DateSelectionEvent ev) { if (EventType.CALENDAR_CHANGED.equals(ev.getEventType())) { updateCalendar(); } }