|
||||||||||
| 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.RatingIndicatorWidget
public class RatingIndicatorWidget
The class RatingIndicator is the GWT wrapper
for the Phoenix control: sap.ui.commons.RatingIndicator.
You can specify the amount of rating symbols, as well as the URIs to the image icons which shall be used as rating symbols. When the user performs a rating, an event is fired.
| 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 | |
|---|---|
|
RatingIndicatorWidget()
constructs the class RatingIndicatorWidget |
protected |
RatingIndicatorWidget(RatingIndicator control)
constructs the class RatingIndicatorWidget |
|
RatingIndicatorWidget(String id)
constructs the class RatingIndicatorWidget |
| Method Summary | |
|---|---|
void |
attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
The event is fired when the user has done a rating. |
void |
detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
The event is fired when the user has done a rating. |
RatingIndicator |
getControl()
returns the reference to the Phoenix Control |
String |
getIconHovered()
Getter for property iconHovered
URI to the image which is displayed when hovering the mouse onto a rating symbol. |
String |
getIconSelected()
Getter for property iconSelected
URI to the image which is displayed for all selected rating symbols. |
String |
getIconUnselected()
Getter for property iconUnselected
URI to the image which is displayed for all deselected rating symbols. |
int |
getMaxValue()
Getter for property maxValue
The amount of rating symbols. |
float |
getValue()
Getter for property value
The current selected value. |
RatingIndicatorVisualMode |
getVisualMode()
Getter for property visualMode
Defines how float values are visualized. |
boolean |
isEditable()
Getter for property editable
Value "true" is required for displaying changed rating indicator colors, for example. |
boolean |
isVisible()
Getter for property visible
Invisible rating indicators are not rendered. |
void |
setEditable(boolean value)
Setter for property editableDefault value is: true |
void |
setIconHovered(String value)
Setter for property iconHovered |
void |
setIconSelected(String value)
Setter for property iconSelected |
void |
setIconUnselected(String value)
Setter for property iconUnselected |
void |
setMaxValue(int value)
Setter for property maxValueDefault value is: 5 |
void |
setValue(float value)
Setter for property valueDefault value is: 0 |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setVisualMode(RatingIndicatorVisualMode value)
Setter for property visualModeDefault value is: Half |
| 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, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RatingIndicatorWidget()
RatingIndicatorWidget
public RatingIndicatorWidget(String id)
RatingIndicatorWidget
id - id of the RatingIndicatorWidgetprotected RatingIndicatorWidget(RatingIndicator control)
RatingIndicatorWidget
control - reference to an existing RatingIndicator| Method Detail |
|---|
public RatingIndicator getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic boolean isVisible()
visible
Invisible rating indicators are 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 boolean isEditable()
editable
Value "true" is required for displaying changed rating indicator colors, for example.
public void setEditable(boolean value)
editabletrue
value - booleanpublic int getMaxValue()
maxValue
The amount of rating symbols.
public void setMaxValue(int value)
maxValue5
value - intpublic float getValue()
value
The current selected value.
public void setValue(float value)
value0
value - floatpublic String getIconSelected()
iconSelected
URI to the image which is displayed for all selected rating symbols.
When this icon-relevant attribute is used also the other icon attributes have to be set.
Requirement is that all custom icons have the same size.
public void setIconSelected(String value)
iconSelected
value - Stringpublic String getIconUnselected()
iconUnselected
URI to the image which is displayed for all deselected rating symbols.
When this icon-relevant attribute is used also the other icon attributes have to be set.
Requirement is that all custom icons have the same size.
public void setIconUnselected(String value)
iconUnselected
value - Stringpublic String getIconHovered()
iconHovered
URI to the image which is displayed when hovering the mouse onto a rating symbol.
When this icon-relevant attribute is used also the other icon attributes have to be set.
Requirement is that all custom icons have the same size.
public void setIconHovered(String value)
iconHovered
value - Stringpublic RatingIndicatorVisualMode getVisualMode()
visualMode
Defines how float values are visualized.
public void setVisualMode(RatingIndicatorVisualMode value)
visualModeHalf
value - com.sap.ui.commons.client.RatingIndicatorVisualModepublic void attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
The event is fired when the user has done a rating.
listener - reference to the EventListenerpublic void detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
The event is fired when the user has done a rating.
listener - reference to the EventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||