ElegantJ Tables Java API Specification v1.1

com.elegantj.awt.table
Class CheckboxTableCellRenderer

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Checkbox
          extended bycom.elegantj.awt.table.CheckboxTableCellRenderer
All Implemented Interfaces:
javax.accessibility.Accessible, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable, TableCellRenderer

public class CheckboxTableCellRenderer
extends java.awt.Checkbox
implements TableCellRenderer, java.io.Externalizable

CheckboxTableCellRenderer is the awt checkbox which provides the cell renderer for the AWTTable which Implements TableCellRenderer

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Checkbox
java.awt.Checkbox.AccessibleAWTCheckbox
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
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
CheckboxTableCellRenderer()
          Constructs the CheckboxTableCellRenderer
 
Method Summary
 java.awt.Color getBorderSelectionColor()
          Method which returns the border selection color for the renderer, The border selection color is color which is set when the cell of the table is selected i.e.
 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.
 void paint(java.awt.Graphics g)
          Overriden the paint method
 void readExternal(java.io.ObjectInput in)
          Implementation of the Externalizable
 void setBorderSelectionColor(java.awt.Color color)
          Method which sets the border selection color of the renderer, The border selection color is color which is set, when the cell of the table is selected i.e.
 void setValue(java.lang.Object value)
          Sets the value for the cell renderer
 void writeExternal(java.io.ObjectOutput out)
          Implementation of the Externalizable
 
Methods inherited from class java.awt.Checkbox
addItemListener, addNotify, getAccessibleContext, getCheckboxGroup, getItemListeners, getLabel, getListeners, getSelectedObjects, getState, paramString, processEvent, processItemEvent, removeItemListener, setCheckboxGroup, setLabel, setState
 
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, 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, 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
 

Constructor Detail

CheckboxTableCellRenderer

public CheckboxTableCellRenderer()
Constructs the CheckboxTableCellRenderer

Method Detail

setBorderSelectionColor

public void setBorderSelectionColor(java.awt.Color color)
Method which sets the border selection color of the renderer, The border selection color is color which is set, when the cell of the table is selected i.e. the anchor cell's border is rendered with this color

Specified by:
setBorderSelectionColor in interface TableCellRenderer

getBorderSelectionColor

public java.awt.Color getBorderSelectionColor()
Method which returns the border selection color for the renderer, The border selection color is color which is set when the cell of the table is selected i.e. the anchor cell's border is rendered with this color

Specified by:
getBorderSelectionColor in interface TableCellRenderer

getTableCellRendererComponent

public 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. This method is used to configure the renderer appropriately before drawing.

Specified by:
getTableCellRendererComponent in interface TableCellRenderer
Parameters:
table - the AWTTable that is asking the renderer to draw; can be null
value - 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 false
hasFocus - 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 editing
row - the row index of the cell being drawn.
column - the column index of the cell being drawn

setValue

public void setValue(java.lang.Object value)
Sets the value for the cell renderer

Parameters:
value - The value for the cell renderer

paint

public void paint(java.awt.Graphics g)
Overriden the paint method

Specified by:
paint in interface TableCellRenderer

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overriden getPreferredSize


writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException,
                          java.awt.IllegalComponentStateException
Implementation of the Externalizable

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.awt.IllegalComponentStateException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Implementation of the Externalizable

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

ElegantJ Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.