|
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.text.JTextComponent javax.swing.JTextArea com.jidesoft.swing.MultilineLabel com.jidesoft.grid.MultilineTableCellRenderer
public class MultilineTableCellRenderer
A cell renderer using MultilineLabel as the renderer component to display a string in multiple lines.
Nested Class Summary | |
---|---|
static class |
MultilineTableCellRenderer.UIResource
A subclass of MultilineTableCellRenderer that implements UIResource . |
Nested classes/interfaces inherited from class javax.swing.JTextArea |
---|
JTextArea.AccessibleJTextArea |
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
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
|
protected static Border |
noFocusBorder
|
Fields inherited from class javax.swing.text.JTextComponent |
---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MultilineTableCellRenderer()
Creates a default table cell renderer. |
Method Summary | |
---|---|
ConverterContext |
getConverterContext()
Gets the converter context. |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns the default table cell renderer. |
Class<?> |
getType()
Gets the class of the value. |
void |
setConverterContext(ConverterContext context)
Sets the converter 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 . |
void |
updateUI()
Notification from the UIManager that the look and feel [L&F] has changed. |
Methods inherited from class com.jidesoft.swing.MultilineLabel |
---|
adjustUI, getMinimumSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EditorContext CONTEXT
protected static Border noFocusBorder
Constructor Detail |
---|
public MultilineTableCellRenderer()
Method Detail |
---|
public void updateUI()
UIManager
that the look and feel [L&F] has changed. Replaces the current UI
object with the latest version from the UIManager
.
updateUI
in class MultilineLabel
JComponent.updateUI()
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
getTableCellRendererComponent
in interface TableCellRenderer
table
- the JTable
value
- the value to assign to the cell at [row, column]
isSelected
- true if cell is selectedhasFocus
- true if cell has focusrow
- the row of the cell to rendercolumn
- the column of the cell to render
protected void setValue(Object value)
String
object for the cell being rendered to value
.
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 Class<?> getType()
ConverterContextSupport
getType
in interface ConverterContextSupport
public void setType(Class<?> clazz)
ConverterContextSupport
setType
in interface ConverterContextSupport
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |