ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.dataviewer.jfc.table
Class DataGrid

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.elegantj.jfc.table.JFCTablePanel
                      extended bycom.elegantj.data.dataviewer.jfc.table.DataGrid
All Implemented Interfaces:
javax.accessibility.Accessible, DataViewer, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class DataGrid
extends JFCTablePanel
implements DataViewer, java.io.Externalizable

This class provides representation of data from DataProvider in a searchable tabular view
DataProvider the data provider
DataViewer the data viewer

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class com.elegantj.jfc.table.JFCTablePanel
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, COMPARE_CONTAINS, COMPARE_ENDS_WITH, COMPARE_EQUALS, COMPARE_STARTS_WITH, m_jfcTable, MULTIPLE_INTERVAL_SELECTION, SEARCH_FROM_FIRST_CELL, SEARCH_FROM_LAST_CELL, SEARCH_FROM_SELECTED_CELL_TO_DOWN, SEARCH_FROM_SELECTED_CELL_TO_UP, SINGLE_INTERVAL_SELECTION, SINGLE_SELECTION
 
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DataGrid()
          Default constructor
 
Method Summary
 void addGroup(GroupBand gb)
          Adds the group band
 void addRow()
          Adds the rescord
 boolean checkJoin(Join join)
          Checks the join is valid or not
protected  JFCTable createJFCTable()
          Creates the instance of DataTable
protected  JFCTable createJFCTable(int rows, int columns)
           
protected  JFCTable createJFCTable(java.lang.Object[][] rowData, java.lang.Object[] columnNames)
           
protected  JFCTable createJFCTable(javax.swing.table.TableModel dm)
           
protected  JFCTable createJFCTable(javax.swing.table.TableModel dm, javax.swing.table.TableColumnModel cm)
           
protected  JFCTable createJFCTable(javax.swing.table.TableModel dm, javax.swing.table.TableColumnModel cm, javax.swing.ListSelectionModel sm)
           
protected  JFCTable createJFCTable(java.util.Vector rowData, java.util.Vector columnNames)
           
 void deleteRow()
          Deletes the record
 void editGroup(GroupBand gb, int ind)
          Edits the group band at specified index
 void firstRecord()
          Moves to the first record
 DataProvider getDataProvider()
          Gets the data provider
 DataViewer getDataViewer()
          Gets the data viewer
 java.util.Vector getGroups()
          Returns the group bands
 Join getJoin()
          Gets the master-detail relationship
 DataViewer getMasterDataViewer()
          Gets the master data viewer
 int[] getSuppressRepetition()
          Gets columns which repeating values are suppressed in detail band.
 boolean isAutoResize()
          Determines whether the detail band of this data viewer is auto resizable in preview mode.
 boolean isPreview()
          Determines whether this data viewer is in preview state.
 void lastRecord()
          Moves to the last record
 void nextRecord()
          Moves to the next record
 void previousRecord()
          Moves to the previous record
 void readExternal(java.io.ObjectInput in)
          Externalizable interface implementation to save and retrieve the state of this bean
 void refresh()
          Refreshes the data viewer
 void removeGroup(int ind)
          Removes the group band at the specified index
 void retrieveData()
          Populates the tree with specified display values.
 void save()
          Saves the transaction
 void scrollToRow(int rowIndex)
          Moves to the record at the specified index
 void setDataProvider(DataProvider dataProvider)
          Sets the data provider
 void setDataViewer(DataViewer dataViewer)
          Sets the data viewer
 void setGroups(java.util.Vector groups)
          Sets the group bands
 void setJoin(Join join)
          Sets the master-detail relationship
 void setMasterDataViewer(DataViewer dataViewer)
          Sets the master data viewer
 void setSuppressRepetition(int[] columns)
          Sets columns which repeating values are suppressed in detail band.
 void writeExternal(java.io.ObjectOutput out)
          Externalizable interface implementation to save and retrieve the state of this bean
 
Methods inherited from class com.elegantj.jfc.table.JFCTablePanel
addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumnAboveSelection, addColumnModelListener, addColumnSelectionInterval, addColumnSelectionListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addRow, addRow, addRowAboveSelection, addRowSelectionInterval, addRowSelectionListener, addTableModelListener, cellAtPoint, changeSelection, clearSelection, clearTableColumnsAttributes, clearTableRowsAttributes, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, convertAttributesArrayToTable, convertAttributesTableToArray, convertColumnIndexToModel, convertColumnIndexToView, convertToArray, convertToVector, createDefaultColumnsFromModel, editCellAt, editCellAt, editingCanceled, editingStopped, editTableCell, editTableCell, getAutoCreateColumnsFromModel, getAutoResizeMode, getAutoscrolls, getCellBackgroundNonSelectionColor, getCellBackgroundSelectionColor, getCellBorderSelectionColor, getCellEditor, getCellEditor, getCellFont, getCellIcon, getCellIconPath, getCellRect, getCellRenderer, getCellSelectionEnabled, getCellTextNonSelectionColor, getCellTextSelectionColor, getColumn, getColumn, getColumnBackgroundNonSelectionColor, getColumnBackgroundSelectionColor, getColumnBorderSelectionColor, getColumnCellEditor, getColumnCellRenderer, getColumnClass, getColumnCount, getColumnData, getColumnEditable, getColumnFocusCellBackground, getColumnFocusCellForeground, getColumnFont, getColumnHeaderBackground, getColumnHeaderFont, getColumnHeaderForeground, getColumnHeaderHeight, getColumnIcon, getColumnIconPath, getColumnIndex, getColumnMargin, getColumnModel, getColumnName, getColumnNames, getColumns, getColumnSelectionAllowed, getColumnTextNonSelectionColor, getColumnTextSelectionColor, getData, getDefaultBackgroundNonSelectionColor, getDefaultBackgroundSelectionColor, getDefaultBorderSelectionColor, getDefaultCellEditor, getDefaultCellRenderer, getDefaultEditable, getDefaultEditor, getDefaultFocusCellBackground, getDefaultFocusCellForeground, getDefaultFont, getDefaultIcon, getDefaultIconPath, getDefaultRenderer, getDefaultTableAttributes, getDefaultTextNonSelectionColor, getDefaultTextSelectionColor, getEditingColumn, getEditingRow, getEditorComponent, getFocusCellBackground, getFocusCellForeground, getGridColor, getIntercellSpacing, getLicenseKey, getLocale, getModel, getPopupMenu, getPreferredScrollableViewportSize, getPreferredSize, getRowBackgroundNonSelectionColor, getRowBackgroundSelectionColor, getRowBorderSelectionColor, getRowCellEditor, getRowCellRenderer, getRowCount, getRowData, getRowEditable, getRowFocusCellBackground, getRowFocusCellForeground, getRowFont, getRowHeaderBackground, getRowHeaderFont, getRowHeaderForeground, getRowHeaderWidth, getRowHeight, getRowHeight, getRowIcon, getRowIconPath, getRowMargin, getRowSelectionAllowed, getRowTextNonSelectionColor, getRowTextSelectionColor, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSearchMode, getSearchPanel, getSearchPanelBackground, getSearchPanelFont, getSearchPanelForeground, getSearchPanelPlacement, getSelectedCellObject, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectedTableCell, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getTable, getTableColumnAttributes, getTableColumnsAttributes, getTableHeader, getTableRowAttributes, getTableRowHeader, getTableRowsAttributes, getValueAt, getVisibleFirstColumn, getVisibleFirstRow, getVisibleLastColumn, getVisibleLastRow, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertColumn, insertRow, insertRow, insertRow, isAddRowOnEnterKey, isAdjustColumnOnClick, isAdjustRowOnClick, isCellEditable, isCellSelected, isCellSelected, isColumnCellsSelected, isColumnHeaderVisible, isColumnReorderingAllowed, isColumnResizingAllowed, isColumnSelected, isEditing, isFocusTraversable, isInsertRowOnInsertKey, isLightweight, isManagingFocus, isPopupVisible, isRemoveRowOnDeleteKey, isRowCellsSelected, isRowHeaderVisible, isRowResizingAllowed, isRowSelected, isSearchPanelVisible, isSortColumnOnClick, moveColumn, moveRow, paramString, prepareEditor, prepareRenderer, removeColumn, removeColumn, removeColumn, removeColumnModelListener, removeColumns, removeColumns, removeColumnSelectionInterval, removeColumnSelectionListener, removeEditor, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removeRow, removeRows, removeRowSelectionInterval, removeRowSelectionListener, removeSelectedColumns, removeSelectedRows, removeTableModelListener, rowAtPoint, scrollCellToVisible, scrollCellToVisible, scrollColumnToVisible, scrollRowToVisible, searchTableCell, searchTableCell, searchTableCell, searchTableCell, searchTableCell, searchTableCell, searchTableCell, selectAll, selectColumnCells, selectRowCells, setAddRowOnEnterKey, setAdjustColumnOnClick, setAdjustRowOnClick, setAutoCreateColumnsFromModel, setAutoResizeMode, setAutoscrolls, setBackground, setBorder, setBounds, setCellEditor, setCellSelectionEnabled, setColumnBackgroundNonSelectionColor, setColumnBackgroundSelectionColor, setColumnBorderSelectionColor, setColumnCellEditor, setColumnCellRenderer, setColumnCount, setColumnEditable, setColumnFocusCellBackground, setColumnFocusCellForeground, setColumnFont, setColumnHeaderBackground, setColumnHeaderFont, setColumnHeaderForeground, setColumnHeaderHeight, setColumnHeaderVisible, setColumnIcon, setColumnIconPath, setColumnMargin, setColumnModel, setColumnName, setColumnNames, setColumnReorderingAllowed, setColumnResizingAllowed, setColumnSelectionAllowed, setColumnSelectionInterval, setColumnTextNonSelectionColor, setColumnTextSelectionColor, setColumnWidth, setColumnWidth, setCursor, setData, setDefaultBackgroundNonSelectionColor, setDefaultBackgroundSelectionColor, setDefaultBorderSelectionColor, setDefaultCellEditor, setDefaultCellRenderer, setDefaultEditable, setDefaultEditor, setDefaultFocusCellBackground, setDefaultFocusCellForeground, setDefaultFont, setDefaultIcon, setDefaultIconPath, setDefaultRenderer, setDefaultTableAttributes, setDefaultTextNonSelectionColor, setDefaultTextSelectionColor, setDoubleBuffered, setEditingColumn, setEditingRow, setEnabled, setFont, setForeground, setGridColor, setInsertRowOnInsertKey, setIntercellSpacing, setLayout, setLicenseKey, setLightweight, setLocale, setManagingFocus, setModel, setOpaque, setPopupMenu, setPopupVisible, setPreferredScrollableViewportSize, setRemoveRowOnDeleteKey, setRequestFocusEnabled, setRowBackgroundNonSelectionColor, setRowBackgroundSelectionColor, setRowBorderSelectionColor, setRowCellEditor, setRowCellRenderer, setRowCount, setRowEditable, setRowFocusCellBackground, setRowFocusCellForeground, setRowFont, setRowHeaderBackground, setRowHeaderFont, setRowHeaderForeground, setRowHeaderVisible, setRowHeaderWidth, setRowHeight, setRowHeight, setRowIcon, setRowIconPath, setRowMargin, setRowResizingAllowed, setRowSelectionAllowed, setRowSelectionInterval, setRowTextNonSelectionColor, setRowTextSelectionColor, setSearchMode, setSearchPanelBackground, setSearchPanelFont, setSearchPanelForeground, setSearchPanelPlacement, setSearchPanelVisible, setSelectedCellObject, setSelectedCellObject, setSelectedCellObject, setSelectedColumn, setSelectedColumns, setSelectedRow, setSelectedRows, setSelectedTableCell, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSortColumnOnClick, setTableColumnAttributes, setTableColumnsAttributes, setTableHeader, setTableRowAttributes, setTableRowHeader, setTableRowsAttributes, setToolTipText, setValueAt, setVisible, sizeColumnsToFit, sizeColumnsToFit, sortColumn, sortColumn, sortColumns, sortColumns, tableChanged, valueChanged
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setDebugGraphicsOptions, setDefaultLocale, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataGrid

public DataGrid()
Default constructor

Method Detail

createJFCTable

protected JFCTable createJFCTable()
Creates the instance of DataTable

Overrides:
createJFCTable in class JFCTablePanel

createJFCTable

protected JFCTable createJFCTable(int rows,
                                  int columns)
Overrides:
createJFCTable in class JFCTablePanel

createJFCTable

protected JFCTable createJFCTable(java.lang.Object[][] rowData,
                                  java.lang.Object[] columnNames)
Overrides:
createJFCTable in class JFCTablePanel

createJFCTable

protected JFCTable createJFCTable(java.util.Vector rowData,
                                  java.util.Vector columnNames)
Overrides:
createJFCTable in class JFCTablePanel

createJFCTable

protected JFCTable createJFCTable(javax.swing.table.TableModel dm)
Overrides:
createJFCTable in class JFCTablePanel

createJFCTable

protected JFCTable createJFCTable(javax.swing.table.TableModel dm,
                                  javax.swing.table.TableColumnModel cm)
Overrides:
createJFCTable in class JFCTablePanel

createJFCTable

protected JFCTable createJFCTable(javax.swing.table.TableModel dm,
                                  javax.swing.table.TableColumnModel cm,
                                  javax.swing.ListSelectionModel sm)
Overrides:
createJFCTable in class JFCTablePanel

retrieveData

public void retrieveData()
Populates the tree with specified display values.


writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Externalizable interface implementation to save and retrieve the state of this bean

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class JFCTablePanel
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Description copied from class: JFCTablePanel
Externalizable interface implementation to save and retrieve the state of this bean

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class JFCTablePanel
Throws:
java.io.IOException
java.lang.ClassNotFoundException

setDataViewer

public void setDataViewer(DataViewer dataViewer)
Sets the data viewer

Parameters:
dataViewer - the data viewer

getDataViewer

public DataViewer getDataViewer()
Gets the data viewer

Returns:
the data viewer

refresh

public void refresh()
Refreshes the data viewer


addRow

public void addRow()
Adds the rescord

Specified by:
addRow in interface DataViewer
Overrides:
addRow in class JFCTablePanel

deleteRow

public void deleteRow()
Deletes the record

Specified by:
deleteRow in interface DataViewer

save

public void save()
Saves the transaction

Specified by:
save in interface DataViewer

firstRecord

public void firstRecord()
Moves to the first record

Specified by:
firstRecord in interface DataViewer

lastRecord

public void lastRecord()
Moves to the last record

Specified by:
lastRecord in interface DataViewer

nextRecord

public void nextRecord()
Moves to the next record

Specified by:
nextRecord in interface DataViewer

previousRecord

public void previousRecord()
Moves to the previous record

Specified by:
previousRecord in interface DataViewer

scrollToRow

public void scrollToRow(int rowIndex)
Moves to the record at the specified index

Specified by:
scrollToRow in interface DataViewer
Parameters:
rowIndex - the record index to be scrolled

isAutoResize

public boolean isAutoResize()
Determines whether the detail band of this data viewer is auto resizable in preview mode.

Specified by:
isAutoResize in interface DataViewer
Returns:
true if the detail band is autoresizable, otherwise false

isPreview

public boolean isPreview()
Determines whether this data viewer is in preview state.

Specified by:
isPreview in interface DataViewer
Returns:
true if the viewer is in preview state, otherwise false

setDataProvider

public void setDataProvider(DataProvider dataProvider)
Sets the data provider

Specified by:
setDataProvider in interface DataViewer
Parameters:
dataProvider - the data provider

getDataProvider

public DataProvider getDataProvider()
Gets the data provider

Specified by:
getDataProvider in interface DataViewer
Returns:
the data provider

setSuppressRepetition

public void setSuppressRepetition(int[] columns)
Sets columns which repeating values are suppressed in detail band.

Specified by:
setSuppressRepetition in interface DataViewer
Parameters:
columns - the indexes of the columns

getSuppressRepetition

public int[] getSuppressRepetition()
Gets columns which repeating values are suppressed in detail band.

Specified by:
getSuppressRepetition in interface DataViewer
Returns:
the indexes of the columns

setGroups

public void setGroups(java.util.Vector groups)
Sets the group bands

Specified by:
setGroups in interface DataViewer
Parameters:
groups - the vector containing the GroupBand objects

getGroups

public java.util.Vector getGroups()
Returns the group bands

Specified by:
getGroups in interface DataViewer
Returns:
the vector containing the GroupBand objects

addGroup

public void addGroup(GroupBand gb)
Adds the group band

Specified by:
addGroup in interface DataViewer
Parameters:
gb - the group band

editGroup

public void editGroup(GroupBand gb,
                      int ind)
Edits the group band at specified index

Specified by:
editGroup in interface DataViewer
Parameters:
gb - the group band
ind - the index of the group band

removeGroup

public void removeGroup(int ind)
Removes the group band at the specified index

Specified by:
removeGroup in interface DataViewer
Parameters:
ind - the index of the group band

setMasterDataViewer

public void setMasterDataViewer(DataViewer dataViewer)
Sets the master data viewer

Specified by:
setMasterDataViewer in interface DataViewer
Parameters:
dataViewer - the master data viewer

getMasterDataViewer

public DataViewer getMasterDataViewer()
Gets the master data viewer

Specified by:
getMasterDataViewer in interface DataViewer
Returns:
the master data viewer

checkJoin

public boolean checkJoin(Join join)
Checks the join is valid or not

Specified by:
checkJoin in interface DataViewer
Parameters:
join - the column join
Returns:
true if the join is valid, false otherwise

setJoin

public void setJoin(Join join)
Sets the master-detail relationship

Specified by:
setJoin in interface DataViewer
Parameters:
join - the join object representing the master-detail relationship

getJoin

public Join getJoin()
Gets the master-detail relationship

Specified by:
getJoin in interface DataViewer
Returns:
the join object representing the master-detail relationship

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.