|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.web.impl.WebResource
com.sibvisions.rad.ui.web.impl.WebComponent
com.sibvisions.rad.ui.web.impl.control.LinkTableCache
com.sibvisions.rad.ui.web.impl.control.WebTable
public class WebTable
Web server implementation of ITable.
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.web.impl.WebComponent |
|---|
componentId |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
WebTable()
Creates a new instance of WebTable. |
|
| Method Summary | |
|---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook. |
void |
dataBookChanged(DataBookEvent pDataBookEvent)
Notifies that the IDataBook is changed. |
ICellFormatter |
getCellFormatter()
Gets the cell formatter. |
IDataBook |
getDataBook()
Returns the DataBook displayed by this control. |
TranslationMap |
getTranslation()
Gets the possible translation mapping for this UIComponent. |
boolean |
isAutoResize()
Gets true, if the ITable is in auto resize mode. |
boolean |
isShowHorizontalLines()
Gets if showing the vertical lines or not. |
boolean |
isShowSelection()
Gets if showing the selection or not. |
boolean |
isShowVerticalLines()
/** Gets if showing the vertical lines or not. |
boolean |
isSortOnHeaderEnabled()
Gets true, if it is possible sorting the data by clicking on the header. |
boolean |
isTableHeaderVisible()
Gets the visibility of the table header. |
void |
notifyRepaint()
The control need to check if the part is visible and then repaint the part. |
void |
run()
|
void |
saveEditing()
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow. |
void |
setAutoResize(boolean pAutoResize)
Sets true, if the ITable is in auto resize mode. |
void |
setCellFormatter(ICellFormatter pCellFormatter)
Sets the cell formatter. |
void |
setCellFormatter(Object pCellFormatter,
String pMethodName)
Sets the cell formatter. |
void |
setDataBook(IDataBook pDataBook)
Sets the DataBook displayed by this control. |
void |
setShowHorizontalLines(boolean pShowHorizontalLines)
Sets if showing the vertical lines or not. |
void |
setShowSelection(boolean pShowSelection)
Sets if showing the selection or not. |
void |
setShowVerticalLines(boolean pShowVerticalLines)
Sets if showing the vertical lines or not. |
void |
setSortOnHeaderEnabled(boolean pSortOnHeaderEnabled)
Set true, if it should possible sorting the data by clicking on the header. |
void |
setTableHeaderVisible(boolean pTableHeaderVisible)
Sets the visibility of the table header. |
void |
setTranslation(TranslationMap pTranslation)
Sets the possible translations for this UIComponent. |
void |
valuesChanged(DataRowEvent pDataRowEvent)
Notifies that values on an IDataRow are changed. |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.control.LinkTableCache |
|---|
addLinkTable, getLinkTable, removeLinkTable |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource |
|---|
getNullableAsString, getResource, setAsString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public WebTable()
WebTable.
ITable| Method Detail |
|---|
public void run()
run in interface Runnablepublic IDataBook getDataBook()
getDataBook in interface ITableITable.setDataBook(javax.rad.model.IDataBook)public void setDataBook(IDataBook pDataBook)
setDataBook in interface ITablepDataBook - the DataBookITable.getDataBook()public boolean isAutoResize()
isAutoResize in interface ITablepublic void setAutoResize(boolean pAutoResize)
setAutoResize in interface ITablepAutoResize - true, if the ITable is in auto resize mode.public boolean isTableHeaderVisible()
isTableHeaderVisible in interface ITablepublic void setTableHeaderVisible(boolean pTableHeaderVisible)
setTableHeaderVisible in interface ITablepTableHeaderVisible - the visibility of the table header.public boolean isSortOnHeaderEnabled()
isSortOnHeaderEnabled in interface ITablepublic void setSortOnHeaderEnabled(boolean pSortOnHeaderEnabled)
setSortOnHeaderEnabled in interface ITablepSortOnHeaderEnabled - true, if it is possible sorting the data by clicking on the header.public void notifyRepaint()
notifyRepaint in interface IControl
public void saveEditing()
throws ModelException
IDataBook or IDataRow.
saveEditing in interface IControlModelException - if the value can not be stored.public void cancelEditing()
DataBook.
cancelEditing in interface IControlpublic ICellFormatter getCellFormatter()
getCellFormatter in interface ITablepublic void setCellFormatter(ICellFormatter pCellFormatter)
setCellFormatter in interface ITablepCellFormatter - the cell formatter.
public void setCellFormatter(Object pCellFormatter,
String pMethodName)
setCellFormatter in interface ITablepCellFormatter - the cell formatter.pMethodName - the method name.public boolean isShowSelection()
isShowSelection in interface ITablepublic void setShowSelection(boolean pShowSelection)
setShowSelection in interface ITablepShowSelection - showing the selection or not.public boolean isShowVerticalLines()
isShowVerticalLines in interface ITablepublic void setShowVerticalLines(boolean pShowVerticalLines)
setShowVerticalLines in interface ITablepShowVerticalLines - showing the vertical lines or not.public boolean isShowHorizontalLines()
isShowHorizontalLines in interface ITablepublic void setShowHorizontalLines(boolean pShowHorizontalLines)
setShowHorizontalLines in interface ITablepShowHorizontalLines - showing the vertical lines or not.public TranslationMap getTranslation()
UIComponent.
getTranslation in interface IControlgetTranslation in interface ITablepublic void setTranslation(TranslationMap pTranslation)
UIComponent.
setTranslation in interface IControlsetTranslation in interface ITablepTranslation - the translation mapping
public void dataBookChanged(DataBookEvent pDataBookEvent)
throws ModelException
dataBookChanged in interface IDataBookListenerpDataBookEvent - gives information about the changed IDataBook, the type of change and the original IDataRow.
ModelException - if a ModelException occurs.
public void valuesChanged(DataRowEvent pDataRowEvent)
throws ModelException
valuesChanged in interface IDataRowListenerpDataRowEvent - gives information about the changed IDataRow, the changed columns and the original IDataRow.
ModelException - if a ModelException occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||