List of usage examples for org.jdom2 Element getText
public String getText()
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * Gets the setting whether the warning dialog in the desktop window, that tells the user * if added entries already have been added before, should be shown or not. * @return {@code true} if the warning dialog in the desktop window, that tells the user * if added entries already have been added before, should be shown *//*ww w . j a va 2s.c o m*/ public boolean getHideMultipleDesktopOccurencesDlg() { Element el = settingsFile.getRootElement().getChild(SETTING_HIDEMULTIPLEDESKTOPOCCURENCESDLG); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * Gets the setting whether a table of contents should be created when exporting desktop data. * @return {@code true} if a table of contents should be created when exporting desktop data. *///from w ww. j a v a 2 s. c o m public boolean getTOCForDesktopExport() { Element el = settingsFile.getRootElement().getChild(SETTING_TOCFORDESKTOPEXPORT); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * Gets the setting whether multiple lines in the output file of the desktop data should be * removed or not./*from w w w . ja v a 2s. c o m*/ * @return {@code true} if multiple lines in the output file of the desktop data should be * removed */ public boolean getRemoveLinesForDesktopExport() { Element el = settingsFile.getRootElement().getChild(SETTING_REMOVELINESFORDESKTOPEXPORT); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * Gets the setting for the autobackup-option. * @return {@code true} if autobackup should be activated *//*from ww w . j a v a2 s. c o m*/ public boolean getAutoNightlyUpdate() { Element el = settingsFile.getRootElement().getChild(SETTING_AUTONIGHTLYUPDATE); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * Gets the setting for the autobackup-option. * @return {@code true} if autobackup should be activated */// w ww .ja v a 2s .c o m public boolean getShowIconText() { Element el = settingsFile.getRootElement().getChild(SETTING_SHOWICONTEXT); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
public boolean getAutoCompleteTags() { Element el = settingsFile.getRootElement().getChild(SETTING_AUTOCOMPLETETAGS); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
public boolean getUseMacBackgroundColor() { Element el = settingsFile.getRootElement().getChild(SETTING_USEMACBACKGROUNDCOLOR); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
public boolean getMarkdownActivated() { Element el = settingsFile.getRootElement().getChild(SETTING_MARKDOWNACTIVATED); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * Gets the setting for the autobackup-option. * @return {@code true} if autobackup should be activated *//*from w w w. java 2 s.com*/ public boolean getExtraBackup() { Element el = settingsFile.getRootElement().getChild(SETTING_EXTRABACKUP); if (el != null) return el.getText().equals("1"); return false; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
public String getCustomCSS(int what) { String ch;// w w w . j a v a 2s . c om switch (what) { case CUSTOM_CSS_ENTRY: ch = SETTING_CUSTOMCSSENTRY; break; case CUSTOM_CSS_DESKTOP: ch = SETTING_CUSTOMCSSDESKTOP; break; default: ch = SETTING_CUSTOMCSSENTRY; break; } Element el = settingsFile.getRootElement().getChild(ch); if (el != null) return el.getText(); return null; }