public class FlatBtn extends ControlWrapper.AroundControl<ToolBar>
ControlWrapper.AroundControl<T extends Control>, ControlWrapper.AroundWrapper<T extends ControlWrapper>, ControlWrapper.Transparent<T extends Control>
wrapped
Modifier and Type | Method and Description |
---|---|
void |
addListener(int eventType,
Listener listener)
Adds a listener.
|
Image |
getImage()
Returns the image.
|
ToolItem |
getItem() |
String |
getText()
Returns the text.
|
void |
removeListener(int eventType,
Listener listener)
Removes a listener.
|
void |
setBackground(Color color)
Sets the background color of the button.
|
void |
setEnabled(boolean enabled)
Determines whether this FlatBtn is enabled or not.
|
void |
setImage(Image image)
Sets the image.
|
void |
setSelection(boolean selected)
Sets the selection state.
|
void |
setText(String text)
Sets the text.
|
getRootControl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getLayoutData, getParent, getShell, isDisposed, setLayoutData, setParent, transparent
public FlatBtn(Composite parent, int style)
public ToolItem getItem()
public void setText(String text)
public String getText()
public void setImage(Image image)
public Image getImage()
public void addListener(int eventType, Listener listener)
public void removeListener(int eventType, Listener listener)
public void setEnabled(boolean enabled)
public void setSelection(boolean selected)
public void setBackground(Color color)