|
||||||||||
| 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.ApplicationHeader
public class ApplicationHeader
The class ApplicationHeader is the GWT wrapper
for the Phoenix control: sap.ui.commons.ApplicationHeader.
The application header control stands on the top of any application page. It consists basically of 4 areas. Logo area/Function area provided by application/Search area/Logout area
| Constructor Summary | |
|---|---|
protected |
ApplicationHeader()
constructs the class ApplicationHeaderhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
ApplicationHeader |
attachLogoffEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Fires an event to log off the user from the application. |
static ApplicationHeader |
create()
creates a new instance of the class ApplicationHeader |
static ApplicationHeader |
create(String idOrConfig)
creates a new instance of the class ApplicationHeader |
static ApplicationHeader |
create(String id,
String config)
creates a new instance of the class ApplicationHeader |
ApplicationHeader |
detachLogoffEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Fires an event to log off the user from the application. |
String |
getLogoSrc()
Getter for property logoSrc
Path (src) to the logo icon to be displayed in the application header. |
String |
getLogoText()
Getter for property logoText
The text that will be displayed beside the logo in the application header. |
String |
getUserName()
Getter for property userName
User name that will be displayed beside the welcome text |
boolean |
isDisplayLogoff()
Getter for property displayLogoff
If set to true, the logoff area will be displayed at the right hand side of the application header. |
boolean |
isDisplayWelcome()
Getter for property displayWelcome
By default, set to true and dislpays the welcome text |
ApplicationHeader |
setDisplayLogoff(boolean value)
Setter for property displayLogoffDefault value is: true |
ApplicationHeader |
setDisplayWelcome(boolean value)
Setter for property displayWelcomeDefault value is: true |
ApplicationHeader |
setLogoSrc(String value)
Setter for property logoSrc |
ApplicationHeader |
setLogoText(String value)
Setter for property logoText |
ApplicationHeader |
setUserName(String value)
Setter for property userName |
| 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 ApplicationHeader()
ApplicationHeaderJavaScriptObject restriction
| Method Detail |
|---|
public static ApplicationHeader create()
ApplicationHeader
public static ApplicationHeader create(String idOrConfig)
ApplicationHeader
id - id of the ApplicationHeader or configuration JSON string
public static ApplicationHeader create(String id,
String config)
ApplicationHeader
id - id of the ApplicationHeaderconfig - configuration JSON stringpublic final String getLogoSrc()
logoSrc
Path (src) to the logo icon to be displayed in the application header.
public final ApplicationHeader setLogoSrc(String value)
logoSrc
value - String
this to allow method chainingpublic final String getLogoText()
logoText
The text that will be displayed beside the logo in the application header. This property is optional.
public final ApplicationHeader setLogoText(String value)
logoText
value - String
this to allow method chainingpublic final boolean isDisplayLogoff()
displayLogoff
If set to true, the logoff area will be displayed at the right hand side of the application header.
public final ApplicationHeader setDisplayLogoff(boolean value)
displayLogofftrue
value - boolean
this to allow method chainingpublic final String getUserName()
userName
User name that will be displayed beside the welcome text
public final ApplicationHeader setUserName(String value)
userName
value - String
this to allow method chainingpublic final boolean isDisplayWelcome()
displayWelcome
By default, set to true and dislpays the welcome text
public final ApplicationHeader setDisplayWelcome(boolean value)
displayWelcometrue
value - boolean
this to allow method chainingpublic final ApplicationHeader attachLogoffEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Fires an event to log off the user from the application.
No parameters.
listener - reference to the EventListener
this to allow method chainingpublic final ApplicationHeader detachLogoffEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Fires an event to log off the user from the application.
No parameters.
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 | |||||||||