Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.editor.folding
Class DefaultFoldingBlock

java.lang.Object
  extended by oracle.javatools.editor.folding.AbstractFoldingBlock
      extended by oracle.javatools.editor.folding.DefaultFoldingBlock

All Implemented Interfaces:
FoldingBlock

public class DefaultFoldingBlock
extends AbstractFoldingBlock

A general-purpose implementation describing a collapsible source code block in the code editor.

Since:
10.1.3

Constructor Summary
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)
           

 

Method Summary
 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.
 java.lang.Object getUserObject()
           
 void setEndOffset(int endOffset)
           
 void setReplacementText(java.lang.String replacement)
           
 void setStartOffset(int startOffset)
           
 void setUserObject(java.lang.Object userObject)
           

 

Methods inherited from class oracle.javatools.editor.folding.AbstractFoldingBlock
add, bounds, getChildCount, getChildren, getParent, isExpanded, length, remove, removeAll, setExpanded, setParent

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DefaultFoldingBlock

public DefaultFoldingBlock()

DefaultFoldingBlock

public DefaultFoldingBlock(int startOffset,
                           int endOffset)

DefaultFoldingBlock

public DefaultFoldingBlock(int startOffset,
                           int endOffset,
                           java.lang.String replacement)

DefaultFoldingBlock

public DefaultFoldingBlock(int startOffset,
                           int endOffset,
                           java.lang.String replacement,
                           boolean isExpanded)

Method Detail

getStartOffset

public int getStartOffset()
Description copied from interface: FoldingBlock
Returns the starting caret offset of this source code block.
Specified by:
getStartOffset in interface FoldingBlock
Specified by:
getStartOffset in class AbstractFoldingBlock
Returns:
the starting caret offset of the block

setStartOffset

public void setStartOffset(int startOffset)

getEndOffset

public int getEndOffset()
Description copied from interface: FoldingBlock
Returns the ending caret offset of this source code block.
Specified by:
getEndOffset in interface FoldingBlock
Specified by:
getEndOffset in class AbstractFoldingBlock
Returns:
the ending caret offset of the block

setEndOffset

public void setEndOffset(int endOffset)

getReplacementText

public java.lang.String getReplacementText()
Description copied from interface: FoldingBlock
Returns the abbreviated text used to represent this source code block in the code editor when the block is collapsed.
Specified by:
getReplacementText in interface FoldingBlock
Specified by:
getReplacementText in class AbstractFoldingBlock
Returns:
the abbreviated replacement text for the block

setReplacementText

public void setReplacementText(java.lang.String replacement)

getUserObject

public java.lang.Object getUserObject()

setUserObject

public void setUserObject(java.lang.Object userObject)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.