/** * Sets the help viewer display mode for this desktop. * * @param mode The new help viewer display mode. */ public void setHelpViewerMode(HelpViewerMode mode) { HelpUtil.setViewerMode(desktopOuter.getPage(), mode); }
/** * Returns the help viewer display mode for this desktop. * * @return The help viewer display mode. */ public HelpViewerMode getHelpViewerMode() { return HelpUtil.getViewerMode(desktopOuter.getPage()); }
@EventHandler(value = "attach", target = "@desktopInner") private void onAttach() { desktopInner.getPage().setTitle(title.getLabel()); } }
/** * Override to implement any special controller initialization logic. */ protected void initializeController() { log.trace("Initializing Controller"); if (lblMessage != null) { lblMessage.addStyle("text-align", "center"); } Style style = new Style(); style.setSrc(CWFUtil.getResourcePath(AbstractServiceController.class, 1) + "common.css"); root.getPage().addChild(style); }
/** * Bind a component to this command and action. * * @param component The component to be bound. * @param action The action to be executed when the command is invoked. */ /*package*/void bind(BaseUIComponent component, IAction action) { BaseUIComponent dummy = new Div(); dummy.setAttribute(ATTR_DUMMY, true); dummy.setVisible(false); dummy.setParent(component.getPage()); ActionUtil.addAction(dummy, action, CommandEvent.TYPE); bind(component, dummy); }