public final class FoldHierarchyEvent extends EventObject
FoldStateChange
s.
Added folds can have either collapsed or expanded initial state.
source
Modifier and Type | Method and Description |
---|---|
Fold |
getAddedFold(int addedFoldIndex)
Get the fold with the given index added
to the hierarchy.
|
int |
getAddedFoldCount()
Get the number of folds that were added to the hierarchy.
|
int |
getAffectedEndOffset()
Get the ending offset in the offset area affected
by this change.
|
int |
getAffectedStartOffset()
Get the first offset in the underlying document affected
by this change.
|
FoldStateChange |
getFoldStateChange(int index)
Get the fold state change at the given index.
|
int |
getFoldStateChangeCount()
Get the number of the fold state changes contained in this event.
|
Fold |
getRemovedFold(int removedFoldIndex)
Get the fold with the given index removed
from the fold hierarchy.
|
int |
getRemovedFoldCount()
Get the number of folds removed from the hierarchy.
|
String |
toString() |
getSource
public int getRemovedFoldCount()
public Fold getRemovedFold(int removedFoldIndex)
removedFoldIndex
- >=0 and <getRemovedFoldCount()
index of the removed fold.public int getAddedFoldCount()
public Fold getAddedFold(int addedFoldIndex)
addedFoldIndex
- >=0 and <getAddedFoldCount()
index of the added fold.public int getFoldStateChangeCount()
public FoldStateChange getFoldStateChange(int index)
index
- >=0 and <getFoldStateChangeCount()
index of the fold state change.public int getAffectedStartOffset()
public int getAffectedEndOffset()
getAffectedStartOffset()
end of the offset area affected by the change.public String toString()
toString
in class EventObject
Built on August 30 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.