net.simplace.ui.popup.FWAbstractPopUpButton
Extends JButton to show a popup for choosing language when the button is pressed.
Button is showing flag of current language setting
public abstract class FWAbstractPopUpButton extends
net.simplace.pipe.util.components.FWButton implements
javax.swing.event.PopupMenuListener, java.awt.event.ActionListener,
java.beans.PropertyChangeListener {
// Public Constructors
public FWAbstractPopUpButton(String aCaption, String aIconKey);
public FWAbstractPopUpButton(String aCaption, ImageIcon aIcon);
// Protected Instance Variables
protected boolean iPopUpVisible;
protected boolean iPopUpLocked;
protected JPopupMenu iPopupMenu;
protected JPanel iPopupComponent;
// Public Instance Methods public void propertyChange(PropertyChangeEvent aEvent);
// From java.beans.PropertyChangeListener
public void actionPerformed(ActionEvent aActionEvent);
// From java.awt.event.ActionListener
public void closePopup();
closes popup of the button
public void popupMenuCanceled(PopupMenuEvent aPopupMenuEvent);
// From javax.swing.event.PopupMenuListener
public void popupMenuWillBecomeInvisible(PopupMenuEvent aPopupMenuEvent);
// From javax.swing.event.PopupMenuListener
public void popupMenuWillBecomeVisible(PopupMenuEvent aPopupMenuEvent);
// From javax.swing.event.PopupMenuListener
public void setEnabled(boolean aValue); // Defines
javax.swing.AbstractButton
public boolean isPopupVisible();
Returns if the popup is visible.
public JPopupMenu getPopupMenu();
Returns if the popupmenu instance.
// Protected Instance Methods protected abstract void fillPopupComponent();
}
Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.AbstractButton (java.awt.ItemSelectable, javax.swing.SwingConstants) - javax.swing.JButton (javax.accessibility.Accessible) - net.simplace.pipe.util.components.FWButton (java.awt.event.KeyListener) - FWAbstractPopUpButton (javax.swing.event.PopupMenuListener, java.awt.event.ActionListener, java.beans.PropertyChangeListener)
Extended by: net.simplace.pipe.formcomponents.database.FWDefaultPopUpButton, FWInfoPopUpButton, FWLanguagePopUpButton