public class PCustomerCenterInternals extends PIACustomizablePanel implements CustomerCenterContext, PContextChangedListener
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
BILL_INFO_SELECTION, CLOSE_ACCOUNT, CURRENT_ACCOUNT, CURRENT_BRAND, SERVICE_SELECTION
LESSSPACE, MAXIMIZE, MINIMIZE, MORESPACE, NORMALIZE
ABORT, 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, 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, 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
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 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 CustomerCenterContext
public PSaveManager getSaveManager()
getSaveManager
in interface CustomerCenterContext
public PBrandManager getBrandManager()
getBrandManager
in interface CustomerCenterContext
public PrintManager getPrintManager()
getPrintManager
in interface CustomerCenterContext
public PModelHandle getCSRNameModelHandle()
CustomerCenterContext
getCSRNameModelHandle
in interface CustomerCenterContext
public void showDefault()
CustomerCenterContext
showDefault
in interface CustomerCenterContext
public void setWizardContext(PAppContext ctx)
setWizardContext
in interface CustomerCenterContext
ctx
- The wizard contextpublic PAppContext getWizardContext()
getWizardContext
in interface CustomerCenterContext
public void setCurrentAccount(PModelHandle pm) throws PropertyVetoException
setCurrentAccount
in interface CustomerCenterContext
The
- model handle for the new accountPropertyVetoException
public PAccountInfo getCurrentAccountInfo()
getCurrentAccountInfo
in interface CustomerCenterContext
public PAccountInfo getLastActiveOpenAccount()
getLastActiveOpenAccount
in interface CustomerCenterContext
public void addCurrentAccountListener(PropertyChangeListener p)
addCurrentAccountListener
in interface CustomerCenterContext
p
- The listenerpublic void removeCurrentAccountListener(PropertyChangeListener p)
removeCurrentAccountListener
in interface CustomerCenterContext
p
- The listenerpublic void addCurrentAccountVetoableListener(VetoableChangeListener v)
addCurrentAccountVetoableListener
in interface CustomerCenterContext
v
- The VetoableChangeListenerpublic void removeCurrentAccountVetoableListener(VetoableChangeListener v)
removeCurrentAccountVetoableListener
in interface CustomerCenterContext
v
- The listenerpublic void serviceSelectionChanged(PModelHandle pm) throws PropertyVetoException
serviceSelectionChanged
in interface CustomerCenterContext
pm
- The Service that currently selectedPropertyVetoException
public void addServiceSelectionListener(PropertyChangeListener p)
addServiceSelectionListener
in interface CustomerCenterContext
p
- The listenerpublic void removeServiceSelectionListener(PropertyChangeListener p)
removeServiceSelectionListener
in interface CustomerCenterContext
p
- The listenerpublic void billInfoSelectionChanged(BillInfoChangeEvent bie)
billInfoSelectionChanged
in interface CustomerCenterContext
previousBillInfo
- The BillInfo that was previously selectedcurrentBillInfo
- The BillInfo that is the new Selectionpublic void addBillInfoSelectionListener(PropertyChangeListener p)
addBillInfoSelectionListener
in interface CustomerCenterContext
p
- The listenerpublic void removeBillInfoSelectionListener(PropertyChangeListener p)
removeBillInfoSelectionListener
in interface CustomerCenterContext
p
- The listenerpublic void closeAccount(PModelHandle pm) throws PropertyVetoException
closeAccount
in interface CustomerCenterContext
pm
- The account to closePropertyVetoException
public void addAccountClosedListener(PropertyChangeListener p)
addAccountClosedListener
in interface CustomerCenterContext
p
- The listenerpublic void removeAccountClosedListener(PropertyChangeListener p)
removeAccountClosedListener
in interface CustomerCenterContext
p
- The listenerpublic void addAccountClosedVetoableListener(VetoableChangeListener v)
addAccountClosedVetoableListener
in interface CustomerCenterContext
v
- The VetoableChangeListenerpublic void removeAccountClosedVetoableListener(VetoableChangeListener v)
removeAccountClosedVetoableListener
in interface CustomerCenterContext
v
- The listenerpublic PAccountViewContext getAccountViewContext()
getAccountViewContext
in interface CustomerCenterContext
public void setOverlay(Component comp)
setOverlay
in interface PAppContext
comp
- the component to add to the applicationpublic void changeSize(Component comp, int spaceNeeded)
changeSize
in interface PAppContext
comp
- the component to changespaceNeeded
- a constant that describes how to change the
component's sizepublic void setStatus(String status)
PAppContext
setStatus
in interface PAppContext
status
- the new status textpublic void addActions(Vector tools)
PAppContext
PBASAction
from the application menu, toolbar, or both.addActions
in interface PAppContext
tools
- a Vector
of PBASAction
objectspublic void removeActions(Vector tools)
PAppContext
PBASAction
from the application menu, toolbar, or both.removeActions
in interface PAppContext
tools
- a Vector
of PBASAction
objectspublic String getAppName()
getAppName
in interface PAppContext
public void focusOn(Component comp)
PAppContext
focusOn
in interface PAppContext
comp
- the component that gets focuspublic void addContextChangedListener(PContextChangedListener l)
PAppContext
PContextChangedListener
.addContextChangedListener
in interface PAppContext
l
- a PContextChangedListener
public void removeContextChangedListener(PContextChangedListener l)
PAppContext
PContextChangedListener
.removeContextChangedListener
in interface PAppContext
l
- a PContextChangedListener
public boolean fireContextChangedEvent(PContextChangedEvent event)
PAppContext
PContextChangedEvent
.fireContextChangedEvent
in interface PAppContext
event
- a PContextChangedEvent
eventokToExit
event, true otherwise.public void addNotify()
addNotify
in class JComponent
public PActiveAccountManager getAccountManager()
public PAccountNavigator getNavigatorComponent()
public String getControllerClassName() throws RemoteException
getControllerClassName
in interface PComponent
getControllerClassName
in class PIACustomizablePanel
RemoteException
- thrown for errorspublic void toTop(PContextChangedEvent event)
PContextChangedListener
PContextChangedEvent
associated with a change in panel
position to the top.toTop
in interface PContextChangedListener
event
- the event to handlepublic void wasOnTop(PContextChangedEvent event)
PContextChangedListener
PContextChangedEvent
associated with a change in
panel position from the top.wasOnTop
in interface PContextChangedListener
event
- the event to handlepublic void appletStart(PContextChangedEvent event)
PContextChangedListener
PContextChangedEvent
associated with an applet's start.appletStart
in interface PContextChangedListener
event
- the event to handlepublic void appletStop(PContextChangedEvent event)
PContextChangedListener
PContextChangedEvent
associated with an applet's stop.appletStop
in interface PContextChangedListener
event
- the event to handlepublic void sizeChanged(PContextChangedEvent event)
PContextChangedListener
PContextChangedEvent
associated with a change in panel size.sizeChanged
in interface PContextChangedListener
event
- the event to handlepublic boolean okToExit(PContextChangedEvent event)
PContextChangedListener
PContextChangedEvent
associated with an exit.okToExit
in interface PContextChangedListener
event
- the event to handleCopyright © 2003, 2023, Oracle and/or its affiliates.