Package com.portal.app.cc
Class PServiceDefault
- All Implemented Interfaces:
PSaveable,PAppComponent,PClientComponent,PCollectDataListener,PComponent,PComponentAttribute,PViewDataChangeListener,ActionListener,ContainerListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible
The default technical (extended service) details panel which contains
the ability to display/modify the service login invalid input: '&' password.
- Version:
- %version: 15 % %date_modified: Mon Jun 17 17:50:59 2002 %
- 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
FieldsFields 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 TypeMethodDescriptionvoidvoidOverridden to apply style to some of the fontsRetrieves the label used for the id/login fieldRetrieves the current value of the id textfieldRetrieves the current value of the password textfieldbooleanCalled to determine if the data contained in this page is valid.booleanReturns the "dirty" date of the ID field.booleanReturns the "dirty" date of the password field.voidAll PIAExtendedServicesBase subclasses that want to override collectData() should override this method instead.voidUsed to clear the contents of the password field after a successful save.voidA convenience method that resets every field on this panel.com.portal.app.util.CustomerValErrorData[]save()Overridden to deal with clearing the password field after the savevoidsetIDLabel(String s) Used to specify the label that should be used for the id/login field.voidsetIDValue(String val) Establishes the unique ID for this service object (PIN_FLD_LOGIN) in the id textfieldvoidThis method sets the display field description for the login field.voidOverridden to setup permissionsvoidThis method sets the display field description for the password fieldbooleanPanels from 6.1 did not include entry fields for login/password.Methods inherited from class com.portal.app.cc.comp.PIAExtendedServicesBase
collectData, doGraft, getControllerClassName, getIndex, getServiceID, isAccountCreation, setIndex, setServiceID, setTypeMethods inherited from class com.portal.bas.comp.PIACustomizablePanel
clear, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setDefault, setError, 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, 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
-
Field Details
-
idTF
-
-
Constructor Details
-
PServiceDefault
public PServiceDefault()Creates a new customer information display panel
-
-
Method Details
-
setIDLabel
Used to specify the label that should be used for the id/login field. Some services may override the login field and it might be helpful if the UI clearly called out what type of information was being requested. For example, an IPT service might require a phone number in the login field. You could use this method to change the label for the login field to "Phone #".- Parameters:
s- The new text for the id/login label
-
getIDLabel
Retrieves the label used for the id/login field- Returns:
- The label used for the id/login field.
-
setIDValue
Establishes the unique ID for this service object (PIN_FLD_LOGIN) in the id textfield- Parameters:
The- ID to be for this service
-
supportsLoginAndPassword
public boolean supportsLoginAndPassword()Description copied from class:PIAExtendedServicesBasePanels from 6.1 did not include entry fields for login/password. For those panels we will provide a wrapper that will allow the user to enter that data.
Subclasses should override this to return true if they provide this themselves.- Overrides:
supportsLoginAndPasswordin classPIAExtendedServicesBase- Returns:
- false by default for compatibility with 6.1
-
getIDValue
Retrieves the current value of the id textfield- Overrides:
getIDValuein classPIAExtendedServicesBase- Returns:
- The unique ID for this service object (the value that is or will be stored in PIN_FLD_LOGIN)
-
getPasswordValue
Retrieves the current value of the password textfield- Returns:
- The password for this ID (the value that is or will be stored in FldPasswdClear)
-
resetPassword
public void resetPassword()Used to clear the contents of the password field after a successful save. -
save
public com.portal.app.util.CustomerValErrorData[] save()Overridden to deal with clearing the password field after the save- Specified by:
savein interfacePSaveable- Overrides:
savein classPIAExtendedServicesBase- Returns:
- The array of errors; null if there are none
-
localCollectData
All PIAExtendedServicesBase subclasses that want to override collectData() should override this method instead. Because this panel will be shared between account creation and maintenance, there is some FList manipulation required. The input FLists is slightly different for account creation vs maintenance, and that is handled in PIAExtendedServicesBase. That class will call this method before any of the FList manipulation occurs so this is where you should do any pre-commit to Portal processing.
One example of something you might do here is conversion of text data to binary for a particular field.
In most situations, you won't need to do anything.- Overrides:
localCollectDatain classPIAExtendedServicesBase
-
setModelHandle
Overridden to setup permissions- Specified by:
setModelHandlein interfacePComponent- Overrides:
setModelHandlein classPIACustomizablePanel- Parameters:
pm- the newPModelHandlefrom which to extract informationThe- model handle- Throws:
RemoteException- thrown for errors
-
addNotify
public void addNotify()Overridden to apply style to some of the fonts- Overrides:
addNotifyin classJComponent
-
resetToDefault
public void resetToDefault()Description copied from class:PIACustomizablePanelA convenience method that resets every field on this panel.- Specified by:
resetToDefaultin interfacePComponentAttribute- Overrides:
resetToDefaultin classPIACustomizablePanel
-
setLoginDisplayFieldDescription
This method sets the display field description for the login field.- Parameters:
str- String
-
setPasswordDisplayFieldDescription
This method sets the display field description for the password field- Parameters:
str- String
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
isIDModified
public boolean isIDModified()Returns the "dirty" date of the ID field. Someone making use of this default panel in their own panel may need to send out an event that the ID was changed.- Returns:
- true if the ID is modified, but not yet saved
-
isPasswordModified
public boolean isPasswordModified()Returns the "dirty" date of the password field. Someone making use of this default panel in their own panel may need to send out an event that the password was changed.- Returns:
- true if the password is modified, but not yet saved
-
hasValidData
public boolean hasValidData()Called to determine if the data contained in this page is valid. This will be useful if you wish to, for example, not allow a CSR to switch between service instances without first correcting an error on this page. Of course, be sure to tell them exactly how to fix the error. Or at a minimum give them a dialog that allows them to fix or ignore the error. In that case, if they ignore the error you could return true from this method. Essentially returning false is one way to keep the user on this service page.- Overrides:
hasValidDatain classPIAExtendedServicesBase- Returns:
- true if the data is valid (default); false otherwise
-