|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.skin.ComponentSkin
org.apache.pivot.wtk.skin.ContainerSkin
org.apache.pivot.wtk.skin.FileBrowserSkin
org.apache.pivot.wtk.skin.terra.TerraFileBrowserSkin
public class TerraFileBrowserSkin
Terra file browser skin.
Nested Class Summary | |
---|---|
static class |
TerraFileBrowserSkin.DriveRenderer
Abstract base class for drive renderers. |
static class |
TerraFileBrowserSkin.FileComparator
File comparator. |
static class |
TerraFileBrowserSkin.FileRenderer
Abstract renderer for displaying file system contents. |
static class |
TerraFileBrowserSkin.IncludeFileFilter
Include file filter. |
static class |
TerraFileBrowserSkin.ListButtonDriveRenderer
List button drive renderer. |
static class |
TerraFileBrowserSkin.ListButtonFileRenderer
List button file renderer. |
static class |
TerraFileBrowserSkin.ListViewDriveRenderer
List view drive renderer. |
static class |
TerraFileBrowserSkin.ListViewFileRenderer
List view file renderer. |
static class |
TerraFileBrowserSkin.TableViewFileRenderer
Table view file renderer. |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
ContainerSkin.IndexFocusTraversalPolicy |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.FileBrowserListener |
---|
FileBrowserListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener |
---|
ContainerListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener |
---|
ContainerMouseListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener |
---|
ComponentListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener |
---|
ComponentStateListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener |
---|
ComponentMouseListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener |
---|
ComponentMouseButtonListener.Adapter |
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener |
---|
ComponentKeyListener.Adapter |
Constructor Summary | |
---|---|
TerraFileBrowserSkin()
|
Method Summary | |
---|---|
void |
disabledFileFilterChanged(FileBrowser fileBrowser,
Filter<File> previousDisabledFileFilter)
Called when a file browser's file filter has changed. |
File |
getFileAt(int x,
int y)
|
int |
getPreferredHeight(int width)
Returns the visual's preferred height given the provided width constraint. |
Dimensions |
getPreferredSize()
Returns the visual's unconstrained preferred size. |
int |
getPreferredWidth(int height)
Returns the visual's preferred width given the provided height constraint. |
void |
install(Component component)
Associates a skin with a component. |
boolean |
isHideDisabledFiles()
|
boolean |
isKeyboardFolderTraversalEnabled()
|
boolean |
keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
ENTER Change into the selected directory if
keyboardFolderTraversalEnabled is true.DELETE or BACKSPACE
Change into the parent of the current directory.F5 Refresh the file list. |
boolean |
keyReleased(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
CommandModifier + F Transfers focus to the search
TextInput. |
void |
layout()
If the component on which the skin is installed is a container, lays out the container's children. |
void |
multiSelectChanged(FileBrowser fileBrowser)
Called when a file browser's multi-select flag has changed. |
void |
rootDirectoryChanged(FileBrowser fileBrowser,
File previousRootDirectory)
Called when a file browser's root directory has changed. |
void |
selectedFileAdded(FileBrowser fileBrowser,
File file)
Called when a file has been added to a file browser's selection. |
void |
selectedFileRemoved(FileBrowser fileBrowser,
File file)
Called when a file has been removed from a file browser's selection. |
void |
selectedFilesChanged(FileBrowser fileBrowser,
Sequence<File> previousSelectedFiles)
Called when a file browser's selection state has been reset. |
void |
setHideDisabledFiles(boolean hideDisabledFiles)
|
void |
setKeyboardFolderTraversalEnabled(boolean keyboardFolderTraversalEnabled)
|
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseDown, mouseMove, mouseUp, mouseWheel, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint |
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, decodeFont, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getBaseline, getBaseline, getComponent, getHeight, getWidth, heightLimitsChanged, invalidateComponent, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.pivot.wtk.Skin |
---|
getComponent, isFocusable, isOpaque |
Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual |
---|
getBaseline, setSize |
Methods inherited from interface org.apache.pivot.wtk.Visual |
---|
getBaseline, getHeight, getWidth, paint |
Constructor Detail |
---|
public TerraFileBrowserSkin()
Method Detail |
---|
public void install(Component component)
Skin
install
in interface Skin
install
in class FileBrowserSkin
component
- The component to which the skin is being attached.public int getPreferredWidth(int height)
ConstrainedVisual
getPreferredWidth
in interface ConstrainedVisual
getPreferredWidth
in class ContainerSkin
height
- The height by which to constrain the preferred width, or -1
for no constraint.public int getPreferredHeight(int width)
ConstrainedVisual
getPreferredHeight
in interface ConstrainedVisual
getPreferredHeight
in class ContainerSkin
width
- The width by which to constrain the preferred height, or -1
for no constraint.public Dimensions getPreferredSize()
ConstrainedVisual
getPreferredSize
in interface ConstrainedVisual
getPreferredSize
in class ComponentSkin
public void layout()
Skin
public File getFileAt(int x, int y)
public boolean isKeyboardFolderTraversalEnabled()
public void setKeyboardFolderTraversalEnabled(boolean keyboardFolderTraversalEnabled)
public boolean isHideDisabledFiles()
public void setHideDisabledFiles(boolean hideDisabledFiles)
public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
ENTER
Change into the selected directory if
keyboardFolderTraversalEnabled
is true.DELETE
or BACKSPACE
Change into the parent of the current directory.F5
Refresh the file list.
keyPressed
in interface ComponentKeyListener
keyPressed
in class ComponentSkin
public boolean keyReleased(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
F
Transfers focus to the search
TextInput.
keyReleased
in interface ComponentKeyListener
keyReleased
in class ComponentSkin
Platform.getCommandModifier()
public void rootDirectoryChanged(FileBrowser fileBrowser, File previousRootDirectory)
FileBrowserListener
public void selectedFileAdded(FileBrowser fileBrowser, File file)
FileBrowserListener
public void selectedFileRemoved(FileBrowser fileBrowser, File file)
FileBrowserListener
public void selectedFilesChanged(FileBrowser fileBrowser, Sequence<File> previousSelectedFiles)
FileBrowserListener
public void multiSelectChanged(FileBrowser fileBrowser)
FileBrowserListener
public void disabledFileFilterChanged(FileBrowser fileBrowser, Filter<File> previousDisabledFileFilter)
FileBrowserListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |