Package com.portal.app.cc
Class PCustomerCenterInternals
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.portal.pfc.ui.ImagePanel
com.portal.bas.comp.PIACustomizablePanel
com.portal.app.cc.PCustomerCenterInternals
- All Implemented Interfaces:
CustomerCenterContext,PAppComponent,PAppContext,PClientComponent,PCollectDataListener,PComponent,PComponentAttribute,PContextChangedListener,PViewDataChangeListener,ContainerListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible
public class PCustomerCenterInternals
extends PIACustomizablePanel
implements CustomerCenterContext, PContextChangedListener
The customer center application shell and framework implementation
- Version:
- %version: 16 % %date_modified: Tue Mar 19 17:05:17 2002 %
- Author:
- kapono
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class com.portal.bas.comp.PIACustomizablePanel
isTracking, mIAList, mImpl, unregListFields inherited from class com.portal.pfc.ui.ImagePanel
IMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImageFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface com.portal.app.cc.comp.CustomerCenterContext
BILL_INFO_SELECTION, CLOSE_ACCOUNT, CURRENT_ACCOUNT, CURRENT_BRAND, SERVICE_SELECTIONFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the given listener so that it receives a PropertyChangeEvent event when an account closes.voidRegisters the given listener so that it receives a VetoableChangeEvent before an account closes.voidaddActions(Vector tools) Adds a vector ofPBASActionfrom the application menu, toolbar, or both.voidaddActions(Vector tools, JToolBar tb) voidRegisters the given listener so that it receives a PropertyChangeEvent event when BillInfo Selection change Occured in BillGroup ComboBox.voidAdds aPContextChangedListener.voidRegisters the given listener so that it receives a PropertyChangeEvent when the current account changesvoidRegisters the given listener so that it receives a VetoableChangeEvent before the current account changesvoidOverridden to perform server side initialization of BAS tables (BEID, Locale, etc.)voidRegisters the given listener so that it receives a PropertyChangeEvent event when Service Selection change Occured in PServicePage.voidappletStart(PContextChangedEvent event) Handles aPContextChangedEventassociated with an applet's start.voidappletStop(PContextChangedEvent event) Handles aPContextChangedEventassociated with an applet's stop.voidUsed 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.voidchangeSize(Component comp, int spaceNeeded) no-opvoidUsed to close the account represented by the given PModelHandle.booleanFires aPContextChangedEvent.voidEnsures that a panel is shown, then gives it focus.getAccount(String accountNum) Performs a GLOBAL search to locate the given account, using the given account number.Returns the active account manager instanceRetrieves the context associated with the current account.Retrieves the name of the clientGets the class name for this class's controllerReturn the CSR Account object model handle.Retrieves the information class for the current accountstatic PCustomerCenterInternalsReturns an instance of this panel that is connected to Portal with the given connection parameters.Used to track the last active open account.Returns the account navigator componentWe currently provide the ability to display one wizard at a time.booleanokToExit(PContextChangedEvent event) Handles aPContextChangedEventassociated with an exit.voidRemoves the PropertyChangeListener for the CLOSE_ACCOUNT propertyvoidRemoves the VetoableChangeListener for the CLOSE_ACCOUNT propertyvoidremoveActions(Vector tools) Removes a vector ofPBASActionfrom the application menu, toolbar, or both.voidremoveActions(Vector tools, JToolBar tb) voidRemoves the given listener for BILL_INFO_SELECTION propertyvoidRemoves aPContextChangedListener.voidRemoves the PropertyChangeListener for the CustomerCenterContext.CURRENT_ACCOUNT propertyvoidRemoves the VetoableChangeListener for the CustomerCenterContext.CURRENT_ACCOUNT propertyvoidRemoves the given listener for SERVICE_SELECTION propertyvoidUsed to notify Context regarding the Service Selection Change occured in the PServicePage with the PModelHandle of the newly selected Service.voidEstablishes 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.voidsetOverlay(Component comp) no-opvoidSets the string, if any, to display in the status bar.voidUsed to establish the context for the current wizard.voidMechanism to force the display of the main application interface.voidsizeChanged(PContextChangedEvent event) Handles aPContextChangedEventassociated with a change in panel size.voidtoTop(PContextChangedEvent event) Handles aPContextChangedEventassociated with a change in panel position to the top.voidwasOnTop(PContextChangedEvent event) Handles aPContextChangedEventassociated with a change in panel position from the top.Methods inherited from class com.portal.bas.comp.PIACustomizablePanel
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, viewDataChangeMethods inherited from class com.portal.pfc.ui.ImagePanel
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIconMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
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, 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, updateMethods inherited from class java.awt.Container
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, validateTreeMethods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
PCustomerCenterInternals
public PCustomerCenterInternals()Creates CustomerCenter
-
-
Method Details
-
getInstance
public static PCustomerCenterInternals getInstance(String username, String password, String db, String port, String propFileName) throws InstantiationException Returns an instance of this panel that is connected to Portal with the given connection parameters. Infranet.properties is not required and will be ignored when this factory method is used.
This is the method to use if you wish to embed Customer Center in a separate stand-alone application.- Parameters:
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"- Returns:
- An instance of Customer Center that is connected to Portal
- Throws:
InstantiationException- when the connection attempt fails
-
getAccount
Performs a GLOBAL search to locate the given account, using the given account number.- Parameters:
accountNum- the Portal account number to search for- Returns:
- the PModelHandle for the account; null if not found
-
getCurrencyManager
- Specified by:
getCurrencyManagerin interfaceCustomerCenterContext- Returns:
- Retrieves the client's currency manager instance
-
getSaveManager
- Specified by:
getSaveManagerin interfaceCustomerCenterContext- Returns:
- Retrieves the client's save manager instance
-
getBrandManager
- Specified by:
getBrandManagerin interfaceCustomerCenterContext- Returns:
- Retrieves the client's brand manager instance
-
getPrintManager
- Specified by:
getPrintManagerin interfaceCustomerCenterContext- Returns:
- Retrieves the client's print manager instance
-
getCSRNameModelHandle
Description copied from interface:CustomerCenterContextReturn the CSR Account object model handle. This is mostly used in the Notes object to retrieve th CSR name while inserting text into notes. CSR name/model handle is to be retrieved from here since the CSR name/model handle cannot be accessed from sub-brands.- Specified by:
getCSRNameModelHandlein interfaceCustomerCenterContext- Returns:
- ModelHandle containing the CSR name
-
showDefault
public void showDefault()Description copied from interface:CustomerCenterContextMechanism to force the display of the main application interface. setOverlay() allows the main application interface to be taken over, so there needs to be a hook to get back to the original default.- Specified by:
showDefaultin interfaceCustomerCenterContext
-
setWizardContext
Used to establish the context for the current wizard.- Specified by:
setWizardContextin interfaceCustomerCenterContext- Parameters:
ctx- The wizard context
-
getWizardContext
We currently provide the ability to display one wizard at a time. This method allows you to access that wizard.- Specified by:
getWizardContextin interfaceCustomerCenterContext- Returns:
- The wizard context if the wizard is active; null otherwise
-
setCurrentAccount
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. If there are no objections, the current account is changed and an update is sent via a property change event.- Specified by:
setCurrentAccountin interfaceCustomerCenterContext- Parameters:
pm- The model handle for the new accountThe- model handle for the new account- Throws:
PropertyVetoException
-
getCurrentAccountInfo
Retrieves the information class for the current account- Specified by:
getCurrentAccountInfoin interfaceCustomerCenterContext- Returns:
- The current account's data wrapper
-
getLastActiveOpenAccount
Used to track the last active open account. If you go to the home page (or something like it that may be added to the client) the current account will be set to null. However, it is often useful to know which account you were previously looking at.
Note this will be set to null if all accounts are closed, and it will usually be the same as the current account (i.e. when you select an account this value does not track the previous one - its only really useful when current account is null).- Specified by:
getLastActiveOpenAccountin interfaceCustomerCenterContext- Returns:
- The last active open account, if any open accounts exist.
-
addCurrentAccountListener
Registers the given listener so that it receives a PropertyChangeEvent when the current account changes- Specified by:
addCurrentAccountListenerin interfaceCustomerCenterContext- Parameters:
p- The listener
-
removeCurrentAccountListener
Removes the PropertyChangeListener for the CustomerCenterContext.CURRENT_ACCOUNT property- Specified by:
removeCurrentAccountListenerin interfaceCustomerCenterContext- Parameters:
p- The listener
-
addCurrentAccountVetoableListener
Registers the given listener so that it receives a VetoableChangeEvent before the current account changes- Specified by:
addCurrentAccountVetoableListenerin interfaceCustomerCenterContext- Parameters:
v- The VetoableChangeListener
-
removeCurrentAccountVetoableListener
Removes the VetoableChangeListener for the CustomerCenterContext.CURRENT_ACCOUNT property- Specified by:
removeCurrentAccountVetoableListenerin interfaceCustomerCenterContext- Parameters:
v- The listener
-
serviceSelectionChanged
Used to notify Context regarding the Service Selection Change occured in the PServicePage with the PModelHandle of the newly selected Service. This will allow PropertyListeners for that change to act accordingly. client.- Specified by:
serviceSelectionChangedin interfaceCustomerCenterContext- Parameters:
pm- The Service that currently selected- Throws:
PropertyVetoException
-
addServiceSelectionListener
Registers the given listener so that it receives a PropertyChangeEvent event when Service Selection change Occured in PServicePage.- Specified by:
addServiceSelectionListenerin interfaceCustomerCenterContext- Parameters:
p- The listener
-
removeServiceSelectionListener
Removes the given listener for SERVICE_SELECTION property- Specified by:
removeServiceSelectionListenerin interfaceCustomerCenterContext- Parameters:
p- The listener
-
billInfoSelectionChanged
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. This will allow PropertyListeners for that change to act accordingly. client.- Specified by:
billInfoSelectionChangedin interfaceCustomerCenterContext- Parameters:
previousBillInfo- The BillInfo that was previously selectedcurrentBillInfo- The BillInfo that is the new Selection
-
addBillInfoSelectionListener
Registers the given listener so that it receives a PropertyChangeEvent event when BillInfo Selection change Occured in BillGroup ComboBox.- Specified by:
addBillInfoSelectionListenerin interfaceCustomerCenterContext- Parameters:
p- The listener
-
removeBillInfoSelectionListener
Removes the given listener for BILL_INFO_SELECTION property- Specified by:
removeBillInfoSelectionListenerin interfaceCustomerCenterContext- Parameters:
p- The listener
-
closeAccount
Used to close the account represented by the given PModelHandle. Closing an account essentially means removing it from display in the client. A vetoable property change event will be issued giving listeners the opportunity to disallow the close. If there are no objections, the current account is closed and an update is sent via a property change event.- Specified by:
closeAccountin interfaceCustomerCenterContext- Parameters:
pm- The account to close- Throws:
PropertyVetoException
-
addAccountClosedListener
Registers the given listener so that it receives a PropertyChangeEvent event when an account closes.- Specified by:
addAccountClosedListenerin interfaceCustomerCenterContext- Parameters:
p- The listener
-
removeAccountClosedListener
Removes the PropertyChangeListener for the CLOSE_ACCOUNT property- Specified by:
removeAccountClosedListenerin interfaceCustomerCenterContext- Parameters:
p- The listener
-
addAccountClosedVetoableListener
Registers the given listener so that it receives a VetoableChangeEvent before an account closes.- Specified by:
addAccountClosedVetoableListenerin interfaceCustomerCenterContext- Parameters:
v- The VetoableChangeListener
-
removeAccountClosedVetoableListener
Removes the VetoableChangeListener for the CLOSE_ACCOUNT property- Specified by:
removeAccountClosedVetoableListenerin interfaceCustomerCenterContext- Parameters:
v- The listener
-
getAccountViewContext
Retrieves the context associated with the current account. This context provides a mechanism for navigating in the account view component.- Specified by:
getAccountViewContextin interfaceCustomerCenterContext- Returns:
- the account context for the current account
-
setOverlay
no-op- Specified by:
setOverlayin interfacePAppContext- Parameters:
comp- the component to add to the application
-
changeSize
no-op- Specified by:
changeSizein interfacePAppContext- Parameters:
comp- the component to changespaceNeeded- a constant that describes how to change the component's size
-
setStatus
Description copied from interface:PAppContextSets the string, if any, to display in the status bar.- Specified by:
setStatusin interfacePAppContext- Parameters:
status- the new status text
-
addActions
Description copied from interface:PAppContextAdds a vector ofPBASActionfrom the application menu, toolbar, or both.- Specified by:
addActionsin interfacePAppContext- Parameters:
tools- aVectorofPBASActionobjects
-
addActions
-
removeActions
Description copied from interface:PAppContextRemoves a vector ofPBASActionfrom the application menu, toolbar, or both.- Specified by:
removeActionsin interfacePAppContext- Parameters:
tools- aVectorofPBASActionobjects
-
removeActions
-
getAppName
Retrieves the name of the client- Specified by:
getAppNamein interfacePAppContext- Returns:
- the client name - "Customer Center"
-
focusOn
Description copied from interface:PAppContextEnsures that a panel is shown, then gives it focus.- Specified by:
focusOnin interfacePAppContext- Parameters:
comp- the component that gets focus
-
addContextChangedListener
Description copied from interface:PAppContextAdds aPContextChangedListener.- Specified by:
addContextChangedListenerin interfacePAppContext- Parameters:
l- aPContextChangedListener
-
removeContextChangedListener
Description copied from interface:PAppContextRemoves aPContextChangedListener.- Specified by:
removeContextChangedListenerin interfacePAppContext- Parameters:
l- aPContextChangedListener
-
fireContextChangedEvent
Description copied from interface:PAppContextFires aPContextChangedEvent.- Specified by:
fireContextChangedEventin interfacePAppContext- Parameters:
event- aPContextChangedEventevent- Returns:
- False for an
okToExitevent, true otherwise.
-
addNotify
public void addNotify()Overridden to perform server side initialization of BAS tables (BEID, Locale, etc.)- Overrides:
addNotifyin classJComponent
-
getAccountManager
Returns the active account manager instance -
getControllerClassName
Gets the class name for this class's controller- Specified by:
getControllerClassNamein interfacePComponent- Overrides:
getControllerClassNamein classPIACustomizablePanel- Returns:
- a String with the component's controller's classname
- Throws:
RemoteException- thrown for errors
-
toTop
Description copied from interface:PContextChangedListenerHandles aPContextChangedEventassociated with a change in panel position to the top.- Specified by:
toTopin interfacePContextChangedListener- Parameters:
event- the event to handle
-
wasOnTop
Description copied from interface:PContextChangedListenerHandles aPContextChangedEventassociated with a change in panel position from the top.- Specified by:
wasOnTopin interfacePContextChangedListener- Parameters:
event- the event to handle
-
appletStart
Description copied from interface:PContextChangedListenerHandles aPContextChangedEventassociated with an applet's start.- Specified by:
appletStartin interfacePContextChangedListener- Parameters:
event- the event to handle
-
appletStop
Description copied from interface:PContextChangedListenerHandles aPContextChangedEventassociated with an applet's stop.- Specified by:
appletStopin interfacePContextChangedListener- Parameters:
event- the event to handle
-
sizeChanged
Description copied from interface:PContextChangedListenerHandles aPContextChangedEventassociated with a change in panel size.- Specified by:
sizeChangedin interfacePContextChangedListener- Parameters:
event- the event to handle
-
okToExit
Description copied from interface:PContextChangedListenerHandles aPContextChangedEventassociated with an exit.- Specified by:
okToExitin interfacePContextChangedListener- Parameters:
event- the event to handle
-