MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / getMenu

Method getMenu

src/org/albite/albite/AlbiteMIDlet.java:1626–1673  ·  view source on GitHub ↗

Returns an initiliazed instance of menu component. @return the initialized component instance

()

Source from the content-addressed store, hash-verified

1624 * @return the initialized component instance
1625 */
1626 public List getMenu() {
1627 if (menu == null) {//GEN-END:|429-getter|0|429-preInit
1628 // write pre-init user code here
1629 menu = new List("Albite READER" + title + version, Choice.IMPLICIT);//GEN-BEGIN:|429-getter|1|429-postInit
1630 menu.append("Open book", null);
1631 menu.append("Table of contents", null);
1632 menu.append("Bookmarks", null);
1633 menu.append("Book details", null);
1634 menu.append("Setup hyphenation", null);
1635 menu.append("Set encoding", null);
1636 menu.append("Lookup word", null);
1637 menu.append("Convert number", null);
1638 menu.append("Font size", null);
1639 menu.append("Switch day / night", null);
1640 menu.append("Choose colors", null);
1641 menu.append("Screen mode", null);
1642 menu.append("Page interaction", null);
1643 menu.append("Page layout", null);
1644 menu.append("Set dictionary folder", null);
1645 menu.append("Switch Native / Bitmap Fonts", null);
1646 menu.append("About", null);
1647 menu.append("Quit", null);
1648 menu.addCommand(getNEXT_COMMAND());
1649 menu.addCommand(getBACK_COMMAND());
1650 menu.setCommandListener(this);
1651 menu.setFitPolicy(Choice.TEXT_WRAP_OFF);
1652 menu.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false });//GEN-END:|429-getter|1|429-postInit
1653 // write post-init user code here
1654
1655 /*
1656 * Remove some actions not used in light mode
1657 */
1658 //#if (TinyMode || TinyModeExport || LightMode || LightModeExport)
1659//# menu.delete(14);
1660//# menu.delete(11);
1661 //#endif
1662
1663 //#if (TinyMode || TinyModeExport)
1664//# menu.delete(8);
1665 //#endif
1666
1667 //#if (TinyMode || TinyModeExport || LightMode || LightModeExport)
1668//# menu.delete(6);
1669//# menu.delete(4);
1670 //#endif
1671 }//GEN-BEGIN:|429-getter|2|
1672 return menu;
1673 }
1674 //</editor-fold>//GEN-END:|429-getter|2|
1675
1676 //<editor-fold defaultstate="collapsed" desc=" Generated Method: menuAction ">//GEN-BEGIN:|429-action|0|429-preAction

Callers 4

showMenuMethod · 0.95
menuActionMethod · 0.95
returnToMenuMethod · 0.95
backToContextMenuMethod · 0.95

Calls 3

getNEXT_COMMANDMethod · 0.95
getBACK_COMMANDMethod · 0.95
setCommandListenerMethod · 0.45

Tested by

no test coverage detected