本文整理匯總了Java中javax.swing.event.CellEditorListener.editingCanceled方法的典型用法代碼示例。如果您正苦於以下問題:Java CellEditorListener.editingCanceled方法的具體用法?Java CellEditorListener.editingCanceled怎麽用?Java CellEditorListener.editingCanceled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類javax.swing.event.CellEditorListener
的用法示例。
在下文中一共展示了CellEditorListener.editingCanceled方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: fireEditingCanceled
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
private void fireEditingCanceled() {
final CellEditorListener[] clone;
synchronized (listeners) {
clone = listeners.toArray(new CellEditorListener[0]);
}
final ChangeEvent event = new ChangeEvent(this);
for (CellEditorListener listener: clone) {
listener.editingCanceled(event);
}
}
示例2: cancelCellEditing
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
@Override
public void cancelCellEditing() {
final ChangeEvent e = new ChangeEvent(this);
for (final CellEditorListener listener : new ArrayList<CellEditorListener>(myListeners)) {
listener.editingCanceled(e);
}
}
示例3: fireEditingCancelled
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
private void fireEditingCancelled() {
CellEditorListener[] listeners = listenerList.getListeners(CellEditorListener.class);
ChangeEvent changeEvent = null;
for (CellEditorListener l : listeners) {
if (changeEvent == null) {
changeEvent = new ChangeEvent(this);
}
l.editingCanceled(changeEvent);
}
}
示例4: cancelCellEditing
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
@Override
public void cancelCellEditing() {
ChangeEvent event = new ChangeEvent(this);
for (CellEditorListener l : listenenrs.toArray(new CellEditorListener[0])) {
l.editingCanceled(event);
}
}
示例5: fireEditingCancelled
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
protected void fireEditingCancelled() {
for (CellEditorListener l : editorListeners.toArray(new CellEditorListener[]{})) {
if (l != null) {
l.editingCanceled(new ChangeEvent(this));
}
}
}
示例6: fireEditingCanceled
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
protected void fireEditingCanceled() {
pickedObject = currentValue;
ChangeEvent ce = new ChangeEvent(this);
CellEditorListener[] copy = new CellEditorListener[listeners.size()];
listeners.toArray(copy);
for (CellEditorListener listener : copy) {
listener.editingCanceled(ce);
}
btnTogglePick.setSelected(false);
}
示例7: fireEditingCanceled
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
public void fireEditingCanceled() {
ChangeEvent e = new ChangeEvent(AttrTable.this);
for (CellEditorListener l : new ArrayList<CellEditorListener>(
listeners)) {
l.editingCanceled(e);
}
}
示例8: cancelCellEditing
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
@Override
public void cancelCellEditing()
{
input.setText("");
ChangeEvent e = new ChangeEvent(this);
for(CellEditorListener l : listeners)
{
l.editingCanceled(e);
}
}
示例9: fireEditingCanceled
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
public void fireEditingCanceled() {
ChangeEvent e = new ChangeEvent(AttrTable.this);
for (CellEditorListener l : new ArrayList<CellEditorListener>(listeners)) {
l.editingCanceled(e);
}
}
示例10: editingCanceled
import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
@Override
public void editingCanceled(ChangeEvent e) {
for (CellEditorListener l : listenerList.getListeners(CellEditorListener.class)) {
l.editingCanceled(e);
}
}