pivot.wtk.content
Class TableViewDateCellRenderer

java.lang.Object
  extended by pivot.wtk.Component
      extended by pivot.wtk.Label
          extended by pivot.wtk.content.TableViewCellRenderer
              extended by pivot.wtk.content.TableViewDateCellRenderer
All Implemented Interfaces:
ConstrainedVisual, Renderer, TableView.CellRenderer, Visual

public class TableViewDateCellRenderer
extends TableViewCellRenderer

Default renderer for table view cells that contain date data. Renders cell contents as a formatted date.

Author:
gbrown

Nested Class Summary
 
Nested classes/interfaces inherited from class pivot.wtk.Component
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary
 
Field Summary
static DateFormat DEFAULT_DATE_FORMAT
           
 
Constructor Summary
TableViewDateCellRenderer()
           
 
Method Summary
 DateFormat getDateFormat()
           
 void render(Object value, TableView tableView, TableView.Column column, boolean rowSelected, boolean rowHighlighted, boolean rowDisabled)
           
 void setDateFormat(DateFormat dateFormat)
           
 void setDateFormat(String dateFormat)
           
 
Methods inherited from class pivot.wtk.content.TableViewCellRenderer
renderStyles
 
Methods inherited from class pivot.wtk.Label
getLabelListeners, getText, getTextKey, load, setText, setTextKey, store
 
Methods inherited from class pivot.wtk.Component
clearFocus, clearFocus, finalize, getAttributes, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentDragDropListeners, getComponentKeyListeners, getComponentLayoutListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponents, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getGraphics, getHandle, getHeight, getLocation, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installSkin, invalidate, isBlocked, isDisplayable, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, load, mapPointFromAncestor, mapPointToAncestor, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, paint, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setCursor, setCursor, setDisplayable, setDragSource, setDropTarget, setEnabled, setFocused, setHeight, setLocation, setLocation, setParent, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setVisible, setWidth, setX, setY, store, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface pivot.wtk.Renderer
getStyles
 
Methods inherited from interface pivot.wtk.ConstrainedVisual
getPreferredHeight, getPreferredSize, getPreferredWidth, setSize
 
Methods inherited from interface pivot.wtk.Visual
getHeight, getWidth, paint
 

Field Detail

DEFAULT_DATE_FORMAT

public static final DateFormat DEFAULT_DATE_FORMAT
Constructor Detail

TableViewDateCellRenderer

public TableViewDateCellRenderer()
Method Detail

getDateFormat

public DateFormat getDateFormat()

setDateFormat

public void setDateFormat(DateFormat dateFormat)

setDateFormat

public void setDateFormat(String dateFormat)

render

public void render(Object value,
                   TableView tableView,
                   TableView.Column column,
                   boolean rowSelected,
                   boolean rowHighlighted,
                   boolean rowDisabled)
Specified by:
render in interface TableView.CellRenderer
Overrides:
render in class TableViewCellRenderer