Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ public class SWEControlForm extends SWEEditForm

public SWEControlForm(final IStreamingControlInterface controlInput)
{
super(controlInput.getCommandDescription().copy());
super(controlInput.getCommandDescription());
this.controlInput = controlInput;
this.component.assignNewDataBlock();
buildForm();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ else if (component instanceof SimpleComponent)
final ComboBox f = new ComboBox();
f.addStyleName(UIConstants.STYLE_SMALL);
f.addItems(((Category) component).getConstraint().getValueList());
//f.setValue(component.getData().getStringValue());
if (!component.hasData() || component.getData().getStringValue() == null) {
component.assignNewDataBlock();
}
f.setValue(component.getData().getStringValue());
layout.addComponent(f);
f.addValueChangeListener(new ValueChangeListener() {
private static final long serialVersionUID = 1L;
Expand All @@ -131,6 +134,9 @@ public void valueChange(ValueChangeEvent event)
{
final TextField f = new TextField();
f.addStyleName(UIConstants.STYLE_SMALL);
if (!component.hasData() || component.getData().getStringValue() == null) {
component.assignNewDataBlock();
}
f.setValue(component.getData().getStringValue());
layout.addComponent(f);
f.addValueChangeListener(new ValueChangeListener() {
Expand Down
Loading