|
||||||||||
| 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
org.tentackle.ui.FormTableCellRenderer
public class FormTableCellRenderer
Cell Renderer in FormTables.
| 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 |
|---|
| 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 | |
|---|---|
FormTableCellRenderer()
Creates a table cell renderer. |
|
| Method Summary | |
|---|---|
Color |
getFocusedBackground()
Gets the color for the focused background. |
Color |
getFocusedForeground()
Gets the color for the focused foreground. |
Font |
getRenderingFont()
Gets the rendering default font. |
Color |
getSelectedBackground()
Gets the color for the selected background. |
Color |
getSelectedForeground()
Gets the color for the selected foreground. |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns the default table cell renderer. |
Color |
getUnselectedBackground()
Gets the color for the unselected background. |
Color |
getUnselectedForeground()
Gets the color for the unselected foreground. |
void |
setFocusedBackground(Color c)
Sets the color for the focused background. |
void |
setFocusedForeground(Color c)
Sets the color for the focused foreground. |
void |
setRenderingFont(Font font)
Sets the rendering default font. |
void |
setSelectedBackground(Color c)
Sets the color for the selected background. |
void |
setSelectedForeground(Color c)
Sets the color for the selected foreground. |
void |
setUnselectedBackground(Color c)
Sets the color for the unselected background. |
void |
setUnselectedForeground(Color c)
Sets the color for the unselected foreground. |
| 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 |
| Constructor Detail |
|---|
public FormTableCellRenderer()
| Method Detail |
|---|
public void setSelectedForeground(Color c)
c - the foreground colorpublic Color getSelectedForeground()
public void setSelectedBackground(Color c)
c - the background colorpublic Color getSelectedBackground()
public void setUnselectedForeground(Color c)
c - the unselected foreground colorpublic Color getUnselectedForeground()
public void setUnselectedBackground(Color c)
c - the unselected background colorpublic Color getUnselectedBackground()
public void setFocusedForeground(Color c)
c - the focused foreground colorpublic Color getFocusedForeground()
public void setFocusedBackground(Color c)
c - the focused background colorpublic Color getFocusedBackground()
public void setRenderingFont(Font font)
font - the fontpublic Font getRenderingFont()
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
During a printing operation, this method will be called with
isSelected and hasFocus values of
false to prevent selection and focus from appearing
in the printed output. To do other customization based on whether
or not the table is being printed, check the return value from
JComponent.isPaintingForPrint().
Ovewritten due to formatting.
getTableCellRendererComponent in interface TableCellRenderergetTableCellRendererComponent in class DefaultTableCellRenderertable - the JTablevalue - 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
JComponent.isPaintingForPrint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||