|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjaxcent.JaxcentObject
jaxcent.JaxcentHtmlElement
jaxcent.HtmlForm
jaxcent.HtmlUploadForm
The class HtmlUploadForm extends HtmlForm, and is meant for processing file uploading. It corresponds to FORM tags. The FORM should contain an INPUT of type FILE, and a SUBMIT button. It may contain other input tags. The value of these inputs at the time of file upload can be retrieved in "onUploadData".
The action, method, encoding type and target of the form are set by Jaxcent on page load, and do not need to be set. (If specified in the FORM tag, these will be over-written.)
Constructor Summary | |
HtmlUploadForm(JaxcentPage page,
SearchType searchType,
java.lang.String str)
Search for HTML element on page by specified search type and search string. |
|
HtmlUploadForm(JaxcentPage page,
SearchType searchType,
java.lang.String[] attributes,
java.lang.String[] values)
Create new HTML element on page using the specified attributes and values. |
|
HtmlUploadForm(JaxcentPage page,
SearchType searchType,
java.lang.String str,
int index)
Search for HTML Element on page by specified search type and search string, and search index. |
|
HtmlUploadForm(JaxcentPage page,
SearchType searchType,
java.lang.String tag,
java.lang.String text)
Create new HTML Element on page using the specified tag. |
|
HtmlUploadForm(JaxcentPage page,
SearchType searchType,
java.lang.String text,
java.lang.String[] attributes,
java.lang.String[] values)
Create new HTML element on page using the specified text and attributes and values. |
|
HtmlUploadForm(JaxcentPage page,
java.lang.String id)
Search for HTML element on page by specified ID |
Method Summary | |
protected void |
onUploadData(java.util.Map params,
java.util.Map fileBytes)
onUploadData is called after the completion of an upload operation. |
protected void |
onUploadDone(boolean success)
onUploadDone can be overridden to receive notification of upload completion. |
protected void |
onUploadProgress(int bytesReceived,
int totalBytes)
onUploadProgress can be overridden to receive intermediate notifications of upload progress. |
protected void |
onUploadStart(int totalBytes)
onUploadStart can be overridden to receive notification when uploads are started. |
Methods inherited from class jaxcent.HtmlForm |
getAction, getLength, getMethod, getName, getTarget, onBlur, onClick, onFocus, onMouseDown, onMouseUp, onReset, onSubmit, onSubmit, reset, scrollIntoView, setAction, setMethod, setName, setTarget, submit |
Methods inherited from class jaxcent.JaxcentHtmlElement |
checkNodeExists, deleteElement, getAttribute, getID, getInnerText, getStyle, getTag, hide, insertAfter, insertAtBeginning, insertAtBeginning, insertAtEnd, insertAtEnd, insertBefore, onDragDrop, setAttribute, setCssClass, setDraggable, setEnabled, setInnerText, setStyle, setStyle, setStyle, setStyle, setVisible, show |
Methods inherited from class jaxcent.JaxcentObject |
addJavaScriptVerification, getId, getProperty, getSelectedIndex, getSelectedValue, setId, setProperty, setProperty, setProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HtmlUploadForm(JaxcentPage page, java.lang.String id)
public HtmlUploadForm(JaxcentPage page, SearchType searchType, java.lang.String str)
public HtmlUploadForm(JaxcentPage page, SearchType searchType, java.lang.String str, int index)
public HtmlUploadForm(JaxcentPage page, SearchType searchType, java.lang.String tag, java.lang.String text) throws Jaxception
public HtmlUploadForm(JaxcentPage page, SearchType searchType, java.lang.String[] attributes, java.lang.String[] values) throws Jaxception
public HtmlUploadForm(JaxcentPage page, SearchType searchType, java.lang.String text, java.lang.String[] attributes, java.lang.String[] values) throws Jaxception
Method Detail |
protected void onUploadStart(int totalBytes)
protected void onUploadProgress(int bytesReceived, int totalBytes)
protected void onUploadDone(boolean success)
protected void onUploadData(java.util.Map params, java.util.Map fileBytes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |