Package org.apache.pivot.wtk.skin.terra
Class TerraFileBrowserSkin.FileRenderer
- java.lang.Object
-
- org.apache.pivot.wtk.Component
-
- org.apache.pivot.wtk.Container
-
- org.apache.pivot.wtk.BoxPane
-
- org.apache.pivot.wtk.skin.terra.TerraFileBrowserSkin.FileRenderer
-
- All Implemented Interfaces:
java.lang.Iterable<Component>,Sequence<Component>,ConstrainedVisual,Visual
- Direct Known Subclasses:
TerraFileBrowserSkin.ListButtonFileRenderer,TerraFileBrowserSkin.ListViewFileRenderer,TerraFileBrowserSkin.TableViewFileRenderer
- Enclosing class:
- TerraFileBrowserSkin
public abstract static class TerraFileBrowserSkin.FileRenderer extends BoxPane
Abstract renderer for displaying file system contents.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container
Container.EDTChecker
-
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary
-
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence
Sequence.Tree<T>
-
-
Field Summary
Fields Modifier and Type Field Description static ImageFILE_IMAGEstatic ImageFOLDER_IMAGEstatic ImageHOME_FOLDER_IMAGEstatic intICON_HEIGHTstatic intICON_WIDTHprotected ImageViewimageViewprotected Labellabel
-
Constructor Summary
Constructors Constructor Description FileRenderer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImagegetIcon(java.io.File file)voidsetSize(int width, int height)NOTE This method should only be called during layout.-
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
checkSkin, clearFocus, contains, copyStyle, copyStyle, 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, getScreenBounds, getSize, getSkin, getStyle, getStyle, getStyleBoolean, getStyleBoolean, getStyleColor, getStyleColor, getStyleFont, getStyleFont, getStyleInt, getStyleInt, getStyles, getTextInputMethodListener, 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, offsetToScreen, putStyle, putStyle, reenterMouse, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, 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
-
-
-
-
Field Detail
-
imageView
protected ImageView imageView
-
label
protected 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 Image FOLDER_IMAGE
-
HOME_FOLDER_IMAGE
public static final Image HOME_FOLDER_IMAGE
-
FILE_IMAGE
public static final Image FILE_IMAGE
-
-
Method Detail
-
setSize
public void setSize(int width, int height)Description copied from class:ComponentNOTE This method should only be called during layout. Callers should useComponent.setPreferredSize(int, int).- Specified by:
setSizein interfaceConstrainedVisual- Overrides:
setSizein classComponent- Parameters:
width- Final computed widthheight- Final computed height
-
getIcon
public static Image getIcon(java.io.File file)
- Parameters:
file- The current file.- Returns:
- The icon to display for a given file.
-
-