sidekick.util
Class SideKickAsset

java.lang.Object
  extended by sidekick.Asset
      extended by sidekick.util.SideKickAsset
All Implemented Interfaces:
IAsset

public class SideKickAsset
extends Asset

danson: simple concrete implementation of an Asset that wraps some sort of SideKickElement. A SideKickElement provides both Location and Position information.


Field Summary
 
Fields inherited from class sidekick.Asset
end, start
 
Constructor Summary
SideKickAsset(SideKickElement element)
           
 
Method Summary
 SideKickElement getElement()
           
 javax.swing.Icon getIcon()
          Returns the icon to be shown for the asset in the structure tree.
 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 getShortString()
          Returns a brief description of the asset to be shown in the tree.
 void setLongString(java.lang.String s)
           
 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

SideKickAsset

public SideKickAsset(SideKickElement element)
Method Detail

getElement

public SideKickElement getElement()

getIcon

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


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).


toString

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

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).


setLongString

public void setLongString(java.lang.String s)