|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.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()
FoldingBlockisExpanded in interface FoldingBlocktrue if the block is expandedpublic void setExpanded(boolean isExpanded)
FoldingBlocksetExpanded in interface FoldingBlockisExpanded - true if the block is expandedpublic FoldingBlock getParent()
FoldingBlockgetParent in interface FoldingBlockpublic void setParent(FoldingBlock parent)
FoldingBlocksetParent in interface FoldingBlockparent - the containing blockpublic void add(FoldingBlock child)
FoldingBlockadd in interface FoldingBlockchild - the child block to addpublic void remove(FoldingBlock child)
FoldingBlockremove in interface FoldingBlockchild - the child block to removepublic void removeAll()
FoldingBlockremoveAll in interface FoldingBlockpublic int getChildCount()
FoldingBlockgetChildCount in interface FoldingBlockpublic java.util.Iterator getChildren()
FoldingBlockgetChildren in interface FoldingBlockpublic int length()
FoldingBlocklength in interface FoldingBlockpublic boolean bounds(int offset)
FoldingBlockbounds in interface FoldingBlockoffset - the caret offset to testtrue if the offset is inside the bounds of the blockpublic abstract int getStartOffset()
FoldingBlockgetStartOffset in interface FoldingBlockpublic abstract int getEndOffset()
FoldingBlockgetEndOffset in interface FoldingBlockpublic abstract java.lang.String getReplacementText()
FoldingBlockgetReplacementText in interface FoldingBlock
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||