org.cafesip.gwtcomp.client.ui
Class SuperTableProperty

java.lang.Object
  extended by org.cafesip.gwtcomp.client.ui.SuperTableProperty

public class SuperTableProperty
extends Object

The class is used in conjunction with the SuperTable class to define the table property. The table properties are set by calling the setter method.

Author:
Amit Chatterjee

Constructor Summary
SuperTableProperty()
          A constructor for this class.
 
Method Summary
protected  SuperTable getParent()
           
 int getRecordsPerPage()
          Returns the records per page.
 boolean isCellSelectionEnabled()
          Returns true if cell selection is enabled.
 boolean isColumnSelectorEnabled()
          Returns true if the colum selector is enabled.
 boolean isCommandBarEnabled()
          Returns true if the command tool bar is enabled.
 boolean isPagingEnabled()
          Returns true if paging is enabled.
 boolean isRowSelectionEnabled()
          Returns true if row selection is enabled.
 boolean isToolbarEnabled()
          Returns true if the tool bar is enabled.
 void setCellSelectionEnabled(boolean cellSelectionEnabled)
          Enables/disables cell selection By default, it is disabled.
 void setColumnSelectorEnabled(boolean columnSelectorEnabled)
          Enable/disable column selector.
 void setCommandBarEnabled(boolean commandBarEnabled)
          Enable/disable the command bar.
 void setPagingEnabled(boolean pagingEnabled)
          Enables/disables paging.
protected  void setParent(SuperTable parent)
           
 void setRecordsPerPage(int recordsPerPage)
          Sets the number of records per page.
 void setRowSelectionEnabled(boolean rowSelectionEnabled)
          Enable/disable row selection.
 void setToolbarEnabled(boolean toolbarEnabled)
          Enable/disable the tool bar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuperTableProperty

public SuperTableProperty()
A constructor for this class.

Method Detail

isPagingEnabled

public boolean isPagingEnabled()
Returns true if paging is enabled.

Returns:
Returns the pagingEnabled.

setPagingEnabled

public void setPagingEnabled(boolean pagingEnabled)
Enables/disables paging. Paging is enabled by default.

Parameters:
pagingEnabled - The pagingEnabled to set.

getRecordsPerPage

public int getRecordsPerPage()
Returns the records per page. If paging has not been enabled, it returns the total number of records in the table.

Returns:
Returns the recordsPerPage.

setRecordsPerPage

public void setRecordsPerPage(int recordsPerPage)
Sets the number of records per page. This takes effect only if paging is enabled.

Parameters:
recordsPerPage - The recordsPerPage to set.

isRowSelectionEnabled

public boolean isRowSelectionEnabled()
Returns true if row selection is enabled.

Returns:
Returns the rowSelectionEnabled.

setRowSelectionEnabled

public void setRowSelectionEnabled(boolean rowSelectionEnabled)
Enable/disable row selection. By default, row selection is not enabled.

Parameters:
rowSelectionEnabled - The rowSelectionEnabled to set.

isCommandBarEnabled

public boolean isCommandBarEnabled()
Returns true if the command tool bar is enabled.

Returns:
Returns the commandBarEnabled.

setCommandBarEnabled

public void setCommandBarEnabled(boolean commandBarEnabled)
Enable/disable the command bar. By default, it is enabled.

Parameters:
commandBarEnabled - The commandBarEnabled to set.

isCellSelectionEnabled

public boolean isCellSelectionEnabled()
Returns true if cell selection is enabled.

Returns:
Returns the cellSelectionEnabled.

setCellSelectionEnabled

public void setCellSelectionEnabled(boolean cellSelectionEnabled)
Enables/disables cell selection By default, it is disabled.

Parameters:
cellSelectionEnabled - The cellSelectionEnabled to set.

getParent

protected SuperTable getParent()
Returns:
Returns the parent.

setParent

protected void setParent(SuperTable parent)
Parameters:
parent - The parent to set.

isColumnSelectorEnabled

public boolean isColumnSelectorEnabled()
Returns true if the colum selector is enabled.

Returns:
Returns the columnSelectorEnabled.

setColumnSelectorEnabled

public void setColumnSelectorEnabled(boolean columnSelectorEnabled)
Enable/disable column selector. By default, it is enabled.

Parameters:
columnSelectorEnabled - The columnSelectorEnabled to set.

isToolbarEnabled

public boolean isToolbarEnabled()
Returns true if the tool bar is enabled.

Returns:
Returns the toolbarEnabled.

setToolbarEnabled

public void setToolbarEnabled(boolean toolbarEnabled)
Enable/disable the tool bar. By default, it is enabled.

Parameters:
toolbarEnabled - The toolbarEnabled to set.


Copyright © 2010 Cafesip.org. All Rights Reserved.