public class PIABooleanEnumRadioField extends JRadioButton implements PAppFieldComponent, PLightComponent, PComponentAttribute, PCollectDataListener, ItemListener, Serializable
PIABooleanEnumRadioField creates an Portal-aware radio button component.JRadioButton.AccessibleJRadioButtonJToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModelAbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListenerJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyactionListener, 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_PROPERTYlistenerList, 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_ALIGNMENTBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WESTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PIABooleanEnumRadioField()
Creates a radiobutton component that is Portal-aware
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Resets the state of this radiobutton to false.
|
void |
collectData(PCollectDataEvent event)
Overrides
PCollectDataListener. |
String |
getAssociatedClass()
Gets the associated class, if any, for this field.
|
String |
getControllerClassName()
Retrieves the class name of this component's controller.
|
String |
getDataDescriptor()
Gets the data field description used by the component.
|
String |
getDisplayFieldDescription()
Gets the data field description used by this component.
|
String |
getDisplayFieldFormat()
Gets the display field format used by this component.
|
int |
getFalseValue()
Get the
Enumeration value used for false; defaults to 0. |
Object |
getField()
Gets the value of the field referred to in the
displayFieldDescription. |
String |
getHelpID()
Gets the current help ID for this component.
|
Object |
getLightData()
Gets the lightweight data object.
|
String |
getModelFieldDescription()
Gets the data field description used by this component.
|
PModelHandle |
getModelHandle()
Retrieves the
PModelHandle for this component. |
Remote |
getRemoteComponent()
Gets a reference to the remote component for this object.
|
String |
getResourceName()
Returns the base resource name used to look up a resource.
|
Vector |
getTools()
Gets the list of actions supported by this component.
|
int |
getTrueValue()
Get the
Enumeration value used for true; defaults to 1. |
boolean |
isCurrencyDisplay()
Determines whether the component currently displays currency data.
|
boolean |
isDirty()
Determines if this component is currently in a DIRTY state.
|
boolean |
isError()
Determines if this component is currently in an ERROR state.
|
boolean |
isInputTracking()
Determines if
inputTracking is enabled. |
boolean |
isLight()
Determines if this component defers
PModelHandle
knowledge to its parent container. |
boolean |
isRequired()
Determines if this component is a required field in its current context.
|
void |
itemStateChanged(ItemEvent e)
The method invoked when the component's state is changed.
|
void |
resetToDefault()
Resets the component value to the original value
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 |
setClean()
Resets the component to the CLEAN state.
|
void |
setCurrencyDisplay(boolean b)
Determines whether this component currently displays currency data.
|
void |
setDefault()
Establishes the current value (or element count, depending on the
given component) as the default value.
|
void |
setDisplayFieldDescription(String fieldDisp)
Sets the description of the field(s) in the data model for
this component to display.
|
void |
setDisplayFieldFormat(String fieldForm)
Sets the
java.text.MessageFormat 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 |
setFalseValue(int falseVal)
Set the
Enumeration value used for false; defaults to 0. |
void |
setField(Object field)
Sets the value of the field referred to in the
modelFieldDescription. |
void |
setHelpID(String id)
Sets the help ID for this component.
|
void |
setInputTracking(boolean b)
If the
inputTracking property is enabled, any changes made by the
user to the component are tracked and the component is marked DIRTY. |
void |
setLightData(Object field)
Sets the lightweight data object.
|
void |
setModelFieldDescription(String fieldDesc)
Sets 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)
Sets the base resource name used to look up resources.
|
void |
setTrueValue(int trueVal)
Sets the
Enumeration value used for true; defaults to 1. |
Object |
togglePrimaryToSecondary(int primary,
int secondary)
Does nothing.
|
void |
unregister()
Used to disassociate this component from its delegate (controller)
|
void |
viewDataChange(PViewDataChangeEvent event)
Overrides
PViewDataChangeListener. |
getAccessibleContext, getUIClassID, paramString, updateUIactionPropertyChanged, 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, removeNotify, 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, setVerticalTextPositionaddAncestorListener, 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, 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, updateadd, 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, 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, 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 PIABooleanEnumRadioField()
public void unregister()
throws RemoteException
unregister in interface PClientComponentRemoteExceptionpublic void setModelHandle(PModelHandle data) throws RemoteException
PModelHandle for this component.setModelHandle in interface PComponentdata - the new PModelHandle from
which to extract informationRemoteException - thrown for errorspublic PModelHandle getModelHandle() throws RemoteException
PModelHandle for this component.getModelHandle in interface PComponentPModelHandle
associated with this component,
or null if this is a lightweight
component.RemoteException - thrown for errorspublic boolean isLight()
throws RemoteException
PModelHandle
knowledge to its parent container. If so, the parent container passes the
PModelHandle to this component on the server side (by way of
the controller), which saves a client/server round trip for data exchange.
If specific processing is required, when PModelHandle is called,
subclass this component and override this method. Otherwise,
setModelHandle() is not called.
isLight in interface PComponentRemoteException - thrown for errorspublic String getControllerClassName() throws RemoteException
getControllerClassName in interface PComponentString with the value
"com.portal.bas.comp.PIAFieldBean",
the default controller for most instances
of PFieldComponent.RemoteException - thrown for errorspublic Vector getTools()
getTools in interface PClientComponentVector that contains Action objects.public void setResourceName(String name)
setResourceName in interface PClientComponentname - the new base resource namepublic String getResourceName()
getResourceName in interface PClientComponentString with the resource name.public Remote getRemoteComponent()
getRemoteComponent in interface PAppComponentRemote component.public void setModelFieldDescription(String fieldDesc) throws RemoteException
setModelFieldDescription in interface PFieldBeanfieldDesc - a String that describes the
field used by this componentRemoteException - thrown for errorspublic String getModelFieldDescription() throws RemoteException
getModelFieldDescription in interface PFieldBeanString description of the
field used by this component.RemoteException - thrown for errorspublic void setDisplayFieldDescription(String fieldDisp) throws RemoteException
setDisplayFieldDescription in interface PFieldBeanfieldDisp - a String that describes the
field displayed by this componentRemoteException - thrown for errorspublic String getDisplayFieldDescription() throws RemoteException
getDisplayFieldDescription in interface PFieldBeanString description of the
field used by this component.RemoteException - thrown for errorspublic void setDisplayFieldFormat(String fieldForm) throws RemoteException
java.text.MessageFormat used to display data in
this component. This is typically (but not necessarily) directly tied
to the displayFieldDescription. For this specific widget, the format
might be similar to the following:"{0,choice,0#First Label|1#2nd Label|2#Third Label}"
setDisplayFieldFormat in interface PAppFieldComponentfieldForm - the format used to display the dataRemoteException - thrown for errorspublic String getDisplayFieldFormat() throws RemoteException
getDisplayFieldFormat in interface PAppFieldComponentString representation of
the display field format.RemoteException - thrown for errorspublic void setAssociatedClass(String name) throws RemoteException
setAssociatedClass in interface PFieldBeanname - a String with the class nameRemoteException - thrown for errorspublic String getAssociatedClass() throws RemoteException
getAssociatedClass in interface PFieldBeanString with the associated class name.RemoteException - thrown for errorspublic void setField(Object field) throws RemoteException
modelFieldDescription.setField in interface PFieldBeanvalue - the field's valueRemoteException - thrown for errorspublic Object getField() throws RemoteException
displayFieldDescription.getField in interface PFieldBeanRemoteException - thrown for errorspublic void setLightData(Object field)
setLightData in interface PLightComponentfield - the lightweight component's display datapublic Object getLightData()
getLightData in interface PLightComponentInteger display value.public String getDataDescriptor()
getDataDescriptor in interface PLightComponentString description of the fields
used by this component or null if there is none.RemoteException - thrown for errorspublic void setHelpID(String id)
setHelpID in interface PAppFieldComponentid - the new help ID to setpublic String getHelpID()
getHelpID in interface PAppFieldComponentString with the current help IDpublic void resetToDefault()
setDefault(). If no default
value exists, the component data is 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; if false, removes the
ERROR statepublic void setInputTracking(boolean b)
inputTracking property is enabled, any changes made by the
user to the component are tracked and the component is marked DIRTY.
If the user modifies the data and returns it to its default or original
state, the component is marked CLEAN or not DIRTY.setInputTracking in interface PComponentAttributeb - the state of the inputTracking propertypublic boolean isInputTracking()
inputTracking is enabled.isInputTracking in interface PComponentAttributeinputTracking is enabled; false otherwise.public void setClean()
setClean in interface PComponentAttributepublic boolean isDirty()
isDirty in interface PComponentAttributeinputTracking is not enabled.public void setDefault()
setDefault in interface PComponentAttributepublic void setCurrencyDisplay(boolean b)
setCurrencyDisplay in interface PComponentAttributeb - if true, indicates that the component currently displays currency datapublic boolean isCurrencyDisplay()
isCurrencyDisplay in interface PComponentAttributepublic Object togglePrimaryToSecondary(int primary, int secondary) throws RemoteException
togglePrimaryToSecondary in interface PComponentAttributetogglePrimaryToSecondary in interface PFieldBeanprimary - the primary currency IDsecondary - the secondary currency IDRemoteExceptionpublic void revertToPrimary(int primary)
throws RemoteException
revertToPrimary in interface PComponentAttributerevertToPrimary in interface PFieldBeanprimary - The primary currency ID for an accountRemoteExceptionpublic void setTrueValue(int trueVal)
Enumeration value used for true; defaults to 1.trueVal - the value to use for truepublic int getTrueValue()
Enumeration value used for true; defaults to 1.public void setFalseValue(int falseVal)
Enumeration value used for false; defaults to 0.falseVal - the value to use for falsepublic int getFalseValue()
Enumeration value used for false; defaults to 0.public void viewDataChange(PViewDataChangeEvent event) throws RemoteException
PViewDataChangeListener. This method is
no longer called by the controller itself. To ensure backward compatibility,
it is called after the model is set, by any operation that causes a change in
the display data. Client code should call the appropriate
get() methods on the controller to get the data, because the
PViewDataChangeEvent parameter is no longer used.viewDataChange in interface PViewDataChangeListenerevent - the PViewDataChangeEvent event that
describes the change. No longer used. By default,
the value passed in is always set to null.RemoteException - thrown for errorspublic void collectData(PCollectDataEvent event)
PCollectDataListener. Causes the controller to
save changes to the data model.
Done by BAS prior to committing changes to Portal.collectData in interface PCollectDataListenerevent - the data collection eventpublic void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenere - the event that contains the changeCopyright © 2003, 2023, Oracle and/or its affiliates.