jcreek.gui.representation
Class StringTypeField

java.lang.Object
  extended byjavax.swing.AbstractCellEditor
      extended byjcreek.gui.representation.AbstractEntityTypeField
          extended byjcreek.gui.representation.StringTypeField
All Implemented Interfaces:
javax.swing.CellEditor, EntityTypeField, javax.swing.ListCellRenderer, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.table.TableCellRenderer

public class StringTypeField
extends AbstractEntityTypeField

See Also:
Serialized Form

Field Summary
protected  java.lang.Class editingClass
           
protected  javax.swing.JTextField editorComponent
           
protected  javax.swing.JLabel renderComponent
           
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
StringTypeField()
           
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getEditorComponent(java.lang.Object value)
          Makes a generic editor component that can be used in lists, tables and as parts of components.
 java.awt.Component getRendererComponent(java.lang.Object value)
          Makes a generic rendering component that can be used in lists, tables and as parts of components.
 
Methods inherited from class jcreek.gui.representation.AbstractEntityTypeField
addFocusListener, getListCellRendererComponent, getTableCellEditorComponent, getTableCellRendererComponent, getTreeCellEditorComponent
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 
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, cancelCellEditing, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Field Detail

renderComponent

protected javax.swing.JLabel renderComponent

editorComponent

protected javax.swing.JTextField editorComponent

editingClass

protected java.lang.Class editingClass
Constructor Detail

StringTypeField

public StringTypeField()
Method Detail

getRendererComponent

public java.awt.Component getRendererComponent(java.lang.Object value)
Makes a generic rendering component that can be used in lists, tables and as parts of components.

Parameters:
value - The value of the field currently
Returns:
The editor component.

getEditorComponent

public java.awt.Component getEditorComponent(java.lang.Object value)
Makes a generic editor component that can be used in lists, tables and as parts of components.

Parameters:
value - The value of the field currently
Returns:
The editor component.

getCellEditorValue

public java.lang.Object getCellEditorValue()
Specified by:
getCellEditorValue in interface javax.swing.CellEditor
Overrides:
getCellEditorValue in class AbstractEntityTypeField


Created at IDI, NTNU by the Artificial Intelligence and Learning group