public class PIATextAreaField extends JTextArea implements PAppFieldComponent, PLightComponent, PComponentAttribute, PCollectDataListener, Serializable
JTextArea.AccessibleJTextArea
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected boolean |
displayingSecondaryCurrency |
protected int |
mPrimaryCur |
protected Object |
mPrimaryData |
protected int |
mSecondaryCur |
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PIATextAreaField()
Creates a textarea component
|
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()
Get the base resource name used in resource lookup.
|
Vector |
getTools()
Get a list of Actions supported by this component.
|
boolean |
isCurrencyDisplay()
Determines if the component is displaying currency 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 |
isManagingFocus()
Overridden to allow tab traversal when TAB key is entered.
|
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 |
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 |
setMaximumLength(int max)
set the limit to accept maximum number of characters in the text area field
|
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)
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.
|
append, createDefaultModel, getAccessibleContext, getColumns, getColumnWidth, getLineCount, getLineEndOffset, getLineOfOffset, getLineStartOffset, getLineWrap, getPreferredScrollableViewportSize, getPreferredSize, getRowHeight, getRows, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getTabSize, getUIClassID, getWrapStyleWord, insert, paramString, replaceRange, setColumns, setFont, setLineWrap, setRows, setTabSize, setWrapStyleWord
addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getActions, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getDropLocation, getDropMode, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPrintable, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, print, print, print, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, replaceSelection, restoreComposedText, saveComposedText, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDocument, setDragEnabled, setDropMode, setEditable, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText, setUI, updateUI, viewToModel, write
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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, 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, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, 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, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, 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, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected Object mPrimaryData
protected int mPrimaryCur
protected int mSecondaryCur
protected boolean displayingSecondaryCurrency
public void unregister() throws RemoteException
unregister
in interface PClientComponent
RemoteException
public void setModelHandle(PModelHandle data) throws RemoteException
setModelHandle
in interface PComponent
data
- The new PModelHandle from which information will be
extracted.RemoteException
public PModelHandle getModelHandle() throws RemoteException
getModelHandle
in interface PComponent
RemoteException
public boolean isLight() throws RemoteException
setModelHandle()
will not be called.isLight
in interface PComponent
RemoteException
public String getControllerClassName() throws RemoteException
getControllerClassName
in interface PComponent
RemoteException
public Vector getTools()
getTools
in interface PClientComponent
public void setResourceName(String name)
setResourceName
in interface PClientComponent
name
- The new base resource name.public String getResourceName()
getResourceName
in interface PClientComponent
RemoteException
public Remote getRemoteComponent()
getRemoteComponent
in interface PAppComponent
public void setModelFieldDescription(String fieldDesc) throws RemoteException
setModelFieldDescription
in interface PFieldBean
fieldDesc
- A String describing the field used by this component.RemoteException
public String getModelFieldDescription() throws RemoteException
getModelFieldDescription
in interface PFieldBean
RemoteException
public void setDisplayFieldDescription(String fieldDisp) throws RemoteException
setDisplayFieldDescription
in interface PFieldBean
fieldDesc
- A String describing the field displayed by this
component.RemoteException
public String getDisplayFieldDescription() throws RemoteException
getDisplayFieldDescription
in interface PFieldBean
RemoteException
public void setDisplayFieldFormat(String fieldForm) throws RemoteException
setDisplayFieldFormat
in interface PAppFieldComponent
fieldForm
- the format used when displaying the dataRemoteException
public String getDisplayFieldFormat() throws RemoteException
getDisplayFieldFormat
in interface PAppFieldComponent
RemoteException
public void setAssociatedClass(String name) throws RemoteException
PFieldBean
setAssociatedClass
in interface PFieldBean
name
- the class nameRemoteException
- thrown for errorspublic String getAssociatedClass() throws RemoteException
PFieldBean
getAssociatedClass
in interface PFieldBean
RemoteException
- thrown for errorspublic void setField(Object field) throws RemoteException
PFieldBean
modelFieldDescription
.setField
in interface PFieldBean
field
- the field's valueRemoteException
- thrown for errorspublic Object getField() throws RemoteException
PFieldBean
displayFieldDescription
.getField
in interface PFieldBean
RemoteException
- thrown for errorspublic String getDataDescriptor()
PLightComponent
getDataDescriptor
in interface PLightComponent
String
data description.public void setLightData(Object field)
PLightComponent
setLightData
in interface PLightComponent
field
- the lightweight component's display datapublic Object getLightData()
PLightComponent
getLightData
in interface PLightComponent
Object
that represents a component's display data.public void setHelpID(String id)
setHelpID
in interface PAppFieldComponent
id
- The new help id.public String getHelpID()
getHelpID
in interface PAppFieldComponent
public void resetToDefault()
setDefault()
). If no default
value exists, the component data will be cleared.resetToDefault
in interface PComponentAttribute
public void clear()
clear
in interface PComponentAttribute
public boolean isRequired()
isRequired
in interface PComponentAttribute
public void setRequired(boolean b)
setRequired
in interface PComponentAttribute
b
- The value of the required attributepublic boolean isError()
isError
in interface PComponentAttribute
public void setError(boolean b)
setError
in interface PComponentAttribute
b
- if true, puts the component in "error" state.public void setInputTracking(boolean b)
setInputTracking
in interface PComponentAttribute
b
- the state of the inputTracking
propertypublic boolean isInputTracking()
PComponentAttribute
isInputTracking
in interface PComponentAttribute
public void setClean()
setClean
in interface PComponentAttribute
public boolean isDirty()
PComponentAttribute
isDirty
in interface PComponentAttribute
public void setDefault()
setDefault
in interface PComponentAttribute
public boolean isCurrencyDisplay()
isCurrencyDisplay
in interface PComponentAttribute
public void setCurrencyDisplay(boolean b)
setCurrencyDisplay
in interface PComponentAttribute
b
- If true, indicates the widget is displaying currency data.public Object togglePrimaryToSecondary(int primary, int secondary) throws RemoteException
togglePrimaryToSecondary
in interface PComponentAttribute
togglePrimaryToSecondary
in interface PFieldBean
primary
- The primary currency IDsecondary
- The secondary currency IDRemoteException
public void revertToPrimary(int primary) throws RemoteException
revertToPrimary
in interface PComponentAttribute
revertToPrimary
in interface PFieldBean
primary
- The primary currency ID for an accountRemoteException
public boolean isManagingFocus()
isManagingFocus
in class JComponent
public void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange
in interface PViewDataChangeListener
event
- The ViewDataChange event describing the changeRemoteException
- thrown for errorspublic void collectData(PCollectDataEvent event)
collectData
in interface PCollectDataListener
event
- The collect data eventpublic void setMaximumLength(int max)
max
- Copyright © 2003, 2023, Oracle and/or its affiliates.