net.simplace.pipe.formcomponents.date.FWDatePopUpButton

Extends JButton to show a popup for choosing language when the button is pressed. Button is showing flag of current language setting


public class FWDatePopUpButton extends javax.swing.JButton implements
javax.swing.event.PopupMenuListener, java.awt.event.ActionListener,
java.beans.PropertyChangeListener, javax.swing.event.ChangeListener {
// Public Constructors
public FWDatePopUpButton(FWFormattedDate aMinValue, FWFormattedDate
aMaxValue, FWFormattedDate aValue, FWObservable aObservable, Map
aFormComponentParameterMap);

// Protected Instance Variables
protected FWFormattedDate iValue;
protected FWFormattedDate iMinValue;
protected FWFormattedDate iMaxValue;

// Public Instance Methods
public void propertyChange(PropertyChangeEvent aEvent);
// From java.beans.PropertyChangeListener


public void closePopup();

closes popup of the button
public Dimension getPreferredSize(); // Defines javax.swing.JComponent

public Dimension getMinimumSize(); // Defines javax.swing.JComponent

public void actionPerformed(ActionEvent aActionEvent);
// From java.awt.event.ActionListener


public void stateChanged(ChangeEvent e); // From
javax.swing.event.ChangeListener


This event handler gets called if either the subcontrols or the net.simplace.pipe.formcomponents.date.FWFormattedDate have changed
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 paint(Graphics aGraphics); // Defines javax.swing.JComponent

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.
public FWFormattedDate getValue();


returns FormattedDate from Button


}



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) - FWDatePopUpButton (javax.swing.event.PopupMenuListener, java.awt.event.ActionListener, java.beans.PropertyChangeListener, javax.swing.event.ChangeListener)



Extended by: net.simplace.client.sim.graphpanel.event.FWGraphPanelDatePopUpButton