|
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.ContextSensitiveCellRenderer
com.jidesoft.grid.ColorCellRenderer
public class ColorCellRenderer
CellRenderer for Color.
| Nested Class Summary | |
|---|---|
class |
ColorCellRenderer.ColorIcon
The color label component to paint the selected color. |
| 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 | |
|---|---|
static String |
PROPERTY_COLOR_ICON_VISIBLE
|
static String |
PROPERTY_COLOR_VALUE_VISIBLE
|
| Fields inherited from class com.jidesoft.grid.ContextSensitiveCellRenderer |
|---|
CONTEXT_SENSITIVE_CONTEXT, noFocusBorder, SAFE_NO_FOCUS_BORDER |
| 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 | |
|---|---|
ColorCellRenderer()
|
|
| Method Summary | |
|---|---|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
boolean |
isColorIconVisible()
Checks if the color icon is displayed. |
boolean |
isColorValueVisible()
Checks if the color value is displayed. |
boolean |
isCrossBackGroundStyle()
Get the flag if ColorComboBox should still draw a cross in the color label The default value now is false. |
void |
setColorIconVisible(boolean colorIconVisible)
Show or hide the color icon. |
void |
setColorValueVisible(boolean colorValueVisible)
Show or hide the color value. |
void |
setCrossBackGroundStyle(boolean crossBackGroundStyle)
Set the flag if ColorComboBox should still draw a cross in the color label The default value now is false. |
| Methods inherited from class com.jidesoft.grid.ContextSensitiveCellRenderer |
|---|
getConverterContext, getEditorContext, getNoFocusBorder, getType, installColorFontAndBorder, setConverterContext, setEditorContext, setType, setValue |
| Methods inherited from class javax.swing.table.DefaultTableCellRenderer |
|---|
firePropertyChange, firePropertyChange, invalidate, isOpaque, repaint, repaint, repaint, revalidate, setBackground, setForeground, updateUI, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_COLOR_VALUE_VISIBLE
public static final String PROPERTY_COLOR_ICON_VISIBLE
| Constructor Detail |
|---|
public ColorCellRenderer()
| Method Detail |
|---|
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
getTableCellRendererComponent in interface TableCellRenderergetTableCellRendererComponent in class DefaultTableCellRendererpublic boolean isColorValueVisible()
public void setColorValueVisible(boolean colorValueVisible)
colorValueVisible - true if the color value is visiblepublic boolean isColorIconVisible()
public void setColorIconVisible(boolean colorIconVisible)
colorIconVisible - true if the color value is visiblepublic boolean isCrossBackGroundStyle()
public void setCrossBackGroundStyle(boolean crossBackGroundStyle)
crossBackGroundStyle - true if you want to switch back to the original cross back ground
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||