|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08 |
|||||||||
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()
FoldingBlock
isExpanded
in interface FoldingBlock
true
if the block is expandedpublic void setExpanded(boolean isExpanded)
FoldingBlock
setExpanded
in interface FoldingBlock
isExpanded
- true
if the block is expandedpublic FoldingBlock getParent()
FoldingBlock
getParent
in interface FoldingBlock
public void setParent(FoldingBlock parent)
FoldingBlock
setParent
in interface FoldingBlock
parent
- the containing blockpublic void add(FoldingBlock child)
FoldingBlock
add
in interface FoldingBlock
child
- the child block to addpublic void remove(FoldingBlock child)
FoldingBlock
remove
in interface FoldingBlock
child
- the child block to removepublic void removeAll()
FoldingBlock
removeAll
in interface FoldingBlock
public int getChildCount()
FoldingBlock
getChildCount
in interface FoldingBlock
public java.util.Iterator getChildren()
FoldingBlock
getChildren
in interface FoldingBlock
public int length()
FoldingBlock
length
in interface FoldingBlock
public boolean bounds(int offset)
FoldingBlock
bounds
in interface FoldingBlock
offset
- the caret offset to test
true
if the offset is inside the bounds of the
blockpublic abstract int getStartOffset()
FoldingBlock
getStartOffset
in interface FoldingBlock
public abstract int getEndOffset()
FoldingBlock
getEndOffset
in interface FoldingBlock
public 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.7.0) E13403-08 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |