LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsMessageWindow

java.lang.Object
  extended by leon.view.web.struts.LyStrutsMessageWindow
All Implemented Interfaces:
LyMessageWindowInterface

public class LyStrutsMessageWindow
extends java.lang.Object
implements LyMessageWindowInterface

This class implements the Message window (as described in the dtd) for the Struts viewer.


Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyStrutsMessageWindow(LyViewManager viewManager, java.lang.String answerUrl)
          Constructor.
 
Method Summary
 void addActionListener(LyActionListener listener)
          Add a listener on event of the message box.
 void free()
          Free the window.
 java.lang.Object getClientData()
          Accessor to the client Data.
 int getCommandResult()
          Get the result of the message box (which button was pressed..).
 void initialize()
          Initialize the window This method is called when all properties are set.
 void setBackgroundColor(java.lang.String bgColor)
          Set the background color of the message box.
 void setClientData(java.lang.Object clientData)
          Set the client data.
 void setCommands(java.util.BitSet commands)
          Set the commands (buttons) that are present in the message box.
 void setIcon(java.lang.String icon)
          Set the icon of the message box.
 void setMessage(java.lang.String message)
          Set the message displayed in the message box.
 void setModal(boolean modal)
          Set the modal state of the message window.
 void setTitle(java.lang.String title)
          Set the title of the message box.
 void setVisible(boolean status, boolean newThread)
          Show the message window.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

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

LyStrutsMessageWindow

public LyStrutsMessageWindow(LyViewManager viewManager,
                             java.lang.String answerUrl)
Constructor.

Parameters:
viewManager - the view manager
answerUrl - the URL that must be called to answer message
Method Detail

getClientData

public java.lang.Object getClientData()
Accessor to the client Data.

Specified by:
getClientData in interface LyMessageWindowInterface
Returns:
the client data

setClientData

public void setClientData(java.lang.Object clientData)
Set the client data.

Specified by:
setClientData in interface LyMessageWindowInterface
Parameters:
clientData -

setVisible

public void setVisible(boolean status,
                       boolean newThread)
Show the message window.

Specified by:
setVisible in interface LyMessageWindowInterface
Parameters:
status - the visible status of the message box
newThread - true if the window must be started in a new thread

setIcon

public void setIcon(java.lang.String icon)
Set the icon of the message box.

Specified by:
setIcon in interface LyMessageWindowInterface
Parameters:
icon -

setMessage

public void setMessage(java.lang.String message)
Set the message displayed in the message box.

Specified by:
setMessage in interface LyMessageWindowInterface
Parameters:
message -

setTitle

public void setTitle(java.lang.String title)
Set the title of the message box.

Specified by:
setTitle in interface LyMessageWindowInterface
Parameters:
title -

addActionListener

public void addActionListener(LyActionListener listener)
Add a listener on event of the message box.

Specified by:
addActionListener in interface LyMessageWindowInterface
Parameters:
listener -

getCommandResult

public int getCommandResult()
Get the result of the message box (which button was pressed..).

Specified by:
getCommandResult in interface LyMessageWindowInterface
Returns:
the result of the question
See Also:
LyViewManager

setCommands

public void setCommands(java.util.BitSet commands)
Set the commands (buttons) that are present in the message box.

Specified by:
setCommands in interface LyMessageWindowInterface
Parameters:
commands -
See Also:
LyViewManager

setBackgroundColor

public void setBackgroundColor(java.lang.String bgColor)
Set the background color of the message box.

Specified by:
setBackgroundColor in interface LyMessageWindowInterface
Parameters:
bgColor -

setModal

public void setModal(boolean modal)
Set the modal state of the message window.

Specified by:
setModal in interface LyMessageWindowInterface
Parameters:
modal -

initialize

public void initialize()
Initialize the window This method is called when all properties are set.

Specified by:
initialize in interface LyMessageWindowInterface

free

public void free()
Free the window. This method is called to hide and free the window.

Specified by:
free in interface LyMessageWindowInterface

toString

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

(c) January 2013 - W4 S.A.

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