Project

General

Profile

« Previous | Next » 

Revision ce3b8933

Added by Andreas Kohlbecker about 7 years ago

ref #6169 layout improvelemts and openButton clickable

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/phycobank/RegistrationItem.java
95 95
        messageButton.setEnabled(false);
96 96
        openButton.setStyleName(ValoTheme.BUTTON_TINY);
97 97
        openButton.addStyleName(ValoTheme.BUTTON_PRIMARY);
98
        openButton.addClickListener(e -> parentView.getEventBus().publishEvent(new NavigationEvent(
99
                RegistrationWorkflowViewBean.NAME,
100
                RegistrationWorkflowViewBean.ACTION_EDIT,
101
                regDto.getSpecificIdentifier().toString()
102
                )));
98 103
        buttonGroup.setStyleName(ValoTheme.LAYOUT_COMPONENT_GROUP);
99 104
        addComponent(buttonGroup, 2, 0);
100 105
        setComponentAlignment(buttonGroup, Alignment.TOP_RIGHT);
......
104 109

  
105 110
        createdLabel.setStyleName(STYLE_LABEL_NOWRAP);
106 111
        createdLabel.setContentMode(ContentMode.HTML);
112
        createdLabel.setWidthUndefined();
107 113
        addComponent(createdLabel, 2, 1);
108 114
        setComponentAlignment(createdLabel, Alignment.BOTTOM_RIGHT);
109 115

  
110 116
        publishedLabel.setStyleName(STYLE_LABEL_NOWRAP);
111 117
        publishedLabel.setContentMode(ContentMode.HTML);
118
        publishedLabel.setWidthUndefined();
112 119
        addComponent(publishedLabel, 2, 2);
113 120
        setComponentAlignment(publishedLabel, Alignment.BOTTOM_RIGHT);
114 121

  
src/main/java/eu/etaxonomy/cdm/vaadin/view/phycobank/ListViewBean.java
8 8
*/
9 9
package eu.etaxonomy.cdm.vaadin.view.phycobank;
10 10

  
11
import java.util.ArrayList;
11 12
import java.util.Collection;
12 13

  
13 14
import org.springframework.beans.factory.annotation.Autowired;
......
86 87
        listContainer = new CssLayout();
87 88
        listContainer.setId("registration-list");
88 89
        listContainer.setWidth(100, Unit.PERCENTAGE);
89
        listContainer.setHeight(100, Unit.PERCENTAGE);
90 90
    }
91 91

  
92 92
    private void buildGrid() {
......
151 151

  
152 152
    @Override
153 153
    public void populate(Collection<RegistrationDTO> registrations) {
154

  
155
        registrations = new ArrayList<RegistrationDTO>(registrations).subList(0, 10);
156

  
154 157
        populateGrid(registrations);
155 158
        populateList(registrations);
156 159
    }

Also available in: Unified diff