net.simplace.ui.components.FWButton

This class defines some stuff necessary for all buttons of the application. For example the same preferred size.


public class FWButton extends javax.swing.JButton implements
java.awt.event.KeyListener {
// Public Constructors
public FWButton();
public FWButton(Icon aIcon);
public FWButton(String aCaption);
public FWButton(String aLocale, String aLocaleKey);
public FWButton(String aCaption, Icon aIcon);
public FWButton(Action aAction);

// Constants
public static final String BUTTON_CUT;
public static final String BUTTON_COPY;
public static final String BUTTON_PASTE;
public static final String BUTTON_OK;
public static final String BUTTON_CANCEL;
public static final String BUTTON_LEGEND;
public static final String BUTTON_CLOSE;
public static final String BUTTON_INTERRUPT;
public static final String BUTTON_FINALIZE;
public static final String BUTTON_IMPORT;
public static final String BUTTON_SAVE;
public static final String BUTTON_EXPORT;
public static final String BUTTON_UPGRADE;
public static final String BUTTON_SELECT;
public static final String BUTTON_OPEN;
public static final String BUTTON_DETAILS;
public static final String BUTTON_EXECUTE;
public static final String BUTTON_PRINT;
public static final String BUTTON_INFO;
public static final String BUTTON_NEW;
public static final String BUTTON_ADD;
public static final String BUTTON_REMOVE;
public static final String BUTTON_UPDATE;
public static final String BUTTON_SEARCH;
public static final String BUTTON_GO;
public static final String BUTTON_BACK;
public static final String BUTTON_START;
public static final String BUTTON_STOP;
public static final String BUTTON_RESET;
public static final String BUTTON_RASTERPREVIEW;
public static final String BUTTON_RASTERVALUECHOOSER;
public static final String BUTTON_INFO_MANUAL;
public static final String BUTTON_INFO_EXPLANATION;
public static final String BUTTON_INFO_EXTERNAL;
public static final String BUTTON_INFO_EXTENDED;
public static final int PREFERRED_HEIGHT;
public static final int PREFERRED_WIDTH;

// Class Methods
public static FWButton createDefaultButton(String aButtonType, String
aActionCommand);

Creates a standard button
public static void setDefaultButton(JButton aButton, String aButtonType);

Sets the values to the xbutton.
public static FWButton createDefaultButton(String aButtonType, String
aActionCommand, ActionListener aListener);

Creates a standard button
public static String getLocaleValue(String aKey);

This method limits the coding for reading values from the locale.
public static ImageIcon getDefaultButtonIcon(String aButtonType);

Method getDefaultButtonIcon.
returns Icon

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

(non-Javadoc)
public Dimension getPreferredSize(); // Defines javax.swing.JComponent

(non-Javadoc)
public Dimension getMaximumSize(); // Defines javax.swing.JComponent

(non-Javadoc)
public final void keyPressed(KeyEvent aKeyEvent); // From
java.awt.event.KeyListener


Performs the event for the button.
public void keyReleased(KeyEvent aKeyEvent); // From
java.awt.event.KeyListener


(non-Javadoc)
public void keyTyped(KeyEvent aKeyEvent); // From java.awt.event.KeyListener

(non-Javadoc)
public Object getContentDescriptionObject();


returns the content description object, made for detailed description of this button.
public void setContentDescriptionObject(Object aContentDescriptionObject);

sets the content description object, made for detailed description of this 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) - FWButton (java.awt.event.KeyListener)



Extended by: net.simplace.ui.popup.FWAbstractPopUpButton



Returned by: FWBoxPanel.addButton(), FWBoxPanel.addButton(), FWBoxPanel.addButton(), FWBoxPanel.addButton(), FWBoxPanel.addButton(), FWBoxPanel.addDefaultButton(), FWBoxPanel.addDefaultButton(), createDefaultButton(), createDefaultButton()