|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--MoreMotionObject | +--ProcessField | +--FileBox
FileBox
Represents a FileBox that wraps a FILE INPUT
element and moderates the opening of a
File Upload Window to select a file to upload and uploading the selected file to the server.
Defined in Filer.js
Field Summary | |
String |
browserFileName
The browser name of the uploaded file |
boolean |
isFileBox
|
Object |
props
FileBox Properties Object. |
String |
serverFileName
The server name of the uploaded file |
Fields inherited from class ProcessField |
props, isProcessField, elm, needsValueCloning
|
Fields inherited from class MoreMotionObject |
node, name, type, isMoreMotionObject, props
|
Constructor Summary | |
FileBox(node)
|
Method Summary | |
void
|
base(node)
|
void
|
clear()
Clears the value of this Process Field. |
Object
|
getValue()
Returns the value of this field |
void
|
openFileDialog()
Opens the file dialog where the user can select a file from the local computer and upload to the server. |
void
|
setValue(value)
Sets the value of this field. |
boolean
|
validate()
Validates this Process Field with the built-in validation methods that are applicable to the type of the Process Field. |
Methods inherited from class ProcessField |
setModified, isModified, getRecord, setSubmitPrefix, appendRequestParams, focusTab, notify, runValidationHandler, checkValueIsAvailable, checkValueIsNumber, checkHasValidValue, runHandler
|
Methods inherited from class MoreMotionObject |
saveProps, boolProp, numberProp, charProp, getIValue, setIValue
|
Field Detail |
String browserFileName
boolean isFileBox
Object props
winUrl | The URL of the File Upload Window |
allowedExts | The list of the allowed file extensions (separated with ';' character) that can be selected in the File Dialog where the user selects a file to upload. Example ".jpg;.gif" |
winWidth | The width of the File Upload Window |
winHeight | The height of the File Upload Window |
winToolBars | The ToolBars flag for which true means that the toolbars should be visible on the File Open Dialog. |
winScrolBars | The ScrolBars flag for which true means that the scrolbars should be visible on the File Open Dialog |
winStatusBar | The StatusBar flag for which true means that the statusbar should be visible on the File Open Dialog. |
winMenuBar | The MenuBar flag for which true means that menu bar should be visible on the File Open Dialog |
winResizeable | The Resizable flag for which true means that the window of the File Open Dialog can be resized |
winLocation | The Location flag for which true means that the Location input field of the browser should be visible on the File Open Dialog |
onFileSelectHandler | The name of the event handler function that will be called when a file is selected to upload |
onFileUploadHandler | The name of the event handler function that will be called when the uploading of the selected file is completed |
uploadId |
String serverFileName
Constructor Detail |
FileBox(node)
node
- the DOM Element node that is wrapped by this field
Method Detail |
void base(node)
node
- the DOM Element node that is wrapped by this field
void clear()
Object getValue()
void openFileDialog()
FILE INPUT
element that is
wrapped by this object.void setValue(value)
value
- The value to set to the field.
boolean validate()
|
MoreMotion Face API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |