|
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.navigation.E4MenuElement
public class E4MenuElement
Menu element (interface between HTML content and menu items)
E4MenuFrameset,
E4Menu,
E4ModuleMenuHandling| Field Summary |
|---|
| 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 | |
|---|---|
E4MenuElement(E4Menu menu)
|
|
E4MenuElement(E4Menu menu,
E4ApplObj_Intf ap)
|
|
E4MenuElement(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
Get version info string from subversion. |
int |
addMenuItem(A href)
|
int |
addMenuItem(E4Label_Intf label,
A href)
|
int |
addMenuItem(E4Label_Intf label,
A href,
E4Permission_Intf perm)
|
int |
addMenuItem(E4Label_Intf label,
A href,
E4Permission_Intf perm,
int id)
|
int |
addMenuItem(E4Label_Intf label,
A href,
int id)
|
int |
addMenuItem(E4Label_Intf label,
E4Method mref)
|
int |
addMenuItem(E4Label_Intf label,
E4Method mref,
E4Permission_Intf perm)
|
int |
addMenuItem(E4Label_Intf label,
E4Method mref,
int id)
|
int |
addMenuItem(E4MenuItem item)
|
int |
addMenuItem(java.lang.String label,
A href)
|
int |
addMenuItem(java.lang.String label,
A href,
int id)
|
int |
addMenuItem(java.lang.String label,
E4Method mref)
|
int |
addMenuItem(java.lang.String label,
E4Method mref,
E4Permission_Intf perm)
|
int |
addMenuItem(java.lang.String label,
E4Method mref,
int id)
|
boolean |
changeActive(E4Method_Intf mref)
Active the menu item with the given id and de-activate all others. |
boolean |
changeActive(int menu_id)
Active the menu item with the given id and de-activate all others. |
void |
collectScripts(E4ScriptsVec v,
E4ServletImplementation_Intf servlet)
Get a vector of used scripts from all subelements. |
void |
collectStylesForEditing(E4StylesHash v,
E4ServletImplementation_Intf servlet)
Build a list (Vector) with style definitions used so far during display of this page. |
void |
collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
Build a list (Vector) with translation texts used so far during display of this page. |
E4MenuItem |
findMenuElement(int id)
Get the menu item by it's ID. |
E4MenuItem |
getActive()
|
int |
getActiveId()
|
E4CgiParams |
getAdditionalParams()
|
CLASS_Name |
getClass_Body()
|
java.util.Vector |
getDebugVec()
|
E4Menu |
getMenu()
|
java.lang.String |
getMenuID()
Get the identifier for this menu |
int |
getRememberedID(E4ApplObj_Intf applobj)
|
boolean |
getRememberID()
|
IMG[] |
getUserdefinedImages()
|
void |
setAdditionalParams(E4CgiParams params)
|
void |
setClass_ActiveItem(CLASS_Name classname)
|
void |
setClass_Baseline(CLASS_Name classname)
|
void |
setClass_Body(CLASS_Name classname)
|
void |
setClass_Body(STYLE_Name style)
|
void |
setClass_Items(CLASS_Name classname)
|
void |
setColorBaseline(E4Color color)
|
void |
setImageStyle(int layout)
|
void |
setRememberID()
If called, the current active item ID will be stored in a E4UserValues with prefix #PREFIX_USER_VAL_ID. |
void |
setStyleGrafic()
Set the basic layout style of the menu. |
void |
setStyleText()
Set the basic layout style of the menu. |
void |
setUserdefinedImages(IMG[] images)
|
void |
toHtml(E4StringBufferHtml buf,
E4ServletImplementation_Intf servlet)
Create the HTML output for this element. |
java.lang.String |
toString()
Debug capabilities only - do not use except debugging and tracing. |
| 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 |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface e4s.html.E4HtmlElement_Intf |
|---|
addScript, addScript, addScript, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate |
| Constructor Detail |
|---|
public E4MenuElement(E4Menu menu,
E4ApplObj_Intf ap)
public E4MenuElement(E4Menu menu)
public E4MenuElement(java.lang.String persistantObjId,
E4ServletImplementation_Intf servlet)
| Method Detail |
|---|
public E4Menu getMenu()
public void setRememberID()
E4UserValues with prefix #PREFIX_USER_VAL_ID.
#PREFIX_USER_VAL_ID,
getRememberID()public int getRememberedID(E4ApplObj_Intf applobj)
public boolean getRememberID()
setRememberID()
public void collectScripts(E4ScriptsVec v,
E4ServletImplementation_Intf servlet)
E4HtmlElementGeneral
collectScripts in interface E4HtmlElement_IntfcollectScripts in class E4HtmlElementGeneralv - collect the names of all scriptsservlet - the servlet contextE4JavaScript
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 class E4HtmlElementGeneralservlet - the servlet environment currently running in
java.lang.Exception
public int addMenuItem(java.lang.String label,
A href)
public int addMenuItem(java.lang.String label,
A href,
int id)
public int addMenuItem(E4Label_Intf label,
A href,
int id)
public int addMenuItem(E4Label_Intf label,
A href,
E4Permission_Intf perm)
public int addMenuItem(E4Label_Intf label,
A href,
E4Permission_Intf perm,
int id)
throws java.lang.Exception
java.lang.Exception
public int addMenuItem(E4Label_Intf label,
A href)
public int addMenuItem(A href)
public int addMenuItem(java.lang.String label,
E4Method mref,
E4Permission_Intf perm)
public int addMenuItem(E4Label_Intf label,
E4Method mref,
E4Permission_Intf perm)
public int addMenuItem(java.lang.String label,
E4Method mref)
public int addMenuItem(java.lang.String label,
E4Method mref,
int id)
public int addMenuItem(E4Label_Intf label,
E4Method mref,
int id)
public int addMenuItem(E4Label_Intf label,
E4Method mref)
public int addMenuItem(E4MenuItem item)
public void setColorBaseline(E4Color color)
public boolean changeActive(int menu_id)
menu_id - the menu-ID to be activated, use -1 to deactivate all menu items.
e4s.html.E4TabbedMenu#changeActive,
e4s.html.TabbedMenu_Item#getId(),
E4Menu.changeActive(int),
changeActive(e4s.html.E4Method_Intf)public boolean changeActive(E4Method_Intf mref)
mref - the associated method to be activated, use null to deactivate all menu items.
e4s.html.E4TabbedMenu#changeActive,
e4s.html.TabbedMenu_Item#getId(),
E4Menu.changeActive(e4s.html.E4Method_Intf),
changeActive(int)public int getActiveId()
public E4MenuItem getActive()
public E4MenuItem findMenuElement(int id)
id - ID of the menu-item
public void setStyleGrafic()
E4Menu.setStyleGrafic(),
setStyleText()public void setStyleText()
E4Menu.setStyleGrafic(),
setStyleGrafic()public void setImageStyle(int layout)
public java.lang.String toString()
toString in class E4Object
public void collectTranslationsForEditing(E4TranslationsVec v,
E4ServletImplementation_Intf servlet)
E4HtmlElementGeneralE4Label.
collectTranslationsForEditing in interface E4HtmlElement_IntfcollectTranslationsForEditing in class E4HtmlElementGeneralv - the Vector where the styles will be collected, may not be nullservlet - the current servlet instanceE4Label_Intfpublic void setClass_Items(CLASS_Name classname)
public void setClass_ActiveItem(CLASS_Name classname)
public void setClass_Baseline(CLASS_Name classname)
public void setClass_Body(CLASS_Name classname)
public void setClass_Body(STYLE_Name style)
public CLASS_Name getClass_Body()
public void collectStylesForEditing(E4StylesHash v,
E4ServletImplementation_Intf servlet)
E4StyleUsage.
collectStylesForEditing in interface E4HtmlElement_IntfcollectStylesForEditing in class E4HtmlElementGeneralv - the Vector where the styles will be collected, may not be nullservlet - the servlet contextE4ServletImplementation_Intf.sessionCanEditStyles(),
#collectStylesForEditing(Vector, STYLE_Name, boolean)public void setAdditionalParams(E4CgiParams params)
public void setUserdefinedImages(IMG[] images)
public IMG[] getUserdefinedImages()
public E4CgiParams getAdditionalParams()
public java.lang.String getMenuID()
public static java.lang.String _getSVNVersionString()
E4Util.getRevisionCodeFromSVN(Class)public java.util.Vector getDebugVec()
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||