public class PTelcoServicePanel extends PIAExtendedServicesBase
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
INDEX, mServiceType
isTracking, mIAList, mImpl, unregList
IMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImage
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
PTelcoServicePanel()
Creates a new extended service panel for Telco services.
|
Modifier and Type | Method and Description |
---|---|
protected Map |
getDeviceClassMap()
Method to retrieve the class names for device panels.
|
PIAExtendedDevicesBase[] |
getDevices() |
protected List |
getDeviceSequence()
Method to retrieve the order of devices this service panel
will display.
|
String |
getIDValue()
Method to retrieve the service id from this panel.
|
protected String |
getServiceAttrClassName()
Method to retrieve the class name to display the extended service
attributes.
|
protected String |
getServiceName()
Method to return the name of this telco service.
|
protected String |
getServicePropertyKey()
Method to return the property suffix for this telco service.
|
protected void |
init()
Protected method to lay out the UI according to the service type.
|
protected void |
initUIComponents() |
boolean |
isClean()
Method to determine if there are no changes or errors on this panel.
|
boolean |
isDirty()
Method to determine whether the service data and the device data has
changed.
|
boolean |
isError()
Method to determine if there is error in the data presented by
this panel.
|
protected boolean |
isExtendedVisible()
Method to specify whether the extended service attributes panel is visible
or not.
|
protected boolean |
isSupplementaryExpanded()
Method to specify whether the supplementary service panel is expanded
or not.
|
protected boolean |
isSupplementaryVisible()
Method to specify whether the supplementary service panel is visible
or not.
|
protected void |
jbInit()
Protected method to lay out the screen.
|
protected void |
loadDisplayAttributes()
Load display attributes from property files.
|
void |
localCollectData(PCollectDataEvent event)
Collects service information changes, as well as updates to the
device/service associations.
|
void |
resetToDefault()
Reset the panel to display the default data.
|
com.portal.app.util.CustomerValErrorData[] |
save()
Attempts to save any changes made to this page.
|
void |
setClean()
Method to set data on the panel to a "clean" state.
|
void |
setDefault()
Establishes the current data on this panel as the default
data for the panel.
|
void |
setError(boolean isError)
Method to set data on the panel to an "error" state.
|
void |
setModelHandle(PModelHandle serviceModel)
Method to set the modlehandle for this panel.
|
void |
setType(String serviceType)
Set the type of service for this panel.
|
boolean |
supportsLoginAndPassword()
Panels from 6.1 did not include entry fields for login/password.
|
collectData, doGraft, getControllerClassName, getIndex, getServiceID, hasValidData, isAccountCreation, setIndex, setServiceID
clear, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getModelHandle, getRemoteComponent, getResourceName, getTools, isCurrencyDisplay, isInputTracking, isLight, isRequired, processError, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setCurrencyDisplay, setInputTracking, setRequired, setResourceName, togglePrimaryToSecondary, unregister, viewDataChange
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcon
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, update
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
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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String TELCO_SERVICES_STORABLE_CLASS_NAME_BASE
public static final String TELCO_SERVICES_STORABLE_CLASS_NAME_PREFIX
public static final String DEFAULT_DEVICE_PANEL_CLASS_NAME
public static final String DEFAULT_EXTENDED_SERVICE_ATTRIBUTES_CLASS_NAME
protected static final String TRUE
protected static final String PROPERTY_PREFIX
protected static final String PROPERTY_DEVICE_PREFIX
protected static final String PROPERTY_DEVICE_SUFFIX
protected static final String PROPERTY_SUPPLEMENTARY_SUFFIX
protected static final String PROPERTY_SUPPLEMENTARY_EXPAND_SUFFIX
protected static final String PROPERTY_DEVICES_SUFFIX
protected static final String PROPERTY_EXTENDED_SUFFIX
protected static final String DUMMY_IDPW
protected static final Integer PIN_DEVICE_FLAG_ASSOCIATE
protected static final Integer PIN_DEVICE_FLAG_DISASSOCIATE
protected static final String DEVICE_ARRAY_MODEL_DESC_PREFIX
protected static final String DEVICE_ARRAY_MODEL_DESC_SUFFIX
protected static final String DEVICE_OBJECT_MODEL_DESC
protected static final String DEVICE_FLAGS_MODEL_DESC
protected com.portal.app.cc.tcf.SupplementaryServicesPanel mSupplmentaryServicesPanel
protected boolean mShowSupplementary
protected boolean mExpandSupplementary
protected boolean mShowDevNum
protected boolean mShowExtended
protected String mServiceName
protected String mServicePropertyKey
protected Properties mProperties
protected ResourceBundle mBundle
protected String mExtServiceAttrClassName
protected PIAExtendedServicesBase mExtServiceAttrPanel
protected HashMap mDeviceClasses
protected HashMap mDeviceNodes
protected ArrayList mDeviceSequence
protected PServiceTableBean mServiceTableBean
protected boolean mIsDeviceError
public PTelcoServicePanel()
public void setType(String serviceType)
PExtendedServicePanel
to set the service
type for the panel. *setType
in class PIAExtendedServicesBase
serviceType
- The type of this service. For example,
"/service/telco/gsm/telephony". The
service type needs to start with
"/service/telco".public void localCollectData(PCollectDataEvent event)
localCollectData
in class PIAExtendedServicesBase
event
- The collect data eventpublic com.portal.app.util.CustomerValErrorData[] save()
PIAExtendedServicesBase
save
in interface PSaveable
save
in class PIAExtendedServicesBase
public boolean isDirty()
isDirty
in interface PComponentAttribute
isDirty
in class PIACustomizablePanel
true
if the data on this panel has changed.
false
if the data on this panel has not been
changed.public boolean isError()
isError
in interface PComponentAttribute
isError
in class PIACustomizablePanel
true
if the data on this panel contains error.
false
if the data on this panel does not contain
error.public boolean isClean()
isClean
in class PIACustomizablePanel
true
if the data on this panel does not contain
error and has not been changed.
false
if the data on this panel has been changed
or contains error.public void setClean()
setClean
in interface PComponentAttribute
setClean
in class PIACustomizablePanel
public void setError(boolean isError)
setError
in interface PComponentAttribute
setError
in class PIACustomizablePanel
isError
- if true, puts the component in ERROR statepublic void setDefault()
setDefault
in interface PComponentAttribute
setDefault
in class PIACustomizablePanel
public void resetToDefault()
resetToDefault
in interface PComponentAttribute
resetToDefault
in class PIACustomizablePanel
public boolean supportsLoginAndPassword()
PIAExtendedServicesBase
supportsLoginAndPassword
in class PIAExtendedServicesBase
true since this panel supports login and password
public String getIDValue()
getIDValue
in class PIAExtendedServicesBase
public void setModelHandle(PModelHandle serviceModel) throws RemoteException
setModelHandle
in interface PComponent
setModelHandle
in class PIACustomizablePanel
serviceModel
- The service modelhandle object this panel will
display.RemoteException
protected void init()
setType(String)
,
to retrieve display attributes and calls method jbInit() to lay out
the panel.
Overwrite to implement your own initialization logic.protected void jbInit()
init()
to create the UI components and lay out
the screen. The defaul implementation will create a supplementary
services panel if the supplementary services are specified to be
visible, then the device panels according to the order specified
in the properties file, and finally, a panel to display extended
services attributes, if specified in the property file.
Overwrite to create your custom layout for the specify service.protected boolean isSupplementaryVisible()
true
if you want to show the supplementary
service panel.
false
if you want to hide the supplementary
service panel.protected boolean isSupplementaryExpanded()
true
if you want to expand the supplementary
service panel as the default view.
false
if you want to collapse the supplementary
service panel as the default view.protected boolean isExtendedVisible()
true
if you want to show the extended service
attributes panel.
false
if you want to hide the extended service
attributes panel.protected String getServiceName()
protected List getDeviceSequence()
protected Map getDeviceClassMap()
protected String getServiceAttrClassName()
protected String getServicePropertyKey()
protected void loadDisplayAttributes()
protected void initUIComponents()
public PIAExtendedDevicesBase[] getDevices()
Copyright © 2003, 2023, Oracle and/or its affiliates.