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.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
FieldsFields 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 page controls with default valuesvoid
collectData
(PCollectDataEvent event) interface called when wizard try to collect data from each wizard pagevoid
interface Get called whenever this page is getting the focus.Returns the controllerprotected PIAExtendedServicesBase[]
Retrieve the device panels created by this pageprotected PIAExtendedServicesBase
Retrieves 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.boolean
handleWizardCommitError
(com.portal.app.util.CustomerError error) Handles commit-time errors.void
interface Get called when losing the focus Shares out info of interest to other pagesprotected void
Called after doing local validation in this class, this method passes validation off to the wizard's validation manager.void
void
recycle()
Reinitializes the page.void
void
Event listener for table selection changes.void
setEnabled
(boolean b) void
setModelHandle
(PModelHandle data) Establishes thePModelHandle
for this component and all its descendants.void
sets ModelHandle for the Service Pageprotected void
Used to make the specified panel visible - this method also updates the table selection.protected boolean
Determines if this page calls hasValidData() on the current service panel as the user switches between rows in the upper table.void
Validates 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, 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, 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
-
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:
enteringPage
in interfacePCCPage
-
setServiceModelHandle
public void setServiceModelHandle()sets ModelHandle for the Service Page -
getControllerClassName
Returns the controller- Specified by:
getControllerClassName
in interfacePComponent
- Overrides:
getControllerClassName
in classPIACustomizablePanel
- Returns:
- A null
String
.
-
leavingPage
interface Get called when losing the focus Shares out info of interest to other pages- Specified by:
leavingPage
in interfacePWizardPage
- Throws:
PropertyVetoException
-
collectData
interface called when wizard try to collect data from each wizard page- Specified by:
collectData
in interfacePCollectDataListener
- Specified by:
collectData
in interfacePWizardPage
- Overrides:
collectData
in 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:
getWizardHelpID
in interfacePWizardPage
- Returns:
- The ID associated with the
helpid.acwizard.servicespage
tag or thehelpid.powizard.servicespage
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:
-
selectionChanged
Event listener for table selection changes. Notifies the extended service container that a service was selected in the table.- Specified by:
selectionChanged
in interfacePIASelectionListener
- Parameters:
event
-
-
setModelHandle
Description copied from class:PIACustomizablePanel
Establishes thePModelHandle
for this component and all its descendants.- Specified by:
setModelHandle
in interfacePComponent
- Overrides:
setModelHandle
in classPIACustomizablePanel
- Parameters:
data
- the newPModelHandle
from which to extract information- Throws:
RemoteException
- thrown for errors
-
actionPerformed
Event handling for the controls on the panel- Specified by:
actionPerformed
in interfaceActionListener
-
addNotify
public void addNotify()Initializes the page controls with default values- Overrides:
addNotify
in classJComponent
-
removeNotify
public void removeNotify()- Overrides:
removeNotify
in classJComponent
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
setEnabled
public void setEnabled(boolean b) - Overrides:
setEnabled
in 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
-