List of usage examples for org.jdom2 Element setText
public Element setText(final String text)
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * // ww w . j av a2 s . c o m * @param val */ public void setLatexExportCreateFormTags(boolean val) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTFORMTAG); if (null == el) { el = new Element(SETTING_LATEXEXPORTFORMTAG); settingsFile.getRootElement().addContent(el); } el.setText((val) ? "1" : "0"); }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * //from w w w. j av a 2 s.co m * @param val */ public void setLatexExportFootnoteRef(boolean val) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTFOOTNOTE); if (null == el) { el = new Element(SETTING_LATEXEXPORTFOOTNOTE); settingsFile.getRootElement().addContent(el); } el.setText((val) ? "1" : "0"); }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * // ww w . j ava 2 s .c o m * @param value */ public void setLastUsedLatexBibStyle(int value) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTLASTUSEDBIBSTYLE); if (null == el) { el = new Element(SETTING_LATEXEXPORTLASTUSEDBIBSTYLE); settingsFile.getRootElement().addContent(el); } el.setText(String.valueOf(value)); }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * //from w ww . j ava2 s . c om * @param value */ public void setLastUsedLatexDocClass(int value) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTDOCUMENTCLASS); if (null == el) { el = new Element(SETTING_LATEXEXPORTDOCUMENTCLASS); settingsFile.getRootElement().addContent(el); } el.setText(String.valueOf(value)); }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * /*from w ww.j a v a 2 s . co m*/ * @param val */ public void setLatexExportShowAuthor(boolean val) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTSHOWAUTHOR); if (null == el) { el = new Element(SETTING_LATEXEXPORTSHOWAUTHOR); settingsFile.getRootElement().addContent(el); } el.setText((val) ? "1" : "0"); }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * /*from w w w . ja v a 2 s . c o m*/ * @param val */ public void setLatexExportShowMail(boolean val) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTSHOWMAIL); if (null == el) { el = new Element(SETTING_LATEXEXPORTSHOWMAIL); settingsFile.getRootElement().addContent(el); } el.setText((val) ? "1" : "0"); }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * /* ww w . j a v a 2 s . co m*/ * @param val */ public void setLatexExportConvertQuotes(boolean val) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTCONVERTQUOTES); if (null == el) { el = new Element(SETTING_LATEXEXPORTCONVERTQUOTES); settingsFile.getRootElement().addContent(el); } el.setText((val) ? "1" : "0"); }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * // w w w . j av a 2s . co m * @param val */ public void setLatexExportCenterForm(boolean val) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTCENTERFORM); if (null == el) { el = new Element(SETTING_LATEXEXPORTCENTERFORM); settingsFile.getRootElement().addContent(el); } el.setText((val) ? "1" : "0"); }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * /*from w w w. ja v a2s . com*/ * @param val */ public void setLatexExportRemoveNonStandardTags(boolean val) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTREMOVENONSTANDARDTAGS); if (null == el) { el = new Element(SETTING_LATEXEXPORTREMOVENONSTANDARDTAGS); settingsFile.getRootElement().addContent(el); } el.setText((val) ? "1" : "0"); }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * //from ww w . j av a2 s. c om * @param val */ public void setLatexExportStatisticTableStyle(boolean val) { Element el = settingsFile.getRootElement().getChild(SETTING_LATEXEXPORTTABLESTATSTYLE); if (null == el) { el = new Element(SETTING_LATEXEXPORTTABLESTATSTYLE); settingsFile.getRootElement().addContent(el); } el.setText((val) ? "1" : "0"); }