/** * Title for this screen. * @return the screen title. */ public String getTitle() // Standard file maint for this record (returns new record) { for (int i = 0; i < this.getSFieldCount(); i++) { if (this.getSField(i) instanceof BaseScreen) return ((BaseScreen)this.getSField(i)).getTitle(); } return super.getTitle(); } }
/** * Add the menus that belong with this screen. */ public void addScreenMenus() { AppletScreen appletScreen = this.getAppletScreen(); if (appletScreen != null) { ScreenField menuBar = appletScreen.getSField(0); if ((menuBar == null) || (!(menuBar instanceof SGridMenuBar))) { if (menuBar instanceof SBaseMenuBar) menuBar.free(); // Wrong menu new SGridMenuBar(new ScreenLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), appletScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC); } } } /**
/** * Title for this screen. * @return the screen title. */ public String getTitle() // Standard file maint for this record (returns new record) { for (int i = 0; i < this.getSFieldCount(); i++) { if (this.getSField(i) instanceof BaseScreen) return ((BaseScreen)this.getSField(i)).getTitle(); } return super.getTitle(); } }
/** * Add the menus that belong with this screen. */ public void addScreenMenus() { AppletScreen appletScreen = this.getAppletScreen(); if (appletScreen != null) { ScreenField menuBar = appletScreen.getSField(0); if ((menuBar == null) || (!(menuBar instanceof SMenuBar))) { if (menuBar instanceof SBaseMenuBar) menuBar.free(); // Wrong menu new SMenuBar(new ScreenLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), appletScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null); } } } /**
/** * Add the menus that belong with this screen. */ public void addScreenMenus() { AppletScreen appletScreen = this.getAppletScreen(); if (appletScreen != null) { ScreenField menuBar = appletScreen.getSField(0); if ((menuBar == null) || (!(menuBar instanceof SGridMenuBar))) { if (menuBar instanceof SBaseMenuBar) menuBar.free(); // Wrong menu new SGridMenuBar(new ScreenLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), appletScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null); } } } /**
/** * Add the menus that belong with this screen. */ public void addScreenMenus() { AppletScreen appletScreen = this.getAppletScreen(); if (appletScreen != null) { ScreenField menuBar = appletScreen.getSField(0); if ((menuBar == null) || (!(menuBar instanceof SMenuBar))) { if (menuBar instanceof SBaseMenuBar) menuBar.free(); // Wrong menu new SMenuBar(new ScreenLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), appletScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC); } } } /**
/** * Add the menus that belong with this screen. */ public void addScreenMenus() { AppletScreen appletScreen = this.getAppletScreen(); if (appletScreen != null) { ScreenField menuBar = appletScreen.getSField(0); if ((menuBar == null) || (!(menuBar instanceof SGridMenuBar))) { if (menuBar instanceof SBaseMenuBar) menuBar.free(); // Wrong menu new SBaseMenuBar(new ScreenLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), appletScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC); } } } /**
/** * Add the menus that belong with this screen. */ public void addScreenMenus() { AppletScreen appletScreen = this.getAppletScreen(); if (appletScreen != null) { ScreenField menuBar = appletScreen.getSField(0); if ((menuBar == null) || (!(menuBar instanceof SGridMenuBar))) { if (menuBar instanceof SBaseMenuBar) menuBar.free(); // Wrong menu new SBaseMenuBar(new ScreenLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), appletScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null); } } } /**