WebObjects 5.2

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.


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.
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 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
See Also:
EOWidgetPluginRegistry.WidgetSetPlugin

Last updated Fri Feb 21 13:15:00 PST 2003.

Copyright © 2003 Apple Computer, Inc.