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.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 JButton
protected PChangeStatusPage
protected ServiceSearchDialog
protected PExtendedServicePanel
protected JPanel
protected JLabel
protected boolean
protected int
static final String
protected static final String
protected int
protected JRadioButtonMenuItem
protected JRadioButtonMenuItem
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
ConstructorsConstructorDescriptionCreates a new technical details panel, displaying a tree-table of service and device relationships. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when an item is selected from the Actions menu.protected void
addAdditionalActions
(PAddOnAction[] actions) Called to append actions to the end of the service page's Action menu for bill display.void
void
Event 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 JTreeTable
void
Event handler for table HoldingsChangeEvent.protected void
jbInit()
void
This method process the Input Flist and putting in to HashMap service POID is a key and Vector is value.void
loadServiceDeviceData
(PModelHandle pmhSelectedServices) This method loads the devices data in case of threshold exceeded.void
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.void
void
void
void
protected void
void
recycle()
Cleans up the table and prepares it for reuse.void
refresh()
Called when the page should be immediately refreshed - typically as a result of the Reset action being invoked by the user.void
void
save()
Saves the contents of this page.void
Called when data for a service changesvoid
Selects a default row (the 1st row) if there is at least one row.void
setModelHandle
(PModelHandle data) Establishes the new data to display.void
setPageView
(String page_view) specifically called from SubscriptionService Page to make some of the menuitems invisibleprotected void
void
Event handler for StatusChagneEvent.void
Used to disconnect the controller from the component for all child widgets contained within this panel.void
Called 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, revertToPrimary
Methods 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, 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, setEnabled, 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
-
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:
addNotify
in classJComponent
-
removeNotify
public void removeNotify()- Overrides:
removeNotify
in classJComponent
-
setModelHandle
Establishes the new data to display.- Specified by:
setModelHandle
in interfacePComponent
- Overrides:
setModelHandle
in classPIACustomizablePanel
- Parameters:
data
- the newPModelHandle
from 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:PMaintenancePage
Called when the page should be immediately refreshed - typically as a result of the Reset action being invoked by the user.- Specified by:
refresh
in interfacePAccountViewPage
- Overrides:
refresh
in 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:
holdingsChange
in interfaceHoldingsChangeListener
- Parameters:
e
- a HoldingsChangeEvent encapsulating the event information
-
deferralChange
Event handler for DeferralChangeEvent.- Specified by:
deferralChange
in interfaceDeferralChangeListener
- Parameters:
e
- a DeferralChangeEvent
-
statusChange
Event handler for StatusChagneEvent.- Specified by:
statusChange
in interfaceStatusChangeListener
- Parameters:
e
- a StatusChangeEvent
-
serviceChange
Called when data for a service changes- Specified by:
serviceChange
in interfaceServiceChangeListener
- Parameters:
e
-
-
actionPerformed
Called when an item is selected from the Actions menu.- Specified by:
actionPerformed
in interfaceActionListener
- Parameters:
e
- the action event.
-
valueChanged
Called when the row selection changes in the tree-table.- Specified by:
valueChanged
in 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:
mouseClicked
in interfaceMouseListener
- Parameters:
e
- the mouse event.
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
save
Saves the contents of this page.- Specified by:
save
in interfacePAccountViewPage
- Overrides:
save
in classPMaintenancePage
- Throws:
PSaveException
-
getControllerClassName
Retrieves the server-side component for this page- Specified by:
getControllerClassName
in interfacePComponent
- Overrides:
getControllerClassName
in 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:
recycle
in interfacePCCPage
- Overrides:
recycle
in classPMaintenancePage
-
unregister
Description copied from class:PIACustomizablePanel
Used to disconnect the controller from the component for all child widgets contained within this panel.- Specified by:
unregister
in interfacePClientComponent
- Overrides:
unregister
in 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[]
-