Package com.diffplug.common.swt.widgets
Class LinkBtn
- java.lang.Object
-
- com.diffplug.common.swt.ControlWrapper.AroundControl<Link>
-
- com.diffplug.common.swt.widgets.LinkBtn
-
- All Implemented Interfaces:
ControlWrapper
public class LinkBtn extends ControlWrapper.AroundControl<Link>
Added a control that uses an SWT Link to implement the standard Button interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.diffplug.common.swt.ControlWrapper
ControlWrapper.AroundControl<T extends Control>, ControlWrapper.AroundWrapper<T extends ControlWrapper>, ControlWrapper.Transparent<T extends Control>
-
-
Field Summary
-
Fields inherited from class com.diffplug.common.swt.ControlWrapper.AroundControl
wrapped
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(int eventType, Listener listener)Adds a listener.static LinkBtncreate(Composite parent, java.lang.String txt, java.lang.Runnable action)Quick method to create a LinkBtn.java.lang.StringgetText()Returns the text.voidremoveListener(int eventType, Listener listener)Removes a listener.voidsetEnabled(boolean enabled)Determines whether this FlatBtn is enabled or not.voidsetText(java.lang.String text)-
Methods inherited from class com.diffplug.common.swt.ControlWrapper.AroundControl
getRootControl
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.diffplug.common.swt.ControlWrapper
dispose, getLayoutData, getParent, getShell, isDisposed, setLayoutData, setParent
-
-
-
-
Constructor Detail
-
LinkBtn
public LinkBtn(Composite parent, int style)
-
-
Method Detail
-
setText
public void setText(java.lang.String text)
-
getText
public java.lang.String getText()
Returns the text.
-
addListener
public void addListener(int eventType, Listener listener)Adds a listener.
-
removeListener
public void removeListener(int eventType, Listener listener)Removes a listener.
-
setEnabled
public void setEnabled(boolean enabled)
Determines whether this FlatBtn is enabled or not.
-
-