001: package simpleorm.simplewebapp.eg;
002:
003: import simpleorm.simplewebapp.core.WMenuItemGlobal;
004: import simpleorm.simplewebapp.core.WMenuParentGlobal;
005: import simpleorm.simplewebapp.eg.simple.*;
006: import simpleorm.simplewebapp.eg.database.*;
007: import simpleorm.simplewebapp.eg.token.*;
008:
009: public class WGlobalTestMenus extends WMenuParentGlobal {
010: public Simple simple = addSubMenu(new Simple(this ));
011: public Database database = addSubMenu(new Database(this ));
012: public Token token = addSubMenu(new Token(this ));
013:
014: public WGlobalTestMenus() {
015: super (null, "swb");
016: }
017:
018: static public class Simple extends WMenuParentGlobal {
019:
020: public Simple(WMenuParentGlobal parent) {
021: super (parent);
022: }
023:
024: public final WMenuItemGlobal home = addNewMenuItem(null,
025: "Home", "/", null);
026: public final WMenuItemGlobal manualList = addNewMenuItem(
027: WManualListPage.class, null);
028: public final WMenuItemGlobal manualCrud = addNewMenuItem(
029: WManualCrudPage.class, null).setSuccessItem(manualList);
030: public final WMenuItemGlobal autoList = addNewMenuItem(
031: WAutoListPage.class, null);
032: public final WMenuItemGlobal autoCrud = addNewMenuItem(
033: WAutoCrudPage.class, null).setSuccessItem(autoList);
034: public final WMenuItemGlobal tree = addNewMenuItem(
035: WTreePage.class, null);
036: public final WMenuItemGlobal manualListCrud = addNewMenuItem(
037: WManualListCrudPage.class, null);
038: public final WMenuItemGlobal admin = addNewMenuItem(
039: WAdminPage.class, "aui.admin");
040: public final WMenuItemGlobal upload = addNewMenuItem(
041: WUploadPage.class, null);
042: public final WMenuItemGlobal webService = addNewMenuItem(
043: WManualListPage.class,
044: "WebService",
045: "/swb/Simple/WManualListPage.xml?id=two&W_SubmitButton=Search",
046: null);
047: public final WMenuItemGlobal properties = addNewMenuItem(
048: WManualListPage.class,
049: "Properties",
050: "/swb/Simple/WManualListPage.properties?id=two&W_SubmitButton=Search",
051: null);
052: public final WMenuItemGlobal servlet = addNewMenuItem(
053: WManualListPage.class, "Servlet", null, null)
054: .setRenderer(WListRenderer.class);
055: }
056:
057: static public class Database extends WMenuParentGlobal {
058:
059: public Database(WMenuParentGlobal parent) {
060: super (parent);
061: }
062:
063: final WMenuItemGlobal home = addNewMenuItem(null, "Home", "/",
064: null);
065: public final WMenuItemGlobal init = addNewMenuItem(
066: WInitPage.class, null);
067: public final WMenuItemGlobal dumpRaw = addNewMenuItem(
068: WDumpRawPage.class, null);
069: public final WMenuItemGlobal userManualList = addNewMenuItem(
070: WUserManualListPage.class, null);
071: public final WMenuItemGlobal userManualCrud = addNewMenuItem(
072: WUserManualCrudPage.class, null).setSuccessItem(
073: userManualList);
074: public final WMenuItemGlobal userAutoList = addNewMenuItem(
075: WUserAutoListPage.class, null);
076: public final WMenuItemGlobal userAutoCrud = addNewMenuItem(
077: WUserAutoCrudPage.class, null).setSuccessItem(
078: userAutoList);
079: public final WMenuItemGlobal userTreeTest = addNewMenuItem(
080: WUserTreePage.class, null);
081: }
082:
083: static public class Token extends WMenuParentGlobal {
084: public Token(WMenuParentGlobal parent) {
085: super (parent);
086: }
087:
088: public Token() {
089: super (null);
090: }
091:
092: final WMenuItemGlobal home = addNewMenuItem(null, "Home", "/",
093: null);
094: public final WMenuItemGlobal tokenList = addNewMenuItem(
095: WTokenListPage.class, null);
096: public final WMenuItemGlobal tokenCrud = addNewMenuItem(
097: WTokenCrudPage.class, null);
098: public final WMenuItemGlobal tableList = addNewMenuItem(
099: WTableListPage.class, null);
100: public final WMenuItemGlobal rowList = addNewMenuItem(
101: WRowListPage.class, null);
102: public final WMenuItemGlobal rowCrud = addNewMenuItem(
103: WRowCrudPage.class, null);
104: }
105:
106: }
|