java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
com.flexstor.common.awt.field.ActionButton
- All Implemented Interfaces:
- javax.accessibility.Accessible, com.flexstor.common.awt.ActionComponentI, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.event.KeyListener, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable
- public class ActionButton
- extends java.awt.Panel
- implements java.awt.event.MouseListener, java.awt.event.FocusListener, java.awt.event.KeyListener, com.flexstor.common.awt.ActionComponentI
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class java.awt.Panel |
|
| Fields inherited from class java.awt.Container |
|
| Fields inherited from interface com.flexstor.common.awt.ActionComponentI |
ACTION_ADD, ACTION_ADD_ALL, ACTION_ADDRESS_BOOK, ACTION_ADM_OPEN_UGSD, ACTION_ADV_SEARCH, ACTION_ARCHIVE, ACTION_BASIC_SEARCH, ACTION_BROWSE_HIGHCPY, ACTION_BROWSE_HIGHRES, ACTION_BROWSE_LOCAL, ACTION_BROWSE_LOWCPY, ACTION_BROWSE_LOWRES, ACTION_BROWSE_MACHINES, ACTION_BROWSE_NEW_FOLDER, ACTION_BROWSE_PICTURE_GALLERY_TEMPLATES, ACTION_BROWSE_REFRESH, ACTION_BROWSE_SERVER, ACTION_BROWSE_SOURCE_FILES, ACTION_BROWSE_THUMB, ACTION_CANCEL, ACTION_CHANGE_APP, ACTION_CHECKBOX_LOCAL, ACTION_CHECKBOX_MKCOPY, ACTION_CHECKBOX_MKTHUMB, ACTION_CLASSIFY, ACTION_CLOSE, ACTION_CLOSE_FULL_THUMB, ACTION_COLLAPSE_TREE_ROW, ACTION_CREATE_FULL_THUMB, ACTION_DEBUG_HIDE_INSTANCE_IDS, ACTION_DEBUG_SHOW_INSTANCE_IDS, ACTION_DEBUG_SHOW_REG_DEBUGGER, ACTION_DELETE, ACTION_DELETE_ALL, ACTION_DELETE_ASSET, ACTION_DELETE_TREE_ROW, ACTION_DISP_FULLSIZE, ACTION_DISP_RECORD, ACTION_DISP_SUMMARY, ACTION_DISP_THUMB_DATA, ACTION_DISP_THUMB_FLAT, ACTION_DISP_THUMB_RECORD, ACTION_DISP_THUMBNAIL, ACTION_EDT_COPY, ACTION_EDT_CUT, ACTION_EDT_DELETE, ACTION_EDT_NEW_BUCKET, ACTION_EDT_NEW_ELEMENT, ACTION_EDT_PASTE, ACTION_EXPAND_TREE_ROW, ACTION_EXPORT, ACTION_FIELD_VALUE_CHANGED, ACTION_FILEBASED_SEARCH, ACTION_FSV_CLOSE, ACTION_FSV_COPY, ACTION_FSV_DRAG_SELECT, ACTION_FSV_FIT_HEIGHT, ACTION_FSV_FIT_WIDTH, ACTION_FSV_FIT_WINDOW, ACTION_FSV_NEXT_IMAGE, ACTION_FSV_PRINT, ACTION_FSV_PRIOR_IMAGE, ACTION_FSV_RESTORE, ACTION_FSV_ROTATE_FLIP, ACTION_FSV_ROTATE_LEFT, ACTION_FSV_ROTATE_RIGHT, ACTION_FSV_SELECT_ALL, ACTION_FSV_ZOOM_IN, ACTION_FSV_ZOOM_OUT, ACTION_FSV_ZOOM_TO_SELECTION, ACTION_FULL_SIZE_AVAILABLE, ACTION_FULL_SIZE_ERROR, ACTION_FULL_TEXT_SEARCH, ACTION_GO_SAVED_SEARCH, ACTION_GOTO_PAGE, ACTION_HLP_ABOUT, ACTION_HLP_CONTENTS, ACTION_HLP_CONTEXT, ACTION_IMPORT, ACTION_IMPORT_REFRESH, ACTION_INSERT_PICTURE_GALLERY_TEMPLATES, ACTION_MODIFY, ACTION_NEXT_PAGE, ACTION_OK, ACTION_OPEN, ACTION_OPT_ADD_DATA, ACTION_OPT_APPLY, ACTION_OPT_CHECK_IN, ACTION_OPT_CHECK_OUT, ACTION_OPT_CLEAR, ACTION_OPT_CLEAR_ALL, ACTION_OPT_CLEAR_ALL_MARKS, ACTION_OPT_CREATE_REPORT, ACTION_OPT_DELETE_ELEMENTS, ACTION_OPT_DISCARD, ACTION_OPT_EDITMODE, ACTION_OPT_KEEP, ACTION_OPT_KEEP_ON_APPLY, ACTION_OPT_LOCATIONS, ACTION_OPT_MARK, ACTION_OPT_PROCESS, ACTION_OPT_REFRESH, ACTION_OPT_REFRESH_THUMBNAIL, ACTION_OPT_RELEASE_LOCK, ACTION_OPT_REMOVE, ACTION_OPT_SAVED_SEARCH, ACTION_OPT_SEARCH, ACTION_OPT_SETTINGS, ACTION_OPT_STOP, ACTION_OPT_UNMARK, ACTION_OPT_UPDATE, ACTION_OPT_VIEW_TRANSACTIONS, ACTION_OPT_VIEWLOG, ACTION_OPT_VISUAL_SEARCH, ACTION_PASTE_ASSET, ACTION_PREV_PAGE, ACTION_PUT_ELEMENT, ACTION_RESTORE, ACTION_RPT_FIRST, ACTION_RPT_GEN_CSV, ACTION_RPT_GEN_HTML, ACTION_RPT_GEN_PDF, ACTION_RPT_GOTO, ACTION_RPT_LAST, ACTION_RPT_NEXT, ACTION_RPT_PREV, ACTION_RPT_PRINT, ACTION_RPT_SHOW_TOC, ACTION_RPT_ZOOM_100, ACTION_RPT_ZOOM_150, ACTION_RPT_ZOOM_200, ACTION_RPT_ZOOM_50, ACTION_RPT_ZOOM_75, ACTION_SAVE_SEARCH, ACTION_SAVE_SEARCH_AS, ACTION_SEARCH, ACTION_SELECT_TREE_ROW, ACTION_SEND, ACTION_SERVER_MAINTENANCE, ACTION_SRCH_CHANGE_APPL, ACTION_SRCH_FEWER, ACTION_SRCH_GO, ACTION_SRCH_GO_SAVED, ACTION_SRCH_IGNORE_CASE, ACTION_SRCH_MODE_ADV, ACTION_SRCH_MODE_BASIC, ACTION_SRCH_MODE_FILEBASED, ACTION_SRCH_MODE_FULL_TEXT, ACTION_SRCH_MORE, ACTION_SRCH_NEW_FRAME, ACTION_THUMB_CREATE_FULL_THUMB, ACTION_THUMB_VIEW_ELEMENT_DETAILS, ACTION_THUMB_VIEW_MULTI_PAGE, ACTION_TRANSACTION_LOGGING, ACTION_TREE_COLLAPSE_ALL, ACTION_TREE_COLLAPSE_BRANCH, ACTION_TREE_EXPAND_ALL, ACTION_TREE_EXPAND_BRANCH, ACTION_TREE_EXPAND_ONE_LEVEL, ACTION_UTL_TRASH_CAN, ACTION_UTL_VIEW_TRANSACTIONS, ACTION_VIEW_ELEMENT_DETAILS, ACTION_VIEW_HISTORY, ACTION_VIEW_MARKED_ITEMS, ACTION_VIEW_MULTI_PAGE, ACTION_VIEW_RELOAD_THUMBNAIL, ACTION_VIEW_VERSIONS, ACTION_VIR_EXECUTE, ACTION_VIR_NEW_FRAME, ACTION_VIR_SET_WEIGHTS, IDENTIFIER |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
nLabelWidth
protected int nLabelWidth
nLabelHeight
protected int nLabelHeight
nLabelAscent
protected int nLabelAscent
nImageWidth
protected int nImageWidth
nImageHeight
protected int nImageHeight
nGap
protected int nGap
nActionId
protected int nActionId
sLabel
protected java.lang.String sLabel
bMouseOver
protected boolean bMouseOver
bMousePressed
protected boolean bMousePressed
bFocusTraversable
protected boolean bFocusTraversable
bKeyboardFocus
protected boolean bKeyboardFocus
bActionKeyDown
protected boolean bActionKeyDown
iCurrent
protected java.awt.Image iCurrent
iRest
protected java.awt.Image iRest
iPressed
protected java.awt.Image iPressed
iFocusRest
protected java.awt.Image iFocusRest
iFocusPressed
protected java.awt.Image iFocusPressed
iDisabled
protected java.awt.Image iDisabled
insets
protected java.awt.Insets insets
actionListeners
protected com.flexstor.common.awt.ActionMulticaster actionListeners
ActionButton
public ActionButton(int nActionId)
ActionButton
public ActionButton(java.lang.String sLabel,
int nActionId)
ActionButton
public ActionButton(int nLabelId,
int nActionId)
ActionButton
public ActionButton(int nLabelId,
java.lang.String sImageName,
int nActionId)
ActionButton
public ActionButton(java.lang.String sLabel,
java.lang.String sImageName,
int nActionId)
setLabel
public void setLabel(java.lang.String s)
setImages
public void setImages(java.lang.String sImageName)
setImage
protected void setImage()
setFont
protected void setFont()
getActionId
public int getActionId()
- Description copied from interface:
com.flexstor.common.awt.ActionComponentI
- Gets the associated action id from the component
- Specified by:
getActionId in interface com.flexstor.common.awt.ActionComponentI
setActionId
public void setActionId(int nActionId)
setFocusTraversable
public void setFocusTraversable(boolean b)
isFocusTraversable
public boolean isFocusTraversable()
- Description copied from class:
java.awt.Component
- Tests whether or not this component is in the group that can be
traversed using the keyboard traversal mechanism (such as the TAB key).
setInsets
public void setInsets(java.awt.Insets i)
setImageLabelGap
public void setImageLabelGap(int n)
paint
public void paint(java.awt.Graphics g)
- Description copied from class:
java.awt.Container
- Paints this container. The implementation of this method in this
class forwards to any lightweight components in this container. If
this method is subclassed, this method should still be invoked as
a superclass method so that lightweight components are properly
drawn.
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Description copied from class:
java.awt.Container
- Returns the preferred size of this container.
getMinimumSize
public java.awt.Dimension getMinimumSize()
- Description copied from class:
java.awt.Container
- Returns the minimum size of this container.
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse is clicked (pressed and released
in short succession) on a component.
- Specified by:
mouseClicked in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse is pressed over a component.
- Specified by:
mousePressed in interface java.awt.event.MouseListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse is released over a component.
- Specified by:
mouseReleased in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse enters a component.
- Specified by:
mouseEntered in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Description copied from interface:
java.awt.event.MouseListener
- This method is called when the mouse exits a component.
- Specified by:
mouseExited in interface java.awt.event.MouseListener
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Description copied from interface:
java.awt.event.FocusListener
- This method is called when a component gains the keyboard focus.
- Specified by:
focusGained in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Description copied from interface:
java.awt.event.FocusListener
- This method is invoked when a component loses the keyboard focus.
- Specified by:
focusLost in interface java.awt.event.FocusListener
setEnabled
public void setEnabled(boolean b)
- Description copied from interface:
com.flexstor.common.awt.ActionComponentI
- For convenience, enable is part of this interface.
One can check if an action component is allowed to perform
the associated action and if not, disabled it with enable(false).
It is assumend, that either menu items or AWT components implement
this interface. They already implement enable.
- Specified by:
setEnabled in interface com.flexstor.common.awt.ActionComponentI
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Description copied from interface:
java.awt.event.KeyListener
- This method is called when a key is typed. A key is considered typed
when it and all modifiers have been pressed and released, mapping to
a single virtual key.
- Specified by:
keyTyped in interface java.awt.event.KeyListener
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Description copied from interface:
java.awt.event.KeyListener
- This method is called when a key is pressed.
- Specified by:
keyPressed in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Description copied from interface:
java.awt.event.KeyListener
- This method is called when a key is released.
- Specified by:
keyReleased in interface java.awt.event.KeyListener
addActionListener
public void addActionListener(java.awt.event.ActionListener l)
- Specified by:
addActionListener in interface com.flexstor.common.awt.ActionComponentI
removeActionListener
public void removeActionListener(java.awt.event.ActionListener l)
- Specified by:
removeActionListener in interface com.flexstor.common.awt.ActionComponentI
fireActionEvent
public void fireActionEvent()