org.openrdf.sesame.config.ui
Class XCellEditor

java.lang.Object
  extended byjavax.swing.AbstractCellEditor
      extended byjavax.swing.DefaultCellEditor
          extended byorg.openrdf.sesame.config.ui.XCellEditor
All Implemented Interfaces:
CellEditor, Serializable, TableCellEditor, TreeCellEditor

public class XCellEditor
extends DefaultCellEditor

WRITEME

Version:
$Revision: 1.4.4.2 $
Author:
Peter van 't Hof, Arjohn Kampman
See Also:
Serialized Form

Constructor Summary
XCellEditor(JCheckBox checkBox, XTable table)
          Creates a new XCellEditor with the supplied check box and XTable
XCellEditor(JComboBox comboBox, XTable table)
          Creates a new XCellEditor with the supplied combo box and XTable
XCellEditor(JTextField text, XTable table)
          Creates a new XCellEditor with the supplied text and XTable
 
Method Summary
 void cancelCellEditing()
          If editing is canceled, removes the new row
 boolean isValid()
          Checks if the input is validate
 void setValue(Object value)
          Sets this value to the supplied value
 boolean shouldSelectCell(EventObject o)
          Focusses on the editor
 boolean stopCellEditing()
          Validates the input
 
Methods inherited from class javax.swing.DefaultCellEditor
getCellEditorValue, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, getCellEditorListeners, removeCellEditorListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Constructor Detail

XCellEditor

public XCellEditor(JTextField text,
                   XTable table)
Creates a new XCellEditor with the supplied text and XTable

Parameters:
text - Text field
table - XTable

XCellEditor

public XCellEditor(JComboBox comboBox,
                   XTable table)
Creates a new XCellEditor with the supplied combo box and XTable

Parameters:
comboBox - Combo box
table - XTable

XCellEditor

public XCellEditor(JCheckBox checkBox,
                   XTable table)
Creates a new XCellEditor with the supplied check box and XTable

Parameters:
checkBox - Check box
table - XTable
Method Detail

stopCellEditing

public boolean stopCellEditing()
Validates the input

See Also:
DefaultCellEditor.stopCellEditing()

cancelCellEditing

public void cancelCellEditing()
If editing is canceled, removes the new row

See Also:
DefaultCellEditor.cancelCellEditing()

shouldSelectCell

public boolean shouldSelectCell(EventObject o)
Focusses on the editor

See Also:
DefaultCellEditor.shouldSelectCell(java.util.EventObject)

setValue

public void setValue(Object value)
Sets this value to the supplied value

Parameters:
value - Value

isValid

public boolean isValid()
Checks if the input is validate

Returns:
Boolean indicating if the input is validate


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.