|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.table.client.web.Toolbar
public class Toolbar
The class Toolbar is the GWT wrapper
for the Phoenix control: sap.ui.table.web.Toolbar.
This Toolbar control was designed to be used as a header in a web.Table control. As a matter of fact, it can only used in this context as events bubble to the parent Table control.
| Constructor Summary | |
|---|---|
protected |
Toolbar()
constructs the class Toolbarhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Toolbar |
addItem(ToolbarItem item)
Appends a item to the aggregation items. |
Toolbar |
attachSubItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
This event will be fired when an item item is clicked. |
static Toolbar |
create()
creates a new instance of the class Toolbar |
static Toolbar |
create(String idOrConfig)
creates a new instance of the class Toolbar |
static Toolbar |
create(String id,
String config)
creates a new instance of the class Toolbar |
Toolbar |
destroyItems()
Destroys all the items in the Items-aggregation. |
Toolbar |
detachSubItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
This event will be fired when an item item is clicked. |
com.sap.ui.core.client.js.JsArray<ToolbarItem> |
getItems()
Getter for aggregation items Items in Toolbar |
String |
getSelected()
Getter for property selected
Holds the id of the current selected toolbaritem |
ToolbarType |
getType()
Getter for property type
Type of the Toolbar: header / footer (affects design) |
int |
indexOfItem(ToolbarItem item)
Checks for the provided com.sap.ui.table.client.web.ToolbarItem in the items-aggregation and
returns its index if found or -1 otherwise. |
Toolbar |
insertItem(ToolbarItem item,
int index)
Inserts some item into the aggregation named items. |
boolean |
isIsSubtoolbar()
Getter for property isSubtoolbar
Indicates if Toolbar is a Subtoolbar. |
boolean |
isVisible()
Getter for property visible
Show / Hide the control |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<ToolbarItem>> |
removeAllItems()
Removes all the items in the items-aggregation. |
com.sap.ui.core.client.js.JsArray<ToolbarItem> |
removeItem(int index)
Removes a item from the aggregation named items. |
Toolbar |
setIsSubtoolbar(boolean value)
Setter for property isSubtoolbarDefault value is: false |
Toolbar |
setSelected(String value)
Setter for property selected |
Toolbar |
setType(ToolbarType value)
Setter for property typeDefault value is: sap.ui.table.web.ToolbarType.Header |
Toolbar |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Toolbar()
ToolbarJavaScriptObject restriction
| Method Detail |
|---|
public static Toolbar create()
Toolbar
public static Toolbar create(String idOrConfig)
Toolbar
id - id of the Toolbar or configuration JSON string
public static Toolbar create(String id,
String config)
Toolbar
id - id of the Toolbarconfig - configuration JSON stringpublic final boolean isVisible()
visible
Show / Hide the control
public final Toolbar setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getSelected()
selected
Holds the id of the current selected toolbaritem
public final Toolbar setSelected(String value)
selected
value - String
this to allow method chainingpublic final boolean isIsSubtoolbar()
isSubtoolbar
Indicates if Toolbar is a Subtoolbar. Subtoolbars can not have (sub)subtoolbars. This value is set automatically when a Toolbar is added to an other Toolbar control as Subtoolbar.
public final Toolbar setIsSubtoolbar(boolean value)
isSubtoolbarfalse
value - boolean
this to allow method chainingpublic final ToolbarType getType()
type
Type of the Toolbar: header / footer (affects design)
public final Toolbar setType(ToolbarType value)
typesap.ui.table.web.ToolbarType.Header
value - com.sap.ui.table.client.web.ToolbarType
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<ToolbarItem> getItems()
public final Toolbar insertItem(ToolbarItem item,
int index)
items.
item - the item to insertindex - int the 0-based index the item should be inserted at.
this to allow method chainingpublic final Toolbar addItem(ToolbarItem item)
items.
item - com.sap.ui.table.client.web.ToolbarItem the item to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<ToolbarItem> removeItem(int index)
items.
index - int the position of the item to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<ToolbarItem>> removeAllItems()
public final int indexOfItem(ToolbarItem item)
com.sap.ui.table.client.web.ToolbarItem in the items-aggregation and
returns its index if found or -1 otherwise.
item - the item whose index is looked for.
public final Toolbar destroyItems()
this to allow method chainingpublic final Toolbar attachSubItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event will be fired when an item item is clicked.
listener - reference to the EventListener
this to allow method chainingpublic final Toolbar detachSubItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event will be fired when an item item is clicked.
listener - reference to the EventListener
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||