|
||||||||||
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<C>
javax.rad.genui.control.AbstractControllable<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 |
---|
bTranslate, lLastTranslationModified, parent, popupMenu |
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
Fields inherited from interface javax.rad.ui.control.IChart |
---|
STYLE_AREA, STYLE_BARS, STYLE_LINES, STYLE_PIE |
Fields inherited from interface javax.rad.model.ui.IControllable |
---|
COMMAND_DELETE, COMMAND_DUPLICATE, COMMAND_EDIT, COMMAND_EXPORT, COMMAND_FIRST, COMMAND_INSERT, COMMAND_INSERT_SUB, COMMAND_LAST, COMMAND_NEXT, COMMAND_PREVIOUS, COMMAND_RESTORE, COMMAND_SEARCH |
Constructor Summary | |
---|---|
|
UIChart()
Creates a new instance of UIChart . |
protected |
UIChart(IChart pChart)
Creates a new instance of UIChart with the given chart. |
|
UIChart(IDataBook pDataBook)
Creates a new instance of UIChart . |
|
UIChart(IDataBook pDataBook,
java.lang.String pXColumnName,
java.lang.String[] pYColumnNames)
Creates a new instance of UIChart . |
Method Summary | |
---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook . |
IDataBook |
getActiveDataBook()
Gets the controllable IDataBook for this IControllable . |
int |
getChartStyle()
Gets the chart style. |
IDataBook |
getDataBook()
Returns the DataBook displayed by this control. |
java.lang.String |
getTitle()
Gets the title. |
java.lang.String |
getXAxisTitle()
Gets the x axis title. |
java.lang.String |
getXColumnName()
Gets the x column name. |
java.lang.String |
getYAxisTitle()
Gets the y axis title. |
java.lang.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(java.lang.String pTitle)
Sets the title. |
void |
setXAxisTitle(java.lang.String pXAxisTitle)
Sets the x axis title. |
void |
setXColumnName(java.lang.String pXColumnName)
Sets the x column name. |
void |
setYAxisTitle(java.lang.String pYAxisTitle)
Sets the y axis title. |
void |
setYColumnNames(java.lang.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.control.AbstractControllable |
---|
addNotify, createCellFormatter, createNodeFormatter, doCommand, doDelete, doDuplicate, doEdit, doExport, doFirst, doInsert, doInsertSub, doLast, doNext, doNotifyController, doPrevious, doRestore, doSearch, getController, isCommandEnabled, isDeleteEnabled, isDuplicateEnabled, isEditEnabled, isExportEnabled, isFirstEnabled, isInsertEnabled, isInsertSubEnabled, isLastEnabled, isNextEnabled, isPreviousEnabled, isRestoreEnabled, isSearchEnabled, removeNotify, setController |
Methods inherited from class javax.rad.genui.UIResource |
---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, 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 |
Methods inherited from interface javax.rad.model.ui.ITranslatable |
---|
isTranslationEnabled, setTranslationEnabled |
Methods inherited from interface javax.rad.util.ITranslator |
---|
translate |
Constructor Detail |
---|
public UIChart()
UIChart
.
IChart
protected UIChart(IChart pChart)
UIChart
with the given chart.
pChart
- the chartIChart
public UIChart(IDataBook pDataBook)
UIChart
.
pDataBook
- the data book
.setDataBook(IDataBook)
public UIChart(IDataBook pDataBook, java.lang.String pXColumnName, java.lang.String[] pYColumnNames)
UIChart
.
pDataBook
- the data book
.pXColumnName
- the X column name
.pYColumnNames
- the Y column names
.setDataBook(IDataBook)
,
setXColumnName(String)
,
setYColumnNames(String[])
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 IDataBook getActiveDataBook()
IDataBook
for this IControllable
.
IEditorControl should return the set data row, if it is instanceof IDataBook or null otherwise.
ITableControl should return the set data book.
ITreeControl should return the data book of the current selected node.
The controller has to be informed, If the databook changes on a focused IControllable.
eg: ITreeControl node selection of a different databook.
Editor or table has the focus, and a different databook is set on editor or table.
getActiveDataBook
in interface IControllable
IDataBook
public int getChartStyle()
getChartStyle
in interface IChart
IChart.STYLE_AREA
,
IChart.STYLE_BARS
,
IChart.STYLE_LINES
,
IChart.STYLE_PIE
public void setChartStyle(int pChartStyle)
setChartStyle
in interface IChart
pChartStyle
- the char style.IChart.STYLE_AREA
,
IChart.STYLE_BARS
,
IChart.STYLE_LINES
,
IChart.STYLE_PIE
public java.lang.String getTitle()
getTitle
in interface IChart
public void setTitle(java.lang.String pTitle)
setTitle
in interface IChart
pTitle
- the title.public java.lang.String getXAxisTitle()
getXAxisTitle
in interface IChart
public void setXAxisTitle(java.lang.String pXAxisTitle)
setXAxisTitle
in interface IChart
pXAxisTitle
- the x axis title.public java.lang.String getYAxisTitle()
getYAxisTitle
in interface IChart
public void setYAxisTitle(java.lang.String pYAxisTitle)
setYAxisTitle
in interface IChart
pYAxisTitle
- the y axis title.public java.lang.String getXColumnName()
getXColumnName
in interface IChart
public void setXColumnName(java.lang.String pXColumnName)
setXColumnName
in interface IChart
pXColumnName
- the x column name.public java.lang.String[] getYColumnNames()
getYColumnNames
in interface IChart
public void setYColumnNames(java.lang.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 |