1 /*******************************************************************************
2  * Copyright (c) 2008, 2013 Angelo Zerr and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.e4.ui.css.core.dom.properties.css2;
15 
16 import org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler;
17 import org.eclipse.e4.ui.css.core.engine.CSSEngine;
18 import org.w3c.dom.css.CSSValue;
19 
20 /**
21  * CSS2 Classification Property Handler.
22  *
23  * @see "http://www.w3schools.com/css/css_reference.asp#classification"
24  */
25 public interface ICSSPropertyClassificationHandler extends ICSSPropertyHandler {
26 
27 	/**
28 	 * Sets the sides of an element where other floating elements are not
29 	 * allowed. Available values are=left,right,both,none
30 	 *
31 	 * @param element
32 	 * @param value
33 	 * @param pseudo
34 	 * @param engine
35 	 * @return
36 	 * @throws Exception
37 	 */
applyCSSPropertyClear(Object element, CSSValue value, String pseudo, CSSEngine engine)38 	public void applyCSSPropertyClear(Object element, CSSValue value,
39 			String pseudo, CSSEngine engine) throws Exception;
40 
41 	/**
42 	 * Specifies the type of cursor to be displayed. Available values are=url
43 	 * auto crosshair default pointer move e-resize ne-resize nw-resize n-resize
44 	 * se-resize sw-resize s-resize w-resize text wait help
45 	 *
46 	 * @param element
47 	 * @param value
48 	 * @param pseudo
49 	 * @param engine
50 	 * @return
51 	 * @throws Exception
52 	 */
applyCSSPropertyCursor(Object element, CSSValue value, String pseudo, CSSEngine engine)53 	public void applyCSSPropertyCursor(Object element, CSSValue value,
54 			String pseudo, CSSEngine engine) throws Exception;
55 
56 	/**
57 	 * Sets how/if an element is displayed. Available values are=none inline
58 	 * block list-item run-in compact marker table inline-table table-row-group
59 	 * table-header-group table-footer-group table-row table-column-group
60 	 * table-column table-cell table-caption
61 	 *
62 	 * @param element
63 	 * @param value
64 	 * @param pseudo
65 	 * @param engine
66 	 * @throws Exception
67 	 */
applyCSSPropertyDisplay(Object element, CSSValue value, String pseudo, CSSEngine engine)68 	public void applyCSSPropertyDisplay(Object element, CSSValue value,
69 			String pseudo, CSSEngine engine) throws Exception;
70 
71 	/**
72 	 * Sets where an image or a text will appear in another element. Available
73 	 * values are=left right none
74 	 *
75 	 * @param element
76 	 * @param value
77 	 * @param pseudo
78 	 * @param engine
79 	 * @throws Exception
80 	 */
applyCSSPropertyFloat(Object element, CSSValue value, String pseudo, CSSEngine engine)81 	public void applyCSSPropertyFloat(Object element, CSSValue value,
82 			String pseudo, CSSEngine engine) throws Exception;
83 
84 	/**
85 	 * Places an element in a static, relative, absolute or fixed position.
86 	 * Available values are=static relative absolute fixed
87 	 *
88 	 * @param element
89 	 * @param value
90 	 * @param pseudo
91 	 * @param engine
92 	 * @throws Exception
93 	 */
applyCSSPropertyPosition(Object element, CSSValue value, String pseudo, CSSEngine engine)94 	public void applyCSSPropertyPosition(Object element, CSSValue value,
95 			String pseudo, CSSEngine engine) throws Exception;
96 
97 	/**
98 	 * Sets if an element should be visible or invisible. Available values
99 	 * are=visible hidden collapse
100 	 *
101 	 * @param element
102 	 * @param value
103 	 * @param pseudo
104 	 * @param engine
105 	 * @throws Exception
106 	 */
applyCSSPropertyVisibility(Object element, CSSValue value, String pseudo, CSSEngine engine)107 	public void applyCSSPropertyVisibility(Object element, CSSValue value,
108 			String pseudo, CSSEngine engine) throws Exception;
109 
retrieveCSSPropertyClear(Object element, String pseudo, CSSEngine engine)110 	public String retrieveCSSPropertyClear(Object element, String pseudo,
111 			CSSEngine engine) throws Exception;
112 
retrieveCSSPropertyCursor(Object element, String pseudo, CSSEngine engine)113 	public String retrieveCSSPropertyCursor(Object element, String pseudo,
114 			CSSEngine engine) throws Exception;
115 
retrieveCSSPropertyDisplay(Object element, String pseudo, CSSEngine engine)116 	public String retrieveCSSPropertyDisplay(Object element, String pseudo,
117 			CSSEngine engine) throws Exception;
118 
retrieveCSSPropertyFloat(Object element, String pseudo, CSSEngine engine)119 	public String retrieveCSSPropertyFloat(Object element, String pseudo,
120 			CSSEngine engine) throws Exception;
121 
retrieveCSSPropertyPosition(Object element, String pseudo, CSSEngine engine)122 	public String retrieveCSSPropertyPosition(Object element, String pseudo,
123 			CSSEngine engine) throws Exception;
124 
retrieveCSSPropertyVisibility(Object element, String pseudo, CSSEngine engine)125 	public String retrieveCSSPropertyVisibility(Object element, String pseudo,
126 			CSSEngine engine) throws Exception;
127 }
128