Performs an action assigned to the selected list element in the menu component.
()
| 1678 | * Performs an action assigned to the selected list element in the menu component. |
| 1679 | */ |
| 1680 | public void menuAction() {//GEN-END:|429-action|0|429-preAction |
| 1681 | // enter pre-action user code here |
| 1682 | String __selectedString = getMenu().getString(getMenu().getSelectedIndex());//GEN-BEGIN:|429-action|1|470-preAction |
| 1683 | if (__selectedString != null) { |
| 1684 | if (__selectedString.equals("Open book")) {//GEN-END:|429-action|1|470-preAction |
| 1685 | // write pre-action user code here |
| 1686 | openLibrary();//GEN-LINE:|429-action|2|470-postAction |
| 1687 | // write post-action user code here |
| 1688 | } else if (__selectedString.equals("Table of contents")) {//GEN-LINE:|429-action|3|469-preAction |
| 1689 | // write pre-action user code here |
| 1690 | showToc();//GEN-LINE:|429-action|4|469-postAction |
| 1691 | // write post-action user code here |
| 1692 | } else if (__selectedString.equals("Bookmarks")) {//GEN-LINE:|429-action|5|936-preAction |
| 1693 | // write pre-action user code here |
| 1694 | bookCanvas.setupNewBookmark(); |
| 1695 | switchDisplayable(null, getBookmarks());//GEN-LINE:|429-action|6|936-postAction |
| 1696 | // write post-action user code here |
| 1697 | } else if (__selectedString.equals("Book details")) {//GEN-LINE:|429-action|7|734-preAction |
| 1698 | // write pre-action user code here |
| 1699 | showBookInfo();//GEN-LINE:|429-action|8|734-postAction |
| 1700 | // write post-action user code here |
| 1701 | } else if (__selectedString.equals("Setup hyphenation")) {//GEN-LINE:|429-action|9|1045-preAction |
| 1702 | // write pre-action user code here |
| 1703 | switchDisplayable(null, getLanguages());//GEN-LINE:|429-action|10|1045-postAction |
| 1704 | // write post-action user code here |
| 1705 | } else if (__selectedString.equals("Set encoding")) {//GEN-LINE:|429-action|11|1046-preAction |
| 1706 | // write pre-action user code here |
| 1707 | switchDisplayable(null, getEncodings());//GEN-LINE:|429-action|12|1046-postAction |
| 1708 | // write post-action user code here |
| 1709 | } else if (__selectedString.equals("Lookup word")) {//GEN-LINE:|429-action|13|471-preAction |
| 1710 | // write pre-action user code here |
| 1711 | setEntryForLookup(""); |
| 1712 | enterWord();//GEN-LINE:|429-action|14|471-postAction |
| 1713 | // write post-action user code here |
| 1714 | } else if (__selectedString.equals("Convert number")) {//GEN-LINE:|429-action|15|472-preAction |
| 1715 | // write pre-action user code here |
| 1716 | setEntryForLookup(""); |
| 1717 | enterNumber();//GEN-LINE:|429-action|16|472-postAction |
| 1718 | // write post-action user code here |
| 1719 | } else if (__selectedString.equals("Font size")) {//GEN-LINE:|429-action|17|473-preAction |
| 1720 | // write pre-action user code here |
| 1721 | setFontSize();//GEN-LINE:|429-action|18|473-postAction |
| 1722 | // write post-action user code here |
| 1723 | } else if (__selectedString.equals("Switch day / night")) {//GEN-LINE:|429-action|19|474-preAction |
| 1724 | // write pre-action user code here |
| 1725 | bookCanvas.cycleColorSchemes(); |
| 1726 | switchDisplayable(null, bookCanvas);//GEN-LINE:|429-action|20|474-postAction |
| 1727 | // write post-action user code here |
| 1728 | } else if (__selectedString.equals("Choose colors")) {//GEN-LINE:|429-action|21|475-preAction |
| 1729 | // write pre-action user code here |
| 1730 | setColorScheme();//GEN-LINE:|429-action|22|475-postAction |
| 1731 | // write post-action user code here |
| 1732 | } else if (__selectedString.equals("Screen mode")) {//GEN-LINE:|429-action|23|476-preAction |
| 1733 | // write pre-action user code here |
| 1734 | setSreenMode();//GEN-LINE:|429-action|24|476-postAction |
| 1735 | // write post-action user code here |
| 1736 | } else if (__selectedString.equals("Page interaction")) {//GEN-LINE:|429-action|25|588-preAction |
| 1737 | // write pre-action user code here |
no test coverage detected