public class DefaultFoldingBlock<B extends DefaultFoldingBlock,U> extends AbstractFoldingBlock<B>
Constructor and Description |
---|
DefaultFoldingBlock() |
DefaultFoldingBlock(int startOffset,
int endOffset) |
DefaultFoldingBlock(int startOffset,
int endOffset,
java.lang.String replacement) |
DefaultFoldingBlock(int startOffset,
int endOffset,
java.lang.String replacement,
boolean isExpanded) |
Modifier and Type | Method and Description |
---|---|
int |
getEndOffset()
Returns the ending caret offset of 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.
|
U |
getUserObject() |
void |
setEndOffset(int endOffset) |
void |
setReplacementText(java.lang.String replacement) |
void |
setStartOffset(int startOffset) |
void |
setUserObject(U userObject) |
add, bounds, getChildCount, getChildren, getParent, isExpanded, length, remove, removeAll, setExpanded, setParent
public DefaultFoldingBlock()
public DefaultFoldingBlock(int startOffset, int endOffset)
public DefaultFoldingBlock(int startOffset, int endOffset, java.lang.String replacement)
public DefaultFoldingBlock(int startOffset, int endOffset, java.lang.String replacement, boolean isExpanded)
public int getStartOffset()
FoldingBlock
getStartOffset
in interface FoldingBlock<B extends DefaultFoldingBlock>
getStartOffset
in class AbstractFoldingBlock<B extends DefaultFoldingBlock>
public void setStartOffset(int startOffset)
public int getEndOffset()
FoldingBlock
getEndOffset
in interface FoldingBlock<B extends DefaultFoldingBlock>
getEndOffset
in class AbstractFoldingBlock<B extends DefaultFoldingBlock>
public void setEndOffset(int endOffset)
public java.lang.String getReplacementText()
FoldingBlock
getReplacementText
in interface FoldingBlock<B extends DefaultFoldingBlock>
getReplacementText
in class AbstractFoldingBlock<B extends DefaultFoldingBlock>
public void setReplacementText(java.lang.String replacement)
public U getUserObject()
public void setUserObject(U userObject)