|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| 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.JPanel
com.elegantj.jfc.table.JFCTablePanel
com.elegantj.data.dataviewer.jfc.table.DataGrid
This class provides representation of data from DataProvider
in a searchable tabular view
DataProvider the data provider
DataViewer the data viewer
| 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 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 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 |
public DataGrid()
| Method Detail |
protected JFCTable createJFCTable()
createJFCTable in class JFCTablePanel
protected JFCTable createJFCTable(int rows,
int columns)
createJFCTable in class JFCTablePanel
protected JFCTable createJFCTable(java.lang.Object[][] rowData,
java.lang.Object[] columnNames)
createJFCTable in class JFCTablePanel
protected JFCTable createJFCTable(java.util.Vector rowData,
java.util.Vector columnNames)
createJFCTable in class JFCTablePanelprotected JFCTable createJFCTable(javax.swing.table.TableModel dm)
createJFCTable in class JFCTablePanel
protected JFCTable createJFCTable(javax.swing.table.TableModel dm,
javax.swing.table.TableColumnModel cm)
createJFCTable in class JFCTablePanel
protected JFCTable createJFCTable(javax.swing.table.TableModel dm,
javax.swing.table.TableColumnModel cm,
javax.swing.ListSelectionModel sm)
createJFCTable in class JFCTablePanelpublic void retrieveData()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class JFCTablePaneljava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
JFCTablePanel
readExternal in interface java.io.ExternalizablereadExternal in class JFCTablePaneljava.io.IOException
java.lang.ClassNotFoundExceptionpublic void setDataViewer(DataViewer dataViewer)
dataViewer - the data viewerpublic DataViewer getDataViewer()
public void refresh()
public void addRow()
addRow in interface DataVieweraddRow in class JFCTablePanelpublic void deleteRow()
deleteRow in interface DataViewerpublic void save()
save in interface DataViewerpublic void firstRecord()
firstRecord in interface DataViewerpublic void lastRecord()
lastRecord in interface DataViewerpublic void nextRecord()
nextRecord in interface DataViewerpublic void previousRecord()
previousRecord in interface DataViewerpublic void scrollToRow(int rowIndex)
scrollToRow in interface DataViewerrowIndex - the record index to be scrolledpublic boolean isAutoResize()
isAutoResize in interface DataViewerpublic boolean isPreview()
isPreview in interface DataViewerpublic void setDataProvider(DataProvider dataProvider)
setDataProvider in interface DataViewerdataProvider - the data providerpublic DataProvider getDataProvider()
getDataProvider in interface DataViewerpublic void setSuppressRepetition(int[] columns)
setSuppressRepetition in interface DataViewercolumns - the indexes of the columnspublic int[] getSuppressRepetition()
getSuppressRepetition in interface DataViewerpublic void setGroups(java.util.Vector groups)
setGroups in interface DataViewergroups - the vector containing the GroupBand objectspublic java.util.Vector getGroups()
getGroups in interface DataViewerpublic void addGroup(GroupBand gb)
addGroup in interface DataViewergb - the group band
public void editGroup(GroupBand gb,
int ind)
editGroup in interface DataViewergb - the group bandind - the index of the group bandpublic void removeGroup(int ind)
removeGroup in interface DataViewerind - the index of the group bandpublic void setMasterDataViewer(DataViewer dataViewer)
setMasterDataViewer in interface DataViewerdataViewer - the master data viewerpublic DataViewer getMasterDataViewer()
getMasterDataViewer in interface DataViewerpublic boolean checkJoin(Join join)
checkJoin in interface DataViewerjoin - the column join
public void setJoin(Join join)
setJoin in interface DataViewerjoin - the join object representing the master-detail relationshippublic Join getJoin()
getJoin in interface DataViewer
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||