public class WebWorksheet extends Control
Remarks
NOTE: This class is now obsolete. please use GridWorksheet Instead. This class will be removed after 6 months since Aug. 2014. Aspose apologizes for any inconvenience you may have experienced.Example
| Constructor and Description |
|---|
WebWorksheet()
Deprecated.
the constructor of the WebWorksheet.
|
WebWorksheet(MainWeb mw,
GridWorksheet gwk)
Deprecated.
the constructor of the WebWorksheet.
|
| Modifier and Type | Method and Description |
|---|---|
void |
autoFitColumn(int columnIndex)
Deprecated.
Autofits the column width.
|
void |
autoFitColumn(int columnIndex,
int startRow,
int endRow)
Deprecated.
Autofits the column width.
|
int |
cancelNewBindRow()
Deprecated.
Cancels and deletes the new added bind row.
|
int |
commitNewBindRow()
Deprecated.
Commits the new added bind row and add it to the datasource.
|
void |
copy(WebWorksheet source)
Deprecated.
Copies from another worksheet object.
|
void |
createAutoGenratedColumns()
Deprecated.
After setting a datasource for the worksheet, call this method to generate the bind columns automatically.
|
int |
createNewBindRow()
Deprecated.
Creates a new bind row and bind to the datasource.
|
void |
createSubtotal(int columnNameRowIndex,
int dataRows,
int groupByColumnIndex,
int subtotalFunction,
int[] subtotalColumnIndexList,
java.lang.String functionLabel,
GridTableItemStyle grandCellStyle,
GridTableItemStyle subtotalCellStyle,
int numberType,
java.lang.String customString)
Deprecated.
Creates subtotal in the sheet.
|
void |
dataBind()
Deprecated.
Bind the sheet to the DataSource.
|
int |
deleteBindRow(int rowNum)
Deprecated.
Deletes a bind row.
|
void |
freezePanes(int row,
int column,
int freezedRows,
int freezedColumns)
Deprecated.
Freezes panes at the specified cell in the worksheet.
|
java.lang.Iterable |
getBindingSource()
Deprecated.
The actually binding datasource object at run-time.
|
int |
getBindStartColumn()
Deprecated.
In data-binding mode, BindStartRow and BindStartColumn indicate the position of the grid to bind bo the datasource.
|
int |
getBindStartRow()
Deprecated.
In data-binding mode, BindStartRow and BindStartColumn indicate the position of the grid to bind bo the datasource.
|
int |
getCurrentBindRows()
Deprecated.
Gets the binding rows number in data-binding mode.
|
java.lang.String |
getDataMember()
Deprecated.
Gets the DataMember from the multi-member DataSource.
|
java.lang.Object |
getDataSource()
Deprecated.
Gets the DataSource.
|
boolean |
getEnableCreateBindColumnHeader()
Deprecated.
In data-binding mode, indicates whether to create bind column header captions in the sheet.
|
int |
getIndex()
Deprecated.
Gets the index of itself within the worksheets.
|
java.lang.String |
getName()
Deprecated.
Gets the name of the sheet.
|
GridValidationCollection |
getValidations()
Deprecated.
Gets the data validation setting collection in the worksheet.
|
boolean |
getVisible()
Deprecated.
Indicates whether this sheet's name is shown in the sheet tabs of the control.
|
void |
groupRows(int firstIndex,
int lastIndex)
Deprecated.
Groups rows.
|
void |
groupRows(int firstIndex,
int lastIndex,
boolean isHidden)
Deprecated.
Groups rows.
|
boolean |
isProtected()
Deprecated.
Gets whether the worksheet is protected.
|
void |
setAllCellsEditable()
Deprecated.
Makes all cells editable.this is extended attribute
|
void |
setAllCellsReadonly()
Deprecated.
Makes all cells readonly.this is extended attribute
notice this attribute can not keep in actual cell,if you want to keep protect please use setProtect
|
void |
setBindStartColumn(int value)
Deprecated.
In data-binding mode, BindStartRow and BindStartColumn indicate the position of the grid to bind bo the datasource.
|
void |
setBindStartRow(int value)
Deprecated.
In data-binding mode, BindStartRow and BindStartColumn indicate the position of the grid to bind bo the datasource.
|
void |
setCurrentBindRows(int value)
Deprecated.
Gets the binding rows number in data-binding mode.
|
void |
setDataMember(java.lang.String value)
Deprecated.
Sets the DataMember from the multi-member DataSource.
|
void |
setDataSource(java.lang.Object value)
Deprecated.
Sets the DataSource.
|
void |
setEditableRange(int startRow,
int startColumn,
int rows,
int columns)
Deprecated.
Makes a range of cells editable.
|
void |
setEnableCreateBindColumnHeader(boolean value)
Deprecated.
In data-binding mode, indicates whether to create bind column header captions in the sheet.
|
void |
setName(java.lang.String value)
Deprecated.
Sets the name of the sheet.
|
void |
setProtected(boolean value)
Deprecated.
Sets whether the worksheet is protected.
|
void |
setReadonlyRange(int startRow,
int startColumn,
int rows,
int columns)
Deprecated.
Makes a range of cells readonly.
|
void |
setVisible(boolean value)
Deprecated.
Indicates whether this sheet's name is shown in the sheet tabs of the control.
|
void |
unfreezePanes()
Deprecated.
Unfreezes panes in the worksheet.
|
void |
ungroupRows(int firstIndex,
int lastIndex)
Deprecated.
Ungroups rows.
|
getUniqueIDpublic WebWorksheet(MainWeb mw, GridWorksheet gwk)
mw - gwk - public WebWorksheet()
public int getIndex()
public java.lang.Object getDataSource()
public void setDataSource(java.lang.Object value)
public java.lang.String getDataMember()
public void setDataMember(java.lang.String value)
public void createAutoGenratedColumns()
public java.lang.Iterable getBindingSource()
public int commitNewBindRow()
public int cancelNewBindRow()
public boolean getEnableCreateBindColumnHeader()
public void setEnableCreateBindColumnHeader(boolean value)
public int getBindStartRow()
public void setBindStartRow(int value)
public int getBindStartColumn()
public void setBindStartColumn(int value)
public void freezePanes(int row,
int column,
int freezedRows,
int freezedColumns)
Remarks
Row index and column index cannot all be zero. Number of rows and number of columns also cannot all be zero.
The first two parameters specify the freezed position and the last two parameters specify the area freezed on the left top pane.
row - Row index.column - Column index.freezedRows - Number of visible rows in top pane, no more than row index.freezedColumns - Number of visible columns in left pane, no more than column index.public void unfreezePanes()
public void setAllCellsReadonly()
public void setAllCellsEditable()
public void setEditableRange(int startRow,
int startColumn,
int rows,
int columns)
startRow - The start row of the range.startColumn - The start column of the range.rows - The number of the rows.columns - The number of the columns.public void ungroupRows(int firstIndex,
int lastIndex)
Remarks
Only removes outter group info.firstIndex - The first row index to be ungrouped.lastIndex - The last row index to be ungrouped.public void groupRows(int firstIndex,
int lastIndex)
firstIndex - The first row index to be grouped.lastIndex - The last row index to be grouped.public void groupRows(int firstIndex,
int lastIndex,
boolean isHidden)
firstIndex - The first row index to be grouped.lastIndex - The last row index to be grouped.isHidden - Specifies if the grouped rows are hidden.public void createSubtotal(int columnNameRowIndex,
int dataRows,
int groupByColumnIndex,
int subtotalFunction,
int[] subtotalColumnIndexList,
java.lang.String functionLabel,
GridTableItemStyle grandCellStyle,
GridTableItemStyle subtotalCellStyle,
int numberType,
java.lang.String customString)
columnNameRowIndex - The row index of the column name row.dataRows - The number of the data rows.groupByColumnIndex - The column index of the column to be grouped.subtotalFunction - SubtotalFunction. The subtotal function type.subtotalColumnIndexList - The column indexes to be subtotaled.functionLabel - The label of subtotal function.grandCellStyle - The style of the grand total line.subtotalCellStyle - The style of the subtotal line.numberType - NumberType. The number type of the subtotal result cells.customString - The custome format string of the subtotal result cells. Can be null.public void dataBind()
public int createNewBindRow()
public int deleteBindRow(int rowNum)
rowNum - The row index.public java.lang.String getName()
public void setName(java.lang.String value)
public GridValidationCollection getValidations()
public boolean getVisible()
getVisible in class Controlpublic void setVisible(boolean value)
setVisible in class Controlpublic void copy(WebWorksheet source)
source - The other sheet.public int getCurrentBindRows()
public void setCurrentBindRows(int value)
public void setReadonlyRange(int startRow,
int startColumn,
int rows,
int columns)
startRow - The start row of the range.startColumn - The start column of the range.rows - The number of the rows.columns - The number of the columns.public boolean isProtected()
public void setProtected(boolean value)
public void autoFitColumn(int columnIndex,
int startRow,
int endRow)
columnIndex - column index, zero basedstartRow - start row index, zero basedendRow - end row index, zero basedpublic void autoFitColumn(int columnIndex)
Remarks
AutoFitColumn is an imprecise function.columnIndex - Column index.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.