com.sas.servlet.tbeans.tableview
Class HttpEditController

com.sas.servlet.tbeans.tableview.HttpEditController
All Implemented Interfaces:
com.sas.table.EditControllerInterface

public class HttpEditController

Interface for implementing controllers to assist html tables in editing.

When specifying a column when using the method on the EditController, use the actual column name from the model and not the column label to avoid conflicts between the two.


Field Summary
 
Fields inherited from class com.sas.swing.visuals.tableview.EditController
editableColumns, editEnabled, insertMode
 
Fields inherited from interface com.sas.table.EditControllerInterface
DEFAULT_INDEX, EXTEND, INSERT
 
Constructor Summary
HttpEditController()
          Default constructor
 
Method Summary
 boolean isEditColumnVisible()
          Returns whether the TableView's editColumn should be rendered.
 boolean isEditRowVisible()
          Returns whether the TableView's editRow should be rendered.
 boolean isSingleRowEditingEnabled()
          Returns whether or not singleRowEditing is enabled.
 void setEditColumnVisible(boolean visible)
          Set whether the TableView's editColumn should be rendered.
 void setEditRowVisible(boolean visible)
          Set whether the TableView's editRow should be rendered.
 void setSingleRowEditingEnabled(boolean singleRowEditing)
          Sets whether or not singleRowEditing is enabled.
 
Methods inherited from class com.sas.swing.visuals.tableview.EditController
getEditableColumns, getInsertMode, isEditableColumn, isEditEnabled, setEditableColumns, setEditEnabled, setInsertMode
 

Constructor Detail

HttpEditController

public HttpEditController()
Default constructor

Method Detail

setSingleRowEditingEnabled

public void setSingleRowEditingEnabled(boolean singleRowEditing)
Sets whether or not singleRowEditing is enabled. If enabled, then only one row is allowed to be edited at a time. If false, all rows of the TableView will be editable.

Parameters:
singleRowEditing - A boolean indicating whether a single row or all rows are editable.

isSingleRowEditingEnabled

public boolean isSingleRowEditingEnabled()
Returns whether or not singleRowEditing is enabled. If enabled, then only one row is allowed to be edited at a time. If false, all rows of the TableView will be editable. By default singleRowEditing is true.

Returns:
A boolean indicating whether a single row or all rows are editable.

isEditColumnVisible

public boolean isEditColumnVisible()
Returns whether the TableView's editColumn should be rendered. By default, editColumnVisible is true.

Returns:
whether the TableView's editColumn should be rendered
See Also:
setEditColumnVisible(boolean)

setEditColumnVisible

public void setEditColumnVisible(boolean visible)
Set whether the TableView's editColumn should be rendered. The editColumn is a column that when displayed contains all the visible edit actions for the TableView.

Parameters:
visible - true if the TableView's editColumn should be rendered.
See Also:
isEditColumnVisible()

isEditRowVisible

public boolean isEditRowVisible()
Returns whether the TableView's editRow should be rendered. By default, editRowVisible is true.

Returns:
whether the TableView's editRow should be rendered
See Also:
setEditRowVisible(boolean)

setEditRowVisible

public void setEditRowVisible(boolean visible)
Set whether the TableView's editRow should be rendered. The editRow is an extra row added visually to the end of the TableView and displays the visible edit actions for the TableView.

Parameters:
visible - true if the TableView's editRow should be rendered.
See Also:
isEditRowVisible()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.