MetaDone
metadone.client.grasyla2.swing.GrasylaCellEditor Class Reference
Inheritance diagram for metadone.client.grasyla2.swing.GrasylaCellEditor:
Collaboration diagram for metadone.client.grasyla2.swing.GrasylaCellEditor:

List of all members.

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()

Detailed Description

A cell editor for tables and trees.

This one represents the cell as the JComponent value of the cell.

Author:
kma

Member Function Documentation

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]

Member Data Documentation

final Map<JComponent, Pair<Boolean, Color> > metadone.client.grasyla2.swing.GrasylaCellEditor.BACKGROUND = Collections.synchronizedMap(new WeakHashMap<JComponent, Pair<Boolean, Color>>()) [static, private]
final Color metadone.client.grasyla2.swing.GrasylaCellEditor.SELECTION_COLOR = DEFAULT_TREE_RENDERER.getBackgroundSelectionColor() [static, private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations