$darkmode
DENOPTIM
denoptim.gui.GUIModalDialog Class Reference
Inheritance diagram for denoptim.gui.GUIModalDialog:
[legend]
Collaboration diagram for denoptim.gui.GUIModalDialog:
[legend]

Public Member Functions

 GUIModalDialog (Component refForPlacement)
 Constructor. More...
 
 GUIModalDialog (Component refForPlacement, boolean useExtraButton)
 Constructor. More...
 
Object showDialog ()
 Shows the dialog and restrains the modality to it, until the dialog gets closed. More...
 
void addToNorthPane (JComponent comp)
 Adds a component to the topmost part of this dialog frame. More...
 
void addToCentralPane (JComponent comp)
 Adds a component to the central part of this dialog frame. More...
 

Protected Member Functions

void close ()
 Closes the dialog window. More...
 

Protected Attributes

JButton btnDone
 The button that is used to launch the processing of the data given to the open dialog, and close the dialog window. More...
 
JButton btnCanc
 The button that is used to close the dialog without processing any input. More...
 
JButton btnExtra
 The button that can be used for any action that does not close the dialog. More...
 
Object result = null
 The result to be returned once the dialog is closed. More...
 

Private Member Functions

void initialize (boolean useExtraButton)
 

Private Attributes

JPanel pnlControls
 

Static Private Attributes

static final long serialVersionUID = 8562693062507200623L
 Version UID. More...
 

Detailed Description

Definition at line 34 of file GUIModalDialog.java.

Constructor & Destructor Documentation

◆ GUIModalDialog() [1/2]

denoptim.gui.GUIModalDialog.GUIModalDialog ( Component  refForPlacement)

Constructor.

Parameters
refForPlacementa component close to which the dialog window should be opened.

Definition at line 74 of file GUIModalDialog.java.

Referenced by denoptim.gui.CuttingRulesSelectionDialog.SMARTSVisualizationButton.SMARTSVisualizationButton().

Here is the caller graph for this function:

◆ GUIModalDialog() [2/2]

denoptim.gui.GUIModalDialog.GUIModalDialog ( Component  refForPlacement,
boolean  useExtraButton 
)

Constructor.

Parameters
refForPlacementa component close to which the dialog window should be opened.
useExtraButtonuse true to make a dialog with three buttons, which you can edit afterwards.

Definition at line 88 of file GUIModalDialog.java.

References denoptim.gui.GUIModalDialog.initialize().

Here is the call graph for this function:

Member Function Documentation

◆ addToCentralPane()

void denoptim.gui.GUIModalDialog.addToCentralPane ( JComponent  comp)

Adds a component to the central part of this dialog frame.

Parameters
compthe component to be added.

Definition at line 166 of file GUIModalDialog.java.

Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog(), denoptim.gui.FSParamsDialog.FSParamsDialog(), denoptim.gui.GUIAPClassDefinitionDialog.GUIAPClassDefinitionDialog(), denoptim.gui.GUIVertexSelector.GUIVertexSelector(), and denoptim.gui.CuttingRulesSelectionDialog.SMARTSVisualizationButton.SMARTSVisualizationButton().

Here is the caller graph for this function:

◆ addToNorthPane()

void denoptim.gui.GUIModalDialog.addToNorthPane ( JComponent  comp)

Adds a component to the topmost part of this dialog frame.

Parameters
compthe component to be added.

Definition at line 155 of file GUIModalDialog.java.

Referenced by denoptim.gui.GUIVertexSelector.GUIVertexSelector().

Here is the caller graph for this function:

◆ close()

void denoptim.gui.GUIModalDialog.close ( )
protected

◆ initialize()

void denoptim.gui.GUIModalDialog.initialize ( boolean  useExtraButton)
private

Definition at line 98 of file GUIModalDialog.java.

References denoptim.gui.GUIModalDialog.btnCanc, denoptim.gui.GUIModalDialog.btnDone, denoptim.gui.GUIModalDialog.btnExtra, denoptim.gui.GUIModalDialog.close(), denoptim.gui.GUIModalDialog.pnlControls, and denoptim.gui.GUIModalDialog.result.

Referenced by denoptim.gui.GUIModalDialog.GUIModalDialog().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showDialog()

Member Data Documentation

◆ btnCanc

◆ btnDone

◆ btnExtra

JButton denoptim.gui.GUIModalDialog.btnExtra
protected

◆ pnlControls

JPanel denoptim.gui.GUIModalDialog.pnlControls
private

Definition at line 60 of file GUIModalDialog.java.

Referenced by denoptim.gui.GUIModalDialog.initialize().

◆ result

◆ serialVersionUID

final long denoptim.gui.GUIModalDialog.serialVersionUID = 8562693062507200623L
staticprivate

Version UID.

Definition at line 40 of file GUIModalDialog.java.


The documentation for this class was generated from the following file: