@Override protected void onInit() { super.onInit(); Layout layout = new VLayout(); layout.setPadding(5); layout.setMembersMargin(5); layout.addMember(getConnectionForm()); layout.setDefaultLayoutAlign(Alignment.CENTER); layout.setLayoutAlign(Alignment.CENTER); if (this.showInstallButton) { agentConfigXmlUploadForm = createAgentConfigXmlUploadForm(); layout.addMember(agentConfigXmlUploadForm); /* For now, don't allow users to upload and ship their own env script to a remote machine; that might have security implications. * If we want to allow this, just uncomment these lines and you are good to go because everything else that is needed * is already in place and working as of April 2014. rhqAgentEnvUploadForm = createAgentEnvUploadForm(); layout.addMember(rhqAgentEnvUploadForm); */ } HTMLFlow header = new HTMLFlow(""); header.setStyleName("headerItem"); header.setExtraSpace(5); layout.addMember(header); layout.addMember(getButtons()); addMember(layout); }
@Override protected void onInit() { super.onInit(); pluginManager.getServerPlugin( this.pluginId, true, new AsyncCallback<ServerPlugin>() { public void onSuccess(ServerPlugin plugin) { prepareDetailsSection(sectionStack, plugin); prepareHelpSection(sectionStack, plugin); prepareControlsSection(sectionStack, plugin); preparePluginConfigurationSection(sectionStack, plugin); prepareScheduledJobsSection(sectionStack, plugin); } public void onFailure(Throwable caught) { CoreGUI.getErrorHandler().handleError(MSG.view_admin_plugins_loadFailure(), caught); } }); }