Module org.autogui
Package org.autogui.swing.table
Class ObjectTableColumnValue.ObjectTableCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
org.autogui.swing.table.ObjectTableColumnValue.ObjectTableCellEditor
- All Implemented Interfaces:
Serializable
,CellEditor
,TableCellEditor
,ObjectTableColumnValue.ObjectTableColumnCellView
- Direct Known Subclasses:
GuiSwingTableColumnBoolean.CheckBoxEditor
- Enclosing class:
ObjectTableColumnValue
public static class ObjectTableColumnValue.ObjectTableCellEditor
extends AbstractCellEditor
implements TableCellEditor, ObjectTableColumnValue.ObjectTableColumnCellView
a cell-editor with
GuiSwingView.ValuePane
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected int
protected JComponent
protected boolean
protected Border
protected Border
protected boolean
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionObjectTableCellEditor
(JComponent component, boolean skipShutDown, GuiSwingTableColumn.SpecifierManagerIndex specifierIndex) -
Method Summary
Modifier and TypeMethodDescriptionprotected Color
called fromsetBorders(JTable, int)
protected Color
called fromsetBorders(JTable, int)
*int
getTableCellEditorComponent
(JTable table, Object value, boolean isSelected, int row, int column) boolean
boolean
void
notifyEditStart
(JTable table, Object value, boolean isSelected, int row, int column) protected void
setBorders
(JTable table, int column) void
setBorderSameAsRenderer
(boolean borderSameAsRenderer) void
setClickCount
(int clickCount) void
setMarginBorder
(Border marginBorder) Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, 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, removeCellEditorListener, shouldSelectCell, stopCellEditing
Methods inherited from interface org.autogui.swing.table.ObjectTableColumnValue.ObjectTableColumnCellView
setForComponent
-
Field Details
-
component
-
clickCount
protected int clickCount -
skipShutDown
protected boolean skipShutDown -
specifierIndex
-
originalBorder
- Since:
- 1.6
-
marginBorder
- Since:
- 1.6
-
borderSameAsRenderer
protected boolean borderSameAsRenderer -
lastTriggerIsSelection
protected boolean lastTriggerIsSelection
-
-
Constructor Details
-
ObjectTableCellEditor
public ObjectTableCellEditor(JComponent component, boolean skipShutDown, GuiSwingTableColumn.SpecifierManagerIndex specifierIndex) - Parameters:
component
- the editor component, must be aGuiSwingView.ValuePane
skipShutDown
- if true,ObjectTableColumnValue.shutdown()
process for the component will be skippedspecifierIndex
- optional specifier for row-index (nullable)
-
-
Method Details
-
getComponent
- Specified by:
getComponent
in interfaceObjectTableColumnValue.ObjectTableColumnCellView
-
isSkippingSet
public boolean isSkippingSet()- Specified by:
isSkippingSet
in interfaceObjectTableColumnValue.ObjectTableColumnCellView
-
getCellEditorValue
- Specified by:
getCellEditorValue
in interfaceCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponent
in interfaceTableCellEditor
-
notifyEditStart
-
setMarginBorder
- Parameters:
marginBorder
- an additional border- Since:
- 1.6
-
setBorderSameAsRenderer
public void setBorderSameAsRenderer(boolean borderSameAsRenderer) - Parameters:
borderSameAsRenderer
- if true it will ignore merginBorder and doTextCellRenderer.setCellTableBorderWithMargin(JTable, JComponent, boolean, boolean, int, int)
- Since:
- 1.7
-
setBorders
- Parameters:
table
- the target tablecolumn
- column view index- Since:
- 1.6
-
getCellBackgroundEditing
called fromsetBorders(JTable, int)
- Returns:
- null
- Since:
- 1.6
-
getCellBackgroundEditingBorder
called fromsetBorders(JTable, int)
*- Returns:
- table-background
- Since:
- 1.6
-
isCellEditable
- Specified by:
isCellEditable
in interfaceCellEditor
- Overrides:
isCellEditable
in classAbstractCellEditor
-
setClickCount
public void setClickCount(int clickCount) -
getClickCount
public int getClickCount()
-