|
||||||||||
| 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.RoadMapWidget
public class RoadMapWidget
The class RoadMap is the GWT wrapper
for the Phoenix control: sap.ui.commons.RoadMap.
The RoadMap control is used to display step by step workflows. This allows displaying small steps of a clearly defined work process.
| 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 | |
|---|---|
|
RoadMapWidget()
constructs the class RoadMapWidget |
protected |
RoadMapWidget(RoadMap control)
constructs the class RoadMapWidget |
|
RoadMapWidget(String id)
constructs the class RoadMapWidget |
| Method Summary | |
|---|---|
void |
addStep(RoadMapStep step)
Appends some step to the steps-aggregation. |
void |
attachStepExpandedEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when a given step is expanded or collapsed by user. |
void |
attachStepSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when a given step is selected by user (when it was not selected before). |
void |
destroySteps()
Destroys all the steps in the Steps-aggregation. |
void |
detachStepExpandedEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when a given step is expanded or collapsed by user. |
void |
detachStepSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when a given step is selected by user (when it was not selected before). |
RoadMap |
getControl()
returns the reference to the Phoenix Control |
String |
getFirstVisibleStep()
Getter for property firstVisibleStep
The id of the first step to be display |
int |
getNumberOfVisibleSteps()
Getter for property numberOfVisibleSteps
Total number of steps to be displayed at once |
String |
getSelectedStep()
Getter for property selectedStep
The id of the step which is selected |
com.sap.ui.core.client.js.JsArray<RoadMapStep> |
getSteps()
Getter for aggregation steps Steps that are composing the RoadMap. |
String |
getWidth()
Getter for property width
Width of RoadMap |
int |
indexOfStep(RoadMapStep step)
Checks for the provided com.sap.ui.commons.client.RoadMapStep in the steps-aggregation and
returns its index if found or -1 otherwise. |
void |
insertStep(RoadMapStep step,
int index)
Inserts some step into the aggregation named steps. |
boolean |
isVisible()
Getter for property visible
Invisible Roadmap is not rendered |
void |
removeAllSteps()
Removes all the items in the steps-aggregation. |
void |
removeStep(int index)
Removes the step at position index in the steps-aggregation named. |
void |
setFirstVisibleStep(String value)
Setter for property firstVisibleStep |
void |
setNumberOfVisibleSteps(int value)
Setter for property numberOfVisibleSteps |
void |
setSelectedStep(String value)
Setter for property selectedStep |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property widthDefault value is: 100% |
| 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, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RoadMapWidget()
RoadMapWidget
public RoadMapWidget(String id)
RoadMapWidget
id - id of the RoadMapWidgetprotected RoadMapWidget(RoadMap control)
RoadMapWidget
control - reference to an existing RoadMap| Method Detail |
|---|
public RoadMap getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic int getNumberOfVisibleSteps()
numberOfVisibleSteps
Total number of steps to be displayed at once
public void setNumberOfVisibleSteps(int value)
numberOfVisibleSteps
value - intpublic String getFirstVisibleStep()
firstVisibleStep
The id of the first step to be display
public void setFirstVisibleStep(String value)
firstVisibleStep
value - Stringpublic String getSelectedStep()
selectedStep
The id of the step which is selected
public void setSelectedStep(String value)
selectedStep
value - Stringpublic String getWidth()
width
Width of RoadMap
public void setWidth(String value)
width100%
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic boolean isVisible()
visible
Invisible Roadmap is not rendered
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic com.sap.ui.core.client.js.JsArray<RoadMapStep> getSteps()
public void insertStep(RoadMapStep step,
int index)
step - the step to insertindex - int the 0-based index the step should be inserted at.public void addStep(RoadMapStep step)
step - com.sap.ui.commons.client.RoadMapStep the step to addpublic void removeStep(int index)
index in the steps-aggregation named.
index - int the position of the step to remove.public void removeAllSteps()
public int indexOfStep(RoadMapStep step)
com.sap.ui.commons.client.RoadMapStep in the steps-aggregation and
returns its index if found or -1 otherwise.
step - the step whose index is looked for.
public void destroySteps()
public void attachStepSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when a given step is selected by user (when it was not selected before).
listener - reference to the EventListenerpublic void detachStepSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when a given step is selected by user (when it was not selected before).
listener - reference to the EventListenerpublic void attachStepExpandedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when a given step is expanded or collapsed by user.
listener - reference to the EventListenerpublic void detachStepExpandedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when a given step is expanded or collapsed by user.
listener - reference to the EventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||