|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.control.Control
com.cc.framework.ui.control.RatingControl
Rating control
| Field Summary | |
private RatingDataModel |
dataModel
DataModel |
private RatingDesignModel |
designModel
DesignModell |
private static long |
serialVersionUID
Serial Version UID |
private RatingStateModel |
stateModel
StateModel |
| Fields inherited from class com.cc.framework.ui.control.Control |
log |
| Fields inherited from interface com.cc.framework.ui.model.StateModel |
PROP_CONTROL |
| Constructor Summary | |
RatingControl()
Constructor |
|
RatingControl(RatingDesignModel designModel)
Constructor |
|
| Method Summary | |
protected RatingStateModel |
doCreateStateModel()
Creates the state model for this control instance |
DataModel |
getDataModel()
Returns the data model of the Control |
ControlDesignModel |
getDesignModel()
Returns the design model of the control |
java.lang.String |
getEmptyText()
A text that is output in the body of the rating element if there are no elements available (size() == 0) |
boolean |
getFilter()
Returns the Filter setting |
ImageMap |
getImageMap()
Returns the associated ImageMap |
RatingItem |
getItem(int index)
Retrieves the rating item with the given index |
StateModel |
getStateModel()
Returns the state model of the control |
long |
getTotalValue()
Retrieves the total value (=100%) for the control. |
void |
onItemClick(ControlRequestContext ctx,
java.lang.String key)
Default handler for the ItemCLick Event |
void |
reset()
Resets the actual state of a control to the initial state |
void |
setDataModel(RatingDataModel dataModel)
Sets the data model |
void |
setDesignModel(RatingDesignModel designModel)
Sets the designModel |
void |
setStateModel(RatingStateModel stateModel)
Sets the StateModel |
int |
size()
|
| Methods inherited from class com.cc.framework.ui.control.Control |
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, setValue, show, showButton, synchronizeState, synchronizeState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.cc.framework.ui.model.StateModel |
synchronizeState |
| Field Detail |
private static final long serialVersionUID
private RatingDataModel dataModel
private RatingDesignModel designModel
private RatingStateModel stateModel
| Constructor Detail |
public RatingControl()
public RatingControl(RatingDesignModel designModel)
designModel - the design model| Method Detail |
public void reset()
StateModel
reset in interface StateModelStateModel.reset()public void setStateModel(RatingStateModel stateModel)
stateModel - TreeStateModelprotected RatingStateModel doCreateStateModel()
public DataModel getDataModel()
Control
getDataModel in class ControlControl.getDataModel()public ControlDesignModel getDesignModel()
Control
getDesignModel in class ControlControl.getDesignModel()public void setDesignModel(RatingDesignModel designModel)
designModel - The designModel to setpublic void setDataModel(RatingDataModel dataModel)
dataModel - TopsAndFlopsDataModelpublic StateModel getStateModel()
Control
getStateModel in class ControlControl.getStateModel()public int size()
size in interface RatingDataModelRatingDataModel.size()public RatingItem getItem(int index)
RatingDataModel
getItem in interface RatingDataModelindex - zero based index
RatingDataModel.getItem(int)public long getTotalValue()
RatingDataModel
getTotalValue in interface RatingDataModelRatingDataModel.getTotalValue()public boolean getFilter()
public ImageMap getImageMap()
nullpublic java.lang.String getEmptyText()
public void onItemClick(ControlRequestContext ctx,
java.lang.String key)
throws java.lang.Exception
ctx - ControlRequestContextkey - Unique Id as generated by the data model to identify the Row
java.lang.Exception - is thrown when an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||