Project

General

Profile

Revision 0fe9f213

ID0fe9f21303d697914eec596595da633e0bfb89b1
Parent f28d9400
Child 3d053187

Added by Fabian Reimeier about 2 years ago

ref #6903 use listselect instead of twincolselect for status config

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/distributionStatus/DistributionStatusSettingsConfigWindow.java
18 18
import com.vaadin.ui.Button.ClickListener;
19 19
import com.vaadin.ui.CheckBox;
20 20
import com.vaadin.ui.HorizontalLayout;
21
import com.vaadin.ui.TwinColSelect;
21
import com.vaadin.ui.ListSelect;
22 22
import com.vaadin.ui.VerticalLayout;
23 23

  
24 24
import eu.etaxonomy.cdm.vaadin.util.DistributionEditorUtil;
......
34 34
            implements ValueChangeListener, ClickListener{
35 35

  
36 36
	private static final long serialVersionUID = -8220442386869594032L;
37
    private TwinColSelect distStatusSelect;
37
    private ListSelect distStatusSelect;
38 38
    private CheckBox boxToggleAbbreviatedLabels;
39 39
    private IDistributionTableView distributionTableView;
40 40

  
......
55 55
    protected void init() {
56 56
        boxToggleAbbreviatedLabels.addValueChangeListener(this);
57 57
        distStatusSelect.setContainerDataSource(presenter.getDistributionStatusContainer());
58
        Object selectedStatus = VaadinSession.getCurrent().getAttribute(DistributionEditorUtil.SATTR_DISTRIBUTION_STATUS);
59
        distStatusSelect.setValue(selectedStatus);
58 60

  
59 61
        okButton.addClickListener(this);
60 62
        cancelButton.addClickListener(this);
......
71 73
        mainLayout.setSpacing(true);
72 74

  
73 75
        //distribution status
74
        distStatusSelect = new TwinColSelect("Distribution Status:");
76
        distStatusSelect = new ListSelect("Distribution Status:");
75 77
        distStatusSelect.setImmediate(false);
78
        distStatusSelect.setMultiSelect(true);
76 79
        distStatusSelect.setSizeFull();
77 80
        distStatusSelect.setWidth("100%");
78 81

  
src/main/java/eu/etaxonomy/cdm/vaadin/view/distributionStatus/DistributionTableViewBean.java
259 259
            distributionStatusConfigWindow = new DistributionStatusSettingsConfigWindow(this);
260 260
        }
261 261
        Window window  = distributionStatusConfigWindow.createWindow("Status");
262
        window.setWidth("25%");
263
        window.setHeight("60%");
262 264
        UI.getCurrent().addWindow(window);
263 265
	}
264 266

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)