public static class TerraFileBrowserSkin.TableViewFileRenderer extends TerraFileBrowserSkin.FileRenderer implements TableView.CellRenderer
Container.EDT_Checker
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary
Sequence.Tree<T>
Modifier and Type | Field and Description |
---|---|
static String |
LAST_MODIFIED_KEY |
static String |
NAME_KEY |
static String |
SIZE_KEY |
FILE_IMAGE, FOLDER_IMAGE, HOME_FOLDER_IMAGE, ICON_HEIGHT, ICON_WIDTH, imageView, label
Constructor and Description |
---|
TerraFileBrowserSkin.TableViewFileRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
render(Object row,
int rowIndex,
int columnIndex,
TableView tableView,
String columnName,
boolean selected,
boolean highlighted,
boolean disabled)
Prepares the renderer for layout or paint.
|
String |
toString(Object row,
String columnName)
Converts table view cell data to a string representation.
|
getIcon, setSize
getBoxPaneListeners, getOrientation, setOrientation
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
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBaseline, getPreferredHeight, getPreferredSize, getPreferredWidth, setSize
getBaseline, getHeight, getWidth, paint
public static final String NAME_KEY
public static final String SIZE_KEY
public static final String LAST_MODIFIED_KEY
public TerraFileBrowserSkin.TableViewFileRenderer()
public void render(Object row, int rowIndex, int columnIndex, TableView tableView, String columnName, boolean selected, boolean highlighted, boolean disabled)
TableView.CellRenderer
render
in interface TableView.CellRenderer
row
- The row to render, or null if called to calculate preferred height for
skins that assume a fixed renderer height.rowIndex
- The index of the row being rendered, or -1 if value
is null.columnIndex
- The index of the column being rendered.tableView
- The host component.columnName
- The name of the column being rendered.selected
- If true, the row is selected.highlighted
- If true, the row is highlighted.disabled
- If true, the row is disabled.public String toString(Object row, String columnName)
TableView.CellRenderer
toString
in interface TableView.CellRenderer
Note that this method may be called often during keyboard navigation, so implementations should avoid unnecessary string allocations.