|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.html.E4HtmlObject
e4s.html.E4HtmlElementGeneral
e4s.html.input.extended.E4FieldsetLayout
e4s.html.input.extended.E4InputField
e4s.html.input.extended.TEXTFIELD
e4s.html.input.extended.FILESELECTION
public class FILESELECTION
A textinput field that is intended for filenames, plus a file selection pickup dialog.
| Example_FILESELECTION.java |
E4ModuleFileselection| Nested Class Summary | |
|---|---|
static class |
FILESELECTION.E4ExceptionInstanciate
Error when instanciating a class. |
| Nested classes/interfaces inherited from class e4s.html.input.extended.E4InputField |
|---|
E4InputField.A_PICK |
| Field Summary | |
|---|---|
static int |
DEFAULT_INPUT_LENGTH
Default input length for the HTML input form. |
| Fields inherited from class e4s.html.input.extended.TEXTFIELD |
|---|
m_displaylength, m_inputlength, m_uppercase |
| Fields inherited from class e4s.html.input.extended.E4InputField |
|---|
BGCOLOR_READONLY, HTML_TAG, m_helpid, m_label, m_multiple_tablerows_id, m_name, m_pickup_ref, m_readonly, m_show_label, m_style_active, m_style_inactive, m_validation_object, m_validationmessage, m_value, m_visible, ms_help_image, PICKUP_IMAGE_NAME_PREFIX |
| Fields inherited from class e4s.html.E4HtmlElementGeneral |
|---|
m_elements, m_needed_scripts |
| Fields inherited from class e4s.html.E4HtmlObject |
|---|
m_parent_e4sID |
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Method Summary | |
|---|---|
protected A_FORM |
definePickupList(E4ServletImplementation_Intf servlet,
E4JavaScript js,
int selection_mode)
|
protected A_FORM |
definePickupList(E4ServletImplementation_Intf servlet,
E4JavaScript js,
int selection_mode,
boolean resize_uses_client,
int resize_width,
int resize_height)
|
E4InputField_Intf |
duplicate()
Get the status of enabling the selection of directories. |
boolean |
getCanDeleteFiles()
Status of deleting files. |
boolean |
getCanUploadFiles()
Status of uploading files. |
java.lang.String |
getE4SRootPath()
|
java.lang.String[] |
getExtensionsAllowed()
|
java.lang.String[] |
getFileExtensions()
Deprecated. |
java.lang.String |
getInitPath()
Get the initial path. |
int |
getMaxUploadSize()
Get the maximum upload size defined. |
void |
setCanDeleteFiles(boolean mode)
Enables deletion of files (by default this is turned off). |
void |
setCanDeleteFiles(java.lang.Class clazz)
Enables deletion of files and involves an AEP function. |
void |
setCanUploadFiles(boolean mode)
Enables upload of files. |
void |
setE4SRootPath(java.lang.String relative_path)
Define the root path for E4S environment (non client) selection of the image pickup. |
void |
setExtensionsAllowed(java.lang.String[] extensions)
|
void |
setFileExtensions(java.lang.String extensions)
Deprecated. |
void |
setFileExtensions(java.lang.String[] extensions)
Deprecated. |
void |
setInitPath(java.lang.String path)
Define the initial path. |
void |
setLimitPath(java.lang.String path)
Define a path limitation, each path can be seperated by comma. |
void |
setMaxUploadSize(int size)
Define maximum upload size. |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
| Methods inherited from class e4s.html.input.extended.TEXTFIELD |
|---|
_getSVNVersionString, addAjaxChanger, getLengthDisplay, getLengthMaxInput, getValue_native, getValue, setToUppercase |
| Methods inherited from class e4s.html.input.extended.E4FieldsetLayout |
|---|
isNextRow, layoutToNextRow |
| Methods inherited from class e4s.html.E4HtmlObject |
|---|
E4ID, set_e4sID |
| Methods inherited from class e4s.util.E4Object |
|---|
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface e4s.html.E4FieldsetLayout_Intf |
|---|
isNextRow, layoutToNextRow |
| Methods inherited from interface e4s.html.E4HtmlElement_Intf |
|---|
addScript, addScript, addScript, collectScripts, collectStylesForEditing, collectTranslationsForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, toHtml_hidden, validate |
| Field Detail |
|---|
public static final int DEFAULT_INPUT_LENGTH
| Constructor Detail |
|---|
public FILESELECTION(FILESELECTION field)
public FILESELECTION(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label,
int displaylength)
public FILESELECTION(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label,
int displaylength)
public FILESELECTION(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label,
int displaylength,
int inputlength)
public FILESELECTION(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label)
public FILESELECTION(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label)
public FILESELECTION(E4InputFieldName_Intf name,
java.lang.String label,
int displaylength)
public FILESELECTION(E4InputFieldName_Intf name,
E4Label_Intf label,
int displaylength)
public FILESELECTION(E4InputFieldName_Intf name,
E4Label_Intf label,
int displaylength,
int inputlength)
public FILESELECTION(E4InputFieldName_Intf name,
java.lang.String label)
public FILESELECTION(E4DBColumnInfo colinf,
E4Label_Intf label)
public FILESELECTION(E4DBColumnInfo colinf,
java.lang.String label)
public FILESELECTION(E4InputFieldName_Intf name,
E4Label_Intf label)
| Method Detail |
|---|
public void setFileExtensions(java.lang.String[] extensions)
#setExtensionsAllowed(String[]))public void setFileExtensions(java.lang.String extensions)
#setExtensionsAllowed(String[]))public void setExtensionsAllowed(java.lang.String[] extensions)
public java.lang.String[] getFileExtensions()
getExtensionsAllowed()public java.lang.String[] getExtensionsAllowed()
protected A_FORM definePickupList(E4ServletImplementation_Intf servlet,
E4JavaScript js,
int selection_mode)
throws java.lang.Exception
java.lang.Exception
protected A_FORM definePickupList(E4ServletImplementation_Intf servlet,
E4JavaScript js,
int selection_mode,
boolean resize_uses_client,
int resize_width,
int resize_height)
throws java.lang.Exception
java.lang.Exception
public void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
E4HtmlElement_IntfE4HtmlElement_Intf.toHtml(e4s.util.E4StringBufferHtml, e4s.servlet.E4ServletImplementation_Intf) function to generate output of those
objects which becomes appended. Normally, there is no need to call this function anyway,
and this also might result in side effects of too-early relasing of objects in some cases.
This function is called by E4ServletImplementation_Intf.write(e4s.html.E4HtmlElement)
on the top level HTML element (common this is a HTML
or BODY element) and branches down to all child elements.
toHtml in interface E4HtmlElement_IntftoHtml in interface E4InputField_IntftoHtml in class TEXTFIELDservlet - the servlet environment currently running in
java.lang.Exceptionpublic void setMaxUploadSize(int size)
setCanUploadFiles(boolean).
A value of -1 disables a specific upload size and uses E4Settings.getMaxUploadSize().
size - the maximum number of bytes to upload, a value less or equal
than 0 means no restriction in size which leads to E4Settings.getMaxUploadSize().getMaxUploadSize(),
E4Settings.getMaxUploadSize()public int getMaxUploadSize()
setMaxUploadSize(int),
E4Settings.getMaxUploadSize()public void setCanUploadFiles(boolean mode)
mode - the mode for uploading files (true = enabled)FILEUPLOAD,
getCanUploadFiles(),
E4ModuleFileselection.PARAM_CAN_UPLOADpublic void setCanDeleteFiles(boolean mode)
mode - the mode for uploading files (true = enabled)FILEUPLOAD,
getCanDeleteFiles(),
E4ModuleFileselection.PARAM_CAN_DELETE,
E4ModuleFileselection.PARAM_AEP_DELETE
public void setCanDeleteFiles(java.lang.Class clazz)
throws E4Exception
mode - the mode for uploading files (true = enabled)
E4ExceptionFILEUPLOAD,
getCanDeleteFiles(),
E4ModuleFileselection.PARAM_CAN_DELETE,
E4ModuleFileselection.PARAM_AEP_DELETEpublic boolean getCanUploadFiles()
setCanUploadFiles(boolean)public boolean getCanDeleteFiles()
setCanUploadFiles(boolean)public E4InputField_Intf duplicate()
duplicate in interface E4InputField_Intfduplicate in class TEXTFIELD#setCanChooseDirectory(boolean),
./
public boolean getCanChooseDirectory()
{
return m_Can_ChooseDirectory;
}public void setInitPath(java.lang.String path)
path - the pathE4ModuleFileselection.PARAM_INIT_PATH,
getInitPath(),
setLimitPath(String)public void setLimitPath(java.lang.String path)
path - the pathE4ModuleFileselection.PARAM_LIMIT_PATH,
#getLimitPath(),
setInitPath(String)public java.lang.String getInitPath()
e4s.application.sysmodule.E4ModuleFileselection2#PARAM_INIT_PATH,
setInitPath(String)public void setE4SRootPath(java.lang.String relative_path)
setInitPath(String) in other cases.
If this value is not set, then a E4Client related path will be used to distinct
images from different clients.
e4s.html.editing.E4EditingDataDescriptor#setE4SRootPath(),
e4s.util.E4Settings#getDocumentBase(),
getE4SRootPath(),
#setInitPath()public java.lang.String getE4SRootPath()
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||