Package com.portal.app.cc
Class PNewServicePage
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.PNewServicePage
- All Implemented Interfaces:
PCCPage,PWizardPage,PAppComponent,PClientComponent,PCollectDataListener,PComponent,PComponentAttribute,PIASelectionListener,PViewDataChangeListener,ActionListener,ContainerListener,ImageObserver,MenuContainer,PropertyChangeListener,Serializable,EventListener,Accessible
public class PNewServicePage
extends PIACustomizablePanel
implements ActionListener, PWizardPage, PIASelectionListener, PropertyChangeListener
Service page for Purchase Offering wizard and account creation wizard.
- Version:
- %version: 14.1.1 % %date_modified: Mon Nov 05 09:06:21 2001 %
- Author:
- dachywan
- 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
FieldsFields 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 page controls with default valuesvoidcollectData(PCollectDataEvent event) interface called when wizard try to collect data from each wizard pagevoidinterface Get called whenever this page is getting the focus.Returns the controllerprotected PIAExtendedServicesBase[]Retrieve the device panels created by this pageprotected PIAExtendedServicesBaseRetrieves the currently active service/device panel.getLabel()interface Returns the label for this pageprotected PIAExtendedServicesBase[]Retrieve the extended service panels created by 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.voidinterface Get called when losing the focus Shares out info of interest to other pagesprotected voidCalled after doing local validation in this class, this method passes validation off to the wizard's validation manager.voidvoidrecycle()Reinitializes the page.voidvoidEvent listener for table selection changes.voidsetEnabled(boolean b) voidsetModelHandle(PModelHandle data) Establishes thePModelHandlefor this component and all its descendants.voidsets ModelHandle for the Service Pageprotected voidUsed to make the specified panel visible - this method also updates the table selection.protected booleanDetermines if this page calls hasValidData() on the current service panel as the user switches between rows in the upper table.voidValidates this page.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, 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, 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
-
mtNewService
-
-
Constructor Details
-
PNewServicePage
public PNewServicePage()Creates a new PNewServicePage
-
-
Method Details
-
enteringPage
public void enteringPage()interface Get called whenever this page is getting the focus.- Specified by:
enteringPagein interfacePCCPage
-
setServiceModelHandle
public void setServiceModelHandle()sets ModelHandle for the Service Page -
getControllerClassName
Returns the controller- Specified by:
getControllerClassNamein interfacePComponent- Overrides:
getControllerClassNamein classPIACustomizablePanel- Returns:
- A null
String.
-
leavingPage
interface Get called when losing the focus Shares out info of interest to other pages- Specified by:
leavingPagein interfacePWizardPage- Throws:
PropertyVetoException
-
collectData
interface called when wizard try to collect data from each wizard page- Specified by:
collectDatain interfacePCollectDataListener- Specified by:
collectDatain interfacePWizardPage- Overrides:
collectDatain classPIACustomizablePanel- Parameters:
event- The marshal data event- See Also:
-
getLabel
interface Returns the label for this page -
recycle
public void recycle()Reinitializes the page. -
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.servicespagetag or thehelpid.powizard.servicespagetag 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:
-
selectionChanged
Event listener for table selection changes. Notifies the extended service container that a service was selected in the table.- Specified by:
selectionChangedin interfacePIASelectionListener- Parameters:
event-
-
setModelHandle
Description copied from class:PIACustomizablePanelEstablishes thePModelHandlefor this component and all its descendants.- Specified by:
setModelHandlein interfacePComponent- Overrides:
setModelHandlein classPIACustomizablePanel- Parameters:
data- the newPModelHandlefrom which to extract information- Throws:
RemoteException- thrown for errors
-
actionPerformed
Event handling for the controls on the panel- Specified by:
actionPerformedin interfaceActionListener
-
addNotify
public void addNotify()Initializes the page controls with default values- Overrides:
addNotifyin classJComponent
-
removeNotify
public void removeNotify()- Overrides:
removeNotifyin classJComponent
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
setEnabled
public void setEnabled(boolean b) - Overrides:
setEnabledin classJComponent
-
setVisibleDetailPanel
Used to make the specified panel visible - this method also updates the table selection. This might be useful if you're doing your own error handling or validation and you need to make a specific panel visible to the user.- Parameters:
panel- The panel you to make visible
-
passValidationToWizard
Called after doing local validation in this class, this method passes validation off to the wizard's validation manager. Subclasses may choose to override this method if they want to perform their own validation handling. This is a convenient way to get around the default 'validation failed' dialog displayed by the wizard framework, especially if you don't want the user to leave the page. You might want to display your own message indicating the error must be fixed, and throw a PValidationException.- Parameters:
mgr-- Throws:
PValidationException
-
getDisplayedDetailPanel
Retrieves the currently active service/device panel.- Returns:
- The currently active service/device panel, or null if none is selected
-
getServiceDetailPanels
Retrieve the extended service panels created by this page- Returns:
- An arrary of extended service panels corresponding to the services listed in the upper table.
-
getDeviceDetailPanels
Retrieve the device panels created by this page- Returns:
-
validateOnRowChange
protected boolean validateOnRowChange()Determines if this page calls hasValidData() on the current service panel as the user switches between rows in the upper table.- Returns:
- true by default; subclass to override
-