|
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.servlet.E4ModuleImplementation
e4s.application.sysmodule.E4ModuleWindowSize
public class E4ModuleWindowSize
This module enables to store window dimensions (width, height) in a e4s.util.E4UserValue when the window is resized, and can restore any previous selected window size.
A.openInNewWindow(),
E4MethodPickup,
E4UserValues,
E4MethodPickup._PARAM_WINDOWNAME| Field Summary | |
|---|---|
static java.lang.String |
PREFIX_WINDOW_SIZE
Prefix value to store window dimensions in e4s.util.E4UserValue |
static E4Method |
resize
Internal Use; Callback function to get the window size as Ajax request. |
| 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 | |
|---|---|
E4ModuleWindowSize()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
|
static void |
addScript(BODY body,
E4MethodPickup mref,
E4ServletImplementation_Intf servlet)
When a window is beeing opened, you should call one of the addScript(..) functions. |
static void |
addScript(BODY body,
java.lang.String windowId,
E4ServletImplementation_Intf servlet)
When a window is beeing opened, you should call one of the addScript(..) functions. |
static void |
addScript(FRAMESET frameset,
E4MethodPickup mref,
E4ServletImplementation_Intf servlet)
When a window is beeing opened, you should call one of the addScript(..) functions. |
static void |
addScript(FRAMESET frameset,
java.lang.String windowId,
E4ServletImplementation_Intf servlet)
When a window is beeing opened, you should call one of the addScript(..) functions. |
int |
getWindowHeight(java.lang.String windowId,
int defHeight)
Get any previous stored window dimension. |
static int |
getWindowHeight(java.lang.String windowId,
int defHeight,
E4ApplObj_Intf applobj)
Get any previous stored window dimension. |
int |
getWindowWidth(java.lang.String windowId,
int defWidth)
Get any previous stored window dimension. |
static int |
getWindowWidth(java.lang.String windowId,
int defWidth,
E4ApplObj_Intf applobj)
Get any previous stored window dimension. |
void |
resize(HTML html,
E4CgiParams params)
Internal Use; Callback function to get the window size as Ajax request. |
| 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, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, 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 |
| Field Detail |
|---|
public static E4Method resize
public static final java.lang.String PREFIX_WINDOW_SIZE
e4s.util.E4UserValue
| Constructor Detail |
|---|
public E4ModuleWindowSize()
| Method Detail |
|---|
public void resize(HTML html,
E4CgiParams params)
throws java.lang.Exception
java.lang.Exception
public static void addScript(FRAMESET frameset,
E4MethodPickup mref,
E4ServletImplementation_Intf servlet)
throws E4DBException
E4EventHandlerFRAMESET for resize, and one for onload.
The resize handler calles the method resize as ajax request to store the dimensions, the onload function uses the dimensions
to set the window size using java script method resizeTo(..).
frameset - the frameset where the scripts to be addedmref - a method (use the ID E4MethodPickup.getId()
E4DBExceptionaddScript(e4s.html.FRAMESET, String, e4s.servlet.E4ServletImplementation_Intf)
public static void addScript(BODY body,
E4MethodPickup mref,
E4ServletImplementation_Intf servlet)
throws E4DBException
E4EventHandlerFRAMESET for resize, and one for onload.
The resize handler calles the method resize as ajax request to store the dimensions, the onload function uses the dimensions
to set the window size using java script method resizeTo(..).
body - the bodywhere the scripts to be addedmref - a method (use the ID E4MethodPickup.getId()
E4DBExceptionaddScript(e4s.html.BODY, String, e4s.servlet.E4ServletImplementation_Intf)
public static void addScript(FRAMESET frameset,
java.lang.String windowId,
E4ServletImplementation_Intf servlet)
throws E4DBException
E4EventHandlerFRAMESET for resize, and one for onload.
The resize handler calles the method resize as ajax request to store the dimensions, the onload function uses the dimensions
to set the window size using java script method resizeTo(..).
frameset - the frameset where the scripts to be addedwindowId - the ID of the opened window
E4DBExceptionaddScript(e4s.html.BODY, String, e4s.servlet.E4ServletImplementation_Intf)
public static void addScript(BODY body,
java.lang.String windowId,
E4ServletImplementation_Intf servlet)
throws E4DBException
E4EventHandlerBODY for resize, and one for onload.
The resize handler calles the method resize as ajax request to store the dimensions, the onload function uses the dimensions
to set the window size using java script method resizeTo(..).
body - the bodywhere the scripts to be addedwindowId - the ID of the opened window
E4DBExceptionaddScript(e4s.html.FRAMESET, String, e4s.servlet.E4ServletImplementation_Intf)
public int getWindowHeight(java.lang.String windowId,
int defHeight)
throws E4DBException
windowId - the ID of the window E4MethodPickup._PARAM_WINDOWNAMEdefHeight - the default height in pixels for this window
E4DBExceptiongetWindowWidth(String, int),
getWindowHeight(String, int, e4s.application.E4ApplObj_Intf)
public static int getWindowHeight(java.lang.String windowId,
int defHeight,
E4ApplObj_Intf applobj)
throws E4DBException
windowId - the ID of the window E4MethodPickup._PARAM_WINDOWNAMEdefHeight - the default height in pixels for this windowapplobj - a valid application object
E4DBExceptiongetWindowHeight(String, int),
getWindowWidth(String, int, e4s.application.E4ApplObj_Intf)
public int getWindowWidth(java.lang.String windowId,
int defWidth)
throws E4DBException
windowId - the ID of the window E4MethodPickup._PARAM_WINDOWNAMEdefWidth - the default width in pixels for this window
E4DBExceptiongetWindowHeight(String, int),
getWindowWidth(String, int, e4s.application.E4ApplObj_Intf)
public static int getWindowWidth(java.lang.String windowId,
int defWidth,
E4ApplObj_Intf applobj)
throws E4DBException
windowId - the ID of the window E4MethodPickup._PARAM_WINDOWNAMEdefWidth - the default width in pixels for this windowapplobj - a valid application object
E4DBExceptiongetWindowHeight(String, int),
getWindowWidth(String, int, e4s.application.E4ApplObj_Intf)public static java.lang.String _getSVNVersionString()
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||