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 java.util.logging.Logger |
LOG
Logger.
|
config
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, setVisible
getVisibleDimension, scroll
addScrollListener, afterConfigUpdate, config, getScrollStep, getViewport, initialize, isScrollPopupSupported, postScrollEvent
add, add, add, addContainerStateListener, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, copyState, currentFocus, currentFocus, cycleFocus, defaultFocus, destroy, detach, dimension, doLayout, dumpCurrentWidgets, dumpWidgets, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, formatDump, get, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getTabItemList, hasFocusable, height, insets, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, onWidgetAdded, onWidgetRemoved, prepareWidgets, prevFocus, reflectAncestorChange, reflectLocationChange, remove, removeContainerStateListener, repaint, replace, requestFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setSize, setTabItemList, setWidth, startSizeChange, triggerContainerStateRedrawEnabled, unrealize, updateSizeWorker, widgets, widgetsAsList, width
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, highlighted, ignoreAction, isCurrent, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, showPopupMenu, supportsCustomMousePointer, sync, topLevelWindow, toString, translate, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, defaultMousePtr, destroy, dimension, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, height, hidden, hide, highlighted, insets, isCurrent, isDirectManipulable, isDisplayed, isDroppable, isEnabled, isFocusable, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, minimumSize, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, repaint, requestFocus, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, supportsCustomMousePointer, topLevelWindow, unrealize, width, window
private final java.util.logging.Logger 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.