javax.rad.model.event
Interface IReadOnlyChecker


public interface IReadOnlyChecker

The IReadOnlyChecker allows to define a specific value as readonly.

The "value" in this case refers to a position defined by row and column in the IDataBook and could also be called a cell.

It is not possible to set a not editable value to editable with this, only an editable value to readonly.

See Also:
IDataBook

Method Summary
 boolean isReadOnly(IDataBook pDataBook, IDataPage pDataPage, IDataRow pDataRow, java.lang.String pColumnName, int pRow, int pColumn)
          Is called to determine whether the value at the location (row/column) should be readonly or not.
 

Method Detail

isReadOnly

boolean isReadOnly(IDataBook pDataBook,
                   IDataPage pDataPage,
                   IDataRow pDataRow,
                   java.lang.String pColumnName,
                   int pRow,
                   int pColumn)
                   throws java.lang.Throwable
Is called to determine whether the value at the location (row/column) should be readonly or not.

Parameters:
pDataBook - the IDataBook.
pDataPage - the IDataPage.
pDataRow - the IDataRow.
pColumnName - the name of the column.
pRow - the index of the row.
pColumn - the index of the column.
Returns:
true if the value should be readonly, false otherwise. Note that this does only determine whether the value should be readonly and does not have an impact on already readonly values.
Throws:
java.lang.Throwable - if an error occurs.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.