public class PIAStringEnum extends JComboBox implements PAppFieldComponent, PLightComponent, PComponentAttribute, PCollectDataListener, Serializable
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManagerJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyactionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminderlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PIAStringEnum() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears any existing data from the component
|
void |
collectData(PCollectDataEvent event)
CollectDataListener override.
|
String |
getAssociatedClass()
Gets the associated class, if any, for this field.
|
String |
getControllerClassName()
Retrieves the class name of this component's controller
|
String |
getDataDescriptor()
Returns a string guaranteed to be unique among the lightweight components
that can be used to describe the data, and acts as a key for it.
|
String |
getDisplayFieldDescription()
Get the data field description used by the component
|
String |
getDisplayFieldFormat()
Gets the display field format used by this component
|
Object |
getField()
Gets the value of the field referred to in the
displayFieldDescription. |
String |
getHelpID()
Get the current help id for this component
|
Object |
getLightData()
Gets the lightweight data object itself.
|
String |
getModelFieldDescription()
Get the data field description used by the component
|
PModelHandle |
getModelHandle()
Retrieves the PModelHandle for this component
|
Remote |
getRemoteComponent()
Get a reference to the remote component for this object.
|
String |
getResourceName()
Returns the base resource name used in resource lookup
|
Vector |
getTools()
Get a list of Actions supported by this component.
|
boolean |
isCurrencyDisplay()
Always returns false - this widget contains String data
|
boolean |
isDirty()
Determines if this component is currently in a DIRTY state.
|
boolean |
isError()
Used to determine if this component is currently in error state
|
boolean |
isInputTracking()
Determines if input tracking is enabled.
|
boolean |
isLight()
Determines if this is component defers PModelHandle knowledge to
its parent container.
|
boolean |
isRequired()
Determines if this component is required in its current context.
|
void |
resetToDefault()
Resets the component value to the original value (that which was
established by calling
setDefault()). |
void |
revertToPrimary(int primary)
Causes the widget to display its data in the primary currency
|
void |
setAssociatedClass(String name)
Sets the associated class, if any, for this field.
|
void |
setChoices(String[] choices)
Establishes the data to display in this component
|
void |
setChoices(Vector choices)
Establishes the data to display in this component
|
void |
setClean()
Used to reset the component to the 'clean' state.
|
void |
setCurrencyDisplay(boolean b)
Used to determine if this component is displaying currency data.
|
void |
setDefault()
Establishes the currently selected item as the default, and the
current number of items in the model as the default item count.
|
void |
setDisplayFieldDescription(String fieldDisp)
Set the description of the field(s) in the data model that
this component will display
|
void |
setDisplayFieldFormat(String fieldForm)
Sets the java.text.MessageFormat-type format used to display data in
this component.
|
void |
setError(boolean b)
Marks this component as containing erroneous data in the current context
or unmarks the error state, depending on the parameter
|
void |
setField(Object field)
Sets the value of the field referred to in the
modelFieldDescription. |
void |
setHelpID(String id)
Set the help id for this component.
|
void |
setInputTracking(boolean b)
If input tracking is turned on, any changes made by the user to the
component will be tracked and the component will be marked "dirty".
|
void |
setLightData(Object field)
Sets the lightweight data object.
|
void |
setModelFieldDescription(String fieldDesc)
Set the description of the field in the data model that this
component is interested in.
|
void |
setModelHandle(PModelHandle data)
Establishes the PModelHandle for this component
|
void |
setRequired(boolean b)
Marks this component as required in its current context.
|
void |
setResourceName(String name)
Set the base resource name used in resource lookup.
|
Object |
togglePrimaryToSecondary(int primary,
int secondary)
Does nothing - no-op
|
void |
unregister()
Used to disassociate this component from its delegate (controller)
|
void |
viewDataChange(PViewDataChangeEvent event)
ViewDataChangeListener override.
|
actionPerformed, actionPropertyChanged, addActionListener, addItem, addItemListener, addPopupMenuListener, configureEditor, configurePropertiesFromAction, contentsChanged, createActionPropertyChangeListener, createDefaultKeySelectionManager, fireActionEvent, fireItemStateChanged, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, firePopupMenuWillBecomeVisible, getAccessibleContext, getAction, getActionCommand, getActionListeners, getEditor, getItemAt, getItemCount, getItemListeners, getKeySelectionManager, getMaximumRowCount, getModel, getPopupMenuListeners, getPrototypeDisplayValue, getRenderer, getSelectedIndex, getSelectedItem, getSelectedObjects, getUI, getUIClassID, hidePopup, insertItemAt, installAncestorListener, intervalAdded, intervalRemoved, isEditable, isLightWeightPopupEnabled, isPopupVisible, paramString, processKeyBinding, processKeyEvent, removeActionListener, removeAllItems, removeItem, removeItemAt, removeItemListener, removePopupMenuListener, selectedItemChanged, selectWithKeyChar, setAction, setActionCommand, setEditable, setEditor, setEnabled, setKeySelectionManager, setLightWeightPopupEnabled, setMaximumRowCount, setModel, setPopupVisible, setPrototypeDisplayValue, setRenderer, setSelectedIndex, setSelectedItem, setUI, showPopup, updateUIaddAncestorListener, 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, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, 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, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, 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, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, 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, 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, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic void unregister()
throws RemoteException
unregister in interface PClientComponentRemoteExceptionpublic void setModelHandle(PModelHandle data) throws RemoteException
setModelHandle in interface PComponentdata - The new PModelHandle from which information will be
extracted.RemoteExceptionpublic PModelHandle getModelHandle() throws RemoteException
getModelHandle in interface PComponentRemoteExceptionpublic boolean isLight()
throws RemoteException
setModelHandle() will not be called.isLight in interface PComponentRemoteExceptionpublic String getControllerClassName() throws RemoteException
getControllerClassName in interface PComponentRemoteExceptionpublic Vector getTools()
getTools in interface PClientComponentpublic void setResourceName(String name)
setResourceName in interface PClientComponentname - The new base resource name.public String getResourceName()
getResourceName in interface PClientComponentpublic Remote getRemoteComponent()
getRemoteComponent in interface PAppComponentpublic void setModelFieldDescription(String fieldDesc) throws RemoteException
setModelFieldDescription in interface PFieldBeanfieldDesc - A String describing the field used by this component.RemoteExceptionpublic String getModelFieldDescription() throws RemoteException
getModelFieldDescription in interface PFieldBeanRemoteExceptionpublic void setDisplayFieldDescription(String fieldDisp) throws RemoteException
setDisplayFieldDescription in interface PFieldBeanfieldDesc - A String describing the field displayed by this
component.RemoteExceptionpublic String getDisplayFieldDescription() throws RemoteException
getDisplayFieldDescription in interface PFieldBeanRemoteExceptionpublic void setDisplayFieldFormat(String fieldForm) throws RemoteException
setDisplayFieldFormat in interface PAppFieldComponentfieldForm - the format used when displaying the dataRemoteExceptionpublic String getDisplayFieldFormat() throws RemoteException
getDisplayFieldFormat in interface PAppFieldComponentRemoteExceptionpublic void setAssociatedClass(String name) throws RemoteException
PFieldBeansetAssociatedClass in interface PFieldBeanname - the class nameRemoteException - thrown for errorspublic String getAssociatedClass() throws RemoteException
PFieldBeangetAssociatedClass in interface PFieldBeanRemoteException - thrown for errorspublic void setField(Object field) throws RemoteException
PFieldBeanmodelFieldDescription.setField in interface PFieldBeanfield - the field's valueRemoteException - thrown for errorspublic Object getField() throws RemoteException
PFieldBeandisplayFieldDescription.getField in interface PFieldBeanRemoteException - thrown for errorspublic String getDataDescriptor()
PLightComponentgetDataDescriptor in interface PLightComponentString data description.public void setLightData(Object field)
PLightComponentsetLightData in interface PLightComponentfield - the lightweight component's display datapublic Object getLightData()
PLightComponentgetLightData in interface PLightComponentObject that represents a component's display data.public void setHelpID(String id)
setHelpID in interface PAppFieldComponentid - The new help id.public String getHelpID()
getHelpID in interface PAppFieldComponentpublic void resetToDefault()
setDefault()). If no default
value exists, the component data will be cleared.resetToDefault in interface PComponentAttributepublic void clear()
clear in interface PComponentAttributepublic boolean isRequired()
isRequired in interface PComponentAttributepublic void setRequired(boolean b)
setRequired in interface PComponentAttributeb - if true, puts the component in "required" statepublic boolean isError()
isError in interface PComponentAttributepublic void setError(boolean b)
setError in interface PComponentAttributeb - if true, puts the component in "error" state.public void setInputTracking(boolean b)
setInputTracking in interface PComponentAttributeb - the state of the inputTracking propertypublic boolean isInputTracking()
PComponentAttributeisInputTracking in interface PComponentAttributepublic void setClean()
setClean in interface PComponentAttributepublic boolean isDirty()
PComponentAttributeisDirty in interface PComponentAttributepublic void setDefault()
setDefault in interface PComponentAttributepublic boolean isCurrencyDisplay()
isCurrencyDisplay in interface PComponentAttributepublic void setCurrencyDisplay(boolean b)
setCurrencyDisplay in interface PComponentAttributeb - If true, indicates the widget is displaying currency data.public Object togglePrimaryToSecondary(int primary, int secondary) throws RemoteException
togglePrimaryToSecondary in interface PComponentAttributetogglePrimaryToSecondary in interface PFieldBeanfrom - Assumed to be the current currency ID being used to
display the datato - The new currency ID to use when displaying the dataRemoteExceptionpublic void revertToPrimary(int primary)
throws RemoteException
revertToPrimary in interface PComponentAttributerevertToPrimary in interface PFieldBeanprimary - The primary currency ID for an accountRemoteExceptionpublic void setChoices(String[] choices)
choices - The array of String objects to display in the componentpublic void setChoices(Vector choices)
choices - The Vector of String objects to display in the componentpublic void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange in interface PViewDataChangeListenerevent - The ViewDataChange event describing the changeRemoteException - thrown for errorspublic void collectData(PCollectDataEvent event)
collectData in interface PCollectDataListenerevent - The collect data eventCopyright © 2003, 2023, Oracle and/or its affiliates.