javax.rad.ui.control
Interface ITable

All Superinterfaces:
ICellFormatable, IComponent, IControl, INamedObject, INavigationControl, IResource, ITableControl, ITranslatable
All Known Implementing Classes:
SwingTable, UITable

public interface ITable
extends IComponent, ITableControl, INavigationControl, ICellFormatable

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

See Also:
JTable

Field Summary
 
Fields inherited from interface javax.rad.ui.control.INavigationControl
NAVIGATION_CELL_AND_FOCUS, NAVIGATION_CELL_AND_ROW_AND_FOCUS, NAVIGATION_NONE, NAVIGATION_ROW_AND_FOCUS
 
Method Summary
 ColumnView getColumnView()
          Returns the ColumnView displayed by this control.
 int getMaxRowHeight()
          Gets the max row height for automatic calculation.
 int getMinRowHeight()
          Gets the min row height for automatic calculation.
 int getRowHeight()
          Gets the row height.
 TranslationMap getTranslation()
          Gets the translation for this table.
 boolean isAutoResize()
          Gets true, if the ITable is in auto resize mode.
 boolean isEditable()
          Gets if editable or not.
 boolean isShowFocusRect()
          Gets if showing the focus rect or not.
 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 setColumnView(ColumnView pColumnView)
          Sets the ColumnView displayed by this control.
 void setEditable(boolean pEditable)
          Sets if editable or not.
 void setMaxRowHeight(int pMaxRowHeight)
          Sets the max row height for automatic calculation.
 void setMinRowHeight(int pMinRowHeight)
          Sets the min row height for automatic calculation.
 void setRowHeight(int pRowHeight)
          Sets the row height.
 void setShowFocusRect(boolean pShowFocusRect)
          Sets if showing the focus rect or not.
 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, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, 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.ITableControl
getDataBook, setDataBook, startEditing
 
Methods inherited from interface javax.rad.model.ui.IControl
cancelEditing, notifyRepaint, saveEditing
 
Methods inherited from interface javax.rad.ui.control.INavigationControl
getEnterNavigationMode, getTabNavigationMode, setEnterNavigationMode, setTabNavigationMode
 
Methods inherited from interface javax.rad.ui.control.ICellFormatable
getCellFormatter, setCellFormatter
 

Method Detail

getColumnView

ColumnView getColumnView()
Returns the ColumnView displayed by this control. If null is set, the default ColumnView is shown.

Returns:
the ColumnView.
See Also:
setColumnView(javax.rad.model.ColumnView)

setColumnView

void setColumnView(ColumnView pColumnView)
Sets the ColumnView displayed by this control. If null is set, the default ColumnView is shown.

Parameters:
pColumnView - the ColumnView
See Also:
getColumnView()

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.

getRowHeight

int getRowHeight()
Gets the row height. A negativ row height means automatic calculation of row height between min and max row height. A positiv row height should be used as is.

Returns:
the row height.

setRowHeight

void setRowHeight(int pRowHeight)
Sets the row height. A negativ row height means automatic calculation of row height between min and max row height. A positiv row height should be used as is.

Parameters:
pRowHeight - the row height.

getMinRowHeight

int getMinRowHeight()
Gets the min row height for automatic calculation.

Returns:
the min row height for automatic calculation.

setMinRowHeight

void setMinRowHeight(int pMinRowHeight)
Sets the min row height for automatic calculation.

Parameters:
pMinRowHeight - the min row height for automatic calculation.

getMaxRowHeight

int getMaxRowHeight()
Gets the max row height for automatic calculation.

Returns:
the max row height for automatic calculation.

setMaxRowHeight

void setMaxRowHeight(int pMaxRowHeight)
Sets the max row height for automatic calculation.

Parameters:
pMaxRowHeight - the max row height for automatic calculation.

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.

isEditable

boolean isEditable()
Gets if editable or not.

Returns:
if editable or not.

setEditable

void setEditable(boolean pEditable)
Sets if editable or not.

Parameters:
pEditable - if editable or not.

setTranslation

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

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

getTranslation

TranslationMap getTranslation()
Gets the translation for this table.

Specified by:
getTranslation in interface ITranslatable
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.

isShowFocusRect

boolean isShowFocusRect()
Gets if showing the focus rect or not.

Returns:
showing the focus rect or not.

setShowFocusRect

void setShowFocusRect(boolean pShowFocusRect)
Sets if showing the focus rect or not.

Parameters:
pShowFocusRect - showing the focus rect 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.