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

Public Member Functions

 GUIAPClassDefinitionDialog (Component refForPlacement, boolean askForBO)
 
void setPreDefinedAPClass (String text)
 Sets the content of the text field with the given predefined text. More...
 
- Public Member Functions inherited from denoptim.gui.GUIModalDialog
 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...
 

Package Attributes

final Dimension fileLabelSize = new Dimension(250,28)
 Default sizes for file pathname labels. More...
 
final int preferredHeight
 Default text field height. More...
 
final Dimension strFieldSize = new Dimension(500,preferredHeight)
 

Private Attributes

JPanel centralPanel
 
String apcStringSyntax
 
JPanel pnlAPCName
 
JLabel lblAPCName
 
JTextField txtAPCName
 
JPanel pnlAPC2BO
 
JComboBox< BondTypecmbAPC2BO
 
JLabel lblAPC2BO
 

Static Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from denoptim.gui.GUIModalDialog
void close ()
 Closes the dialog window. More...
 
- Protected Attributes inherited from denoptim.gui.GUIModalDialog
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...
 

Detailed Description

Definition at line 39 of file GUIAPClassDefinitionDialog.java.

Constructor & Destructor Documentation

◆ GUIAPClassDefinitionDialog()

Member Function Documentation

◆ setPreDefinedAPClass()

void denoptim.gui.GUIAPClassDefinitionDialog.setPreDefinedAPClass ( String  text)

Sets the content of the text field with the given predefined text.

Parameters
text

Definition at line 160 of file GUIAPClassDefinitionDialog.java.

References denoptim.gui.GUIAPClassDefinitionDialog.txtAPCName.

Referenced by denoptim.gui.GUIVertexInspector.saveUnsavedChanges().

Here is the caller graph for this function:

Member Data Documentation

◆ apcStringSyntax

String denoptim.gui.GUIAPClassDefinitionDialog.apcStringSyntax
private
Initial value:
= "The valid syntax for APClass "
+ "strings is:<br><br><code>rule"
+ DENOPTIMConstants.SEPARATORAPPROPSCL
+ "subClass</code><br><br> where "
+ "<ul><li><code>rule</code>"
+ " is a string with no spaces</li>"
+ "<li><code>subClass</code> is "
+ "an integer</li></ul><br>"

Definition at line 62 of file GUIAPClassDefinitionDialog.java.

Referenced by denoptim.gui.GUIAPClassDefinitionDialog.GUIAPClassDefinitionDialog().

◆ centralPanel

JPanel denoptim.gui.GUIAPClassDefinitionDialog.centralPanel
private

◆ cmbAPC2BO

JComboBox<BondType> denoptim.gui.GUIAPClassDefinitionDialog.cmbAPC2BO
private

◆ fileLabelSize

final Dimension denoptim.gui.GUIAPClassDefinitionDialog.fileLabelSize = new Dimension(250,28)
package

Default sizes for file pathname labels.

Definition at line 50 of file GUIAPClassDefinitionDialog.java.

◆ lblAPC2BO

JLabel denoptim.gui.GUIAPClassDefinitionDialog.lblAPC2BO
private

◆ lblAPCName

JLabel denoptim.gui.GUIAPClassDefinitionDialog.lblAPCName
private

◆ pnlAPC2BO

JPanel denoptim.gui.GUIAPClassDefinitionDialog.pnlAPC2BO
private

◆ pnlAPCName

JPanel denoptim.gui.GUIAPClassDefinitionDialog.pnlAPCName
private

◆ preferredHeight

final int denoptim.gui.GUIAPClassDefinitionDialog.preferredHeight
package
Initial value:
=
(int) (new JTextField()).getPreferredSize().getHeight()

Default text field height.

Definition at line 55 of file GUIAPClassDefinitionDialog.java.

◆ serialVersionUID

final long denoptim.gui.GUIAPClassDefinitionDialog.serialVersionUID = 3L
staticprivate

Version UID.

Definition at line 45 of file GUIAPClassDefinitionDialog.java.

◆ strFieldSize

final Dimension denoptim.gui.GUIAPClassDefinitionDialog.strFieldSize = new Dimension(500,preferredHeight)
package

◆ txtAPCName

JTextField denoptim.gui.GUIAPClassDefinitionDialog.txtAPCName
private

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