LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJPopupSelector

java.lang.Object
  extended by leon.view.win.swing.component.LyJPopupSelector
All Implemented Interfaces:
java.awt.event.ComponentListener, java.awt.event.FocusListener, java.awt.event.MouseListener, java.util.EventListener, LyActionListener
Direct Known Subclasses:
LyJDictionaryPopupSelector, LyJPopupButton, LyJPopupDateSelector

public class LyJPopupSelector
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.FocusListener, LyActionListener, java.awt.event.ComponentListener

This class implements a popup selection between a combo (choice) and a graphical component.


Field Summary
static java.lang.String __VERSION
           
static int ALIGN_BOTTOM
          Bottom alignment.
static int ALIGN_LEFT
          Left alignment.
static int ALIGN_RIGHT
          Right alignment.
static int ALIGN_TOP
          Top alignment.
 
Constructor Summary
LyJPopupSelector(java.awt.Component choice, java.awt.Component popup, int align, LyEnvironment environment)
          Creates a new popup selector with the specified attributes.
LyJPopupSelector(java.awt.Component choice, java.awt.Component popup, LyEnvironment environment)
          Creates a new popup selector with the specified attributes.
 
Method Summary
 void actionPerformed(LyActionEvent actionEvent)
          (non-Javadoc).
 void componentHidden(java.awt.event.ComponentEvent arg0)
          Hides the popup window.
 void componentMoved(java.awt.event.ComponentEvent arg0)
          Hides the popup window.
 void componentResized(java.awt.event.ComponentEvent arg0)
          Hides the popup window.
 void componentShown(java.awt.event.ComponentEvent arg0)
          Nothing is done.
 void focusGained(java.awt.event.FocusEvent e)
          Nothing is done.
 void focusLost(java.awt.event.FocusEvent e)
          (non-Javadoc).
 void hideParentTipWindow()
          Hides the parent window if it is a popup (cascading closure of popups).
 void hideTipWindow()
          Hides the popup window, then disposes it.
 void mouseClicked(java.awt.event.MouseEvent e)
          Nothing is done.
 void mouseEntered(java.awt.event.MouseEvent e)
          Nothing is done.
 void mouseExited(java.awt.event.MouseEvent e)
          Nothing is done.
 void mousePressed(java.awt.event.MouseEvent e)
          (non-Javadoc).
 void mouseReleased(java.awt.event.MouseEvent e)
          Nothing is done.
 
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

ALIGN_LEFT

public static final int ALIGN_LEFT
Left alignment.

See Also:
Constant Field Values

ALIGN_RIGHT

public static final int ALIGN_RIGHT
Right alignment.

See Also:
Constant Field Values

ALIGN_TOP

public static final int ALIGN_TOP
Top alignment.

See Also:
Constant Field Values

ALIGN_BOTTOM

public static final int ALIGN_BOTTOM
Bottom alignment.

See Also:
Constant Field Values
Constructor Detail

LyJPopupSelector

public LyJPopupSelector(java.awt.Component choice,
                        java.awt.Component popup,
                        LyEnvironment environment)
Creates a new popup selector with the specified attributes.

Parameters:
choice - the component which ensures the display
popup - the component that edit the value of the combo. Raised when opening the combo.
environment - the current environment

LyJPopupSelector

public LyJPopupSelector(java.awt.Component choice,
                        java.awt.Component popup,
                        int align,
                        LyEnvironment environment)
Creates a new popup selector with the specified attributes.

Parameters:
choice - the component which ensures the display
popup - component to edit the value of the combo. Raised when opening the combo.
align - specify the alignment (right or left)
environment - the current environment
Method Detail

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseClicked(java.awt.event.MouseEvent)

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
(non-Javadoc).

Specified by:
mousePressed in interface java.awt.event.MouseListener
See Also:
MouseListener.mousePressed(java.awt.event.MouseEvent)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseReleased(java.awt.event.MouseEvent)

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseEntered(java.awt.event.MouseEvent)

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseExited in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseExited(java.awt.event.MouseEvent)

actionPerformed

public void actionPerformed(LyActionEvent actionEvent)
(non-Javadoc).

Specified by:
actionPerformed in interface LyActionListener
See Also:
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)

hideTipWindow

public void hideTipWindow()
Hides the popup window, then disposes it.


hideParentTipWindow

public void hideParentTipWindow()
Hides the parent window if it is a popup (cascading closure of popups). Closes all its parent popups recursively.


focusGained

public void focusGained(java.awt.event.FocusEvent e)
Nothing is done.

Specified by:
focusGained in interface java.awt.event.FocusListener
See Also:
FocusListener.focusGained(java.awt.event.FocusEvent)

focusLost

public void focusLost(java.awt.event.FocusEvent e)
(non-Javadoc).

Specified by:
focusLost in interface java.awt.event.FocusListener
See Also:
FocusListener.focusLost(java.awt.event.FocusEvent)

componentResized

public void componentResized(java.awt.event.ComponentEvent arg0)
Hides the popup window.

Specified by:
componentResized in interface java.awt.event.ComponentListener
See Also:
hideTipWindow(), ComponentListener.componentResized(java.awt.event.ComponentEvent)

componentMoved

public void componentMoved(java.awt.event.ComponentEvent arg0)
Hides the popup window.

Specified by:
componentMoved in interface java.awt.event.ComponentListener
See Also:
hideTipWindow(), ComponentListener.componentMoved(java.awt.event.ComponentEvent)

componentShown

public void componentShown(java.awt.event.ComponentEvent arg0)
Nothing is done.

Specified by:
componentShown in interface java.awt.event.ComponentListener
See Also:
ComponentListener.componentShown(java.awt.event.ComponentEvent)

componentHidden

public void componentHidden(java.awt.event.ComponentEvent arg0)
Hides the popup window.

Specified by:
componentHidden in interface java.awt.event.ComponentListener
See Also:
hideTipWindow(), ComponentListener.componentHidden(java.awt.event.ComponentEvent)

(c) January 2013 - W4 S.A.

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