Package com.portal.app.cc
Class PCreditCardPanel
- All Implemented Interfaces:
PIAPaymentTypePanelBean
,PAppComponent
,PClientComponent
,PCollectDataListener
,PComponent
,PComponentAttribute
,PViewDataChangeListener
,ContainerListener
,ImageObserver
,MenuContainer
,PropertyChangeListener
,Serializable
,Remote
,EventListener
,Accessible
A customizable panel used for displaying/updating credit card information
(PIN_FLD_BILL_TYPE of 10003) for an account object and for entering in
such information for a new account. Data such as the card number,
expiration date, and the customer's credit card billing address are encapsulated here.
This panel is used both at account creation and maintenance time.
- 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.PIACustomizablePanel
isTracking, mIAList, mImpl, unregList
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
A convenience method that clears all Portal-aware descendants of this panel.void
collectData
(PCollectDataEvent event) Collects data from this panel for three different cases:
1) During page validation when changing tabs during account creation (event.getReason()
isPCollectDataEvent.FOR_VALIDATION
),
2) When saving a new account (event.getReason()
isPCollectDataEvent.FOR_STORING
),
3) When updating an existing account (event.getReason()
isPCollectDataEvent.FOR_DIRTY
).
Each of these three cases involves different data collection:
1) For page validation, the additional data that needs to be collected are a FldPayinfo type-only POID (appropriate to the billing type) and the FldBillType.
2) For saving a new account, data is required for all fields (whether the user has entered data or not), a FldPayinfo type-only POID (appropriate to the billing type) and the FldBillType.
3) For updating an account, the additional data that needs to be collected are the FldPayinfoObj's POID and the FldBillType.Gets the class name for this class's controllerboolean
handleWizardCommitError
(com.portal.app.util.CustomerError error) Handles account creation commit-time errors for this panel.int
handleWizardValidationError
(com.portal.app.util.CustomerError error) Handles account creation validate-time errors for this panel.boolean
isClean()
Determines if any descendant is marked DIRTY or ERROR.void
A convenience method that resets every field on this panel.void
Establishes the current value of every Portal-aware descendant as the default value for that component.void
Displays data for the passed-in account model handle.void
During account creation, retrieves shared data of interest and inserts it into the proper widgets.void
shareInData
(PModelHandle model) During account maintenance, retrieves shared data of interest and inserts it into the proper widgets.void
Used to disconnect the controller from the component for all child widgets contained within this panel.Methods inherited from class com.portal.app.cc.comp.PIAPaymentTypePanel
defaultsForStoring, defaultsForUpdate, defaultsForValidation, getFullName, getNameAddressData, hasReceivedSharedData, isAccountCreationPanel, setAccountCreationPanel, setReceivedSharedData, validatePaymentPanel
Methods inherited from class com.portal.app.cc.comp.PI18NPanel
changeLayout, getLayoutLocale, propertyChange, setLayoutLocale
Methods inherited from class com.portal.bas.comp.PIACustomizablePanel
componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getModelHandle, getRemoteComponent, getResourceName, getTools, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, 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, 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
Methods 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, 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, 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
-
PCreditCardPanel
public PCreditCardPanel()Creates a new credit card panel.
-
-
Method Details
-
addNotify
public void addNotify()- Overrides:
addNotify
in classPI18NPanel
-
setModelHandle
Displays data for the passed-in account model handle.- Specified by:
setModelHandle
in interfacePComponent
- Overrides:
setModelHandle
in classPIACustomizablePanel
- Parameters:
pm
- Model handle for an account.- Throws:
RemoteException
- thrown for errors
-
setDefault
public void setDefault()Description copied from class:PIACustomizablePanel
Establishes the current value of every Portal-aware descendant as the default value for that component.- Specified by:
setDefault
in interfacePComponentAttribute
- Overrides:
setDefault
in classPIACustomizablePanel
-
handleWizardValidationError
public int handleWizardValidationError(com.portal.app.util.CustomerError error) Handles account creation validate-time errors for this panel.- Overrides:
handleWizardValidationError
in classPIAPaymentTypePanel
- Parameters:
error
- The error.- Returns:
WizardValidationManager.VALIDATION_NOMATCH
if no matching error field is found orWizardValidationManager.VALIDATION_IGNOREERROR
if the user chooses to ignore a validation error orWizardValidationManager.VALIDATION_FIXERROR
if the user chooses to fix the error or
-
handleWizardCommitError
public boolean handleWizardCommitError(com.portal.app.util.CustomerError error) Handles account creation commit-time errors for this panel.- Overrides:
handleWizardCommitError
in classPIAPaymentTypePanel
- Parameters:
error
- The error.- Returns:
true
if this panel will handle the error; otherwisefalse
.
-
getControllerClassName
Gets the class name for this class's controller- Specified by:
getControllerClassName
in interfacePComponent
- Overrides:
getControllerClassName
in classPIACustomizablePanel
- Returns:
- a String with the component's controller's classname
- Throws:
RemoteException
- thrown for errors
-
unregister
Description copied from class:PIACustomizablePanel
Used to disconnect the controller from the component for all child widgets contained within this panel.- Specified by:
unregister
in interfacePClientComponent
- Overrides:
unregister
in classPIACustomizablePanel
- Throws:
RemoteException
-
collectData
Description copied from class:PIAPaymentTypePanel
Collects data from this panel for three different cases:
1) During page validation when changing tabs during account creation (event.getReason()
isPCollectDataEvent.FOR_VALIDATION
),
2) When saving a new account (event.getReason()
isPCollectDataEvent.FOR_STORING
),
3) When updating an existing account (event.getReason()
isPCollectDataEvent.FOR_DIRTY
).
Each of these three cases involves different data collection:
1) For page validation, the additional data that needs to be collected are a FldPayinfo type-only POID (appropriate to the billing type) and the FldBillType.
2) For saving a new account, data is required for all fields (whether the user has entered data or not), a FldPayinfo type-only POID (appropriate to the billing type) and the FldBillType.
3) For updating an account, the additional data that needs to be collected are the FldPayinfoObj's POID and the FldBillType.- Specified by:
collectData
in interfacePCollectDataListener
- Overrides:
collectData
in classPIAPaymentTypePanel
- Parameters:
event
- The collect data event containing the reason code and model handle.
-
isClean
public boolean isClean()Description copied from class:PIACustomizablePanel
Determines if any descendant is marked DIRTY or ERROR.- Overrides:
isClean
in classPIACustomizablePanel
- Returns:
- True if no descendant is marked DIRTY or ERROR, false otherwise.
-
resetToDefault
public void resetToDefault()Description copied from class:PIACustomizablePanel
A convenience method that resets every field on this panel.- Specified by:
resetToDefault
in interfacePComponentAttribute
- Overrides:
resetToDefault
in classPIACustomizablePanel
-
clear
public void clear()Description copied from class:PIACustomizablePanel
A convenience method that clears all Portal-aware descendants of this panel.- Specified by:
clear
in interfacePComponentAttribute
- Overrides:
clear
in classPIACustomizablePanel
-