/** * Returns the application name for this instance of the CareWeb shell. * * @return Application name, or null if not set. */ public static String getApplicationName() { return FrameworkUtil.getAppName(); }
/** * Returns the application name. * * @return Application name. */ protected String getAppName() { if (appName == null && FrameworkUtil.isInitialized()) { setAppName(FrameworkUtil.getAppName()); } return appName; }
/** * Returns the application name. * * @return Application name. */ protected String getAppName() { if (appName == null && FrameworkUtil.isInitialized()) { setAppName(FrameworkUtil.getAppName()); } return appName; }
/** * Build the UI based on the specified layout. * * @param layout Layout for building UI. */ public void buildUI(Layout layout) { this.layout = layout; reset(); layout.materialize(desktop); desktop.setAppId(FrameworkUtil.getAppName()); desktop.activate(true); if (autoStart) { start(); } }