Klasse FWButton
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JButton
net.simplace.pipe.util.components.FWButton
- Alle implementierten Schnittstellen:
KeyListener,ImageObserver,ItemSelectable,MenuContainer,Serializable,EventListener,Accessible,SwingConstants
- Bekannte direkte Unterklassen:
FWAbstractPopUpButton
This class defines some stuff necessary for all buttons of the application. For example
the same preferred size.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen javax.swing.JButton
JButton.AccessibleJButtonVon Klasse geerbte verschachtelte Klassen/Schnittstellen javax.swing.AbstractButton
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListenerVon Klasse geerbte verschachtelte Klassen/Schnittstellen javax.swing.JComponent
JComponent.AccessibleJComponentVon Klasse geerbte verschachtelte Klassen/Schnittstellen java.awt.Container
Container.AccessibleAWTContainerVon Klasse geerbte verschachtelte Klassen/Schnittstellen java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringTypes of default buttons.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intVon Klasse geerbte Felder javax.swing.AbstractButton
actionListener, BORDER_PAINTED_CHANGED_PROPERTY, changeEvent, changeListener, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, itemListener, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, model, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTYVon Klasse geerbte Felder javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWVon Klasse geerbte Felder java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTVon Schnittstelle geerbte Felder java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHVon Schnittstelle geerbte Felder javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFWButton()Creates a XButton.Creates a XButton with the given caption.Creates a XButton with from the given locale with the given key.Creates a XButton with the given caption and icon.Creates a XButton with the given action.Creates a XButton with the given icon. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic FWButtoncreateDefaultButton(String aButtonType, String aActionCommand) Creates a standard buttonstatic FWButtoncreateDefaultButton(String aButtonType, String aActionCommand, ActionListener aListener) Creates a standard buttonstatic JToggleButtoncreateToggleButton(String aButtonType, String aActionCommand) Creates a standard buttonstatic ImageIcongetDefaultButtonIcon(String aButtonType) Method getDefaultButtonIcon.static StringgetLocaleValue(String aKey) This method limits the coding for reading values from the locale.(non-Javadoc)(non-Javadoc)(non-Javadoc)final voidkeyPressed(KeyEvent aKeyEvent) Performs the event for the button.voidkeyReleased(KeyEvent aKeyEvent) (non-Javadoc)void(non-Javadoc)voidsetContentDescriptionObject(Object aContentDescriptionObject) sets the content description object, made for detailed description of this button.static voidsetDefaultButton(AbstractButton aButton, String aButtonType) Sets the values to the xbutton.Von Klasse geerbte Methoden javax.swing.JButton
getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUIVon Klasse geerbte Methoden javax.swing.AbstractButton
actionPropertyChanged, addActionListener, addChangeListener, addImpl, addItemListener, checkHorizontalKey, checkVerticalKey, configurePropertiesFromAction, createActionListener, createActionPropertyChangeListener, createChangeListener, createItemListener, doClick, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHideActionText, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getText, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, init, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, paintBorder, removeActionListener, removeChangeListener, removeItemListener, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setEnabled, setFocusPainted, setHideActionText, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setLayout, setMargin, setMnemonic, setMnemonic, setModel, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPositionVon Klasse geerbte Methoden javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateVon Klasse geerbte Methoden java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTreeVon Klasse geerbte Methoden java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Felddetails
-
BUTTON_CUT
Types of default buttons.- Siehe auch:
-
BUTTON_COPY
- Siehe auch:
-
BUTTON_PASTE
- Siehe auch:
-
BUTTON_OK
- Siehe auch:
-
BUTTON_CANCEL
- Siehe auch:
-
BUTTON_LEGEND
- Siehe auch:
-
BUTTON_CLOSE
- Siehe auch:
-
BUTTON_INTERRUPT
- Siehe auch:
-
BUTTON_FINALIZE
- Siehe auch:
-
BUTTON_IMPORT
- Siehe auch:
-
BUTTON_SAVE
- Siehe auch:
-
BUTTON_EXPORT
- Siehe auch:
-
BUTTON_UPGRADE
- Siehe auch:
-
BUTTON_SELECT
- Siehe auch:
-
BUTTON_OPEN
- Siehe auch:
-
BUTTON_DETAILS
- Siehe auch:
-
BUTTON_EXECUTE
- Siehe auch:
-
BUTTON_PRINT
- Siehe auch:
-
BUTTON_INFO
- Siehe auch:
-
BUTTON_NEW
- Siehe auch:
-
BUTTON_ADD
- Siehe auch:
-
BUTTON_REMOVE
- Siehe auch:
-
BUTTON_UPDATE
- Siehe auch:
-
BUTTON_SEARCH
- Siehe auch:
-
BUTTON_GO
- Siehe auch:
-
BUTTON_BACK
- Siehe auch:
-
BUTTON_START
- Siehe auch:
-
BUTTON_STOP
- Siehe auch:
-
BUTTON_TOGGLE
- Siehe auch:
-
BUTTON_RESET
- Siehe auch:
-
BUTTON_RASTERPREVIEW
- Siehe auch:
-
BUTTON_RASTERVALUECHOOSER
- Siehe auch:
-
BUTTON_INFO_MANUAL
- Siehe auch:
-
BUTTON_INFO_EXPLANATION
- Siehe auch:
-
BUTTON_INFO_EXTERNAL
- Siehe auch:
-
BUTTON_INFO_EXTENDED
- Siehe auch:
-
PREFERRED_HEIGHT
public static final int PREFERRED_HEIGHT- Siehe auch:
-
PREFERRED_WIDTH
public static final int PREFERRED_WIDTH- Siehe auch:
-
-
Konstruktordetails
-
FWButton
public FWButton()Creates a XButton. -
FWButton
Creates a XButton with the given icon.- Parameter:
aIcon-
-
FWButton
Creates a XButton with the given caption.- Parameter:
aCaption-
-
FWButton
Creates a XButton with from the given locale with the given key.- Parameter:
aLocale-aLocaleKey-
-
FWButton
Creates a XButton with the given caption and icon.- Parameter:
aCaption-aIcon-
-
FWButton
Creates a XButton with the given action.- Parameter:
aAction-
-
-
Methodendetails
-
getMinimumSize
(non-Javadoc)- Setzt außer Kraft:
getMinimumSizein KlasseJComponent- Siehe auch:
-
getPreferredSize
(non-Javadoc)- Setzt außer Kraft:
getPreferredSizein KlasseJComponent- Siehe auch:
-
getMaximumSize
(non-Javadoc)- Setzt außer Kraft:
getMaximumSizein KlasseJComponent- Siehe auch:
-
keyPressed
Performs the event for the button.- Angegeben von:
keyPressedin SchnittstelleKeyListener
-
keyReleased
(non-Javadoc)- Angegeben von:
keyReleasedin SchnittstelleKeyListener- Siehe auch:
-
keyTyped
(non-Javadoc)- Angegeben von:
keyTypedin SchnittstelleKeyListener- Siehe auch:
-
createToggleButton
Creates a standard button- Parameter:
aButtonType-aActionCommand-- Gibt zurück:
- the default button
-
createDefaultButton
Creates a standard button- Parameter:
aButtonType-aActionCommand-- Gibt zurück:
- the default button
-
setDefaultButton
Sets the values to the xbutton.- Parameter:
aButton-aButtonType-
-
createDefaultButton
public static FWButton createDefaultButton(String aButtonType, String aActionCommand, ActionListener aListener) Creates a standard button- Parameter:
aButtonType-aActionCommand-aListener-- Gibt zurück:
- the button
-
getLocaleValue
This method limits the coding for reading values from the locale.- Parameter:
aKey-- Gibt zurück:
-
getDefaultButtonIcon
Method getDefaultButtonIcon.- Parameter:
aButtonType-- Gibt zurück:
- Icon
-
getContentDescriptionObject
- Gibt zurück:
- the content description object, made for detailed description of this button.
-
setContentDescriptionObject
sets the content description object, made for detailed description of this button.- Parameter:
aContentDescriptionObject-
-