org.languagetool.gui
Class ConfigurationDialog

java.lang.Object
  extended by org.languagetool.gui.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()
           
 boolean getUseGUIConfig()
           
 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 setUseGUIConfig(boolean useGUIConfig)
           
 void show(List<Rule> rules)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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)

setUseGUIConfig

public void setUseGUIConfig(boolean useGUIConfig)

getUseGUIConfig

public boolean getUseGUIConfig()

getRunServer

public boolean getRunServer()

setServerPort

public void setServerPort(int serverPort)

getServerPort

public int getServerPort()


Copyright © 2013. All Rights Reserved.