|
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.E4HtmlElement
e4s.html.E4HtmlContentElement
e4s.html.A
public class A
Main class for building anchor tags.
An anchor tag provides a link (HREF) to another page (in our case a
E4Method) or a E4JavaScript that is executed when the
content of the A tag is clicked.
| Example_A.java |
A_Email,
A_Multiple,
A_Popup,
A_ReturnValue,
E4Method,
E4CgiParams,
E4JavaScript,
E4EventHandlerA| Field Summary | |
|---|---|
static java.lang.String |
HTML_TAG
|
static long |
WINDOW_PARAM_DIRECTORIES
Parameter for opening an A-tag in a window: display directories. |
static long |
WINDOW_PARAM_MENU
Parameter for opening an A-tag in a window: display menubar. |
static long |
WINDOW_PARAM_RESIZE
Parameter for opening an A-tag in a window: enable resize of the window. |
static long |
WINDOW_PARAM_SCROLL
Parameter for opening an A-tag in a window: use scrollbars. |
static long |
WINDOW_PARAM_STATUS
Parameter for opening an A-tag in a window: status-bar. |
static long |
WINDOW_PARAM_TOOLBAR
Parameter for opening an A-tag in a window: display toolbar. |
| Fields inherited from class e4s.html.E4HtmlContentElement |
|---|
BOOL_STR_FALSE, BOOL_STR_TRUE |
| 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 | |
|---|---|
protected |
A()
|
|
A(A href)
|
|
A(E4EventHandlerA handle)
Create an <A>-tag, using an event handler. |
|
A(E4Label_Intf question,
E4Method functionname)
Create an <A>-tag, using the specified E4Method as link
to a function that shall be executed when this link becomes activated by the user. |
|
A(E4Method functionname)
Create an <A>-tag, using the specified E4Method as link
to a function that shall be executed when this link becomes activated by the user. |
protected |
A(E4MethodPickup functionname)
Builds a link to be used as E4Method_Picup. |
|
A(E4String url)
Builds a link to any HTML page (URL location). |
|
A(java.lang.String url)
Builds a link to any HTML page (URL location). |
|
A(java.lang.String question,
E4Method functionname)
Create an <A>-tag, using the specified E4Method as link
to a function that shall be executed when this link becomes activated by the user. |
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
void |
addParameter(E4CgiParams params)
|
void |
addParameter(E4DBColumnName paramname,
boolean value)
|
void |
addParameter(E4DBColumnName paramname,
java.util.Date value)
|
void |
addParameter(E4DBColumnName paramname,
E4Long value)
|
void |
addParameter(E4DBColumnName paramname,
E4String value)
|
void |
addParameter(E4DBColumnName paramname,
float value)
|
void |
addParameter(E4DBColumnName paramname,
int value)
|
void |
addParameter(E4DBColumnName paramname,
long value)
|
void |
addParameter(E4DBColumnName paramname,
java.lang.String value)
|
void |
addParameter(E4InputFieldName paramname,
boolean value)
Add a parameter to the parameter list. |
void |
addParameter(E4InputFieldName paramname,
java.util.Date value)
Add a parameter to the parameter list. |
void |
addParameter(E4InputFieldName paramname,
E4Long value)
Add a parameter to the parameter list. |
void |
addParameter(E4InputFieldName paramname,
E4String value)
Add a parameter to the parameter list. |
void |
addParameter(E4InputFieldName paramname,
float value)
Add a parameter to the parameter list. |
void |
addParameter(E4InputFieldName paramname,
long value)
Add a parameter to the parameter list. |
void |
addParameter(E4InputFieldName paramname,
java.lang.String value)
Add a parameter to the parameter list. |
void |
addParameter(java.lang.String paramname,
boolean value)
Add a parameter to the parameter list. |
void |
addParameter(java.lang.String paramname,
java.util.Calendar value)
|
void |
addParameter(java.lang.String paramname,
java.util.Date value)
Add a parameter to the parameter list. |
void |
addParameter(java.lang.String paramname,
E4Long value)
Add a parameter to the parameter list. |
void |
addParameter(java.lang.String paramname,
E4String value)
Add a parameter to the parameter list. |
void |
addParameter(java.lang.String paramname,
float value)
|
void |
addParameter(java.lang.String paramname,
int value)
Add a parameter to the parameter list. |
void |
addParameter(java.lang.String paramname,
long value)
Add a parameter to the parameter list. |
void |
addParameter(java.lang.String paramname,
java.lang.String value)
Add a parameter to the parameter list. |
void |
addParameter(java.lang.String paramname,
java.lang.String[] value)
Add a parameter to the parameter list. |
void |
addParameterObj(java.lang.Object obj,
java.lang.String alias)
|
java.lang.Object |
clone()
|
java.lang.StringBuffer |
eventHandlers()
Get the event handlers and their calling sequence to be used when rendering the <A>-tag. |
E4EventHandlerA |
findEventHandler(int evtid)
|
int |
getAlias()
Get the alias of the function involved. |
E4Method_Intf |
getE4Method()
Deprecated. Use getMethod() instead |
E4Method_Intf |
getMethod()
Get the function involved. |
E4CgiParams |
getParameters()
Get the parameters for the <A>-tag. |
E4CgiParams |
getParameters(boolean create)
|
E4FrameName |
getTarget()
Get the target frame. |
static java.lang.String |
getWindowAttributes(long newwindow_params,
int x,
int y,
int dx,
int dy)
Construct a string containing window parameters. |
void |
openInNewWindow()
Open the next link in a window, the name of the window is "DEFAULT" and no size and position can be restored. |
void |
openInNewWindow(long windowstyle)
Open the next link in a window, the name of the window is "DEFAULT" and no size and position can be restored. |
void |
openInNewWindow(java.lang.String windowname)
Open the next link in a window, the name of the window is defined and size and position will be restored from persistant settings. |
void |
openInNewWindow(java.lang.String windowname,
long windowstyle)
Open the next link in a window, the name of the window is defined and size and position will be restored from persistant settings. |
void |
openInNewWindow(java.lang.String windowname,
long windowstyle,
int width,
int height)
Open the next link in a window, the name of the window is defined and size and position will be restored from persistant settings. |
void |
removeAll()
Removes all elements, including all parameters |
void |
setEventHandler(E4EventHandlerA handler)
Set an event handler. |
void |
setMethod(E4Method_Intf mref)
Set the method. |
void |
setSTYLE(CLASS_Name class_name)
|
void |
setTarget(E4FrameName target)
Sets the frame (or window) target. |
void |
setTarget(FRAME target)
Sets the frame (or window) target. |
void |
setTitle(java.lang.String title)
Sets the title attribute. |
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
protected void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet,
java.lang.String includeParameterScript)
Create the HTML output for this element. |
java.lang.String |
toString()
Intended for debug only. |
java.lang.String |
toUrl(E4ServletImplementation_Intf servlet)
Create the servlet call as String. |
java.lang.String |
toUrl(E4ServletImplementation_Intf servlet,
boolean include_timestamp)
Create the servlet call as String. |
protected java.lang.String |
toUrl(E4ServletImplementation_Intf servlet,
java.lang.String includeParameterScript)
|
| Methods inherited from class e4s.html.E4HtmlElement |
|---|
addElement, addElement, addElement, copyElements, print |
| Methods inherited from class e4s.html.E4HtmlObject |
|---|
E4ID, 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, 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 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface e4s.html.E4HtmlElement_Intf |
|---|
addScript, addScript, addScript, collectScripts, collectStylesForEditing, collectTranslationsForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate |
| Field Detail |
|---|
public static final java.lang.String HTML_TAG
public static final long WINDOW_PARAM_SCROLL
openInNewWindow(String,long),
#getWindowAttributes(e4s.servlet.servetImplementation_Intf),
Constant Field Valuespublic static final long WINDOW_PARAM_RESIZE
openInNewWindow(String,long),
#getWindowAttributes(e4s.servlet.servetImplementation_Intf),
Constant Field Valuespublic static final long WINDOW_PARAM_TOOLBAR
openInNewWindow(String,long),
#getWindowAttributes(e4s.servlet.servetImplementation_Intf),
Constant Field Valuespublic static final long WINDOW_PARAM_DIRECTORIES
openInNewWindow(String,long),
#getWindowAttributes(e4s.servlet.servetImplementation_Intf),
Constant Field Valuespublic static final long WINDOW_PARAM_MENU
openInNewWindow(String,long),
#getWindowAttributes(e4s.servlet.servetImplementation_Intf),
Constant Field Valuespublic static final long WINDOW_PARAM_STATUS
openInNewWindow(String,long),
#getWindowAttributes(e4s.servlet.servetImplementation_Intf),
Constant Field Values| Constructor Detail |
|---|
public A(E4EventHandlerA handle)
E4JavaScript to execute some action defined in the handler
due to a specified event in the handler (e.g. On-Click, On-Mouse-Over, ..).
handle - the event-handlepublic A(A href)
protected A()
public A(E4Method functionname)
E4Method as link
to a function that shall be executed when this link becomes activated by the user.
functionname - the function to be calledA(String, e4s.html.E4Method)
public A(java.lang.String question,
E4Method functionname)
E4Method as link
to a function that shall be executed when this link becomes activated by the user.
question - a question that will be poped up first, the execution continues only if the
user selects the "Yes" button in this dialog. The message is displayed using
a E4JavaScript function.functionname - the function to be calledA(e4s.html.E4Method)
public A(E4Label_Intf question,
E4Method functionname)
E4Method as link
to a function that shall be executed when this link becomes activated by the user.
question - a question that will be poped up first, the execution continues only if the
user selects the "Yes" button in this dialog. The message is displayed using
a E4JavaScript function.functionname - the function to be calledA(e4s.html.E4Method)protected A(E4MethodPickup functionname)
functionname - the method[-placeholder] to be involved.public A(java.lang.String url)
url - any URL location, usually starting with "http://"public A(E4String url)
url - any URL location, usually starting with "http://"| Method Detail |
|---|
public void openInNewWindow()
E4ServletImplementation_Intf.isRunningWindow(),
E4Constants.PARAM_ISWINDOW,
openInNewWindow(String),
openInNewWindow(String,long),
E4ModuleWindowSizepublic void openInNewWindow(long windowstyle)
windowstyle - window parametersE4ServletImplementation_Intf.isRunningWindow(),
E4Constants.PARAM_ISWINDOW,
openInNewWindow(String),
WINDOW_PARAM_SCROLL,
WINDOW_PARAM_RESIZE,
WINDOW_PARAM_TOOLBAR,
WINDOW_PARAM_DIRECTORIES,
E4ModuleWindowSize
public void openInNewWindow(java.lang.String windowname,
long windowstyle)
windowname - name of the windowwindowstyle - window parametersE4ServletImplementation_Intf.isRunningWindow(),
E4Constants.PARAM_ISWINDOW,
openInNewWindow(),
openInNewWindow(long),
WINDOW_PARAM_SCROLL,
WINDOW_PARAM_RESIZE,
WINDOW_PARAM_TOOLBAR,
WINDOW_PARAM_DIRECTORIESpublic void openInNewWindow(java.lang.String windowname)
windowname - name of the windowE4ServletImplementation_Intf.isRunningWindow(),
E4Constants.PARAM_ISWINDOW,
openInNewWindow()
public void openInNewWindow(java.lang.String windowname,
long windowstyle,
int width,
int height)
windowname - name of the windowwindowstyle - window parametersE4ServletImplementation_Intf.isRunningWindow(),
E4Constants.PARAM_ISWINDOW,
openInNewWindow()public void setTarget(E4FrameName target)
target - the target window or name of the target framesetTarget(e4s.html.FRAME),
FORM.setTarget(e4s.html.E4FrameName),
FRAME.getFrameName(),
getTarget()public void setTarget(FRAME target)
target - the framesetTarget(e4s.html.E4FrameName),
FORM.setTarget(e4s.html.E4FrameName),
getTarget()public E4FrameName getTarget()
setTarget(e4s.html.E4FrameName)public java.lang.String toUrl(E4ServletImplementation_Intf servlet)
E4JavaScript.
E4Method_Intf.constructUrl(e4s.servlet.E4ServletImplementation_Intf),
toHtml(e4s.util.E4StringBufferHtml,e4s.servlet.E4ServletImplementation_Intf)
public java.lang.String toUrl(E4ServletImplementation_Intf servlet,
boolean include_timestamp)
E4JavaScript.
servlet - the servlet contextinclude_timestamp - include timestampE4Method_Intf.constructUrl(e4s.servlet.E4ServletImplementation_Intf),
toHtml(e4s.util.E4StringBufferHtml,e4s.servlet.E4ServletImplementation_Intf)
protected java.lang.String toUrl(E4ServletImplementation_Intf servlet,
java.lang.String includeParameterScript)
public static java.lang.String getWindowAttributes(long newwindow_params,
int x,
int y,
int dx,
int dy)
newwindow_params - a combination (addition) od WINDOW_PARAM_SCROLL, WINDOW_PARAM_TOOLBAR
WINDOW_PARAM_DIRECTORIES or WINDOW_PARAM_RESIZEx - left position of the window in pixelsy - top position of the window in pixelsdx - width of the window in pixelsdy - height of the window in pixels
openInNewWindow(String,long)
public void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
throws java.lang.Exception
E4HtmlElement_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 class E4HtmlElementGeneralservlet - the servlet environment currently running in
java.lang.Exception
protected void toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet,
java.lang.String includeParameterScript)
throws java.lang.Exception
E4HtmlElement_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.
servlet - the servlet environment currently running inincludeParameterScript - normal should be null, except see A_FORM
java.lang.Exception
public void addParameter(java.lang.String paramname,
java.lang.String value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(java.lang.String paramname,
E4String value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(E4InputFieldName paramname,
E4String value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(E4InputFieldName paramname,
E4Long value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(E4InputFieldName paramname,
java.lang.String value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(E4InputFieldName paramname,
long value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(E4InputFieldName paramname,
float value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(E4InputFieldName paramname,
boolean value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(E4InputFieldName paramname,
java.util.Date value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(java.lang.String paramname,
java.util.Date value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(java.lang.String paramname,
java.lang.String[] value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(java.lang.String paramname,
boolean value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(java.lang.String paramname,
int value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(E4DBColumnName paramname,
int value)
public void addParameter(E4DBColumnName paramname,
boolean value)
public void addParameter(java.lang.String paramname,
java.util.Calendar value)
public void addParameter(java.lang.String paramname,
float value)
public void addParameter(E4DBColumnName paramname,
float value)
public void addParameter(java.lang.String paramname,
long value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(java.lang.String paramname,
E4Long value)
paramname - the name of the parametervalue - the value for the parameter. A value of null removes the parameter
public void addParameter(E4DBColumnName paramname,
E4Long value)
public void addParameter(E4DBColumnName paramname,
long value)
public void addParameter(E4CgiParams params)
public void addParameter(E4DBColumnName paramname,
java.lang.String value)
public void addParameter(E4DBColumnName paramname,
java.util.Date value)
public void addParameter(E4DBColumnName paramname,
E4String value)
public void addParameterObj(java.lang.Object obj,
java.lang.String alias)
public void removeAll()
removeAll in interface E4HtmlElement_IntfremoveAll in class E4HtmlElementGeneralpublic E4Method_Intf getE4Method()
getMethod() instead
public E4Method_Intf getMethod()
public int getAlias()
E4Method_Intf.getAlias()public void setEventHandler(E4EventHandlerA handler)
E4JavaScript to execute some action defined in the handler
due to a specified event in the handler (e.g. On-Click, On-Mouse-Over, ..).
Note that there can be more than one event handler defined.
handler - the event-handlepublic java.lang.StringBuffer eventHandlers()
#toHtml(e4s.servlet.E4ServletImplementation_Intf).
BODY.eventHandlers(),
E4EventHandlerA,
setEventHandler(e4s.html.E4EventHandlerA)public E4EventHandlerA findEventHandler(int evtid)
public java.lang.String toString()
toString in class E4Objectpublic E4CgiParams getParameters()
addParameter(String,String) function.
public E4CgiParams getParameters(boolean create)
public void setSTYLE(CLASS_Name class_name)
public void setMethod(E4Method_Intf mref)
mref - the methodgetMethod()public void setTitle(java.lang.String title)
title - the title to be setpublic java.lang.Object clone()
clone in class java.lang.Objectpublic 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 | ||||||||