All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.polymer.paper.widget.PaperRadioGroup Maven / Gradle / Ivy

There is a newer version: 1.9.3.1
Show newest version
/*
 * This code was generated with Vaadin Web Component GWT API Generator, 
 * from paper-radio-group project by The Polymer Authors
 * that is licensed with http://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.paper.widget;

import com.vaadin.polymer.paper.element.*;

import com.vaadin.polymer.PolymerWidget;
import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.core.client.JavaScriptObject;

/**
 * 

paper-radio-group allows user to select only one radio button from a set.
Checking one radio button that belongs to a radio group unchecks any
previously checked radio button within the same group. Use
selected to get or set the selected radio button.

*

Example:

*
<paper-radio-group selected="small">
 *   <paper-radio-button name="small">Small</paper-radio-button>
 *   <paper-radio-button name="medium">Medium</paper-radio-button>
 *   <paper-radio-button name="large">Large</paper-radio-button>
 * </paper-radio-group>
 * 
 * 
 * 

See paper-radio-button for more
information about paper-radio-button.

*/ public class PaperRadioGroup extends PolymerWidget { /** * Default Constructor. */ public PaperRadioGroup() { this(""); } /** * Constructor used by UIBinder to create widgets with content. */ public PaperRadioGroup(String html) { super(PaperRadioGroupElement.TAG, PaperRadioGroupElement.SRC, html); } /** * Gets a handle to the Polymer object's underlying DOM element. */ public PaperRadioGroupElement getPolymerElement() { try { return (PaperRadioGroupElement) getElement(); } catch (ClassCastException e) { jsinteropError(); return null; } } /** *

Overriden from Polymer.IronSelectableBehavior

* * JavaScript Info: * @property attrForSelected * @type String * */ public String getAttrForSelected(){ return getPolymerElement().getAttrForSelected(); } /** *

Overriden from Polymer.IronSelectableBehavior

* * JavaScript Info: * @property attrForSelected * @type String * */ public void setAttrForSelected(String value) { getPolymerElement().setAttrForSelected(value); } /** * * * JavaScript Info: * @property keyBindings * @type Object * */ public JavaScriptObject getKeyBindings(){ return getPolymerElement().getKeyBindings(); } /** * * * JavaScript Info: * @property keyBindings * @type Object * */ public void setKeyBindings(JavaScriptObject value) { getPolymerElement().setKeyBindings(value); } /** *

Selects the given value.

* * JavaScript Info: * @method select * @param {} value * */ public void select(JavaScriptObject value) { getPolymerElement().select(value); } /** *

Selects the next item. If the next item is disabled, then it is
skipped, and the next item after it is selected.

* * JavaScript Info: * @method selectNext * */ public void selectNext() { getPolymerElement().selectNext(); } /** *

Selects the previous item. If the previous item is disabled, then it is
skipped, and its previous item is selected

* * JavaScript Info: * @method selectPrevious * */ public void selectPrevious() { getPolymerElement().selectPrevious(); } /** *

Overriden from Polymer.IronSelectableBehavior

* * JavaScript Info: * @property selectable * @type String * */ public String getSelectable(){ return getPolymerElement().getSelectable(); } /** *

Overriden from Polymer.IronSelectableBehavior

* * JavaScript Info: * @property selectable * @type String * */ public void setSelectable(String value) { getPolymerElement().setSelectable(value); } /** *

Overriden from Polymer.IronSelectableBehavior

* * JavaScript Info: * @property selectedAttribute * @type String * */ public String getSelectedAttribute(){ return getPolymerElement().getSelectedAttribute(); } /** *

Overriden from Polymer.IronSelectableBehavior

* * JavaScript Info: * @property selectedAttribute * @type String * */ public void setSelectedAttribute(String value) { getPolymerElement().setSelectedAttribute(value); } /** * * * JavaScript Info: * @property hostAttributes * @type Object * */ public JavaScriptObject getHostAttributes(){ return getPolymerElement().getHostAttributes(); } /** * * * JavaScript Info: * @property hostAttributes * @type Object * */ public void setHostAttributes(JavaScriptObject value) { getPolymerElement().setHostAttributes(value); } /** *

Can be used to imperatively add a key binding to the implementing
element. This is the imperative equivalent of declaring a keybinding
in the keyBindings prototype property.

* * JavaScript Info: * @method addOwnKeyBinding * @param {} eventString * @param {} handlerName * @behavior PaperTab */ public void addOwnKeyBinding(JavaScriptObject eventString, JavaScriptObject handlerName) { getPolymerElement().addOwnKeyBinding(eventString, handlerName); } /** *

The HTMLElement that will be firing relevant KeyboardEvents.

* * JavaScript Info: * @property keyEventTarget * @type Object * @behavior PaperTab */ public JavaScriptObject getKeyEventTarget(){ return getPolymerElement().getKeyEventTarget(); } /** *

The HTMLElement that will be firing relevant KeyboardEvents.

* * JavaScript Info: * @property keyEventTarget * @type Object * @behavior PaperTab */ public void setKeyEventTarget(JavaScriptObject value) { getPolymerElement().setKeyEventTarget(value); } /** *

The HTMLElement that will be firing relevant KeyboardEvents.

* * JavaScript Info: * @attribute key-event-target * @behavior PaperTab */ public void setKeyEventTarget(String value) { getPolymerElement().setAttribute("key-event-target", value); } /** * * * JavaScript Info: * @method keyboardEventMatchesKeys * @param {} event * @param {} eventString * @behavior PaperTab */ public void keyboardEventMatchesKeys(JavaScriptObject event, JavaScriptObject eventString) { getPolymerElement().keyboardEventMatchesKeys(event, eventString); } /** *

When called, will remove all imperatively-added key bindings.

* * JavaScript Info: * @method removeOwnKeyBindings * @behavior PaperTab */ public void removeOwnKeyBindings() { getPolymerElement().removeOwnKeyBindings(); } /** * * * JavaScript Info: * @method attached * @behavior PaperTab */ public void attached() { getPolymerElement().attached(); } /** * * * JavaScript Info: * @method detached * @behavior PaperTab */ public void detached() { getPolymerElement().detached(); } /** * * * JavaScript Info: * @property observers * @type Array * @behavior PaperTab */ public JsArray getObservers(){ return getPolymerElement().getObservers(); } /** * * * JavaScript Info: * @property observers * @type Array * @behavior PaperTab */ public void setObservers(JsArray value) { getPolymerElement().setObservers(value); } /** * * * JavaScript Info: * @method registered * @behavior PaperTab */ public void registered() { getPolymerElement().registered(); } /** *

The event that fires from items when they are selected. Selectable
will listen for this event from items and update the selection state.
Set to empty string to listen to no events.

* * JavaScript Info: * @property activateEvent * @type string * @behavior PaperTabs */ public String getActivateEvent(){ return getPolymerElement().getActivateEvent(); } /** *

The event that fires from items when they are selected. Selectable
will listen for this event from items and update the selection state.
Set to empty string to listen to no events.

* * JavaScript Info: * @property activateEvent * @type string * @behavior PaperTabs */ public void setActivateEvent(String value) { getPolymerElement().setActivateEvent(value); } /** * * * JavaScript Info: * @property excludedLocalNames * @type Object * @behavior PaperTabs */ public JavaScriptObject getExcludedLocalNames(){ return getPolymerElement().getExcludedLocalNames(); } /** * * * JavaScript Info: * @property excludedLocalNames * @type Object * @behavior PaperTabs */ public void setExcludedLocalNames(JavaScriptObject value) { getPolymerElement().setExcludedLocalNames(value); } /** *

Returns the index of the given item.

* * JavaScript Info: * @method indexOf * @param {Object} item * @behavior PaperTabs */ public void indexOf(JavaScriptObject item) { getPolymerElement().indexOf(item); } /** *

Returns an array of selectable items.

* * JavaScript Info: * @method items * @behavior PaperTabs */ public void items() { getPolymerElement().items(); } /** *

Gets or sets the selected element. The default is to use the index of the item.

* * JavaScript Info: * @property selected * @type string * @behavior PaperTabs */ public String getSelected(){ return getPolymerElement().getSelected(); } /** *

Gets or sets the selected element. The default is to use the index of the item.

* * JavaScript Info: * @property selected * @type string * @behavior PaperTabs */ public void setSelected(String value) { getPolymerElement().setSelected(value); } /** *

The class to set on elements when selected.

* * JavaScript Info: * @property selectedClass * @type string * @behavior PaperTabs */ public String getSelectedClass(){ return getPolymerElement().getSelectedClass(); } /** *

The class to set on elements when selected.

* * JavaScript Info: * @property selectedClass * @type string * @behavior PaperTabs */ public void setSelectedClass(String value) { getPolymerElement().setSelectedClass(value); } /** *

Returns the currently selected item.

* * JavaScript Info: * @property selectedItem * @type Object * @behavior PaperTabs */ public JavaScriptObject getSelectedItem(){ return getPolymerElement().getSelectedItem(); } /** *

Returns the currently selected item.

* * JavaScript Info: * @property selectedItem * @type Object * @behavior PaperTabs */ public void setSelectedItem(JavaScriptObject value) { getPolymerElement().setSelectedItem(value); } /** *

Returns the currently selected item.

* * JavaScript Info: * @attribute selected-item * @behavior PaperTabs */ public void setSelectedItem(String value) { getPolymerElement().setAttribute("selected-item", value); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy