|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
jigcell.compare.ui.BasicTable.BasicEditor
public static class BasicTable.BasicEditor
Default editor for a BasicTable.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor |
|---|
javax.swing.DefaultCellEditor.EditorDelegate |
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_FOREGROUNDMODIFIED
Configuration property key for the modified cell foreground color |
protected static java.awt.Color |
DEFAULT_FOREGROUNDMODIFIED
Default foreground color for modified cells |
private IBasicTableHost |
host
Host view of this table |
| Fields inherited from class javax.swing.DefaultCellEditor |
|---|
clickCountToStart, delegate, editorComponent |
| Fields inherited from class javax.swing.AbstractCellEditor |
|---|
changeEvent, listenerList |
| Constructor Summary | |
|---|---|
BasicTable.BasicEditor()
Creates a new editor. |
|
BasicTable.BasicEditor(IBasicTableHost host)
Creates a new editor. |
|
BasicTable.BasicEditor(IBasicTableHost host,
javax.swing.JCheckBox checkBox)
Creates a new editor. |
|
BasicTable.BasicEditor(IBasicTableHost host,
javax.swing.JComboBox comboBox)
Creates a new editor. |
|
BasicTable.BasicEditor(IBasicTableHost host,
javax.swing.JTextField textField)
Creates a new editor. |
|
| Method Summary | |
|---|---|
java.awt.Color |
getColor(java.lang.String key)
A color for use with this table. |
protected java.awt.Color |
getColorFromConfig(java.lang.String key,
java.awt.Color defaultColor)
Color specified by the configuration of the host view. |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean selected,
int row,
int column)
|
private java.lang.String |
mungeKey(java.lang.String key)
Creates the actual key value based on a generic key value. |
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
putColor(java.lang.String key,
java.awt.Color color)
Sets a color for use with this editor. |
void |
readConfiguration(java.lang.String state)
|
private void |
registerHost(IBasicTableHost host)
Hooks this editor up to the host so that configuration data can be obtained. |
| Methods inherited from class javax.swing.DefaultCellEditor |
|---|
cancelCellEditing, getCellEditorValue, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing |
| Methods inherited from class javax.swing.AbstractCellEditor |
|---|
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
| 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, removeCellEditorListener |
| Methods inherited from interface javax.swing.CellEditor |
|---|
addCellEditorListener, removeCellEditorListener |
| Field Detail |
|---|
public static final java.lang.String CONFIG_FOREGROUNDMODIFIED
protected static final java.awt.Color DEFAULT_FOREGROUNDMODIFIED
private IBasicTableHost host
| Constructor Detail |
|---|
public BasicTable.BasicEditor()
public BasicTable.BasicEditor(IBasicTableHost host)
host - Host view of this table
public BasicTable.BasicEditor(IBasicTableHost host,
javax.swing.JCheckBox checkBox)
host - Host view of this tablecheckBox - Editor control
public BasicTable.BasicEditor(IBasicTableHost host,
javax.swing.JComboBox comboBox)
host - Host view of this tablecomboBox - Editor control
public BasicTable.BasicEditor(IBasicTableHost host,
javax.swing.JTextField textField)
host - Host view of this tabletextField - Editor control| Method Detail |
|---|
public java.awt.Color getColor(java.lang.String key)
key - Color key
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean selected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditorgetTableCellEditorComponent in class javax.swing.DefaultCellEditorpublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListener
public void putColor(java.lang.String key,
java.awt.Color color)
key - Color keycolor - Colorpublic void readConfiguration(java.lang.String state)
ITab.readConfiguration(java.lang.String)
protected java.awt.Color getColorFromConfig(java.lang.String key,
java.awt.Color defaultColor)
key - Configuration keydefaultColor - Color to use if configuration does not specify a valueprivate java.lang.String mungeKey(java.lang.String key)
key - Keyprivate void registerHost(IBasicTableHost host)
host - Host view of this table
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||