|
|||||||||||
| 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.GaugeControl
Gauge Control
| Field Summary | |
private GaugeDataModel |
dataModel
The Data Model |
private GaugeDesignModel |
designModel
The Design Model |
private static long |
serialVersionUID
Serial Version UID |
| 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 | |
GaugeControl()
Constructor |
|
| Method Summary | |
AlignmentType |
getAlignment()
Returns the alignment for the column |
double |
getAmount(int index)
Returns the absolute amount of the given segment. |
ClientHandler |
getClientHandler(int index)
Returns a set of client Handlers for this segment |
Color |
getColor(int index)
Returns the color of the given segment |
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 gauge element if there are no elements available (size() == 0) |
boolean |
getFilter()
Returns the alignment for the column |
java.lang.String |
getHyperlink(int index)
Returns a hyperlink for the given segment |
StateModel |
getStateModel()
Returns the state model of the control |
java.lang.String |
getTarget(int index)
Returns the target where to open the hyperlink |
java.lang.String |
getText()
Returns the text that should be displayed next to the gauge |
java.lang.String |
getTooltip(int index)
Returns the tooltip text for the given segment |
double |
getTotalAmount()
calculate the total amount (= 100%) |
void |
reset()
Resets the actual state of a control to the initial state |
void |
setDataModel(GaugeDataModel dataModel)
Sets the data model |
void |
setDesignModel(GaugeDesignModel designModel)
Sets the design model |
int |
size()
Returns the number of segments of the gauge |
| 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 GaugeDataModel dataModel
private GaugeDesignModel designModel
| Constructor Detail |
public GaugeControl()
| Method Detail |
public DataModel getDataModel()
Control
getDataModel in class ControlControl.getDataModel()public void setDataModel(GaugeDataModel dataModel)
dataModel - DataModelpublic ControlDesignModel getDesignModel()
Control
getDesignModel in class ControlControl.getDesignModel()public void setDesignModel(GaugeDesignModel designModel)
designModel - ChartDesignModelpublic StateModel getStateModel()
Control
getStateModel in class ControlControl.getStateModel()public void reset()
StateModel
reset in interface StateModelStateModel.reset()public double getAmount(int index)
index - segments index
public double getTotalAmount()
public java.lang.String getText()
nullpublic java.lang.String getTooltip(int index)
index - segments index
nullpublic java.lang.String getHyperlink(int index)
index - segment index
nullpublic java.lang.String getTarget(int index)
index - segment index
nullpublic ClientHandler getClientHandler(int index)
index - segment index
nullpublic Color getColor(int index)
index - segments index
public java.lang.String getEmptyText()
public int size()
public AlignmentType getAlignment()
public boolean getFilter()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||