|
|||||||||
| 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 interface ariba.ui.aribaweb.core.AWResponseGenerating |
|---|
AWResponseGenerating.ResponseSubstitution |
| Constructor Summary | |
|---|---|
FileBrowser()
|
|
| Method Summary | |
|---|---|
boolean |
canCdUp()
|
boolean |
canNotCdInto()
|
AWComponent |
cdDownAction()
|
AWComponent |
cdIntoAction()
|
AWComponent |
cdUpAction()
|
String |
currentDirectoryLinkName()
|
String |
currentDirectoryName()
|
String |
currentFileLastModified()
|
String |
currentFileName()
|
long |
currentFileSize()
|
String |
currentParentDirectoryName()
|
List |
directoryLinks()
|
void |
init()
|
boolean |
isSizeVisible()
|
boolean |
isStateless()
Overridden by AWComponent subclasses to indicate whether component instances should be preseved with the page/session (i.e. |
AWComponent |
openClicked()
|
AWComponent |
selectClicked()
|
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 |
| Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
|---|
getFieldValue, isKindOfClass, setFieldValue |
| Field Detail |
|---|
public static final String baseDirectory
public static final String fileFilter
public static final String filenameFilter
public static final String allowCdUp
public static final ariba.ui.widgets.FileBrowser.SuperRootDir SuperRootDirectory
public static final String separator
public AWTDisplayGroup _displayGroup
public File _currentDirectory
public File _currentFile
public File _baseDirectory
public File _currentDirectoryLink
public boolean _allowCdUp
| Constructor Detail |
|---|
public FileBrowser()
| Method Detail |
|---|
public boolean isStateless()
AWComponent
isStateless in class AWComponentpublic String[] supportedBindingNames()
supportedBindingNames in class AWComponentpublic void init()
init in interface AWObjectinit in class AWComponent
public List directoryLinks()
throws IOException
IOExceptionpublic String currentDirectoryLinkName()
public String currentFileName()
public String currentDirectoryName()
public String currentParentDirectoryName()
public long currentFileSize()
public 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 | ||||||||