|
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
java.awt.Panel
com.elegantj.awt.table.AWTTable
com.elegantj.data.dataviewer.awt.table.AWTDataGrid
This is the class for AWTDataGrid which provides the functionality of the table in the AWT
| Nested Class Summary |
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| 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 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 | |
AWTDataGrid()
Default constructor which constructs the AWTDataGrid |
|
AWTDataGrid(int rows,
int cols,
boolean allowPrinterSupport)
Constructs the AWTDataGrid with the specified rows(s) and column(s) |
|
| Method Summary | |
void |
addGroup(GroupBand gb)
Adds the group band |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the property change listener |
void |
addRow()
Adds the rescord |
boolean |
checkJoin(Join join)
Checks the join is valid or not |
void |
deleteRow()
Deletes the record |
void |
editGroup(GroupBand gb,
int ind)
Edits the group band at specified index |
void |
firePropertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires the property change |
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)
Implementation of the Externalizable |
void |
refresh()
Refreshes the data viewer |
void |
removeGroup(int ind)
Removes the group band at the specified index |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the property change listener |
void |
retrieveData()
Retrieves the table with data |
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)
Implementation of the Externalizable |
| Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, 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 AWTDataGrid()
public AWTDataGrid(int rows,
int cols,
boolean allowPrinterSupport)
rows - The specified rows(s)cols - The specified column(s)allowPrinterSupport - The value for wheater printer support
for the AWTDataGrid is allowed or not
The default value is true| Method Detail |
public void retrieveData()
public void setDataViewer(DataViewer dataViewer)
dataViewer - the data viewerpublic DataViewer getDataViewer()
public void refresh()
public void addRow()
addRow in interface DataVieweraddRow in class AWTTablepublic 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 DataViewerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener in class AWTTablel - The property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener in class AWTTablel - The property change listener
public void firePropertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
firePropertyChange in class AWTTableproperty - The name of the propertyoldValue - The old valuenewValue - The new value
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class AWTTablejava.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException,
java.awt.IllegalComponentStateException
writeExternal in interface java.io.ExternalizablewriteExternal in class AWTTablejava.io.IOException
java.awt.IllegalComponentStateException
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||