|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines the API for the sections that can be created in the row and column areas of a DataRange. This interface may represent either a single section or a set of adjacent sections.
DataRange| Method Summary | |
Section |
createParent(java.lang.String name)
Creates a new section as a parent of this section. |
void |
delete()
Deletes this section and the cells it contains. |
int |
getEnd()
Returns the location of the last row or column in this section. |
Section |
getParent()
Returns the parent section of this section. |
int |
getSize()
Returns the number or rows or columns that make up this section. |
int |
getStart()
Returns the location of the first row or column in this section. |
Section |
insertAfter()
Inserts a new row or column after this section. |
Section |
insertBefore()
Inserts a new row or column before this section. |
boolean |
isDeleted()
Returns whether this section has been deleted from the DataRange. |
boolean |
isInRowArea()
Returns whether this section is in the row area. |
boolean |
isLeaf()
Returns whether this section is a leaf, or inner-most anonymous section. |
boolean |
isRoot()
Returns whether this section is a root, or outer-most, section. |
void |
remove(boolean promoteChildren)
Removes this section from its parent. |
| Methods inherited from interface com.f1j.util.Lockable |
getLock,
releaseLock |
| Method Detail |
public Section createParent(java.lang.String name)
throws SelectionException,
com.f1j.util.InvalidNameException
Creates a new section as a parent of this section. The new section will be the same size as this child section.
If this child section is named, then a name must be specified for the new section or an InvalidNameException will be thrown.
name - The name of the new parent section.
public void delete()
throws AccessDeniedException,
DataConflictException
Deletes this section and the cells it contains. This section and its children are then no longer valid within the DataRange.
If this is a row section, this method causes cells below this section to be moved upward to fill the space this section occupied. If this is a column section, this method causes cells to the right of this section to be moved leftward.
public int getEnd()
public Section getParent()
public int getSize()
public int getStart()
public Section insertBefore()
throws InvalidStateException
public Section insertAfter()
throws InvalidStateException
public boolean isDeleted()
true if this section has been deleted.public boolean isInRowArea()
true = if section is in the row area.DataRangepublic boolean isLeaf()
public boolean isRoot()
true = if section is a root.DataRange
public void remove(boolean promoteChildren)
throws SelectionException,
DuplicateNameException
Removes this section from its parent. The section is then no longer valid within the DataRange.
If this is a root section, then this will remove the DataRange from the sheet and the DataRange is no longer valid.
promoteChildren - Specifies whether children of the removed section will be retained and promoted to the removed section's level.promoteChildren cannot be true for a root section.promoteChildren is true but promoting the children would cause a duplicate name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||