|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FoldingBlock
Defines the requirements for an object that can be used to describe a collapsible source code block in the default code folding model. It is not a requirement for code folding blocks to implement this interface; rather, it is provided as an implementation convenience when using the default code folding model.
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. |
int |
getEndOffset()
Returns the ending caret offset of this source code block. |
FoldingBlock |
getParent()
Returns the block that contains this source code block. |
java.lang.String |
getReplacementText()
Returns the abbreviated text used to represent this source code block in the code editor when the block is collapsed. |
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. |
Method Detail |
---|
boolean isExpanded()
true
if the block is expandedvoid setExpanded(boolean isExpanded)
isExpanded
- true
if the block is expandedFoldingBlock getParent()
void setParent(FoldingBlock parent)
parent
- the containing blockvoid add(FoldingBlock child)
child
- the child block to addvoid remove(FoldingBlock child)
child
- the child block to removevoid removeAll()
int getChildCount()
java.util.Iterator getChildren()
int getStartOffset()
int getEndOffset()
int length()
boolean bounds(int offset)
offset
- the caret offset to test
true
if the offset is inside the bounds of the
blockjava.lang.String getReplacementText()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |