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() { return (PaperRadioGroupElement) getElement(); } /** *

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 its nexy item 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 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 PaperTabs */ 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 PaperTabs */ public JavaScriptObject getKeyEventTarget(){ return getPolymerElement().getKeyEventTarget(); } /** *

The HTMLElement that will be firing relevant KeyboardEvents.

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

The HTMLElement that will be firing relevant KeyboardEvents.

* * JavaScript Info: * @attribute key-event-target * @behavior PaperTabs */ public void setKeyEventTarget(String value) { getPolymerElement().setAttribute("key-event-target", value); } /** * * * JavaScript Info: * @method keyboardEventMatchesKeys * @param {} event * @param {} eventString * @behavior PaperTabs */ 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 PaperTabs */ public void removeOwnKeyBindings() { getPolymerElement().removeOwnKeyBindings(); } /** * * * JavaScript Info: * @method attached * @behavior PaperTabs */ public void attached() { getPolymerElement().attached(); } /** * * * JavaScript Info: * @method detached * @behavior PaperTabs */ public void detached() { getPolymerElement().detached(); } /** * * * JavaScript Info: * @property observers * @type Array * @behavior PaperTabs */ public JsArray getObservers(){ return getPolymerElement().getObservers(); } /** * * * JavaScript Info: * @property observers * @type Array * @behavior PaperTabs */ public void setObservers(JsArray value) { getPolymerElement().setObservers(value); } /** * * * JavaScript Info: * @method registered * @behavior PaperTabs */ 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 NeonAnimatedPages */ 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 NeonAnimatedPages */ public void setActivateEvent(String value) { getPolymerElement().setActivateEvent(value); } /** * * * JavaScript Info: * @property excludedLocalNames * @type Object * @behavior NeonAnimatedPages */ public JavaScriptObject getExcludedLocalNames(){ return getPolymerElement().getExcludedLocalNames(); } /** * * * JavaScript Info: * @property excludedLocalNames * @type Object * @behavior NeonAnimatedPages */ public void setExcludedLocalNames(JavaScriptObject value) { getPolymerElement().setExcludedLocalNames(value); } /** *

Returns the index of the given item.

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

Returns an array of selectable items.

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

This is a CSS selector sting. If this is set, only items that matches the CSS selector
are selectable.

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

This is a CSS selector sting. If this is set, only items that matches the CSS selector
are selectable.

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

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

* * JavaScript Info: * @property selected * @type string * @behavior NeonAnimatedPages */ 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 NeonAnimatedPages */ public void setSelected(String value) { getPolymerElement().setSelected(value); } /** *

The class to set on elements when selected.

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

The class to set on elements when selected.

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

Returns the currently selected item.

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

Returns the currently selected item.

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

Returns the currently selected item.

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy