JIDE 3.5.15

com.jidesoft.editor.folding
Class DefaultFoldingSpan

java.lang.Object
  extended by com.jidesoft.editor.DefaultSpan
      extended by com.jidesoft.editor.folding.DefaultFoldingSpan
All Implemented Interfaces:
FoldingSpan, Span

public class DefaultFoldingSpan
extends DefaultSpan
implements FoldingSpan


Constructor Summary
DefaultFoldingSpan(CodeEditor editor, int startOffset, int endOffset)
           
DefaultFoldingSpan(CodeEditor editor, int startOffset, int endOffset, String description)
           
 
Method Summary
 String getDescription()
          Gets the placeholder text that will be displayed when the code folding is collapsed.
 boolean isExpanded()
          Checks if the code folding span is expand.
 void setDescription(String description)
           
 void setEndOffset(int endOffset)
           
 void setExpanded(boolean expanded)
          Expands the code folding.
 void setStartOffset(int startOffset)
           
 
Methods inherited from class com.jidesoft.editor.DefaultSpan
getEndOffset, getStartOffset, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.editor.Span
getEndOffset, getStartOffset, isValid
 

Constructor Detail

DefaultFoldingSpan

public DefaultFoldingSpan(CodeEditor editor,
                          int startOffset,
                          int endOffset)

DefaultFoldingSpan

public DefaultFoldingSpan(CodeEditor editor,
                          int startOffset,
                          int endOffset,
                          String description)
Method Detail

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.

JIDE 3.5.15