/** * Display an about dialog for the specified class. * * @param clazz Class whose attributes are to be displayed. */ public static void execute(Class<?> clazz) { showDialog(new AboutParams(clazz)); }
/** * Sends an informational message for display by desktop. * * @param message Text of the message. * @param caption Optional caption text. */ public static void showMessage(String message, String caption) { getShell().getMessageWindow().showMessage(message, caption); }
/** * Shows table of contents in help viewer. */ public static void showHelpTOC() { getShell().getHelpViewer(); HelpUtil.showTOC(); }
/** * Register a plugin by specifying a path and a url. * * @param path Format is <tab name>\<tree node path> * @param url Main url of plugin. * @return Container created for the plugin. * @throws Exception Unspecified exception. */ public ElementBase register(String path, String url) throws Exception { return register(path, url, null); }
/** * Sends an informational message for display by desktop. * * @param message Text of the message. */ public static void showMessage(String message) { showMessage(message, null); }
/** * Create the shell instance. */ public CareWebShell() { super(); CareWebUtil.setShell(this); }
/** * Resolves the path, returning the UI element to be used as the parent of the plugin. * * @param tabPane Tab pane. * @param path Path to resolve. * @return The plugin parent */ protected ElementUI resolvePath(ElementTabPane tabPane, String path) { return getElement(path, getRoot(tabPane), childClass); }
/** * Returns the path resolver implementation. This implementation determines where in the layout * the plugin should be placed based on a path. A default implementation is provided. * * @return The path resolver. */ public PathResolver getPathResolver() { if (pathResolver == null) { pathResolver = new PathResolver(ElementTreeView.class, ElementTreePane.class); } return pathResolver; }
/** * Registers the plugin with the specified id and path. If a tree path is absent, the plugin is * associated with the tab itself. * * @param path Format is <tab name>\<tree node path> * @param id Unique id of plugin * @return Container created for the plugin. * @throws Exception Unspecified exception. */ public ElementBase registerFromId(String path, String id) throws Exception { return registerFromId(path, id, null); }
/** * Displays an about dialog for the UI element. */ public void about() { AboutDialog.execute(this); }
/** * @see IUserContextEvent#committed() */ @Override public void committed() { reset(); }
/** * Shows help topic in help viewer. * * @param module The id of the help module. * @param topic The id of the desired topic. * @param label The label to display for the topic. */ public static void showHelpTopic(String module, String topic, String label) { getShell().getHelpViewer(); HelpUtil.show(module, topic, label); }
/** * Display an about dialog for the specified manifest. * * @param manifest Manifest whose attributes are to be displayed. */ public static void execute(Manifest manifest) { showDialog(new AboutParams(manifest)); }
/** * Registers the plugin with the specified definition with the specified path. If a tree path is * absent, the plugin is associated with the tab itself. * * @param path Format is <tab name>\<tree node path> * @param def Plugin definition * @return The newly created plugin. * @throws Exception Unspecified exception. */ public ElementBase register(String path, PluginDefinition def) throws Exception { return register(path, def, null); }
/** * Display an about dialog for the specified plugin definition. * * @param def Plugin definition whose attributes are to be displayed. */ public static void execute(PluginDefinition def) { showDialog(new AboutParams(def)); }