| com.xoetrope.swing.XEasterEgg
XEasterEgg | public class XEasterEgg extends XImage implements XAttributedComponent,ActionListener(Code) | | An easter eggs is a special control used to obscure access to certain
functionality. Frequently it is used to control access to superuser mode
menus and actions. In a modal/fullscreen application it may obscure access
to the exit/shutdown functionality. A password can also be added to further
protect access.
Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.10 $
|
XEasterEgg | public XEasterEgg()(Code) | | Create a new easter egg
|
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Pops up a password dialog and exits the survey if the password matches
Parameters: e - the action event |
doExit | public void doExit()(Code) | | Exist the survey and shuts down the application
|
getPassword | public String getPassword()(Code) | | Get the password
the password |
setAttribute | public int setAttribute(String attribName, Object attribValue)(Code) | | Set one or more attributes of the component.
Parameters: attribName - the name of the attribute Parameters: attribValue - the value of the attribute 0 for success, non zero otherwise |
setCallback | public void setCallback(Component cbParent, String cb)(Code) | | Set the method to be called back when the password is entered and OK clicked
Parameters: cbParent - The parent/owner for purposes of a callback. Parameters: cb - The name of a callback method in the parent (or null) to be invoked when the dialog is dismissed. |
setPassword | public void setPassword(String pswd)(Code) | | Set the password
Parameters: pswd - the password |
|
|