|
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
e4s.html.input.extended.IMAGEFIELD
public class IMAGEFIELD
An input field (for <FORM>) elements representing a single line text input value.
| Example_InputForm.java |
TEXTFIELD,
TEXTAREA,
DATEFIELD,
LONGFIELD,
FLOATFIELD,
FORM| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class e4s.html.input.extended.FILESELECTION |
|---|
FILESELECTION.E4ExceptionInstanciate |
| Nested classes/interfaces inherited from class e4s.html.input.extended.E4InputField |
|---|
E4InputField.A_PICK |
| Field Summary | |
|---|---|
static CLASS_Name |
BASE_STYLE_NAME
|
static int |
DEFAULT_HEIGHT
Default height of the image - display block. |
static int |
DEFAULT_WIDTH
Default width of the image - display block. |
static int |
HEIGHT_TEXT_LINE
Line-Height of the bottom text line. |
static STYLE_Name |
STYLE_INPUT_FIELD
|
| Fields inherited from class e4s.html.input.extended.FILESELECTION |
|---|
DEFAULT_INPUT_LENGTH |
| 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 |
| Constructor Summary | |
|---|---|
IMAGEFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label)
|
|
IMAGEFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label,
java.lang.String relative_path)
|
|
IMAGEFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label)
|
|
IMAGEFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label,
java.lang.String relative_path)
|
|
IMAGEFIELD(E4ID parent_id,
E4InputFieldName name)
Construct a image input field. |
|
IMAGEFIELD(E4ID parent_id,
E4InputFieldName name,
java.lang.String label)
Construct a image input field. |
|
IMAGEFIELD(E4InputFieldName_Intf name,
E4Label_Intf label)
|
|
IMAGEFIELD(E4InputFieldName_Intf name,
E4Label_Intf label,
java.lang.String relative_path)
|
|
IMAGEFIELD(E4InputFieldName_Intf name,
java.lang.String label)
|
|
IMAGEFIELD(E4InputFieldName_Intf name,
java.lang.String label,
java.lang.String relative_path)
|
|
IMAGEFIELD(E4InputFieldName name)
Construct a image input field. |
|
IMAGEFIELD(E4InputFieldName name,
java.lang.String label)
Construct a image input field. |
|
IMAGEFIELD(IMAGEFIELD field)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
collectScripts(E4ScriptsVec vec,
E4ServletImplementation_Intf servlet)
Get a vector of used scripts from all subelements. |
void |
collectStylesForEditing(E4StylesHash v,
E4ServletImplementation_Intf servlet)
Internal use only - collect all style elements of this and sun elements. |
E4InputField_Intf |
duplicate()
Get the status of enabling the selection of directories. |
E4Color |
getBorderColor()
Get the color for the border. |
boolean |
getExtraSmall()
|
int |
getHeight()
Get the width of the rectangle to be displayed. |
boolean |
getUseImageResizer()
Check, if the image shall be scaled before display, using E4ImageResizer. |
java.lang.String |
getValue()
Get the value of this input field. |
int |
getWidth()
Get the width of the rectangle to be displayed. |
void |
setBorderColor(E4Color color)
Define the color for the border. |
void |
setEnablePopup(boolean mode,
E4ServletImplementation_Intf servlet)
When the mouse gets over the image, display a larger version of the current image in a popup window. |
void |
setEnablePopup(boolean mode,
int scale,
E4ServletImplementation_Intf servlet)
When the mouse gets over the image, display a larger version of the current image in a popup window. |
void |
setExtraSmall(boolean mode)
This enables a smaller version in hight of the imagefield. |
void |
setHeight(int height)
Define the height of the rectangle to be displayed. |
void |
setUseImageResizer(boolean resize)
Define, if the image shall be scaled before display, using E4ImageResizer. |
void |
setValue(E4StringImage value)
|
void |
setWidth(int width)
Define the width of the rectangle to be displayed. |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
| Methods inherited from class e4s.html.input.extended.FILESELECTION |
|---|
definePickupList, definePickupList, getCanDeleteFiles, getCanUploadFiles, getE4SRootPath, getExtensionsAllowed, getFileExtensions, getInitPath, getMaxUploadSize, setCanDeleteFiles, setCanDeleteFiles, setCanUploadFiles, setE4SRootPath, setExtensionsAllowed, setFileExtensions, setFileExtensions, setInitPath, setLimitPath, setMaxUploadSize |
| Methods inherited from class e4s.html.input.extended.TEXTFIELD |
|---|
addAjaxChanger, getLengthDisplay, getLengthMaxInput, getValue_native, 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, 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_WIDTH
getWidth(),
Constant Field Valuespublic static final int DEFAULT_HEIGHT
getHeight(),
Constant Field Valuespublic static final int HEIGHT_TEXT_LINE
public static final CLASS_Name BASE_STYLE_NAME
public static final STYLE_Name STYLE_INPUT_FIELD
| Constructor Detail |
|---|
public IMAGEFIELD(E4ID parent_id,
E4InputFieldName name)
name - HTML (CGI) name of the input field. The input field is treatened
by this name, and a value can be retrieved throught the
E4CgiParams class using this name.
public IMAGEFIELD(E4ID parent_id,
E4InputFieldName name,
java.lang.String label)
name - HTML (CGI) name of the input field. The input field is treatened
by this name, and a value can be retrieved throught the
E4CgiParams class using this name.label - E4Label to be displayed on the screen during input
public IMAGEFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label,
java.lang.String relative_path)
public IMAGEFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
java.lang.String label)
public IMAGEFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label,
java.lang.String relative_path)
public IMAGEFIELD(E4ID parent_id,
E4InputFieldName_Intf name,
E4Label_Intf label)
public IMAGEFIELD(E4InputFieldName name)
name - HTML (CGI) name of the input field. The input field is treatened
by this name, and a value can be retrieved throught the
E4CgiParams class using this name.
public IMAGEFIELD(E4InputFieldName name,
java.lang.String label)
name - HTML (CGI) name of the input field. The input field is treatened
by this name, and a value can be retrieved throught the
E4CgiParams class using this name.label - E4Label to be displayed on the screen during input
public IMAGEFIELD(E4InputFieldName_Intf name,
java.lang.String label,
java.lang.String relative_path)
public IMAGEFIELD(E4InputFieldName_Intf name,
java.lang.String label)
public IMAGEFIELD(E4InputFieldName_Intf name,
E4Label_Intf label,
java.lang.String relative_path)
public IMAGEFIELD(E4InputFieldName_Intf name,
E4Label_Intf label)
public IMAGEFIELD(IMAGEFIELD field)
| Method Detail |
|---|
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 FILESELECTIONservlet - the servlet environment currently running in
java.lang.Exceptionpublic java.lang.String getValue()
getValue in class TEXTFIELDE4InputField.setValue(java.lang.String),
setValue(e4s.util.E4StringImage)public void setValue(E4StringImage value)
public boolean getExtraSmall()
public void setExtraSmall(boolean mode)
mode - true means small version, false (= default) for the standard
version
public void setEnablePopup(boolean mode,
E4ServletImplementation_Intf servlet)
mode - true turns on this feature, false turns off this featurescale - a scale faktor (typically a value larger than 1 but smaller as 10, recommended is a value of 5)servlet - the current servletsetEnablePopup(boolean, e4s.servlet.E4ServletImplementation_Intf),
E4ModuleImageResize,
E4ImageResizer
public void setEnablePopup(boolean mode,
int scale,
E4ServletImplementation_Intf servlet)
mode - true turns on this feature, false turns off this featurescale - a scale faktor (typically a value larger than 1 but smaller as 10, recommended is a value of 5)servlet - the current servletsetEnablePopup(boolean, e4s.servlet.E4ServletImplementation_Intf),
E4ModuleImageResize,
E4ImageResizerpublic void setWidth(int width)
width - the width of the surrounding rectangle in pixelspublic int getWidth()
DEFAULT_WIDTH.
getHeight(),
setWidth(int)public void setHeight(int height)
height - the hight of the surrounding rectangle in pixelspublic int getHeight()
DEFAULT_HEIGHT.
getWidth(),
setHeight(int)public void setBorderColor(E4Color color)
color - the color of the borderpublic E4Color getBorderColor()
E4Color.GRAY.
setBorderColor(e4s.html.E4Color)
public void collectStylesForEditing(E4StylesHash v,
E4ServletImplementation_Intf servlet)
E4InputField
collectStylesForEditing in interface E4HtmlElement_IntfcollectStylesForEditing in class E4InputFieldv - the Vector where the styles are collectedservlet - the servlet contextE4ServletImplementation_Intf.sessionCanEditStyles(),
#collectStylesForEditing(e4s.html.style.E4StylesHash, STYLE_Name, boolean)
public void collectScripts(E4ScriptsVec vec,
E4ServletImplementation_Intf servlet)
E4HtmlElementGeneral
collectScripts in interface E4HtmlElement_IntfcollectScripts in class E4HtmlElementGeneralvec - collect the names of all scriptsservlet - the servlet contextE4JavaScriptpublic E4InputField_Intf duplicate()
FILESELECTION
duplicate in interface E4InputField_Intfduplicate in class FILESELECTION#setCanChooseDirectory(boolean),
./
public boolean getCanChooseDirectory()
{
return m_Can_ChooseDirectory;
}public void setUseImageResizer(boolean resize)
E4ImageResizer.
resize - true (default) resizes the image to the specified width/height.getUseImageResizer()public boolean getUseImageResizer()
E4ImageResizer.
setUseImageResizer(boolean)public static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||