|
||||||||||
| 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.commons.client.Toolbar
public class Toolbar
The class Toolbar is the GWT wrapper
for the Phoenix control: sap.ui.commons.Toolbar.
A single, horizontal row of immediate, always visible items. In many cases, a toolbar item is a button with an icon. All controls having interface sap.ui.commons.ToolbarItem can be used as item.
| 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. |
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. |
ToolbarDesign |
getDesign()
Getter for property design
Design settings are theme-dependent. |
com.sap.ui.core.client.js.JsArray<ToolbarItem> |
getItems()
Getter for aggregation items Aggregating the toolbar items. |
String |
getWidth()
Getter for property width
When there is not enough space for the toolbar to display all items, the rightmost items are overflowing into a drop-down menu. |
int |
indexOfItem(ToolbarItem item)
Checks for the provided com.sap.ui.commons.client.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 |
isStandalone()
Getter for property standalone
Alternatively, toolbars can be nested in controls from which they inherit the design. |
boolean |
isVisible()
Getter for property visible
Invisible controls are not rendered. |
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 |
setDesign(ToolbarDesign value)
Setter for property designDefault value is: Flat |
Toolbar |
setStandalone(boolean value)
Setter for property standaloneDefault value is: true |
Toolbar |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
Toolbar |
setWidth(String value)
Setter for property widthDefault value is: auto |
| 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
Invisible controls are not rendered.
public final Toolbar setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getWidth()
width
When there is not enough space for the toolbar to display all items, the rightmost items are overflowing into a drop-down menu.
public final Toolbar setWidth(String value)
widthauto
value - String
this to allow method chainingpublic final ToolbarDesign getDesign()
design
Design settings are theme-dependent.
public final Toolbar setDesign(ToolbarDesign value)
designFlat
value - com.sap.ui.commons.client.ToolbarDesign
this to allow method chainingpublic final boolean isStandalone()
standalone
Alternatively, toolbars can be nested in controls from which they inherit the design.
public final Toolbar setStandalone(boolean value)
standalonetrue
value - boolean
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.commons.client.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.commons.client.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 chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||