public interface PComponentAttribute
PComponentAttribute
encapsulates attributes that can be associated
with a PFieldComponent
.
These attributes include DIRTY (changed by the user), REQUIRED (by Portal policy),
and ERROR (incorrect value/format for committing to Portal).These attributes are not mutually exclusive; a component can be in a REQUIRED, DIRTY, and ERROR state at the same time. However, setting a component to CLEAN will clear the DIRTY and ERROR attributes.
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears existing data from the component.
|
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 input tracking is enabled.
|
boolean |
isRequired()
Determines whether this component is required in its current context.
|
void |
resetToDefault()
Resets the component value to the original value, which was
established by calling
setDefault() . |
void |
revertToPrimary(int primary)
Reverts converted currency data back to the primary representation.
|
void |
setClean()
Resets the component to the CLEAN state.
|
void |
setCurrencyDisplay(boolean b)
Determines if 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 |
setError(boolean b)
Marks this component as containing erroneous data in the current context
or unmarks the ERROR state, depending on the parameter.
|
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 |
setRequired(boolean b)
Marks this component as REQUIRED in its current context.
|
Object |
togglePrimaryToSecondary(int primary,
int secondary)
Causes the component to use the
BEIDManager to
convert its data. |
void setRequired(boolean b)
b
- indicates whether this component is required in its current
contextboolean isRequired()
void setError(boolean b)
b
- if true, puts the component in an ERROR stateboolean isError()
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.b
- the state of the inputTracking
propertyboolean isInputTracking()
boolean isDirty()
void setDefault()
void setClean()
void resetToDefault()
setDefault()
. If no default
value exists, the component data is cleared.void clear()
void setCurrencyDisplay(boolean b)
Use this API if the application you are building allows the user to switch between multiple currencies. For each widget that displays currency data, set this property to true.
b
- if true, indicates that the widget currently displays currency databoolean isCurrencyDisplay()
Object togglePrimaryToSecondary(int primary, int secondary) throws RemoteException
BEIDManager
to
convert its data.Typically, this method is not called directly. The encapsulating panel should take care of toggling data for all components it contains to minimize the RMI traffic.
primary
- the primary currency IDsecondary
- the secondary currency IDRemoteException
void revertToPrimary(int primary) throws RemoteException
primary
- the primary currency IDRemoteException
Copyright © 2003, 2023, Oracle and/or its affiliates.