|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<IChart>
javax.rad.genui.control.UIChart
public class UIChart
Platform and technology independent Table. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
Field Summary |
---|
Fields inherited from class javax.rad.genui.UIComponent |
---|
lLastTranslationModified, parent |
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
Fields inherited from interface javax.rad.ui.control.IChart |
---|
STYLE_AREA, STYLE_BARS, STYLE_LINES |
Constructor Summary | |
---|---|
|
UIChart()
Creates a new instance of UIChart . |
protected |
UIChart(IChart pChart)
Creates a new instance of UIChart with the given chart. |
Method Summary | |
---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook . |
int |
getChartStyle()
Gets the chart style. |
IDataBook |
getDataBook()
Returns the DataBook displayed by this control. |
String |
getTitle()
Gets the title. |
String |
getXAxisTitle()
Gets the x axis title. |
String |
getXColumnName()
Gets the x column name. |
String |
getYAxisTitle()
Gets the y axis title. |
String[] |
getYColumnNames()
Gets the y column names. |
void |
notifyRepaint()
The control need to check if the part is visible and then repaint the part. |
void |
saveEditing()
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow . |
void |
setChartStyle(int pChartStyle)
Sets the chart style. |
void |
setDataBook(IDataBook pDataBook)
Sets the DataBook displayed by this control. |
void |
setTitle(String pTitle)
Sets the title. |
void |
setXAxisTitle(String pXAxisTitle)
Sets the x axis title. |
void |
setXColumnName(String pXColumnName)
Sets the x column name. |
void |
setYAxisTitle(String pYAxisTitle)
Sets the y axis title. |
void |
setYColumnNames(String[] pYColumnNames)
Sets the y column names. |
void |
startEditing()
Informs the GUI control, that the editor should be opened. |
void |
updateTranslation()
Notification for updating the translation. |
Methods inherited from class javax.rad.genui.UIResource |
---|
equals, getUIResource, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.control.IChart |
---|
getTranslation, setTranslation |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public UIChart()
UIChart
.
IChart
protected UIChart(IChart pChart)
UIChart
with the given chart.
pChart
- the chartIChart
Method Detail |
---|
public IDataBook getDataBook()
getDataBook
in interface ITableControl
ITableControl.setDataBook(javax.rad.model.IDataBook)
public void setDataBook(IDataBook pDataBook)
setDataBook
in interface ITableControl
pDataBook
- the DataBookITableControl.getDataBook()
public int getChartStyle()
getChartStyle
in interface IChart
public void setChartStyle(int pChartStyle)
setChartStyle
in interface IChart
pChartStyle
- the char style.public String getTitle()
getTitle
in interface IChart
public void setTitle(String pTitle)
setTitle
in interface IChart
pTitle
- the title.public String getXAxisTitle()
getXAxisTitle
in interface IChart
public void setXAxisTitle(String pXAxisTitle)
setXAxisTitle
in interface IChart
pXAxisTitle
- the x axis title.public String getYAxisTitle()
getYAxisTitle
in interface IChart
public void setYAxisTitle(String pYAxisTitle)
setYAxisTitle
in interface IChart
pYAxisTitle
- the y axis title.public String getXColumnName()
getXColumnName
in interface IChart
public void setXColumnName(String pXColumnName)
setXColumnName
in interface IChart
pXColumnName
- the x column name.public String[] getYColumnNames()
getYColumnNames
in interface IChart
public void setYColumnNames(String[] pYColumnNames)
setYColumnNames
in interface IChart
pYColumnNames
- y column names.public void notifyRepaint()
notifyRepaint
in interface IControl
public void startEditing()
startEditing
in interface ITableControl
public void saveEditing() throws ModelException
IDataBook
or IDataRow
.
saveEditing
in interface IControl
ModelException
- if the value can not be stored.public void cancelEditing()
DataBook
.
cancelEditing
in interface IControl
public void updateTranslation()
UIComponent
will be added to a displayable containment hierarchy,
when its containment hierarchy is made displayable or the translation table will
be changed.
updateTranslation
in class UIComponent<IChart>
UIComponent.setTranslation(TranslationMap)
,
UIComponent.addNotify()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |