Package org.apache.pivot.wtk.skin.terra
Class TerraFileBrowserSheetSkin
- java.lang.Object
-
- org.apache.pivot.wtk.skin.ComponentSkin
-
- org.apache.pivot.wtk.skin.ContainerSkin
-
- org.apache.pivot.wtk.skin.WindowSkin
-
- org.apache.pivot.wtk.skin.terra.TerraSheetSkin
-
- org.apache.pivot.wtk.skin.terra.TerraFileBrowserSheetSkin
-
- All Implemented Interfaces:
ComponentKeyListener
,ComponentListener
,ComponentMouseButtonListener
,ComponentMouseListener
,ComponentMouseWheelListener
,ComponentStateListener
,ComponentTooltipListener
,ConstrainedVisual
,ContainerListener
,ContainerMouseListener
,FileBrowserSheetListener
,SheetCloseListener
,SheetStateListener
,Skin
,Visual
,Window.Skin
,WindowListener
,WindowStateListener
public class TerraFileBrowserSheetSkin extends TerraSheetSkin implements FileBrowserSheetListener
Terra file browser sheet skin.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.terra.TerraSheetSkin
TerraSheetSkin.OpenTransition, TerraSheetSkin.ResizeImage, TerraSheetSkin.SheetPlacement
-
Nested classes/interfaces inherited from class org.apache.pivot.wtk.skin.ContainerSkin
ContainerSkin.IndexFocusTraversalPolicy
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener
ComponentKeyListener.Adapter, ComponentKeyListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener
ComponentListener.Adapter, ComponentListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener
ComponentMouseButtonListener.Adapter, ComponentMouseButtonListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener
ComponentMouseListener.Adapter, ComponentMouseListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseWheelListener
ComponentMouseWheelListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener
ComponentStateListener.Adapter, ComponentStateListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentTooltipListener
ComponentTooltipListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerListener
ContainerListener.Adapter, ContainerListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ContainerMouseListener
ContainerMouseListener.Adapter, ContainerMouseListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.FileBrowserSheetListener
FileBrowserSheetListener.Adapter, FileBrowserSheetListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.SheetStateListener
SheetStateListener.Adapter, SheetStateListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowListener
WindowListener.Adapter, WindowListener.Listeners
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.WindowStateListener
WindowStateListener.Adapter, WindowStateListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description TerraFileBrowserSheetSkin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponent(Component component)
void
disabledFileFilterChanged(FileBrowserSheet fileBrowserSheet, Filter<java.io.File> previousDisabledFileFilter)
Called when a file browser sheet's disabled file filter has changed.boolean
getShowOKButtonFirst()
void
install(Component component)
Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.boolean
isHideDisabledFiles()
boolean
isShowHiddenFiles()
void
modeChanged(FileBrowserSheet fileBrowserSheet, FileBrowserSheet.Mode previousMode)
Called when a file browser sheet's mode has changed.Vote
previewSheetClose(Sheet sheet, boolean result)
Called to preview a sheet close event.void
rootDirectoryChanged(FileBrowserSheet fileBrowserSheet, java.io.File previousRootDirectory)
Called when a file browser sheet's root directory has changed.void
selectedFilesChanged(FileBrowserSheet fileBrowserSheet, Sequence<java.io.File> previousSelectedFiles)
Called when a file browser sheet's selection state has been reset.void
setHideDisabledFiles(boolean hideDisabledFiles)
void
setShowHiddenFiles(boolean showHiddenFiles)
void
setShowOKButtonFirst(boolean showOKButtonFirst)
void
windowOpened(Window window)
Called when a window has opened.-
Methods inherited from class org.apache.pivot.wtk.skin.terra.TerraSheetSkin
alignToOwner, getBorderColor, getPadding, getPreferredHeight, getPreferredSize, getPreferredWidth, getSlideSource, getStateTransitionDuration, getStateTransitionRate, isResizable, keyPressed, layout, mouseDown, mouseMove, mouseUp, paint, setBackgroundColor, setBorderColor, setBorderColor, setPadding, setPadding, setPadding, setPadding, setPadding, setPadding, setResizable, setSlideSource, setStateTransitionDuration, setStateTransitionRate, sheetClosed, sheetCloseVetoed, sizeChanged, windowClosed
-
Methods inherited from class org.apache.pivot.wtk.skin.WindowSkin
contentChanged, getClientArea
-
Methods inherited from class org.apache.pivot.wtk.skin.ContainerSkin
componentInserted, componentMoved, componentsRemoved, focusTraversalPolicyChanged, getBackgroundColor, getBackgroundPaint, isFocusable, isOpaque, mouseMove, mouseUp, mouseWheel, setBackgroundColor, setBackgroundColor, setBackgroundPaint, setBackgroundPaint, setBackgroundPaint
-
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
colorFromObject, colorFromObject, colorFromObject, colorFromObject, currentTheme, cursorChanged, decodeFont, defaultBackgroundColor, defaultForegroundColor, dragSourceChanged, dropTargetChanged, enabledChanged, focusedChanged, fontFromObject, getBaseline, getBaseline, getColor, getComponent, getFocusRectangleStroke, getHeight, getSize, getTextInputMethodListener, getThemeFont, getWidth, heightLimitsChanged, invalidateComponent, keyReleased, keyTyped, locationChanged, menuHandlerChanged, mouseClick, mouseDown, mouseOut, mouseOver, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setDefaultStyles, setSize, themeHasThickFocusRectangle, themeHasTransitionEnabled, themeIsDark, themeIsFlat, 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.ConstrainedVisual
getBaseline, setSize, setSize
-
Methods inherited from interface org.apache.pivot.wtk.Skin
getComponent, isFocusable, isOpaque
-
Methods inherited from interface org.apache.pivot.wtk.Visual
getBaseline, getHeight, getSize, getWidth
-
Methods inherited from interface org.apache.pivot.wtk.WindowListener
activeChanged, iconAdded, iconInserted, iconsRemoved, maximizedChanged, titleChanged
-
Methods inherited from interface org.apache.pivot.wtk.WindowStateListener
previewWindowClose, previewWindowOpen, windowCloseVetoed, windowOpenVetoed
-
-
-
-
Method Detail
-
install
public void install(Component component)
Description copied from class:ComponentSkin
Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.- Specified by:
install
in interfaceSkin
- Overrides:
install
in classTerraSheetSkin
- Parameters:
component
- The component to which the skin is being attached.
-
isHideDisabledFiles
public boolean isHideDisabledFiles()
-
setHideDisabledFiles
public void setHideDisabledFiles(boolean hideDisabledFiles)
-
isShowHiddenFiles
public boolean isShowHiddenFiles()
-
setShowHiddenFiles
public void setShowHiddenFiles(boolean showHiddenFiles)
-
getShowOKButtonFirst
public boolean getShowOKButtonFirst()
-
setShowOKButtonFirst
public void setShowOKButtonFirst(boolean showOKButtonFirst)
-
windowOpened
public void windowOpened(Window window)
Description copied from interface:WindowStateListener
Called when a window has opened.- Specified by:
windowOpened
in interfaceWindowStateListener
- Overrides:
windowOpened
in classTerraSheetSkin
- Parameters:
window
- The newly opened window.
-
previewSheetClose
public Vote previewSheetClose(Sheet sheet, boolean result)
Description copied from interface:SheetStateListener
Called to preview a sheet close event.- Specified by:
previewSheetClose
in interfaceSheetStateListener
- Overrides:
previewSheetClose
in classTerraSheetSkin
- Parameters:
sheet
- The source of the event.result
- The proposed result of the close.- Returns:
- What this listener wants to decide about this proposed close.
-
modeChanged
public void modeChanged(FileBrowserSheet fileBrowserSheet, FileBrowserSheet.Mode previousMode)
Description copied from interface:FileBrowserSheetListener
Called when a file browser sheet's mode has changed.- Specified by:
modeChanged
in interfaceFileBrowserSheetListener
- Parameters:
fileBrowserSheet
- The browser sheet that has changed.previousMode
- The previous mode that was in effect.
-
rootDirectoryChanged
public void rootDirectoryChanged(FileBrowserSheet fileBrowserSheet, java.io.File previousRootDirectory)
Description copied from interface:FileBrowserSheetListener
Called when a file browser sheet's root directory has changed.- Specified by:
rootDirectoryChanged
in interfaceFileBrowserSheetListener
- Parameters:
fileBrowserSheet
- The browser sheet that has changed.previousRootDirectory
- The previous root directory that was being browsed.
-
selectedFilesChanged
public void selectedFilesChanged(FileBrowserSheet fileBrowserSheet, Sequence<java.io.File> previousSelectedFiles)
Description copied from interface:FileBrowserSheetListener
Called when a file browser sheet's selection state has been reset.- Specified by:
selectedFilesChanged
in interfaceFileBrowserSheetListener
- Parameters:
fileBrowserSheet
- The browser sheet that has changed.previousSelectedFiles
- The complete sequence of files that used to be selected.
-
disabledFileFilterChanged
public void disabledFileFilterChanged(FileBrowserSheet fileBrowserSheet, Filter<java.io.File> previousDisabledFileFilter)
Description copied from interface:FileBrowserSheetListener
Called when a file browser sheet's disabled file filter has changed.- Specified by:
disabledFileFilterChanged
in interfaceFileBrowserSheetListener
- Parameters:
fileBrowserSheet
- The browser sheet that has changed.previousDisabledFileFilter
- The previous disabled file filter.
-
addComponent
public void addComponent(Component component)
-
-