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.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 static ResourceBundle
static int
static String
Domain name for active mediation referrein strings_t tablestatic int
static int
static int
static int
static int
static int
Fields inherited from class com.portal.app.cc.comp.PMaintenancePage
mNeedsRefresh, mPagesCurrentCurrency
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
ConstructorsConstructorDescriptionInitializes the page and finds if the page is account creation or maintenance mode -
Method Summary
Modifier and TypeMethodDescriptionvoid
When the account creation wizard is opened by default preferences page should be disabledvoid
void
collectData
(PCollectDataEvent event) Merges the model handle of the Preferences page with Model of the account.void
Builds 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.int
getPreferencesCount
(FList prefs) Gets the count number of preferences in /config_subscriberpreferences_map.Returns the Help ID for this wizard page.boolean
handleWizardCommitError
(com.portal.app.util.CustomerError error) Called on each wizard page successively if an attempt to commit the wizard data failed.boolean
hasUnsavedChanges will be invoked when Preferences page looses focus in account maintenance mode.protected boolean
Returns true if it is account creation mode else sets it to false.void
Will be called when the controls goes away from Preferences page in account creation modevoid
localCollect
(int row) Collects the preferences data locally and stores them in hPrefsvoid
Will be invoked when new plan is choosed from plans section during Account Creation Mode.void
refresh()
Clearing all the required hashmaps.void
save()
Save method will be invoked when save button is clicked or when the preferences are saved from a confirmatory dialog box.void
setEnabled
(boolean b) Enables or disables the preferences tab in account creation wizardvoid
Validates this page.void
valueChanged method is invoked when selection is changed in jTreeTable.void
Methods inherited from class com.portal.app.cc.comp.PMaintenancePage
dataNeedsRefresh, getDisplayedCurrency, getLabel, isValidContext, primaryToSecondary, recycle, resetUnsavedChanges, revertToPrimary
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, 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, 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, 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
-
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:
addNotify
in classJComponent
-
setEnabled
public void setEnabled(boolean b) Enables or disables the preferences tab in account creation wizard- Overrides:
setEnabled
in classJComponent
-
refresh
public void refresh()Clearing all the required hashmaps.- Specified by:
refresh
in interfacePAccountViewPage
- Overrides:
refresh
in 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:PIACustomizablePanel
Retrieves the class name of this component's controller, in this case, null.- Specified by:
getControllerClassName
in interfacePComponent
- Overrides:
getControllerClassName
in 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:
enteringPage
in interfacePCCPage
- Overrides:
enteringPage
in classPMaintenancePage
-
getWizardHelpID
Description copied from interface:PWizardPage
Returns the Help ID for this wizard page.- Specified by:
getWizardHelpID
in interfacePWizardPage
-
leavingPage
Will be called when the controls goes away from Preferences page in account creation mode- Specified by:
leavingPage
in 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:
save
in interfacePAccountViewPage
- Overrides:
save
in classPMaintenancePage
- Throws:
PSaveException
-
validateWizardPage
Description copied from interface:PWizardPage
Validates this page. If an error is found and the user wishes to fix it right away, aPValidationException
will 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:
validateWizardPage
in interfacePWizardPage
- Throws:
PValidationException
- See Also:
-
handleWizardCommitError
public boolean handleWizardCommitError(com.portal.app.util.CustomerError error) Description copied from interface:PWizardPage
Called on each wizard page successively if an attempt to commit the wizard data failed. If a page returnstrue
from 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)true
will 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:
handleWizardCommitError
in interfacePWizardPage
- Parameters:
error
- The commit-time error.- Returns:
true
if the page will handle the error; otherwisefalse
.- See Also:
-
valueChanged
valueChanged method is invoked when selection is changed in jTreeTable.- Specified by:
valueChanged
in interfaceListSelectionListener
-
collectData
Merges the model handle of the Preferences page with Model of the account.- Specified by:
collectData
in interfacePCollectDataListener
- Specified by:
collectData
in interfacePWizardPage
- Overrides:
collectData
in classPIACustomizablePanel
- Parameters:
event
- thePCollectDataEvent
event- 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:
hasUnsavedChanges
in interfacePAccountViewPage
- Overrides:
hasUnsavedChanges
in classPMaintenancePage
- Returns:
- true if this page contains unsaved changes; false otherwise
-
valueChanged
- Specified by:
valueChanged
in 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:
propertyChange
in interfacePropertyChangeListener
-