|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JLabel javax.swing.table.DefaultTableCellRenderer com.jidesoft.grid.HierarchicalTableCellRenderer
public class HierarchicalTableCellRenderer
The cell renderer for the expandable column of HierarchicalTable
where there is a +/- icon.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.table.DefaultTableCellRenderer |
---|
DefaultTableCellRenderer.UIResource |
Nested classes/interfaces inherited from class javax.swing.JLabel |
---|
JLabel.AccessibleJLabel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected TableCellRenderer |
_actualCellRenderer
|
protected MarginExpandablePanel |
_cellRenderer
|
Fields inherited from class javax.swing.table.DefaultTableCellRenderer |
---|
noFocusBorder |
Fields inherited from class javax.swing.JLabel |
---|
labelFor |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
HierarchicalTableCellRenderer()
|
Method Summary | |
---|---|
protected MarginExpandablePanel |
createMarginExpandablePanel(CategorizedTable table)
Creates the MarginExpandablePanel. |
TableCellRenderer |
getActualCellRenderer()
Gets the actual cell renderer. |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns the component used for drawing the cell. |
void |
releaseCellRenderer()
|
void |
setActualCellRenderer(TableCellRenderer actualCellRenderer)
Sets the actual cell renderer. |
Methods inherited from class javax.swing.table.DefaultTableCellRenderer |
---|
firePropertyChange, firePropertyChange, invalidate, isOpaque, repaint, repaint, repaint, revalidate, setBackground, setForeground, setValue, updateUI, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected MarginExpandablePanel _cellRenderer
protected TableCellRenderer _actualCellRenderer
Constructor Detail |
---|
public HierarchicalTableCellRenderer()
Method Detail |
---|
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
getTableCellRendererComponent
in class DefaultTableCellRenderer
table
- the JTable
that is asking the renderer to draw; can be null
value
- the value of the cell to be rendered. It is up to the specific renderer to interpret and draw
the value. For example, if value
is the string "true", it could be rendered as a
string or it could be rendered as a check box that is checked. null
is a valid
valueisSelected
- true if the cell is to be rendered with the selection highlighted; otherwise falsehasFocus
- if true, render cell appropriately. For example, put a special border on the cell, if the cell
can be edited, render in the color used to indicate editingrow
- the row index of the cell being drawn. When drawing the header, the value of row
is -1column
- the column index of the cell being drawn
protected MarginExpandablePanel createMarginExpandablePanel(CategorizedTable table)
table
- the CategorizedTable.
public TableCellRenderer getActualCellRenderer()
public void setActualCellRenderer(TableCellRenderer actualCellRenderer)
actualCellRenderer
- the actual cell renderer.public void releaseCellRenderer()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |