public class PContactPage extends PMaintenancePage implements ActionListener, ItemListener, PWizardPage, PropertyChangeListener
PContactPanels, each of which
holds the information for an Portal contact. Setting the NAMEADDRESS
attribute of the AccountCreationSharedData will result in this page
being filled in with that data (each time you update the shared data).
This means if the user has manually modified this page and you share out
new data the user's input will be overridden.
public class MyContactPage extends PContactPage {
public MyContactPage() { }
public addCustomDataToBilling(PContactPanel p) {
//Add my panel to the main billing panel
p.setCustomData(new MyAdditionalFieldsInACustomPanel());
}
public PContactPanel addContactPanel(int index, boolean newContact) {
//Add my panel to the additional contact panels
PContactPanel p = super.addContactPanel(index, newContact);
p.setCustomData(new MyAdditionalFieldsInACustomPanel());
}
}
You will also need to add the following to Customized.properties from
the Customer Care SDK:PContactPanel,
Serialized FormJPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategymNeedsRefresh, mPagesCurrentCurrencyisTracking, mIAList, mImpl, unregListIMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImagelistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
PContactPage()
Creates a new multiple contacts page.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent event)
Adds a new contact panel on button press of the "New" button.
|
protected PContactPanel |
addContactPanel(int index,
boolean newContact)
Adds a contact panel with model and display field descriptions
for all contained Portal-aware widgets based upon the passed-in index.
|
protected void |
addCustomDataToBilling(PContactPanel p)
Affords the subclass the opportunity to add a custom panel to the
bottom of the main billing contact panel.
|
protected void |
customizeNow() |
String |
getLabel()
Returns the label for this page.
|
protected ResourceBundle |
getResourceBundle() |
String |
getWizardHelpID()
Returns the help ID for this page during account creation.
|
boolean |
handleWizardCommitError(com.portal.app.util.CustomerError error)
Handles commit-time errors.
|
boolean |
hasUnsavedChanges()
Returns
true if a contained contact panel for an
already-existing contact is marked for deletion or if a contained
contact panel has unsaved changes. |
void |
itemStateChanged(ItemEvent evt) |
void |
leavingPage()
If this page is being hosted by the account creation wizard,
shares out the Account Holder contact data for use by any interested pages.
|
void |
propertyChange(PropertyChangeEvent event)
Listens for a
PContactPanel.DELETECONTACT property change
event and removes the referenced contact panel from the page. |
void |
recycle()
Recycles the page during new account creation.
|
void |
refresh()
Called when the page should be immediately refreshed - typically
as a result of the Reset action being invoked by the user.
|
void |
resetUnsavedChanges()
This method is responsible for undo'ing the changes made to the
page and resetting back to the original.
This implementation defaults to calling resetToDefault in the base class. |
void |
save()
Commits maintenance-time changes to Portal.
|
protected void |
setContactDuplicateCheckOn(boolean b) |
protected void |
setDisableBillingContactType(boolean b) |
void |
setModelHandle(PModelHandle pm)
At maintenance time, puts in the UI a contact
panel for each contact in the account.
|
protected void |
setValidContactTypes(String[] ctypes,
String defVal) |
protected void |
setValidSalutations(String[] salutations,
String defVal) |
void |
validateWizardPage()
Validates this page.
|
dataNeedsRefresh, enteringPage, getDisplayedCurrency, isValidContext, primaryToSecondary, revertToPrimaryclear, collectData, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getControllerClassName, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, resetToDefault, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setDefault, setError, setInputTracking, setRequired, setResourceName, togglePrimaryToSecondary, unregister, viewDataChangegetBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcongetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, updateadd, 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, validateTreeaction, 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, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcollectDataenteringPagepublic PContactPage()
public boolean hasUnsavedChanges()
true if a contained contact panel for an
already-existing contact is marked for deletion or if a contained
contact panel has unsaved changes. This method is only called at
maintenance-time.hasUnsavedChanges in interface PAccountViewPagehasUnsavedChanges in class PMaintenancePagetrue if this page contains a panel with
a contact marked for deletion or if it has one or more contact
panels with unsaved changes; false otherwise.public void resetUnsavedChanges()
PMaintenancePageresetUnsavedChanges in interface PAccountViewPageresetUnsavedChanges in class PMaintenancePagepublic void save()
throws PSaveException
save in interface PAccountViewPagesave in class PMaintenancePagePSaveExceptionpublic void setModelHandle(PModelHandle pm) throws RemoteException
setModelHandle in interface PComponentsetModelHandle in class PIACustomizablePanelpm - Model handle for the accountRemoteException - thrown for errorspublic void propertyChange(PropertyChangeEvent event)
PContactPanel.DELETECONTACT property change
event and removes the referenced contact panel from the page. The new
value in the event is the reference to the contact panel to be deleted.propertyChange in interface PropertyChangeListenerevent - Property change event.public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - The action eventpublic void refresh()
PMaintenancePagerefresh in interface PAccountViewPagerefresh in class PMaintenancePagepublic void leavingPage()
throws PropertyVetoException
leavingPage in interface PWizardPagePropertyVetoExceptionpublic String getLabel()
getLabel in interface PCCPagegetLabel in class PMaintenancePagepublic void recycle()
recycle in interface PCCPagerecycle in class PMaintenancePagepublic String getWizardHelpID()
getWizardHelpID in interface PWizardPagehelpid.acwizard.contactpage tag in
the properties file.public void validateWizardPage()
throws PValidationException
validateWizardPage in interface PWizardPagePValidationExceptionWizardValidationManagerpublic boolean handleWizardCommitError(com.portal.app.util.CustomerError error)
handleWizardCommitError in interface PWizardPageerror - The error.true if the page will handle the error; otherwise
false.WizardValidationManagerprotected void addCustomDataToBilling(PContactPanel p)
p - The custom panel to displayprotected PContactPanel addContactPanel(int index, boolean newContact)
index - used as the index for the new panel's Portal-aware
widgets' model and display field descriptions.newContact - true if the panel will
host a new contact; false if it will host an existing
contact.public void itemStateChanged(ItemEvent evt)
itemStateChanged in interface ItemListenerprotected final ResourceBundle getResourceBundle()
protected final void setContactDuplicateCheckOn(boolean b)
protected final void setDisableBillingContactType(boolean b)
protected final void customizeNow()
Copyright © 2003, 2023, Oracle and/or its affiliates.