|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.editor.folding.AbstractFoldingBlock
public abstract class AbstractFoldingBlock
Defines common behavior for an object that describes a collapsible source code block in a code folding data model.
| Constructor Summary | |
|---|---|
AbstractFoldingBlock()
|
|
| Method Summary | |
|---|---|
void |
add(FoldingBlock child)
Adds the specified child block to this source code block. |
boolean |
bounds(int offset)
Returns whether the specified caret offset falls inside the bounds of this source code block. |
int |
getChildCount()
Returns the number of child blocks contained directly by this source code block. |
java.util.Iterator |
getChildren()
Returns an iterator over the child blocks contained directly by this source code block. |
abstract int |
getEndOffset()
Returns the ending caret offset of this source code block. |
FoldingBlock |
getParent()
Returns the block that contains this source code block. |
abstract java.lang.String |
getReplacementText()
Returns the abbreviated text used to represent this source code block in the code editor when the block is collapsed. |
abstract int |
getStartOffset()
Returns the starting caret offset of this source code block. |
boolean |
isExpanded()
Returns whether this source code block is expanded. |
int |
length()
Returns the length in characters of this source code block. |
void |
remove(FoldingBlock child)
Removes the specified child block from this source code block. |
void |
removeAll()
Removes all child blocks from this source code block. |
void |
setExpanded(boolean isExpanded)
Sets whether this source code block is expanded. |
void |
setParent(FoldingBlock parent)
Sets the block that contains this source code block. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFoldingBlock()
| Method Detail |
|---|
public boolean isExpanded()
FoldingBlock
isExpanded in interface FoldingBlocktrue if the block is expandedpublic void setExpanded(boolean isExpanded)
FoldingBlock
setExpanded in interface FoldingBlockisExpanded - true if the block is expandedpublic FoldingBlock getParent()
FoldingBlock
getParent in interface FoldingBlockpublic void setParent(FoldingBlock parent)
FoldingBlock
setParent in interface FoldingBlockparent - the containing blockpublic void add(FoldingBlock child)
FoldingBlock
add in interface FoldingBlockchild - the child block to addpublic void remove(FoldingBlock child)
FoldingBlock
remove in interface FoldingBlockchild - the child block to removepublic void removeAll()
FoldingBlock
removeAll in interface FoldingBlockpublic int getChildCount()
FoldingBlock
getChildCount in interface FoldingBlockpublic java.util.Iterator getChildren()
FoldingBlock
getChildren in interface FoldingBlockpublic int length()
FoldingBlock
length in interface FoldingBlockpublic boolean bounds(int offset)
FoldingBlock
bounds in interface FoldingBlockoffset - the caret offset to test
true if the offset is inside the bounds of the
blockpublic abstract int getStartOffset()
FoldingBlock
getStartOffset in interface FoldingBlockpublic abstract int getEndOffset()
FoldingBlock
getEndOffset in interface FoldingBlockpublic abstract java.lang.String getReplacementText()
FoldingBlock
getReplacementText in interface FoldingBlock
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||