Package org.languagetool.gui
Class LanguageManagerDialog
- java.lang.Object
-
- org.languagetool.gui.LanguageManagerDialog
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.util.EventListener
public class LanguageManagerDialog extends java.lang.Object implements java.awt.event.ActionListener
Dialog for managing externally loaded rules.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LanguageManagerDialog.XMLFileFilter
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JButton
addButton
private javax.swing.JButton
closeButton
private javax.swing.JDialog
dialog
private javax.swing.JList<java.io.File>
list
private java.util.ResourceBundle
messages
private java.awt.Frame
owner
private javax.swing.JButton
removeButton
private java.util.List<java.io.File>
ruleFiles
-
Constructor Summary
Constructors Constructor Description LanguageManagerDialog(java.awt.Frame owner, java.util.List<org.languagetool.Language> languages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
(package private) java.util.List<org.languagetool.Language>
getLanguages()
Return all external Languages.void
show()
-
-
-
Field Detail
-
ruleFiles
private final java.util.List<java.io.File> ruleFiles
-
owner
private final java.awt.Frame owner
-
messages
private final java.util.ResourceBundle messages
-
dialog
private javax.swing.JDialog dialog
-
list
private javax.swing.JList<java.io.File> list
-
addButton
private javax.swing.JButton addButton
-
removeButton
private javax.swing.JButton removeButton
-
closeButton
private javax.swing.JButton closeButton
-
-
Method Detail
-
show
public void show()
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
getLanguages
java.util.List<org.languagetool.Language> getLanguages() throws java.lang.IllegalAccessException, java.lang.InstantiationException
Return all external Languages.- Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException
-
-