javax.rad.ui.control
Interface ITable

All Superinterfaces:
IComponent, IControl, IResource
All Known Implementing Classes:
QtTable, SwingTable, UITable, WebTable

public interface ITable
extends IComponent, IControl

Platform and technology independent Table definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .

See Also:
JTable

Method Summary
 ICellFormatter getCellFormatter()
          Gets the cell formatter.
 IDataBook getDataBook()
          Returns the DataBook displayed by this control.
 TranslationMap getTranslation()
          Gets the translation for this table.
 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 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 translation for this table.
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.model.ui.IControl
cancelEditing, notifyRepaint, saveEditing
 

Method Detail

getDataBook

IDataBook getDataBook()
Returns the DataBook displayed by this control.

Returns:
the DataBook.
See Also:
setDataBook(javax.rad.model.IDataBook)

setDataBook

void setDataBook(IDataBook pDataBook)
Sets the DataBook displayed by this control.

Parameters:
pDataBook - the DataBook
See Also:
getDataBook()

isAutoResize

boolean isAutoResize()
Gets true, if the ITable is in auto resize mode.

Returns:
true, if the ITable is in auto resize mode.

setAutoResize

void setAutoResize(boolean pAutoResize)
Sets true, if the ITable is in auto resize mode.

Parameters:
pAutoResize - true, if the ITable is in auto resize mode.

isTableHeaderVisible

boolean isTableHeaderVisible()
Gets the visibility of the table header.

Returns:
the visibility of the table header.

setTableHeaderVisible

void setTableHeaderVisible(boolean pTableHeaderVisible)
Sets the visibility of the table header.

Parameters:
pTableHeaderVisible - the visibility of the table header.

isSortOnHeaderEnabled

boolean isSortOnHeaderEnabled()
Gets true, if it is possible sorting the data by clicking on the header.

Returns:
true, if it is possible sorting the data by clicking on the header.

setSortOnHeaderEnabled

void setSortOnHeaderEnabled(boolean pSortOnHeaderEnabled)
Set true, if it should possible sorting the data by clicking on the header.

Parameters:
pSortOnHeaderEnabled - true, if it is possible sorting the data by clicking on the header.

getCellFormatter

ICellFormatter getCellFormatter()
Gets the cell formatter.

Returns:
the cell formatter.

setCellFormatter

void setCellFormatter(ICellFormatter pCellFormatter)
Sets the cell formatter.

Parameters:
pCellFormatter - the cell formatter.

setCellFormatter

void setCellFormatter(Object pCellFormatter,
                      String pMethodName)
Sets the cell formatter.

Parameters:
pCellFormatter - the cell formatter.
pMethodName - the method name.

setTranslation

void setTranslation(TranslationMap pTranslation)
Sets the translation for this table.

Specified by:
setTranslation in interface IControl
Parameters:
pTranslation - the translation mapping

getTranslation

TranslationMap getTranslation()
Gets the translation for this table.

Specified by:
getTranslation in interface IControl
Returns:
the translation mapping

isShowSelection

boolean isShowSelection()
Gets if showing the selection or not.

Returns:
showing the selection or not.

setShowSelection

void setShowSelection(boolean pShowSelection)
Sets if showing the selection or not.

Parameters:
pShowSelection - showing the selection or not.

isShowVerticalLines

boolean isShowVerticalLines()
Gets if showing the vertical lines or not.

Returns:
showing the vertical lines or not.

setShowVerticalLines

void setShowVerticalLines(boolean pShowVerticalLines)
Sets if showing the vertical lines or not.

Parameters:
pShowVerticalLines - showing the vertical lines or not.

isShowHorizontalLines

boolean isShowHorizontalLines()
Gets if showing the vertical lines or not.

Returns:
showing the vertical lines or not.

setShowHorizontalLines

void setShowHorizontalLines(boolean pShowHorizontalLines)
Sets if showing the vertical lines or not.

Parameters:
pShowHorizontalLines - showing the vertical lines or not.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.