Package com.portal.app.cc
Class PTechDetails
- All Implemented Interfaces:
PAccountViewPage,PCCPage,DeferralChangeListener,HoldingsChangeListener,ServiceChangeListener,StatusChangeListener,PAppComponent,PClientComponent,PCollectDataListener,PComponent,PComponentAttribute,PViewDataChangeListener,ActionListener,ContainerListener,MouseListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ListSelectionListener
- Direct Known Subclasses:
PSubscriptionServicePage
public class PTechDetails
extends PMaintenancePage
implements ListSelectionListener, ActionListener, MouseListener, HoldingsChangeListener, StatusChangeListener, ServiceChangeListener, DeferralChangeListener
The top-level container for service and device data display.
Contains a table listing the services and devices owned by
the given account, and a grouping of panels displaying the
extended service/device data for each object. As services/devices
are selected in the table, the associated detail data is
displayed in a separate panel below the table.
- Version:
- %version: 22 % %date_modified: Tue May 28 11:56:49 2002 %
- Author:
- kapono
- 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 PChangeStatusPageprotected ServiceSearchDialogprotected PExtendedServicePanelprotected JPanelprotected JLabelprotected booleanprotected intstatic final Stringprotected static final Stringprotected intprotected JRadioButtonMenuItemprotected JRadioButtonMenuItemFields 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
ConstructorsConstructorDescriptionCreates a new technical details panel, displaying a tree-table of service and device relationships. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when an item is selected from the Actions menu.protected voidaddAdditionalActions(PAddOnAction[] actions) Called to append actions to the end of the service page's Action menu for bill display.voidvoidEvent handler for DeferralChangeEvent.Retrieves the server-side component for this pagegetDataAt(int row) Retrieves the data for the given rowGetting Device details invalid input: '&' Member Services of a Subscription Service.Getting Device from ServiceGetting Service from Deviceprotected JTreeTablevoidEvent handler for table HoldingsChangeEvent.protected voidjbInit()voidThis method process the Input Flist and putting in to HashMap service POID is a key and Vector is value.voidloadServiceDeviceData(PModelHandle pmhSelectedServices) This method loads the devices data in case of threshold exceeded.voidIn service view, if Status column is selected or Deferred Actions column is selected and there is at lease one deferred action, then control will be redirected to the corresponding page.voidvoidvoidvoidprotected voidvoidrecycle()Cleans up the table and prepares it for reuse.voidrefresh()Called when the page should be immediately refreshed - typically as a result of the Reset action being invoked by the user.voidvoidsave()Saves the contents of this page.voidCalled when data for a service changesvoidSelects a default row (the 1st row) if there is at least one row.voidsetModelHandle(PModelHandle data) Establishes the new data to display.voidsetPageView(String page_view) specifically called from SubscriptionService Page to make some of the menuitems invisibleprotected voidvoidEvent handler for StatusChagneEvent.voidUsed to disconnect the controller from the component for all child widgets contained within this panel.voidCalled when the row selection changes in the tree-table.Methods inherited from class com.portal.app.cc.comp.PMaintenancePage
dataNeedsRefresh, enteringPage, getDisplayedCurrency, getLabel, hasUnsavedChanges, isValidContext, primaryToSecondary, resetUnsavedChanges, revertToPrimaryMethods inherited from class com.portal.bas.comp.PIACustomizablePanel
clear, collectData, 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, setRequired, setResourceName, togglePrimaryToSecondary, 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
-
mIsUserToBeNotified
protected boolean mIsUserToBeNotified -
mUserSelectedRow
protected int mUserSelectedRow -
dlgServiceSearch
-
changeStatusPage
-
SUBSCRIPTION_PAGE_VIEW
- See Also:
-
VIEW_TYPE_KEY
- See Also:
-
viewByServMI
-
viewByDevMI
-
btnServiceSearch
-
lblThresholdExceeded
-
fillerPanel
-
viewBy
protected int viewBy -
extraInfo
-
serviseDeviceHash
-
deviceServiceHash
-
-
Constructor Details
-
PTechDetails
public PTechDetails()Creates a new technical details panel, displaying a tree-table of service and device relationships.
-
-
Method Details
-
addNotify
public void addNotify()- Overrides:
addNotifyin classJComponent
-
removeNotify
public void removeNotify()- Overrides:
removeNotifyin classJComponent
-
setModelHandle
Establishes the new data to display.- Specified by:
setModelHandlein interfacePComponent- Overrides:
setModelHandlein classPIACustomizablePanel- Parameters:
data- the newPModelHandlefrom which to extract informationaccountModelHandle- account model handle.- Throws:
RemoteException- thrown for errors
-
setDefaultSelection
public void setDefaultSelection()Selects a default row (the 1st row) if there is at least one row. -
refresh
public void refresh()Description copied from class:PMaintenancePageCalled when the page should be immediately refreshed - typically as a result of the Reset action being invoked by the user.- Specified by:
refreshin interfacePAccountViewPage- Overrides:
refreshin classPMaintenancePage
-
holdingsChange
Event handler for table HoldingsChangeEvent. Called when an event is sent out that indicates a purchase of a deal/service has been made.- Specified by:
holdingsChangein interfaceHoldingsChangeListener- Parameters:
e- a HoldingsChangeEvent encapsulating the event information
-
deferralChange
Event handler for DeferralChangeEvent.- Specified by:
deferralChangein interfaceDeferralChangeListener- Parameters:
e- a DeferralChangeEvent
-
statusChange
Event handler for StatusChagneEvent.- Specified by:
statusChangein interfaceStatusChangeListener- Parameters:
e- a StatusChangeEvent
-
serviceChange
Called when data for a service changes- Specified by:
serviceChangein interfaceServiceChangeListener- Parameters:
e-
-
actionPerformed
Called when an item is selected from the Actions menu.- Specified by:
actionPerformedin interfaceActionListener- Parameters:
e- the action event.
-
valueChanged
Called when the row selection changes in the tree-table.- Specified by:
valueChangedin interfaceListSelectionListener- Parameters:
e- the list selection event.
-
mouseClicked
In service view, if Status column is selected or Deferred Actions column is selected and there is at lease one deferred action, then control will be redirected to the corresponding page.- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
e- the mouse event.
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
save
Saves the contents of this page.- Specified by:
savein interfacePAccountViewPage- Overrides:
savein classPMaintenancePage- Throws:
PSaveException
-
getControllerClassName
Retrieves the server-side component for this page- Specified by:
getControllerClassNamein interfacePComponent- Overrides:
getControllerClassNamein classPIACustomizablePanel- Returns:
- The controller for this page
- Throws:
RemoteException- thrown for errors
-
recycle
public void recycle()Cleans up the table and prepares it for reuse.- Specified by:
recyclein interfacePCCPage- Overrides:
recyclein classPMaintenancePage
-
unregister
Description copied from class:PIACustomizablePanelUsed to disconnect the controller from the component for all child widgets contained within this panel.- Specified by:
unregisterin interfacePClientComponent- Overrides:
unregisterin classPIACustomizablePanel- Throws:
RemoteException
-
getDataAt
Retrieves the data for the given row- Parameters:
row- The row to retrieve data for- Returns:
- The currently selected service or device model handle
-
addAdditionalActions
Called to append actions to the end of the service page's Action menu for bill display.
In most cases you can retrieve the component the action class is monitoring (getServiceDisplay()) and pass it in to the PAddOnAction constructor. This particular page however defers the creation of the JTreeTable until its really needed so it will be null initially. For this page only, the PAddOnAction instances should be created using the null arg constructor. This page will be responsible for passing in the JTreeTable instance once it is created.public class MyTechPage extends PTechDetails { public MyTechPage() { PAddOnAction[] actions = new PAddOnAction[2]; actions[0] = new MyTechActionA(); actions[1] = new MyTechActionB(); addAdditionalActions(actions); } } class MyTechActionA extends PAddOnAction { public MyTechActionA(PTechDetails tt) { super(tt); } public String getMenuLabel() { return "Tech Action A"; } }- Parameters:
actions- The array of PAddOnAction instances to append
-
getServiceDisplay
- Returns:
- The component used to display services and devices
-
purchaseService
-
showServiceHistory
-
setPageView
specifically called from SubscriptionService Page to make some of the menuitems invisible- Parameters:
page_view- type of page (e.g. SUBSCRIPTION_PAGE_VIEW)
-
jbInit
- Throws:
Exception
-
loadServiceDeviceData
public void loadServiceDeviceData()This method process the Input Flist and putting in to HashMap service POID is a key and Vector is value. Device values are added in to the Vector -
loadServiceDeviceData
This method loads the devices data in case of threshold exceeded.- Parameters:
pmhSelectedServices-
-
getDevandMembersvcsFromServ
Getting Device details invalid input: '&' Member Services of a Subscription Service.- Parameters:
pm- PModelHandle of the Service Poid- Returns:
- PModelHandle[]
-
getDevFromServ
Getting Device from Service- Parameters:
pm- PModelHandle- Returns:
- PModelHandle[]
-
getServFromDev
Getting Service from Device- Parameters:
pm- PModelHandle- Returns:
- PModelHandle[]
-