WebObjects 5.2

com.webobjects.eointerface
Class EOWidgetPluginRegistry.WidgetSetPlugin

java.lang.Object
  |
  +--com.webobjects.eointerface.EOWidgetPluginRegistry.WidgetSetPlugin
Direct Known Subclasses:
EOCocoaSetPlugin, EOSwingSetPlugin
Enclosing class:
EOWidgetPluginRegistry

public abstract static class EOWidgetPluginRegistry.WidgetSetPlugin
extends Object

Abstract super class for plugins that handle the widget set specific task of displaying alert panels.


Field Summary
static int AlertPanelAlternateAction
          Value retruned when the user selects cancel, no, or the alternate button in an alert panel.
static int AlertPanelDefaultAction
          Value retruned when the user selects ok, yes, or the default button in an alert panel.
static int AlertPanelOtherAction
          Value retruned when the user selects the third or other button in an alert panel.
 
Constructor Summary
EOWidgetPluginRegistry.WidgetSetPlugin()
           
 
Method Summary
 ResourceBundle defaultStringLocalizationResourceBundle()
          Returns the ResourceBundle used to locate localized strings.
 String localizedString(String string)
          Returns a localized string for string .
abstract  int runAlertPanel(String title, String message, String defaultButton, String alternateButton, String otherButton)
          Displays an alert panel to the user giving the user up to three option buttons.
 void runErrorPanel(String title, String message, String okButton)
          Displays an error panel to the user with one button.
 void setDefaultStringLocalizationResourceBundle(ResourceBundle resourceBundle)
          Sets the ResourceBunde to search when looking for localized strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AlertPanelAlternateAction

public static final int AlertPanelAlternateAction
Value retruned when the user selects cancel, no, or the alternate button in an alert panel.

AlertPanelDefaultAction

public static final int AlertPanelDefaultAction
Value retruned when the user selects ok, yes, or the default button in an alert panel.

AlertPanelOtherAction

public static final int AlertPanelOtherAction
Value retruned when the user selects the third or other button in an alert panel.
Constructor Detail

EOWidgetPluginRegistry.WidgetSetPlugin

public EOWidgetPluginRegistry.WidgetSetPlugin()
Method Detail

defaultStringLocalizationResourceBundle

public ResourceBundle defaultStringLocalizationResourceBundle()
Returns the ResourceBundle used to locate localized strings.
Returns:
the ResourceBundle used to locate localized strings

localizedString

public String localizedString(String string)
Returns a localized string for string .
Parameters:
string - string value to find a localized equivalent for
Returns:
a localized equivalent for string

runAlertPanel

public abstract int runAlertPanel(String title,
                                  String message,
                                  String defaultButton,
                                  String alternateButton,
                                  String otherButton)
Displays an alert panel to the user giving the user up to three option buttons.
Parameters:
title - title of the alert window
message - message contents of the alert panel
defaultButton - display string of the panel's default button
alternateButton - display string of the panel's 'alternate' button
otherButton - display string of the panel's 'other' button
Returns:
an int indicating which button the user selected; either AlertPanelDefaultAction, AlertPanelAlternateAction, or AlertPanelOtherAction

runErrorPanel

public void runErrorPanel(String title,
                          String message,
                          String okButton)
Displays an error panel to the user with one button.
Parameters:
title - title of the error window
message - message contents of the error panel
okButton - display string of the button that the user must select to dismiss the error panel

setDefaultStringLocalizationResourceBundle

public void setDefaultStringLocalizationResourceBundle(ResourceBundle resourceBundle)
Sets the ResourceBunde to search when looking for localized strings.
Parameters:
resourceBundle - the ResourceBundle to search when looking for localized strings

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

Copyright © 2003 Apple Computer, Inc.