|
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.TreeTableCellRenderer
public class TreeTableCellRenderer
The cell renderer for the expandable column of TreeTable
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 TreeExpandablePanel |
_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 | |
---|---|
TreeTableCellRenderer()
|
Method Summary | |
---|---|
protected TreeExpandablePanel |
createTreeExpandablePanel(TreeTable treeTable)
Creates the TreeExpandablePanel. |
protected void |
customizeCellRenderer(Row row,
Component ret)
Customizes the PropertyTableCellRenderer style. |
TableCellRenderer |
getActualCellRenderer()
Gets the actual cell renderer. |
protected Color |
getPaddingBackground(JTable table,
int rowIndex,
int columnIndex)
Gets the background of the padding area in a TreeTable. |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int rowIndex,
int columnIndex)
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 TreeExpandablePanel _cellRenderer
protected TableCellRenderer _actualCellRenderer
Constructor Detail |
---|
public TreeTableCellRenderer()
Method Detail |
---|
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int columnIndex)
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 editingrowIndex
- the row index of the cell being drawn. When drawing the header, the value of row
is -1columnIndex
- the column index of the cell being drawn
protected Color getPaddingBackground(JTable table, int rowIndex, int columnIndex)
table
- the tablerowIndex
- the row indexcolumnIndex
- the column index
protected TreeExpandablePanel createTreeExpandablePanel(TreeTable treeTable)
treeTable
- the tree table
protected void customizeCellRenderer(Row row, Component ret)
row
- the row instanceret
- the renderer componentpublic TableCellRenderer getActualCellRenderer()
public void setActualCellRenderer(TableCellRenderer actualCellRenderer)
actualCellRenderer
- the cell rendererpublic void releaseCellRenderer()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |