sidekick.enhanced
Class SourceAsset

java.lang.Object
  extended by sidekick.Asset
      extended by sidekick.enhanced.SourceAsset
All Implemented Interfaces:
IAsset

public class SourceAsset
extends Asset

SourceAsset: extends sidekick.Asset, provides the nodes for a structure tree

Version:
$Revision: 890 $
Author:
Martin Raspe

Field Summary
 
Fields inherited from class sidekick.Asset
end, name, start
 
Constructor Summary
SourceAsset()
           
SourceAsset(java.lang.String name, int lineNo, javax.swing.text.Position start)
           
 
Method Summary
 int get_type()
           
 javax.swing.Icon getIcon()
          Returns the icon to be shown for the asset in the structure tree.
 int getLineNo()
           
 java.lang.String getLongDescription()
           
 java.lang.String getLongString()
          Returns a full description of the asset to be shown in the view's status bar on when the mouse is over the asset in the tree.
 java.lang.String getShortDescription()
           
 java.lang.String getShortString()
          Returns a brief description of the asset to be shown in the tree.
 void setIcon(javax.swing.ImageIcon icon)
           
 void setLong(java.lang.String longDesc)
           
 void setLongDescription(java.lang.String longDesc)
           
 void setShort(java.lang.String shortDesc)
           
 void setShortDescription(java.lang.String shortDesc)
           
 java.lang.String toString()
           
 
Methods inherited from class sidekick.Asset
getEnd, getName, getStart, setEnd, setName, setStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceAsset

public SourceAsset()

SourceAsset

public SourceAsset(java.lang.String name,
                   int lineNo,
                   javax.swing.text.Position start)
Method Detail

getLineNo

public int getLineNo()

getIcon

public javax.swing.Icon getIcon()
Description copied from interface: IAsset
Returns the icon to be shown for the asset in the structure tree.


setIcon

public void setIcon(javax.swing.ImageIcon icon)

get_type

public int get_type()

getShortString

public java.lang.String getShortString()
Description copied from interface: IAsset
Returns a brief description of the asset to be shown in the tree. This string is displayed in the jEdit status bar and optionally in a tool tip (if the user has the 'show tool tips' option turned on).


getLongString

public java.lang.String getLongString()
Description copied from interface: IAsset
Returns a full description of the asset to be shown in the view's status bar on when the mouse is over the asset in the tree. Only the first line of this message will be shown in the status bar. The full text will be displayed in the built-in status window (if the user has the 'show status window' option turned on).


getShortDescription

public java.lang.String getShortDescription()

getLongDescription

public java.lang.String getLongDescription()

setShort

public void setShort(java.lang.String shortDesc)

setLong

public void setLong(java.lang.String longDesc)

setShortDescription

public void setShortDescription(java.lang.String shortDesc)

setLongDescription

public void setLongDescription(java.lang.String longDesc)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object