jaxx.runtime.swing.editor
Class MyDefaultCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by jaxx.runtime.swing.editor.MyDefaultCellEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor, TreeCellEditor

public class MyDefaultCellEditor
extends DefaultCellEditor

Since:
1.5
Author:
chemit
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate
 
Field Summary
protected  boolean requireSelect
           
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
protected MyDefaultCellEditor(JCheckBox checkBox)
           
protected MyDefaultCellEditor(JComboBox comboBox)
           
protected MyDefaultCellEditor(JTextField textField)
           
 
Method Summary
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 boolean isRequireSelect()
           
static TableCellEditor newBooleanEditor()
           
static TableCellEditor newBooleanEditor(boolean requireSelect)
           
static TableCellEditor newBooleanEditor(Icon icon)
           
static TableCellEditor newBooleanEditor(Icon icon, boolean requireSelect)
           
static TableCellEditor newEnumEditor(EnumEditor<?> editor)
           
static TableCellEditor newListEditor()
           
static TableCellEditor newListEditor(JComboBox editor)
           
static TableCellEditor newTextEditor()
           
 void setRequireSelect(boolean requireSelect)
           
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Field Detail

requireSelect

protected boolean requireSelect
Constructor Detail

MyDefaultCellEditor

protected MyDefaultCellEditor(JTextField textField)

MyDefaultCellEditor

protected MyDefaultCellEditor(JCheckBox checkBox)

MyDefaultCellEditor

protected MyDefaultCellEditor(JComboBox comboBox)
Method Detail

newTextEditor

public static TableCellEditor newTextEditor()

newBooleanEditor

public static TableCellEditor newBooleanEditor()

newListEditor

public static TableCellEditor newListEditor()

newListEditor

public static TableCellEditor newListEditor(JComboBox editor)

newEnumEditor

public static TableCellEditor newEnumEditor(EnumEditor<?> editor)

newBooleanEditor

public static TableCellEditor newBooleanEditor(Icon icon)

newBooleanEditor

public static TableCellEditor newBooleanEditor(Icon icon,
                                               boolean requireSelect)

newBooleanEditor

public static TableCellEditor newBooleanEditor(boolean requireSelect)

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Specified by:
getTableCellEditorComponent in interface TableCellEditor
Overrides:
getTableCellEditorComponent in class DefaultCellEditor

isRequireSelect

public boolean isRequireSelect()

setRequireSelect

public void setRequireSelect(boolean requireSelect)


Copyright © 2008-2010 CodeLutin. All Rights Reserved.