com.jidesoft.editor.folding
Class DefaultFoldingSpan
java.lang.Object
com.jidesoft.editor.DefaultSpan
com.jidesoft.editor.folding.DefaultFoldingSpan
- All Implemented Interfaces:
- FoldingSpan, Span
public class DefaultFoldingSpan
- extends DefaultSpan
- implements FoldingSpan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFoldingSpan
public DefaultFoldingSpan(CodeEditor editor,
int startOffset,
int endOffset)
DefaultFoldingSpan
public DefaultFoldingSpan(CodeEditor editor,
int startOffset,
int endOffset,
String description)
setExpanded
public void setExpanded(boolean expanded)
- Description copied from interface:
FoldingSpan
- Expands the code folding.
- Specified by:
setExpanded
in interface FoldingSpan
isExpanded
public boolean isExpanded()
- Description copied from interface:
FoldingSpan
- Checks if the code folding span is expand.
- Specified by:
isExpanded
in interface FoldingSpan
- Returns:
- true if expanded. Otherwise false.
setStartOffset
public void setStartOffset(int startOffset)
- Overrides:
setStartOffset
in class DefaultSpan
setEndOffset
public void setEndOffset(int endOffset)
- Overrides:
setEndOffset
in class DefaultSpan
setDescription
public void setDescription(String description)
getDescription
public String getDescription()
- Description copied from interface:
FoldingSpan
- Gets the placeholder text that will be displayed when the code folding is collapsed.
- Specified by:
getDescription
in interface FoldingSpan
- Returns:
- the placeholder text.