| 
 | JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
javax.swing.table.DefaultTableCellRenderer
com.jidesoft.grid.ExpandableTableCellRenderer
public class ExpandableTableCellRenderer
TableCellRenderer for tables that needs +/- 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  ExpandablePanel | _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 | |
|---|---|
| ExpandableTableCellRenderer() | |
| Method Summary | |
|---|---|
| protected  ExpandablePanel | createExpandablePanel(CategorizedTable table)Creates the TreeExpandablePanel. | 
| protected  void | customizeCellRenderer(JTable table,
                      Expandable expandable,
                      Component ret,
                      int rowIndex,
                      int columnIndex) | 
|  TableCellRenderer | getActualCellRenderer()Gets the actual cell renderer. | 
|  Component | getTableCellRendererComponent(JTable table,
                              Object value,
                              boolean isSelected,
                              boolean hasFocus,
                              int rowIndex,
                              int columnIndex)Returns the component used for drawing the cell. | 
| protected  Object | prepareValue(Object value)Prepares the value. | 
|  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 ExpandablePanel _cellRenderer
protected TableCellRenderer _actualCellRenderer
| Constructor Detail | 
|---|
public ExpandableTableCellRenderer()
| Method Detail | 
|---|
public Component getTableCellRendererComponent(JTable table,
                                               Object value,
                                               boolean isSelected,
                                               boolean hasFocus,
                                               int rowIndex,
                                               int columnIndex)
getTableCellRendererComponent in interface TableCellRenderergetTableCellRendererComponent in class DefaultTableCellRenderertable - the JTable that is asking the renderer to draw; can be nullvalue - 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 Object prepareValue(Object value)
value - the value
protected ExpandablePanel createExpandablePanel(CategorizedTable table)
table - the table
protected void customizeCellRenderer(JTable table,
                                     Expandable expandable,
                                     Component ret,
                                     int rowIndex,
                                     int columnIndex)
public TableCellRenderer getActualCellRenderer()
public void setActualCellRenderer(TableCellRenderer actualCellRenderer)
actualCellRenderer - the actual cell renderer.| 
 | JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||