|
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 com.jidesoft.swing.JideLabel com.jidesoft.grid.VerticalTableCellRenderer com.jidesoft.grid.VerticalContextSensitiveCellRenderer
public class VerticalContextSensitiveCellRenderer
TableCellRenderer which can accept ConverterContext. All TableCellRenderers we built extends this class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.grid.VerticalTableCellRenderer |
---|
VerticalTableCellRenderer.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
|
static EditorContext |
CONTEXT_COUNTER_CLOCKWISE
|
protected static Border |
noFocusBorder
An empty Border . |
protected static Border |
SAFE_NO_FOCUS_BORDER
|
Fields inherited from class com.jidesoft.swing.JideLabel |
---|
PROPERTY_CLOCKWISE |
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 com.jidesoft.swing.Alignable |
---|
PROPERTY_ORIENTATION |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
VerticalContextSensitiveCellRenderer()
Creates a context sensitive cell renderer. |
|
VerticalContextSensitiveCellRenderer(Class<?> clazz)
Creates a context sensitive cell renderer for a specified type. |
|
VerticalContextSensitiveCellRenderer(Class<?> clazz,
ConverterContext context)
Creates a context sensitive cell renderer using specified type and the converter context. |
|
VerticalContextSensitiveCellRenderer(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)
Sets the String object for the cell being rendered to
value . |
Methods inherited from class com.jidesoft.grid.VerticalTableCellRenderer |
---|
firePropertyChange, firePropertyChange, getTableCellRendererComponent, invalidate, isOpaque, repaint, repaint, repaint, revalidate, setBackground, setForeground, updateUI, validate |
Methods inherited from class com.jidesoft.swing.JideLabel |
---|
getOrientation, getUIClassID, isClockwise, setClockwise, setOrientation, supportHorizontalOrientation, supportVerticalOrientation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.jidesoft.swing.AlignmentSupport |
---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
Field Detail |
---|
public static EditorContext CONTEXT
public static EditorContext CONTEXT_COUNTER_CLOCKWISE
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 VerticalContextSensitiveCellRenderer()
public VerticalContextSensitiveCellRenderer(Class<?> clazz)
clazz
- typepublic VerticalContextSensitiveCellRenderer(ConverterContext context)
context
- converter contextpublic VerticalContextSensitiveCellRenderer(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)
VerticalTableCellRenderer
String
object for the cell being rendered to
value
.
setValue
in class VerticalTableCellRenderer
value
- the string value for this cell; if value is
null
it sets the text value to an empty stringJLabel.setText(java.lang.String)
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 |