|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Label
com.elegantj.awt.table.DefaultHeaderCellRenderer
DefaultHeaderCellRenderer is the awt label which provides the cell renderer for the AWTTable which Implements TableCellRenderer
| Nested Class Summary |
| Nested classes inherited from class java.awt.Label |
java.awt.Label.AccessibleAWTLabel |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
protected java.awt.Color |
backgroundNonSelectionColor
|
protected java.awt.Color |
backgroundSelectionColor
|
protected java.awt.Color |
borderSelectionColor
|
protected boolean |
hasFocus
|
protected java.awt.Color |
textNonSelectionColor
|
protected java.awt.Color |
textSelectionColor
|
| Fields inherited from class java.awt.Label |
CENTER, LEFT, RIGHT |
| 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 | |
DefaultHeaderCellRenderer()
Constructs the DefaultHeaderCellRenderer |
|
| Method Summary | |
java.awt.Color |
getBackgroundNonSelectionColor()
Returns the non selection background |
java.awt.Color |
getBackgroundSelectionColor()
Returns the selection background |
java.awt.Color |
getBorderSelectionColor()
Returns the border selection color |
java.awt.Dimension |
getPreferredSize()
Overriden getPreferredSize |
java.awt.Component |
getTableCellRendererComponent(AWTTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns the component used for drawing the cell. |
java.awt.Color |
getTextNonSelectionColor()
Returns the text non selection color |
java.awt.Color |
getTextSelectionColor()
Returns the text selection color |
void |
paint(java.awt.Graphics g)
Overriden the paint method |
void |
setBackgroundNonSelectionColor(java.awt.Color newColor)
Sets the non selection background |
void |
setBackgroundSelectionColor(java.awt.Color newColor)
Sets the selection background |
void |
setBorderSelectionColor(java.awt.Color color)
Sets the border selection color |
void |
setTextNonSelectionColor(java.awt.Color newColor)
Sets the text non selection color |
void |
setTextSelectionColor(java.awt.Color newColor)
Sets the text selection color |
void |
setValue(java.lang.Object value)
Sets the value for the cell renderer |
| Methods inherited from class java.awt.Label |
addNotify, getAccessibleContext, getAlignment, getText, paramString, setAlignment, setText |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean hasFocus
protected java.awt.Color backgroundNonSelectionColor
protected java.awt.Color backgroundSelectionColor
protected java.awt.Color textNonSelectionColor
protected java.awt.Color textSelectionColor
protected java.awt.Color borderSelectionColor
| Constructor Detail |
public DefaultHeaderCellRenderer()
| Method Detail |
public void setTextNonSelectionColor(java.awt.Color newColor)
newColor - The text non selection colorpublic java.awt.Color getTextNonSelectionColor()
public void setTextSelectionColor(java.awt.Color newColor)
newColor - The text selection colorpublic java.awt.Color getTextSelectionColor()
public void setBackgroundNonSelectionColor(java.awt.Color newColor)
newColor - The non selection backgroundpublic java.awt.Color getBackgroundNonSelectionColor()
public void setBackgroundSelectionColor(java.awt.Color newColor)
newColor - The selection backgroundpublic java.awt.Color getBackgroundSelectionColor()
public void setBorderSelectionColor(java.awt.Color color)
setBorderSelectionColor in interface TableCellRendererpublic java.awt.Color getBorderSelectionColor()
getBorderSelectionColor in interface TableCellRenderer
public java.awt.Component getTableCellRendererComponent(AWTTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
getTableCellRendererComponent in interface TableCellRenderertable - the AWTTable that is asking the
renderer to draw; can be nullvalue - the value of the cell to be rendered. It is
up to the specific renderer to interpret
and draw the value.isSelected - true if the cell is to be rendered with the
selection highlighted; otherwise falsehasFocus - if true, render cell appropriately. For
example, put a special border on the cell, if
the cell can be edited, render in the color used
to indicate editingrow - the row index of the cell being drawn.column - the column index of the cell being drawnpublic void setValue(java.lang.Object value)
value - The value for the cell rendererpublic void paint(java.awt.Graphics g)
paint in interface TableCellRendererpublic java.awt.Dimension getPreferredSize()
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||