| org.netbeans.spi.editor.DialogFactory
All known Subclasses: org.netbeans.modules.editor.impl.NbDialogFactory,
DialogFactory | public interface DialogFactory (Code) | | DialogFactory implementation is a class responsible for providing
proper implementation of Dialog containing required widgets.
It can provide the dialog itself or delegate the functionality
to another piece of code, e.g some windowing system.
author: pnejedly version: 1.0 |
Method Summary | |
public Dialog | createDialog(String title, JPanel panel, boolean modal, JButton[] buttons, boolean sidebuttons, int defaultIndex, int cancelIndex, ActionListener listener) The method for creating a dialog with specified properties.
Parameters: title - The title of created dialog. Parameters: panel - The content of the dialog to be displayed. Parameters: modal - Whether the dialog should be modal. Parameters: buttons - The array of JButtons to be added to the dialog. Parameters: sidebuttons - The buttons could be placed under the panel (false),or on the right side of the panel (true). Parameters: defaultIndex - The index of default button in the buttons array,if index < 0 , no default button is set. Parameters: cancelIndex - The index of cancel button - the button that willbe pressed when closing the dialog. Parameters: listener - The listener which will be notified of all buttonevents. |
createDialog | public Dialog createDialog(String title, JPanel panel, boolean modal, JButton[] buttons, boolean sidebuttons, int defaultIndex, int cancelIndex, ActionListener listener)(Code) | | The method for creating a dialog with specified properties.
Parameters: title - The title of created dialog. Parameters: panel - The content of the dialog to be displayed. Parameters: modal - Whether the dialog should be modal. Parameters: buttons - The array of JButtons to be added to the dialog. Parameters: sidebuttons - The buttons could be placed under the panel (false),or on the right side of the panel (true). Parameters: defaultIndex - The index of default button in the buttons array,if index < 0 , no default button is set. Parameters: cancelIndex - The index of cancel button - the button that willbe pressed when closing the dialog. Parameters: listener - The listener which will be notified of all buttonevents. newly created Dialog |
|
|