1
|
/**
|
2
|
* Copyright (C) 2018 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.event;
|
10
|
|
11
|
public class EditorActionContextFormat {
|
12
|
|
13
|
public enum TargetInfoType {
|
14
|
PROPERTIES, FIELD_CAPTION;
|
15
|
}
|
16
|
|
17
|
/**
|
18
|
*
|
19
|
*/
|
20
|
public boolean doClassName;
|
21
|
/**
|
22
|
* add information on the target class and field if possible
|
23
|
*/
|
24
|
public boolean doTargetInfo;
|
25
|
|
26
|
/**
|
27
|
* add on the target entity like including titlecache and uuid
|
28
|
*/
|
29
|
public boolean doTargetEntity;
|
30
|
/**
|
31
|
*
|
32
|
*/
|
33
|
public boolean classNameForMissingTargetData;
|
34
|
/**
|
35
|
*
|
36
|
*/
|
37
|
public boolean doCreateOrNew;
|
38
|
|
39
|
/**
|
40
|
* The name of the html tag to be used, may be <code>null</code> to format as plain text
|
41
|
*/
|
42
|
public String tagName = "span";
|
43
|
|
44
|
/**
|
45
|
* additional class attributes
|
46
|
*/
|
47
|
public String classAttributes = "";
|
48
|
|
49
|
public TargetInfoType targetInfoType = TargetInfoType.PROPERTIES;
|
50
|
|
51
|
|
52
|
/**
|
53
|
*
|
54
|
*/
|
55
|
public EditorActionContextFormat(boolean doClassName, boolean doProperties, boolean classNameForMissingPropertyPath,
|
56
|
boolean doCreateOrNew, TargetInfoType targetInfoType, String classAttributes) {
|
57
|
this.doClassName = doClassName;
|
58
|
this.doTargetInfo = doProperties;
|
59
|
this.classNameForMissingTargetData = classNameForMissingPropertyPath;
|
60
|
this.doCreateOrNew = doCreateOrNew;
|
61
|
this.targetInfoType = targetInfoType;
|
62
|
this.classAttributes = classAttributes;
|
63
|
}
|
64
|
}
|