public class PContactPanel extends PIACustomizablePanel implements ActionListener, PropertyChangeListener, PIASelectionListener, FocusListener, ItemListener
PContactPage,
Serialized FormJPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyisTracking, 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 |
|---|
PContactPanel()
Creates a contact panel for a new contact having no type and
with an index of 1 for the associated NameInfo array entry.
|
PContactPanel(int nameInfoIndex,
boolean newContact)
Creates a contact display panel using the passed-in type, index, and
a flag to establish the type of the contact, the index of the
associated NameInfo array entry, and whether the panel will host
an existing or a new contact.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent event) |
void |
addNotify()
Overridden to apply style to some of the fonts
|
void |
collectData(PCollectDataEvent event)
Collects contact data from the contained components.
|
void |
focusGained(FocusEvent e)
No-op.
|
void |
focusLost(FocusEvent e)
Updates the contact panel's label to reflect the contact type entered by
the user.
|
NameAddressData |
getContactData()
Retrieves the contact data for this account.
|
PIAStringEnum |
getContactTypeWidget() |
protected int |
getNameInfoIndex()
Retrieves the index into the Nameinfo array that this particular
contact panel represents
|
void |
identifyPanel() |
boolean |
isNewContact()
Returns whether the contact is a new one or exists in an account.
|
void |
itemStateChanged(ItemEvent e) |
void |
propertyChange(PropertyChangeEvent e) |
boolean |
requestDefaultFocus() |
void |
resetToDefault()
A convenience method that resets every field on this panel.
|
void |
selectionChanged(PIASelectionEvent event)
Handles a selection event.
|
void |
setContactData(NameAddressData data)
Establishes the contact data for this account.
|
void |
setContactSaved()
Informs this panel that its contact has been saved to the account.
|
void |
setCustomData(PIACustomizablePanel p)
Adds the custom panel at the bottom of the contact panel.
|
void |
setDeleteEnabled(boolean b)
Shows or hides the delete button.
|
void |
setInitialContactType(String ctype) |
void |
setInitialSalutation(String sal)
Establishes the salutation that should be initially selected in the menu.
|
void |
setModelHandle(PModelHandle pm)
Sets the contact panel type and/or label.
|
void |
setValidContactType(String[] ctypes) |
void |
setValidSalutations(String[] salutations)
Establishes the list of selectable values for each contact's
salutation field.
|
void |
updateContactLabel()
Updates the contact panel's label to reflect the contact type entered by
the user.
|
clear, componentAdded, componentRemoved, containsError, getBackgroundImageSource, getBundle, getControllerClassName, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setDefault, setError, setInputTracking, setRequired, setResourceName, togglePrimaryToSecondary, unregister, viewDataChangegetBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcongetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, 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, transferFocusUpCyclepublic PContactPanel()
public PContactPanel(int nameInfoIndex,
boolean newContact)
nameInfoIndex - The index to use for the NameInfo array entry.newContact - If true, this panel will hold
a new contact. If false, this panel
will hold a contact that exists in an account.public void setCustomData(PIACustomizablePanel p)
The - new panel to display.public boolean isNewContact()
true if the contact hasn't yet been saved to
the account. Returns false if it exists in
the account.public void setContactSaved()
public void identifyPanel()
public void addNotify()
addNotify in class JComponentpublic void setModelHandle(PModelHandle pm) throws RemoteException
setModelHandle in interface PComponentsetModelHandle in class PIACustomizablePanelpm - Model handle for the accountRemoteException - thrown for errorspublic void setDeleteEnabled(boolean b)
b - true to enable the delete button; false otherwiseprotected int getNameInfoIndex()
public void collectData(PCollectDataEvent event)
collectData in interface PCollectDataListenercollectData in class PIACustomizablePanelevent - The collect data eventpublic void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpublic void selectionChanged(PIASelectionEvent event)
PIASelectionListenerselectionChanged in interface PIASelectionListenerevent - the event to handlepublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerpublic void resetToDefault()
PIACustomizablePanelresetToDefault in interface PComponentAttributeresetToDefault in class PIACustomizablePanelpublic void setContactData(NameAddressData data)
data - The NameAddressData for this accountpublic NameAddressData getContactData()
public boolean requestDefaultFocus()
requestDefaultFocus in class JComponentpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenere - the focus eventpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenere - the focus eventpublic void updateContactLabel()
public void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenerpublic PIAStringEnum getContactTypeWidget()
public void setValidContactType(String[] ctypes)
public void setValidSalutations(String[] salutations)
salutations - The list of selectable salutationspublic void setInitialSalutation(String sal)
sal - The salutation that is selected by default.public void setInitialContactType(String ctype)
Copyright © 2003, 2023, Oracle and/or its affiliates.