|
||||||||||
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.FileComparator
File comparator. |
static class |
TerraFileBrowserSkin.FileNameFilter
File name filter. |
static class |
TerraFileBrowserSkin.FileRenderer
Abstract renderer for displaying file system contents. |
static class |
TerraFileBrowserSkin.ListButtonFileRenderer
List button file renderer. |
static class |
TerraFileBrowserSkin.ListViewFileRenderer
List view file renderer. |
static class |
TerraFileBrowserSkin.SortHandler
File sort handler. |
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.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 |
Field Summary |
---|
Fields inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
---|
SHOW_TOOLTIP_TIMEOUT |
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 |
isKeyboardFolderTraversalEnabled()
|
boolean |
keyPressed(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
Called when a key has been pressed. |
boolean |
keyReleased(Component component,
int keyCode,
Keyboard.KeyLocation keyLocation)
Called when a key has been released. |
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 |
setKeyboardFolderTraversalEnabled(boolean keyboardFolderTraversalEnabled)
|
void |
uninstall()
Dissociates a skin from a component. |
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin |
---|
componentInserted, componentsRemoved, contextKeyChanged, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, paint, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint |
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin |
---|
cursorChanged, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, getComponent, getHeight, getWidth, invalidateComponent, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseMove, mouseOut, mouseOver, mouseUp, mouseWheel, parentChanged, preferredHeightLimitsChanged, preferredSizeChanged, preferredWidthLimitsChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setSize, sizeChanged, styleUpdated, tooltipTextChanged, visibleChanged |
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 |
---|
setSize |
Methods inherited from interface org.apache.pivot.wtk.Visual |
---|
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 void uninstall()
Skin
uninstall
in interface Skin
uninstall
in class FileBrowserSkin
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 keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
ComponentKeyListener
keyPressed
in interface ComponentKeyListener
keyPressed
in class ComponentSkin
public boolean keyReleased(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
ComponentKeyListener
keyReleased
in interface ComponentKeyListener
keyReleased
in class ComponentSkin
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 |