/** {@inheritDoc} */ @Override public Component doCreateWidget(Object parent) { if (textArea == null) { textArea = new TextArea(); textArea.setSizeFull(); textArea.addStyleName(CSS_CLASS_CONTROL); textArea.setImmediate(true); textArea.setNullRepresentation(""); setupComponent(textArea, getCastedModel()); associateWidget(textArea, modelAccess.yField); if (modelAccess.isCssIdValid()) { textArea.setId(modelAccess.getCssID()); } else { textArea.setId(getEditpart().getId()); } property = new ObjectProperty<String>(null, String.class); textArea.setPropertyDataSource(property); // creates the binding for the field createBindings(modelAccess.yField, textArea); if (modelAccess.isCssClassValid()) { textArea.addStyleName(modelAccess.getCssClass()); } applyCaptions(); initializeField(textArea); } return textArea; }
private Component buildNotes() { TextArea notes = new TextArea("Notes"); notes.setValue( "Remember to:\n· Zoom in and out in the Sales view\n· Filter the transactions and drag a set of them to the Reports tab\n· Create a new report\n· Change the schedule of the movie theater"); notes.setSizeFull(); notes.addStyleName(ValoTheme.TEXTAREA_BORDERLESS); Component panel = createContentWrapper(notes); panel.addStyleName("notes"); return panel; }
protected void initEditor() { editor = new TextArea(); editor.setSizeFull(); editor.setRows(25); content.addComponent(editor); }