public class FileDialogGuiImpl extends FileDialogImpl
All dimensions are expressed in pixels, rather than character units.
Modifier and Type | Class and Description |
---|---|
private class |
FileDialogGuiImpl.ButtonsPane
Contains the following widgets:
NAME_____________ TYPE_______ PROPERTIES____ ACTION______________________________________
HideFolders button Toggles visibility of Tools and Content panes
/spacer/ expandable Nothing (fills in empty space)
OK button Accepts the current selection
Cancel button Rejects the dialog
|
private class |
FileDialogGuiImpl.ContentPane
Contains the following widgets:
NAME_____________ TYPE_______ PROPERTIES____ ACTION______________________________________
FoldersTree treeview Contains 3 trees: Favorites/This PC/Network
/splitter/ Changes ratio between Folders and Contents
FolderContent browse/list List the files and folder at current location
|
private class |
FileDialogGuiImpl.FilenamePane
Contains the following widgets:
NAME_____________ TYPE_______ PROPERTIES____ ACTION______________________________________
FileName label fixed Nothing (right-aligned)
FileNameCb combobox expandable Allows user to type in a filename
|
private class |
FileDialogGuiImpl.NavigationPane
Contains the following widgets:
NAME_____________ TYPE_______ PROPERTIES____ ACTION______________________________________
HistoryBack button round Loads the previous folder
HistoryForward button round Loads the forward folder
RecentLocations button Opens a popup-menu with recent locations
FolderUp button Loads the parent folder
Address editor expandable Allows user to type in a location
Refresh button Reload the current location
/splitter/ Changes ratio between Address and Search
Search editor expandable Searches sub-folders for specific pattern
|
private class |
FileDialogGuiImpl.SaveasPane
Contains the following widgets:
NAME_____________ TYPE_______ PROPERTIES____ ACTION______________________________________
SaveType label fixed Nothing (right-aligned)
SaveAsCb combobox expandable Allows user to select a filter/type
|
private class |
FileDialogGuiImpl.ToolsPane
Contains the following widgets:
NAME_____________ TYPE_______ PROPERTIES____ ACTION______________________________________
Organize button Opens a contextual popup-menu
NewFolder button Creates a new folder at current location
/spacer/ expandable Nothing (fills in empty space)
MoreOptions button Opens a popup-menu with different view modes
Help button Opens Help page
|
TopLevelWindow.IconDataType
Widget.ZOrderClass
Modifier and Type | Field and Description |
---|---|
private ButtonGuiImpl |
accept |
private FillInGuiImpl |
address |
private ButtonGuiImpl |
back |
private int |
BOTTOM_INSET
The bottom inset.
|
private int |
BUTTONS_PANE_HEIGHT
Constant height of the last pane (dialog closing pane).
|
private FileDialogGuiImpl.ButtonsPane |
buttonsPane
The dialog close pane.
|
private CoordinatesConversion |
cc
Cached coordinates.
|
private FileDialogGuiImpl.ContentPane |
contentPane
The content pane.
|
private int |
FILE_TYPE_ALIGN
The alignment for file and type labels (on last two rows).
|
private ComboBoxGuiImpl |
filename |
private int |
FILENAME_PANE_HEIGHT
Constant height of the fourth pane (filename direct input).
|
private LabelGuiImpl |
filenameLabel |
private FileDialogGuiImpl.FilenamePane |
filenamePane
The filename input pane.
|
private ButtonGuiImpl |
folderUp |
private ButtonGuiImpl |
forward |
protected GuiDriver |
gd
Cached driver.
|
private ButtonGuiImpl |
help |
private ButtonGuiImpl |
hideFolders |
private int |
NAV_PANE_HEIGHT
Constant height of the first (upper) pane (navigation).
|
private FileDialogGuiImpl.NavigationPane |
navigationPane
The navigation pane.
|
private ButtonGuiImpl |
newFolder |
private ButtonGuiImpl |
organize |
private ButtonGuiImpl |
recentLocations |
private ButtonGuiImpl |
refresh |
private ButtonGuiImpl |
reject |
private int |
SAVEAS_PANE_HEIGHT
Constant height of the fourth pane (file type selection).
|
private LabelGuiImpl |
saveasLabel |
private FileDialogGuiImpl.SaveasPane |
saveasPane
The file type selection pane (if available).
|
private ComboBoxGuiImpl |
saveasType |
private FillInGuiImpl |
search |
private int |
TOOLS_PANE_HEIGHT
Constant height of the second pane (tools).
|
private FileDialogGuiImpl.ToolsPane |
toolsPane
The tools pane.
|
private ButtonGuiImpl |
view |
askOverwrite, createTestFile, defaultExtension, filters, initialFilter, mustExist, preferredTitle, saveAs, selectedFile, widgetFactory
accepted, initialDir
windowPane
location, mousePtr, nativeInsets, physicalLocation
Constructor and Description |
---|
FileDialogGuiImpl(java.lang.String title,
int parentWindow)
The constructor build an object by forwarding the required parameters to super class.
|
Modifier and Type | Method and Description |
---|---|
private ButtonGuiImpl |
createButton(java.lang.String text,
Container container,
int width,
int height,
boolean flat,
boolean def)
Creates and initializes a button widget.
|
void |
doLayout()
Updates the layout of this dialog.
|
protected void |
init()
Initialize the dialog by performing tasks that was not possible in the constructor because
it was not fully created.
|
void |
onAction(ActionEvent event)
This method is invoked when action event is generated.
|
private void |
setWidgetLocation(AbstractWidget w,
int x,
int y) |
double |
width()
Get widget width.
|
getSelection, setFilters, setSelectedFile, setValidators
hide, isAccepted, setInitialDir, setVisible, show
coordinates, destroy, draw, findMouseSource, getBorder, getColorResolver, getContentPane, getGuiMessageArea, getId, getMaxWorkspaceSize, getMessageArea, getMinSize, getPortableMouseEventCoordinates, getResizedSize, getScreenDimension, getStatusArea, getTitleBar, getWorkspaceNativeSize, getWorkspaceScreenLocation, getWorkspaceSize, hasDecorations, hasTitlebar, iconify, iconify, iconify, isModal, isRealized, isResizeWorkspace, isResizing, maximize, maximize, realize, resizeTo, resolveOwner, restore, restore, restore, setSize, setWorkspaceLocation, setWorkspaceNativeSize
addFrame, ancestor, bounds, clipRectangle, close, defaultFocus, findFrames, findFrames, getFirstVisibleFrame, getFrames, getNextEnabledFrame, getNextVisibleFrame, getOwner, getOwnerOpt, getPlacementManager, getPrevEnabledFrame, getTopFrame, getTopVisibleFrame, getWindowDefaultIcon, isFocusable, isMaximized, loadWindowIcon, parentOrSelfHidden, physicalBounds, processEvent, processFocusEvent, repaint, repaintDecorations, resolveTitleFont, screenLocation, screenPhysicalLocation, setLocation, setOwner, setPhysicalLocation, setWindowDefaultIcon, setWindowIcon, window
drawInt
destroyWidgets, focusTraversable, getZOrderClass, hasFocus, hasTitle, isDisplayed, processKeyEvent, setTitle, title, toString
add, add, add, addDirectly, belongsTo, checkWidget, childrenLocation, clipping, clipRectangle, currentFocus, currentFocus, cycleFocus, detach, dimension, endSizeChange, findMouseSource, firstFocus, focus, focusWorker, get, getClipRect, getEffectiveScrollableSize, getFocusInt, getIgnoreFocus, getLayout, getScrollableSize, getWidgetsList, hasFocusable, height, insets, lastFocus, minimumSize, moveAfterTabItem, moveBeforeTabItem, moveToBottom, moveToBottomInClass, moveToTop, moveToTopInClass, moveToZpos, nextFocus, normalizeZOrder, prepareWidgets, prevFocus, remove, replace, requestFocus, setFocus, setFocusInt, setHeight, setIgnoreFocus, setInsets, setLayout, setSize, setWidth, startSizeChange, unrealize, updateSizeWorker, widgets
_setHidden, _setVisible, activateDirectManipulation, addFocusListener, addKeyListener, afterConfigUpdateBase, ancestorId, autoResize, clear, clearWidget, clipRectangle, clipWith, config, createMouseHoverAction, deactivateDirectManipulation, debug, disable, displayPhysicalLocation, drawCaret, enable, enclosingFrame, forceCursorOnFocus, forceVisibility, getActualBounds, getAndResetBitmap, getAndSetBitmap, getBitmapCopy, getCustomMousePointer, getDefaultEvent, getEffectiveMousePointer, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getTextHeight, getTextHeightNative, getTextWidth, getTextWidthNative, getVisiblePart, hidden, highlighted, ignoreAction, isDirectManipulationCapable, isDirectManipulationRequired, isEnabled, isHeader, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, manageSystemActions, mouseActions, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalDimension, physicalLocation, postprocessConfig, prepParentLocation, processDirectManipulationEvent, processKeyListeners, processMnemonic, processMnemonicImpl, processSystemKey, raiseLegacyMouseEvents, refresh, registerWidgetStateListener, repaint, requestSync, resetBitmap, resizeTo, resolveFont, screen, screenDimension, screenHeight, screenWidth, setBitmap, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setParent, setState, supportsCustomMousePointer, sync, topLevelWindow, translate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, isMaximized, isShareActivationWithOwner, loadWindowIcon, resizeTo, resolveTitleFont, setLocation, setPhysicalLocation, setWindowIcon
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, config, defaultMousePtr, dimension, displayPhysicalLocation, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, height, hidden, highlighted, insets, isDirectManipulable, isDisplayed, isEnabled, isFocusable, isHeader, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, minimumSize, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, repaint, requestFocus, requestSync, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setParent, setState, supportsCustomMousePointer, topLevelWindow, unrealize, window
private final int NAV_PANE_HEIGHT
private final int TOOLS_PANE_HEIGHT
private final int FILENAME_PANE_HEIGHT
private final int SAVEAS_PANE_HEIGHT
private final int BUTTONS_PANE_HEIGHT
private final int BOTTOM_INSET
private final int FILE_TYPE_ALIGN
protected GuiDriver gd
private CoordinatesConversion cc
private FileDialogGuiImpl.NavigationPane navigationPane
private ButtonGuiImpl back
private ButtonGuiImpl forward
private ButtonGuiImpl recentLocations
private ButtonGuiImpl folderUp
private FillInGuiImpl address
private ButtonGuiImpl refresh
private FillInGuiImpl search
private FileDialogGuiImpl.ToolsPane toolsPane
private ButtonGuiImpl organize
private ButtonGuiImpl newFolder
private ButtonGuiImpl view
private ButtonGuiImpl help
private FileDialogGuiImpl.ContentPane contentPane
private FileDialogGuiImpl.FilenamePane filenamePane
private LabelGuiImpl filenameLabel
private ComboBoxGuiImpl filename
private FileDialogGuiImpl.SaveasPane saveasPane
private LabelGuiImpl saveasLabel
private ComboBoxGuiImpl saveasType
private FileDialogGuiImpl.ButtonsPane buttonsPane
private ButtonGuiImpl hideFolders
private ButtonGuiImpl accept
private ButtonGuiImpl reject
public FileDialogGuiImpl(java.lang.String title, int parentWindow)
title
- The title of the dialog, if known.parentWindow
- The window id of the parent frame of this dialog.protected void init()
init
in class AbstractFileChooserDialog
public double width()
width
in interface Widget<GuiOutputManager>
width
in class AbstractContainer<GuiOutputManager>
public void doLayout()
doLayout()
on all panes/rows.doLayout
in interface Container<GuiOutputManager>
doLayout
in class ModalWindow
public void onAction(ActionEvent event)
onAction
in interface ActionListener
onAction
in class FileDialogImpl
event
- Event which triggered this call.private ButtonGuiImpl createButton(java.lang.String text, Container container, int width, int height, boolean flat, boolean def)
Button
instance.private void setWidgetLocation(AbstractWidget w, int x, int y)