Package com.portal.app.cc
Class PExtendedServicePanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.portal.pfc.ui.ImagePanel
com.portal.bas.comp.PIAPanel
com.portal.bas.comp.PIAPanelGroup
com.portal.app.cc.PExtendedServicePanel
- All Implemented Interfaces:
PClientComponent
,PCollectDataListener
,PComponent
,PComponentAttribute
,PViewComponent
,PViewDataChangeListener
,ContainerListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
Container for extended service and device panels.
The panels that are added to this container MUST be
PIAExtendedServicesBase subclasses.
This component depends on setModelHandle() being called when the displayed account changes. At that point, any old data/panels are discarded. Then, new extended service/device panels are added/displayed by calling showService() or showDevice() with a PModelHandle representing a known /service or /device object. These panels are later retrieved for saving by calling getServices() or getDevices().
This component depends on setModelHandle() being called when the displayed account changes. At that point, any old data/panels are discarded. Then, new extended service/device panels are added/displayed by calling showService() or showDevice() with a PModelHandle representing a known /service or /device object. These panels are later retrieved for saving by calling getServices() or getDevices().
- Version:
- %version: 24 % %date_modified: Mon Jul 01 15:59:10 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
Fields inherited from class com.portal.bas.comp.PIAPanelGroup
cardLayout, mClasses, mComponents, mNames
Fields inherited from class com.portal.bas.comp.PIAPanel
collectDataFromInvisiblePanels, isTracking, mIAList, mImpl
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 panel that displays services/devices purchased by the customer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes any previously added service/device panels and returns this component to its initial pristine state.getDevicePanel
(PModelHandle pm, int index) Gets the device panel from the device store by finding the key (pm+index)Retrieves all extended device panels contained in this container.Retrive the ID (login) by given PModelHandle.getIDValue
(PModelHandle pm, int index) Retrieves the id (login) of the given PModelHandle, and the index.getService
(PModelHandle pmh, int index) Retrieves the extended service panel contained in this container.getServicePanel
(PModelHandle pm, int index) Gets the service panel from the service store by finding the key (pm+index)Retrieves all extended service panels contained in this container.Object[]
Gets the services base panelsRetrive the ID (login) from the visible panel.void
Establishes the new account object from which the service/device data will be retrieved and displayed.void
Looks at the type of the given PModelHandle and retrieves the correct extended device panel for that PModelHandle.void
Looks at the type of the given PModelHandle and retrieves the correct extended service panel for that service.void
showService
(PModelHandle pm, int index) Retrieves the type of the given PModelHandle, and retrieves the correct extended service panel for that service.Methods inherited from class com.portal.bas.comp.PIAPanelGroup
add, add, add, add, clear, componentToIndex, contains, getComponentAt, getComponentsCount, getControllerClassName, getNames, getVisiblePanel, getVisiblePanelComponent, getVisiblePanelIndex, nameToComponent, nameToIndex, removeAll, removeComponent, removeComponent, setLayout, setOpaque, setVisiblePanel, setVisiblePanel, unregister
Methods inherited from class com.portal.bas.comp.PIAPanel
collectData, componentAdded, componentRemoved, containsError, firePropertyChange, fireVetoableChange, 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, 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, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, 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
-
Constructor Details
-
PExtendedServicePanel
public PExtendedServicePanel()Creates a panel that displays services/devices purchased by the customer.
-
-
Method Details
-
setModelHandle
Establishes the new account object from which the service/device data will be retrieved and displayed. All panels from any previous account are discarded when this is called.- Specified by:
setModelHandle
in interfacePComponent
- Overrides:
setModelHandle
in classPIAPanel
- Parameters:
pm
-- Throws:
RemoteException
- thrown for errors
-
clearContents
public void clearContents()Removes any previously added service/device panels and returns this component to its initial pristine state. -
getServices
Retrieves all extended service panels contained in this container. This is a convenience method which allows you to get the panels as an array of PIAExtendedServiceBase objects instead of Components.- Returns:
- array of service panels, or null if there are no panels
-
getService
Retrieves the extended service panel contained in this container.- Returns:
- the service panel, or null if there is no panel
-
getDevices
Retrieves all extended device panels contained in this container. This is a convenience method which allows you to get the panels as an array of PIAExtendedServiceBase objects instead of Components.- Returns:
- array of device panels, or null if there are no panels
-
getVisibleIDValue
Retrive the ID (login) from the visible panel.- Returns:
- the ID (login) of the visible panel
-
getIDValue
Retrive the ID (login) by given PModelHandle. The extended service panel will be retrived according to the PModelHandle then the ID will be returned. The PModelHandle must represent a known service oterwise null will be returned.- Parameters:
pm
-
-
getServicesBases
Gets the services base panels- Returns:
-
getIDValue
Retrieves the id (login) of the given PModelHandle, and the index. If the PModelHandle is unknown, null will be returned.- Parameters:
pm
-index
- Used for account creation - determines the array index for this service in the FldServices array.
-
showService
Looks at the type of the given PModelHandle and retrieves the correct extended service panel for that service. The PModelHandle must represent a known service or a blank panel will be displayed.- Parameters:
pm
-
-
showService
Retrieves the type of the given PModelHandle, and retrieves the correct extended service panel for that service. The PModelHandle must represent a known service or a blank panel will be displayed.- Parameters:
pm
-index
- Used for account creation - determines the array index for this service in the FldServices array.
-
showDevice
Looks at the type of the given PModelHandle and retrieves the correct extended device panel for that PModelHandle. The PModelHandle must represent a known device or a blank panel will be displayed.- Parameters:
pm
-
-
getServicePanel
Gets the service panel from the service store by finding the key (pm+index) -
getDevicePanel
Gets the device panel from the device store by finding the key (pm+index)
-