de.kupzog.ktable.editors
Class KTableCellEditorComboText

java.lang.Object
  extended by de.kupzog.ktable.KTableCellEditor
      extended by de.kupzog.ktable.editors.KTableCellEditorComboText

public class KTableCellEditorComboText
extends KTableCellEditor

A cell editor with a combo (not read only)

Author:
Friederich Kupzog

Field Summary
 
Fields inherited from class de.kupzog.ktable.KTableCellEditor
DOUBLECLICK, KEY_ANY, KEY_RETURN_AND_SPACE, SINGLECLICK
 
Constructor Summary
KTableCellEditorComboText()
           
 
Method Summary
 void close(boolean save)
          Deactivates the editor.
 void open(KTable table, int row, int col, org.eclipse.swt.graphics.Rectangle rect)
          Activates the editor at the given position.
 void setBounds(org.eclipse.swt.graphics.Rectangle rect)
          Sets the editor's position and size
 void setContent(java.lang.Object content)
          Allows that external classes can set the content of the underlying
 void setItems(java.lang.String[] items)
           
 
Methods inherited from class de.kupzog.ktable.KTableCellEditor
dispose, getActivationSignals, getBounds, getControl, isApplicable, isFocused, setToolTipText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KTableCellEditorComboText

public KTableCellEditorComboText()
Method Detail

open

public void open(KTable table,
                 int row,
                 int col,
                 org.eclipse.swt.graphics.Rectangle rect)
Description copied from class: KTableCellEditor
Activates the editor at the given position.

Overrides:
open in class KTableCellEditor

close

public void close(boolean save)
Description copied from class: KTableCellEditor
Deactivates the editor.

Overrides:
close in class KTableCellEditor
Parameters:
save - If true, the content is saved to the underlying table.

setBounds

public void setBounds(org.eclipse.swt.graphics.Rectangle rect)
Description copied from class: KTableCellEditor
Sets the editor's position and size

Overrides:
setBounds in class KTableCellEditor

setItems

public void setItems(java.lang.String[] items)

setContent

public void setContent(java.lang.Object content)
Description copied from class: KTableCellEditor
Allows that external classes can set the content of the underlying

Specified by:
setContent in class KTableCellEditor
Parameters:
content - The new content to set.