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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
EOWidgetPluginRegistry.WidgetSetPlugin
public EOWidgetPluginRegistry.WidgetSetPlugin()
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 windowmessage
- message contents of the alert paneldefaultButton
- display string of the panel's default buttonalternateButton
- display string of the panel's 'alternate' buttonotherButton
- 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 windowmessage
- message contents of the error panelokButton
- 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
Copyright © 2003 Apple Computer, Inc.