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
/** * /* w w w. j a v a2 s . c om*/ * @return */ public String getTableRowOddColor() { Element el = settingsFile.getRootElement().getChild(SETTING_TABLEODDROWCOLOR); if (el != null) return el.getText(); return "f8f8f8"; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * Gets the setting for the highlighting of search results. when activated, the search terms * in the search results window (CSearchResults) are highlighted. * @return {@code true} if search terms should be highlighted *//*from ww w . j a v a2 s . c om*/ public boolean getHighlightSearchResults() { Element el = settingsFile.getRootElement().getChild(SETTING_HIGHLIGHTSEARCHRESULTS); 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 highlighting of keywords in the main frame's entry-content. * when activated, the keywords of an entry that appear in the entry-content are highlighted. * @return {@code true} if keywords should be highlighted *//*ww w . j a v a 2 s . com*/ public boolean getHighlightKeywords() { Element el = settingsFile.getRootElement().getChild(SETTING_HIGHLIGHTKEYWORDS); 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 showing an entry from the search results window immediatley. * when activated, a selected entry in the search results window is immediately displayed * in the main window./* w w w . j ava2 s . com*/ * @return {@code true} if entry should be displayed at once */ public boolean getShowSearchEntry() { Element el = settingsFile.getRootElement().getChild(SETTING_SHOWSEARCHENTRY); 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 the footnotes should be superscripted or not. A superscripted * footnote is displayed smaller, but changes the line-height. * @return {@code true} if footnote should be superscripted *///w w w.j a v a 2 s. c o m public boolean getSupFootnote() { Element el = settingsFile.getRootElement().getChild(SETTING_SUPFOOTNOTE); 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 click on the footnotes should open the tab with the authorlist * and select the related author or not. * @return {@code true} if footnote should show the related author in the tabbed pane *///from w ww . j a v a 2s .co m public boolean getJumpFootnote() { Element el = settingsFile.getRootElement().getChild(SETTING_JUMPFOOTNOTE); 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 search request should search in entries within a certain * date-range./* w w w. ja va2 s . c o m*/ * @return {@code true} if search should look for entries with a certain date (timestamp) */ public boolean getSearchTime() { Element el = settingsFile.getRootElement().getChild(SETTING_SEARCHTIME); 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 which logicalk-combination the user chose for the last search request. * @return 0 if search was log-and; 1 for log-or and 2 for log-not. *//*from www . ja v a2 s . c o m*/ public int getSearchLog() { Element el = settingsFile.getRootElement().getChild(SETTING_SEARCHLOG); if (el != null) { return Integer.parseInt(el.getText()); } return 0; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * Gets the setting for the thumbnail width of images. This value indicates the maximum * width of images which are displayed in the textfield. larger images are resized to fit * the preferred maximum size and a link to the original image is inserted. * //from ww w. j a v a 2 s . c om * @return the preferred maximum width of an image */ public int getImageResizeWidth() { Element el = settingsFile.getRootElement().getChild(SETTING_IMGRESIZEWIDTH); if (el != null) return Integer.parseInt(el.getText()); return 300; }
From source file:de.danielluedecke.zettelkasten.database.Settings.java
License:Open Source License
/** * Gets the setting for the thumbnail width of images. This value indicates the maximum * width of images which are displayed in the textfield. larger images are resized to fit * the preferred maximum size and a link to the original image is inserted. * /* w ww. j ava2s . c o m*/ * @return the preferred maximum width of an image */ public int getImageResizeHeight() { Element el = settingsFile.getRootElement().getChild(SETTING_IMGRESIZEHEIGHT); if (el != null) return Integer.parseInt(el.getText()); return 300; }