Package com.portal.app.cc
Class PSubscriberPrefsPage
- All Implemented Interfaces:
PAccountViewPage,PCCPage,PWizardPage,PAppComponent,PClientComponent,PCollectDataListener,PComponent,PComponentAttribute,PViewDataChangeListener,ContainerListener,ImageObserver,MenuContainer,PropertyChangeListener,Serializable,EventListener,Accessible,ListSelectionListener,TreeSelectionListener
public class PSubscriberPrefsPage
extends PMaintenancePage
implements PWizardPage, TreeSelectionListener, ListSelectionListener, PropertyChangeListener
PPreferencesPage is used to set and delete the account level and service
level preferences both during account creation and maintenance mode.
- 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 static ResourceBundlestatic intstatic StringDomain name for active mediation referrein strings_t tablestatic intstatic intstatic intstatic intstatic intstatic intFields inherited from class com.portal.app.cc.comp.PMaintenancePage
mNeedsRefresh, mPagesCurrentCurrencyFields 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
ConstructorsConstructorDescriptionInitializes the page and finds if the page is account creation or maintenance mode -
Method Summary
Modifier and TypeMethodDescriptionvoidWhen the account creation wizard is opened by default preferences page should be disabledvoidvoidcollectData(PCollectDataEvent event) Merges the model handle of the Preferences page with Model of the account.voidBuilds the JTreeTable and assigns appropriate action listeners also builds the preferences structure when the page is visited for the first time.Returns the value associated with the preference, if prefs is from /config_subscriberpreferences_map then default is returned, else real value is returned.Retrieves the class name of this component's controller, in this case, null.intgetPreferencesCount(FList prefs) Gets the count number of preferences in /config_subscriberpreferences_map.Returns the Help ID for this wizard page.booleanhandleWizardCommitError(com.portal.app.util.CustomerError error) Called on each wizard page successively if an attempt to commit the wizard data failed.booleanhasUnsavedChanges will be invoked when Preferences page looses focus in account maintenance mode.protected booleanReturns true if it is account creation mode else sets it to false.voidWill be called when the controls goes away from Preferences page in account creation modevoidlocalCollect(int row) Collects the preferences data locally and stores them in hPrefsvoidWill be invoked when new plan is choosed from plans section during Account Creation Mode.voidrefresh()Clearing all the required hashmaps.voidsave()Save method will be invoked when save button is clicked or when the preferences are saved from a confirmatory dialog box.voidsetEnabled(boolean b) Enables or disables the preferences tab in account creation wizardvoidValidates this page.voidvalueChanged method is invoked when selection is changed in jTreeTable.voidMethods inherited from class com.portal.app.cc.comp.PMaintenancePage
dataNeedsRefresh, getDisplayedCurrency, getLabel, isValidContext, primaryToSecondary, recycle, resetUnsavedChanges, revertToPrimaryMethods 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, 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, removeNotify, 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
-
gridBagLayoutServicePrefs
-
gridBagLayoutPreference
-
preferencesPanel
-
bundle
-
serviceTreeTable
-
poidColumn
public static int poidColumn -
TYPE_STR
public static int TYPE_STR -
TYPE_INT
public static int TYPE_INT -
TYPE_ENUM
public static int TYPE_ENUM -
TYPE_DECIMAL
public static int TYPE_DECIMAL -
TYPE_TIMESTAMP
public static int TYPE_TIMESTAMP -
COL_ENABLED
public static int COL_ENABLED -
domain
Domain name for active mediation referrein strings_t table -
ccService
-
conn
-
-
Constructor Details
-
PSubscriberPrefsPage
public PSubscriberPrefsPage()Initializes the page and finds if the page is account creation or maintenance mode
-
-
Method Details
-
addNotify
public void addNotify()When the account creation wizard is opened by default preferences page should be disabled- Overrides:
addNotifyin classJComponent
-
setEnabled
public void setEnabled(boolean b) Enables or disables the preferences tab in account creation wizard- Overrides:
setEnabledin classJComponent
-
refresh
public void refresh()Clearing all the required hashmaps.- Specified by:
refreshin interfacePAccountViewPage- Overrides:
refreshin classPMaintenancePage
-
isAccountCreation
protected boolean isAccountCreation()Returns true if it is account creation mode else sets it to false.- Returns:
-
clearMaps
public void clearMaps() -
getControllerClassName
Description copied from class:PIACustomizablePanelRetrieves the class name of this component's controller, in this case, null.- Specified by:
getControllerClassNamein interfacePComponent- Overrides:
getControllerClassNamein classPIACustomizablePanel- Returns:
- A null
String. - Throws:
RemoteException- thrown for errors
-
enteringPage
public void enteringPage()Builds the JTreeTable and assigns appropriate action listeners also builds the preferences structure when the page is visited for the first time.- Specified by:
enteringPagein interfacePCCPage- Overrides:
enteringPagein classPMaintenancePage
-
getWizardHelpID
Description copied from interface:PWizardPageReturns the Help ID for this wizard page.- Specified by:
getWizardHelpIDin interfacePWizardPage
-
leavingPage
Will be called when the controls goes away from Preferences page in account creation mode- Specified by:
leavingPagein interfacePWizardPage- Throws:
PropertyVetoException
-
save
Save method will be invoked when save button is clicked or when the preferences are saved from a confirmatory dialog box.- Specified by:
savein interfacePAccountViewPage- Overrides:
savein classPMaintenancePage- Throws:
PSaveException
-
validateWizardPage
Description copied from interface:PWizardPageValidates this page. If an error is found and the user wishes to fix it right away, aPValidationExceptionwill be thrown. (The page could validate the data itself, use wizard framework convenience methods to do validation, or do some validation itself and defer some validation work to the framework.)- Specified by:
validateWizardPagein interfacePWizardPage- Throws:
PValidationException- See Also:
-
handleWizardCommitError
public boolean handleWizardCommitError(com.portal.app.util.CustomerError error) Description copied from interface:PWizardPageCalled on each wizard page successively if an attempt to commit the wizard data failed. If a page returnstruefrom this method, the method will not be called on the remaining pages. If the error "belongs" to a page (that is, the page determines that the user should be able to fix the error on this page)truewill be returned. Otherwise it will returnfalse. (The page could itself check for ownership of the error, use a wizard framework convenience method to do this on its behalf, or do some checking itself for error ownership and and defer some of the work to the framework.)- Specified by:
handleWizardCommitErrorin interfacePWizardPage- Parameters:
error- The commit-time error.- Returns:
trueif the page will handle the error; otherwisefalse.- See Also:
-
valueChanged
valueChanged method is invoked when selection is changed in jTreeTable.- Specified by:
valueChangedin interfaceListSelectionListener
-
collectData
Merges the model handle of the Preferences page with Model of the account.- Specified by:
collectDatain interfacePCollectDataListener- Specified by:
collectDatain interfacePWizardPage- Overrides:
collectDatain classPIACustomizablePanel- Parameters:
event- thePCollectDataEventevent- See Also:
-
localCollect
public void localCollect(int row) Collects the preferences data locally and stores them in hPrefs- Parameters:
row-
-
hasUnsavedChanges
public boolean hasUnsavedChanges()hasUnsavedChanges will be invoked when Preferences page looses focus in account maintenance mode.- Specified by:
hasUnsavedChangesin interfacePAccountViewPage- Overrides:
hasUnsavedChangesin classPMaintenancePage- Returns:
- true if this page contains unsaved changes; false otherwise
-
valueChanged
- Specified by:
valueChangedin interfaceTreeSelectionListener
-
getPreferencesCount
Gets the count number of preferences in /config_subscriberpreferences_map.- Parameters:
prefs-- Returns:
-
findValue
Returns the value associated with the preference, if prefs is from /config_subscriberpreferences_map then default is returned, else real value is returned.- Parameters:
prefs-- Returns:
-
propertyChange
Will be invoked when new plan is choosed from plans section during Account Creation Mode.- Specified by:
propertyChangein interfacePropertyChangeListener
-