|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
FileBrower provides server-side directory browsing.
The base directory's file listing is displayed initially in a AWTDataTable. The columns are file name, size, and last modified date. Links on the name allows users to cd down into a sub-directory. A global button at the bottom allows users to cd up into the parent directory. Each file has a select button for selection. Filter can used to filter listings.
Bindings | |||
---|---|---|---|
baseDirectory
|
The directory to start file listing. Depending on the value of the binding "allowCdUp", users may or may not cd up above this directory. If not present, the root directory is used. |
File (get) |
|
selection
*
|
The selected file object that is set after user selects a directory. |
File (set) |
|
action
*
|
This is invoked after the selected file has been set. |
AWResponseGenerating (get) |
|
fileFilter
|
If this is present, it is used to filter all listings. Useful for filtering by file properties (ie, isDirectory, size, etc). |
FileFilter (get) |
|
filenameFilter
|
If this is present and fileFilter is not, it is used to filter all listings. Useful for filtering by file name patterns (ie, file extensions). |
FilenameFilter (get) |
|
enableScrolling
|
Determines whether the table adds scrollbars for content that won't fit within browser window. |
boolean (get) |
|
showOptionsMenu
|
Whether the table should provide an "Options" popup menu to support show/hide of columns, grouping, and Excel export. |
boolean (get) |
|
batchSize
|
Number of row per page to display in table. Default is 20. This batch size is only used if scrolling is disabled. If scrolling is enabled, then "scroll faulting" is used instead (with a fixed batch size). |
int (get) |
|
allowCdUp
|
Whether users be allowed to cd up from the baseDirectory. The default value is false, or users are not allowed cd up beyond the baseDirectory. |
boolean (get) |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWComponent
ariba.ui.widgets.FileBrowser
public class FileBrowser
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ariba.ui.aribaweb.core.AWComponent |
---|
AWComponent.RenderingFilter, AWComponent.RenderingListener |
Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating |
---|
AWResponseGenerating.ResponseSubstitution |
Constructor Summary | |
---|---|
FileBrowser()
|
Method Summary | |
---|---|
boolean |
canCdUp()
|
boolean |
canNotCdInto()
|
AWComponent |
cdDownAction()
|
AWComponent |
cdIntoAction()
|
AWComponent |
cdUpAction()
|
java.lang.String |
currentDirectoryLinkName()
|
java.lang.String |
currentDirectoryName()
|
java.lang.String |
currentFileLastModified()
|
java.lang.String |
currentFileName()
|
long |
currentFileSize()
|
java.lang.String |
currentParentDirectoryName()
|
java.util.List |
directoryLinks()
|
void |
init()
|
boolean |
isSizeVisible()
|
boolean |
isStateless()
Overridden by AWComponent subclasses to indicate whether component instances should be preserved with the page/session (i.e. |
AWComponent |
openClicked()
|
AWComponent |
selectClicked()
|
java.lang.String[] |
supportedBindingNames()
|
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
---|
debugString, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
---|
getFieldValue, isKindOfClass, setFieldValue |
Field Detail |
---|
public static final java.lang.String baseDirectory
public static final java.lang.String fileFilter
public static final java.lang.String filenameFilter
public static final java.lang.String allowCdUp
public static final ariba.ui.widgets.FileBrowser.SuperRootDir SuperRootDirectory
public static final java.lang.String separator
public AWTDisplayGroup _displayGroup
public java.io.File _currentDirectory
public java.io.File _currentFile
public java.io.File _baseDirectory
public java.io.File _currentDirectoryLink
public boolean _allowCdUp
Constructor Detail |
---|
public FileBrowser()
Method Detail |
---|
public boolean isStateless()
AWComponent
isStateless
in class AWComponent
public java.lang.String[] supportedBindingNames()
supportedBindingNames
in class AWComponent
public void init()
init
in interface AWObject
init
in class AWComponent
public java.util.List directoryLinks() throws java.io.IOException
java.io.IOException
public java.lang.String currentDirectoryLinkName()
public java.lang.String currentFileName()
public java.lang.String currentDirectoryName()
public java.lang.String currentParentDirectoryName()
public long currentFileSize()
public java.lang.String currentFileLastModified()
public boolean canCdUp()
public boolean canNotCdInto()
public boolean isSizeVisible()
public AWComponent cdDownAction()
public AWComponent cdUpAction()
public AWComponent cdIntoAction()
public AWComponent selectClicked()
public AWComponent openClicked()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |