当前位置: 首页>>代码示例>>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;未经允许,请勿转载。