public abstract class EmptyThumbView extends SensitiveScrollContainer<GuiOutputManager>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.nio.file.Path> |
files
The cached list of files.
|
protected GuiDriver |
gd
Cached driver.
|
protected GuiFontResolver |
gf
Font resolver
|
protected ActionListener |
listener
The action listener that will handle the actions of the thumbnails when clicked.
|
private CentralLogger |
LOG
Logger.
|
configlisteners, location, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
EmptyThumbView()
The constructor caches the graphic driver and font resolver for all views.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
appendSearchResult(java.util.List<java.nio.file.Path> paths)
Add a subset of files to be listed in this view.
|
(package private) abstract FileThumb |
createThumb(WidgetId id,
ButtonConfig cfg,
java.nio.file.Path path,
boolean isDir,
java.lang.String click2Command)
Abstract factory method for creating file thumbnails depending on the current view.
|
void |
draw()
Draw widget.
|
(package private) FileThumb |
findDown(FileThumb fileThumb)
Find the first
FileThumb below to fileThumb. |
(package private) FileThumb |
findFirst()
Return the first
FileThumb in this view. |
(package private) FileThumb |
findLeft(FileThumb fileThumb)
Find the first to the left
FileThumb relative to the fileThumb. |
(package private) FileThumb |
findRight(FileThumb fileThumb)
Find the first to the right
FileThumb relative to the fileThumb. |
(package private) FileThumb |
findUp(FileThumb fileThumb)
Find the first
FileThumb above to fileThumb. |
boolean |
focusTraversable()
Check if widget is focus traversable.
|
ScrollBar.Bars |
getScrollBars()
Query the preferred scroll bars.
|
ScrollPaneGuiImpl.ShowBars |
getScrollType()
Query the preferred scroll types.
|
abstract java.lang.String |
getViewName()
Obtain the name of this view.
|
(package private) FileThumb |
locate(java.lang.String name)
Search for a
FileThumb based on its name. |
void |
populate(java.util.List<java.nio.file.Path> files)
Repopulates the view with a new set of files.
|
void |
setListener(ActionListener listener)
Configure the action listener that will be notified when user clicks on a file or directory
thumbnail.
|
ensureVisibility, ensureVisibility, getScrollDimension, processKeyEvent, setFocus, setScrollable, setVisiblegetVisibleDimension, scrolladdScrollListener, afterConfigUpdate, config, getScrollStep, getViewport, initialize, isScrollPopupSupported, postScrollEventadd, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, currentFocus, currentFocus, cycleFocus, defaultFocus, deregisterSelectedWidget, destroy, detach, dimension, doLayout, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, formatDump, get, getAllSelectedWidgets, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, height, insets, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, paintOnTop, parentOf, prepareWidgets, prevFocus, reflectAncestorChange, reflectLocationChanged, registerSelectedWidget, remove, removeContainerStateListener, repaint, replace, requestFocus, requestFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setPhysicalDimensionInt, setSize, setSize, setTabItemList, setWidth, startSizeChange, swap, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, widgetStateChanged, width_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hasTooltip, hidden, hide, highlighted, ignoreAction, initialHeight, initialWidth, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, oleDoDrop, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, reflectSizeChanged, refresh, registerWidgetListener, repaint, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setWindow, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, triggerLocationChanged, unregisterWidgetListener, updateSystemParent, widgetRealized, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, completeTrigger, defaultMousePtr, destroy, dimension, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getIdForTrigger, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getSelectedText, getState, getTriggerWidget, getTriggerWidget, getVisiblePart, getZOrderClass, hasFocus, hasFocus, hasTooltip, height, hidden, hide, highlighted, ignoreEnable, initialHeight, initialWidth, insets, isCurrent, isCurrent, isDirectManipulable, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isInitialValueLayout, isLegacyFocus, isProcessProgressEvent, isRealized, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, minimumSize, moveToBottom, moveToTop, name, navigable, oleDrag, parent, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, refreshWidget, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setDirectManipulationActive, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setWindow, show, startTrigger, supportsCustomMousePointer, systemFocusGrabbed, topLevelWindow, unrealize, unregisterWidgetListener, validateDisplayValue, widgetStateChanged, width, windowmouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleasedwidgetsAsListprivate final CentralLogger LOG
protected GuiDriver gd
protected GuiFontResolver gf
protected java.util.List<java.nio.file.Path> files
protected ActionListener listener
FileDialogGuiImpl that will process all the actions from all
widgets.EmptyThumbView()
public ScrollPaneGuiImpl.ShowBars getScrollType()
public ScrollBar.Bars getScrollBars()
public boolean focusTraversable()
focusTraversable in interface Widget<GuiOutputManager>focusTraversable in class AbstractContainer<GuiOutputManager>true.public void setListener(ActionListener listener)
listener - The new action listener.public void populate(java.util.List<java.nio.file.Path> files)
files - the new list of files.public abstract java.lang.String getViewName()
public void draw()
draw in interface Widget<GuiOutputManager>draw in class AbstractContainer<GuiOutputManager>abstract FileThumb createThumb(WidgetId id, ButtonConfig cfg, java.nio.file.Path path, boolean isDir, java.lang.String click2Command)
id - The widget's ID.cfg - The widget's configuration.path - The path this thumbnail represents.isDir - Flags the thumbnails that represents directories.click2Command - The action to be performed when the thumbnail is double clicked.FileThumb locate(java.lang.String name)
FileThumb based on its name.name - The name of file to search.FileThumb whose file name is name or null if
such filer cannot be found among the contained files .FileThumb findRight(FileThumb fileThumb)
FileThumb relative to the fileThumb.fileThumb - The currently selected file thumb.FileThumb from the fileThumb.FileThumb findLeft(FileThumb fileThumb)
FileThumb relative to the fileThumb.fileThumb - The currently selected file thumb.FileThumb from the fileThumb.FileThumb findUp(FileThumb fileThumb)
FileThumb above to fileThumb.fileThumb - The currently selected file thumb.FileThumb just above fileThumb.FileThumb findDown(FileThumb fileThumb)
FileThumb below to fileThumb.fileThumb - The currently selected file thumb.FileThumb just under fileThumb.FileThumb findFirst()
FileThumb in this view.FileThumb in this view or null if there are no child
thumbnails.void appendSearchResult(java.util.List<java.nio.file.Path> paths)
paths - The additional paths to be displayed.