|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.ibm.mm.beans.gui.CMBLogonPanel
The CMBLogonPanel displays the fields to enter userid and password, performs the logon, and provides the mechanism to change passwords on different servers.
Buttons
The CMBLogonPanel contains 5 buttons by default: OK, Cancel, Update Mapping, Change Passwords, and Help. All of these buttons may be displayed or hidden by setting the appropriate "isXXButtonVisible" property of the CMBLogonPanel, where "XX" is "OK", "Cancel", "ChangePasswords", "UpdateMapping", or "Help"
Logging on
After pressing the OK button, the LogonPanel will generate the CMBLogonCompletedEvent if the logon was successful.
Cancelling Logon
If the Cancel button was pressed before the logon was completed, the LogonPanel will generate the CMBLogonCancelled Event
Changing the password
When the Change Passwords button is pressed, the LogonPanel will bring up the modal ChangePasswords dialog, which enables the user to change passwords on one or more servers. When the password is succesfully changed, the CMBLogonPanel generates the CMBChangePasswordCompletedEvent.
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class javax.swing.JComponent |
accessibleContext, 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 |
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 | |
CMBLogonPanel()
Constructor for the CMBLogonPanel |
Method Summary | |
void |
addChangePasswordCompletedListener(CMBChangePasswordCompletedListener listener)
Add the specified listener, which will receive CMBChangePasswordCompletedEvents from the CMBLogonPanel |
void |
addChangePasswordHelpListener(CMBChangePasswordHelpListener listener)
Add the specified listener, which will receive CMBChangePasswordHelpEvents from the CMBLogonPanel |
void |
addHelpListener(CMBHelpListener listener)
Add the specified listener, which will receive CMBHelpEvents from the CMBLogonPanel |
void |
addLogonCancelledListener(CMBLogonCancelledListener listener)
Add the specified listener, which will receive CMBPasswordsChangeCompletedEvents from the CMBLogonPanel |
void |
addLogonCompletedListener(CMBLogonCompletedListener listener)
Add the specified listener, which will receive CMBLogonCompletedEvents from the CMBLogonPanel |
void |
addNotify()
|
void |
addUpdateMappingCompletedListener(CMBUpdateMappingCompletedListener listener)
Add the specified listener, which will receive CMBUpdateMappingCompletedEvents from the CMBLogonPanel |
void |
addUpdateMappingHelpListener(CMBUpdateMappingHelpListener listener)
Add the specified listener, which will receive CMBUpdateMappingHelpEvents from the CMBLogonPanel |
java.util.Vector |
getChangePasswordServerList()
Get the list of servers to display on the Change Passwords dialog |
CMBConnection |
getConnection()
Get the connection object for the CMBLogonPanel |
java.lang.String[] |
getDisplayServerTypes()
Get the list of server types to display on the Logon dialog. |
java.lang.String |
getNewPassword()
Get the new password after a password change |
java.lang.String |
getPassword()
Get the password displayed on the CMBLogonPanel |
java.lang.String |
getUserid()
Get the userid displayed on the CMBLogonPanel |
boolean |
isCancelButtonVisible()
Determines if the Cancel button is displayed |
boolean |
isChangePasswordsButtonVisible()
Determines if the ChangePasswords button is displayed |
boolean |
isHelpButtonVisible()
Determines if the Help button is displayed |
boolean |
isOKButtonVisible()
Determines if the OK button is displayed |
boolean |
isServerNamePromptVisible()
Determines if the server name prompt is displayed |
boolean |
isServerTypePromptVisible()
Determines if the server type prompt is displayed |
boolean |
isUpdateMappingButtonVisible()
Determines if the UpdateMapping button is displayed |
void |
logon()
Connect to the server using the userid and password displayed in the logon panel |
void |
onCMBConnectionReply(CMBConnectionReplyEvent event)
The method which implements the CMBConnectionReplyListener interface |
void |
removeChangePasswordCompletedListener(CMBChangePasswordCompletedListener listener)
Remove the specified listener so it will no longer receive CMBChangePasswordCompletedEvents from the CMBLogonPanel |
void |
removeChangePasswordHelpListener(CMBChangePasswordHelpListener listener)
Remove the specified listener so it will no longer receive CMBChangePasswordHelpEvents from the CMBLogonPanel |
void |
removeHelpListener(CMBHelpListener listener)
Remove the specified listener so it will no longer receive CMBHelpEvents from the CMBLogonPanel |
void |
removeLogonCancelledListener(CMBLogonCancelledListener listener)
Remove the specified listener so it will no longer receive CMBPasswordsChangeCompletedEvents from the CMBLogonPanel |
void |
removeLogonCompletedListener(CMBLogonCompletedListener listener)
Remove the specified listener so it will no longer receive CMBLogonCompletedEvents from the CMBLogonPanel |
void |
removeUpdateMappingCompletedListener(CMBUpdateMappingCompletedListener listener)
Remove the specified listener so it will no longer receive CMBUpdateMappingCompletedEvents from the CMBLogonPanel |
void |
removeUpdateMappingHelpListener(CMBUpdateMappingHelpListener listener)
Remove the specified listener so it will no longer receive CMBUpdateMappingHelpEvents from the CMBLogonPanel |
void |
setBackground(java.awt.Color newColor)
Overrides the setBackground function |
void |
setCancelButtonVisible(boolean val)
Set whether the Cancel button should be displayed |
void |
setChangePasswordsButtonVisible(boolean val)
Set whether the ChangePasswords button should be displayed |
void |
setChangePasswordServerList(java.util.Vector newList)
Set the list of servers to display on the Change Passwords dialog |
void |
setConnection(CMBConnection newConnection)
Set the connection object for the CMBLogonPanel |
void |
setCursor(java.awt.Cursor newCursor)
Overridden to set cursor of contained controls |
void |
setDisplayServerTypes(java.lang.String[] newTypes)
Set the list of server type datastore extensions to display on the Logon dialog. |
void |
setEnabled(boolean newEnable)
Overridden to enable/disable contained controls |
void |
setFont(java.awt.Font newFont)
Overrides the setFont function |
void |
setForeground(java.awt.Color newColor)
Overrides the setForeground function |
void |
setHelpButtonVisible(boolean val)
Set whether the Help button should be displayed |
void |
setLayout(java.awt.LayoutManager mgr)
Overridden to disable changing of the layout manager. |
void |
setLocale(java.util.Locale newLocale)
Overrides the setLocale function |
void |
setNewPassword(java.lang.String newPass)
Set the new password after a password change |
void |
setOKButtonVisible(boolean val)
Set whether the OK button should be displayed |
void |
setOpaque(boolean newOpaque)
Overridden to set opaque on contained controls |
void |
setPassword(java.lang.String newPass)
Set the password displayed on the CMBLogonPanel |
void |
setServerNamePromptVisible(boolean val)
Set whether the server name prompt should be displayed |
void |
setServerTypePromptVisible(boolean val)
Set whether the server type prompt should be displayed |
void |
setToolTipText(java.lang.String newTooltip)
Overridden to set tooltip text on contained controls |
void |
setUpdateMappingButtonVisible(boolean val)
Set whether the UpdateMapping button should be displayed |
void |
setUserid(java.lang.String newID)
Set the userid displayed on the CMBLogonPanel |
void |
updateUI()
Override updateUI to ensure proper updating of components |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CMBLogonPanel()
Method Detail |
public void addNotify()
addNotify
in class javax.swing.JComponent
public void setConnection(CMBConnection newConnection)
public CMBConnection getConnection()
public void setUserid(java.lang.String newID)
public java.lang.String getUserid()
public void setPassword(java.lang.String newPass)
public java.lang.String getPassword()
public void setHelpButtonVisible(boolean val)
public boolean isHelpButtonVisible()
public void setOKButtonVisible(boolean val)
public boolean isOKButtonVisible()
public void setCancelButtonVisible(boolean val)
public boolean isCancelButtonVisible()
public void setChangePasswordsButtonVisible(boolean val)
public boolean isChangePasswordsButtonVisible()
public void setUpdateMappingButtonVisible(boolean val)
public boolean isUpdateMappingButtonVisible()
public void setServerNamePromptVisible(boolean val)
public boolean isServerNamePromptVisible()
public void setServerTypePromptVisible(boolean val)
public boolean isServerTypePromptVisible()
public java.lang.String getNewPassword()
public void setNewPassword(java.lang.String newPass)
public java.util.Vector getChangePasswordServerList()
public void setChangePasswordServerList(java.util.Vector newList)
public java.lang.String[] getDisplayServerTypes()
By default, the list of available server types is read from the com.ibm.mm.beans.gui.CMBMessages.properties file. To add another server type to the list, simply add another line to the properties file. For example, if you have a custom datastore with extension 'ABC', then you would add the following line of text to the properties file: LogonPanel.serverType.ABC="ABC datastore display name" Your server type will then appear in the server types prompt by default.
public void setDisplayServerTypes(java.lang.String[] newTypes)
setDisplayServerTypes(new String["ABC", CMBBaseConstant.CMB_DSTYPE_DB2, CMBBaseConstant.CMB_DSTYPE_ICM]);
newTypes
- array of Stringspublic void logon()
public void onCMBConnectionReply(CMBConnectionReplyEvent event)
onCMBConnectionReply
in interface CMBConnectionReplyListener
event
- The CMBConnectionReplyEvent received from the non-visual
connection bean.public void setForeground(java.awt.Color newColor)
setForeground
in class javax.swing.JComponent
public void setBackground(java.awt.Color newColor)
setBackground
in class javax.swing.JComponent
public void setFont(java.awt.Font newFont)
setFont
in class javax.swing.JComponent
public void setCursor(java.awt.Cursor newCursor)
setCursor
in class java.awt.Component
public void setOpaque(boolean newOpaque)
setOpaque
in class javax.swing.JComponent
public void setToolTipText(java.lang.String newTooltip)
setToolTipText
in class javax.swing.JComponent
public void setEnabled(boolean newEnable)
setEnabled
in class javax.swing.JComponent
public void setLocale(java.util.Locale newLocale)
setLocale
in class java.awt.Component
public void updateUI()
updateUI
in class javax.swing.JPanel
public void setLayout(java.awt.LayoutManager mgr)
setLayout
in class java.awt.Container
public void addLogonCompletedListener(CMBLogonCompletedListener listener)
public void removeLogonCompletedListener(CMBLogonCompletedListener listener)
public void addLogonCancelledListener(CMBLogonCancelledListener listener)
public void removeLogonCancelledListener(CMBLogonCancelledListener listener)
public void addHelpListener(CMBHelpListener listener)
public void removeHelpListener(CMBHelpListener listener)
public void addChangePasswordHelpListener(CMBChangePasswordHelpListener listener)
public void removeChangePasswordHelpListener(CMBChangePasswordHelpListener listener)
public void addChangePasswordCompletedListener(CMBChangePasswordCompletedListener listener)
public void removeChangePasswordCompletedListener(CMBChangePasswordCompletedListener listener)
public void addUpdateMappingHelpListener(CMBUpdateMappingHelpListener listener)
public void removeUpdateMappingHelpListener(CMBUpdateMappingHelpListener listener)
public void addUpdateMappingCompletedListener(CMBUpdateMappingCompletedListener listener)
public void removeUpdateMappingCompletedListener(CMBUpdateMappingCompletedListener listener)
|
EIP JavaBeans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |