sidekick
Class Asset

java.lang.Object
  extended by sidekick.Asset
All Implemented Interfaces:
IAsset
Direct Known Subclasses:
SideKickAsset, SourceAsset

public abstract class Asset
extends java.lang.Object
implements IAsset

A block of code within a file. Assets correspond to nodes in the Structure Browser and folds in the SideKick folding mode.


Field Summary
protected  javax.swing.text.Position end
           
protected  java.lang.String name
           
protected  javax.swing.text.Position start
           
 
Constructor Summary
Asset(java.lang.String name)
           
 
Method Summary
 javax.swing.text.Position getEnd()
          Returns the end position.
 java.lang.String getName()
          Returns the name of the Asset.
 javax.swing.text.Position getStart()
          Returns the starting position.
 void setEnd(javax.swing.text.Position end)
          Set the end position
 void setName(java.lang.String name)
          Set the name of the asset
 void setStart(javax.swing.text.Position start)
          Set the start position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sidekick.IAsset
getIcon, getLongString, getShortString
 

Field Detail

name

protected java.lang.String name

start

protected javax.swing.text.Position start

end

protected javax.swing.text.Position end
Constructor Detail

Asset

public Asset(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Returns the name of the Asset.

Specified by:
getName in interface IAsset

getStart

public javax.swing.text.Position getStart()
Returns the starting position.

Specified by:
getStart in interface IAsset

getEnd

public javax.swing.text.Position getEnd()
Returns the end position.

Specified by:
getEnd in interface IAsset

setName

public void setName(java.lang.String name)
Set the name of the asset

Specified by:
setName in interface IAsset

setStart

public void setStart(javax.swing.text.Position start)
Set the start position

Specified by:
setStart in interface IAsset

setEnd

public void setEnd(javax.swing.text.Position end)
Set the end position

Specified by:
setEnd in interface IAsset