LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJPopupButton

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

public class LyJPopupButton
extends LyJPopupSelector
implements java.awt.event.ActionListener

This class implements a panel with two buttons : one is the given button and the other is an arrow button. A click on the arrow button opens the given popup component.

See Also:
LyJPopupSelector

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.view.win.swing.component.LyJPopupSelector
ALIGN_BOTTOM, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP
 
Constructor Summary
LyJPopupButton(LyJButton button, java.awt.Component popup, int align, LyEnvironment environment)
          Creates a new popup button component with the specified attributes.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          (non-Javadoc).
 void actionPerformed(LyActionEvent actionEvent)
          (non-Javadoc).
 void focusGained(java.awt.event.FocusEvent e)
          (non-Javadoc).
 void focusLost(java.awt.event.FocusEvent e)
          (non-Javadoc).
 java.awt.Component getButton()
          Gets the associated button.
 java.awt.Component getOpenerButton()
          Gets the popup opener parent button.
 void hideTipWindow()
          (non-Javadoc).
 void init()
          Initializes this popup button component and registers its event listeners.
 void mouseEntered(java.awt.event.MouseEvent e)
          (non-Javadoc).
 void mouseExited(java.awt.event.MouseEvent e)
          (non-Javadoc).
 void mousePressed(java.awt.event.MouseEvent e)
          (non-Javadoc).
 
Methods inherited from class leon.view.win.swing.component.LyJPopupSelector
componentHidden, componentMoved, componentResized, componentShown, hideParentTipWindow, mouseClicked, mouseReleased
 
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

LyJPopupButton

public LyJPopupButton(LyJButton button,
                      java.awt.Component popup,
                      int align,
                      LyEnvironment environment)
Creates a new popup button component with the specified attributes.

Parameters:
button - the component which ensures the display
popup - the component to edit the value of the combo. Raised when opening the combo.
align - the popup alignment
environment - the current environment
Method Detail

init

public void init()
Initializes this popup button component and registers its event listeners.

See Also:
LyJPopupSelector.init()

focusGained

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

Specified by:
focusGained in interface java.awt.event.FocusListener
Overrides:
focusGained in class LyJPopupSelector
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
Overrides:
focusLost in class LyJPopupSelector
See Also:
FocusListener.focusLost(java.awt.event.FocusEvent)

hideTipWindow

public void hideTipWindow()
(non-Javadoc).

Overrides:
hideTipWindow in class LyJPopupSelector
See Also:
LyJPopupSelector.hideTipWindow()

mousePressed

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

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

mouseEntered

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

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

mouseExited

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

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

actionPerformed

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

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

actionPerformed

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

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

getButton

public java.awt.Component getButton()
Gets the associated button.

Returns:
the button that is associated to this toggle button

getOpenerButton

public java.awt.Component getOpenerButton()
Gets the popup opener parent button.

Returns:
the toggle button that open a popup window

(c) January 2013 - W4 S.A.

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