public class Rating
extends org.zkoss.zk.ui.HtmlBasedComponent
implements org.zkoss.zk.ui.ext.Disable, org.zkoss.zk.ui.ext.Readonly
Default HtmlBasedComponent.getZclass(): z-rating.
| Constructor and Description |
|---|
Rating() |
| Modifier and Type | Method and Description |
|---|---|
String |
getIconSclass()
Returns the iconSclass name of this rating.
|
int |
getMax()
Returns the max rating of this rating component.
|
String |
getOrient()
Returns the orientation of this rating component.
|
int |
getRating()
Returns the rating.
|
boolean |
isCancelable()
Returns whether this rating component is cancelable.
|
boolean |
isDisabled()
Returns if this rating component is disabled.
|
boolean |
isReadonly()
Returns if this rating component is readonly.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
service(org.zkoss.zk.au.AuRequest request,
boolean everError) |
void |
setCancelable(boolean cancelable)
Sets whether to enable the cancel feature.
|
void |
setDisabled(boolean disabled)
Sets whether this component is disabled, means the rating is not changeable.
|
void |
setIconSclass(String iconSclass)
Sets the iconSclass name of this rating.
|
void |
setMax(int max)
Sets the max rate of this rating component.
|
void |
setOrient(String orient)
Sets the orientation of this rating component.
|
void |
setRating(int rating)
Sets the rating.
|
void |
setReadonly(boolean readonly)
Sets whether this component is readonly.
|
addSclass, clone, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getPropertyAccess, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic String getIconSclass()
public void setIconSclass(String iconSclass)
iconSclass - Stringpublic String getOrient()
public void setOrient(String orient)
orient - vertical or horizontal.public int getRating()
public void setRating(int rating)
rating - public boolean isCancelable()
public void setCancelable(boolean cancelable)
cancelable - public int getMax()
public void setMax(int max)
max - public boolean isDisabled()
isDisabled in interface org.zkoss.zk.ui.ext.Disablepublic void setDisabled(boolean disabled)
setDisabled in interface org.zkoss.zk.ui.ext.Disabledisabled - public boolean isReadonly()
isReadonly in interface org.zkoss.zk.ui.ext.Readonlypublic void setReadonly(boolean readonly)
setReadonly in interface org.zkoss.zk.ui.ext.Readonlyreadonly - protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zk.ui.HtmlBasedComponentIOExceptionpublic void service(org.zkoss.zk.au.AuRequest request,
boolean everError)
service in interface org.zkoss.zk.ui.sys.ComponentCtrlservice in class org.zkoss.zk.ui.HtmlBasedComponentCopyright © 2024. All rights reserved.