|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.ApplicationHeaderWidget
public class ApplicationHeaderWidget
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
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
ApplicationHeaderWidget()
constructs the class ApplicationHeaderWidget |
protected |
ApplicationHeaderWidget(ApplicationHeader control)
constructs the class ApplicationHeaderWidget |
|
ApplicationHeaderWidget(String id)
constructs the class ApplicationHeaderWidget |
| Method Summary | |
|---|---|
void |
attachLogoffEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Fires an event to log off the user from the application. |
void |
detachLogoffEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Fires an event to log off the user from the application. |
ApplicationHeader |
getControl()
returns the reference to the Phoenix Control |
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 |
void |
setDisplayLogoff(boolean value)
Setter for property displayLogoffDefault value is: true |
void |
setDisplayWelcome(boolean value)
Setter for property displayWelcomeDefault value is: true |
void |
setLogoSrc(String value)
Setter for property logoSrc |
void |
setLogoText(String value)
Setter for property logoText |
void |
setUserName(String value)
Setter for property userName |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationHeaderWidget()
ApplicationHeaderWidget
public ApplicationHeaderWidget(String id)
ApplicationHeaderWidget
id - id of the ApplicationHeaderWidgetprotected ApplicationHeaderWidget(ApplicationHeader control)
ApplicationHeaderWidget
control - reference to an existing ApplicationHeader| Method Detail |
|---|
public ApplicationHeader getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getLogoSrc()
logoSrc
Path (src) to the logo icon to be displayed in the application header.
public void setLogoSrc(String value)
logoSrc
value - Stringpublic String getLogoText()
logoText
The text that will be displayed beside the logo in the application header. This property is optional.
public void setLogoText(String value)
logoText
value - Stringpublic boolean isDisplayLogoff()
displayLogoff
If set to true, the logoff area will be displayed at the right hand side of the application header.
public void setDisplayLogoff(boolean value)
displayLogofftrue
value - booleanpublic String getUserName()
userName
User name that will be displayed beside the welcome text
public void setUserName(String value)
userName
value - Stringpublic boolean isDisplayWelcome()
displayWelcome
By default, set to true and dislpays the welcome text
public void setDisplayWelcome(boolean value)
displayWelcometrue
value - booleanpublic void 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 EventListenerpublic void 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||