LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsMessages

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsMessages
All Implemented Interfaces:
LyGraphicalComponent, LyGraphicalMessages, LyViewComponent, LyFreeInterface, LyWebComponent

public class LyStrutsMessages
extends LyWebObject
implements LyGraphicalMessages

This class implements the Messages object (as described in the dtd) for struts viewer.

MESSAGES: Message Bar
A message bar can be used in a main window to provide the user with information about the displayed data (number of objects, printing in progress...).

See Also:
LyMessages

Field Summary
static java.lang.String __VERSION
           
static int DECO_BORDER_PARAMETER
          Constant used to generate CSS class name for border.
static int DECO_MESSAGES_PARAMETER
          Constant used to generate CSS class name for messages.
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsMessages(LyMessages messages)
          Class constructor of a Messages object for the struts target.
 
Method Summary
 void addMessage(LyMessage message, int pos)
          Inserts a sub-component messages at given position.
 void refresh()
          Refresh frame containing this web object.
 void removeMessage(LyMessage message)
          Removes a sub-component messages.
 void writeHtml(LyWebPageWriter pw)
          Write HTML description corresponding to this component.
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, getBounds, getChildrenBounds, getController, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
free, getViewComponent
 

Field Detail

__VERSION

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

DECO_BORDER_PARAMETER

public static int DECO_BORDER_PARAMETER
Constant used to generate CSS class name for border.


DECO_MESSAGES_PARAMETER

public static int DECO_MESSAGES_PARAMETER
Constant used to generate CSS class name for messages.

Constructor Detail

LyStrutsMessages

public LyStrutsMessages(LyMessages messages)
Class constructor of a Messages object for the struts target.

Parameters:
messages - the generic Messages defined for every type of view targets.
Method Detail

writeHtml

public void writeHtml(LyWebPageWriter pw)
Description copied from interface: LyWebComponent
Write HTML description corresponding to this component.

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer

refresh

public void refresh()
Description copied from class: LyWebObject
Refresh frame containing this web object.

Overrides:
refresh in class LyWebObject

addMessage

public void addMessage(LyMessage message,
                       int pos)
Description copied from interface: LyGraphicalMessages
Inserts a sub-component messages at given position.

Specified by:
addMessage in interface LyGraphicalMessages
Parameters:
message - The messages to add to messages list.
pos - Position where the sub-component is inserted.

removeMessage

public void removeMessage(LyMessage message)
Description copied from interface: LyGraphicalMessages
Removes a sub-component messages.

Specified by:
removeMessage in interface LyGraphicalMessages
Parameters:
message - The messages to remove to messages list.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com