Package com.portal.app.gsm
Class GSMServicePanel
- All Implemented Interfaces:
PSaveable,PAppComponent,PClientComponent,PCollectDataListener,PComponent,PComponentAttribute,PViewDataChangeListener,ContainerListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible
This is the Telco GSM panel for /service/telco/GSM objects in the Customer Center.
By default, a supplementary services panel, the devices panels, and an extra panel
showing the service attributes will be displayed on this panel. The user can write
his/her own device panels and the service attributes panel to plug in this panel.
- Author:
- Javeed
- 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
Fields inherited from class com.portal.app.cc.tcf.PTelcoServicePanel
DEFAULT_DEVICE_PANEL_CLASS_NAME, DEFAULT_EXTENDED_SERVICE_ATTRIBUTES_CLASS_NAME, DEVICE_ARRAY_MODEL_DESC_PREFIX, DEVICE_ARRAY_MODEL_DESC_SUFFIX, DEVICE_FLAGS_MODEL_DESC, DEVICE_OBJECT_MODEL_DESC, DUMMY_IDPW, mBundle, mDeviceClasses, mDeviceNodes, mDeviceSequence, mExpandSupplementary, mExtServiceAttrClassName, mExtServiceAttrPanel, mIsDeviceError, mProperties, mServiceName, mServiceTableBean, mShowDevNum, mShowExtended, mShowSupplementary, mSupplmentaryServicesPanel, PIN_DEVICE_FLAG_ASSOCIATE, PIN_DEVICE_FLAG_DISASSOCIATE, PROPERTY_DEVICE_PREFIX, PROPERTY_DEVICE_SUFFIX, PROPERTY_DEVICES_SUFFIX, PROPERTY_EXTENDED_SUFFIX, PROPERTY_PREFIX, PROPERTY_SUPPLEMENTARY_EXPAND_SUFFIX, PROPERTY_SUPPLEMENTARY_SUFFIX, TELCO_SERVICES_STORABLE_CLASS_NAME_BASE, TELCO_SERVICES_STORABLE_CLASS_NAME_PREFIX, TRUEFields inherited from class com.portal.app.cc.comp.PIAExtendedServicesBase
INDEX, mServiceTypeFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ListMethod to retrieve the order of devices this service panel will display.protected StringGets the property suffix for this telco service.protected voidinit()Protected method to lay out the UI according to the service type.protected voidLoad display attributes from property files.voidCollects service information changes, as well as updates to the device/service associations.Methods inherited from class com.portal.app.cc.tcf.PTelcoServicePanel
getDeviceClassMap, getDevices, getIDValue, getServiceAttrClassName, getServiceName, initUIComponents, isClean, isDirty, isError, isExtendedVisible, isSupplementaryExpanded, isSupplementaryVisible, jbInit, resetToDefault, save, setClean, setDefault, setError, setModelHandle, setType, supportsLoginAndPasswordMethods inherited from class com.portal.app.cc.comp.PIAExtendedServicesBase
collectData, doGraft, getControllerClassName, getIndex, getServiceID, hasValidData, isAccountCreation, setIndex, setServiceIDMethods inherited from class com.portal.bas.comp.PIACustomizablePanel
clear, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getModelHandle, getRemoteComponent, getResourceName, getTools, isCurrencyDisplay, isInputTracking, isLight, isRequired, processError, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setCurrencyDisplay, setInputTracking, 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, addNotify, 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, 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
-
Constructor Details
-
GSMServicePanel
public GSMServicePanel()Creates a new extended service panel for Telco services. Layout the panel with default components -- a supplementary services panel and a number device panel.
-
-
Method Details
-
init
protected void init()Protected method to lay out the UI according to the service type. This method is called internally by methodPTelcoServicePanel.setType(java.lang.String), to retrieve display attributes and calls method jbInit() to lay out the panel. Overwrite to implement your own initialization logic.- Overrides:
initin classPTelcoServicePanel
-
getServicePropertyKey
Gets the property suffix for this telco service.- Overrides:
getServicePropertyKeyin classPTelcoServicePanel- Returns:
- The default implementation returns the part of the of the service name after "/service/telco/". For instance, for "/service/telco/gsm/telepony", return "gsm.telephony".
-
loadDisplayAttributes
protected void loadDisplayAttributes()Load display attributes from property files. The display attributes include whether to show the supplementarty service panel or not, whether to show the extended service attributes or not, and the ordered list of devices to show.- Overrides:
loadDisplayAttributesin classPTelcoServicePanel
-
getDeviceSequence
Method to retrieve the order of devices this service panel will display. The default implementation reads the property file to get the device display order and returns it. Overwrite to return the list of devices your custom service panel will display.- Overrides:
getDeviceSequencein classPTelcoServicePanel- Returns:
- A ordered list of devices this service panel will display.
-
localCollectData
Collects service information changes, as well as updates to the device/service associations.- Overrides:
localCollectDatain classPTelcoServicePanel- Parameters:
event- The collect data event
-