www.element4solution.com

e4s.html
Class E4Hint

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
                          extended by e4s.html.E4Hint
All Implemented Interfaces:
E4HtmlElement_Intf

public class E4Hint
extends DIV

Hint field with a checkbox to confirm reading. After that the field wont appear again for the user. $LastChangedDate: 2009-04-20 14:28:18 +0200 (Mo, 20 Apr 2009) $ $LastChangedRevision: 4244 $ $LastChangedBy: robert $

See Also:
E4HintID, T_E4S_HINT_Sel, T_E4S_HINT_READ_Sel, E4ModuleHintEdit, e4s.Html.HtmlContentElement#Hint(e4s.db.systabledef.E4HintID,e4s.servlet.E4ServletImplementation_Intf), E4ServletImplementation.sessionCanEditHints(), DIV

Field Summary
 
Fields inherited from class e4s.html.DIV
DEFAULTSTYLE, 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
 
Method Summary
static java.lang.String _getSVNVersionString()
           
static E4Hint newInstance(E4HtmlContentElement element, E4HintID hintid, E4ServletImplementation_Intf servlet)
          Use this static method if you want to display the Hint.
static void recallAllMessages(E4ServletImplementation_Intf servlet, E4HintID hintid)
          Sets the Message for all users as unread.
 void setAlign(Align align)
          Define the horizontal Align, which is used for the caption as well as for the content area.
 void setAlign(VAlign align)
          Define the vertical Align, which is used for the caption as well as for the content area.
 void setBackground(IMG background)
          Define an image for the background of the content area only.
 void setClass_Caption(CLASS_Name classname)
          Define a E4CSS class for the caption area (<TD>-Tag).
 void setClass_Table(CLASS_Name classname)
          Define a E4CSS class for <TABLE>-Tag around the E4Box.
 void setClass(CLASS_Name classname)
          Define a E4CSS class for the content area (<TD>-Tag).
 void setColorBackground(E4Color color)
          Define a color for the content area background.
 void setColorBorder(E4Color color)
          Define a color for the border.
 void setColorCaption(E4Color color)
          Define a color for the caption area background.
 void setFont(FONT font)
          Define the font of the box
 void setHeight(float height)
          Set height of the E4Box to the specified relative percentage value.
 void setHeight(int height)
          Set height of the E4Box to the specified absolut value.
 void setHeightMax()
          Set height of the E4Box to the maximum (100%).
 void setVAlign(VAlign align)
          Set the vertical alignment (same as setAlign(e4s.html.VAlign)).
 void setWidth(float width)
          Set width of the E4Box to the specified relative percentage value.
 void setWidth(int width)
          Set width of the E4Box to the specified absolut value.
 void setWidthMax()
          Set width of the E4Box to the maximum (100%).
 
Methods inherited from class e4s.html.DIV
eventHandlers, getAlign, getDivId, getStyleHide, hide, jsClear, jsHide, jsIsOpen, jsShow, jsWrite, onMouseOut, onMouseOver, setEventHandler, setSTYLE, setStyle, setStyleHide, setTitle, show, toHtml, toHtml, 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
 

Method Detail

newInstance

public static E4Hint newInstance(E4HtmlContentElement element,
                                 E4HintID hintid,
                                 E4ServletImplementation_Intf servlet)
                          throws E4DBException
Use this static method if you want to display the Hint. It returns the Hint itself which extends DIV, so you can edit the appearence in the same way you edit a DIV

Parameters:
element -
hintid -
servlet -
Throws:
E4DBException

recallAllMessages

public static void recallAllMessages(E4ServletImplementation_Intf servlet,
                                     E4HintID hintid)
                              throws E4DBException
Sets the Message for all users as unread.

Parameters:
servlet -
hintid -
Throws:
E4DBException

setFont

public void setFont(FONT font)
Define the font of the box

Parameters:
font -

setAlign

public void setAlign(Align align)
Define the horizontal Align, which is used for the caption as well as for the content area.

Overrides:
setAlign in class DIV
Parameters:
align - the alignment
See Also:
DIV.getAlign()

setAlign

public void setAlign(VAlign align)
Define the vertical Align, which is used for the caption as well as for the content area.

Parameters:
align - the alignment

setVAlign

public void setVAlign(VAlign align)
Set the vertical alignment (same as setAlign(e4s.html.VAlign)).

Parameters:
align - the alignment

setBackground

public void setBackground(IMG background)
Define an image for the background of the content area only.

Parameters:
background - the image to be used in the content area

setColorBackground

public void setColorBackground(E4Color color)
Define a color for the content area background.

Parameters:
color - the color
See Also:
setColorCaption(e4s.html.E4Color), setColorBorder(e4s.html.E4Color)

setColorCaption

public void setColorCaption(E4Color color)
Define a color for the caption area background.

Parameters:
color - the color
See Also:
setColorBorder(e4s.html.E4Color), setColorBackground(e4s.html.E4Color)

setColorBorder

public void setColorBorder(E4Color color)
Define a color for the border.

Parameters:
color - the color
See Also:
setColorCaption(e4s.html.E4Color), setColorBackground(e4s.html.E4Color)

setClass

public void setClass(CLASS_Name classname)
Define a E4CSS class for the content area (<TD>-Tag).

Parameters:
classname - the name of the E4CSS class.
See Also:
setClass_Caption(e4s.html.style.CLASS_Name), setClass_Table(e4s.html.style.CLASS_Name)

setClass_Caption

public void setClass_Caption(CLASS_Name classname)
Define a E4CSS class for the caption area (<TD>-Tag).

Parameters:
classname - the name of the E4CSS class.
See Also:
setClass(e4s.html.style.CLASS_Name), setClass_Table(e4s.html.style.CLASS_Name)

setClass_Table

public void setClass_Table(CLASS_Name classname)
Define a E4CSS class for <TABLE>-Tag around the E4Box.

Parameters:
classname - the name of the E4CSS class.
See Also:
setClass(e4s.html.style.CLASS_Name), setClass_Caption(e4s.html.style.CLASS_Name)

setWidthMax

public void setWidthMax()
Set width of the E4Box to the maximum (100%).

See Also:
setWidth(int)

setWidth

public void setWidth(int width)
Set width of the E4Box to the specified absolut value.

Parameters:
width - with in pixel
See Also:
setWidth(float), setWidthMax()

setWidth

public void setWidth(float width)
Set width of the E4Box to the specified relative percentage value.

Parameters:
width - with in percentage, must be a value between 0.0f and 1.0f
See Also:
setWidth(int), setWidthMax()

setHeightMax

public void setHeightMax()
Set height of the E4Box to the maximum (100%).

See Also:
setHeight(int)

setHeight

public void setHeight(int height)
Set height of the E4Box to the specified absolut value.

Parameters:
height - with in pixel
See Also:
setHeight(float), setHeightMax()

setHeight

public void setHeight(float height)
Set height of the E4Box to the specified relative percentage value.

Parameters:
height - with in percentage, must be a value between 0.0f and 1.0f
See Also:
setHeight(int), setHeightMax()

_getSVNVersionString

public static java.lang.String _getSVNVersionString()

www.element4solution.com