LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing
Class LySwingMessageWindow

java.lang.Object
  extended by leon.view.win.swing.LySwingMessageWindow
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, LyMessageWindowInterface

public class LySwingMessageWindow
extends java.lang.Object
implements java.awt.event.ActionListener, LyMessageWindowInterface

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

See Also:
LyViewManager, LyMessageWindowInterface

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LySwingMessageWindow(LyComponent source, LyViewManager viewManager)
          Class constructor for a new swing message window.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvent)
          (non-Javadoc).
 void addActionListener(LyActionListener listener)
          (non-Javadoc).
 void free()
          (non-Javadoc).
 java.lang.Object getClientData()
          (non-Javadoc).
 int getCommandResult()
          (non-Javadoc).
 void initialize()
          (non-Javadoc).
 void setBackgroundColor(java.lang.String bgColor)
          (non-Javadoc).
 void setClientData(java.lang.Object clientData)
          (non-Javadoc).
 void setCommands(java.util.BitSet commands)
          (non-Javadoc).
 void setIcon(java.lang.String icon)
          (non-Javadoc).
 void setMessage(java.lang.String message)
          (non-Javadoc).
 void setModal(boolean modal)
          (non-Javadoc).
 void setTitle(java.lang.String title)
          (non-Javadoc).
 void setVisible(boolean status, boolean newThread)
          (non-Javadoc).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

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

LySwingMessageWindow

public LySwingMessageWindow(LyComponent source,
                            LyViewManager viewManager)
Class constructor for a new swing message window.

Parameters:
source - the source component
viewManager - the view manager
Method Detail

initialize

public void initialize()
(non-Javadoc).

Specified by:
initialize in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.initialize()

free

public void free()
(non-Javadoc).

Specified by:
free in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.free()

addActionListener

public void addActionListener(LyActionListener listener)
(non-Javadoc).

Specified by:
addActionListener in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.addActionListener(leon.view.event.LyActionListener)

getCommandResult

public int getCommandResult()
(non-Javadoc).

Specified by:
getCommandResult in interface LyMessageWindowInterface
Returns:
the result of the question
See Also:
LyMessageWindowInterface.getCommandResult()

setVisible

public void setVisible(boolean status,
                       boolean newThread)
(non-Javadoc).

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
See Also:
LyMessageWindowInterface.setVisible(boolean, boolean)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionEvent)
(non-Javadoc).

Specified by:
actionPerformed in interface java.awt.event.ActionListener
See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

getClientData

public java.lang.Object getClientData()
(non-Javadoc).

Specified by:
getClientData in interface LyMessageWindowInterface
Returns:
the client data
See Also:
LyMessageWindowInterface.getClientData()

setClientData

public void setClientData(java.lang.Object clientData)
(non-Javadoc).

Specified by:
setClientData in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.setClientData(java.lang.Object)

setIcon

public void setIcon(java.lang.String icon)
(non-Javadoc).

Specified by:
setIcon in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.setIcon(java.lang.String)

setMessage

public void setMessage(java.lang.String message)
(non-Javadoc).

Specified by:
setMessage in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.setMessage(java.lang.String)

setTitle

public void setTitle(java.lang.String title)
(non-Javadoc).

Specified by:
setTitle in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.setTitle(java.lang.String)

setCommands

public void setCommands(java.util.BitSet commands)
(non-Javadoc).

Specified by:
setCommands in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.setCommands(java.util.BitSet)

setBackgroundColor

public void setBackgroundColor(java.lang.String bgColor)
(non-Javadoc).

Specified by:
setBackgroundColor in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.setBackgroundColor(java.lang.String)

setModal

public void setModal(boolean modal)
(non-Javadoc).

Specified by:
setModal in interface LyMessageWindowInterface
See Also:
LyMessageWindowInterface.setModal(boolean)

(c) January 2013 - W4 S.A.

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