LumiSoft.UI.Controls.Grid
Class WGridTableView

java.lang.Object
  extended by LumiSoft.UI.Controls.Grid.WGridTableView

public class WGridTableView
extends java.lang.Object

Provides tabular data view for WGridControl


Constructor Summary
WGridTableView(WGridControl grid)
          Default constructor.
 
Method Summary
 void ClearSelection()
          Clears view selected rows.
 WGridTableView Clone()
          Clones grid view.
 void DeleteActiveRow()
          Deletes active row.
 void Dispose()
          Clean up any resources being used.
 WGridColumn getActiveColumn()
          Gets active cell column or null if no current cell.
 WBaseEditor getActiveEditor()
          Gets currently active editor or null if no active editor.
 DataRowView getActiveRow()
          Gets currently active row or null if no active row.
 boolean getAllowAppendNewRow()
          Gets if view allows user to add new rows.
 boolean getAllowEdit()
          Gets if data is editable.
 boolean getAllowMultiSelect()
          Gets if multiple selection is allowed.
 boolean getAllowReorderColumns()
          Gets if columns reordering is allowed.
 boolean getAllowSort()
          Gets if view is sortable.
 java.awt.Rectangle getBounds()
          Gets view bounding rectangle.
 WGridColumns getColumns()
          Gets columns collection.
 DataRelation getDataRelation()
          Gets detail view datarelation.
 DataView getDataSource()
          Gets grid data source.
 WGridTableView getDetailView()
          Gets detail view of this view.
 boolean getEnterKeyDoubleClicks()
          Gets if enter key simulates mouse double click or moves next.
 WGridControl getGrid()
          Gets view owner grid control.
 boolean getMasterDetail()
          Gets is view is master/detail view.
 DataRowView[] getSelectedRows()
          Returns currently selected rows.
 boolean getShowColumns()
          Gets if columns are visible.
 boolean getShowCurrentCell()
          Gets if current cell is shown.
 boolean getShowFooter()
          Gets if footer is visible.
 boolean getShowHorizontalGridlines()
          Gets if vertical grid lines are shwon.
 boolean getShowMaximizeForMainView()
          Gets if maximize/minimaize button is shown to Main grid view.
 boolean getShowRowIndicators()
          Gets if row indicators are visible.
 boolean getShowVerticalGridlines()
          Gets if vertical grid lines are shwon.
 java.lang.Object getTag()
          Gets tag (user data).
 boolean IsActiveRowModified()
          Gets if active row is modified.
 void MoveNext()
          Moves current column to next column or if last column, then moves to next row.
 void Process_keyPressed(java.awt.event.KeyEvent e)
           
 void Repaint()
          Repaints table view.
 void SelectFirstEditableColumn()
          Selects first editable column in active row.
 void setAllowAppendNewRow(boolean value)
          Sets if view allows user to add new rows.
 void setAllowEdit(boolean value)
          Sets if data is editable.
 void setAllowMultiSelect(boolean value)
          Sets if multiple selection is allowed.
 void setAllowReorderColumns(boolean value)
          Sets if columns reordering is allowed.
 void setAllowSort(boolean value)
          Sets is view is sortable.
 void setDataRelation(DataRelation value)
          Sets detail view datarelation.
 void setDataSource(DataTable table)
          Sets grid data source.
 void setDataSource(DataView table)
          Sets grid data source.
 void setDetailView(WGridTableView value)
          Sets detail view of this view.
 void setEnterKeyDoubleClicks(boolean value)
          Sets if enter key simulates mouse double click or moves next.
 void setShowColumns(boolean value)
          Sets if columns are visible.
 void setShowCurrentCell(boolean value)
          Sets if current cell is shown.
 void setShowFooter(boolean value)
          Sets if foother is visible.
 void setShowHorizontalGridlines(boolean value)
          Sets if vertical grid lines are shwon.
 void setShowMaximizeForMainView(boolean value)
          Sets if maximize/minimaize button is shown to Main grid view.
 void setShowRowIndicators(boolean value)
          Sets if row indicators are visible.
 void setShowVerticalGridlines(boolean value)
          Sets if vertical grid lines are shwon.
 void UndoRow()
          Restores active row default values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WGridTableView

public WGridTableView(WGridControl grid)
Default constructor.

Parameters:
grid -
Method Detail

Dispose

public void Dispose()
Clean up any resources being used.


Clone

public WGridTableView Clone()
                     throws java.lang.Exception
Clones grid view.

Returns:
Throws:
java.lang.Exception

Repaint

public void Repaint()
Repaints table view.


Process_keyPressed

public void Process_keyPressed(java.awt.event.KeyEvent e)

ClearSelection

public void ClearSelection()
Clears view selected rows.


SelectFirstEditableColumn

public void SelectFirstEditableColumn()
Selects first editable column in active row.


IsActiveRowModified

public boolean IsActiveRowModified()
Gets if active row is modified.

Returns:
If some of the active row values modified, returns true. If no active row, returns false.

DeleteActiveRow

public void DeleteActiveRow()
Deletes active row.


MoveNext

public void MoveNext()
Moves current column to next column or if last column, then moves to next row.


UndoRow

public void UndoRow()
Restores active row default values.


getDataSource

public DataView getDataSource()
Gets grid data source.

Returns:

setDataSource

public void setDataSource(DataTable table)
Sets grid data source.

Parameters:
table -

setDataSource

public void setDataSource(DataView table)
Sets grid data source.

Parameters:
table -

getDetailView

public WGridTableView getDetailView()
Gets detail view of this view.

Returns:

setDetailView

public void setDetailView(WGridTableView value)
Sets detail view of this view. NOTE: you also need to specify this.setDataRelation to make view master/detail.

Parameters:
value -

getDataRelation

public DataRelation getDataRelation()
Gets detail view datarelation.

Returns:

setDataRelation

public void setDataRelation(DataRelation value)
Sets detail view datarelation.

Parameters:
value -

getMasterDetail

public boolean getMasterDetail()
Gets is view is master/detail view.

Returns:

getAllowEdit

public boolean getAllowEdit()
Gets if data is editable.

Returns:

setAllowEdit

public void setAllowEdit(boolean value)
Sets if data is editable.

Parameters:
value -

getAllowAppendNewRow

public boolean getAllowAppendNewRow()
Gets if view allows user to add new rows.

Returns:

setAllowAppendNewRow

public void setAllowAppendNewRow(boolean value)
Sets if view allows user to add new rows.

Parameters:
value -

getAllowSort

public boolean getAllowSort()
Gets if view is sortable.

Returns:

setAllowSort

public void setAllowSort(boolean value)
Sets is view is sortable.

Parameters:
value -

getAllowMultiSelect

public boolean getAllowMultiSelect()
Gets if multiple selection is allowed.

Returns:

setAllowMultiSelect

public void setAllowMultiSelect(boolean value)
Sets if multiple selection is allowed.

Parameters:
value -

getAllowReorderColumns

public boolean getAllowReorderColumns()
Gets if columns reordering is allowed.

Returns:

setAllowReorderColumns

public void setAllowReorderColumns(boolean value)
Sets if columns reordering is allowed.

Parameters:
value -

getEnterKeyDoubleClicks

public boolean getEnterKeyDoubleClicks()
Gets if enter key simulates mouse double click or moves next.

Returns:

setEnterKeyDoubleClicks

public void setEnterKeyDoubleClicks(boolean value)
Sets if enter key simulates mouse double click or moves next.

Parameters:
value -

getShowMaximizeForMainView

public boolean getShowMaximizeForMainView()
Gets if maximize/minimaize button is shown to Main grid view. NOTE: This property works for Main View only.

Returns:

setShowMaximizeForMainView

public void setShowMaximizeForMainView(boolean value)
Sets if maximize/minimaize button is shown to Main grid view. NOTE: This property works for Main View only.


getShowColumns

public boolean getShowColumns()
Gets if columns are visible.

Returns:

setShowColumns

public void setShowColumns(boolean value)
Sets if columns are visible.

Parameters:
value -

getShowRowIndicators

public boolean getShowRowIndicators()
Gets if row indicators are visible.

Returns:

setShowRowIndicators

public void setShowRowIndicators(boolean value)
Sets if row indicators are visible.

Parameters:
value -

getShowFooter

public boolean getShowFooter()
Gets if footer is visible.

Returns:

setShowFooter

public void setShowFooter(boolean value)
Sets if foother is visible.

Parameters:
value -

getShowCurrentCell

public boolean getShowCurrentCell()
Gets if current cell is shown. NOTE: This property works only if View is not editable, otherwise it has no effect.

Returns:

setShowCurrentCell

public void setShowCurrentCell(boolean value)
Sets if current cell is shown. NOTE: This property works only if View is not editable, otherwise it has no effect.

Parameters:
value -

getShowVerticalGridlines

public boolean getShowVerticalGridlines()
Gets if vertical grid lines are shwon.

Returns:

setShowVerticalGridlines

public void setShowVerticalGridlines(boolean value)
Sets if vertical grid lines are shwon.

Parameters:
value -

getShowHorizontalGridlines

public boolean getShowHorizontalGridlines()
Gets if vertical grid lines are shwon.

Returns:

setShowHorizontalGridlines

public void setShowHorizontalGridlines(boolean value)
Sets if vertical grid lines are shwon.

Parameters:
value -

getColumns

public WGridColumns getColumns()
Gets columns collection.

Returns:

getBounds

public java.awt.Rectangle getBounds()
Gets view bounding rectangle.

Returns:

getActiveEditor

public WBaseEditor getActiveEditor()
Gets currently active editor or null if no active editor.

Returns:

getActiveColumn

public WGridColumn getActiveColumn()
Gets active cell column or null if no current cell.

Returns:

getActiveRow

public DataRowView getActiveRow()
Gets currently active row or null if no active row.

Returns:

getSelectedRows

public DataRowView[] getSelectedRows()
Returns currently selected rows.

Returns:

getTag

public java.lang.Object getTag()
Gets tag (user data).

Returns:

getGrid

public WGridControl getGrid()
Gets view owner grid control.

Returns: