SPT Core API

com.sptci.echo.tree.filesystem
Class FileSystemWindowPane<L extends ActionListener>

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by nextapp.echo.app.WindowPane
          extended by com.sptci.echo.WindowPane
              extended by com.sptci.echo.tree.filesystem.FileSystemWindowPane<L>
All Implemented Interfaces:
View, Serializable, FloatingPane, ModalSupport, Pane, PaneContainer, RenderIdSupport

public class FileSystemWindowPane<L extends ActionListener>
extends WindowPane

A window pane that displays a FileSystemPane. Commonly used to display a server-side file selection dialogue.

© Copyright 2009 Sans Pareil Technologies, Inc.

Version:
$Id: FileSystemWindowPane.java 4858 2009-08-11 15:52:14Z rakesh $
Author:
Rakesh Vidyadharan 2009-06-22
See Also:
Serialized Form

Nested Class Summary
protected  class FileSystemWindowPane.CloseListener
          A default close listener for the cancel button.
 
Field Summary
protected  Button openButton
          The button used to "open" the selected file.
protected  L openListener
          The action listener to associate with the open button.
protected  FileSystemPane pane
          The file system pane displayed in this window pane.
 
Fields inherited from class nextapp.echo.app.WindowPane
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, INPUT_CLOSE, INPUT_MAXIMIZE, INPUT_MINIMIZE, PROPERTY_BACKGROUND_IMAGE, PROPERTY_BORDER, PROPERTY_CLOSABLE, PROPERTY_CLOSE_ICON, PROPERTY_CLOSE_ICON_INSETS, PROPERTY_CLOSE_ROLLOVER_ICON, PROPERTY_CONTENT_HEIGHT, PROPERTY_CONTENT_WIDTH, PROPERTY_CONTROLS_INSETS, PROPERTY_CONTROLS_SPACING, PROPERTY_DEFAULT_CLOSE_OPERATION, PROPERTY_HEIGHT, PROPERTY_ICON, PROPERTY_ICON_INSETS, PROPERTY_INSETS, PROPERTY_MAXIMIZE_ENABLED, PROPERTY_MAXIMIZE_ICON, PROPERTY_MAXIMIZE_ICON_INSETS, PROPERTY_MAXIMIZE_ROLLOVER_ICON, PROPERTY_MAXIMUM_HEIGHT, PROPERTY_MAXIMUM_WIDTH, PROPERTY_MINIMIZE_ENABLED, PROPERTY_MINIMIZE_ICON, PROPERTY_MINIMIZE_ICON_INSETS, PROPERTY_MINIMIZE_ROLLOVER_ICON, PROPERTY_MINIMUM_HEIGHT, PROPERTY_MINIMUM_WIDTH, PROPERTY_MOVABLE, PROPERTY_POSITION_X, PROPERTY_POSITION_Y, PROPERTY_RESIZABLE, PROPERTY_TITLE, PROPERTY_TITLE_BACKGROUND, PROPERTY_TITLE_BACKGROUND_IMAGE, PROPERTY_TITLE_FONT, PROPERTY_TITLE_FOREGROUND, PROPERTY_TITLE_HEIGHT, PROPERTY_TITLE_INSETS, PROPERTY_WIDTH, PROPERTY_Z_INDEX
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Fields inherited from interface nextapp.echo.app.ModalSupport
MODAL_CHANGED_PROPERTY
 
Constructor Summary
FileSystemWindowPane()
           
 
Method Summary
protected  Component createButtons()
           
protected  SplitPane createPane()
          Create the split pane used to hold the file system pane and buttons.
 L getOpenListener()
           
 FileSystemPane getPane()
           
 void init()
          Over-ridden to add the FileSystemPane to the pane.
 void setOpenListener(L openListener)
          Sets the listener registered with the component.
 
Methods inherited from class nextapp.echo.app.WindowPane
addWindowPaneListener, fireWindowClosing, fireWindowMaximized, fireWindowMinimized, getBackgroundImage, getBorder, getCloseIcon, getCloseIconInsets, getCloseRolloverIcon, getContentHeight, getContentWidth, getControlsInsets, getControlsSpacing, getDefaultCloseOperation, getHeight, getIcon, getIconInsets, getInsets, getMaximizeIcon, getMaximizeIconInsets, getMaximizeRolloverIcon, getMaximumHeight, getMaximumWidth, getMinimizeIcon, getMinimizeIconInsets, getMinimizeRolloverIcon, getMinimumHeight, getMinimumWidth, getPositionX, getPositionY, getTitle, getTitleBackground, getTitleBackgroundImage, getTitleFont, getTitleForeground, getTitleHeight, getTitleInsets, getWidth, getZIndex, isClosable, isMaximizeEnabled, isMinimizeEnabled, isModal, isMovable, isResizable, isValidChild, isValidParent, processInput, removeWindowPaneListener, setBackgroundImage, setBorder, setClosable, setCloseIcon, setCloseIconInsets, setCloseRolloverIcon, setContentHeight, setContentWidth, setControlsInsets, setControlsSpacing, setDefaultCloseOperation, setHeight, setIcon, setIconInsets, setInsets, setMaximizeEnabled, setMaximizeIcon, setMaximizeIconInsets, setMaximizeRolloverIcon, setMaximumHeight, setMaximumWidth, setMinimizeEnabled, setMinimizeIcon, setMinimizeIconInsets, setMinimizeRolloverIcon, setMinimumHeight, setMinimumWidth, setModal, setMovable, setPositionX, setPositionY, setResizable, setTitle, setTitleBackground, setTitleBackgroundImage, setTitleFont, setTitleForeground, setTitleHeight, setTitleInsets, setWidth, setZIndex, userClose, userMaximize, userMinimize
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

openListener

protected L extends ActionListener openListener
The action listener to associate with the open button.


openButton

protected Button openButton
The button used to "open" the selected file.


pane

protected FileSystemPane pane
The file system pane displayed in this window pane.

Constructor Detail

FileSystemWindowPane

public FileSystemWindowPane()
Method Detail

init

public void init()
Over-ridden to add the FileSystemPane to the pane.

Overrides:
init in class WindowPane

createPane

protected SplitPane createPane()
Create the split pane used to hold the file system pane and buttons.

Returns:
The properly configured (styled) split pane.

createButtons

protected Component createButtons()
Returns:
The component that holds the control buttons for the window.

getOpenListener

public L getOpenListener()
Returns:
The listener that handles selected files.

setOpenListener

public void setOpenListener(L openListener)
Sets the listener registered with the component. Also adds the specified listener to the openButton. Keep this in mind when setting the listener multiple times.

Parameters:
openListener - The listener to set and add.

getPane

public FileSystemPane getPane()
Returns:
The file system pane displayed in this component.

SPT Core API