LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJMessageWindow

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by javax.swing.JDialog
                      extended by leon.view.win.swing.component.LyJMessageWindow
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, LyFreeInterface

public class LyJMessageWindow
extends javax.swing.JDialog
implements java.awt.event.WindowListener, java.awt.event.ActionListener, java.awt.event.KeyListener, LyFreeInterface

Default message window.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
LyJMessageWindow(java.awt.Dialog dialog, java.lang.String title, java.util.BitSet commands, boolean modal, java.awt.Color bgColor, LyEnvironment environment)
          Creates a message window object with the specified attributes.
LyJMessageWindow(java.awt.Frame frame, java.lang.String title, java.util.BitSet commands, boolean modal, java.awt.Color bgColor, LyEnvironment environment)
          Creates a message window object with the specified attributes.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvent)
          (non-Javadoc).
 void addActionListener(java.awt.event.ActionListener listener)
          Adds an action listener to this component.
 void free()
          (non-Javadoc).
 java.lang.Object getClientData()
          Gets the client data freely set by opener.
 int getCommandResult()
          Gets the closing status.
 void keyPressed(java.awt.event.KeyEvent evt)
          (non-Javadoc).
 void keyReleased(java.awt.event.KeyEvent evt)
          Does nothing.
 void keyTyped(java.awt.event.KeyEvent evt)
          Does nothing.
 void setClientData(java.lang.Object clientData)
          Sets the client data.
 void setIcon(java.lang.String icon)
          Sets the icon shown in the view.
 void setMessage(java.lang.String message)
          Sets the message shown in the view.
 void setVisible(boolean status, boolean newThread)
          Sets the visible property of this window.
 void windowActivated(java.awt.event.WindowEvent e)
          Does nothing.
 void windowClosed(java.awt.event.WindowEvent e)
          Does nothing.
 void windowClosing(java.awt.event.WindowEvent e)
          Calls the closing method for this window.
 void windowDeactivated(java.awt.event.WindowEvent e)
          Does nothing.
 void windowDeiconified(java.awt.event.WindowEvent e)
          Does nothing.
 void windowIconified(java.awt.event.WindowEvent e)
          Does nothing.
 void windowOpened(java.awt.event.WindowEvent e)
          Does nothing.
 
Methods inherited from class javax.swing.JDialog
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
 
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
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

LyJMessageWindow

public LyJMessageWindow(java.awt.Frame frame,
                        java.lang.String title,
                        java.util.BitSet commands,
                        boolean modal,
                        java.awt.Color bgColor,
                        LyEnvironment environment)
Creates a message window object with the specified attributes.

Parameters:
frame - the parent frame
title - the title of this message window
commands - the setted dialog command bar commands
modal - Indicates if this window is modal.
bgColor - the background color
environment - the current environment

LyJMessageWindow

public LyJMessageWindow(java.awt.Dialog dialog,
                        java.lang.String title,
                        java.util.BitSet commands,
                        boolean modal,
                        java.awt.Color bgColor,
                        LyEnvironment environment)
Creates a message window object with the specified attributes.

Parameters:
dialog - the parent dialog
title - the title of this message window
commands - the setted dialog command bar commands
modal - Indicates if this window is modal.
bgColor - the background color
environment - the current environment
Method Detail

free

public void free()
(non-Javadoc).

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

getCommandResult

public int getCommandResult()
Gets the closing status.

Returns:
the COMMAND code

addActionListener

public void addActionListener(java.awt.event.ActionListener listener)
Adds an action listener to this component.

Parameters:
listener - the action listener to add

setMessage

public void setMessage(java.lang.String message)
Sets the message shown in the view.

Parameters:
message - the new window message

setIcon

public void setIcon(java.lang.String icon)
Sets the icon shown in the view.

Parameters:
icon - the new window icon

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)

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Does nothing.

Specified by:
keyTyped in interface java.awt.event.KeyListener
See Also:
KeyListener.keyTyped(java.awt.event.KeyEvent)

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)
(non-Javadoc).

Specified by:
keyPressed in interface java.awt.event.KeyListener
See Also:
KeyListener.keyPressed(java.awt.event.KeyEvent)

keyReleased

public void keyReleased(java.awt.event.KeyEvent evt)
Does nothing.

Specified by:
keyReleased in interface java.awt.event.KeyListener
See Also:
KeyListener.keyReleased(java.awt.event.KeyEvent)

setVisible

public void setVisible(boolean status,
                       boolean newThread)
Sets the visible property of this window.

Parameters:
status - Indicates if this window is shown or hid.
newThread - Displays this dialog window starting from another thread.

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Does nothing.

Specified by:
windowOpened in interface java.awt.event.WindowListener
See Also:
WindowListener.windowOpened(java.awt.event.WindowEvent)

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Calls the closing method for this window.

Specified by:
windowClosing in interface java.awt.event.WindowListener
See Also:
WindowListener.windowClosing(java.awt.event.WindowEvent)

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Does nothing.

Specified by:
windowClosed in interface java.awt.event.WindowListener
See Also:
WindowListener.windowClosed(java.awt.event.WindowEvent)

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Does nothing.

Specified by:
windowIconified in interface java.awt.event.WindowListener
See Also:
WindowListener.windowIconified(java.awt.event.WindowEvent)

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Does nothing.

Specified by:
windowDeiconified in interface java.awt.event.WindowListener
See Also:
WindowListener.windowDeiconified(java.awt.event.WindowEvent)

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Does nothing.

Specified by:
windowActivated in interface java.awt.event.WindowListener
See Also:
WindowListener.windowActivated(java.awt.event.WindowEvent)

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Does nothing.

Specified by:
windowDeactivated in interface java.awt.event.WindowListener
See Also:
WindowListener.windowDeactivated(java.awt.event.WindowEvent)

getClientData

public java.lang.Object getClientData()
Gets the client data freely set by opener.

Returns:
the client data
See Also:
setClientData(Object)

setClientData

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

Parameters:
clientData - the new client data object
See Also:
getClientData()

(c) January 2013 - W4 S.A.

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