public abstract class AbstractButtonSelection extends ButtonSelection implements FormComponent, AccessForm, IdentifiedElement
ButtonSelection.Action, ButtonSelection.EArrowButtonSelection, ButtonSelection.EButtonSelection, ButtonSelection.RolloverHandlerJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected int |
align
Parameter to specify the button alignment in the container with
GridBagLayout.
|
protected Border |
border |
protected ResourceBundle |
bundle |
protected String |
buttonKey
String to identify the button
|
protected FormPermission |
enablePermission |
protected String |
icon |
protected String |
keyStrokeText |
protected MouseAdapter |
listenerHighlightButtons |
static String |
MODE |
protected boolean |
opaque |
protected boolean |
ownerTooltip |
protected Form |
parentForm |
protected boolean |
restricted |
protected String |
text |
protected String |
tooltip |
protected int |
verticalAlign |
protected FormPermission |
visiblePermission |
actionMenu, button, BUTTON_SELECTION, defaultArrowButtonWidth, defaultButtonSelectionCapable, defaultButtonSelectionContentAreaFilled, defaultButtonSelectionPaintFocus, defaultMenuButtonSelectionCapable, defaultMenuButtonSelectionContentAreaFilled, defaultMenuButtonSelectionPaintFocus, highlight, MENU_BUTTON_SELECTION, menuButton, menuList, TOOLBAR_NAVIGATOR_MENU_BUTTON_SELECTIONaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDEBUG_LANGUAGEDESACTIVATE_COMPONENT_BY_PERMISSION_TIPABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
AbstractButtonSelection(Hashtable parameter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeButton(JButton button) |
protected boolean |
checkEnabledPermission() |
protected boolean |
checkVisiblePermission() |
Object |
getAttribute()
Gets the object attribute.
|
Object |
getConstraints(LayoutManager parentLayout)
Description method to return the
constraints component to
place correctly in parent container. |
String |
getKey() |
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
protected String |
getTextWithKeyStroke(String text) |
protected void |
init(boolean highlight) |
void |
init(Hashtable parameter)
Initialize the button with the parameters in the xml
|
void |
initPermissions() |
boolean |
isRestricted() |
void |
setComponentLocale(Locale l) |
void |
setKeyStrokeText(String keyStrokeText) |
void |
setParentForm(Form form)
Method declaration to set the form that contains the component.
|
void |
setResourceBundle(ResourceBundle resources)
Sets the language resource bundle.
|
protected void |
updateTip() |
addActionListener, addActionMenuListener, changeButtons, getActionMenu, getButton, getMenu, getMenuButton, getMenuList, getPreferredSize, repaint, setEnabled, setIcon, setMargin, setMenu, setMenuList, setRolloverEnabled, setText, setToolTipTextaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, 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, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIadd, add, add, add, add, addContainerListener, addImpl, 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, setLayout, transferFocusDownCycle, validate, validateTreeaction, 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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEnabled, setEnabled, setVisiblepublic static final String MODE
protected int align
protected int verticalAlign
protected String icon
protected String buttonKey
protected Form parentForm
protected ResourceBundle bundle
protected String text
protected String tooltip
protected boolean ownerTooltip
protected String keyStrokeText
protected FormPermission visiblePermission
protected FormPermission enablePermission
protected MouseAdapter listenerHighlightButtons
protected boolean opaque
protected Border border
protected boolean restricted
public AbstractButtonSelection(Hashtable parameter)
parameter - init(boolean)protected void init(boolean highlight)
init in class ButtonSelectionpublic void init(Hashtable parameter)
init in interface FormComponentparameter - the hashtable with pairs (Key,Value). For example:
| Key | Value |
| align | center |
| attr | attribute |
| ... | ... |
public Object getConstraints(LayoutManager parentLayout)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentparentLayout - the parent container referencepublic Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic void setResourceBundle(ResourceBundle resources)
InternationalizationsetResourceBundle in interface Internationalizationresources - the new language bundle.protected void updateTip()
public void setParentForm(Form form)
AccessFormsetParentForm in interface AccessFormform - the form referencepublic void initPermissions()
initPermissions in interface SecureElementpublic boolean isRestricted()
isRestricted in interface SecureElementpublic void setKeyStrokeText(String keyStrokeText)
public String getKey()
public Object getAttribute()
IdentifiedElementgetAttribute in interface IdentifiedElementprotected boolean checkVisiblePermission()
protected boolean checkEnabledPermission()
protected void changeButton(JButton button)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.