pivot.wtk.content
Class ButtonDataRenderer

java.lang.Object
  extended by pivot.wtk.Component
      extended by pivot.wtk.Container
          extended by pivot.wtk.FlowPane
              extended by pivot.wtk.content.ButtonDataRenderer
All Implemented Interfaces:
java.lang.Iterable<Component>, Sequence<Component>, Button.DataRenderer, ConstrainedVisual, Renderer, Visual
Direct Known Subclasses:
CalendarButtonDataRenderer, LinkButtonDataRenderer, ListButtonDataRenderer, MenuButtonDataRenderer

public class ButtonDataRenderer
extends FlowPane
implements Button.DataRenderer

Default button data renderer.

Author:
gbrown

Nested Class Summary
 
Nested classes/interfaces inherited from class pivot.wtk.Component
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary
 
Nested classes/interfaces inherited from interface pivot.collections.Sequence
Sequence.Search, Sequence.Sort, Sequence.Tree
 
Field Summary
protected  ImageView imageView
           
protected  Label label
           
 
Constructor Summary
ButtonDataRenderer()
           
 
Method Summary
 void render(java.lang.Object data, Button button, boolean highlighted)
           
 void setSize(int width, int height)
          NOTE This method should only be called during layout.
 
Methods inherited from class pivot.wtk.FlowPane
getOrientation, setOrientation, setOrientation
 
Methods inherited from class pivot.wtk.Container
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, invalidate, isAncestor, isFocusable, isValid, iterator, load, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, requestFocus, setContextKey, setEnabled, setFocusTraversalPolicy, setParent, setTooltip, setVisible, store, store, update, validate
 
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, getHandle, getHeight, getLocation, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installSkin, isBlocked, isDisplayable, isEnabled, isFocused, isMouseOver, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isVisible, keyPressed, keyReleased, keyTyped, mapPointFromAncestor, mapPointToAncestor, mouseOver, repaint, repaint, repaint, repaint, repaint, repaint, requestFocus, scrollAreaToVisible, scrollAreaToVisible, setAttributes, setCursor, setCursor, setDisplayable, setDragSource, setDropTarget, setFocused, setLocation, setLocation, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setUserData, toString, transferFocus
 
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
 
Methods inherited from interface pivot.wtk.Visual
getHeight, getWidth, paint
 

Field Detail

imageView

protected ImageView imageView

label

protected Label label
Constructor Detail

ButtonDataRenderer

public ButtonDataRenderer()
Method Detail

setSize

public void setSize(int width,
                    int height)
Description copied from class: Component
NOTE This method should only be called during layout. Callers should use Component.setPreferredSize(int, int).

Specified by:
setSize in interface ConstrainedVisual
Overrides:
setSize in class Component

render

public void render(java.lang.Object data,
                   Button button,
                   boolean highlighted)
Specified by:
render in interface Button.DataRenderer