public class PPageTemplate extends PIACustomizablePanel implements PaymentChangeListener, BillInfoChangeListener, VetoableChangeListener
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
isTracking, mIAList, mImpl, unregList
IMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImage
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 |
---|
PPageTemplate(String tag,
PAccountViewPage page)
Instantiates the template, with the given component being
created as the base for this page.
|
Modifier and Type | Method and Description |
---|---|
void |
addNotify() |
void |
addPage(String tag,
PAccountViewPage page)
This method should be called when you want to simulate drilling down
from one screen to another.
|
void |
billInfoChange(BillInfoChangeEvent e)
listen to billInfoChange event
|
void |
clearBreadCrumbs()
Wipes out the existing breadcrumb trail, leaving it empty.
|
PAccountViewPage |
getBaseComponent()
Return the base component in this template
|
String |
getBreadCrumb()
Retrieves the current breadcrumb label
|
Enumeration |
getBreadCrumbTrail() |
PAccountViewPage |
getComponentFrom(Class type)
Retrieves the first instance of the given Class type
|
PAccountViewPage |
getComponentFrom(String name)
Retrieves the page that was added to this template with the given
tag.
|
String[] |
getPageNames()
Returns the names of all previously added drill down components and
the name of the base component as well.
|
Class[] |
getPageTypes()
Returns the Class types of all previously added drill down components
including the type of the base component as well.
|
PAccountViewPage |
getVisibleComponent()
Returns the currently visible component in this template.
|
void |
gotoExisting(Enumeration tags,
PAccountViewPage page) |
boolean |
gotoPage(String tag,
PAccountViewPage page)
This method searches through the set of drill downs previously
added to this template looking for the given page.
|
boolean |
gotoPage(String tag,
PAccountViewPage page,
boolean updateTrail)
This method searches through the set of drill downs previously
added to this template looking for the given page.
|
void |
markAllForRefresh()
Mark every page in this template (toplevel, and any drill downs)
as needing to be refreshed.
|
void |
paymentChange(PaymentChangeEvent e)
Called when an event is sent out that impacts the payment type or
related billing info (billing frequency, day of month, cycle)
|
void |
recycle()
Responsible for cleaning up the component and preparing it for
reuse.
|
void |
removeNotify() |
void |
setModelHandle(PModelHandle pm)
A mechanism for passing in a new account for display
|
void |
vetoableChange(PropertyChangeEvent evt)
This method gets called before a link switch occurs
|
clear, collectData, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getControllerClassName, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, resetToDefault, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setDefault, setError, setInputTracking, setRequired, setResourceName, togglePrimaryToSecondary, unregister, viewDataChange
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcon
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, isValidateRoot, paint, paintBorder, paintChildren, 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, setFont, 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, 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, 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 PPageTemplate(String tag, PAccountViewPage page)
tag
- The label to be used in the breadcrumb trail for the given
pagepage
- The root/base componentpublic void setModelHandle(PModelHandle pm) throws RemoteException
setModelHandle
in interface PComponent
setModelHandle
in class PIACustomizablePanel
The
- model handle for a new accountRemoteException
- thrown for errorspublic PAccountViewPage getBaseComponent()
public PAccountViewPage getVisibleComponent()
public String[] getPageNames()
public Class[] getPageTypes()
public PAccountViewPage getComponentFrom(String name)
name
- The tag used when the page was originally addedpublic PAccountViewPage getComponentFrom(Class type)
The
- Class type to locatepublic void addPage(String tag, PAccountViewPage page)
tag
- The label to be used in the breadcrumb trail for this
component.page
- The component which will become the new active pagepublic void gotoExisting(Enumeration tags, PAccountViewPage page)
tags
- page
- The component which will become the new active pagepublic boolean gotoPage(String tag, PAccountViewPage page)
tag
- The label to display in the breadcrumb trailpage
- The new screen to displaypublic boolean gotoPage(String tag, PAccountViewPage page, boolean updateTrail)
tag
- The label to display in the breadcrumb trailpage
- The new screen to displayupdateTrail
- If true, add a link to the trail. Otherwise, no
update will be made to the breadcrumb trail.public void clearBreadCrumbs()
public String getBreadCrumb()
public Enumeration getBreadCrumbTrail()
public void markAllForRefresh()
public void recycle()
public void billInfoChange(BillInfoChangeEvent e)
billInfoChange
in interface BillInfoChangeListener
e
- a ServiceChangeEvent encapsulating the event informationpublic void paymentChange(PaymentChangeEvent e)
PaymentChangeListener
paymentChange
in interface PaymentChangeListener
e
- a PaymentChangeEvent encapsulating the event informationpublic void addNotify()
addNotify
in class JComponent
public void removeNotify()
removeNotify
in class JComponent
public void vetoableChange(PropertyChangeEvent evt) throws PropertyVetoException
vetoableChange
in interface VetoableChangeListener
evt
- a PropertyChangeEvent
object describing the
event source and the property that has changed.PropertyVetoException
- if the recipient wishes the property
change to be rolled back.Copyright © 2003, 2023, Oracle and/or its affiliates.