Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.gopas.rt.gui.table
Class EnumCellEditor  view EnumCellEditor download EnumCellEditor.java

java.lang.Object
  extended bycom.gopas.rt.gui.table.AbstractCellEditor
      extended bycom.gopas.rt.gui.table.GenericCellEditor
          extended bycom.gopas.rt.gui.table.EnumCellEditor
All Implemented Interfaces:
java.awt.event.ActionListener, javax.swing.CellEditor, java.util.EventListener, java.awt.event.ItemListener, com.gopas.rt.util.RT, com.gopas.rt.gui.RtGui, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor

public class EnumCellEditor
extends GenericCellEditor

ComboxEditor for editing enum values

Version:
$Revision: 1.1.1.1 $

Field Summary
 
Fields inherited from class com.gopas.rt.gui.table.GenericCellEditor
appear, clickCountToStart, editorComponent, format, isEditing, row, table, value
 
Fields inherited from class com.gopas.rt.gui.table.AbstractCellEditor
listenerList
 
Fields inherited from interface com.gopas.rt.util.RT
ACTIVATED_STATUS, ALL, CREATED_STATUS, DEBUG, DEBUG_MSG, DEBUG_ON, DEFAULT_DEBUG_LEVEL, DEFAULT_ERROR_LEVEL, DEFAULT_VERBOSE_LEVEL, DEFAULT_WARNING_LEVEL, DELETED_STATUS, EASY_ERR, ERROR_MSG, FORCE, GENERAL, MODIFIED_STATUS, nl, NORMAL_ERR, NOTE, NOTE1, NOTE2, NOTE3, NOTE4, NOTE5, OFF, PROGRESS, SEVERE_ERR, VERBOSE_MSG, WARNING, WARNING_MSG
 
Fields inherited from interface com.gopas.rt.gui.RtGui
calculatedFG, centerAppearance, defaultBG, defaultFG, emptyBorder, errorBG, focusBorder, focusColor, FORM_BUTTON, FORM_CHECKBOX, FORM_DATUM, FORM_DEFAULT, FORM_ENUM, FORM_INT, FORM_MONEY, FORM_NUMBER, FORM_PASSWORD, FORM_PATH, FORM_PROZENT, FORM_REF, FORM_SELECT, FORM_TYPES, invalidBG, invalidFG, isValidGuiFG, leftAppearance, readonlyBG, readonlyFG, rightAppearance, selectedBG, selectedFG, unconnectedBG
 
Constructor Summary
EnumCellEditor(javax.swing.JComboBox combo)
          Constructs a EnumCellEditor object that uses a combo box.
EnumCellEditor(javax.swing.JComboBox combo, com.gopas.rt.model.UIFormat format, com.gopas.rt.gui.Appearance appear)
           
 
Method Summary
 java.lang.Object getCellEditorValue()
          Get the current value hold in the cell editor.
 javax.swing.JComboBox getComboBoxComponent()
           
 void setEditorComponent(javax.swing.JComponent comp)
          kann spaeter gesetzt werden, muss aber gesetzt werden bevor editieren beginnt.
 void setValue(java.lang.Object val)
          set the editor value
 
Methods inherited from class com.gopas.rt.gui.table.GenericCellEditor
actionPerformed, cancelCellEditing, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, itemStateChanged, setClickCountToStart, shouldSelectCell, stopCellEditing
 
Methods inherited from class com.gopas.rt.gui.table.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, 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
 

Constructor Detail

EnumCellEditor

public EnumCellEditor(javax.swing.JComboBox combo)
Constructs a EnumCellEditor object that uses a combo box.


EnumCellEditor

public EnumCellEditor(javax.swing.JComboBox combo,
                      com.gopas.rt.model.UIFormat format,
                      com.gopas.rt.gui.Appearance appear)
Method Detail

setEditorComponent

public void setEditorComponent(javax.swing.JComponent comp)
kann spaeter gesetzt werden, muss aber gesetzt werden bevor editieren beginnt. (damit ich in Unterklassen die Komponente lokal halten kann.

Overrides:
setEditorComponent in class GenericCellEditor

getComboBoxComponent

public javax.swing.JComboBox getComboBoxComponent()

setValue

public void setValue(java.lang.Object val)
Description copied from class: GenericCellEditor
set the editor value

Overrides:
setValue in class GenericCellEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
Description copied from class: GenericCellEditor
Get the current value hold in the cell editor. (implements javax.swing.CellEditor)

Specified by:
getCellEditorValue in interface javax.swing.CellEditor
Overrides:
getCellEditorValue in class GenericCellEditor