WebObjects 5.4.2

com.webobjects.eointerface.swing
Class EOSwingSetPlugin

java.lang.Object
  extended by com.webobjects.eointerface.EOWidgetPluginRegistry.WidgetSetPlugin
      extended by com.webobjects.eointerface.swing.EOSwingSetPlugin

public class EOSwingSetPlugin
extends EOWidgetPluginRegistry.WidgetSetPlugin

EOSwingSetPlugin is a concrete subclass of EOWidgetPluginRegistry.WidgetSetPlugin which is used to diplay alerts using JFC.


Field Summary
 
Fields inherited from class com.webobjects.eointerface.EOWidgetPluginRegistry.WidgetSetPlugin
AlertPanelAlternateAction, AlertPanelDefaultAction, AlertPanelOtherAction
 
Constructor Summary
EOSwingSetPlugin()
          Creates a new EOSwingSetPlugin.
 
Method Summary
 int runAlertPanel(String title, String message, String defaultButton, String alternateButton, String otherButton)
          Displays an alert with up to three buttons, with all the configurations given in the parameters.
 
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

EOSwingSetPlugin

public EOSwingSetPlugin()
Creates a new EOSwingSetPlugin.

Method Detail

runAlertPanel

public int runAlertPanel(String title,
                         String message,
                         String defaultButton,
                         String alternateButton,
                         String otherButton)
Displays an alert with up to three buttons, with all the configurations given in the parameters.

Specified by:
runAlertPanel in class EOWidgetPluginRegistry.WidgetSetPlugin
Parameters:
title - a String for the window title of the alert
message - a String for the message text of the alert
defaultButton - a String for title of the default button
alternateButton - a String for title of an optional alternate button (or null if only one button wanted)
otherButton - a String for title of an optional third (other) button (or null if only two buttons wanted)
Returns:
an int indicating which button was pressed to close (answer) the alert

Last updated June 2008

Copyright © 2000-2008 Apple Inc.