當前位置: 首頁>>代碼示例>>Java>>正文


Java CellEditorListener.editingStopped方法代碼示例

本文整理匯總了Java中javax.swing.event.CellEditorListener.editingStopped方法的典型用法代碼示例。如果您正苦於以下問題:Java CellEditorListener.editingStopped方法的具體用法?Java CellEditorListener.editingStopped怎麽用?Java CellEditorListener.editingStopped使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.swing.event.CellEditorListener的用法示例。


在下文中一共展示了CellEditorListener.editingStopped方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: processKeyEvent

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
@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);
    }
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:34,代碼來源:WatchesColumnModels.java

示例2: stopCellEditing

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
@Override
public boolean stopCellEditing()
{
	if(!validate())
	{
		if(input.getText().equals(previousTextValue))
			cancelCellEditing();
		
		return false;
	}
	
	value = previousValue;
	value.setName(getCellEditorTextValue());
	previousValue = null;
	
	ChangeEvent e = new ChangeEvent(this);
	for(CellEditorListener l : listeners)
	{
		l.editingStopped(e);
	}
	return true;
}
 
開發者ID:justin-espedal,項目名稱:polydes,代碼行數:23,代碼來源:DTreeCellEditor.java

示例3: fireEditingStopped

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
private void fireEditingStopped() {
    final CellEditorListener[] clone;
    synchronized (listeners) {
        clone = listeners.toArray(new CellEditorListener[0]);
    }
    
    final ChangeEvent event = new ChangeEvent(this);
    for (CellEditorListener listener: clone) {
        listener.editingStopped(event);
    }
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:12,代碼來源:ComponentsSelectionPanel.java

示例4: fireEditingStopped

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
private void fireEditingStopped() {
    synchronized(listeners) {
        List<CellEditorListener> list = new ArrayList<CellEditorListener>(listeners);
        for (CellEditorListener listener : list) {
            listener.editingStopped(new ChangeEvent(this));
        }
    }
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:9,代碼來源:WatchesColumnModels.java

示例5: stopCellEditing

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
@Override
public boolean stopCellEditing() {
  final ChangeEvent e = new ChangeEvent(this);
  for (final CellEditorListener listener : new ArrayList<CellEditorListener>(myListeners)) {
    listener.editingStopped(e);
  }
  return true;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:9,代碼來源:ThreeStateCheckBoxRenderer.java

示例6: fireEditingStopped

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
private void fireEditingStopped() {
	CellEditorListener[] listeners = listenerList.getListeners(CellEditorListener.class);
	ChangeEvent changeEvent = null;
	for (CellEditorListener l : listeners) {
		if (changeEvent == null) {
			changeEvent = new ChangeEvent(this);
		}
		l.editingStopped(changeEvent);
	}
}
 
開發者ID:rapidminer,項目名稱:rapidminer-studio,代碼行數:11,代碼來源:MetaDataTableHeaderCellEditor.java

示例7: stopCellEditing

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
@Override
public boolean stopCellEditing() {
    ChangeEvent event = new ChangeEvent(this);
    for (CellEditorListener l : listenenrs.toArray(new CellEditorListener[0])) {
        l.editingStopped(event);
    }
    return true;
}
 
開發者ID:marat-gainullin,項目名稱:platypus-js,代碼行數:9,代碼來源:RowHeaderCellEditor.java

示例8: fireEditingStopped

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
protected void fireEditingStopped() {
    for (CellEditorListener l : editorListeners.toArray(new CellEditorListener[]{})) {
        if (l != null) {
            l.editingStopped(new ChangeEvent(this));
        }
    }
}
 
開發者ID:marat-gainullin,項目名稱:platypus-js,代碼行數:8,代碼來源:ModelComponentDecorator.java

示例9: fireEditingStopped

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
protected void fireEditingStopped() {
    ChangeEvent ce = new ChangeEvent(this);
    CellEditorListener[] copy = new CellEditorListener[listeners.size()];
    listeners.toArray(copy);
    for (CellEditorListener listener : copy) {
        listener.editingStopped(ce);
    }
    btnTogglePick.setSelected(false);
}
 
開發者ID:samynk,項目名稱:DArtE,代碼行數:10,代碼來源:PrefabCellEditor.java

示例10: fireEditingStopped

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
public void fireEditingStopped() {
	ChangeEvent e = new ChangeEvent(AttrTable.this);
	for (CellEditorListener l : new ArrayList<CellEditorListener>(
			listeners)) {
		l.editingStopped(e);
	}
}
 
開發者ID:reds-heig,項目名稱:logisim-evolution,代碼行數:8,代碼來源:AttrTable.java

示例11: fireEditingStopped

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
public void fireEditingStopped() {
	ChangeEvent e = new ChangeEvent(AttrTable.this);
	for (CellEditorListener l : new ArrayList<CellEditorListener>(listeners)) {
		l.editingStopped(e);
	}
}
 
開發者ID:LogisimIt,項目名稱:Logisim,代碼行數:7,代碼來源:AttrTable.java

示例12: stopEditing

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
private void stopEditing() {
    for (Object listener : listeners) {
        CellEditorListener cel = (CellEditorListener) listener;
        cel.editingStopped(null);
    }
}
 
開發者ID:cst316,項目名稱:spring16project-Team-Laredo,代碼行數:7,代碼來源:TaskProgressEditor.java

示例13: editingStopped

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
@Override
public void editingStopped(ChangeEvent e) {
	for (CellEditorListener l : listenerList.getListeners(CellEditorListener.class)) {
		l.editingStopped(e);
	}
}
 
開發者ID:kddart,項目名稱:kdxplore,代碼行數:7,代碼來源:PreferenceTreeTablePanel.java

示例14: stopEditing

import javax.swing.event.CellEditorListener; //導入方法依賴的package包/類
private void stopEditing(){
	for(int i=0; i<listeners.size(); i++){
		CellEditorListener cel = (CellEditorListener) listeners.get(i);
		cel.editingStopped(null);
	}
}
 
開發者ID:cst316,項目名稱:spring16project-Modula-2,代碼行數:7,代碼來源:TaskProgressEditor.java


注:本文中的javax.swing.event.CellEditorListener.editingStopped方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。