private class SmallIconsThumbView.SmallIcon extends FileThumb
ListThumbView
, except that the thumbnails are distributed horizontally, on rows.
When the number of rows exceeds the available space, the user is required to scroll the view
vertically.created, fileSize, img, lastModified
cc, DOT_LINE_WIDTH, gd, gf
config, widgetFocused
insets, location, LOG, mousePtr, nativeInsets, physicalLocation
Constructor and Description |
---|
SmallIcon(WidgetId id,
ButtonConfig cfg,
java.nio.file.Path path,
boolean isDir,
java.lang.String click2Command)
Constructor used to create component using given configuration.
|
Modifier and Type | Method and Description |
---|---|
protected void |
drawForeground(int width,
int height,
Theme theme)
Draws the text and icon on this thumbnail.
|
protected NativeDimension |
getEditorDimension()
Obtain the dimension of the editor that when renaming this thumbnail.
|
protected NativePoint |
getEditorLocation()
Obtain the physical location of the editor that when renaming this thumbnail.
|
int |
getPreferredWidth()
Query the preferred width of this thumbnail.
|
(package private) java.lang.String |
getTooltip()
Obtain the tooltip to be displayed when hovering this thumbnail.
|
clearSelection, draw, getDoubleClickCommand, getFileIcon, getPath, getPreferredHeight, getSelected, handleBasicEvents, isDir, isDoubleClick, isSelected, mouseClicked, select, setFileInfo, startRename, toString
afterConfigUpdate, createMnemonic, focusTraversable, getImgDisabled, getImgDown, getImgUp, handleCursorKeys, hasImages, hasPrepackagedImages, height, highlighted, initialize, isAutoResize, isDefaultButton, isDroppable, isFocusable, isMnemonicSupported, isPressed, loadImage, onFocusLost, physicalBounds, processMnemonic, refresh, requestFocus, setActionCode, setImage, supportsCustomMousePointer, updateSize, updateSizeWorker, width
isMouseOver, mouseActions, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased
addListener, checkKey, config, destroy, getColon, getColumnLabelText, getCommand, getLabelInstance, getLabelText, getMnemonic, getTo, initButtonText, isForceLabel, isNoLabels, isRightAligned, postprocessConfig, processEvent, processKeyEvent, setCommand, setHidden, setLabelInstance, setMnemonic, setNoLabels, setSupportsMnemonic, setText, setTextLabel, setVisible, setWasVisible, textLabel, wasVisible
dimension, forceCursorOnFocus, getDefaultEvent, ignoreAction, manageSystemActions, minimumSize, onFocusGained, onKeyPressed, onKeyTyped, processKeyEventCommon
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestor, ancestorId, autoResize, bounds, clear, clearWidget, clipRectangle, clipRectangle, clipWith, copyColors, copyState, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, findMouseSource, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, insets, isCurrent, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalDimension, physicalLocation, prepParentLocation, processDirectManipulationEvent, processFocusEvent, processKeyListeners, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, reflectAncestorChange, reflectLocationChange, refresh, registerWidgetStateListener, repaint, repaint, requestFocus, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, showPopupMenu, sync, topLevelWindow, translate, unrealize, window
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, defaultMousePtr, dimension, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, hidden, hide, insets, isCurrent, isDirectManipulable, isDisplayed, isEnabled, isHeader, isRealized, isRepaintDisabled, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, maySwitchFocus, minimumSize, moveToBottom, moveToTop, name, navigable, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalDimension, physicalLocation, processDirectManipulationEvent, processFocusEvent, processKeyListeners, raiseLegacyMouseEvents, repaint, repaint, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setParent, setPhysicalLocation, setState, show, topLevelWindow, unrealize, window
getColumnMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, setColumnMnemonic, updateMnemonic
SmallIcon(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.protected void drawForeground(int width, int height, Theme theme)
drawForeground
in class FileThumb
width
- The width of the widgetheight
- The height of the widget.theme
- The current theme.public int getPreferredWidth()
getPreferredWidth
in class FileThumb
java.lang.String getTooltip()
getTooltip
in class FileThumb
protected NativeDimension getEditorDimension()
getEditorDimension
in class FileThumb
protected NativePoint getEditorLocation()
getEditorLocation
in class FileThumb