de.danielnaber.languagetool.gui
Class ConfigurationDialog

Object
  extended by ConfigurationDialog
All Implemented Interfaces:
ActionListener, EventListener

public class ConfigurationDialog
extends Object
implements ActionListener

Dialog that offers the available rules so they can be turned on/off individually.

Author:
Daniel Naber

Constructor Summary
ConfigurationDialog(Frame owner, boolean insideOOo)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 Set<String> getDisabledCategoryNames()
           
 Set<String> getDisabledRuleIds()
           
 Set<String> getEnabledRuleIds()
           
 Language getMotherTongue()
           
 boolean getRunServer()
           
 int getServerPort()
           
static void main(String[] args)
          For internal testing only.
 void setDisabledCategories(Set<String> categoryNames)
           
 void setDisabledRules(Set<String> ruleIDs)
           
 void setEnabledRules(Set<String> ruleIDs)
           
 void setMotherTongue(Language motherTongue)
           
 void setRunServer(boolean serverMode)
           
 void setServerPort(int serverPort)
           
 void show(List<Rule> rules)
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationDialog

public ConfigurationDialog(Frame owner,
                           boolean insideOOo)
Method Detail

show

public void show(List<Rule> rules)

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

setDisabledRules

public void setDisabledRules(Set<String> ruleIDs)

getDisabledRuleIds

public Set<String> getDisabledRuleIds()

setEnabledRules

public void setEnabledRules(Set<String> ruleIDs)

getEnabledRuleIds

public Set<String> getEnabledRuleIds()

setDisabledCategories

public void setDisabledCategories(Set<String> categoryNames)

getDisabledCategoryNames

public Set<String> getDisabledCategoryNames()

setMotherTongue

public void setMotherTongue(Language motherTongue)

getMotherTongue

public Language getMotherTongue()

setRunServer

public void setRunServer(boolean serverMode)

getRunServer

public boolean getRunServer()

setServerPort

public void setServerPort(int serverPort)

getServerPort

public int getServerPort()

main

public static void main(String[] args)
                 throws IOException,
                        ParserConfigurationException,
                        SAXException
For internal testing only.

Throws:
IOException
ParserConfigurationException
SAXException


Copyright © 2005-2007 Daniel Naber