Package com.portal.app.cc
Class PPurchasePanel
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.PPurchasePanel
- All Implemented Interfaces:
PCCPage
,PWizardPage
,PChangeOptionsListener
,PAppComponent
,PClientComponent
,PCollectDataListener
,PComponent
,PComponentAttribute
,PViewDataChangeListener
,ActionListener
,ContainerListener
,ItemListener
,ImageObserver
,MenuContainer
,PropertyChangeListener
,VetoableChangeListener
,Serializable
,EventListener
,Accessible
,ListSelectionListener
public class PPurchasePanel
extends PIACustomizablePanel
implements PWizardPage, ActionListener, ListSelectionListener, PropertyChangeListener, ItemListener, PChangeOptionsListener, VetoableChangeListener
First page in Purchase Offering wizard for purchasing
services and deals. It also being used as a plan page
during account creation.
- Version:
- %version: 36 % %date_modified: Thu Jun 27 09:29:22 2002 %, %version: 37 % %date_modified: Mon July 26 11:06:00 2004 %
- Author:
- kowang
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JButton
protected JCheckBox
protected ServiceSearchDialog
protected JLabel
protected PIADateField
protected PServicesDealsProductsTable
protected boolean
Fields inherited from class com.portal.bas.comp.PIACustomizablePanel
isTracking, mIAList, mImpl, unregList
Fields inherited from class com.portal.pfc.ui.ImagePanel
IMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImage
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent event) Event handling for the controls on the panelvoid
Initializes the panel controls with default valuesprotected void
Used to clear the contents of the plan list widgetvoid
collectData
(PCollectDataEvent event) CollectDataListener override.void
Setting the page into its initial stateGets the class name for this class's controllergetLabel()
Returns the label for this pageReturns the help ID for this page during account creation and purchase offering.boolean
handleWizardCommitError
(com.portal.app.util.CustomerError error) Handles commit-time errors.boolean
isBestDeal
(String dealName) void
void
Shares out info of interest to other pagesvoid
optionsChanged
(POptionChangeEvent event) void
void
recycle()
Reinitializes the panel.protected void
Used to refetch the contents of the plan list widget from Portal.void
void
Validates this page.void
ListSelectionEvent handlingvoid
This will be called when CSR clicks on Finish button.Methods inherited from class com.portal.bas.comp.PIACustomizablePanel
clear, 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
Methods inherited from class com.portal.pfc.ui.ImagePanel
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcon
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods 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, 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
Methods 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, validateTree
Methods 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
-
Field Details
-
planTable
-
btnServiceSearch
-
lblExceedsMsg
-
chBackDate
-
mBackDate
-
dlgServiceSearch
-
showLabelExceeds
protected boolean showLabelExceeds
-
-
Constructor Details
-
PPurchasePanel
public PPurchasePanel()Creates a new purchase panel
-
-
Method Details
-
enteringPage
public void enteringPage()Setting the page into its initial state- Specified by:
enteringPage
in interfacePCCPage
-
leavingPage
Shares out info of interest to other pages- Specified by:
leavingPage
in interfacePWizardPage
- Throws:
PropertyVetoException
-
collectData
CollectDataListener override.- Specified by:
collectData
in interfacePCollectDataListener
- Specified by:
collectData
in interfacePWizardPage
- Overrides:
collectData
in classPIACustomizablePanel
- Parameters:
event
- The marshal data event- See Also:
-
getLabel
Returns the label for this page -
recycle
public void recycle()Reinitializes the panel. -
getWizardHelpID
Returns the help ID for this page during account creation and purchase offering.- Specified by:
getWizardHelpID
in interfacePWizardPage
- Returns:
- The ID associated with the
helpid.acwizard.planspage
tag or thehelpid.powizard.planspage
tag in the properties file.
-
validateWizardPage
Validates this page.- Specified by:
validateWizardPage
in interfacePWizardPage
- Throws:
PValidationException
- See Also:
-
handleWizardCommitError
public boolean handleWizardCommitError(com.portal.app.util.CustomerError error) Handles commit-time errors.- Specified by:
handleWizardCommitError
in interfacePWizardPage
- Parameters:
error
- The error.- Returns:
true
if the page will handle the error; otherwisefalse
.- See Also:
-
getControllerClassName
Gets the class name for this class's controller- Specified by:
getControllerClassName
in interfacePComponent
- Overrides:
getControllerClassName
in classPIACustomizablePanel
- Returns:
- a String with the component's controller's classname
- Throws:
RemoteException
- thrown for errors
-
actionPerformed
Event handling for the controls on the panel- Specified by:
actionPerformed
in interfaceActionListener
-
valueChanged
ListSelectionEvent handling- Specified by:
valueChanged
in interfaceListSelectionListener
- Parameters:
event
- The ListSelectionEvent
-
addNotify
public void addNotify()Initializes the panel controls with default values- Overrides:
addNotify
in classJComponent
-
removeNotify
public void removeNotify()- Overrides:
removeNotify
in classJComponent
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
optionsChanged
- Specified by:
optionsChanged
in interfacePChangeOptionsListener
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-
clearPlans
protected void clearPlans()Used to clear the contents of the plan list widget -
refetchPlans
protected void refetchPlans()Used to refetch the contents of the plan list widget from Portal. The currently specified plan "key" will be used. -
vetoableChange
This will be called when CSR clicks on Finish button. This implementation is meaningfull if Customization is manadatory and CSR did not visit Product Customization page. A dialog box is displayed in the vetoableChange() method of PCuctomizeProductsPanel. In that case the vetoListenerFired flag is used elsewhere in this class to decide whether or not to display a dilaog box with a warning message about Deal Customization to be done.- Specified by:
vetoableChange
in interfaceVetoableChangeListener
- Throws:
PropertyVetoException
-
isBestDeal
-