|
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.ContextSensitiveCellRenderer
public class ContextSensitiveCellRenderer
TableCellRenderer which can accept ConverterContext. All TableCellRenderers we built inside jide-grids package extends this class.
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 | |
---|---|
static EditorContext |
CONTEXT_SENSITIVE_CONTEXT
|
protected static Border |
noFocusBorder
An empty Border . |
protected static Border |
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 | |
---|---|
ContextSensitiveCellRenderer()
Creates a context sensitive cell renderer. |
|
ContextSensitiveCellRenderer(Class<?> clazz)
Creates a context sensitive cell renderer for a specified type. |
|
ContextSensitiveCellRenderer(Class<?> clazz,
ConverterContext context)
Creates a context sensitive cell renderer using specified type and the converter context. |
|
ContextSensitiveCellRenderer(ConverterContext context)
Creates a context sensitive cell renderer using the converter context. |
Method Summary | |
---|---|
ConverterContext |
getConverterContext()
Gets the converter context. |
EditorContext |
getEditorContext()
Gets the editor context. |
static Border |
getNoFocusBorder()
|
Class<?> |
getType()
Gets the class of the value. |
static void |
installColorFontAndBorder(JTable table,
Component component,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
void |
setConverterContext(ConverterContext context)
Sets the converter context. |
void |
setEditorContext(EditorContext context)
Sets the editor context. |
void |
setType(Class<?> clazz)
Sets the class of the value. |
protected void |
setValue(Object value)
|
Methods inherited from class javax.swing.table.DefaultTableCellRenderer |
---|
firePropertyChange, firePropertyChange, getTableCellRendererComponent, 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 EditorContext CONTEXT_SENSITIVE_CONTEXT
protected static Border noFocusBorder
Border
. This field might not be used. To change the Border
used by this
renderer override the getTableCellRendererComponent
method and set the border of the returned
component directly.
protected static final Border SAFE_NO_FOCUS_BORDER
Constructor Detail |
---|
public ContextSensitiveCellRenderer()
public ContextSensitiveCellRenderer(Class<?> clazz)
clazz
- typepublic ContextSensitiveCellRenderer(ConverterContext context)
context
- converter contextpublic ContextSensitiveCellRenderer(Class<?> clazz, ConverterContext context)
clazz
- typecontext
- converter contextMethod Detail |
---|
public Class<?> getType()
ConverterContextSupport
getType
in interface ConverterContextSupport
public void setType(Class<?> clazz)
ConverterContextSupport
setType
in interface ConverterContextSupport
protected void setValue(Object value)
setValue
in class DefaultTableCellRenderer
public void setConverterContext(ConverterContext context)
setConverterContext
in interface ConverterContextSupport
context
- converter contextpublic ConverterContext getConverterContext()
getConverterContext
in interface ConverterContextSupport
public EditorContext getEditorContext()
getEditorContext
in interface EditorContextSupport
public void setEditorContext(EditorContext context)
setEditorContext
in interface EditorContextSupport
context
- editor contextpublic static Border getNoFocusBorder()
public static void installColorFontAndBorder(JTable table, Component component, boolean isSelected, boolean hasFocus, int row, int column)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |