public class PIAReadOnlyField extends JLabel implements PCollectDataListener, PAppFieldComponent, PLightComponent, PComponentAttribute, Serializable
JLabel.AccessibleJLabelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected int |
mPrimaryCur |
protected Object |
mPrimaryData |
protected int |
mSecondaryCur |
listenerList, 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 |
|---|
PIAReadOnlyField()
Creates a label that knows how to display Portal data.
|
| 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
|
Insets |
getInsets()
override the default Insets to provide space below the Component so that the underscores get
displayed
|
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
|
Dimension |
getPreferredSize()
override the default getPreferredSize to increase the height of the Component
so that the underscores get displayed
|
Remote |
getRemoteComponent()
Get a reference to the remote component for this object.
|
String |
getResourceName()
Get the base resource name used in resource lookup.
|
Vector |
getTools()
Get a list of Actions supported by this component.
|
Object |
getValue() |
boolean |
isCurrencyDisplay()
Determines if the component is displaying currency data.
|
boolean |
isDataCollectable() |
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 |
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 |
setDataCollectable(boolean b)
By default a PIAReadOnlyField does not participate in data collection.
|
void |
setDefault()
Establishes the current value (or element count, depending on the
given component) as the default value.
|
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.
|
void |
setValue(Object aValue)
To cache the original unformatted value and then display the formatted
value.
|
Object |
togglePrimaryToSecondary(int primary,
int secondary)
Causes the widget to convert its data using the BEIDManager.
|
void |
unregister()
Used to disassociate this component from its delegate (controller)
|
void |
viewDataChange(PViewDataChangeEvent event)
ViewDataChangeListener override.
|
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition, 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, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, 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, processKeyBinding, processKeyEvent, 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, setEnabled, 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, 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, transferFocusUpCycleprotected Object mPrimaryData
protected int mPrimaryCur
protected int mSecondaryCur
public PIAReadOnlyField()
public Insets getInsets()
getInsets in class JComponentpublic Dimension getPreferredSize()
getPreferredSize in class JComponentpublic 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 PClientComponentRemoteExceptionpublic 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 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 void setCurrencyDisplay(boolean b)
setCurrencyDisplay in interface PComponentAttributeb - If true, indicates the widget is displaying currency data.public boolean isCurrencyDisplay()
isCurrencyDisplay in interface PComponentAttributepublic Object togglePrimaryToSecondary(int primary, int secondary) throws RemoteException
togglePrimaryToSecondary(-1, currency)
will only change the currency format of the widget.togglePrimaryToSecondary in interface PComponentAttributetogglePrimaryToSecondary in interface PFieldBeanprimary - The primary currency ID for an accountsecondary - The secondary currency ID for an accountRemoteExceptionpublic void revertToPrimary(int primary)
throws RemoteException
revertToPrimary in interface PComponentAttributerevertToPrimary in interface PFieldBeanprimary - The primary currency ID for an accountRemoteExceptionpublic void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange in interface PViewDataChangeListenerevent - The ViewDataChange event describing the changeRemoteException - thrown for errorspublic void setValue(Object aValue)
aValue - The unformatted value.public Object getValue()
public 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 setDataCollectable(boolean b)
public boolean isDataCollectable()
public void collectData(PCollectDataEvent event)
collectData in interface PCollectDataListenerevent - The collect data eventCopyright © 2003, 2023, Oracle and/or its affiliates.