Package com.portal.bas.comp
Class PIABooleanEnumRadioField
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JToggleButton
javax.swing.JRadioButton
com.portal.bas.comp.PIABooleanEnumRadioField
- All Implemented Interfaces:
PAppComponent
,PAppFieldComponent
,PClientComponent
,PCollectDataListener
,PComponent
,PComponentAttribute
,PFieldBean
,PLightComponent
,PViewDataChangeListener
,ItemListener
,ImageObserver
,ItemSelectable
,MenuContainer
,Serializable
,Remote
,EventListener
,Accessible
,SwingConstants
public class PIABooleanEnumRadioField
extends JRadioButton
implements PAppFieldComponent, PLightComponent, PComponentAttribute, PCollectDataListener, ItemListener, Serializable
PIABooleanEnumRadioField
creates an Portal-aware radio button component.- Version:
- %version: 2 % %date_modified: Tue Apr 09 10:08:42 2002 %
- Author:
- larrylf
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JRadioButton
JRadioButton.AccessibleJRadioButton
Nested classes/interfaces inherited from class javax.swing.JToggleButton
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel
Nested classes/interfaces inherited from class javax.swing.AbstractButton
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Fields inherited from class javax.swing.AbstractButton
actionListener, 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_PROPERTY
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a radiobutton component that is Portal-aware -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Resets the state of this radiobutton to false.void
collectData
(PCollectDataEvent event) OverridesPCollectDataListener
.Gets the associated class, if any, for this field.Retrieves the class name of this component's controller.Gets the data field description used by the component.Gets the data field description used by this component.Gets the display field format used by this component.int
Get theEnumeration
value used for false; defaults to 0.getField()
Gets the value of the field referred to in thedisplayFieldDescription
.Gets the current help ID for this component.Gets the lightweight data object.Gets the data field description used by this component.Retrieves thePModelHandle
for this component.Gets a reference to the remote component for this object.Returns the base resource name used to look up a resource.getTools()
Gets the list of actions supported by this component.int
Get theEnumeration
value used for true; defaults to 1.boolean
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
Determines ifinputTracking
is enabled.boolean
isLight()
Determines if this component defersPModelHandle
knowledge to its parent container.boolean
Determines if this component is a required field in its current context.void
The method invoked when the component's state is changed.void
Resets the component value to the original value established by callingsetDefault()
.void
revertToPrimary
(int primary) Causes the widget to display its data in the primary currencyvoid
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
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 thejava.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 theEnumeration
value used for false; defaults to 0.void
Sets the value of the field referred to in themodelFieldDescription
.void
Sets the help ID for this component.void
setInputTracking
(boolean b) If theinputTracking
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 thePModelHandle
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 theEnumeration
value used for true; defaults to 1.togglePrimaryToSecondary
(int primary, int secondary) Does nothing.void
Used to disassociate this component from its delegate (controller)void
OverridesPViewDataChangeListener
.Methods inherited from class javax.swing.JRadioButton
getAccessibleContext, getUIClassID, paramString, updateUI
Methods inherited from class javax.swing.JToggleButton
requestFocus, requestFocusInWindow
Methods inherited from class javax.swing.AbstractButton
actionPropertyChanged, 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, setVerticalTextPosition
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, update
Methods inherited from class java.awt.Container
add, 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, validateTree
Methods inherited from class java.awt.Component
action, 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, 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, requestFocus, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
PIABooleanEnumRadioField
public PIABooleanEnumRadioField()Creates a radiobutton component that is Portal-aware
-
-
Method Details
-
unregister
Used to disassociate this component from its delegate (controller)- Specified by:
unregister
in interfacePClientComponent
- Throws:
RemoteException
-
setModelHandle
Establishes thePModelHandle
for this component.- Specified by:
setModelHandle
in interfacePComponent
- Parameters:
data
- the newPModelHandle
from which to extract information- Throws:
RemoteException
- thrown for errors
-
getModelHandle
Retrieves thePModelHandle
for this component.- Specified by:
getModelHandle
in interfacePComponent
- Returns:
- The
PModelHandle
associated with this component, or null if this is a lightweight component. - Throws:
RemoteException
- thrown for errors
-
isLight
Determines if this component defersPModelHandle
knowledge to its parent container. If so, the parent container passes thePModelHandle
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.- Specified by:
isLight
in interfacePComponent
- Returns:
- True if the component defers knowledge, false otherwise.
- Throws:
RemoteException
- thrown for errors
-
getControllerClassName
Retrieves the class name of this component's controller.- Specified by:
getControllerClassName
in interfacePComponent
- Returns:
- A
String
with the value "com.portal.bas.comp.PIAFieldBean", the default controller for most instances ofPFieldComponent
. - Throws:
RemoteException
- thrown for errors
-
getTools
Gets the list of actions supported by this component. When subclassed, the overriding class should call its superclass method first, then add its actions to the returned list. This preserves the actions supplied by base classes. The default, supplied here, includes help for this component.- Specified by:
getTools
in interfacePClientComponent
- Returns:
- A
Vector
that containsAction
objects.
-
setResourceName
Sets the base resource name used to look up resources. The resource name consists of this base, followed by a dot, followed by the local name (label).- Specified by:
setResourceName
in interfacePClientComponent
- Parameters:
name
- the new base resource name
-
getResourceName
Returns the base resource name used to look up a resource.- Specified by:
getResourceName
in interfacePClientComponent
- Returns:
- A
String
with the resource name.
-
getRemoteComponent
Gets a reference to the remote component for this object. The remote component is used to interface with this component's controller.- Specified by:
getRemoteComponent
in interfacePAppComponent
- Returns:
- A
Remote
component.
-
setModelFieldDescription
Sets the description of the field in the data model that this component is interested in.- Specified by:
setModelFieldDescription
in interfacePFieldBean
- Parameters:
fieldDesc
- aString
that describes the field used by this component- Throws:
RemoteException
- thrown for errors
-
getModelFieldDescription
Gets the data field description used by this component.- Specified by:
getModelFieldDescription
in interfacePFieldBean
- Returns:
- A
String
description of the field used by this component. - Throws:
RemoteException
- thrown for errors
-
setDisplayFieldDescription
Sets the description of the field(s) in the data model for this component to display.- Specified by:
setDisplayFieldDescription
in interfacePFieldBean
- Parameters:
fieldDisp
- aString
that describes the field displayed by this component- Throws:
RemoteException
- thrown for errors
-
getDisplayFieldDescription
Gets the data field description used by this component.- Specified by:
getDisplayFieldDescription
in interfacePFieldBean
- Returns:
- A
String
description of the field used by this component. - Throws:
RemoteException
- thrown for errors
-
setDisplayFieldFormat
Sets thejava.text.MessageFormat
used to display data in this component. This is typically (but not necessarily) directly tied to thedisplayFieldDescription
. For this specific widget, the format might be similar to the following:"{0,choice,0#First Label|1#2nd Label|2#Third Label}"
- Specified by:
setDisplayFieldFormat
in interfacePAppFieldComponent
- Parameters:
fieldForm
- the format used to display the data- Throws:
RemoteException
- thrown for errors
-
getDisplayFieldFormat
Gets the display field format used by this component.- Specified by:
getDisplayFieldFormat
in interfacePAppFieldComponent
- Returns:
- A
String
representation of the display field format. - Throws:
RemoteException
- thrown for errors
-
setAssociatedClass
Sets the associated class, if any, for this field.- Specified by:
setAssociatedClass
in interfacePFieldBean
- Parameters:
name
- aString
with the class name- Throws:
RemoteException
- thrown for errors
-
getAssociatedClass
Gets the associated class, if any, for this field.- Specified by:
getAssociatedClass
in interfacePFieldBean
- Returns:
- A
String
with the associated class name. - Throws:
RemoteException
- thrown for errors
-
setField
Sets the value of the field referred to in themodelFieldDescription
.- Specified by:
setField
in interfacePFieldBean
- Parameters:
field
- the field's valuevalue
- the field's value- Throws:
RemoteException
- thrown for errors
-
getField
Gets the value of the field referred to in thedisplayFieldDescription
.- Specified by:
getField
in interfacePFieldBean
- Returns:
- The field's value.
- Throws:
RemoteException
- thrown for errors
-
setLightData
Sets the lightweight data object.- Specified by:
setLightData
in interfacePLightComponent
- Parameters:
field
- the lightweight component's display data
-
getLightData
Gets the lightweight data object.- Specified by:
getLightData
in interfacePLightComponent
- Returns:
- The lightweight component's
Integer
display value.
-
getDataDescriptor
Gets the data field description used by the component.- Specified by:
getDataDescriptor
in interfacePLightComponent
- Returns:
- A
String
description of the fields used by this component or null if there is none. - Throws:
RemoteException
- thrown for errors
-
setHelpID
Sets the help ID for this component.- Specified by:
setHelpID
in interfacePAppFieldComponent
- Parameters:
id
- the new help ID to set
-
getHelpID
Gets the current help ID for this component.- Specified by:
getHelpID
in interfacePAppFieldComponent
- Returns:
- A
String
with the current help ID
-
resetToDefault
public void resetToDefault()Resets the component value to the original value established by callingsetDefault()
. If no default value exists, the component data is cleared.- Specified by:
resetToDefault
in interfacePComponentAttribute
-
clear
public void clear()Resets the state of this radiobutton to false.- Specified by:
clear
in interfacePComponentAttribute
-
isRequired
public boolean isRequired()Determines if this component is a required field in its current context. This provides a visual indicator only; there is no mechanism to enforce that required fields be filled in.- Specified by:
isRequired
in interfacePComponentAttribute
- Returns:
- True if this field is marked REQUIRED; false otherwise.
-
setRequired
public void setRequired(boolean b) Marks this component as required in its current context. This is currently a visual indicator only; there is no mechanism to enforce that required fields be filled in.- Specified by:
setRequired
in interfacePComponentAttribute
- Parameters:
b
- if true, puts the component in REQUIRED state
-
isError
public boolean isError()Determines if this component is currently in an ERROR state.- Specified by:
isError
in interfacePComponentAttribute
- Returns:
- True if this component is in an ERROR state; false otherwise.
-
setError
public void setError(boolean b) Marks this component as containing erroneous data in the current context, or unmarks the ERROR state, depending on the parameter.- Specified by:
setError
in interfacePComponentAttribute
- Parameters:
b
- if true, puts the component in ERROR state; if false, removes the ERROR state
-
setInputTracking
public void setInputTracking(boolean b) If theinputTracking
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.- Specified by:
setInputTracking
in interfacePComponentAttribute
- Parameters:
b
- the state of theinputTracking
property
-
isInputTracking
public boolean isInputTracking()Determines ifinputTracking
is enabled.- Specified by:
isInputTracking
in interfacePComponentAttribute
- Returns:
- True if
inputTracking
is enabled; false otherwise.
-
setClean
public void setClean()Resets the component to the CLEAN state. If the component was in a DIRTY or ERROR state, this method removes those attributes. A required component is still marked REQUIRED after a call to this method.- Specified by:
setClean
in interfacePComponentAttribute
-
isDirty
public boolean isDirty()Determines if this component is currently in a DIRTY state.- Specified by:
isDirty
in interfacePComponentAttribute
- Returns:
- True if the user has modified the data represented by this
component, false otherwise. It also returns false if
inputTracking
is not enabled.
-
setDefault
public void setDefault()Establishes the current value (or element count, depending on the given component) as the default value. Any modifications made after this method is called will result in a DIRTY component.- Specified by:
setDefault
in interfacePComponentAttribute
-
setCurrencyDisplay
public void setCurrencyDisplay(boolean b) Determines whether this component currently displays currency data. Widgets that display currency data are capable of automatically toggling their data between a primary and secondary Portal currency type.- Specified by:
setCurrencyDisplay
in interfacePComponentAttribute
- Parameters:
b
- if true, indicates that the component currently displays currency data- Since:
- Release 6.2
-
isCurrencyDisplay
public boolean isCurrencyDisplay()Determines whether the component currently displays currency data.- Specified by:
isCurrencyDisplay
in interfacePComponentAttribute
- Returns:
- True if the component currently displays currency data; false otherwise.
- Since:
- Release 6.2
-
togglePrimaryToSecondary
Does nothing.- Specified by:
togglePrimaryToSecondary
in interfacePComponentAttribute
- Specified by:
togglePrimaryToSecondary
in interfacePFieldBean
- Parameters:
primary
- the primary currency IDsecondary
- the secondary currency ID- Returns:
- The converted value.
- Throws:
RemoteException
-
revertToPrimary
Causes the widget to display its data in the primary currency- Specified by:
revertToPrimary
in interfacePComponentAttribute
- Specified by:
revertToPrimary
in interfacePFieldBean
- Parameters:
primary
- The primary currency ID for an account- Throws:
RemoteException
-
setTrueValue
public void setTrueValue(int trueVal) Sets theEnumeration
value used for true; defaults to 1.- Parameters:
trueVal
- the value to use for true
-
getTrueValue
public int getTrueValue()Get theEnumeration
value used for true; defaults to 1.- Returns:
- An integer value to use for true.
-
setFalseValue
public void setFalseValue(int falseVal) Set theEnumeration
value used for false; defaults to 0.- Parameters:
falseVal
- the value to use for false
-
getFalseValue
public int getFalseValue()Get theEnumeration
value used for false; defaults to 0.- Returns:
- An integer value to use for false.
-
viewDataChange
OverridesPViewDataChangeListener
. 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 appropriateget
methods on the controller to get the data, because the() PViewDataChangeEvent
parameter is no longer used.- Specified by:
viewDataChange
in interfacePViewDataChangeListener
- Parameters:
event
- thePViewDataChangeEvent
event that describes the change. No longer used. By default, the value passed in is always set to null.- Throws:
RemoteException
- thrown for errors
-
collectData
OverridesPCollectDataListener
. Causes the controller to save changes to the data model. Done by BAS prior to committing changes to Portal.- Specified by:
collectData
in interfacePCollectDataListener
- Parameters:
event
- the data collection event
-
itemStateChanged
The method invoked when the component's state is changed.- Specified by:
itemStateChanged
in interfaceItemListener
- Parameters:
e
- the event that contains the change
-