View Javadoc
1   package org.argeo.connect.ui;
2   
3   /**
4    * Centralizes management of UI constants for the various Connect UIs
5    * 
6    * TODO handle this cleanly.
7    */
8   public interface ConnectUiConstants {
9   	// Nb of millisecond between 2 requests in the delayed filtered text
10  	int SEARCH_TEXT_DELAY = 800;
11  
12  	// Characters that must be replaced by their codes for RWT
13  	String NB_SPACE = " ";
14  	String NB_DOUBLE_SPACE = "  ";
15  	String AMPERSAND = "&";
16  
17  	// Crud ID & Default label to manage list items among others.
18  	String CRUD_CREATE = "Create";
19  	String CRUD_VIEW = "View";
20  	String CRUD_EDIT = "Edit";
21  	String CRUD_DELETE = "Delete";
22  
23  	/* UI WIDGETS DATA KEYS */
24  	// We often need to store an ordered list of arbitrary objects that goes
25  	// together with the array of String that is displayed to the end user. Thus
26  	// the selected object will be retrieved using this:
27  	String COMBO_BUSINESS_OBJECTS = "comboBusinessList";
28  
29  	// Default column size for various tables and extracts
30  	int DEFAULT_COLUMN_SIZE = 120;
31  
32  	// Exports IDs
33  	String DEFAULT_JXL_EXPORT = "defaultJxlExport";
34  
35  	// the separator used in the various href local values to provide internal
36  	// browsing using links in table / label / trees
37  	String HREF_SEPARATOR = "/";
38  
39  	int SEARCH_DEFAULT_LIMIT = 100;
40  	
41  	// Various types for list label providers
42  	int LIST_TYPE_OVERVIEW_TITLE = 0;
43  	// public final static int LIST_TYPE_OVERVIEW_DETAIL = 1;
44  	int LIST_TYPE_SMALL = 2;
45  	int LIST_TYPE_MEDIUM = 3;
46  
47  	// Custom styling within table cell that are markup enabled:
48  	// we cannot use the CSS class parameter inside of a custom variant control.
49  	String ENTITY_HEADER_INNER_CSS_STYLE = "style='font-size:14px;'";
50  
51  	// CENTRALISE dependency to RWT. TODO manage this cleanly in CmsUtils
52  	//int MARKUP_VIEWER_HYPERLINK = RWT.HYPERLINK;
53  	int MARKUP_VIEWER_HYPERLINK = 1 << 26;
54  }