protected void fireEditingStopped() { Object[] listeners = _listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == CellEditorListener.class) { if (_changeEvent == null) { _changeEvent = new ChangeEvent(this); } ((CellEditorListener) listeners[i + 1]).editingStopped(_changeEvent); } } }
protected void fireEditingCanceled() { Object[] listeners = _listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == CellEditorListener.class) { if (_changeEvent == null) { _changeEvent = new ChangeEvent(this); } ((CellEditorListener) listeners[i + 1]).editingCanceled(_changeEvent); } } }
protected void fireTreeStructureChanged(TreePath parentPath) { TreeModelEvent e = null; for (TreeModelListener l : listeners) { if (e == null) e = new TreeModelEvent(this, parentPath, null, null); l.treeStructureChanged(e); } }
public void setValue (float value) { this.value = (int)(Math.max(min, Math.min(max, value)) / stepSize) * stepSize; repaint(); if (listener != null) listener.stateChanged(new ChangeEvent(this)); }
public void valueChanged (ListSelectionEvent event) { if (event.getValueIsAdjusting()) return; emitterSelected(); } });
public void addCellEditorListener(CellEditorListener l) { _listenerList.add(CellEditorListener.class, l); }
public void removeCellEditorListener(CellEditorListener l) { _listenerList.remove(CellEditorListener.class, l); }
@Override public void treeWillExpand(TreeExpansionEvent event) { TreePath path = event.getPath(); Object node = path.getLastPathComponent(); if (node instanceof JLoadableNode) { ((JLoadableNode) node).loadNode(); } }
@Override public void hyperlinkUpdate(HyperlinkEvent e) { Object obj = e.getSource(); if (obj instanceof JumpPosition) { contentPanel.getTabbedPane().codeJump((JumpPosition) obj); } } }
@Override public HyperlinkEvent execute() { return new HyperlinkEvent(defPos, HyperlinkEvent.EventType.ACTIVATED, null, defPos.getNode().makeLongString()); }
/** * Notifies all listeners that have registered interest for * 'editing stopped' event. * @see EventListenerList */ protected void fireEditingStopped() { // Guaranteed to return a non-null array final Object[] listeners = listenerList.getListenerList(); // Process the listeners last to first, notifying // those that are interested in this event for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == CellEditorListener.class) { ((CellEditorListener) listeners[i + 1]).editingStopped(new ChangeEvent(this)); } } }
/** * Notifies all listeners that have registered interest for * 'editing canceled' event. * @see EventListenerList */ protected void fireEditingCanceled() { // Guaranteed to return a non-null array final Object[] listeners = listenerList.getListenerList(); // Process the listeners last to first, notifying // those that are interested in this event for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == CellEditorListener.class) { ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this)); } } }
public void setValue (float value) { this.value = (int)(Math.max(min, Math.min(max, value)) / stepSize) * stepSize; repaint(); if (listener != null) listener.stateChanged(new ChangeEvent(this)); }
public void valueChanged (ListSelectionEvent event) { if (event.getValueIsAdjusting()) return; velocitySelected(); } });
@Override public void addCellEditorListener(CellEditorListener listener) { listenerList.add(CellEditorListener.class, listener); }
@Override public void removeTreeModelListener(TreeModelListener listener) { listenerList.remove(TreeModelListener.class, listener); }
public void valueChanged (ListSelectionEvent event) { if (event.getValueIsAdjusting()) return; emitterSelected(); } });
public void valueChanged (ListSelectionEvent event) { if (event.getValueIsAdjusting()) return; velocitySelected(); } });
public void valueChanged (ListSelectionEvent event) { if (event.getValueIsAdjusting()) return; emitterSelected(); } });
public void valueChanged (ListSelectionEvent event) { if (event.getValueIsAdjusting()) return; emitterSelected(); } });