public class PCustomerCenterInternals extends PIACustomizablePanel implements CustomerCenterContext, PContextChangedListener
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyisTracking, mIAList, mImpl, unregListIMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImagelistenerList, 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_ALIGNMENTBILL_INFO_SELECTION, CLOSE_ACCOUNT, CURRENT_ACCOUNT, CURRENT_BRAND, SERVICE_SELECTIONLESSSPACE, MAXIMIZE, MINIMIZE, MORESPACE, NORMALIZEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PCustomerCenterInternals()
Creates CustomerCenter
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAccountClosedListener(PropertyChangeListener p)
Registers the given listener so that it receives a
PropertyChangeEvent event when an account closes.
|
void |
addAccountClosedVetoableListener(VetoableChangeListener v)
Registers the given listener so that it receives a
VetoableChangeEvent before an account closes.
|
void |
addActions(Vector tools)
Adds a vector of
PBASAction from the application menu, toolbar, or both. |
void |
addActions(Vector tools,
JToolBar tb) |
void |
addBillInfoSelectionListener(PropertyChangeListener p)
Registers the given listener so that it receives a
PropertyChangeEvent event when BillInfo Selection change Occured in BillGroup ComboBox.
|
void |
addContextChangedListener(PContextChangedListener l)
Adds a
PContextChangedListener. |
void |
addCurrentAccountListener(PropertyChangeListener p)
Registers the given listener so that it receives a
PropertyChangeEvent when the current account changes
|
void |
addCurrentAccountVetoableListener(VetoableChangeListener v)
Registers the given listener so that it receives a
VetoableChangeEvent before the current account changes
|
void |
addNotify()
Overridden to perform server side initialization of BAS tables
(BEID, Locale, etc.)
|
void |
addServiceSelectionListener(PropertyChangeListener p)
Registers the given listener so that it receives a
PropertyChangeEvent event when Service Selection change Occured in PServicePage.
|
void |
appletStart(PContextChangedEvent event)
Handles a
PContextChangedEvent associated with an applet's start. |
void |
appletStop(PContextChangedEvent event)
Handles a
PContextChangedEvent associated with an applet's stop. |
void |
billInfoSelectionChanged(BillInfoChangeEvent bie)
Used to notify Context regarding the BillInfo Selection Change occured
in the BillGroup ComboBox with the PModelHandle of the newly selected BillInfo
and previously Selected BillGroup.
|
void |
changeSize(Component comp,
int spaceNeeded)
no-op
|
void |
closeAccount(PModelHandle pm)
Used to close the account represented by the given PModelHandle.
|
boolean |
fireContextChangedEvent(PContextChangedEvent event)
Fires a
PContextChangedEvent. |
void |
focusOn(Component comp)
Ensures that a panel is shown, then gives it focus.
|
PModelHandle |
getAccount(String accountNum)
Performs a GLOBAL search to locate the given account, using
the given account number.
|
PActiveAccountManager |
getAccountManager()
Returns the active account manager instance
|
PAccountViewContext |
getAccountViewContext()
Retrieves the context associated with the current account.
|
String |
getAppName()
Retrieves the name of the client
|
PBrandManager |
getBrandManager() |
String |
getControllerClassName()
Gets the class name for this class's controller
|
PModelHandle |
getCSRNameModelHandle()
Return the CSR Account object model handle.
|
PCurrencyManager |
getCurrencyManager() |
PAccountInfo |
getCurrentAccountInfo()
Retrieves the information class for the current account
|
static PCustomerCenterInternals |
getInstance(String username,
String password,
String db,
String port,
String propFileName)
Returns an instance of this panel that is connected to Portal
with the given connection parameters.
|
PAccountInfo |
getLastActiveOpenAccount()
Used to track the last active open account.
|
PAccountNavigator |
getNavigatorComponent()
Returns the account navigator component
|
PrintManager |
getPrintManager() |
PSaveManager |
getSaveManager() |
PAppContext |
getWizardContext()
We currently provide the ability to display one wizard at a time.
|
boolean |
okToExit(PContextChangedEvent event)
Handles a
PContextChangedEvent associated with an exit. |
void |
removeAccountClosedListener(PropertyChangeListener p)
Removes the PropertyChangeListener for the CLOSE_ACCOUNT property
|
void |
removeAccountClosedVetoableListener(VetoableChangeListener v)
Removes the VetoableChangeListener for the CLOSE_ACCOUNT property
|
void |
removeActions(Vector tools)
Removes a vector of
PBASAction from the application menu, toolbar, or both. |
void |
removeActions(Vector tools,
JToolBar tb) |
void |
removeBillInfoSelectionListener(PropertyChangeListener p)
Removes the given listener for BILL_INFO_SELECTION property
|
void |
removeContextChangedListener(PContextChangedListener l)
Removes a
PContextChangedListener. |
void |
removeCurrentAccountListener(PropertyChangeListener p)
Removes the PropertyChangeListener for the
CustomerCenterContext.CURRENT_ACCOUNT property
|
void |
removeCurrentAccountVetoableListener(VetoableChangeListener v)
Removes the VetoableChangeListener for the
CustomerCenterContext.CURRENT_ACCOUNT property
|
void |
removeServiceSelectionListener(PropertyChangeListener p)
Removes the given listener for SERVICE_SELECTION property
|
void |
serviceSelectionChanged(PModelHandle pm)
Used to notify Context regarding the Service Selection Change occured
in the PServicePage with the PModelHandle of the newly selected Service.
|
void |
setCurrentAccount(PModelHandle pm)
Establishes the current account for the client.
A vetoable property change event will be issued giving listeners
the opportunity to disallow the change in current account.
|
void |
setOverlay(Component comp)
no-op
|
void |
setStatus(String status)
Sets the string, if any, to display in the status bar.
|
void |
setWizardContext(PAppContext ctx)
Used to establish the context for the current wizard.
|
void |
showDefault()
Mechanism to force the display of the main application interface.
|
void |
sizeChanged(PContextChangedEvent event)
Handles a
PContextChangedEvent associated with a change in panel size. |
void |
toTop(PContextChangedEvent event)
Handles a
PContextChangedEvent associated with a change in panel
position to the top. |
void |
wasOnTop(PContextChangedEvent event)
Handles a
PContextChangedEvent associated with a change in
panel position from the top. |
clear, collectData, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, resetToDefault, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setDefault, setError, setInputTracking, setModelHandle, setRequired, setResourceName, togglePrimaryToSecondary, unregister, viewDataChangegetBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcongetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, 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, setLayout, 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, 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, transferFocusUpCyclepublic PCustomerCenterInternals()
public static PCustomerCenterInternals getInstance(String username, String password, String db, String port, String propFileName) throws InstantiationException
username - The id/login to use when connecting to Portalpassword - The password to use when connecting to Portaldb - The name of the CM you are connecting toport - The port # of the CM you are connecting topropFileName - The name of the main property file for the
app you are instantiating. For Customer Center, that is
"CustomerCenter.properties"InstantiationException - when the connection attempt failspublic PModelHandle getAccount(String accountNum)
accountNum - the Portal account number to search forpublic PCurrencyManager getCurrencyManager()
getCurrencyManager in interface CustomerCenterContextpublic PSaveManager getSaveManager()
getSaveManager in interface CustomerCenterContextpublic PBrandManager getBrandManager()
getBrandManager in interface CustomerCenterContextpublic PrintManager getPrintManager()
getPrintManager in interface CustomerCenterContextpublic PModelHandle getCSRNameModelHandle()
CustomerCenterContextgetCSRNameModelHandle in interface CustomerCenterContextpublic void showDefault()
CustomerCenterContextshowDefault in interface CustomerCenterContextpublic void setWizardContext(PAppContext ctx)
setWizardContext in interface CustomerCenterContextctx - The wizard contextpublic PAppContext getWizardContext()
getWizardContext in interface CustomerCenterContextpublic void setCurrentAccount(PModelHandle pm) throws PropertyVetoException
setCurrentAccount in interface CustomerCenterContextThe - model handle for the new accountPropertyVetoExceptionpublic PAccountInfo getCurrentAccountInfo()
getCurrentAccountInfo in interface CustomerCenterContextpublic PAccountInfo getLastActiveOpenAccount()
getLastActiveOpenAccount in interface CustomerCenterContextpublic void addCurrentAccountListener(PropertyChangeListener p)
addCurrentAccountListener in interface CustomerCenterContextp - The listenerpublic void removeCurrentAccountListener(PropertyChangeListener p)
removeCurrentAccountListener in interface CustomerCenterContextp - The listenerpublic void addCurrentAccountVetoableListener(VetoableChangeListener v)
addCurrentAccountVetoableListener in interface CustomerCenterContextv - The VetoableChangeListenerpublic void removeCurrentAccountVetoableListener(VetoableChangeListener v)
removeCurrentAccountVetoableListener in interface CustomerCenterContextv - The listenerpublic void serviceSelectionChanged(PModelHandle pm) throws PropertyVetoException
serviceSelectionChanged in interface CustomerCenterContextpm - The Service that currently selectedPropertyVetoExceptionpublic void addServiceSelectionListener(PropertyChangeListener p)
addServiceSelectionListener in interface CustomerCenterContextp - The listenerpublic void removeServiceSelectionListener(PropertyChangeListener p)
removeServiceSelectionListener in interface CustomerCenterContextp - The listenerpublic void billInfoSelectionChanged(BillInfoChangeEvent bie)
billInfoSelectionChanged in interface CustomerCenterContextpreviousBillInfo - The BillInfo that was previously selectedcurrentBillInfo - The BillInfo that is the new Selectionpublic void addBillInfoSelectionListener(PropertyChangeListener p)
addBillInfoSelectionListener in interface CustomerCenterContextp - The listenerpublic void removeBillInfoSelectionListener(PropertyChangeListener p)
removeBillInfoSelectionListener in interface CustomerCenterContextp - The listenerpublic void closeAccount(PModelHandle pm) throws PropertyVetoException
closeAccount in interface CustomerCenterContextpm - The account to closePropertyVetoExceptionpublic void addAccountClosedListener(PropertyChangeListener p)
addAccountClosedListener in interface CustomerCenterContextp - The listenerpublic void removeAccountClosedListener(PropertyChangeListener p)
removeAccountClosedListener in interface CustomerCenterContextp - The listenerpublic void addAccountClosedVetoableListener(VetoableChangeListener v)
addAccountClosedVetoableListener in interface CustomerCenterContextv - The VetoableChangeListenerpublic void removeAccountClosedVetoableListener(VetoableChangeListener v)
removeAccountClosedVetoableListener in interface CustomerCenterContextv - The listenerpublic PAccountViewContext getAccountViewContext()
getAccountViewContext in interface CustomerCenterContextpublic void setOverlay(Component comp)
setOverlay in interface PAppContextcomp - the component to add to the applicationpublic void changeSize(Component comp, int spaceNeeded)
changeSize in interface PAppContextcomp - the component to changespaceNeeded - a constant that describes how to change the
component's sizepublic void setStatus(String status)
PAppContextsetStatus in interface PAppContextstatus - the new status textpublic void addActions(Vector tools)
PAppContextPBASAction from the application menu, toolbar, or both.addActions in interface PAppContexttools - a Vector of PBASAction objectspublic void removeActions(Vector tools)
PAppContextPBASAction from the application menu, toolbar, or both.removeActions in interface PAppContexttools - a Vector of PBASAction objectspublic String getAppName()
getAppName in interface PAppContextpublic void focusOn(Component comp)
PAppContextfocusOn in interface PAppContextcomp - the component that gets focuspublic void addContextChangedListener(PContextChangedListener l)
PAppContextPContextChangedListener.addContextChangedListener in interface PAppContextl - a PContextChangedListenerpublic void removeContextChangedListener(PContextChangedListener l)
PAppContextPContextChangedListener.removeContextChangedListener in interface PAppContextl - a PContextChangedListenerpublic boolean fireContextChangedEvent(PContextChangedEvent event)
PAppContextPContextChangedEvent.fireContextChangedEvent in interface PAppContextevent - a PContextChangedEvent eventokToExit event, true otherwise.public void addNotify()
addNotify in class JComponentpublic PActiveAccountManager getAccountManager()
public PAccountNavigator getNavigatorComponent()
public String getControllerClassName() throws RemoteException
getControllerClassName in interface PComponentgetControllerClassName in class PIACustomizablePanelRemoteException - thrown for errorspublic void toTop(PContextChangedEvent event)
PContextChangedListenerPContextChangedEvent associated with a change in panel
position to the top.toTop in interface PContextChangedListenerevent - the event to handlepublic void wasOnTop(PContextChangedEvent event)
PContextChangedListenerPContextChangedEvent associated with a change in
panel position from the top.wasOnTop in interface PContextChangedListenerevent - the event to handlepublic void appletStart(PContextChangedEvent event)
PContextChangedListenerPContextChangedEvent associated with an applet's start.appletStart in interface PContextChangedListenerevent - the event to handlepublic void appletStop(PContextChangedEvent event)
PContextChangedListenerPContextChangedEvent associated with an applet's stop.appletStop in interface PContextChangedListenerevent - the event to handlepublic void sizeChanged(PContextChangedEvent event)
PContextChangedListenerPContextChangedEvent associated with a change in panel size.sizeChanged in interface PContextChangedListenerevent - the event to handlepublic boolean okToExit(PContextChangedEvent event)
PContextChangedListenerPContextChangedEvent associated with an exit.okToExit in interface PContextChangedListenerevent - the event to handleCopyright © 2003, 2023, Oracle and/or its affiliates.