public class PIAScrollPane extends JScrollPane implements PAppComponent, PComponentAttribute, PCollectDataListener, Serializable
PIAScrollPane is a Swing-compatible, Portal-aware
JPanel class. Used to pass certain method calls through to
its view component. Otherwise, to traverse components you would have
to specifically look for scroll panes and get their view components
yourself.JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBarJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isTracking |
protected PComponentDelegate |
mImpl |
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewportlistenerList, 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_ALIGNMENTCOLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PIAScrollPane()
Creates a new scrollable panel.
|
PIAScrollPane(Component view)
Creates a new scrollable panel that contains the given component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
A convenience method that clears every field on the
descendants of this panel's
viewPort component. |
void |
collectData(PCollectDataEvent event)
Overrides
PCollectDataListener. |
String |
getControllerClassName()
Retrieves the class name of this component's controller.
|
PModelHandle |
getModelHandle()
Retrieves the
PModelHandle for this component. |
Remote |
getRemoteComponent()
Gets a reference to the remote component for this object.
|
String |
getResourceName()
Gets the base resource name used in resource look up.
|
Vector |
getTools()
Gets a list of actions supported by this component.
|
protected void |
initialize()
Initializes the scrolling behavior for this component.
|
boolean |
isClean()
Determines if the view component is clean.
|
boolean |
isCurrencyDisplay()
Determines whether the
viewPort component currently displays
currency data. |
boolean |
isDirty()
Determines if the view component's DIRTY attribute is set.
|
boolean |
isError()
Determines if the view component's ERROR attribute is set.
|
boolean |
isInputTracking()
Determines if
inputTracking is on for this panel. |
boolean |
isLight()
Determines if this component defers
PModelHandle
knowledge to its parent container. |
boolean |
isRequired()
Determines if the view component is required in its current context.
|
void |
resetToDefault()
A convenience method that resets the value of every field on the
descendants of this panel's
viewPort component. |
void |
revertToPrimary(int primary)
Causes the widget to display its data in the primary currency.
|
void |
setClean()
A convenience method that marks all
PFieldComponent
components in this panel as CLEAN. |
void |
setCurrencyDisplay(boolean b)
Determines if a component currently displays currency data.
|
void |
setDefault()
Passes the
setDefault() method call to the view component. |
void |
setError(boolean b)
Passes the
setError method call to the view component. |
void |
setInputTracking(boolean b)
A convenience method to toggle the
inputTracking property for all
descendants of this panel. |
void |
setModelHandle(PModelHandle data)
Establishes the
PModelHandle for this component. |
void |
setRequired(boolean b)
Passes the
setRequired method call to the view component. |
void |
setResourceName(String name)
Sets the base resource name used in resource look up.
|
Object |
togglePrimaryToSecondary(int primary,
int secondary)
Walks through the component hierarchy and, for those components that
display currency (
isCurrencyDisplay returns true), converts
the displayed data to the new currency type. |
void |
unregister()
Disassociates the controller from the component
|
void |
viewDataChange(PViewDataChangeEvent event)
Overrides
PViewDataChangeListener. |
createHorizontalScrollBar, createVerticalScrollBar, createViewport, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, paramString, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setViewportView, setWheelScrollingEnabled, 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, 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, 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, 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, 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, processInputMethodEvent, 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 transient PComponentDelegate mImpl
protected boolean isTracking
public PIAScrollPane()
public PIAScrollPane(Component view)
view - the component to scrollpublic void unregister()
throws RemoteException
unregister in interface PClientComponentRemoteExceptionpublic void setModelHandle(PModelHandle data) throws RemoteException
PModelHandle for this component.setModelHandle in interface PComponentdata - the new PModelHandle
from which to extract informationRemoteException - thrown for errorspublic PModelHandle getModelHandle() throws RemoteException
PModelHandle for this component.getModelHandle in interface PComponentPModelHandle
associated with this component,
or null if this is a lightweight
component.RemoteException - thrown for errorspublic boolean isLight()
throws RemoteException
PModelHandle
knowledge to its parent container. If so, the parent container passes the
PModelHandle to this component on the server side (by way of
the controller), which saves a client/server round trip for data exchange.
Containers typically do not defer processing but instead handle it themselves.isLight in interface PComponentRemoteException - thrown for errorspublic String getControllerClassName() throws RemoteException
getControllerClassName in interface PComponentRemoteException - thrown for errorspublic Vector getTools()
getTools in interface PClientComponentVector that contains Action objects.public void setResourceName(String name)
setResourceName in interface PClientComponentname - the new base resource namepublic String getResourceName()
getResourceName in interface PClientComponentString with the base resource name.public Remote getRemoteComponent()
getRemoteComponent in interface PAppComponentRemote component.public Object togglePrimaryToSecondary(int primary, int secondary) throws RemoteException
isCurrencyDisplay returns true), converts
the displayed data to the new currency type.togglePrimaryToSecondary in interface PComponentAttributeprimary - the primary Portal currency IDsecondary - the secondary Portal currency IDRemoteException - thrown for errorspublic void revertToPrimary(int primary)
throws RemoteException
revertToPrimary in interface PComponentAttributeprimary - The primary currency ID for an account.RemoteExceptionpublic void viewDataChange(PViewDataChangeEvent event) throws RemoteException
PViewDataChangeListener. 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. The client code should call the appropriate
get() methods on the controller to get the data, as the
PViewDataChangeEvent parameter is no longer used.viewDataChange in interface PViewDataChangeListenerevent - the PViewDataChangeEvent event that
describes the change. No longer used. By default,
the value passed in is always set to null.RemoteException - thrown for errorspublic void setRequired(boolean b)
setRequired method call to the view component.setRequired in interface PComponentAttributeb - if true, puts the component in a REQUIRED statepublic boolean isRequired()
isRequired in interface PComponentAttributepublic void setError(boolean b)
setError method call to the view component.setError in interface PComponentAttributeb - if true, puts the component in an ERROR statepublic boolean isError()
isError in interface PComponentAttributepublic boolean isDirty()
isDirty in interface PComponentAttributepublic void setDefault()
setDefault() method call to the view component.setDefault in interface PComponentAttributepublic boolean isClean()
public void setClean()
PFieldComponent
components in this panel as CLEAN. Useful if components are marked DIRTY
because inputTracking is on, and the data was modified.setClean in interface PComponentAttributepublic void setInputTracking(boolean b)
inputTracking property for all
descendants of this panel.setInputTracking in interface PComponentAttributeb - a flag that indicates if inputTracking should be
supportedpublic boolean isInputTracking()
inputTracking is on for this panel.isInputTracking in interface PComponentAttributeinputTracking is on; false otherwise.public void setCurrencyDisplay(boolean b)
viewPort component.setCurrencyDisplay in interface PComponentAttributeb - if true, indicates that the widget currently displays currency datapublic boolean isCurrencyDisplay()
viewPort component currently displays
currency data.isCurrencyDisplay in interface PComponentAttributeviewPort component currently displays
currency data; false otherwise.public void clear()
viewPort component.clear in interface PComponentAttributepublic void resetToDefault()
viewPort component.resetToDefault in interface PComponentAttributepublic void collectData(PCollectDataEvent event)
PCollectDataListener. Forwarded
to any contained GUI component that is also a
PCollectDataListener.collectData in interface PCollectDataListenerevent - the PCollectDataEvent data eventprotected void initialize()
Copyright © 2003, 2023, Oracle and/or its affiliates.