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.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
FieldsModifier and TypeFieldDescriptionprotected JButtonprotected JCheckBoxprotected ServiceSearchDialogprotected JLabelprotected PIADateFieldprotected PServicesDealsProductsTableprotected booleanFields 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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Event handling for the controls on the panelvoidInitializes the panel controls with default valuesprotected voidUsed to clear the contents of the plan list widgetvoidcollectData(PCollectDataEvent event) CollectDataListener override.voidSetting 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.booleanhandleWizardCommitError(com.portal.app.util.CustomerError error) Handles commit-time errors.booleanisBestDeal(String dealName) voidvoidShares out info of interest to other pagesvoidoptionsChanged(POptionChangeEvent event) voidvoidrecycle()Reinitializes the panel.protected voidUsed to refetch the contents of the plan list widget from Portal.voidvoidValidates this page.voidListSelectionEvent handlingvoidThis 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, 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, 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
-
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:
enteringPagein interfacePCCPage
-
leavingPage
Shares out info of interest to other pages- Specified by:
leavingPagein interfacePWizardPage- Throws:
PropertyVetoException
-
collectData
CollectDataListener override.- Specified by:
collectDatain interfacePCollectDataListener- Specified by:
collectDatain interfacePWizardPage- Overrides:
collectDatain 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:
getWizardHelpIDin interfacePWizardPage- Returns:
- The ID associated with the
helpid.acwizard.planspagetag or thehelpid.powizard.planspagetag in the properties file.
-
validateWizardPage
Validates this page.- Specified by:
validateWizardPagein interfacePWizardPage- Throws:
PValidationException- See Also:
-
handleWizardCommitError
public boolean handleWizardCommitError(com.portal.app.util.CustomerError error) Handles commit-time errors.- Specified by:
handleWizardCommitErrorin interfacePWizardPage- Parameters:
error- The error.- Returns:
trueif the page will handle the error; otherwisefalse.- See Also:
-
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
-
actionPerformed
Event handling for the controls on the panel- Specified by:
actionPerformedin interfaceActionListener
-
valueChanged
ListSelectionEvent handling- Specified by:
valueChangedin interfaceListSelectionListener- Parameters:
event- The ListSelectionEvent
-
addNotify
public void addNotify()Initializes the panel controls with default values- Overrides:
addNotifyin classJComponent
-
removeNotify
public void removeNotify()- Overrides:
removeNotifyin classJComponent
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
optionsChanged
- Specified by:
optionsChangedin interfacePChangeOptionsListener
-
itemStateChanged
- Specified by:
itemStateChangedin 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:
vetoableChangein interfaceVetoableChangeListener- Throws:
PropertyVetoException
-
isBestDeal
-