public class ButtonWrapper extends ControlWrapper implements IButton
| Constructor and Description |
|---|
ButtonWrapper(IButton widget) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(IActionListener actionListener)
Adds an action listener
|
IImageConstant |
getIcon() |
java.lang.String |
getText() |
protected IButton |
getWidget() |
void |
push()
Pushes the button, e.g. for unit tests
|
void |
removeActionListener(IActionListener actionListener)
Removes an action listener
|
void |
setAction(IAction action) |
void |
setFontName(java.lang.String fontName) |
void |
setFontSize(int size) |
void |
setIcon(IImageConstant icon) |
void |
setMarkup(Markup markup) |
void |
setText(java.lang.String text) |
addParentListener, getDragSource, getDropTarget, getLayoutConstraints, getMaxSize, getMinSize, getParent, getPreferredSize, getRoot, removeParentListener, setLayoutConstraints, setMaxSize, setMinSize, setParent, setPreferredSize, setToolTipTextaddComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addPopupDetectionListener, addShowingStateListener, createPopupMenu, fromComponent, getBackgroundColor, getBounds, getForegroundColor, getPosition, getSize, hasFocus, isReparentable, isShowing, isVisible, redraw, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePopupDetectionListener, removeShowingStateListener, requestFocus, setBackgroundColor, setBounds, setCursor, setForegroundColor, setPopupMenu, setPosition, setPosition, setRedrawEnabled, setSize, setSize, setVisible, toComponent, toLocal, toScreenaddDisposeListener, dispose, getUiReference, isDisposed, isEnabled, removeDisposeListener, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDragSource, getDropTarget, getParent, getRoot, setMaxSize, setMinSize, setParent, setPreferredSizecreatePopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreendispose, isDisposedaddDisposeListener, removeDisposeListeneraddShowingStateListener, removeShowingStateListeneraddParentListener, removeParentListenergetLayoutConstraints, getMaxSize, getMinSize, getPreferredSize, setLayoutConstraints, setToolTipTextgetBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisiblegetUiReference, isEnabled, setEnabledaddComponentListener, removeComponentListeneraddFocusListener, removeFocusListeneraddKeyListener, removeKeyListeneraddMouseListener, removeMouseListeneraddMouseMotionListener, removeMouseMotionListeneraddPopupDetectionListener, removePopupDetectionListenerpublic ButtonWrapper(IButton widget)
protected IButton getWidget()
getWidget in class ControlWrapperpublic java.lang.String getText()
getText in interface ITextLabelpublic void setFontSize(int size)
setFontSize in interface ITextLabelCommonpublic void setFontName(java.lang.String fontName)
setFontName in interface ITextLabelCommonpublic void setMarkup(Markup markup)
setMarkup in interface ITextLabelCommonpublic void setText(java.lang.String text)
setText in interface ITextLabelCommonpublic void setIcon(IImageConstant icon)
setIcon in interface IIconCommonpublic IImageConstant getIcon()
public void addActionListener(IActionListener actionListener)
IActionObservableaddActionListener in interface IActionObservableactionListener - The listener to addpublic void removeActionListener(IActionListener actionListener)
IActionObservableremoveActionListener in interface IActionObservableactionListener - The listener to removepublic void push()
IButtonCommonpush in interface IButtonCommonSiehe auch Jowidgets Nutzerhandbuch