|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
com.sibvisions.rad.ui.swing.ext.JVxScrollPane
com.sibvisions.rad.ui.swing.ext.JVxTable
public class JVxTable
Scrollable JTable that implements IControl interface.
| Nested Class Summary | |
|---|---|
static class |
JVxTable.CellEditorPane
CellEditorPane provides different editor sizes as the cell has. |
static class |
JVxTable.DataBookTableColumnModel
Implements the JTable model interfaces with the given IDataBook. |
static class |
JVxTable.DataBookTableModel
Implements the TableModel interfaces with the given IDataBook. |
static class |
JVxTable.GenericTableCellHandler
The GenericTableCellEditor is a wrapper, that provides ICellEditor functionality. |
| Nested classes/interfaces inherited from class javax.swing.JScrollPane |
|---|
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JScrollPane |
|---|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.rad.model.ui.ICellEditorListener |
|---|
ACTION_KEY, ENTER_KEY, ESCAPE_KEY, FOCUS_LOST, SHIFT_ENTER_KEY, SHIFT_TAB_KEY, TAB_KEY |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JVxTable()
Constructs a JVxTable. |
|
| Method Summary | |
|---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook. |
void |
editingComplete(String pCompleteType)
Informs the ICellEditorListener that the editing is completed. |
void |
editingStarted()
Informs the ICellEditorListener that the editing has started. |
ICellEditorHandler<JComponent> |
getCellEditorHandler()
The current used CellEditor for editing. |
ICellFormatter |
getCellFormatter()
Gets the CellFormatter. |
IDataBook |
getDataBook()
Returns the DataBook displayed by this control. |
JTable |
getJTable()
Gets the JTable used by JVxTable. |
TranslationMap |
getTranslation()
Gets the translation for this table. |
boolean |
isAutoResize()
Gets true, if the JVxTable is in auto resize mode. |
boolean |
isSavingImmediate()
Tells whether the CellEditor should save immediate. |
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 |
keyPressed(KeyEvent pKeyEvent)
|
void |
keyReleased(KeyEvent pKeyEvent)
|
void |
keyTyped(KeyEvent pKeyEvent)
|
void |
mousePressed(MouseEvent pMouseEvent)
|
void |
mouseReleased(MouseEvent pMouseEvent)
|
void |
notifyRepaint()
The control need to check if the part is visible and then repaint the part. |
void |
removeNotify()
|
void |
run()
The run method is invoked from AWT EventQueue. |
void |
saveEditing()
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow. |
void |
scrollToSelectedCell()
Scrolls the selected Cell in the visible Region of the JVxTable. |
void |
selectNextCell(boolean pDelegateFocus)
Selects the next cell. |
void |
selectNextPage(boolean pDelegateFocus)
Selects the next row. |
void |
selectNextRow(boolean pDelegateFocus)
Selects the next row. |
void |
selectPreviousCell(boolean pDelegateFocus)
Selects the previous cell. |
void |
selectPreviousPage(boolean pDelegateFocus)
Selects the previous cell. |
void |
selectPreviousRow(boolean pDelegateFocus)
Selects the previous cell. |
void |
setAutoResize(boolean pAutoResize)
Sets true, if the JVxTable is in auto resize mode. |
protected void |
setCellEditorHandler(ICellEditorHandler pCellEditorHandler)
Sets the current used ICellEditorHandler for editing. |
void |
setCellFormatter(ICellFormatter pCellFormatter)
Sets the CellFormatter. |
void |
setDataBook(IDataBook pDataBook)
Sets the DataBook displayed by this control. |
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. |
protected String |
translate(String pText)
Translates the pText with the mapped translations. |
void |
valueChanged(ListSelectionEvent pListSelectionEvent)
|
| Methods inherited from class com.sibvisions.rad.ui.swing.ext.JVxScrollPane |
|---|
getPreferredSize, getViewportView, mouseClicked, mouseEntered, mouseExited, setViewport |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JVxTable()
| Method Detail |
|---|
public void run()
run in interface Runnablepublic void mousePressed(MouseEvent pMouseEvent)
mousePressed in interface MouseListenermousePressed in class JVxScrollPanepublic void mouseReleased(MouseEvent pMouseEvent)
mouseReleased in interface MouseListenermouseReleased in class JVxScrollPanepublic void valueChanged(ListSelectionEvent pListSelectionEvent)
valueChanged in interface ListSelectionListenerpublic void notifyRepaint()
notifyRepaint in interface IControlpublic 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 IControlpTranslation - the translation mappingpublic TranslationMap getTranslation()
getTranslation in interface IControlpublic void keyPressed(KeyEvent pKeyEvent)
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent pKeyEvent)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent pKeyEvent)
keyTyped in interface KeyListenerpublic void editingStarted()
ICellEditorListener that the editing has started.
He has to Register the IControl on the IDataRow with registerEditingControl.
editingStarted in interface ICellEditorListenerpublic void editingComplete(String pCompleteType)
ICellEditorListener that the editing is completed.
He has to Unregister the IControl on the IDataRow with unregisterEditingControl.
editingComplete in interface ICellEditorListenerpCompleteType - the type of completion.public boolean isSavingImmediate()
isSavingImmediate in interface ICellEditorListenerpublic void removeNotify()
removeNotify in class JComponentpublic IDataBook getDataBook()
setDataBook(javax.rad.model.IDataBook)public void setDataBook(IDataBook pDataBook)
pDataBook - the DataBookgetDataBook()public ICellFormatter getCellFormatter()
setCellFormatter(com.sibvisions.rad.ui.swing.ext.format.ICellFormatter)public void setCellFormatter(ICellFormatter pCellFormatter)
pCellFormatter - the CellFormattergetCellFormatter()public boolean isTableHeaderVisible()
public void setTableHeaderVisible(boolean pTableHeaderVisible)
pTableHeaderVisible - the visibility of the table header.public boolean isSortOnHeaderEnabled()
public void setSortOnHeaderEnabled(boolean pSortOnHeaderEnabled)
pSortOnHeaderEnabled - true, if it is possible sorting the data by clicking on the header.public JTable getJTable()
public boolean isAutoResize()
public void setAutoResize(boolean pAutoResize)
pAutoResize - true, if the JVxTable is in auto resize mode.public ICellEditorHandler<JComponent> getCellEditorHandler()
protected void setCellEditorHandler(ICellEditorHandler pCellEditorHandler)
pCellEditorHandler - the current used ICellEditorHandler for editing.public void scrollToSelectedCell()
public void selectNextCell(boolean pDelegateFocus)
pDelegateFocus - if true, after the last cell the next component is focused.public void selectPreviousCell(boolean pDelegateFocus)
pDelegateFocus - if true, after the first cell the previous component is focused.public void selectNextRow(boolean pDelegateFocus)
pDelegateFocus - if true, after the last row the next component is focused.public void selectPreviousRow(boolean pDelegateFocus)
pDelegateFocus - if true, after the first cell the previous component is focused.public void selectNextPage(boolean pDelegateFocus)
pDelegateFocus - if true, after the last row the next component is focused.public void selectPreviousPage(boolean pDelegateFocus)
pDelegateFocus - if true, after the first cell the previous component is focused.protected String translate(String pText)
pText with the mapped translations.
pText - the text to translate
pText based on the translation mapping or
pText if there is no translation availablesetTranslation(TranslationMap)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||