/** * Constructs a TextArea with given caption and value. * * @param caption * the caption for the field * @param value * the value for the field, not {@code null} */ public TextArea(String caption, String value) { this(caption); setValue(value); }
/** * Sets the content of the {@linkplain #configTextArea}. * * @param newConfigContent The new configuration content. */ public void setConfigContent(String newConfigContent) { configTextArea.setValue(newConfigContent); }
@Override public void setValue(String value) { super.setValue((value == null) ? "" : value); }
/** * Sets the content of the {@linkplain #configTextArea}. * * @param newConfigContent The new configuration content. */ public void setConfigContent(String newConfigContent) { configContent = newConfigContent; if (newConfigContent.split("\n").length >= Config.CONFIG_SNIPPET_MAX_LINES) { configTextArea.setValue("The generated configuration snippet is too long to show here. Please download the files and edit/view with the editor of choice."); } else { configTextArea.setValue(newConfigContent); } }
@Override public void setValue(Object newValue) throws ReadOnlyException, ConversionException { rawText.setValue(newValue); processXml(newValue); }
public void setValue(String value) { this.field.setValue(value); updateFloatingLabelPosition(value); }
private void selectSort(SortKeyContainer.SortKey sortKey, boolean reverse) { if (sortKey == null) return; this.exprField.setValue(sortKey.getExpression(this.session, null, reverse)); // TODO: starting point this.showObjects(); }
private void selectSort(SortKeyContainer.SortKey sortKey, boolean reverse) { if (sortKey == null) return; this.exprField.setValue(sortKey.getExpression(this.session, null, reverse)); // TODO: starting point this.showObjects(); }
public void updateFromWidgetsDefinitionElement(WidgetsDefinitionElement widgetsDefinitionElement) { String marshall = definitionLoader.marshall(widgetsDefinitionElement); rawText.setValue(marshall); refreshPreview(widgetsDefinitionElement); }
@Override protected void setValue(Object value) throws MException { ((TextArea)getComponentEditor()).setValue(MCast.toString(value)); }
public void windowClose(CloseEvent e) { if(policyAssociationBusinessStreamSearchWindow.getBusinessStream() != null) { NewPolicyWindow.this.linkedEntity.setValue (policyAssociationBusinessStreamSearchWindow.getBusinessStream().toString()); NewPolicyWindow.this.associatedEntityId = NewPolicyWindow.this.policyAssociationBusinessStreamSearchWindow.getBusinessStream().getId(); } }
public void windowClose(CloseEvent e) { if(policyAssociationMappingSearchWindow.getMappingConfiguration() != null) { NewPolicyWindow.this.linkedEntity.setValue (policyAssociationMappingSearchWindow.getMappingConfiguration().toStringLite()); NewPolicyWindow.this.associatedEntityId = NewPolicyWindow.this.policyAssociationMappingSearchWindow.getMappingConfiguration().getId(); } } });
public void windowClose(CloseEvent e) { if(policyAssociationFlowSearchWindow.getFlow() != null) { NewPolicyWindow.this.linkedEntity.setValue (policyAssociationFlowSearchWindow.getFlow().toString()); NewPolicyWindow.this.associatedEntityId = NewPolicyWindow.this.policyAssociationFlowSearchWindow.getFlow().getId(); } } });
public void windowClose(CloseEvent e) { if(policyAssociationModuleSearchWindow.getModule() != null) { NewPolicyWindow.this.linkedEntity.setValue (policyAssociationModuleSearchWindow.getModule().toString()); NewPolicyWindow.this.associatedEntityId = NewPolicyWindow.this.policyAssociationModuleSearchWindow.getModule().getId(); } } });
@Override protected void doBuild(ViewChangeBusMessage busMessage) { super.doBuild(busMessage); reportArea = new TextArea(); // reportArea.setEnabled(false); reportArea.setSizeFull(); reportArea.setValue(masterSitemap.getReport()); setCentreCell(reportArea); setColumnWidths(1f, 4f, 1f); setRowHeights(1f, 10f, 1f); }
@Override protected void doBuild() { super.doBuild(); reportArea = new TextArea(); // reportArea.setEnabled(false); reportArea.setSizeFull(); reportArea.setValue(masterSitemap.getReport()); setCentreCell(reportArea); setColumnWidths(1f, 4f, 1f); setRowHeights(1f, 10f, 1f); }
private void populateValuesOfTarget(final Target target) { resetComponents(); this.controllerId = target.getControllerId(); editTarget = Boolean.TRUE; controllerIDTextField.setValue(target.getControllerId()); controllerIDTextField.setEnabled(Boolean.FALSE); nameTextField.setValue(target.getName()); nameTextField.setRequired(true); descTextArea.setValue(target.getDescription()); }
private void populateValuesOfTarget(final Target target) { resetComponents(); this.controllerId = target.getControllerId(); editTarget = Boolean.TRUE; controllerIDTextField.setValue(target.getControllerId()); controllerIDTextField.setEnabled(Boolean.FALSE); nameTextField.setValue(target.getName()); nameTextField.setRequired(true); descTextArea.setValue(target.getDescription()); }
protected Item popualateKeyValue(final Object metadataCompositeKey) { if (metadataCompositeKey != null) { final Item item = metaDataGrid.getContainerDataSource().getItem(metadataCompositeKey); keyTextField.setValue((String) item.getItemProperty(KEY).getValue()); valueTextArea.setValue((String) item.getItemProperty(VALUE).getValue()); keyTextField.setEnabled(false); if (hasUpdatePermission()) { valueTextArea.setEnabled(true); } return item; } return null; }
protected Item popualateKeyValue(final Object metadataCompositeKey) { if (metadataCompositeKey != null) { final Item item = metaDataGrid.getContainerDataSource().getItem(metadataCompositeKey); keyTextField.setValue((String) item.getItemProperty(KEY).getValue()); valueTextArea.setValue((String) item.getItemProperty(VALUE).getValue()); keyTextField.setEnabled(false); if (hasUpdatePermission()) { valueTextArea.setEnabled(true); } return item; } return null; }