org.apache.pivot.wtk.skin.terra
Class TerraFileBrowserSkin.FileRenderer

java.lang.Object
  extended by org.apache.pivot.wtk.Component
      extended by org.apache.pivot.wtk.Container
          extended by org.apache.pivot.wtk.BoxPane
              extended by org.apache.pivot.wtk.skin.terra.TerraFileBrowserSkin.FileRenderer
All Implemented Interfaces:
Iterable<org.apache.pivot.wtk.Component>, org.apache.pivot.collections.Sequence<org.apache.pivot.wtk.Component>, org.apache.pivot.wtk.ConstrainedVisual, org.apache.pivot.wtk.Visual
Direct Known Subclasses:
TerraFileBrowserSkin.ListButtonFileRenderer, TerraFileBrowserSkin.ListViewFileRenderer, TerraFileBrowserSkin.TableViewFileRenderer
Enclosing class:
TerraFileBrowserSkin

public abstract static class TerraFileBrowserSkin.FileRenderer
extends org.apache.pivot.wtk.BoxPane

Abstract renderer for displaying file system contents.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container
org.apache.pivot.wtk.Container.EDT_Checker
 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component
org.apache.pivot.wtk.Component.DecoratorSequence, org.apache.pivot.wtk.Component.StyleDictionary, org.apache.pivot.wtk.Component.UserDataDictionary
 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
org.apache.pivot.collections.Sequence.Tree<T>
 
Field Summary
static org.apache.pivot.wtk.media.Image FILE_IMAGE
           
static org.apache.pivot.wtk.media.Image FOLDER_IMAGE
           
static org.apache.pivot.wtk.media.Image HOME_FOLDER_IMAGE
           
static int ICON_HEIGHT
           
static int ICON_WIDTH
           
protected  org.apache.pivot.wtk.ImageView imageView
           
protected  org.apache.pivot.wtk.Label label
           
 
Constructor Summary
TerraFileBrowserSkin.FileRenderer()
           
 
Method Summary
static org.apache.pivot.wtk.media.Image getIcon(File file)
          Obtains the icon to display for a given file.
 void setSize(int width, int height)
           
 
Methods inherited from class org.apache.pivot.wtk.BoxPane
getBoxPaneListeners, getOrientation, setOrientation
 
Methods inherited from class org.apache.pivot.wtk.Container
add, assertEventDispatchThread, assertEventDispatchThread, clear, containsFocus, descendantAdded, descendantGainedFocus, descendantLostFocus, descendantRemoved, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getFocusTraversalPolicy, getGraphics, getLength, getNamedComponent, indexOf, insert, invalidate, isAncestor, isDoubleBuffered, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, repaint, requestFocus, setDoubleBuffered, setEventDispatchThreadChecker, setFocusTraversalPolicy, setParent, setVisible, store, transferFocus, update
 
Methods inherited from class org.apache.pivot.wtk.Component
clearFocus, contains, getAncestor, getAncestor, getAttribute, getAutomationID, getBaseline, getBaseline, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentKeyListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponentStateListeners, getComponentStyleListeners, getComponentTooltipListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getHeight, getHeightLimits, getLocation, getMaximumHeight, getMaximumWidth, getMenuHandler, getMinimumHeight, getMinimumWidth, getMouseLocation, getName, getNamedStyles, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipDelay, getTooltipText, getTooltipWrapText, getTypedStyles, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWidthLimits, getWindow, getX, getY, indexBoundsCheck, installSkin, isBlocked, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, mapPointFromAncestor, mapPointFromAncestor, mapPointToAncestor, mapPointToAncestor, mouseOver, reenterMouse, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, setCursor, setDragSource, setDropTarget, setEnabled, setFocused, setHeight, setHeightLimits, setHeightLimits, setLocation, setLocation, setMaximumHeight, setMaximumWidth, setMenuHandler, setMinimumHeight, setMinimumWidth, setName, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSkin, setStyleName, setStyleNames, setStyleNames, setStyles, setStyles, setTooltipDelay, setTooltipText, setTooltipWrapText, setWidth, setWidthLimits, setWidthLimits, setX, setY, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

imageView

protected org.apache.pivot.wtk.ImageView imageView

label

protected org.apache.pivot.wtk.Label label

ICON_WIDTH

public static final int ICON_WIDTH
See Also:
Constant Field Values

ICON_HEIGHT

public static final int ICON_HEIGHT
See Also:
Constant Field Values

FOLDER_IMAGE

public static final org.apache.pivot.wtk.media.Image FOLDER_IMAGE

HOME_FOLDER_IMAGE

public static final org.apache.pivot.wtk.media.Image HOME_FOLDER_IMAGE

FILE_IMAGE

public static final org.apache.pivot.wtk.media.Image FILE_IMAGE
Constructor Detail

TerraFileBrowserSkin.FileRenderer

public TerraFileBrowserSkin.FileRenderer()
Method Detail

setSize

public void setSize(int width,
                    int height)
Specified by:
setSize in interface org.apache.pivot.wtk.ConstrainedVisual
Overrides:
setSize in class org.apache.pivot.wtk.Component

getIcon

public static org.apache.pivot.wtk.media.Image getIcon(File file)
Obtains the icon to display for a given file.

Parameters:
file -