站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

DialogSupport (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Class DialogSupport

java.lang.Object
  extended by org.netbeans.editor.DialogSupport

Deprecated. See org.openide.spi.editor.lib2.DialogFactory. DialogSupport has no public replacement.

public class DialogSupport
extends Object

DialogSupport is factory based class for creating dialogs of certain behaviour. It is intended to be used whenever editor needs to popup a dialog. It presents a way for changing the implementation of the dialog depending on the enviroment the Editor is embeded in.


Nested Class Summary
static interface DialogSupport.DialogFactory
          Deprecated. DialogFactory implementation is a class responsible for providing proper implementation of Dialog containing required widgets.
 
Method Summary
static Dialog createDialog(String title, JPanel panel, boolean modal, JButton[] buttons, boolean sidebuttons, int defaultIndex, int cancelIndex, ActionListener listener)
          Deprecated. The method for creating a dialog with specified properties.
static void setDialogFactory(DialogSupport.DialogFactory factory)
          Deprecated. The method for setting custom factory for creating dialogs via the createDialog method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDialog

public static Dialog createDialog(String title,
                                  JPanel panel,
                                  boolean modal,
                                  JButton[] buttons,
                                  boolean sidebuttons,
                                  int defaultIndex,
                                  int cancelIndex,
                                  ActionListener listener)
Deprecated. 
The method for creating a dialog with specified properties.

Parameters:
title - The title of created dialog.
panel - The content of the dialog to be displayed.
modal - Whether the dialog should be modal.
buttons - The array of JButtons to be added to the dialog.
sidebuttons - The buttons could be placed under the panel (false), or on the right side of the panel (true).
defaultIndex - The index of default button in the buttons array, if index < 0, no default button is set.
cancelIndex - The index about cancel button - the button that will be pressed when closing the dialog.
listener - The listener which will be notified of all button events.
Returns:
newly created Dialog

setDialogFactory

public static void setDialogFactory(DialogSupport.DialogFactory factory)
Deprecated. 
The method for setting custom factory for creating dialogs via the createDialog method. If no factory is set, the DefaultDialogFactory will be used.

Parameters:
factory - the DialogFactory implementation that will be responsible for providing dialogs.
See Also:
DialogSupport.DialogFactory, DialogSupport.DefaultDialogFactory

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.