if (registry == null) { if (getApplication() != null) { getApplication().getMainWindow().addComponent(new Label( "Aperte Workflow is being installed. Please refresh your page." ));
window.addComponent(uriFragmentUtility); ItcbComponent component= mapping.get(defaultPageKey); if(component == null) {
@Override public void init() { final Window mainWindow = new Window(); setMainWindow(mainWindow); ApplicationContext applicationContext = getContext(); if (applicationContext instanceof PortletApplicationContext2) { PortletApplicationContext2 portletCtx = (PortletApplicationContext2) applicationContext; portletCtx.addPortletListener(this, this); } else { mainWindow.addComponent(new Label(getMessage("please.use.from.a.portlet"))); } }
/** * Reinitialize the application from the last received configuration */ private void refreshApplication() { mainWindow.removeAllComponents(); processConfig = ProcessConfigJSONHandler.getInstance().toObject(jsonProcessConfig); processEditorPanel = new ProcessEditorPanel(); processEditorPanel.setProcessConfig(processConfig); processEditorPanel.loadData(); mainWindow.addComponent(processEditorPanel); }
public void init() { setTheme("ace"); if (!m_dependenciesResolved.get()) { final Window message = new Window("Apache ACE"); message.getContent().setSizeFull(); setMainWindow(message); Label richText = new Label("<h1>Apache ACE User Interface</h1>" + "<p>Due to missing component dependencies on the server, probably due to misconfiguration, " + "the user interface cannot be properly started. Please contact your server administrator. " + "You can retry accessing the user interface by <a href=\"?restartApplication\">following this link</a>.</p>"); richText.setContentMode(Label.CONTENT_XHTML); // TODO we might want to add some more details here as to what's // missing on the other hand, the user probably can't fix that anyway message.addComponent(richText); return; } m_mainWindow = new Window("Apache ACE"); m_mainWindow.getContent().setSizeFull(); m_mainWindow.setBorder(Window.BORDER_NONE); setMainWindow(m_mainWindow); // Authenticate the user either by showing a login window; or by another means... authenticate(); }
if (loginRequired) { window.removeAllComponents(); window.addComponent(new Label(getMessage("please.log.in"))); return;
vl.setComponentAlignment(hl, Alignment.BOTTOM_CENTER); newConfirmationWindow.addComponent(vl);
vl.setComponentAlignment(hl, Alignment.BOTTOM_CENTER); newConfirmationWindow.addComponent(vl);
message.addComponent(richText); return; addListener(m_targetsPanel, StatefulGatewayObject.TOPIC_ALL); main.addComponent(m_grid);
addListener(m_targetsPanel, StatefulTargetObject.TOPIC_ALL, TargetObject.TOPIC_ALL, RepositoryAdmin.TOPIC_STATUSCHANGED, RepositoryAdmin.TOPIC_LOGIN, RepositoryAdmin.TOPIC_REFRESH); m_mainWindow.addComponent(m_grid);