diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/property/OverflowMeta.java')
-rw-r--r-- | jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/property/OverflowMeta.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/property/OverflowMeta.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/property/OverflowMeta.java deleted file mode 100644 index 6014eb610..000000000 --- a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/css2/property/OverflowMeta.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006 Sybase, Inc. 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: - * Sybase, Inc. - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.pagedesigner.css2.property; - -import org.eclipse.jst.pagedesigner.css2.ICSSStyle; -import org.w3c.dom.css.CSSValue; - -/** - * - * @author mengbo - * @version 1.5 - */ -public class OverflowMeta extends CSSPropertyMeta { - static final String[] KEYWORDS = new String[] { ICSSPropertyID.VAL_VISIBLE, - ICSSPropertyID.VAL_HIDDEN, ICSSPropertyID.VAL_SCROLL, - ICSSPropertyID.VAL_AUTO }; - - public OverflowMeta() { - super(false, ICSSPropertyID.VAL_VISIBLE); - } - - protected String[] getKeywordValues() { - return KEYWORDS; - } - - public Object calculateCSSValueResult(CSSValue value, String propertyName, - ICSSStyle style) { - String display = style.getDisplay(); - // we only support overflow for "block". Which means we don't support it - // for table/inline-block, etc. - if (!"block".equalsIgnoreCase(display)) { - return ICSSPropertyID.VAL_VISIBLE; - } - return super.calculateCSSValueResult(value, propertyName, style); - } -} |