Project

General

Profile

« Previous | Next » 

Revision c21c9bf6

Added by Andreas Kohlbecker about 7 years ago

ref #6169 removing replaced RegistrationItemDesign

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/registration/RegistrationWorkflowComponent.java
1
/**
2
* Copyright (C) 2017 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.vaadin.component.registration;
10

  
11
import com.vaadin.ui.CssLayout;
12
import com.vaadin.ui.Label;
13

  
14
import eu.etaxonomy.cdm.vaadin.design.registration.RegistrationWorkflowDesign;
15

  
16
/**
17
 * @author a.kohlbecker
18
 * @since Mar 3, 2017
19
 *
20
 */
21
public class RegistrationWorkflowComponent extends RegistrationWorkflowDesign {
22

  
23
    private static final long serialVersionUID = 7196791015737342650L;
24

  
25
    /**
26
     * @return the title
27
     */
28
    public Label getTitle() {
29
        return title;
30
    }
31

  
32
    /**
33
     * @return the workflow
34
     */
35
    public CssLayout getWorkflow() {
36
        return workflow;
37
    }
38

  
39
}
src/main/java/eu/etaxonomy/cdm/vaadin/design/registration/RegistrationItemDesign.java
1
package eu.etaxonomy.cdm.vaadin.design.registration;
2

  
3
import com.vaadin.annotations.AutoGenerated;
4
import com.vaadin.annotations.DesignRoot;
5
import com.vaadin.ui.Button;
6
import com.vaadin.ui.HorizontalLayout;
7
import com.vaadin.ui.Label;
8
import com.vaadin.ui.Link;
9
import com.vaadin.ui.declarative.Design;
10

  
11
/**
12
 * !! DO NOT EDIT THIS FILE !!
13
 *
14
 * This class is generated by Vaadin Designer and will be overwritten.
15
 *
16
 * Please make a subclass with logic and additional interfaces as needed,
17
 * e.g class LoginView extends LoginDesign implements View { }
18
 */
19
@DesignRoot
20
@AutoGenerated
21
@SuppressWarnings("serial")
22
public class RegistrationItemDesign extends HorizontalLayout {
23
    protected Label typeStateLabel;
24
    protected Link identifierLink;
25
    protected Label citationLabel;
26
    protected Label summaryLabel;
27
    protected Button blockedByButton;
28
    protected Button messageButton;
29
    protected Button openButton;
30
    protected Label createdLabel;
31
    protected Label publishedLabel;
32

  
33
    public RegistrationItemDesign() {
34
        Design.read(this);
35
    }
36
}
src/main/resources/eu/etaxonomy/cdm/vaadin/design/registration/RegistrationItemDesign.html
1
<!doctype html>
2
<html>
3
 <head>
4
  <meta charset="UTF-8">
5
  <meta name="design-properties" content="{&quot;RULERS_VISIBLE&quot;:true,&quot;GUIDELINES_VISIBLE&quot;:false,&quot;SNAP_TO_OBJECTS&quot;:true,&quot;SNAP_TO_GRID&quot;:true,&quot;SNAPPING_DISTANCE&quot;:10,&quot;JAVA_SOURCES_ROOT&quot;:&quot;src/main/java&quot;,&quot;THEME&quot;:&quot;edit-valo&quot;}">
6
  <meta name="vaadin-version" content="7.7.0">
7
 </head>
8
 <body>
9
  <vaadin-horizontal-layout style-name="registration-item" width-full>
10
   <vaadin-vertical-layout :expand>
11
    <vaadin-horizontal-layout spacing width-full height="34px" :middle>
12
     <vaadin-label icon="fonticon://FontAwesome/f02b" style-name="label-nowrap" size-auto plain-text _id="typeStateLabel">
13
       State 
14
     </vaadin-label>
15
     <vaadin-link caption="http://phycobank/100000" _id="identifierLink" :center :expand></vaadin-link>
16
    </vaadin-horizontal-layout>
17
    <vaadin-label plain-text _id="citationLabel">
18
      Publication citation string 
19
    </vaadin-label>
20
    <vaadin-label plain-text _id="summaryLabel">
21
      Publication citation string possibly spanning multiple lines 
22
    </vaadin-label>
23
   </vaadin-vertical-layout>
24
   <vaadin-vertical-layout width-auto height-full>
25
    <vaadin-css-layout style-name="v-component-group">
26
     <vaadin-button icon="fonticon://FontAwesome/f071" enabled="false" style-name="tiny" plain-text _id="blockedByButton"></vaadin-button>
27
     <vaadin-button icon="fonticon://FontAwesome/f075" enabled="false" style-name="tiny" plain-text _id="messageButton"></vaadin-button>
28
     <vaadin-button icon="fonticon://FontAwesome/f085" style-name="tiny primary" plain-text _id="openButton"></vaadin-button>
29
    </vaadin-css-layout>
30
    <vaadin-vertical-layout size-full :bottom :right>
31
     <vaadin-label caption="Created" style-name="label-nowrap" size-auto plain-text _id="createdLabel" :bottom :right>
32
       12.12.2012 
33
     </vaadin-label>
34
     <vaadin-label caption="Published" style-name="label-nowrap" size-auto plain-text _id="publishedLabel" :bottom :right>
35
       12.12.2012 
36
     </vaadin-label>
37
    </vaadin-vertical-layout>
38
   </vaadin-vertical-layout>
39
  </vaadin-horizontal-layout>
40
 </body>
41
</html>

Also available in: Unified diff