/** * @see org.carewebframework.shell.plugins.IPluginEvent#onLoad(PluginContainer) */ @Override public void onLoad(final PluginContainer container) { log.trace("Plugin Loaded"); container.registerProperties(this, "allowAsync", "hideButtons"); }
/** * Returns the info panel associated with the UI element, if there is one. * * @param element The element to examine. * @param activeOnly If true, only active info panels are considered. * @return The associated active info panel, or null if there is none. */ private static IInfoPanel getInfoPanel(UIElementBase element, boolean activeOnly) { if ((element instanceof UIElementPlugin) && (!activeOnly || element.isActivated()) && ((UIElementPlugin) element).getDefinition().getId().equals("infoPanelPlugin")) { PluginContainer container = ((UIElementPlugin) element).getContainer(); container.load(); Component top = container.getFellow("infoPanelRoot"); return (IInfoPanel) FrameworkController.getController(top); } return null; }
getContainer().bringToFront();
@Test public void test() throws Exception { CareWebShell shell = new CareWebShell(); shell.setLayout("/StatusPanelTest.xml"); shell.setPage(mockEnvironment.getDesktop().getFirstPage()); shell.afterCompose(); mockEnvironment.flushEvents(); PluginContainer plugin = shell.getActivatedPlugin("statusPanel"); Component root = plugin.getFirstChild(); StatusPanel controller = (StatusPanel) FrameworkController.getController(root); assertNotNull("Controller must not be null.", controller); assertEquals(1, root.getChildren().size()); test(root, "STATUS", 1, 1); test(root, "STATUS.TEST1", 1, 3); test(root, "STATUS.TEST1", 2, 3); test(root, "STATUS.TEST2", 1, 5); test(root, "STATUS.TEST2", 2, 5); }
/** * @see org.carewebframework.shell.plugins.IPluginEvent#onLoad(PluginContainer) */ @Override public void onLoad(final PluginContainer container) { log.trace("Plugin Loaded"); container.registerProperties(this, "allowAsync", "allowAddPov", "hideButtons", "useLexicon"); }
/** * Register fetch properties with container. */ @Override public void onLoad(PluginContainer container) { super.onLoad(container); container.registerProperties(this, "backgroundFetch", "deferredFetch"); }
@Override public void onLoad(PluginContainer container) { super.onLoad(container); container.registerProperties(this, "format", "color"); }
/** * Register published properties. */ @Override public void onLoad(PluginContainer container) { super.onLoad(container); container.registerProperties(this, "mockupType", "mockupId"); }
@Override public void onLoad(PluginContainer container) { super.onLoad(container); container.registerProperties(this, "showUser"); }
@Override public void onLoad(PluginContainer container) { super.onLoad(container); container.registerProperties(this, "allowPrint", "popupFlags"); doUpdate(false); }
/** * Connects an embedded instance of the property grid to the plug-in's root component. */ @Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); propertyGrid = PropertyGrid.create(null, comp, true); getContainer().registerProperties(this, "provider", "group"); }
@Override public void initializeController() { super.initializeController(); viewText = btnView.getLabel(); getContainer().registerProperties(this, "fixedFilter"); updateSelectCount(0); }
/** * Set up display. */ @Override public void init() { super.init(); getContainer().registerProperties(this, "showAll", "alertDuration", "alertThreshold"); rgFilter.setSelectedItem(showAll ? radAll : radPatient); processingController = ProcessingController.create(this); lstNotification.setItemRenderer(renderer); RowComparator.autowireColumnComparators(lstNotification.getListhead().getChildren()); model.setMultiple(true); updatePatient(true); subscribe(true); }