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

com.vaadin.polymer.iron.element.IronPagesElement 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 iron-pages project by The Polymer Authors
 * that is licensed with http://polymer.github.io/LICENSE.txt license.
 */
package com.vaadin.polymer.iron.element;

import com.vaadin.polymer.elemental.*;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.core.client.js.JsProperty;
import com.google.gwt.core.client.js.JsType;

/**
 * 

iron-pages is used to select one of its children to show. One use is to cycle through a list of
children “pages”.

*

Example:

*
<iron-pages selected="0">
 *   <div>One</div>
 *   <div>Two</div>
 *   <div>Three</div>
 * </iron-pages>
 * 
 * <script>
 *   document.addEventListener('click', function(e) {
 *     var pages = document.querySelector('iron-pages');
 *     pages.selectNext();
 *   });
 * </script>
 * 
 * 
 * 
*/ @JsType public interface IronPagesElement extends HTMLElement { public static final String TAG = "iron-pages"; public static final String SRC = "iron-pages/iron-pages.html"; /** *

handler immediately changes it back

* * JavaScript Info: * @property activateEvent * @type Object * */ @JsProperty JavaScriptObject getActivateEvent(); /** *

handler immediately changes it back

* * JavaScript Info: * @property activateEvent * @type Object * */ @JsProperty void setActivateEvent(JavaScriptObject value); /** * * * JavaScript Info: * @property observers * @type Array * */ @JsProperty JsArray getObservers(); /** * * * JavaScript Info: * @property observers * @type Array * */ @JsProperty void setObservers(JsArray value); /** *

Used to assign the closest resizable ancestor to this resizable
if the ancestor detects a request for notifications.

* * JavaScript Info: * @method assignParentResizable * @param {} parentResizable * @behavior NeonAnimatedPages */ void assignParentResizable(JavaScriptObject parentResizable); /** *

Can be called to manually notify a resizable and its descendant
resizables of a resize change.

* * JavaScript Info: * @method notifyResize * @behavior NeonAnimatedPages */ void notifyResize(); /** *

This method can be overridden to filter nested elements that should or
should not be notified by the current element. Return true if an element
should be notified, or false if it should not be notified.

* * JavaScript Info: * @method resizerShouldNotify * @param {HTMLElement} element * @behavior NeonAnimatedPages */ void resizerShouldNotify(JavaScriptObject element); /** *

Used to remove a resizable descendant from the list of descendants
that should be notified of a resize change.

* * JavaScript Info: * @method stopResizeNotificationsFor * @param {} target * @behavior NeonAnimatedPages */ void stopResizeNotificationsFor(JavaScriptObject target); /** * * * JavaScript Info: * @method attached * @behavior NeonAnimatedPages */ void attached(); /** * * * JavaScript Info: * @method detached * @behavior NeonAnimatedPages */ void detached(); /** * * * JavaScript Info: * @property listeners * @type Object * @behavior NeonAnimatedPages */ @JsProperty JavaScriptObject getListeners(); /** * * * JavaScript Info: * @property listeners * @type Object * @behavior NeonAnimatedPages */ @JsProperty void setListeners(JavaScriptObject value); /** *

If you want to use the attribute value of an element for selected instead of the index,
set this to the name of the attribute.

* * JavaScript Info: * @property attrForSelected * @type string * @behavior NeonAnimatedPages */ @JsProperty String getAttrForSelected(); /** *

If you want to use the attribute value of an element for selected instead of the index,
set this to the name of the attribute.

* * JavaScript Info: * @property attrForSelected * @type string * @behavior NeonAnimatedPages */ @JsProperty void setAttrForSelected(String value); /** * * * JavaScript Info: * @property excludedLocalNames * @type Object * @behavior NeonAnimatedPages */ @JsProperty JavaScriptObject getExcludedLocalNames(); /** * * * JavaScript Info: * @property excludedLocalNames * @type Object * @behavior NeonAnimatedPages */ @JsProperty void setExcludedLocalNames(JavaScriptObject value); /** *

Returns the index of the given item.

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

Returns an array of selectable items.

* * JavaScript Info: * @method items * @behavior NeonAnimatedPages */ void items(); /** *

Selects the given value.

* * JavaScript Info: * @method select * @param {string} value * @behavior NeonAnimatedPages */ void select(String value); /** *

Selects the next item.

* * JavaScript Info: * @method selectNext * @behavior NeonAnimatedPages */ void selectNext(); /** *

Selects the previous item.

* * JavaScript Info: * @method selectPrevious * @behavior NeonAnimatedPages */ void selectPrevious(); /** *

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 */ @JsProperty String 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 */ @JsProperty void setSelectable(String 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 */ @JsProperty String 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 */ @JsProperty void setSelected(String value); /** *

The attribute to set on elements when selected.

* * JavaScript Info: * @property selectedAttribute * @type string * @behavior NeonAnimatedPages */ @JsProperty String getSelectedAttribute(); /** *

The attribute to set on elements when selected.

* * JavaScript Info: * @property selectedAttribute * @type string * @behavior NeonAnimatedPages */ @JsProperty void setSelectedAttribute(String value); /** *

The class to set on elements when selected.

* * JavaScript Info: * @property selectedClass * @type string * @behavior NeonAnimatedPages */ @JsProperty String getSelectedClass(); /** *

The class to set on elements when selected.

* * JavaScript Info: * @property selectedClass * @type string * @behavior NeonAnimatedPages */ @JsProperty void setSelectedClass(String value); /** *

Returns the currently selected item.

* * JavaScript Info: * @property selectedItem * @type Object * @behavior NeonAnimatedPages */ @JsProperty JavaScriptObject getSelectedItem(); /** *

Returns the currently selected item.

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy