@Deprecated public class JoButton extends java.lang.Object implements IButton
| Constructor and Description |
|---|
JoButton(IButtonDescriptor descriptor)
Deprecated.
|
JoButton(IImageConstant icon)
Deprecated.
|
JoButton(IImageConstant icon,
java.lang.String text)
Deprecated.
|
JoButton(java.lang.String text)
Deprecated.
|
JoButton(java.lang.String text,
java.lang.String tooltipText)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(IActionListener actionListener)
Deprecated.
Adds an action listener
|
void |
addComponentListener(IComponentListener componentListener)
Deprecated.
Adds a component listener
|
void |
addDisposeListener(IDisposeListener listener)
Deprecated.
Adds a dispose listener
|
void |
addFocusListener(IFocusListener listener)
Deprecated.
Adds a focus listener
|
void |
addKeyListener(IKeyListener listener)
Deprecated.
Adds a key listener
|
void |
addMouseListener(IMouseListener mouseListener)
Deprecated.
Adds a mouse listener
|
void |
addMouseMotionListener(IMouseMotionListener listener)
Deprecated.
Adds a mouse motion listener
|
void |
addParentListener(IParentListener<IContainer> listener)
Deprecated.
Adds a parent listener
|
void |
addPopupDetectionListener(IPopupDetectionListener listener)
Deprecated.
Adds a popup detection listener
|
void |
addPopupMenu(JoPopupMenu popupMenu)
Deprecated.
|
void |
addShowingStateListener(IShowingStateListener listener)
Deprecated.
Adds a showing state listener
|
static IButtonBluePrint |
bluePrint()
Deprecated.
|
static IButtonBluePrint |
bluePrint(java.lang.String text)
Deprecated.
|
static IButtonBluePrint |
bluePrint(java.lang.String text,
java.lang.String tooltipText)
Deprecated.
|
IPopupMenu |
createPopupMenu()
Deprecated.
Creates a popup menu as a child of this component
|
void |
dispose()
Deprecated.
Disposes the widgets.
|
Position |
fromComponent(IComponentCommon component,
Position componentPosition)
Deprecated.
Transforms a position from another components coordinate system to
this components coordinate system
|
IColorConstant |
getBackgroundColor()
Deprecated.
Gets the background color
|
Rectangle |
getBounds()
Deprecated.
Gets the bounds of the component
|
IDragSource |
getDragSource()
Deprecated.
Gets the drag source of the control
|
IDropTarget |
getDropTarget()
Deprecated.
Gets the drop target of the control
|
IColorConstant |
getForegroundColor()
Deprecated.
Gets the foreground color
|
IImageConstant |
getIcon()
Deprecated.
|
java.lang.Object |
getLayoutConstraints()
Deprecated.
Gets the layout constraints of the control
|
Dimension |
getMaxSize()
Deprecated.
Gets the maximal size of the control.
|
Dimension |
getMinSize()
Deprecated.
Gets the minimal size of the control.
|
IContainer |
getParent()
Deprecated.
Gets the parent of the widget
|
Position |
getPosition()
Deprecated.
Gets the position of the component
|
Dimension |
getPreferredSize()
Deprecated.
Gets the preferred size of the control.
|
IControl |
getRoot()
Deprecated.
Gets the root widget of the widget
If the widget is a composed widget, the root widget
of the composed widget will be returned.
|
Dimension |
getSize()
Deprecated.
Gets the current size of the component.
|
java.lang.String |
getText()
Deprecated.
|
java.lang.Object |
getUiReference()
Deprecated.
Gets the reference to the ui implementation of this widget.
|
boolean |
hasFocus()
Deprecated.
Gets the input focus state of the component.
|
boolean |
isDisposed()
Deprecated.
Checks if a widget is disposed
|
boolean |
isEnabled()
Deprecated.
Gets the enabled state
|
boolean |
isInitialized()
Deprecated.
|
boolean |
isReparentable()
Deprecated.
Gets the information if the component is reparentable
|
boolean |
isShowing()
Deprecated.
A root component is showing if it is visible.
|
boolean |
isVisible()
Deprecated.
Gets the visibility state.
|
void |
push()
Deprecated.
Pushes the button, e.g. for unit tests
|
void |
redraw()
Deprecated.
Marks the widget that a redraw is necessary
|
void |
removeActionListener(IActionListener actionListener)
Deprecated.
Removes an action listener
|
void |
removeComponentListener(IComponentListener componentListener)
Deprecated.
Removes a component listener
|
void |
removeDisposeListener(IDisposeListener listener)
Deprecated.
Removes a dispose listener
|
void |
removeFocusListener(IFocusListener listener)
Deprecated.
Removes a focus listener
|
void |
removeKeyListener(IKeyListener listener)
Deprecated.
Removes a key listener
|
void |
removeMouseListener(IMouseListener mouseListener)
Deprecated.
Removes a mouse listener
|
void |
removeMouseMotionListener(IMouseMotionListener listener)
Deprecated.
Removes a mouse motion listener
|
void |
removeParentListener(IParentListener<IContainer> listener)
Deprecated.
Removes a parent listener
|
void |
removePopupDetectionListener(IPopupDetectionListener listener)
Deprecated.
Removes a popup detection listener
|
void |
removeShowingStateListener(IShowingStateListener listener)
Deprecated.
Removes a showing state listener
|
boolean |
requestFocus()
Deprecated.
Try's to get the focus for the component.
|
void |
setAction(IAction action)
Deprecated.
|
void |
setBackgroundColor(IColorConstant colorValue)
Deprecated.
Sets the background color.
|
void |
setBounds(Rectangle bounds)
Deprecated.
The the bounds of the component
|
void |
setCursor(Cursor cursor)
Deprecated.
Sets the cursor
|
void |
setEnabled(boolean enabled)
Deprecated.
Sets the widget enabled
|
void |
setFontName(java.lang.String fontName)
Deprecated.
|
void |
setFontSize(int size)
Deprecated.
|
void |
setForegroundColor(IColorConstant colorValue)
Deprecated.
Sets the foreground color.
|
void |
setIcon(IImageConstant icon)
Deprecated.
|
void |
setLayoutConstraints(java.lang.Object layoutConstraints)
Deprecated.
Sets the layout constraints of the control
|
void |
setMarkup(Markup markup)
Deprecated.
|
void |
setMaxSize(Dimension maxSize)
Deprecated.
Sets the maximal size
If set to null, the default maximal size will be used
|
void |
setMinSize(Dimension minSize)
Deprecated.
Sets the minimum size of this control.
|
void |
setParent(IContainer parent)
Deprecated.
Sets the parent of the container.
|
void |
setPopupMenu(IMenuModel popupMenu)
Deprecated.
Sets a popup menu for this component defined by a model.
|
void |
setPosition(int x,
int y)
Deprecated.
Sets the position of the component defined by the x-coordinate and the y-coordinate
|
void |
setPosition(Position position)
Deprecated.
Sets the position of the component
|
void |
setPreferredSize(Dimension preferredSize)
Deprecated.
Sets the preferred size of this control.
|
void |
setRedrawEnabled(boolean enabled)
Deprecated.
Enables or disabled the redraw of a component and its children.
|
void |
setSize(Dimension size)
Deprecated.
Sets the size of the component.
|
void |
setSize(int width,
int height)
Deprecated.
Sets the size of the component defined by width and height
|
void |
setText(java.lang.String text)
Deprecated.
|
void |
setToolTipText(java.lang.String toolTip)
Deprecated.
Sets the tooltip text for the control
|
void |
setVisible(boolean visible)
Deprecated.
Sets the components visibility state.
|
Position |
toComponent(Position componentPosition,
IComponentCommon component)
Deprecated.
Transforms a position from this components coordinate system to another components
coordinate system
|
Position |
toLocal(Position screenPosition)
Deprecated.
Transforms a position in the screen coordinate system to this components coordinate system
|
Position |
toScreen(Position localPosition)
Deprecated.
Transforms a position in the coordinate system of this component to the screen coordinate system
|
clone, 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, isEnabledaddComponentListener, removeComponentListeneraddFocusListener, removeFocusListeneraddKeyListener, removeKeyListeneraddMouseListener, removeMouseListeneraddMouseMotionListener, removeMouseMotionListeneraddPopupDetectionListener, removePopupDetectionListenerpublic JoButton(IImageConstant icon, java.lang.String text)
public JoButton(IImageConstant icon)
public JoButton(java.lang.String text)
public JoButton(java.lang.String text,
java.lang.String tooltipText)
public JoButton(IButtonDescriptor descriptor)
public void setMarkup(Markup markup)
setMarkup in interface ITextLabelCommonpublic void setFontSize(int size)
setFontSize in interface ITextLabelCommonpublic void setFontName(java.lang.String fontName)
setFontName in interface ITextLabelCommonpublic void setText(java.lang.String text)
setText in interface ITextLabelCommonpublic java.lang.String getText()
getText in interface ITextLabelpublic void setIcon(IImageConstant icon)
setIcon in interface IIconCommonpublic IImageConstant getIcon()
public void setAction(IAction action)
public void setEnabled(boolean enabled)
IWidgetCommonsetEnabled in interface IWidgetCommonenabled - The enabled state to setpublic 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 IButtonCommonpublic static IButtonBluePrint bluePrint()
public static IButtonBluePrint bluePrint(java.lang.String text)
public static IButtonBluePrint bluePrint(java.lang.String text, java.lang.String tooltipText)
public IContainer getParent()
IWidgetpublic IControl getRoot()
IWidgetpublic void setParent(IContainer parent)
IControlpublic void setLayoutConstraints(java.lang.Object layoutConstraints)
IControlCommonsetLayoutConstraints in interface IControlCommonlayoutConstraints - The layout constraints, may be nullpublic java.lang.Object getLayoutConstraints()
IControlCommongetLayoutConstraints in interface IControlCommonpublic Dimension getMinSize()
IControlCommongetMinSize in interface IControlCommonpublic Dimension getPreferredSize()
IControlCommongetPreferredSize in interface IControlCommonpublic Dimension getMaxSize()
IControlCommongetMaxSize in interface IControlCommonpublic void setMinSize(Dimension minSize)
IControlsetMinSize in interface IControlminSize - The minimum size to set or null for default min sizepublic void setPreferredSize(Dimension preferredSize)
IControlsetPreferredSize in interface IControlpreferredSize - The preferred size to set or null for default preferred sizepublic void setMaxSize(Dimension maxSize)
IControlsetMaxSize in interface IControlmaxSize - The maximal size to set or null for default max sizepublic void setToolTipText(java.lang.String toolTip)
IControlCommonsetToolTipText in interface IControlCommontoolTip - The tooltip text or null if the control should not show any tooltippublic void addParentListener(IParentListener<IContainer> listener)
IParentObservableaddParentListener in interface IParentObservable<IContainer>listener - The listener to addpublic void removeParentListener(IParentListener<IContainer> listener)
IParentObservableremoveParentListener in interface IParentObservable<IContainer>listener - The listener to removepublic IDragSource getDragSource()
IControlgetDragSource in interface IControlpublic IDropTarget getDropTarget()
IControlgetDropTarget in interface IControlpublic final void addPopupMenu(JoPopupMenu popupMenu)
public final void setForegroundColor(IColorConstant colorValue)
IComponentCommonsetForegroundColor in interface IComponentCommoncolorValue - The color to set, may be nullpublic final void setBackgroundColor(IColorConstant colorValue)
IComponentCommonsetBackgroundColor in interface IComponentCommoncolorValue - The color to set, may be nullpublic void setVisible(boolean visible)
IComponentCommonsetVisible in interface IComponentCommonvisible - The visibility state to setpublic void setCursor(Cursor cursor)
IComponentCommonsetCursor in interface IComponentCommoncursor - The cursor to setpublic void addPopupDetectionListener(IPopupDetectionListener listener)
IPopupDetectionObservableaddPopupDetectionListener in interface IPopupDetectionObservablelistener - The listener to addpublic void removePopupDetectionListener(IPopupDetectionListener listener)
IPopupDetectionObservableremovePopupDetectionListener in interface IPopupDetectionObservablelistener - The listener to removepublic boolean hasFocus()
IComponenthasFocus in interface IComponentpublic boolean requestFocus()
IComponentCommonrequestFocus in interface IComponentCommonpublic void addFocusListener(IFocusListener listener)
IFocusObservableaddFocusListener in interface IFocusObservablelistener - The listener to addpublic void removeFocusListener(IFocusListener listener)
IFocusObservableremoveFocusListener in interface IFocusObservablelistener - The listener to removepublic void addKeyListener(IKeyListener listener)
IKeyObservableaddKeyListener in interface IKeyObservablelistener - The listener to addpublic void removeKeyListener(IKeyListener listener)
IKeyObservableremoveKeyListener in interface IKeyObservablelistener - The listener to removepublic void addMouseListener(IMouseListener mouseListener)
IMouseObservableaddMouseListener in interface IMouseObservablemouseListener - The listener to addpublic void removeMouseListener(IMouseListener mouseListener)
IMouseObservableremoveMouseListener in interface IMouseObservablemouseListener - The listener to removepublic void addMouseMotionListener(IMouseMotionListener listener)
IMouseMotionObservableaddMouseMotionListener in interface IMouseMotionObservablelistener - The listener to addpublic void removeMouseMotionListener(IMouseMotionListener listener)
IMouseMotionObservableremoveMouseMotionListener in interface IMouseMotionObservablelistener - The listener to removepublic void addComponentListener(IComponentListener componentListener)
IComponentObservableaddComponentListener in interface IComponentObservablecomponentListener - The listener to addpublic void removeComponentListener(IComponentListener componentListener)
IComponentObservableremoveComponentListener in interface IComponentObservablecomponentListener - The listener to removepublic void addShowingStateListener(IShowingStateListener listener)
IShowingStateObservableaddShowingStateListener in interface IShowingStateObservablelistener - The listener to addpublic void removeShowingStateListener(IShowingStateListener listener)
IShowingStateObservableremoveShowingStateListener in interface IShowingStateObservablelistener - The listener to removepublic IPopupMenu createPopupMenu()
IComponentcreatePopupMenu in interface IComponentpublic void setPopupMenu(IMenuModel popupMenu)
IComponentsetPopupMenu in interface IComponentpublic final void redraw()
IComponentCommonredraw in interface IComponentCommonpublic void setRedrawEnabled(boolean enabled)
IComponentCommonsetRedrawEnabled in interface IComponentCommonenabled - The enabled statepublic boolean isShowing()
IComponentisShowing in interface IComponentpublic final boolean isVisible()
IComponentCommonisVisible in interface IComponentCommonpublic IColorConstant getForegroundColor()
IComponentCommongetForegroundColor in interface IComponentCommonpublic IColorConstant getBackgroundColor()
IComponentCommongetBackgroundColor in interface IComponentCommonpublic Dimension getSize()
IComponentCommongetSize in interface IComponentCommonpublic void setSize(Dimension size)
IComponentCommonsetSize in interface IComponentCommonsize - The size to set, must not be nullpublic Position getPosition()
IComponentCommongetPosition in interface IComponentCommonpublic void setPosition(Position position)
IComponentCommonsetPosition in interface IComponentCommonposition - The position of the component, must not be nullpublic Rectangle getBounds()
IComponentgetBounds in interface IComponentpublic void setBounds(Rectangle bounds)
IComponentsetBounds in interface IComponentbounds - The bounds to set, never nullpublic void setSize(int width,
int height)
IComponentsetSize in interface IComponentwidth - The widthheight - The heightpublic void setPosition(int x,
int y)
IComponentsetPosition in interface IComponentx - The x coordinatey - The y coordinatepublic Position toScreen(Position localPosition)
IComponenttoScreen in interface IComponentlocalPosition - The local position, must not be nullpublic Position toLocal(Position screenPosition)
IComponenttoLocal in interface IComponentscreenPosition - The screen position to transform, must not ne nullpublic Position fromComponent(IComponentCommon component, Position componentPosition)
IComponentfromComponent in interface IComponentcomponent - Component, which the position is relative to, must not be nullcomponentPosition - Position The position to transform, must not be nullpublic Position toComponent(Position componentPosition, IComponentCommon component)
IComponenttoComponent in interface IComponentcomponentPosition - The position in this coordinate systemcomponent - Component, in what coordinate system the position is transformed topublic boolean isReparentable()
IComponentisReparentable in interface IComponentpublic final boolean isInitialized()
public void addDisposeListener(IDisposeListener listener)
IDisposeObservableaddDisposeListener in interface IDisposeObservablelistener - The listener to addpublic void removeDisposeListener(IDisposeListener listener)
IDisposeObservableremoveDisposeListener in interface IDisposeObservablelistener - The listener to removepublic void dispose()
IWidgetpublic boolean isDisposed()
IWidgetisDisposed in interface IWidgetpublic boolean isEnabled()
IWidgetCommonisEnabled in interface IWidgetCommonpublic final java.lang.Object getUiReference()
IWidgetCommongetUiReference in interface IWidgetCommonSiehe auch Jowidgets Nutzerhandbuch