javax.swing.event.CellEditorListener Java Examples
The following examples show how to use
javax.swing.event.CellEditorListener.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TimeCellEditor.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
protected void fireEditingCanceled() { 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.editingCanceled( event ); } }
Example #2
Source File: TypedHeaderCellEditor.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
protected void fireEditingStopped() { final CellEditorListener[] listeners = eventListenerList.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 ); } }
Example #3
Source File: MarkdownDocletOptionsForm.java From markdown-doclet with GNU General Public License v3.0 | 5 votes |
@Override public boolean stopCellEditing() { for (CellEditorListener l : listeners) { l.editingStopped(new ChangeEvent(this)); } return true; }
Example #4
Source File: AbstractCellEditor.java From libreveris with GNU Lesser General Public License v3.0 | 5 votes |
protected void fireEditingStopped () { // Guaranteed to return a non-null array 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)); } } }
Example #5
Source File: AlternatingTableCellEditor.java From gate-core with GNU Lesser General Public License v3.0 | 5 votes |
/** * Add the specified listener to <em>all</em> the delegate editors. * @param l the listener to add */ @Override public void addCellEditorListener(CellEditorListener l) { for(TableCellEditor e : editors) { e.addCellEditorListener(l); } }
Example #6
Source File: ColumnModels.java From netbeans with Apache License 2.0 | 5 votes |
@Override protected void processKeyEvent(KeyEvent e) { KeyStroke ks = KeyStroke.getKeyStrokeForEvent(e); if (enter.equals(ks)) { // Prevent JComponent.processKeyBindings() to be called (it is called from // JComponent.processKeyEvent() ), notify only registered key listeners int id = e.getID(); for (KeyListener keyListener : getKeyListeners()) { switch(id) { case KeyEvent.KEY_TYPED: keyListener.keyTyped(e); break; case KeyEvent.KEY_PRESSED: keyListener.keyPressed(e); break; case KeyEvent.KEY_RELEASED: keyListener.keyReleased(e); break; } } if (!e.isConsumed() && id == KeyEvent.KEY_PRESSED) { synchronized(listeners) { List<CellEditorListener> list = new ArrayList<CellEditorListener>(listeners); for (CellEditorListener listener : list) { listener.editingStopped(new ChangeEvent(this)); } } } e.consume(); } else { super.processKeyEvent(e); } }
Example #7
Source File: TypedHeaderCellEditor.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
protected void fireEditingCanceled() { final CellEditorListener[] listeners = eventListenerList.getListeners( CellEditorListener.class ); final ChangeEvent event = new ChangeEvent( this ); for ( int i = 0; i < listeners.length; i++ ) { final CellEditorListener listener = listeners[ i ]; listener.editingCanceled( event ); } }
Example #8
Source File: WatchesColumnModels.java From netbeans with Apache License 2.0 | 5 votes |
@Override protected void processKeyEvent(KeyEvent e) { KeyStroke ks = KeyStroke.getKeyStrokeForEvent(e); if (enter.equals(ks)) { // Prevent JComponent.processKeyBindings() to be called (it is called from // JComponent.processKeyEvent() ), notify only registered key listeners int id = e.getID(); for (KeyListener keyListener : getKeyListeners()) { switch(id) { case KeyEvent.KEY_TYPED: keyListener.keyTyped(e); break; case KeyEvent.KEY_PRESSED: keyListener.keyPressed(e); break; case KeyEvent.KEY_RELEASED: keyListener.keyReleased(e); break; } } if (!e.isConsumed() && id == KeyEvent.KEY_PRESSED) { synchronized(listeners) { List<CellEditorListener> list = new ArrayList<CellEditorListener>(listeners); for (CellEditorListener listener : list) { listener.editingStopped(new ChangeEvent(this)); } } } e.consume(); } else { super.processKeyEvent(e); } }
Example #9
Source File: AbstractCellEditor.java From audiveris with GNU Affero General Public License v3.0 | 5 votes |
/** * Notify all listeners that have registered interest for notification on * this event type. * * @see EventListenerList */ protected void fireEditingCanceled () { // Guaranteed to return a non-null array 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)); } } }
Example #10
Source File: DateCellEditor.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
protected void fireEditingCanceled() { 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.editingCanceled( event ); } }
Example #11
Source File: StructureFunctionCellEditor.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
protected void fireEditingStopped() { final CellEditorListener[] listeners = eventListenerList.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 ); } }
Example #12
Source File: GroupDataEntryCellEditor.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 5 votes |
protected void fireEditingStopped() { final CellEditorListener[] listeners = eventListenerList.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 ); } }
Example #13
Source File: AbstractCellEditor.java From opensim-gui with Apache License 2.0 | 5 votes |
protected void fireEditingStopped() { // Guaranteed to return a non-null array 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)); } } }
Example #14
Source File: MultiLineCellRenderer.java From intellij-csv-validator with Apache License 2.0 | 5 votes |
protected void fireStopCellEditing() { ChangeEvent changeEvent = new ChangeEvent(this); synchronized (cellEditorListenerSet) { Iterator<CellEditorListener> it = cellEditorListenerSet.iterator(); while (it.hasNext()) { it.next().editingStopped(changeEvent); } } }
Example #15
Source File: MultiLineCellRenderer.java From intellij-csv-validator with Apache License 2.0 | 5 votes |
protected void fireCancelCellEditing() { ChangeEvent changeEvent = new ChangeEvent(this); synchronized (cellEditorListenerSet) { Iterator<CellEditorListener> it = cellEditorListenerSet.iterator(); while (it.hasNext()) { it.next().editingCanceled(changeEvent); } } }
Example #16
Source File: AttrTable.java From Logisim with GNU General Public License v3.0 | 4 votes |
@Override public void removeCellEditorListener(CellEditorListener l) { // Removes a listener from the list that's notified listeners.remove(l); }
Example #17
Source File: JTreeTable.java From pcgen with GNU Lesser General Public License v2.1 | 4 votes |
@Override public void removeCellEditorListener(CellEditorListener l) { }
Example #18
Source File: bug8023474.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public void addCellEditorListener(CellEditorListener l) { }
Example #19
Source File: bug8023474.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public void addCellEditorListener(CellEditorListener l) { }
Example #20
Source File: InstantEditingTable.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 4 votes |
public void addCellEditorListener( final CellEditorListener l ) { backend.addCellEditorListener( l ); }
Example #21
Source File: bug8023474.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
public void removeCellEditorListener(CellEditorListener l) { }
Example #22
Source File: bug8023474.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public void removeCellEditorListener(CellEditorListener l) { }
Example #23
Source File: XTextFieldEditor.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public void addCellEditorListener(CellEditorListener listener) { evtListenerList.add(CellEditorListener.class,listener); }
Example #24
Source File: AbstractCellEditor.java From opensim-gui with Apache License 2.0 | 4 votes |
public void removeCellEditorListener(CellEditorListener l) { listenerList.remove(CellEditorListener.class, l); }
Example #25
Source File: XTextFieldEditor.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public void addCellEditorListener(CellEditorListener listener) { evtListenerList.add(CellEditorListener.class,listener); }
Example #26
Source File: ColumnModels.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void removeCellEditorListener(CellEditorListener listener) { synchronized(listeners) { listeners.remove(listener); } }
Example #27
Source File: ColumnModels.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void addCellEditorListener(CellEditorListener listener) { synchronized(listeners) { listeners.add(listener); } }
Example #28
Source File: DesktopWidgetsTree.java From cuba with Apache License 2.0 | 4 votes |
@Override public void addCellEditorListener(CellEditorListener l) { }
Example #29
Source File: ConnectionsTable.java From visualvm with GNU General Public License v2.0 | 4 votes |
public void removeCellEditorListener(CellEditorListener l) { impl.removeCellEditorListener(l); }
Example #30
Source File: RuleCellEditor.java From xtunnel with GNU General Public License v2.0 | 4 votes |
@Override public void removeCellEditorListener(CellEditorListener l) { // TODO Auto-generated method stub }