Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

org.bounce.text
Class Fold

java.lang.Object
  extended by org.bounce.text.Fold

 class Fold
extends java.lang.Object

Representation of a Folded area.

Version:
$Revision: 1.4 $, $Date: 2008/04/16 19:36:18 $
Author:
Edwin Dankert

Field Summary
(package private) static java.lang.String FOLD_LIST_ATTRIBUTE
           
(package private) static java.lang.String FOLDS_UPDATED_ATTRIBUTE
           
 
Constructor Summary
Fold(javax.swing.text.Element start, javax.swing.text.Element end)
           
 
Method Summary
 void add(Fold fold)
           
 void cleanup()
           
 boolean contains(int index)
           
 java.util.List<Fold> getChildren()
           
 int getEnd()
           
 int getStart()
           
 boolean isValid()
           
 void remove(int start, int end)
           
 void shallowCleanup()
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOLD_LIST_ATTRIBUTE

static final java.lang.String FOLD_LIST_ATTRIBUTE
See Also:
Constant Field Values

FOLDS_UPDATED_ATTRIBUTE

static final java.lang.String FOLDS_UPDATED_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

Fold

public Fold(javax.swing.text.Element start,
            javax.swing.text.Element end)
Method Detail

getStart

public int getStart()
Returns:
the starting line of the fold.

getEnd

public int getEnd()
Returns:
the ending line of the fold.

contains

public boolean contains(int index)

add

public void add(Fold fold)

remove

public void remove(int start,
                   int end)

getChildren

public java.util.List<Fold> getChildren()

update

public void update()

isValid

public boolean isValid()

shallowCleanup

public void shallowCleanup()

cleanup

public void cleanup()

Get Bounce at SourceForge.net. Fast secure and Free Open Source software downloads

Copyright 2002-2002-2009 Edwin Dankert. All Rights Reserved.