org.formaria.swt
Class ExpandItem

java.lang.Object
  extended by Composite
      extended by org.formaria.swt.ExpandItem

public class ExpandItem
extends Composite

Draws an expanditem

Copyright (c) Formaria Ltd., 2008

License: see license.txt $Revision: 2.18 $ Notice : You must put a layout in parameter


Constructor Summary
ExpandItem(java.lang.Object parent)
          Create a new expanditem
 
Method Summary
protected  void checkSubclass()
          Suppress the subclassing exception
 java.lang.String getToolTip()
          Get the tooltip text
 void setContent(java.lang.String content)
          Set the new content
 void setDisplayAttributes()
          Set the display attributes
 void setImage(java.lang.String imageUrl)
          Set the image url
 void setToolTip(java.lang.String text)
          Set the tooltip text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandItem

public ExpandItem(java.lang.Object parent)
Create a new expanditem

Parameters:
parent - parent object
Method Detail

checkSubclass

protected void checkSubclass()
Suppress the subclassing exception


setImage

public void setImage(java.lang.String imageUrl)
Set the image url

Parameters:
imageUrl - the relative image URL

setToolTip

public void setToolTip(java.lang.String text)
Set the tooltip text

Parameters:
text - the new text

getToolTip

public java.lang.String getToolTip()
Get the tooltip text

Returns:
the existing text if any

setContent

public void setContent(java.lang.String content)
Set the new content


setDisplayAttributes

public void setDisplayAttributes()
Set the display attributes