|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fife.ui.rsyntaxtextarea.folding.FoldCollapser
public class FoldCollapser
Collapses folds based on their type. You can create an instance of this class to collapse all comment blocks when opening a new file, for example.
| Constructor Summary | |
|---|---|
FoldCollapser()
Creates an instance that collapses all comment blocks. |
|
FoldCollapser(int typeToCollapse)
Creates an instance that collapses all blocks of the specified type. |
|
| Method Summary | |
|---|---|
void |
addTypeToCollapse(int typeToCollapse)
Adds a type of fold to collapse. |
void |
collapseFolds(FoldManager fm)
Collapses any relevant folds known by the fold manager. |
protected void |
collapseImpl(Fold fold)
Collapses the specified fold, and any of its child folds, as appropriate. |
boolean |
getShouldCollapse(Fold fold)
Returns whether a specific fold should be collapsed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FoldCollapser()
public FoldCollapser(int typeToCollapse)
typeToCollapse - The type to collapse.FoldType| Method Detail |
|---|
public void addTypeToCollapse(int typeToCollapse)
typeToCollapse - The type of fold to collapse.public void collapseFolds(FoldManager fm)
fm - The fold manager.protected void collapseImpl(Fold fold)
fold - The fold to examine.getShouldCollapse(Fold)public boolean getShouldCollapse(Fold fold)
fold - The fold to examine.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||