Package org.apache.pivot.wtk.skin.terra
Class TerraFileBrowserSkin.TableViewFileRenderer
- 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
-
- org.apache.pivot.wtk.skin.terra.TerraFileBrowserSkin.TableViewFileRenderer
-
- All Implemented Interfaces:
java.lang.Iterable<Component>
,Sequence<Component>
,ConstrainedVisual
,Renderer
,TableView.CellRenderer
,Visual
- Enclosing class:
- TerraFileBrowserSkin
public static class TerraFileBrowserSkin.TableViewFileRenderer extends TerraFileBrowserSkin.FileRenderer implements TableView.CellRenderer
Table view file renderer.
-
-
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 java.lang.String
LAST_MODIFIED_KEY
static java.lang.String
NAME_KEY
static java.lang.String
SIZE_KEY
-
Fields inherited from class org.apache.pivot.wtk.skin.terra.TerraFileBrowserSkin.FileRenderer
FILE_IMAGE, FOLDER_IMAGE, HOME_FOLDER_IMAGE, ICON_HEIGHT, ICON_WIDTH, imageView, label
-
-
Constructor Summary
Constructors Constructor Description TableViewFileRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
render(java.lang.Object row, int rowIndex, int columnIndex, TableView tableView, java.lang.String columnName, boolean selected, boolean highlighted, boolean disabled)
Prepares the renderer for layout or paint.java.lang.String
toString(java.lang.Object row, java.lang.String columnName)
Converts table view cell data to a string representation.-
Methods inherited from class org.apache.pivot.wtk.skin.terra.TerraFileBrowserSkin.FileRenderer
getIcon, setSize
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual
getBaseline, getPreferredHeight, getPreferredSize, getPreferredWidth, setSize, setSize
-
-
-
-
Field Detail
-
NAME_KEY
public static final java.lang.String NAME_KEY
- See Also:
- Constant Field Values
-
SIZE_KEY
public static final java.lang.String SIZE_KEY
- See Also:
- Constant Field Values
-
LAST_MODIFIED_KEY
public static final java.lang.String LAST_MODIFIED_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(java.lang.Object row, int rowIndex, int columnIndex, TableView tableView, java.lang.String columnName, boolean selected, boolean highlighted, boolean disabled)
Description copied from interface:TableView.CellRenderer
Prepares the renderer for layout or paint.- Specified by:
render
in interfaceTableView.CellRenderer
- Parameters:
row
- The row to render, ornull
if called to calculate preferred height for skins that assume a fixed renderer height.rowIndex
- The index of the row being rendered, or-1
ifvalue
isnull
.columnIndex
- The index of the column being rendered.tableView
- The host component.columnName
- The name of the column being rendered.selected
- Iftrue
, the row is selected.highlighted
- Iftrue
, the row is highlighted.disabled
- Iftrue
, the row is disabled.
-
toString
public java.lang.String toString(java.lang.Object row, java.lang.String columnName)
Description copied from interface:TableView.CellRenderer
Converts table view cell data to a string representation.- Specified by:
toString
in interfaceTableView.CellRenderer
- Parameters:
row
- The row object.columnName
- The name of the column.- Returns:
- The cell data's string representation, or
null
if the data does not have a string representation.Note that this method may be called often during keyboard navigation, so implementations should avoid unnecessary string allocations.
-
-