MetaDone
|
Public Member Functions | |
Object | getCellEditorValue () |
JComponent | getTableCellEditorComponent (JTable table, Object value, boolean isSelected, int row, int column) |
JComponent | getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) |
JComponent | getTreeCellRendererComponent (JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) |
JComponent | getTreeCellEditorComponent (JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) |
Static Package Functions | |
[static initializer] | |
[static initializer] | |
Private Member Functions | |
void | updateStyle (JComponent comp, boolean selected, boolean focused) |
Private Attributes | |
Object | value |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
static final DefaultTableCellRenderer | DEFAULT_TABLE_RENDERER = new DefaultTableCellRenderer() |
static final DefaultTreeCellRenderer | DEFAULT_TREE_RENDERER = new DefaultTreeCellRenderer() |
static final JLabel | DEFAULT_EDITOR_COMPONENT = new JLabel("No editor available") |
static final Map< JComponent, Pair< Boolean, Color > > | BACKGROUND = Collections.synchronizedMap(new WeakHashMap<JComponent, Pair<Boolean, Color>>()) |
static final Color | SELECTION_COLOR = DEFAULT_TREE_RENDERER.getBackgroundSelectionColor() |
A cell editor for tables and trees.
This one represents the cell as the JComponent value of the cell.
metadone.client.grasyla2.swing.GrasylaCellEditor.[static initializer] | ( | ) | [static, package] |
metadone.client.grasyla2.swing.GrasylaCellEditor.[static initializer] | ( | ) | [static, package] |
Object metadone.client.grasyla2.swing.GrasylaCellEditor.getCellEditorValue | ( | ) |
JComponent metadone.client.grasyla2.swing.GrasylaCellEditor.getTableCellEditorComponent | ( | JTable | table, |
Object | value, | ||
boolean | isSelected, | ||
int | row, | ||
int | column | ||
) |
JComponent metadone.client.grasyla2.swing.GrasylaCellEditor.getTableCellRendererComponent | ( | JTable | table, |
Object | value, | ||
boolean | isSelected, | ||
boolean | hasFocus, | ||
int | row, | ||
int | column | ||
) |
JComponent metadone.client.grasyla2.swing.GrasylaCellEditor.getTreeCellEditorComponent | ( | JTree | tree, |
Object | value, | ||
boolean | isSelected, | ||
boolean | expanded, | ||
boolean | leaf, | ||
int | row | ||
) |
JComponent metadone.client.grasyla2.swing.GrasylaCellEditor.getTreeCellRendererComponent | ( | JTree | tree, |
Object | value, | ||
boolean | selected, | ||
boolean | expanded, | ||
boolean | leaf, | ||
int | row, | ||
boolean | hasFocus | ||
) |
void metadone.client.grasyla2.swing.GrasylaCellEditor.updateStyle | ( | JComponent | comp, |
boolean | selected, | ||
boolean | focused | ||
) | [private] |
Changes the style of the JComponent for displaying it.
comp | The component |
selected | Whether the row is selected |
focused | Whether the row is focused |
References metadone.client.grasyla2.swing.GrasylaCellEditor.BACKGROUND, and metadone.client.grasyla2.swing.GrasylaCellEditor.SELECTION_COLOR.
Referenced by metadone.client.grasyla2.swing.GrasylaCellEditor.getTableCellRendererComponent(), and metadone.client.grasyla2.swing.GrasylaCellEditor.getTreeCellRendererComponent().
final Map<JComponent, Pair<Boolean, Color> > metadone.client.grasyla2.swing.GrasylaCellEditor.BACKGROUND = Collections.synchronizedMap(new WeakHashMap<JComponent, Pair<Boolean, Color>>()) [static, private] |
final JLabel metadone.client.grasyla2.swing.GrasylaCellEditor.DEFAULT_EDITOR_COMPONENT = new JLabel("No editor available") [static, private] |
final DefaultTableCellRenderer metadone.client.grasyla2.swing.GrasylaCellEditor.DEFAULT_TABLE_RENDERER = new DefaultTableCellRenderer() [static, private] |
final DefaultTreeCellRenderer metadone.client.grasyla2.swing.GrasylaCellEditor.DEFAULT_TREE_RENDERER = new DefaultTreeCellRenderer() [static, private] |
final Color metadone.client.grasyla2.swing.GrasylaCellEditor.SELECTION_COLOR = DEFAULT_TREE_RENDERER.getBackgroundSelectionColor() [static, private] |
final long metadone.client.grasyla2.swing.GrasylaCellEditor.serialVersionUID = 1L [static, private] |
Object metadone.client.grasyla2.swing.GrasylaCellEditor.value [private] |