private class DirDialogGuiImpl.Folder extends ButtonGuiImpl
ButtonGuiImpl.Images| Modifier and Type | Field and Description |
|---|---|
private DirDialogGuiImpl.Folder[] |
content
The list of sub-folders or
null if it was never expanded. |
private boolean |
expanded
true only if this folder is expanded, showing its children. |
private ImageWrapper<java.awt.image.BufferedImage> |
img
The image to be displayed in the lef-side of the button.
|
private int |
indent
Indentation of this folder.
|
private DirDialogGuiImpl.Folder |
parent |
private java.lang.String |
path
The absolute path of this folder.
|
(package private) static int |
X_INDENT
Indentation step (in pixels).
|
cc, DOT_LINE_WIDTH, gd, gf, imgUpconfig, widgetFocusedinsets, location, LOG, mousePtr, nativeInsets, physicalLocation| Constructor and Description |
|---|
Folder(WidgetId id,
DirDialogGuiImpl.Folder parent,
java.lang.String text,
java.lang.String path,
java.lang.String icon,
int indent)
The constructor creates a button with given properties.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
computePreferredWidth()
Computes the preferred width for this thumbnail.
|
void |
draw()
Draw the button.
|
protected void |
handleBasicEvents(KeyInput event)
Process basic events - key navigation event.
|
(package private) boolean |
isExpanded()
Checks whether this node is expanded.
|
(package private) boolean |
isRoot()
Checks whether this is the root of the tree.
|
(package private) DirDialogGuiImpl.Folder |
lookup(java.lang.String child)
Searches for a child among all direct children.
|
afterConfigUpdate, createMnemonic, focusTraversable, getFontResolver, getImgDisabled, getImgDown, getImgUp, handleCursorKeys, height, highlighted, initialize, isAutoResize, isDefaultButton, isDroppable, isFocusable, isKeyPressed, isMnemonicSupported, isPressed, isResolverColorsUsed, loadImage, mouseClicked, onFocusLost, physicalBounds, processEvent, processMnemonic, refresh, requestFocus, setActionCode, setColorResolver, setFontResolver, setImage, setImage, setResolverColorsUsed, setVisible, supportsCustomMousePointer, toString, updateSize, widthisMouseOver, mouseActions, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleasedaddListener, checkKey, config, destroy, getColon, getColumnLabelText, getCommand, getLabelInstance, getLabelText, getMnemonic, getTo, initButtonText, isForceLabel, isNoLabels, isRightAligned, postprocessConfig, processKeyEvent, setCommand, setHidden, setLabelInstance, setMnemonic, setNoLabels, setSupportsMnemonic, setText, setTextLabel, setWasVisible, textLabel, wasVisibledimension, 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, disableTooltip, displayPhysicalLocation, drawCaret, enable, enableTooltip, enclosingFrame, findMouseSource, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCachedScreenLocation, getCachedScreenPhysicalLocation, getCustomMousePointer, getEffectiveMousePointer, getId, getLoadedMousePointer, getMenuMouse, getMouseActions, getMousePosition, getPortableMouseEventCoordinates, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextHeightNative, getTextWidth, getTextWidth, getTextWidthNative, getTextWidthNative, getVisiblePart, getZOrderClass, hasFocus, hasTooltip, hidden, hide, initialHeight, initialWidth, insets, isCurrent, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDirectManipulationCapable, isDirectManipulationRequired, isDisplayed, isEnabled, isHeader, isMouseDrag, isRealized, isRepaintDisabled, isRMBEntrySupported, isScreenLocationCached, isTabStop, isThreeD, isTotallyObscured, isVisible, isVisible, location, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, oleDoDrop, oleDrag, oleDragging, oleStartDragging, onOleDragging, onOleDropEnd, parent, parent, parentObject, parentOrSelf, parentOrSelfObject, physicalDimension, physicalLocation, prepParentLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processFocusEvent, processKeyEventForSelectableWidget, processKeyListeners, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, reflectAncestorChange, reflectLocationChanged, reflectSizeChanged, refresh, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestSync, resetBitmap, resizeTo, resolveFont, resolvePopupMenuId, resolveTitleFont, screen, screenDimension, screenHeight, screenLocation, screenPhysicalLocation, screenWidth, setBitmap, setCachedScreenLocation, setCachedScreenPhysicalLocation, setDirectManipulationActive, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalDimensionInt, setPhysicalLocation, setSensitiveForUIB, setState, setWindow, show, showPopupMenu, sync, topLevelWindow, translate, triggerLocationChanged, unrealize, unregisterWidgetListener, updateSizeWorker, updateSystemParent, widgetRealized, widgetStateChanged, windowclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptsEscAsAnyKey, acceptTrigger, addFocusListener, addKeyListener, ancestor, ancestorId, bounds, canMovetoTop, clearWidget, completeTrigger, defaultMousePtr, 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, hidden, hide, ignoreEnable, initialHeight, initialWidth, insets, isCurrent, isCurrent, isDirectManipulable, isDirectManipulationActive, isDirectManipulationActiveOrInUIB, isDisplayed, isEnabled, 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, physicalDimension, physicalLocation, preventFocusWhenMouseDownEventDefined, processDirectManipulationEvent, processFocusEvent, processKeyListeners, raiseLegacyMouseEvents, refreshWidget, registerWidgetListener, repaint, repaint, repaint, requestFocus, requestFocus, requestSync, resizeTo, resolvePopupMenuId, screen, screenLocation, screenPhysicalLocation, setDirectManipulationActive, setEnabled, setHighlighted, setLocation, setLocation, setMousePointer, setMousePointer, setParent, setPhysicalLocation, setSensitiveForUIB, setState, setWindow, show, startTrigger, systemFocusGrabbed, topLevelWindow, unrealize, unregisterWidgetListener, validateDisplayValue, widgetStateChanged, windowgetColumnMnemonic, getMnemonicCharacter, getMnemonicKeyCode, getMnemonicLabel, setColumnMnemonic, updateMnemonicstatic final int X_INDENT
private final DirDialogGuiImpl.Folder parent
private DirDialogGuiImpl.Folder[] content
null if it was never expanded.private final java.lang.String path
private ImageWrapper<java.awt.image.BufferedImage> img
private final int indent
private boolean expanded
true only if this folder is expanded, showing its children.public Folder(WidgetId id, DirDialogGuiImpl.Folder parent, java.lang.String text, java.lang.String path, java.lang.String icon, int indent)
id - The widget's ID.parent - The parent folder. null if node is the root.text - The string to be used as the button text.path - The absolute path of the folder.icon - The image to be displayed.indent - The indentation of image and text.public void draw()
draw in interface Widget<GuiOutputManager>draw in class ButtonGuiImplboolean isRoot()
true if this is the root of the tree.boolean isExpanded()
true if this node is expanded.int computePreferredWidth()
DirDialogGuiImpl.Folder lookup(java.lang.String child)
child - The Folder to search.Folder or null if not found.protected void handleBasicEvents(KeyInput event)
handleBasicEvents in class ButtonGuiImplevent - Key event to process.