GrammarScope  4.0.0
Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
grammarscope.browser.dialog.LanguageDialog Class Reference
Inheritance diagram for grammarscope.browser.dialog.LanguageDialog:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.browser.dialog.LanguageDialog:
Collaboration graph
[legend]

Public Member Functions

 LanguageDialog (final Language language, final Frame owner)
 
 LanguageDialog (final Language language, final Frame owner, final Language... languages)
 
Language getLanguage ()
 
void setVisible (final boolean show)
 

Public Attributes

boolean ok
 

Private Member Functions

void initialize ()
 
JPanel makePanel ()
 
JPanel makeCommandPanel ()
 
JButton makeOkButton ()
 
JButton makeCancelButton ()
 
void comboBoxToSettings (final LanguageComboBox comboBox)
 
void settingsToComboBox (final LanguageComboBox comboBox)
 

Static Private Member Functions

static LanguageComboBox makeComboBox (final Language[] options)
 

Private Attributes

Language language
 
final Language[] languages
 
LanguageComboBox languageComboBox
 

Static Private Attributes

static final long serialVersionUID = 1L
 
static final String DEFAULT = "<DEFAULT>"
 

Detailed Description

Settings dialog

Author
Bernard Bou

Constructor & Destructor Documentation

◆ LanguageDialog() [1/2]

grammarscope.browser.dialog.LanguageDialog.LanguageDialog ( final Language  language,
final Frame  owner 
)

Constructor

Parameters
languagelanguage
ownerframe owner

◆ LanguageDialog() [2/2]

grammarscope.browser.dialog.LanguageDialog.LanguageDialog ( final Language  language,
final Frame  owner,
final Language...  languages 
)

Constructor

Parameters
languagelanguage
ownerframe owner

Member Function Documentation

◆ comboBoxToSettings()

void grammarscope.browser.dialog.LanguageDialog.comboBoxToSettings ( final LanguageComboBox  comboBox)
private

◆ getLanguage()

Language grammarscope.browser.dialog.LanguageDialog.getLanguage ( )
Returns
the language

◆ initialize()

void grammarscope.browser.dialog.LanguageDialog.initialize ( )
private

Initialize

◆ makeCancelButton()

JButton grammarscope.browser.dialog.LanguageDialog.makeCancelButton ( )
private

Make cancel button

Returns
cancel button

◆ makeComboBox()

static LanguageComboBox grammarscope.browser.dialog.LanguageDialog.makeComboBox ( final Language[]  options)
staticprivate

Make combobox

Parameters
optionsoptions
Returns
combobox

◆ makeCommandPanel()

JPanel grammarscope.browser.dialog.LanguageDialog.makeCommandPanel ( )
private

Make command panel

Returns
command panel

◆ makeOkButton()

JButton grammarscope.browser.dialog.LanguageDialog.makeOkButton ( )
private

Make ok button

Returns
ok button

◆ makePanel()

JPanel grammarscope.browser.dialog.LanguageDialog.makePanel ( )
private

Make language settings panel

Returns
settings panel

◆ settingsToComboBox()

void grammarscope.browser.dialog.LanguageDialog.settingsToComboBox ( final LanguageComboBox  comboBox)
private

◆ setVisible()

void grammarscope.browser.dialog.LanguageDialog.setVisible ( final boolean  show)

Member Data Documentation

◆ DEFAULT

final String grammarscope.browser.dialog.LanguageDialog.DEFAULT = "<DEFAULT>"
staticprivate

◆ language

Language grammarscope.browser.dialog.LanguageDialog.language
private

◆ languageComboBox

LanguageComboBox grammarscope.browser.dialog.LanguageDialog.languageComboBox
private

Language name

◆ languages

final Language [] grammarscope.browser.dialog.LanguageDialog.languages
private

Languages

◆ ok

boolean grammarscope.browser.dialog.LanguageDialog.ok

Whether OK button was pressed

◆ serialVersionUID

final long grammarscope.browser.dialog.LanguageDialog.serialVersionUID = 1L
staticprivate

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