public class PAccountView extends PIATabbedPane implements PAccountViewContext, PContextChangedListener, PropertyChangeListener, VetoableChangeListener
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
isTracking, MENU_ICONS, MENU_ITEMS, MENU_TIPS, mImpl, mLastTab, mMenu, mMenuIcon, mMouse, MODEL_TYPE, mPopup, SELECTED_INDEX, TO_FRONT_PRIORITY
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT
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
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PAccountView()
Constructs a tabbed pane containing components described in the
"custinfo.panel" property.
|
Modifier and Type | Method and Description |
---|---|
void |
addNotify()
Sends out a property change event indicating the currently selected
tab.
|
void |
addToView(PAccountViewPage sp)
Adds a page to this account view as a tab.
|
void |
appletStart(PContextChangedEvent event)
Handles a context change event associated with starting an applet.
|
void |
appletStop(PContextChangedEvent event)
Handles a context change event associated with stopping an applet.
|
Dimension |
getMinimumSize() |
PPageTracker |
getPageTracker()
Retrieves the class that manages the navigation stack (back button)
|
PRefreshManager |
getRefreshManager()
Retrieves the class through which pages register for Refresh
notification.
|
Vector |
getTools()
Returns the set of tools to use for all panels in this
panel.
|
PPageTemplate |
getVisibleTemplate()
Retrieves the encompassing template for the currently visible top-level
page.
|
boolean |
isPartOfView(PAccountViewPage sp)
Determines if this page is a visible tab.
|
boolean |
okToExit(PContextChangedEvent event)
Handles a user's exit from this tabbed pane and attempts to save
any changes made.
|
void |
propertyChange(PropertyChangeEvent evt)
Looks for notification of property changes on the active tab.
|
void |
recycle()
Prepares this component for reuse.
|
void |
refreshModelHandle(PModelHandle data)
Refreshes the view with this account's data.
|
void |
removeFromView(PAccountViewPage sp)
Locates the tab containing this top-level page and
removes that tab.
|
void |
setModelHandle(PModelHandle data)
Verifies that each tab is valid for this context.
|
void |
setSelectedIndex(int idx) |
void |
sizeChanged(PContextChangedEvent event)
Handles a user's resizing of this tabbed pane.
|
PAccountViewPage |
switchToPage(String tag,
Class pageClass)
This method searches through the set of drill downs previously
added to the current top-level page looking for the given class type.
|
PAccountViewPage |
switchToPage(String tag,
Class pageClass,
String parentName)
This method allows you to simulate drilling down from a different
parent.
|
void |
switchToPage(String tag,
PAccountViewPage page)
This method searches through the set of drill downs previously
added to the current top-level page looking for the given page.
|
boolean |
switchToPage(String tag,
PAccountViewPage page,
String parentName)
This method allows you to simulate drilling down from a different
parent.
|
void |
switchToPreviousPage(int idx,
Enumeration tags,
PAccountViewPage page)
Assumes the current tab's position; will either move up one level in the
breadcrumb trail (back) or forward if the specified tag/page does not
represent the page one level up (back).
|
void |
toTop(PContextChangedEvent event)
Handles a context change event, where this tabbed pane is moved to the top.
|
void |
vetoableChange(PropertyChangeEvent evt)
Attempts to save changed properties before a tab switch occurs.
|
void |
wasOnTop(PContextChangedEvent event)
Handles a context change event, where this tabbed pane is moved from the top.
|
addTab, addTab, addTab, firePropertyChange, fireVetoableChange, getAllTools, getControllerClassName, getModelHandle, getRemoteComponent, getResourceName, insertTab, isLight, setResourceName, stateChanged, unregister, viewDataChange
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, insertTab, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, setUI, updateUI
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, 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, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, 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, update
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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, 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, 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, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public PAccountView()
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
public void setModelHandle(PModelHandle data) throws RemoteException
setModelHandle
in interface PComponent
setModelHandle
in class PIATabbedPane
data
- the model handle for the account data to displayRemoteException
- thrown for errorspublic void refreshModelHandle(PModelHandle data) throws RemoteException
data
- the model handle for the new account data to displayRemoteException
public Vector getTools()
getTools
in interface PClientComponent
getTools
in class PIATabbedPane
public void propertyChange(PropertyChangeEvent evt)
PModelHandle
to
update if there is a change.propertyChange
in interface PropertyChangeListener
e
- the property change eventpublic void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException
vetoableChange
in interface VetoableChangeListener
evt
- a PropertyChangeEvent
object describing the
event source and the property that was changedPropertyVetoException
- thrown if the recipient wants to roll
back the property changepublic void addNotify()
addNotify
in class JComponent
public void recycle()
public boolean okToExit(PContextChangedEvent event)
okToExit
in interface PContextChangedListener
event
- the context change event to handlepublic void toTop(PContextChangedEvent event)
toTop
in interface PContextChangedListener
event
- the context change event to handlepublic void wasOnTop(PContextChangedEvent event)
wasOnTop
in interface PContextChangedListener
event
- the context change event to handlepublic void appletStart(PContextChangedEvent event)
appletStart
in interface PContextChangedListener
event
- the context change event to handlepublic void appletStop(PContextChangedEvent event)
appletStop
in interface PContextChangedListener
event
- the context change event to handlepublic void sizeChanged(PContextChangedEvent event)
sizeChanged
in interface PContextChangedListener
event
- the context change event to handlepublic void switchToPage(String tag, PAccountViewPage page)
PAccountViewContext
getLabel()
is
called on 'page' to determine the appropriate breadcrumb tag. Otherwise
'tag' is used in the breadcrumb trail to name the current drill downswitchToPage
in interface PAccountViewContext
tag
- page
- public boolean switchToPage(String tag, PAccountViewPage page, String parentName)
PAccountViewContext
getLabel()
is
called on 'page' to determine the appropriate breadcrumb tag. Otherwise
'tag' is used in the breadcrumb trail to indicate the current page.switchToPage
in interface PAccountViewContext
tag
- page
- parentName
- public PAccountViewPage switchToPage(String tag, Class pageClass)
PAccountViewContext
getLabel()
is
used to determine the appropriate breadcrumb tag. Otherwise
'tag' is used in the breadcrumb trail to name the current drill downswitchToPage
in interface PAccountViewContext
tag
- pageClass
- public PAccountViewPage switchToPage(String tag, Class pageClass, String parentName)
PAccountViewContext
getLabel()
is
used to determine the appropriate breadcrumb tag. Otherwise
'tag' is used in the breadcrumb trail to indicate the current page.switchToPage
in interface PAccountViewContext
tag
- pageClass
- parentName
- public void switchToPreviousPage(int idx, Enumeration tags, PAccountViewPage page)
switchToPreviousPage
in interface PAccountViewContext
public PPageTemplate getVisibleTemplate()
PAccountViewContext
getVisibleTemplate
in interface PAccountViewContext
public PPageTracker getPageTracker()
PAccountViewContext
getPageTracker
in interface PAccountViewContext
public PRefreshManager getRefreshManager()
PAccountViewContext
getRefreshManager
in interface PAccountViewContext
public void addToView(PAccountViewPage sp)
This is typically used in conjunction with a page that may or may not
be valid for a given account context. A page that may have been
omitted from the view by returning false in its isValidContext()
method should use this method to add itself back.
addToView
in interface PAccountViewContext
sp
- the page to add as a tabpublic void removeFromView(PAccountViewPage sp)
This is typically used in conjunction with a page that may or may not be valid for a given account context. If your page suddenly goes out of context due to some event in the account, use this method to remove the tab associated with this page. Note that the specified page must be the top-level page on a tab.
removeFromView
in interface PAccountViewContext
sp
- the top-level page to remove from the viewpublic boolean isPartOfView(PAccountViewPage sp)
isPartOfView
in interface PAccountViewContext
sp
- the page in questionpublic void setSelectedIndex(int idx)
setSelectedIndex
in class JTabbedPane
Copyright © 2003, 2023, Oracle and/or its affiliates.