1 package org.columba.mail.config; 17 18 import java.io.File ; 19 20 import org.columba.core.config.DefaultXmlConfig; 21 import org.columba.core.config.ViewItem; 22 23 24 public class ComposerOptionsXmlConfig extends DefaultXmlConfig { 25 ViewItem viewItem; 27 SpellcheckItem spellcheckItem; 28 29 public ComposerOptionsXmlConfig(File file) { 30 super(file); 31 } 32 33 public ViewItem getViewItem() { 34 if (viewItem == null) { 35 viewItem = new ViewItem(getRoot().getElement("/options/gui/view")); 36 } 37 38 return viewItem; 39 } 40 41 public SpellcheckItem getSpellcheckItem() { 42 if (spellcheckItem == null) { 43 spellcheckItem = new SpellcheckItem(getRoot().getElement("/options/spellcheck")); 44 } 45 46 return spellcheckItem; 47 } 48 } 49 | Popular Tags |