public class StatusLineContributionItem
extends org.eclipse.jface.action.ContributionItem
Create a StatusLineContributionItem in order to contribute to the IBM Sales Center Status line.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static int | DEFAULT_CHAR_WIDTH
Default number of characters that should fit into the item.
|
Constructor and Description |
---|
StatusLineContributionItem(java.lang.String id)
This method creates a new item with the given ID.
|
StatusLineContributionItem(java.lang.String id, boolean visible, int widthInChars)
This method creates a new item with the given attributes.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Control | createSeparator(org.eclipse.swt.widgets.Composite parent)
This method adds a separator to the given composite.
|
void | fill(org.eclipse.swt.widgets.Composite parent)
This method creates a status line consisting of a label which is used to hold an icon.
|
org.eclipse.swt.graphics.Point | getDisplayLocation()
This method is an accessor for the current location of this status line contribution item relative to the display.
|
java.lang.String | getText()
This method returns the contributions displayable text.
|
void | setActionHandler(org.eclipse.jface.action.IAction actionHandler)
This method sets the action handler for responding to double clicking the status line item.
|
void | setImage(org.eclipse.swt.graphics.Image image)
This method set the image for the status line contribution item.
|
void | setText(java.lang.String text)
This method sets the contributions displayable text.
|
void | setToolTipText(java.lang.String toolTipText)
This method set the tooltip text for the status line contribution item
|
public static final java.lang.String COPYRIGHT
public static final int DEFAULT_CHAR_WIDTH
public StatusLineContributionItem(java.lang.String id)
public StatusLineContributionItem(java.lang.String id, boolean visible, int widthInChars)
public org.eclipse.swt.graphics.Point getDisplayLocation()
public java.lang.String getText()
public void setText(java.lang.String text)
public void setImage(org.eclipse.swt.graphics.Image image)
public void setToolTipText(java.lang.String toolTipText)
public org.eclipse.swt.widgets.Control createSeparator(org.eclipse.swt.widgets.Composite parent)
This method adds a vertical separator to the status line.
public void fill(org.eclipse.swt.widgets.Composite parent)
public void setActionHandler(org.eclipse.jface.action.IAction actionHandler)