www.element4solution.com

e4s.html
Class A_Popup

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.html.E4HtmlObject
          extended by e4s.html.E4HtmlElementGeneral
              extended by e4s.html.E4HtmlElement
                  extended by e4s.html.E4HtmlContentElement
                      extended by e4s.html.A
                          extended by e4s.html.A_Popup
All Implemented Interfaces:
E4HtmlElement_Intf

public class A_Popup
extends A
implements E4HtmlElement_Intf

Popup a dynamic window with information when the mouse get's over the <A>-Tag. When a A_Popup element is used, it is important to prepare the BODY element using function prepare(e4s.html.BODY). Unless you don't prepare, you wan't see anything. The popup text will be included by a e4s.html.avaScript in the page, so either use less or small elements only. Within the popup text element, you shold avoid links, scripts, big data, interactive elements. Unless you dont specify a background, element will be transparent. Suitable results will be possible using a TABLE element.

Example_Popup.java


Field Summary
static java.lang.String JS_NAME_WRITE_NON_TRANSPARENT
           
static java.lang.String JS_NAME_WRITE_TRANSPARENT
           
 
Fields inherited from class e4s.html.A
HTML_TAG, WINDOW_PARAM_DIRECTORIES, WINDOW_PARAM_MENU, WINDOW_PARAM_RESIZE, WINDOW_PARAM_SCROLL, WINDOW_PARAM_STATUS, WINDOW_PARAM_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
A_Popup(A_Popup template)
           
A_Popup(E4HtmlElement element, E4ServletImplementation_Intf servlet)
           
A_Popup(E4JavaScript formatter, java.lang.String[] params)
          Formatting is done by a user defined script where the output, based on the specified parameters, is constructed.
A_Popup(E4Method mref, E4HtmlElement element, E4ServletImplementation_Intf servlet)
           
A_Popup(E4Method mref, java.lang.String sHtml)
           
A_Popup(E4Method mref, java.lang.String sHtml, boolean transparent)
           
A_Popup(java.lang.String sHtml)
           
A_Popup(java.lang.String sHtml, boolean transparent)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
           
 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.
static void prepare(BODY body)
           
static void prepare(HTML html)
           
 
Methods inherited from class e4s.html.A
addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameter, addParameterObj, clone, eventHandlers, findEventHandler, getAlias, getE4Method, getMethod, getParameters, getParameters, getTarget, getWindowAttributes, openInNewWindow, openInNewWindow, openInNewWindow, openInNewWindow, openInNewWindow, removeAll, setEventHandler, setMethod, setSTYLE, setTarget, setTarget, setTitle, toHtml, toHtml, toString, toUrl, toUrl, toUrl
 
Methods inherited from class e4s.html.E4HtmlContentElement
A_Email, A_Email, A_Multiple, A_Popup, A_Popup, A_Popup, A_Popup, A_Popup, A_Popup, A_Popup, A_Reference, A_Reference, A_Reference, A_Reference, A_Reference, A_ReturnValue, A_ReturnValue, A_ReturnValue, A_ReturnValue, A, A, A, A, A, A, A, AjaxElement, AjaxElement, AjaxElement, B, B, BIG, Box, Box, Box, BoxRoundCorners, BoxRoundCorners, BoxRoundCorners, BR, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, BUTTON, CENTER, DEL, DIV, DIV, DIV, DIV, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FONT, FullSizeE4Message, H1, H2, H3, H4, Hint, HR, I, I, IMG, IMG, IMG, IMG, IMG, IMG, IMG, IMG, INS, Message, Message, Message, Message, Message, NBSP, NOBR, P_NBSP, P, PRE, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, rem, rem, rem, rem, rem, rem, SMALL, SPAN, STRIKE, strike, SystemError, SystemError, SystemError, SystemError, TABLE, TABLE, trace, trace, trace, trace, trace, trace, translate_Sys, translate, U, UL
 
Methods inherited from class e4s.html.E4HtmlElement
addElement, addElement, addElement, copyElements, print
 
Methods inherited from class e4s.html.E4HtmlElementGeneral
addScript, addScript, addScript, addStyleForEditing, addTranslationForEditing, buildStyleAttribute, buildStyleClassReference, collectStylesForEditing, collectStylesForEditing, collectTranslationsForEditing, collectTranslationsForEditing, createScript, createScript, debugToString, findElement, findElement, findElement, findElement, getElements, getElementsVec, getField, getId, getLastElement, getStringContent, getStyle, getSTYLE, getStyle, hasScripts, hasSTYLE, isContentClass, isE4InputField_Intf, openTag, removeElementById, removeElements, removeElements, removeStyle, setId, setReadOnly, setStyle, setStyle, setSTYLE, setValue, Style, Style, toHtml_hidden, validate
 
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, collectTranslationsForEditing, debugToString, findElement, findElement, getElements, getElementsVec, getField, getId, getStringContent, isContentClass, removeAll, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, toHtml, validate
 

Field Detail

JS_NAME_WRITE_TRANSPARENT

public static final java.lang.String JS_NAME_WRITE_TRANSPARENT
See Also:
Constant Field Values

JS_NAME_WRITE_NON_TRANSPARENT

public static final java.lang.String JS_NAME_WRITE_NON_TRANSPARENT
See Also:
Constant Field Values
Constructor Detail

A_Popup

public A_Popup(E4HtmlElement element,
               E4ServletImplementation_Intf servlet)
        throws java.lang.Exception
Throws:
java.lang.Exception

A_Popup

public A_Popup(E4JavaScript formatter,
               java.lang.String[] params)
        throws java.lang.Exception
Formatting is done by a user defined script where the output, based on the specified parameters, is constructed. It is important, that this content is handled to the JavaScript either JS_NAME_WRITE_TRANSPARENT or JS_NAME_WRITE_NON_TRANSPARENT.

Parameters:
formatter - a JavaScript
params - can be null or an array of values passed to formatter
Throws:
java.lang.Exception

A_Popup

public A_Popup(E4Method mref,
               E4HtmlElement element,
               E4ServletImplementation_Intf servlet)
        throws java.lang.Exception
Throws:
java.lang.Exception

A_Popup

public A_Popup(java.lang.String sHtml)
        throws java.lang.Exception
Throws:
java.lang.Exception

A_Popup

public A_Popup(java.lang.String sHtml,
               boolean transparent)
        throws java.lang.Exception
Throws:
java.lang.Exception

A_Popup

public A_Popup(E4Method mref,
               java.lang.String sHtml)
        throws java.lang.Exception
Throws:
java.lang.Exception

A_Popup

public A_Popup(E4Method mref,
               java.lang.String sHtml,
               boolean transparent)
        throws java.lang.Exception
Throws:
java.lang.Exception

A_Popup

public A_Popup(A_Popup template)
        throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

prepare

public static void prepare(BODY body)

prepare

public static void prepare(HTML html)

collectStylesForEditing

public void collectStylesForEditing(E4StylesHash v,
                                    E4ServletImplementation_Intf servlet)
Description copied from class: E4HtmlElementGeneral
Build a list (Vector) with style definitions used so far during display of this page. Run throught all subclasses elements and collect their styles as well. Note, that a style will only be added one time. The Vector contains elements of class E4StyleUsage.

Specified by:
collectStylesForEditing in interface E4HtmlElement_Intf
Overrides:
collectStylesForEditing in class E4HtmlElementGeneral
Parameters:
v - the Vector where the styles will be collected, may not be null
servlet - the servlet context
See Also:
E4ServletImplementation_Intf.sessionCanEditStyles(), #collectStylesForEditing(e4s.html.style.E4StylesHash, STYLE_Name, boolean)

collectScripts

public void collectScripts(E4ScriptsVec v,
                           E4ServletImplementation_Intf servlet)
Description copied from class: E4HtmlElementGeneral
Get a vector of used scripts from all subelements.

Specified by:
collectScripts in interface E4HtmlElement_Intf
Overrides:
collectScripts in class E4HtmlElementGeneral
Parameters:
v - collect the names of all scripts
servlet - the servlet context
See Also:
E4JavaScript

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com