@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); }
public Canvas getViewPanel() { getData( new AsyncCallback<LinkedHashMap<String, UIFormFieldValue>>() { @Override public void onSuccess(LinkedHashMap<String, UIFormFieldValue> result) { dataMap = result; layout.addMember(getViewForm()); } @Override public void onFailure(Throwable caught) { SC.warn("Couldn't load " + getFormLabel() + "(" + caught.getMessage() + ")"); } }); layout.setPadding(10); return layout; }