org.eparapher.rcp.tools
Class StatusLineContributionItem

java.lang.Object
  extended by org.eclipse.jface.action.ContributionItem
      extended by org.eparapher.rcp.tools.StatusLineContributionItem
All Implemented Interfaces:
org.eclipse.jface.action.IContributionItem

public class StatusLineContributionItem
extends org.eclipse.jface.action.ContributionItem

Contribution item for the status line.

Since:
2.0

Constructor Summary
StatusLineContributionItem(String id)
          Creates a new item with the given id.
StatusLineContributionItem(String id, boolean visible, int widthInChars)
          Creates a new item with the given attributes.
 
Method Summary
 void fill(org.eclipse.swt.widgets.Composite parent)
           
 void setActionHandler(org.eclipse.jface.action.IAction actionHandler)
           
 void setErrorImage(org.eclipse.swt.graphics.Image image)
           
 void setErrorText(String text)
           
 void setImage(org.eclipse.swt.graphics.Image image)
           
 void setText(String text)
           
 void setToolTipText(String string)
           
 
Methods inherited from class org.eclipse.jface.action.ContributionItem
dispose, fill, fill, fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatusLineContributionItem

public StatusLineContributionItem(String id)
Creates a new item with the given id.

Parameters:
id - the item's id

StatusLineContributionItem

public StatusLineContributionItem(String id,
                                  boolean visible,
                                  int widthInChars)
Creates a new item with the given attributes.

Parameters:
id - the item's id
visible - the visibility of this item
widthInChars - the width in characters
Since:
3.0
Method Detail

setText

public void setText(String text)

setImage

public void setImage(org.eclipse.swt.graphics.Image image)

setErrorText

public void setErrorText(String text)

setErrorImage

public void setErrorImage(org.eclipse.swt.graphics.Image image)

setToolTipText

public void setToolTipText(String string)

fill

public void fill(org.eclipse.swt.widgets.Composite parent)
Specified by:
fill in interface org.eclipse.jface.action.IContributionItem
Overrides:
fill in class org.eclipse.jface.action.ContributionItem

setActionHandler

public void setActionHandler(org.eclipse.jface.action.IAction actionHandler)


Copyright © 2009 eParapher Software Foundation. All Rights Reserved.