com.webobjects.eointerface.cocoa
Class EOCocoaSetPlugin
java.lang.Object
|
+--com.webobjects.eointerface.EOWidgetPluginRegistry.WidgetSetPlugin
|
+--com.webobjects.eointerface.cocoa.EOCocoaSetPlugin
- public class EOCocoaSetPlugin
- extends EOWidgetPluginRegistry.WidgetSetPlugin
EOCocoaSetPlugin is a concrete subclass of com.webobjects.eointerface.EOWidgetPluginRegistry.WidgetSetPlugin
.
Constructor Summary |
EOCocoaSetPlugin()
Creates a new EOCocoaSetPlugin by invoking super . |
Method Summary |
int |
runAlertPanel(String title,
String message,
String defaultButton,
String alternateButton,
String otherButton)
Displays a Cocoa alert panel (or dialog) notifying the user of some event or problem and possibly allowing him to choose
some course of action. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EOCocoaSetPlugin
public EOCocoaSetPlugin()
- Creates a new EOCocoaSetPlugin by invoking
super
.
runAlertPanel
public int runAlertPanel(String title,
String message,
String defaultButton,
String alternateButton,
String otherButton)
- Displays a Cocoa alert panel (or dialog) notifying the user of some event or problem and possibly allowing him to choose
some course of action. The panel's buttons are laid out right to left from the lower right-hand corner of the panel.
This method returns a constant indicating which button was pressed. See EOWidgetPluginRegistry.WidgetSetPlugin for
the list of constants.
- Overrides:
runAlertPanel
in class EOWidgetPluginRegistry.WidgetSetPlugin
- Parameters:
title
- the string displayed as the title of the alert panel; if is null or an empty string,
a default localized string is usedmessage
- the string displayed as the alert or error message of the alert paneldefaultButton
- the label of the default button shown in the panel at the bottom right; if
null or empty string, a default localized string is usedalternateButton
- the label of the 2nd button of the panel; if null, no button
corresponding to the "alternate" choice is createdotherButton
- the label of the 3rd button of the panel; if null, no button
corresponding to the "other" choice is created- See Also:
EOWidgetPluginRegistry.WidgetSetPlugin
Copyright © 2003 Apple Computer, Inc.