www.element4solution.com

e4s.html
Class DIV

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.DIV
All Implemented Interfaces:
E4HtmlElement_Intf
Direct Known Subclasses:
E4AjaxElementGeneral, E4DivFader, E4DropdownMenu, E4Hint

public class DIV
extends E4HtmlContentElement
implements E4HtmlElement_Intf

<DIV>-Tag.

Example_DIV_1.java

Example_DIV_2.java

Example_DIV_3.java

See Also:
E4Draggable, E4EventHandlerDIV

Field Summary
static STYLE_Name DEFAULTSTYLE
           
static java.lang.String HTML_TAG
           
 
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
DIV()
           
DIV(DIV div)
           
DIV(java.lang.String id)
           
DIV(java.lang.String id, int width, int height)
           
DIV(java.lang.String id, int left, int top, int width, int height)
           
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 java.lang.StringBuffer eventHandlers()
           
 Align getAlign()
          Get the alignment for the DIV element.
 java.lang.String getDivId()
           
 boolean getStyleHide()
           
 void hide()
           
 E4JavaScript jsClear()
           
 E4JavaScript jsHide()
           
 E4JavaScript jsIsOpen()
           
 E4JavaScript jsShow()
           
 E4JavaScript jsWrite()
           
 E4EventHandlerDIV onMouseOut()
          Create an unnamed onMouseOut event handler
 E4EventHandlerDIV onMouseOver()
          Create an unnamed onMouseOver event handler
 void setAlign(Align align)
          Set the alignment for the DIV element.
 void setEventHandler(E4EventHandlerDIV handler)
          Set an event handler.
 void setSTYLE(CLASS_Name class_name)
           
 void setStyle(int width, int height)
          Deprecated.  
 void setStyleHide(boolean hide)
           
 void setTitle(java.lang.String title)
           
 void show()
           
 void toHtml(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet)
          Create the HTML output for this element.
protected  void toHtml(E4StringBufferHtml buf, E4ServletImplementation_Intf servlet, java.lang.StringBuffer innerHtml)
           
 java.lang.String toString()
           
 
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, collectScripts, collectStylesForEditing, 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, removeAll, 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
clone, 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, removeAll, removeElementById, removeElements, set_e4sID, setId, setReadOnly, setValue, toHtml_hidden, validate
 

Field Detail

HTML_TAG

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

DEFAULTSTYLE

public static final STYLE_Name DEFAULTSTYLE
Constructor Detail

DIV

public DIV()

DIV

public DIV(java.lang.String id)

DIV

public DIV(java.lang.String id,
           int width,
           int height)

DIV

public DIV(java.lang.String id,
           int left,
           int top,
           int width,
           int height)

DIV

public DIV(DIV div)
Method Detail

setStyle

public void setStyle(int width,
                     int height)
Deprecated. 


getStyleHide

public boolean getStyleHide()

setStyleHide

public void setStyleHide(boolean hide)

hide

public void hide()

show

public void show()

setSTYLE

public void setSTYLE(CLASS_Name class_name)

toHtml

public void toHtml(E4StringBufferHtml buf,
                   E4ServletImplementation_Intf servlet)
            throws java.lang.Exception
Description copied from interface: E4HtmlElement_Intf
Create the HTML output for this element. Also run throught all child elements, and call their 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.

Specified by:
toHtml in interface E4HtmlElement_Intf
Overrides:
toHtml in class E4HtmlElementGeneral
servlet - the servlet environment currently running in
Throws:
java.lang.Exception

toHtml

protected void toHtml(E4StringBufferHtml buf,
                      E4ServletImplementation_Intf servlet,
                      java.lang.StringBuffer innerHtml)
               throws java.lang.Exception
Throws:
java.lang.Exception

getDivId

public java.lang.String getDivId()

jsHide

public E4JavaScript jsHide()

jsIsOpen

public E4JavaScript jsIsOpen()

jsWrite

public E4JavaScript jsWrite()

jsClear

public E4JavaScript jsClear()

jsShow

public E4JavaScript jsShow()

setAlign

public void setAlign(Align align)
Set the alignment for the DIV element.

Parameters:
align - the alignment
See Also:
getAlign()

getAlign

public Align getAlign()
Get the alignment for the DIV element.

Returns:
the alignment or null if not set
See Also:
setAlign(e4s.html.Align)

toString

public java.lang.String toString()
Overrides:
toString in class E4Object

setTitle

public void setTitle(java.lang.String title)

setEventHandler

public void setEventHandler(E4EventHandlerDIV handler)
Set an event handler.

Parameters:
handler - the event-handle

onMouseOver

public E4EventHandlerDIV onMouseOver()
Create an unnamed onMouseOver event handler

Returns:
the created and added event handler

onMouseOut

public E4EventHandlerDIV onMouseOut()
Create an unnamed onMouseOut event handler

Returns:
the created and added event handler

eventHandlers

public java.lang.StringBuffer eventHandlers()

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com