|
JBCSolutions - Jbcgrid v1.6 This document is the API specification for the JbcGrid, version 1.6 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
jbc.grid.JbcCellEditorComboBox
public class JbcCellEditorComboBox
This class implements a JCombobox as an editor and allows to edit values in a table cell. This class uses the ClickCountToStart value provided by JbcGridTable as a default value. This CellEditor takes the alternate background color feature into account. This class is extended from DefaultCellEditor.
Constructor Summary | |
---|---|
JbcCellEditorComboBox()
Creates a JbcCellEditorComboBox with a default data model. |
|
JbcCellEditorComboBox(javax.swing.ComboBoxModel aModel)
Creates a JbcCellEditorComboBox that takes it's items from an
existing ComboBoxModel . |
|
JbcCellEditorComboBox(java.lang.Object[] items)
Creates a JbcCellEditorComboBox that contains the elements
in the specified array. |
|
JbcCellEditorComboBox(java.util.Vector items)
Creates a JbcCellEditorComboBox that contains the elements
in the specified Vector. |
Method Summary | |
---|---|
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
Sets an initial value for the editor. |
Methods inherited from class javax.swing.DefaultCellEditor |
---|
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing |
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 |
Methods inherited from interface javax.swing.CellEditor |
---|
addCellEditorListener, removeCellEditorListener |
Constructor Detail |
---|
public JbcCellEditorComboBox()
JbcCellEditorComboBox
with a default data model.
public JbcCellEditorComboBox(javax.swing.ComboBoxModel aModel)
JbcCellEditorComboBox
that takes it's items from an
existing ComboBoxModel
.
public JbcCellEditorComboBox(java.lang.Object[] items)
JbcCellEditorComboBox
that contains the elements
in the specified array.
public JbcCellEditorComboBox(java.util.Vector items)
JbcCellEditorComboBox
that contains the elements
in the specified Vector.
Method Detail |
---|
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
value
for the editor. This will cause
the editor to stopEditing
and lose any partially
edited value if the editor is editing when this method is called.
Returns the component that should be added to the client's
Component
hierarchy. Once installed in the client's
hierarchy this component will then be able to draw and receive
user input.
getTableCellEditorComponent
in interface javax.swing.table.TableCellEditor
getTableCellEditorComponent
in class javax.swing.DefaultCellEditor
table
- the JTable
that is asking the
editor to edit; can be null
value
- the value of the cell to be edited; it is
up to the specific editor to interpret
and draw the value. For example, if value is
the string "true", it could be rendered as a
string or it could be rendered as a check
box that is checked. null
is a valid valueisSelected
- true if the cell is to be rendered with
highlightingrow
- the row of the cell being editedcolumn
- the column of the cell being edited
|
JBCSolutions - Jbcgrid v1.6 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |