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,ObjectTableColumn.PopupMenuBuilderSourceForHeader,ObjectTableColumnValue.ObjectTableColumnCellView
- Direct Known Subclasses:
GuiSwingTableColumnBoolean.CheckBoxEditor
- Enclosing class:
ObjectTableColumnValue
public static class ObjectTableColumnValue.ObjectTableCellEditor
extends AbstractCellEditor
implements TableCellEditor, ObjectTableColumnValue.ObjectTableColumnCellView, ObjectTableColumn.PopupMenuBuilderSourceForHeader
a cell-editor with
GuiSwingView.ValuePane- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected JComponentprotected booleanprotected Borderprotected Borderprotected booleanFields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
ConstructorsConstructorDescriptionObjectTableCellEditor(JComponent component, boolean skipShutDown, GuiSwingTableColumn.SpecifierManagerIndex specifierIndex) -
Method Summary
Modifier and TypeMethodDescriptionprotected Colorcalled fromsetBorders(JTable, int)protected Colorcalled fromsetBorders(JTable, int)*intgetHeaderMenuItems(JTable table) getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) booleanbooleanvoidnotifyEditStart(JTable table, Object value, boolean isSelected, int row, int column) protected voidsetBorders(JTable table, int column) voidsetBorderSameAsRenderer(boolean borderSameAsRenderer) voidsetClickCount(int clickCount) voidsetMarginBorder(Border marginBorder) Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell, stopCellEditingMethods 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.ValuePaneskipShutDown- if true,ObjectTableColumnValue.shutdown()process for the component will be skippedspecifierIndex- optional specifier for row-index (nullable)
-
-
Method Details
-
getComponent
- Specified by:
getComponentin interfaceObjectTableColumnValue.ObjectTableColumnCellView
-
isSkippingSet
public boolean isSkippingSet()- Specified by:
isSkippingSetin interfaceObjectTableColumnValue.ObjectTableColumnCellView
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponentin 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:
isCellEditablein interfaceCellEditor- Overrides:
isCellEditablein classAbstractCellEditor
-
setClickCount
public void setClickCount(int clickCount) -
getClickCount
public int getClickCount() -
getHeaderMenuItems
- Specified by:
getHeaderMenuItemsin interfaceObjectTableColumn.PopupMenuBuilderSourceForHeader- Parameters:
table- the target table- Returns:
- obtains the list from component if it implements
ObjectTableColumn.PopupMenuBuilderSourceForHeader - Since:
- 1.8
-