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, setToolTipText
addComponentListener, 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, toScreen
addDisposeListener, dispose, getUiReference, isDisposed, isEnabled, removeDisposeListener, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDragSource, getDropTarget, getParent, getRoot, setMaxSize, setMinSize, setParent, setPreferredSize
createPopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreen
dispose, isDisposed
addDisposeListener, removeDisposeListener
addShowingStateListener, removeShowingStateListener
addParentListener, removeParentListener
getLayoutConstraints, getMaxSize, getMinSize, getPreferredSize, setLayoutConstraints, setToolTipText
getBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisible
getUiReference, isEnabled, setEnabled
addComponentListener, removeComponentListener
addFocusListener, removeFocusListener
addKeyListener, removeKeyListener
addMouseListener, removeMouseListener
addMouseMotionListener, removeMouseMotionListener
addPopupDetectionListener, removePopupDetectionListener
public ButtonWrapper(IButton widget)
protected IButton getWidget()
getWidget
in class ControlWrapper
public java.lang.String getText()
getText
in interface ITextLabel
public void setFontSize(int size)
setFontSize
in interface ITextLabelCommon
public void setFontName(java.lang.String fontName)
setFontName
in interface ITextLabelCommon
public void setMarkup(Markup markup)
setMarkup
in interface ITextLabelCommon
public void setText(java.lang.String text)
setText
in interface ITextLabelCommon
public void setIcon(IImageConstant icon)
setIcon
in interface IIconCommon
public IImageConstant getIcon()
public void addActionListener(IActionListener actionListener)
IActionObservable
addActionListener
in interface IActionObservable
actionListener
- The listener to addpublic void removeActionListener(IActionListener actionListener)
IActionObservable
removeActionListener
in interface IActionObservable
actionListener
- The listener to removepublic void push()
IButtonCommon
push
in interface IButtonCommon
Siehe auch Jowidgets Nutzerhandbuch