public class ComponentStatusLabel
extends org.eclipse.swt.widgets.Canvas
Constructor and Description |
---|
ComponentStatusLabel(org.eclipse.swt.widgets.Composite parent,
int style)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed) |
void |
dispose() |
int |
getAlignment()
Returns the alignment
|
int |
getBottomMargin()
Returns a margin
|
org.eclipse.swt.graphics.Image |
getImage()
Returns the image
|
int |
getLeftMargin()
Returns a margin
|
int |
getRightMargin()
Returns a margin
|
int |
getStyle() |
java.lang.String |
getText()
Returns the text
|
java.lang.String |
getToolTipText() |
int |
getTopMargin()
Returns a margin
|
void |
setAlignment(int align)
Sets the alignment
|
void |
setBackground(org.eclipse.swt.graphics.Color color) |
void |
setBackground(org.eclipse.swt.graphics.Image image)
Sets an image
|
void |
setBottomMargin(int bottomMargin)
Sets a margin
|
void |
setFont(org.eclipse.swt.graphics.Font font) |
void |
setGIF(java.io.InputStream inputStream)
Sets the GIF
|
void |
setGIF(java.lang.String path)
Sets the GIF
|
void |
setImage(org.eclipse.swt.graphics.Image image)
Sets the image
|
void |
setLeftMargin(int leftMargin)
Sets a margin
|
void |
setProgressProvider(ComponentStatusLabelProgressProvider provider)
Sets a progress provider, if any
|
void |
setRightMargin(int rightMargin)
Sets a margin
|
void |
setText(java.lang.String text)
Sets the text
|
void |
setToolTipText(java.lang.String string) |
void |
setTopMargin(int topMargin)
Sets a margin
|
void |
updateImage(org.eclipse.swt.graphics.Image image)
Updates the image
|
drawBackground, getCaret, getIME, scroll, setCaret, setIME
changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
public ComponentStatusLabel(org.eclipse.swt.widgets.Composite parent, int style)
parent
- style
- public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
computeSize
in class org.eclipse.swt.widgets.Composite
public void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
public int getAlignment()
public int getBottomMargin()
public org.eclipse.swt.graphics.Image getImage()
public int getLeftMargin()
public int getRightMargin()
public int getStyle()
getStyle
in class org.eclipse.swt.widgets.Widget
public java.lang.String getText()
public java.lang.String getToolTipText()
getToolTipText
in class org.eclipse.swt.widgets.Control
public int getTopMargin()
public void setAlignment(int align)
align
- public void setBackground(org.eclipse.swt.graphics.Color color)
setBackground
in class org.eclipse.swt.widgets.Control
public void setBackground(org.eclipse.swt.graphics.Image image)
image
- public void setBottomMargin(int bottomMargin)
bottomMargin
- public void setFont(org.eclipse.swt.graphics.Font font)
setFont
in class org.eclipse.swt.widgets.Canvas
public void setGIF(java.io.InputStream inputStream)
inputStream
- public void setGIF(java.lang.String path)
path
- public void setImage(org.eclipse.swt.graphics.Image image)
image
- public void setLeftMargin(int leftMargin)
leftMargin
- public void setProgressProvider(ComponentStatusLabelProgressProvider provider)
provider
- public void setRightMargin(int rightMargin)
rightMargin
- public void setText(java.lang.String text)
text
- public void setToolTipText(java.lang.String string)
setToolTipText
in class org.eclipse.swt.widgets.Control
public void setTopMargin(int topMargin)
topMargin
- public void updateImage(org.eclipse.swt.graphics.Image image)
image
-