com.google.gwt.dom.builder.shared.SelectBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.gwt-servlet
Show all versions of org.apache.servicemix.bundles.gwt-servlet
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
/*
* Copyright 2011 Google 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.google.gwt.dom.builder.shared;
/**
* Builds an select element.
*/
public interface SelectBuilder extends ElementBuilderBase {
/**
* Disable the select box.
*
* @see W3C
* HTML Specification
*/
SelectBuilder disabled();
/**
* Allow multiple options to be selected.
*
* @see W3C
* HTML Specification
*/
SelectBuilder multiple();
/**
* Form control or object name when submitted with a form.
*
* @see W3C
* HTML Specification
*/
SelectBuilder name(String name);
/**
* The ordinal index of the selected option, starting from 0. The value -1 is
* returned if no element is selected. If multiple options are selected, the
* index of the first selected option is returned.
*/
SelectBuilder selectedIndex(int index);
/**
* Number of visible rows.
*
* @see W3C
* HTML Specification
*/
SelectBuilder size(int size);
/**
* The type of this form control. This is the string "select-multiple" when
* the multiple attribute is true and the string "select-one" when false.
*/
SelectBuilder type(String type);
/**
* The current form control value (i.e., the value of the currently selected
* option), if multiple options are selected this is the value of the first
* selected option.
*/
SelectBuilder value(String value);
}