ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.dataviewer
Interface DataViewer

All Known Implementing Classes:
AWTDataGrid, DataGrid

public interface DataViewer

The DataViewer interface for objects which views the data and provides the transaction.


Method Summary
 void addGroup(GroupBand gb)
          Adds the group band
 void addRow()
          Adds the record
 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 firstRecord()
          Moves to the first record
 DataProvider getDataProvider()
          Gets the data provider
 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 removeGroup(int ind)
          Removes the group band at the specified index
 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 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.
 

Method Detail

addRow

public void addRow()
Adds the record


deleteRow

public void deleteRow()
Deletes the record


save

public void save()
Saves the transaction


firstRecord

public void firstRecord()
Moves to the first record


lastRecord

public void lastRecord()
Moves to the last record


nextRecord

public void nextRecord()
Moves to the next record


previousRecord

public void previousRecord()
Moves to the previous record


scrollToRow

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

Parameters:
rowIndex - the record index to be scrolled

isPreview

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

Returns:
true if the viewer is in preview state, otherwise false

isAutoResize

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

Returns:
true if the detail band is autoresizable, otherwise false

setDataProvider

public void setDataProvider(DataProvider dataProvider)
Sets the data provider

Parameters:
dataProvider - the data provider

getDataProvider

public DataProvider getDataProvider()
Gets the data provider

Returns:
the data provider

setSuppressRepetition

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

Parameters:
columns - the indexes of the columns

getSuppressRepetition

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

Returns:
the indexes of the columns

setGroups

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

Parameters:
groups - the vector containing the GroupBand objects

getGroups

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

Returns:
the vector containing the GroupBand objects

addGroup

public void addGroup(GroupBand gb)
Adds the group band

Parameters:
gb - the group band

editGroup

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

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

Parameters:
ind - the index of the group band

setMasterDataViewer

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

Parameters:
dataViewer - the master data viewer

getMasterDataViewer

public DataViewer getMasterDataViewer()
Gets the master data viewer

Returns:
the master data viewer

checkJoin

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

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

Parameters:
join - the join object representing the master-detail relationship

getJoin

public Join getJoin()
Gets the master-detail relationship

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.