@Override public void error() { form.setValidationState(ValidationState.ERROR); } }
@Override public void enableManagedRepoCreation(boolean enabled) { managedReposiotryGroup.setVisible(enabled); }
@Override public void addSearchPanel(IsWidget searchPanel) { if (searchPanel != null) { searchBarContainer.add(searchPanel); searchBarContainer.setVisible(true); } else { searchBarContainer.clear(); searchBarContainer.setVisible(false); } }
public int addRow(final IsWidget widget) { final FormGroup formGroup; if (widget instanceof FormGroup) { formGroup = (FormGroup) widget; } else { formGroup = new FormGroup(); if (widget instanceof Column) { formGroup.add(widget); } else { formGroup.add(new Column(ColumnSize.MD_12) {{ add(widget); }}); } } add(formGroup); return getWidgetCount() - 1; }
@Override public void hide() { super.hide(); serverTemplateGroup.setVisible(false); containerIdText.setText(null); startContainerCheck.setValue(null); serverTemplateDropdown.setValue((String) null); final Iterator<Widget> options = serverTemplateDropdown.iterator(); while (options.hasNext()) { options.next(); options.remove(); } serverTemplateDropdown.refresh(); validateExistingContainerCallback = null; containerIdTextGroup.setValidationState(ValidationState.NONE); containerIdTextHelpInline.setText(""); serverTemplateGroup.setValidationState(ValidationState.NONE); serverTemplateHelpInline.setText(""); }
public void add(Widget item) { items.add(item); }
public int addRow(final IsWidget widget) { final FormGroup formGroup; if (widget instanceof FormGroup) { formGroup = (FormGroup) widget; } else { formGroup = new FormGroup(); if (widget instanceof Column) { formGroup.add(widget); } else { formGroup.add(new Column(ColumnSize.MD_12) {{ add(widget); }}); } } add(formGroup); return getWidgetCount() - 1; }
@Override public void error() { form.setValidationState(ValidationState.ERROR); } }
@Override public void enabledManagedRepositoryCreation(boolean enabled) { managedReposiotryGroup.setVisible(enabled); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); filterForm.add(controlGroup); }
@Override public void error() { form.setValidationState(ValidationState.ERROR); } }
public void addServerTemplates(final Set<String> serverTemplateIds) { for (final String id : serverTemplateIds) { final Option option = GWT.create(Option.class); option.setText(id); option.setValue(id); serverTemplateDropdown.add(option); } serverTemplateDropdown.refresh(); serverTemplateGroup.setVisible(true); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); }
@Override public void error() { form.setValidationState(ValidationState.ERROR); } }
private void chosenConditionsSelected( final Set<ActionInsertFactCol52> cws ) { btnRemove.setEnabled( true ); if ( cws.size() == 1 ) { chosenFieldsSelection = cws.iterator().next(); fieldDefinition.setVisible( true ); validateFieldHeader(); populateFieldDefinition(); } else { chosenFieldsSelection = null; fieldDefinition.setVisible( false ); txtColumnHeader.setEnabled( false ); txtValueList.setEnabled( false ); defaultValueContainer.setVisible( false ); } }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); filterForm.add(controlGroup); }
@Override public void error() { form.setValidationState(ValidationState.ERROR); } }
private void chosenConditionsSelected( final Set<ActionInsertFactCol52> cws ) { btnRemove.setEnabled( true ); if ( cws.size() == 1 ) { chosenFieldsSelection = cws.iterator().next(); fieldDefinition.setVisible( true ); validateFieldHeader(); populateFieldDefinition(); } else { chosenFieldsSelection = null; fieldDefinition.setVisible( false ); txtColumnHeader.setEnabled( false ); txtValueList.setEnabled( false ); defaultValueContainer.setVisible( false ); } }