WebObjects 5.2.3

com.webobjects.eointerface.cocoa
Class EOCocoaSetPlugin

java.lang.Object
  extended bycom.webobjects.eointerface.EOWidgetPluginRegistry.WidgetSetPlugin
      extended bycom.webobjects.eointerface.cocoa.EOCocoaSetPlugin

public class EOCocoaSetPlugin
extends EOWidgetPluginRegistry.WidgetSetPlugin

EOCocoaSetPlugin is a concrete subclass of com.webobjects.eointerface.EOWidgetPluginRegistry.WidgetSetPlugin.


Field Summary
 
Fields inherited from class com.webobjects.eointerface.EOWidgetPluginRegistry.WidgetSetPlugin
AlertPanelAlternateAction, AlertPanelDefaultAction, AlertPanelOtherAction
 
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 com.webobjects.eointerface.EOWidgetPluginRegistry.WidgetSetPlugin
defaultStringLocalizationResourceBundle, localizedString, runErrorPanel, setDefaultStringLocalizationResourceBundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EOCocoaSetPlugin

public EOCocoaSetPlugin()
Creates a new EOCocoaSetPlugin by invoking super.

Method Detail

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.

Specified by:
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 used
message - the string displayed as the alert or error message of the alert panel
defaultButton - the label of the default button shown in the panel at the bottom right; if null or empty string, a default localized string is used
alternateButton - the label of the 2nd button of the panel; if null, no button corresponding to the "alternate" choice is created
otherButton - the label of the 3rd button of the panel; if null, no button corresponding to the "other" choice is created
Returns:
an int indicating which button the user selected; either AlertPanelDefaultAction, AlertPanelAlternateAction, or AlertPanelOtherAction
See Also:
EOWidgetPluginRegistry.WidgetSetPlugin

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.