![JAR search and dependency download from the Maven repository](/logo.png)
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLTableComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-client-compiler-deps Show documentation
Show all versions of vaadin-client-compiler-deps Show documentation
Vaadin is a web application framework for Rich Internet Applications (RIA).
Vaadin enables easy development and maintenance of fast and
secure rich web
applications with a stunning look and feel and a wide browser support.
It features a server-side architecture with the majority of the logic
running
on the server. Ajax technology is used at the browser-side to ensure a
rich
and interactive user experience.
/*
* Copyright (c) 2002-2011 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gargoylesoftware.htmlunit.javascript.host.html;
import com.gargoylesoftware.htmlunit.BrowserVersionFeatures;
/**
* Contains attributes common to various table components.
*
* @version $Revision: 6204 $
* @author Daniel Gredler
*/
public class HTMLTableComponent extends HTMLElement {
/** The valid "vAlign" values for this element, when emulating IE. */
private static final String[] VALIGN_VALID_VALUES_IE = {"top", "bottom", "middle", "baseline"};
/** The default value of the "vAlign" property. */
private static final String VALIGN_DEFAULT_VALUE = "top";
/**
* Creates an instance.
*/
public HTMLTableComponent() {
// Empty.
}
/**
* Returns the value of the "align" property.
* @return the value of the "align" property
*/
public String jsxGet_align() {
final boolean invalidValues = getBrowserVersion().hasFeature(BrowserVersionFeatures.HTMLELEMENT_ALIGN_INVALID);
return getAlign(invalidValues);
}
/**
* Sets the value of the "align" property.
* @param align the value of the "align" property
*/
public void jsxSet_align(final String align) {
setAlign(align, false);
}
/**
* Returns the value of the "vAlign" property.
* @return the value of the "vAlign" property
*/
public String jsxGet_vAlign() {
return getVAlign(getValidVAlignValues(), VALIGN_DEFAULT_VALUE);
}
/**
* Sets the value of the "vAlign" property.
* @param vAlign the value of the "vAlign" property
*/
public void jsxSet_vAlign(final Object vAlign) {
setVAlign(vAlign, getValidVAlignValues());
}
/**
* Returns the valid "vAlign" values for this element, depending on the browser being emulated.
* @return the valid "vAlign" values for this element, depending on the browser being emulated
*/
private String[] getValidVAlignValues() {
String[] valid;
if (getBrowserVersion().hasFeature(BrowserVersionFeatures.GENERATED_104)) {
valid = VALIGN_VALID_VALUES_IE;
}
else {
valid = null;
}
return valid;
}
/**
* Returns the value of the "ch" property.
* @return the value of the "ch" property
*/
public String jsxGet_ch() {
return getCh();
}
/**
* Sets the value of the "ch" property.
* @param ch the value of the "ch" property
*/
public void jsxSet_ch(final String ch) {
setCh(ch);
}
/**
* Returns the value of the "chOff" property.
* @return the value of the "chOff" property
*/
public String jsxGet_chOff() {
return getChOff();
}
/**
* Sets the value of the "chOff" property.
* @param chOff the value of the "chOff" property
*/
public void jsxSet_chOff(final String chOff) {
setChOff(chOff);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy