| /******************************************************************************* |
| * Copyright (c) 2008 Angelo Zerr and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.e4.ui.css.core.dom.properties.css2; |
| |
| import org.eclipse.e4.ui.css.core.dom.properties.ICSSPropertyHandler; |
| import org.eclipse.e4.ui.css.core.engine.CSSEngine; |
| import org.w3c.dom.css.CSSValue; |
| |
| /** |
| * CSS2 Dimension Property Handler. |
| * |
| * @see http://www.w3schools.com/css/css_reference.asp#dimension |
| */ |
| public interface ICSSPropertyDimensionHandler extends ICSSPropertyHandler { |
| |
| /** |
| * Sets the height of an element. Available values are=auto length % |
| * |
| * @param element |
| * @param value |
| * @param pseudo |
| * @param engine |
| * @throws Exception |
| */ |
| public void applyCSSPropertyHeight(Object element, CSSValue value, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| /** |
| * Sets the distance between lines. Available values are=normal number |
| * length % |
| * |
| * @param element |
| * @param value |
| * @param pseudo |
| * @param engine |
| * @throws Exception |
| */ |
| public void applyCSSPropertyLineHeight(Object element, CSSValue value, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| /** |
| * Sets the maximum height of an element. Available values are= none length % |
| * |
| * @param element |
| * @param value |
| * @param pseudo |
| * @param engine |
| * @throws Exception |
| */ |
| public void applyCSSPropertyMaxHeight(Object element, CSSValue value, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| /** |
| * Sets the maximum width of an element. Available values are=none length % |
| * |
| * @param element |
| * @param value |
| * @param pseudo |
| * @param engine |
| * @throws Exception |
| */ |
| public void applyCSSPropertyMaxWidth(Object element, CSSValue value, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| /** |
| * Sets the minimum height of an element. Available values are=length % |
| * |
| * @param element |
| * @param value |
| * @param pseudo |
| * @param engine |
| * @throws Exception |
| */ |
| public void applyCSSPropertyMinHeight(Object element, CSSValue value, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| /** |
| * Sets the minimum width of an element. Available values are=length % |
| * |
| * @param element |
| * @param value |
| * @param pseudo |
| * @param engine |
| * @throws Exception |
| */ |
| public void applyCSSPropertyMinWidth(Object element, CSSValue value, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| /** |
| * Sets the width of an element. Available values are=auto % length |
| * |
| * @param element |
| * @param value |
| * @param pseudo |
| * @param engine |
| * @throws Exception |
| */ |
| public void applyCSSPropertyWidth(Object element, CSSValue value, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| public String retrieveCSSPropertyHeight(Object widget, String property, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| public String retrieveCSSPropertyMaxHeight(Object widget, String property, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| public String retrieveCSSPropertyMinHeight(Object widget, String property, |
| String pseudo, CSSEngine engine) throws Exception; |
| |
| public String retrieveCSSPropertyMinWidth(Object widget, String property, |
| String pseudo, CSSEngine engine) throws Exception; |
| } |