|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<C>
com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
com.sibvisions.rad.ui.swing.impl.SwingComponent<C>
com.sibvisions.rad.ui.swing.impl.SwingScrollComponent<JVxTable,javax.swing.JTable>
com.sibvisions.rad.ui.swing.impl.control.SwingTable
public class SwingTable
The SwingTable is the ITable
implementation for swing.
JTable| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.swing.impl.SwingScrollComponent |
|---|
component |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
|---|
bComponentListener, bFocusListener, bKeyListener, bMouseListener, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, eventSource, factory, parent |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
resource |
| 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 |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
SwingTable()
Creates a new instance of SwingTable. |
|
| Method Summary | |
|---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook. |
CellFormat |
getCellFormat(IDataBook pDataBook,
IDataPage pDataPage,
IDataRow pDataRow,
java.lang.String pColumnName,
int pRow,
int pColumn)
Gets the format for the given cell. |
ICellFormatter |
getCellFormatter()
Gets the ICellFormatter. |
ColumnView |
getColumnView()
Returns the ColumnView displayed by this control. |
IDataBook |
getDataBook()
Returns the DataBook displayed by this control. |
int |
getEnterNavigationMode()
Gets the navigation mode for the ENTER key. |
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. |
int |
getTabNavigationMode()
Gets the navigation mode for the TAB key. |
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 |
isMouseEventOnSelectedCell()
True, if the mouse event occured on current selected cell. |
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. |
boolean |
isTranslationEnabled()
Gets whether the translation is en- or disabled. |
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 |
setAutoResize(boolean pAutoResize)
Sets true, if the ITable is in auto resize mode. |
void |
setCellFormatter(ICellFormatter pCellFormatter)
Sets the ICellFormatter. |
void |
setColumnView(ColumnView pColumnView)
Sets the ColumnView displayed by this control. |
void |
setDataBook(IDataBook pDataBook)
Sets the DataBook displayed by this control. |
void |
setEditable(boolean pEditable)
Sets if editable or not. |
void |
setEnterNavigationMode(int pNavigationMode)
Sets the navigation mode for the ENTER key. |
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 |
setTabNavigationMode(int pNavigationMode)
Sets the navigation mode for the TAB key. |
void |
setTranslation(TranslationMap pTranslation)
Sets the translation for this table. |
void |
setTranslationEnabled(boolean pEnabled)
Sets the translation en- or disabled. |
void |
startEditing()
Informs the GUI control, that the editor should be opened. |
java.lang.String |
translate(java.lang.String pText)
Method to translate a given text. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingScrollComponent |
|---|
addFocusListener, addKeyListener, addMouseListener, getBackground, getComponent, getCursor, getFont, getForeground, getName, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setForeground, setName, setTabIndex, setToolTipText |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent |
|---|
capture |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
|---|
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
getResource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public SwingTable()
SwingTable.
| Method Detail |
|---|
public IDataBook getDataBook()
getDataBook in interface ITableControlITableControl.setDataBook(javax.rad.model.IDataBook)public void setDataBook(IDataBook pDataBook)
setDataBook in interface ITableControlpDataBook - the DataBookITableControl.getDataBook()public ColumnView getColumnView()
getColumnView in interface ITableITable.setColumnView(javax.rad.model.ColumnView)public void setColumnView(ColumnView pColumnView)
setColumnView in interface ITablepColumnView - the ColumnViewITable.getColumnView()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 int getMaxRowHeight()
getMaxRowHeight in interface ITablepublic int getMinRowHeight()
getMinRowHeight in interface ITablepublic int getRowHeight()
getRowHeight in interface ITablepublic void setMaxRowHeight(int pMaxRowHeight)
setMaxRowHeight in interface ITablepMaxRowHeight - the max row height for automatic calculation.public void setMinRowHeight(int pMinRowHeight)
setMinRowHeight in interface ITablepMinRowHeight - the min row height for automatic calculation.public void setRowHeight(int pRowHeight)
setRowHeight in interface ITablepRowHeight - the row height.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 int getEnterNavigationMode()
ENTER key.
getEnterNavigationMode in interface INavigationControlENTER key.INavigationControl.NAVIGATION_NONE,
INavigationControl.NAVIGATION_CELL_AND_FOCUS,
INavigationControl.NAVIGATION_CELL_AND_ROW_AND_FOCUS,
INavigationControl.NAVIGATION_ROW_AND_FOCUSpublic int getTabNavigationMode()
TAB key.
getTabNavigationMode in interface INavigationControlTAB key.INavigationControl.NAVIGATION_NONE,
INavigationControl.NAVIGATION_CELL_AND_FOCUS,
INavigationControl.NAVIGATION_CELL_AND_ROW_AND_FOCUS,
INavigationControl.NAVIGATION_ROW_AND_FOCUSpublic void setEnterNavigationMode(int pNavigationMode)
ENTER key.
setEnterNavigationMode in interface INavigationControlpNavigationMode - the navigation mode for the ENTER key.INavigationControl.NAVIGATION_NONE,
INavigationControl.NAVIGATION_CELL_AND_FOCUS,
INavigationControl.NAVIGATION_CELL_AND_ROW_AND_FOCUS,
INavigationControl.NAVIGATION_ROW_AND_FOCUSpublic void setTabNavigationMode(int pNavigationMode)
TAB key.
setTabNavigationMode in interface INavigationControlpNavigationMode - the navigation mode for the TAB key.INavigationControl.NAVIGATION_NONE,
INavigationControl.NAVIGATION_CELL_AND_FOCUS,
INavigationControl.NAVIGATION_CELL_AND_ROW_AND_FOCUS,
INavigationControl.NAVIGATION_ROW_AND_FOCUSpublic void notifyRepaint()
notifyRepaint in interface IControlpublic void startEditing()
startEditing in interface ITableControlpublic void cancelEditing()
DataBook.
cancelEditing in interface IControl
public void saveEditing()
throws ModelException
IDataBook or IDataRow.
saveEditing in interface IControlModelException - if the value can not be stored.public void setTranslation(TranslationMap pTranslation)
setTranslation in interface ITranslatablesetTranslation in interface ITablepTranslation - the translation mappingpublic TranslationMap getTranslation()
getTranslation in interface ITranslatablegetTranslation in interface ITablepublic void setTranslationEnabled(boolean pEnabled)
setTranslationEnabled in interface ITranslatablepEnabled - true to enable the translation, false to disablepublic boolean isTranslationEnabled()
isTranslationEnabled in interface ITranslatabletrue if translation is performed, false otherwisepublic java.lang.String translate(java.lang.String pText)
translate in interface ITranslatorpText - the text to translate.
public ICellFormatter getCellFormatter()
ICellFormatter.
The ICellFormatter will be called for every cell and can return a
style for that cell.
getCellFormatter in interface ICellFormatableICellFormatter.ICellFormatable.setCellFormatter(ICellFormatter)public void setCellFormatter(ICellFormatter pCellFormatter)
ICellFormatter.
The ICellFormatter will be called for every cell and can return a
style for that cell.
setCellFormatter in interface ICellFormatablepCellFormatter - the ICellFormatter.ICellFormatable.getCellFormatter()
public CellFormat getCellFormat(IDataBook pDataBook,
IDataPage pDataPage,
IDataRow pDataRow,
java.lang.String pColumnName,
int pRow,
int pColumn)
throws java.lang.Throwable
getCellFormat in interface ICellFormatterpDataBook - the DataBookpDataPage - the DataPagepDataRow - the DataRowpColumnName - the column namepRow - the Row numberpColumn - the Column number
java.lang.Throwable - if an exception, it is ignored.public boolean isEditable()
isEditable in interface ITablepublic void setEditable(boolean pEditable)
setEditable in interface ITablepEditable - if editable or not.public boolean isShowSelection()
isShowSelection in interface ITablepublic void setShowSelection(boolean pShowSelection)
setShowSelection in interface ITablepShowSelection - showing the selection or not.public boolean isShowFocusRect()
isShowFocusRect in interface ITablepublic void setShowFocusRect(boolean pShowFocusRect)
setShowFocusRect in interface ITablepShowFocusRect - showing the focus rect 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 boolean isMouseEventOnSelectedCell()
isMouseEventOnSelectedCell in interface ITable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||