public class FilePicker
extends org.mozilla.javascript.ScriptableObject
| Modifier and Type | Field and Description |
|---|---|
static int |
RETURN_CANCEL
The cancel option for the return value.
|
static int |
RETURN_OK
The approve option for the return value.
|
| Constructor and Description |
|---|
FilePicker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appendFilters(java.lang.String desc,
java.lang.String extensions)
Append file filters to the FilePicker.
|
java.io.File |
displayDirectory() |
java.lang.String |
getClassName() |
java.io.File |
getFile()
Return the selected file.
|
void |
init(java.lang.Object parent,
java.lang.String title,
java.lang.String mode)
Initialize the FilePicker.
|
void |
init(XULWidget widget,
java.lang.String title,
java.lang.String mode)
Initialize the FilePicker.
|
java.io.File |
jsGet_displayDirectory() |
java.io.File |
jsGet_file() |
int |
jsGet_returnCancel()
The cancel return value.
|
int |
jsGet_returnOK()
The OK return value for the Javascript usage of the FilePicker.
|
void |
jsSet_displayDirectory(java.lang.String value) |
void |
setDisplayDirectory(java.io.File dir)
Set the current directory.
|
void |
setDisplayDirectory(java.lang.Object dir)
Set the current directory.
|
int |
show()
Show the dialog.
|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizepublic static final int RETURN_OK
public static final int RETURN_CANCEL
public void init(XULWidget widget, java.lang.String title, java.lang.String mode)
widget - the parent widgettitle - the title of the dialogmode - the mode:
@JSFunction
public void init(java.lang.Object parent,
java.lang.String title,
java.lang.String mode)
parent - the parent executortitle - the title of the dialogmode - the mode:
@JSFunction
public boolean appendFilters(java.lang.String desc,
java.lang.String extensions)
appendFilters("The text files", "*.txt");
appendFilters("The XUL and XML files", "*.xul; *.xml");
desc - the descriptionextensions - the extensionspublic void setDisplayDirectory(java.io.File dir)
dir - the current directory@JSFunction public void setDisplayDirectory(java.lang.Object dir)
dir - the current directory@JSFunction public java.io.File getFile()
@JSFunction public int show()
public int jsGet_returnOK()
public int jsGet_returnCancel()
public java.io.File jsGet_file()
public java.io.File displayDirectory()
public java.io.File jsGet_displayDirectory()
public void jsSet_displayDirectory(java.lang.String value)
public java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObjectCopyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence