public class PTelcoDevicesBase extends PIAExtendedDevicesBase
Modifier and Type | Class and Description |
---|---|
protected class |
PTelcoDevicesBase.HistoryAction
Inner Action class that provides the device history function.
|
protected class |
PTelcoDevicesBase.PrepopulateAction
Inner Action class that provides the device prepopulation function.
|
protected class |
PTelcoDevicesBase.SearchAction
Inner Action class that provides the device search function.
|
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected ResourceBundle |
mBundle |
protected PTelcoDevicesBase.HistoryAction |
mHistoryAction
Action to display the history of devices.
|
protected PTelcoDevicesBase.PrepopulateAction |
mPrepopulateAction
Action to prepopulate the panel with the next available device
from the database.
|
protected PTelcoDevicesBase.SearchAction |
mSearchAction
Action to search for Telco devices.
|
protected static String |
TELCO_DEVICES_STORABLE_CLASS_NAME_BASE |
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 |
---|
PTelcoDevicesBase()
Creates a new device details panel with the default device type, "/device".
|
PTelcoDevicesBase(String deviceType,
String resourceBundleName)
Creates a new device details panel with the device type, device name,
and the resource buncle name.
|
Modifier and Type | Method and Description |
---|---|
void |
addAvailStateValue(int value)
Call this function to add a value that holds a device state which
means the device is available for assigning
|
String |
formatID(String input)
Formats the telephone number.
|
PModelHandle |
getCurDevice()
Retrieves the model handle currently being displayed by this panel.
|
PModelHandle |
getDefaultDevice()
Retrieves the default model handle of this panel.
|
protected String |
getDeviceHistoryClassName()
Retrieves the class that handles the display of the device history.
|
protected String |
getDeviceHistoryHeader()
This method returns the header for the history page.
|
protected String |
getDeviceHistoryTrailtag()
This method returns the tag for the history page.
|
protected String |
getDeviceIDColumnHeader()
This method returns the device ID column header for the history page.
|
protected String |
getDeviceName()
Get the device name.
|
protected String |
getDeviceStateConfig()
Get the name of the config object that stores the device state.
|
protected PModelHandle[] |
getExistingDevices()
Searches for all existing devices of the same type this panel handles,
and returns them.
|
protected PModelHandle |
getFirstAvailableDevice()
Searches the next available device in the database and returns it.
|
String |
getType()
Retrieves the device type of the page.
|
protected boolean |
isPrepopulateEnabled() |
boolean |
isReplaced()
Is the device replaced
|
boolean |
isStandalone()
Method to determine whether this device panel is displayed as a
standalone panel or not.
|
protected PModelHandle |
prepopulate()
Finds a device based on the prepopulate type (should be done by controller class),
set modelhandle for this page, and return it.
|
void |
removeAvailStateValue(int value)
Call this function to remove a value that holds a device state which makes
the device available for assignment.
|
void |
resetToDefault()
Convenience method to revert the current modelhanle to the default one.
|
com.portal.app.util.CustomerValErrorData[] |
save()
Attempts to save changes to this page.
|
protected PModelHandle |
searchForDevice()
Display a search dialog and selects a device
Override this method to implement your own device search logic.
|
void |
setDefault()
Specifies that the current modelhandle is the default one.
|
void |
setIsReplaced(boolean isReplace) |
void |
setModelHandle(PModelHandle newDevice)
Set the model handle of this panel to be the specified object.
|
void |
setParentService(PModelHandle service)
Set the Parent modelhandle of the device.
|
void |
setService(PModelHandle service)
Set the owner service for this panel as the specifed service.
|
void |
setStandalone(boolean b)
Specify whether this device panel is displayed as a standalone panel or
as part of the service panel.
|
void |
setType(String deviceType)
Set the device type of the page.
|
protected void |
showDeviceHistory()
Display the device history page.
|
boolean |
supportsLoginAndPassword()
Devices does not need Login/Password panel.
|
collectData, doGraft, getControllerClassName, getIDValue, getIndex, getServiceID, hasValidData, isAccountCreation, localCollectData, setIndex, setServiceID
clear, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setError, 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
protected static final String TELCO_DEVICES_STORABLE_CLASS_NAME_BASE
protected ResourceBundle mBundle
protected PTelcoDevicesBase.SearchAction mSearchAction
protected PTelcoDevicesBase.HistoryAction mHistoryAction
protected PTelcoDevicesBase.PrepopulateAction mPrepopulateAction
public PTelcoDevicesBase()
ClassNotFoundException
- Exception thrown when the controller class
can not be loaded.public PTelcoDevicesBase(String deviceType, String resourceBundleName)
deviceType
- The storable class type of the device this panel will
display.resourceBundleName
- The name of the resource bundle. Used by the
subclass to read localized resource strings.public void setType(String deviceType) throws IllegalArgumentException
setType
in class PIAExtendedServicesBase
deviceType
- The storable class name of the device.IllegalArgumentException
- Thrown when the device type does not
start with "/device".public String getType()
public void setService(PModelHandle service)
service
- The service object which owns this device.public void setParentService(PModelHandle service)
PModelHandle
- public void setStandalone(boolean b)
b
- true
The device panel is a standalone panel.
false
The device panel is part of a service panel.public boolean isStandalone()
true
The device panel is a standalone panel.
false
The device panel is part of a service panel.public void setModelHandle(PModelHandle newDevice) throws RemoteException
setModelHandle
in interface PComponent
setModelHandle
in class PIACustomizablePanel
newDevice
- The model handle this panel is going to display.RemoteException
public void setDefault()
setDefault
in interface PComponentAttribute
setDefault
in class PIACustomizablePanel
public void resetToDefault()
resetToDefault
in interface PComponentAttribute
resetToDefault
in class PIACustomizablePanel
public boolean isReplaced()
public PModelHandle getCurDevice()
public PModelHandle getDefaultDevice()
public String formatID(String input)
input
- the number as a string to be formatedpublic boolean supportsLoginAndPassword()
supportsLoginAndPassword
in class PIAExtendedDevicesBase
public final void addAvailStateValue(int value)
value
- The numeric value of a device state that makes the device
available for assingment.public final void removeAvailStateValue(int value)
value
- The numeric value to be removed from the set of
available device states.public com.portal.app.util.CustomerValErrorData[] save()
save
in interface PSaveable
save
in class PIAExtendedServicesBase
protected boolean isPrepopulateEnabled()
protected String getDeviceIDColumnHeader()
protected String getDeviceHistoryTrailtag()
protected String getDeviceHistoryHeader()
protected PModelHandle prepopulate()
protected PModelHandle searchForDevice()
protected PModelHandle getFirstAvailableDevice()
protected PModelHandle[] getExistingDevices()
protected String getDeviceHistoryClassName()
showDeviceHistory()
to get the name of the device
history page class.
Override to return the class name of your own device history page.PTelcoDeviceHistoryBase
protected void showDeviceHistory()
protected String getDeviceName()
protected String getDeviceStateConfig()
public void setIsReplaced(boolean isReplace)
Copyright © 2003, 2023, Oracle and/or its affiliates.