Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.flexstor.common.awt.field
Class ActionChoice  view ActionChoice download ActionChoice.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Choice
          extended bycom.flexstor.common.awt.field.FlexChoice
              extended bycom.flexstor.common.awt.field.ActionChoice
All Implemented Interfaces:
javax.accessibility.Accessible, com.flexstor.common.awt.ActionComponentI, ComponentI, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable

public class ActionChoice
extends FlexChoice
implements com.flexstor.common.awt.ActionComponentI

This choice class can be associated with an action id defined in Constants. This action id can be queried in the eventHandler of the container to take appropriate action.


Nested Class Summary
 
Nested classes inherited from class java.awt.Choice
java.awt.Choice.AccessibleAWTChoice
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  com.flexstor.common.awt.ActionMulticaster actionMulticaster
          The action listener(s) that listen to this choice.
(package private)  int nActionId
           
 
Fields inherited from class com.flexstor.common.awt.field.FlexChoice
 
Fields inherited from class java.awt.Choice
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
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
 
Fields inherited from interface com.flexstor.common.awt.field.ComponentI
COMBO_FIELD_HEIGHT, COMPONENT_HEIGHT, MAX_FIELD_LENGTH, TEXT_AREA_HEIGHT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ActionChoice(int nActionId)
          Creates a new choice with the given action id
ActionChoice(int nActionId, java.lang.String[] saItems)
          Creates a new choice with the given action id and prefilled with the given string array.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          Adds an action listener to this choice.
 int getActionId()
          Gets the action id
 void processItemEvent(java.awt.event.ItemEvent e)
          Convert ItemEvent to ActionEvent
 void removeActionListener(java.awt.event.ActionListener l)
          Removes an action listener from this choice.
 void setActionId(int nActionId)
          Sets the action id to the new value
 
Methods inherited from class com.flexstor.common.awt.field.FlexChoice
addItem, addItem, addNotify, addTextListener, cleanup, clear, configure, configure, formatCase, getEnabled, getId, getMinimumSize, getPreferredSize, getText, insert, insert, isBlank, isFocusTraversable, isRequired, itemStateChanged, quietVerify, removeAll, removeTextListener, select, select, setCustomValidator, setFocusTraversable, setId, setItems, setItems, setRequired, setText, verify
 
Methods inherited from class java.awt.Choice
add, addItemListener, countItems, getAccessibleContext, getItem, getItemCount, getItemListeners, getListeners, getSelectedIndex, getSelectedItem, getSelectedObjects, paramString, processEvent, remove, remove, removeItemListener
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.flexstor.common.awt.ActionComponentI
setEnabled
 
Methods inherited from interface com.flexstor.common.awt.field.ComponentI
requestFocus, setBounds, setEnabled
 

Field Detail

actionMulticaster

protected com.flexstor.common.awt.ActionMulticaster actionMulticaster
The action listener(s) that listen to this choice.


nActionId

int nActionId
Constructor Detail

ActionChoice

public ActionChoice(int nActionId)
Creates a new choice with the given action id


ActionChoice

public ActionChoice(int nActionId,
                    java.lang.String[] saItems)
Creates a new choice with the given action id and prefilled with the given string array.

Method Detail

getActionId

public int getActionId()
Gets the action id

Specified by:
getActionId in interface com.flexstor.common.awt.ActionComponentI

setActionId

public void setActionId(int nActionId)
Sets the action id to the new value


processItemEvent

public void processItemEvent(java.awt.event.ItemEvent e)
Convert ItemEvent to ActionEvent


addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Adds an action listener to this choice.

Specified by:
addActionListener in interface com.flexstor.common.awt.ActionComponentI

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
Removes an action listener from this choice.

Specified by:
removeActionListener in interface com.flexstor.common.awt.ActionComponentI