public class PIATextAreaField extends JTextArea implements PAppFieldComponent, PLightComponent, PComponentAttribute, PCollectDataListener, Serializable
JTextArea.AccessibleJTextAreaJTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBindingJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.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_KEYlistenerList, 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_ALIGNMENTABORT, 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, setWrapStyleWordaddCaretListener, 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, writeaddAncestorListener, 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, 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, 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, transferFocusUpCycleprotected Object mPrimaryData
protected int mPrimaryCur
protected int mSecondaryCur
protected boolean displayingSecondaryCurrency
public 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 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 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 - The value of the required attributepublic 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 boolean isCurrencyDisplay()
isCurrencyDisplay in interface PComponentAttributepublic void setCurrencyDisplay(boolean b)
setCurrencyDisplay in interface PComponentAttributeb - If true, indicates the widget is displaying currency data.public 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 boolean isManagingFocus()
isManagingFocus in class JComponentpublic void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange in interface PViewDataChangeListenerevent - The ViewDataChange event describing the changeRemoteException - thrown for errorspublic void collectData(PCollectDataEvent event)
collectData in interface PCollectDataListenerevent - The collect data eventpublic void setMaximumLength(int max)
max - Copyright © 2003, 2023, Oracle and/or its affiliates.