|
||||||||||
| 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.RatingIndicator
public class RatingIndicator
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.
| Constructor Summary | |
|---|---|
protected |
RatingIndicator()
constructs the class RatingIndicatorhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
RatingIndicator |
attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
The event is fired when the user has done a rating. |
static RatingIndicator |
create()
creates a new instance of the class RatingIndicator |
static RatingIndicator |
create(String idOrConfig)
creates a new instance of the class RatingIndicator |
static RatingIndicator |
create(String id,
String config)
creates a new instance of the class RatingIndicator |
RatingIndicator |
detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
The event is fired when the user has done a rating. |
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. |
RatingIndicator |
setEditable(boolean value)
Setter for property editableDefault value is: true |
RatingIndicator |
setIconHovered(String value)
Setter for property iconHovered |
RatingIndicator |
setIconSelected(String value)
Setter for property iconSelected |
RatingIndicator |
setIconUnselected(String value)
Setter for property iconUnselected |
RatingIndicator |
setMaxValue(int value)
Setter for property maxValueDefault value is: 5 |
RatingIndicator |
setValue(float value)
Setter for property valueDefault value is: 0 |
RatingIndicator |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
RatingIndicator |
setVisualMode(RatingIndicatorVisualMode value)
Setter for property visualModeDefault value is: Half |
| 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 RatingIndicator()
RatingIndicatorJavaScriptObject restriction
| Method Detail |
|---|
public static RatingIndicator create()
RatingIndicator
public static RatingIndicator create(String idOrConfig)
RatingIndicator
id - id of the RatingIndicator or configuration JSON string
public static RatingIndicator create(String id,
String config)
RatingIndicator
id - id of the RatingIndicatorconfig - configuration JSON stringpublic final boolean isVisible()
visible
Invisible rating indicators are not rendered.
public final RatingIndicator setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final boolean isEditable()
editable
Value "true" is required for displaying changed rating indicator colors, for example.
public final RatingIndicator setEditable(boolean value)
editabletrue
value - boolean
this to allow method chainingpublic final int getMaxValue()
maxValue
The amount of rating symbols.
public final RatingIndicator setMaxValue(int value)
maxValue5
value - int
this to allow method chainingpublic final float getValue()
value
The current selected value.
public final RatingIndicator setValue(float value)
value0
value - float
this to allow method chainingpublic final 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 final RatingIndicator setIconSelected(String value)
iconSelected
value - String
this to allow method chainingpublic final 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 final RatingIndicator setIconUnselected(String value)
iconUnselected
value - String
this to allow method chainingpublic final 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 final RatingIndicator setIconHovered(String value)
iconHovered
value - String
this to allow method chainingpublic final RatingIndicatorVisualMode getVisualMode()
visualMode
Defines how float values are visualized.
public final RatingIndicator setVisualMode(RatingIndicatorVisualMode value)
visualModeHalf
value - com.sap.ui.commons.client.RatingIndicatorVisualMode
this to allow method chainingpublic final RatingIndicator 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 EventListener
this to allow method chainingpublic final RatingIndicator 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
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||