@Deprecated public class JoScrollComposite extends java.lang.Object implements IScrollComposite
Constructor and Description |
---|
JoScrollComposite()
Deprecated.
|
JoScrollComposite(ILayoutDescriptor layout)
Deprecated.
|
JoScrollComposite(IScrollCompositeDescriptor descriptor)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<M_WIDGET_TYPE extends IControl> |
add(ICustomWidgetCreator<M_WIDGET_TYPE> creator)
Deprecated.
Creates and adds an control to this container
|
<M_WIDGET_TYPE extends IControl> |
add(ICustomWidgetCreator<M_WIDGET_TYPE> creator,
java.lang.Object layoutConstraints)
Deprecated.
Creates and adds an control to this container
|
<M_WIDGET_TYPE extends IControl> |
add(int index,
ICustomWidgetCreator<M_WIDGET_TYPE> creator)
Deprecated.
Creates and adds an control to this container
|
<M_WIDGET_TYPE extends IControl> |
add(int index,
ICustomWidgetCreator<M_WIDGET_TYPE> creator,
java.lang.Object layoutConstraints)
Deprecated.
Creates and adds an control to this container
|
<M_WIDGET_TYPE extends IControl> |
add(int index,
IWidgetDescriptor<? extends M_WIDGET_TYPE> descriptor)
Deprecated.
Creates and adds an control to this container.
|
<M_WIDGET_TYPE extends IControl> |
add(int index,
IWidgetDescriptor<? extends M_WIDGET_TYPE> descriptor,
java.lang.Object layoutConstraints)
Deprecated.
Creates and adds an control to this container.
|
<M_WIDGET_TYPE extends IControl> |
add(IWidgetDescriptor<? extends M_WIDGET_TYPE> descriptor)
Deprecated.
Creates and adds an control to this container.
|
<M_WIDGET_TYPE extends IControl> |
add(IWidgetDescriptor<? extends M_WIDGET_TYPE> descriptor,
java.lang.Object layoutConstraints)
Deprecated.
Creates and adds an control to this container.
|
<P_WIDGET_TYPE extends org.jowidgets.tools.powo.Component<? extends IControl,?>> |
add(P_WIDGET_TYPE widget)
Deprecated.
|
<P_WIDGET_TYPE extends org.jowidgets.tools.powo.Component<? extends IControl,?>> |
add(P_WIDGET_TYPE widget,
java.lang.Object layoutConstraints)
Deprecated.
|
void |
addComponentListener(IComponentListener componentListener)
Deprecated.
Adds a component listener
|
void |
addComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory)
Deprecated.
|
void |
addContainerListener(IContainerListener listener)
Deprecated.
Adds a container listener
|
void |
addContainerRegistry(IContainerRegistry registry)
Deprecated.
Adds a container registry recursively.
|
void |
addDisposeListener(IDisposeListener listener)
Deprecated.
Adds a dispose listener
|
void |
addFocusListener(IFocusListener listener)
Deprecated.
Adds a focus listener
|
void |
addFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory)
Deprecated.
|
void |
addKeyListener(IKeyListener listener)
Deprecated.
Adds a key listener
|
void |
addKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory)
Deprecated.
|
JoLabel |
addLabel(IImageConstant icon,
java.lang.String text,
java.lang.String tooltipText,
java.lang.Object layoutConstraints)
Deprecated.
|
JoLabel |
addLabel(java.lang.String text)
Deprecated.
|
JoLabel |
addLabel(java.lang.String text,
java.lang.Object layoutConstraints)
Deprecated.
|
JoLabel |
addLabel(java.lang.String text,
java.lang.String tooltipText,
java.lang.Object layoutConstraints)
Deprecated.
|
void |
addMouseListener(IMouseListener mouseListener)
Deprecated.
Adds a mouse listener
|
void |
addMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory)
Deprecated.
|
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 |
addPopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory)
Deprecated.
|
void |
addPopupMenu(JoPopupMenu popupMenu)
Deprecated.
|
void |
addShowingStateListener(IShowingStateListener listener)
Deprecated.
Adds a showing state listener
|
static IScrollCompositeBluePrint |
bluePrint()
Deprecated.
|
static IScrollCompositeBluePrint |
bluePrint(boolean border)
Deprecated.
|
static IScrollCompositeBluePrint |
bluePrint(ILayoutDescriptor layout)
Deprecated.
|
static IScrollCompositeBluePrint |
bluePrint(java.lang.String borderTitle)
Deprecated.
|
Dimension |
computeDecoratedSize(Dimension clientAreaSize)
Deprecated.
Gets the decorated size (size with border / insets ) for a given client area size
|
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
|
java.util.List<IControl> |
getChildren()
Deprecated.
Gets the containers children
|
Rectangle |
getClientArea()
Deprecated.
Gets the client area of the container.
|
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
|
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.Object |
getUiReference()
Deprecated.
Gets the reference to the ui implementation of this widget.
|
Position |
getViewportPosition()
Deprecated.
Gets the upper left corner of the current viewport
|
Dimension |
getViewportSize()
Deprecated.
Gets the current size of the viewport
|
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 |
layout()
Deprecated.
Layouts the container
|
void |
layoutBegin()
Deprecated.
Informs that more than one operation on the containers children be
done and that now redraw should be done until layout end will be invoked
to avoid flickering.
|
void |
layoutEnd()
Deprecated.
Layouts the container
|
void |
layoutLater()
Deprecated.
Layouts the container later in the event queue.
|
void |
redraw()
Deprecated.
Marks the widget that a redraw is necessary
|
boolean |
remove(IControl control)
Deprecated.
Removes a control from this container.
|
void |
removeAll()
Deprecated.
Removes all child controls from the container.
|
void |
removeComponentListener(IComponentListener componentListener)
Deprecated.
Removes a component listener
|
void |
removeComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory)
Deprecated.
|
void |
removeContainerListener(IContainerListener listener)
Deprecated.
Removes a container listener
|
void |
removeContainerRegistry(IContainerRegistry registry)
Deprecated.
Removes a container registry
|
void |
removeDisposeListener(IDisposeListener listener)
Deprecated.
Removes a dispose listener
|
void |
removeFocusListener(IFocusListener listener)
Deprecated.
Removes a focus listener
|
void |
removeFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory)
Deprecated.
|
void |
removeKeyListener(IKeyListener listener)
Deprecated.
Removes a key listener
|
void |
removeKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory)
Deprecated.
|
void |
removeMouseListener(IMouseListener mouseListener)
Deprecated.
Removes a mouse listener
|
void |
removeMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory)
Deprecated.
|
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 |
removePopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory)
Deprecated.
|
void |
removeShowingStateListener(IShowingStateListener listener)
Deprecated.
Removes a showing state listener
|
boolean |
requestFocus()
Deprecated.
Try's to get the focus for the component.
|
void |
scrollRectToVisible(Rectangle rectangle)
Deprecated.
|
void |
scrollToBottom()
Deprecated.
|
void |
scrollToTop()
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 |
setForegroundColor(IColorConstant colorValue)
Deprecated.
Sets the foreground color.
|
void |
setLayout(ILayoutDescriptor layoutDescriptor)
Deprecated.
Sets the layout for this container
|
<LAYOUT_TYPE extends ILayouter> |
setLayout(ILayoutFactory<LAYOUT_TYPE> layoutFactory)
Deprecated.
Sets the layouter for this container defined by a layout factory
|
void |
setLayoutConstraints(java.lang.Object layoutConstraints)
Deprecated.
Sets the layout constraints of the control
|
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 |
setTabOrder(java.util.Collection<? extends IControl> tabOrder)
Deprecated.
Sets the tab order of the container's controls.
|
void |
setTabOrder(IControl... controls)
Deprecated.
Sets the tab order of the container's controls.
|
void |
setToolTipText(java.lang.String toolTip)
Deprecated.
Sets the tooltip text for the control
|
void |
setViewportPosition(int x,
int y)
Deprecated.
|
void |
setViewportPosition(Position position)
Deprecated.
Sets the coordinates that should become the upper left corner of the viewport
|
void |
setVisible(boolean visible)
Deprecated.
Sets the components visibility state.
|
void |
showControl(IControl control)
Deprecated.
|
Position |
toComponent(Position componentPosition,
IComponentCommon component)
Deprecated.
Transforms a position from this components coordinate system to another components
coordinate system
|
static JoScrollComposite |
toJoScrollComposite(IScrollComposite widget)
Deprecated.
|
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, wait
getDragSource, getDropTarget, getParent, getRoot, setMaxSize, setMinSize, setParent, setPreferredSize
addParentListener, removeParentListener
add, add, add, add, add, add, add, add, addContainerRegistry, getChildren, layout, layoutLater, remove, removeContainerRegistry, setLayout, setTabOrder, setTabOrder
createPopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreen
dispose, isDisposed
addDisposeListener, removeDisposeListener
addShowingStateListener, removeShowingStateListener
addContainerListener, removeContainerListener
addComponentListenerRecursive, addFocusListenerRecursive, addKeyListenerRecursive, addMouseListenerRecursive, addPopupDetectionListenerRecursive, removeComponentListenerRecursive, removeFocusListenerRecursive, removeKeyListenerRecursive, removeMouseListenerRecursive, removePopupDetectionListenerRecursive
getLayoutConstraints, getMaxSize, getMinSize, getPreferredSize, setLayoutConstraints, setToolTipText
computeDecoratedSize, getClientArea, layoutBegin, layoutEnd, removeAll, setLayout
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 JoScrollComposite()
public JoScrollComposite(ILayoutDescriptor layout)
public JoScrollComposite(IScrollCompositeDescriptor descriptor)
public static JoScrollComposite toJoScrollComposite(IScrollComposite widget)
public void setViewportPosition(Position position)
IScrollCompositeCommon
setViewportPosition
in interface IScrollCompositeCommon
position
- The position to setpublic void setViewportPosition(int x, int y)
setViewportPosition
in interface IScrollComposite
public Position getViewportPosition()
IScrollCompositeCommon
getViewportPosition
in interface IScrollCompositeCommon
public Dimension getViewportSize()
IScrollCompositeCommon
getViewportSize
in interface IScrollCompositeCommon
public void scrollToTop()
scrollToTop
in interface IScrollComposite
public void scrollToBottom()
scrollToBottom
in interface IScrollComposite
public void scrollRectToVisible(Rectangle rectangle)
scrollRectToVisible
in interface IScrollComposite
public void showControl(IControl control)
showControl
in interface IScrollComposite
public static IScrollCompositeBluePrint bluePrint()
public static IScrollCompositeBluePrint bluePrint(ILayoutDescriptor layout)
public static IScrollCompositeBluePrint bluePrint(java.lang.String borderTitle)
public static IScrollCompositeBluePrint bluePrint(boolean border)
public final IContainer getParent()
IWidget
public IControl getRoot()
IWidget
public void setParent(IContainer parent)
IControl
public void setLayoutConstraints(java.lang.Object layoutConstraints)
IControlCommon
setLayoutConstraints
in interface IControlCommon
layoutConstraints
- The layout constraints, may be nullpublic java.lang.Object getLayoutConstraints()
IControlCommon
getLayoutConstraints
in interface IControlCommon
public Dimension getMinSize()
IControlCommon
getMinSize
in interface IControlCommon
public Dimension getPreferredSize()
IControlCommon
getPreferredSize
in interface IControlCommon
public Dimension getMaxSize()
IControlCommon
getMaxSize
in interface IControlCommon
public void setMinSize(Dimension minSize)
IControl
setMinSize
in interface IControl
minSize
- The minimum size to set or null for default min sizepublic void setPreferredSize(Dimension preferredSize)
IControl
setPreferredSize
in interface IControl
preferredSize
- The preferred size to set or null for default preferred sizepublic void setMaxSize(Dimension maxSize)
IControl
setMaxSize
in interface IControl
maxSize
- The maximal size to set or null for default max sizepublic void setToolTipText(java.lang.String toolTip)
IControlCommon
setToolTipText
in interface IControlCommon
toolTip
- The tooltip text or null if the control should not show any tooltippublic void addParentListener(IParentListener<IContainer> listener)
IParentObservable
addParentListener
in interface IParentObservable<IContainer>
listener
- The listener to addpublic void removeParentListener(IParentListener<IContainer> listener)
IParentObservable
removeParentListener
in interface IParentObservable<IContainer>
listener
- The listener to removepublic IDragSource getDragSource()
IControl
getDragSource
in interface IControl
public IDropTarget getDropTarget()
IControl
getDropTarget
in interface IControl
public final <P_WIDGET_TYPE extends org.jowidgets.tools.powo.Component<? extends IControl,?>> P_WIDGET_TYPE add(P_WIDGET_TYPE widget)
public final <P_WIDGET_TYPE extends org.jowidgets.tools.powo.Component<? extends IControl,?>> P_WIDGET_TYPE add(P_WIDGET_TYPE widget, java.lang.Object layoutConstraints)
public final JoLabel addLabel(java.lang.String text)
public final JoLabel addLabel(java.lang.String text, java.lang.Object layoutConstraints)
public final JoLabel addLabel(java.lang.String text, java.lang.String tooltipText, java.lang.Object layoutConstraints)
public final JoLabel addLabel(IImageConstant icon, java.lang.String text, java.lang.String tooltipText, java.lang.Object layoutConstraints)
public void setTabOrder(java.util.Collection<? extends IControl> tabOrder)
IContainer
setTabOrder
in interface IContainer
tabOrder
- the tab order to set or null to set the default tab behavior.public void setTabOrder(IControl... controls)
IContainer
setTabOrder
in interface IContainer
public void addContainerListener(IContainerListener listener)
IContainerObservable
addContainerListener
in interface IContainerObservable
listener
- The listener to addpublic void removeContainerListener(IContainerListener listener)
IContainerObservable
removeContainerListener
in interface IContainerObservable
listener
- The listener to removepublic void addContainerRegistry(IContainerRegistry registry)
IContainer
addContainerRegistry
in interface IContainer
registry
- The registry to addpublic void removeContainerRegistry(IContainerRegistry registry)
IContainer
removeContainerRegistry
in interface IContainer
registry
- The registry to removepublic void addComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory)
addComponentListenerRecursive
in interface IRecursiveContainerObservable
public void removeComponentListenerRecursive(IListenerFactory<IComponentListener> listenerFactory)
removeComponentListenerRecursive
in interface IRecursiveContainerObservable
public void addFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory)
addFocusListenerRecursive
in interface IRecursiveContainerObservable
public void removeFocusListenerRecursive(IListenerFactory<IFocusListener> listenerFactory)
removeFocusListenerRecursive
in interface IRecursiveContainerObservable
public void addKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory)
addKeyListenerRecursive
in interface IRecursiveContainerObservable
public void removeKeyListenerRecursive(IListenerFactory<IKeyListener> listenerFactory)
removeKeyListenerRecursive
in interface IRecursiveContainerObservable
public void addMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory)
addMouseListenerRecursive
in interface IRecursiveContainerObservable
public void removeMouseListenerRecursive(IListenerFactory<IMouseListener> listenerFactory)
removeMouseListenerRecursive
in interface IRecursiveContainerObservable
public void addPopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory)
addPopupDetectionListenerRecursive
in interface IRecursiveContainerObservable
public void removePopupDetectionListenerRecursive(IListenerFactory<IPopupDetectionListener> listenerFactory)
removePopupDetectionListenerRecursive
in interface IRecursiveContainerObservable
public <M_WIDGET_TYPE extends IControl> M_WIDGET_TYPE add(int index, IWidgetDescriptor<? extends M_WIDGET_TYPE> descriptor, java.lang.Object layoutConstraints)
IContainer
add
in interface IContainer
M_WIDGET_TYPE
- The type of the widget that is created, added and returnedindex
- The index at which the control should be added in the containerdescriptor
- The descriptor that describes the control to addlayoutConstraints
- The layout constraints / data for the added controlpublic <M_WIDGET_TYPE extends IControl> M_WIDGET_TYPE add(int index, IWidgetDescriptor<? extends M_WIDGET_TYPE> descriptor)
IContainer
add
in interface IContainer
M_WIDGET_TYPE
- The type of the widget that is created, added and returnedindex
- The index at which the control should be added in the containerdescriptor
- The descriptor that describes the control to addpublic final <M_WIDGET_TYPE extends IControl> M_WIDGET_TYPE add(IWidgetDescriptor<? extends M_WIDGET_TYPE> descriptor, java.lang.Object layoutConstraints)
IContainer
add
in interface IContainer
M_WIDGET_TYPE
- The type of the widget that is created, added and returneddescriptor
- The descriptor that describes the control to addlayoutConstraints
- The layout constraints / data for the added controlpublic <M_WIDGET_TYPE extends IControl> M_WIDGET_TYPE add(IWidgetDescriptor<? extends M_WIDGET_TYPE> descriptor)
IContainer
add
in interface IContainer
M_WIDGET_TYPE
- The type of the widget that is created, added and returneddescriptor
- The descriptor that describes the control to addpublic java.util.List<IControl> getChildren()
IContainer
getChildren
in interface IContainer
public boolean remove(IControl control)
IContainer
remove
in interface IContainer
control
- The control to removepublic boolean isReparentable()
IComponent
isReparentable
in interface IComponent
public final void setLayout(ILayoutDescriptor layoutDescriptor)
IContainerCommon
setLayout
in interface IContainerCommon
layoutDescriptor
- The layout to setpublic <LAYOUT_TYPE extends ILayouter> LAYOUT_TYPE setLayout(ILayoutFactory<LAYOUT_TYPE> layoutFactory)
IContainer
setLayout
in interface IContainer
layoutFactory
- The layout to setpublic final void removeAll()
IContainerCommon
removeAll
in interface IContainerCommon
public Rectangle getClientArea()
IContainerCommon
getClientArea
in interface IContainerCommon
public Dimension computeDecoratedSize(Dimension clientAreaSize)
IContainerCommon
computeDecoratedSize
in interface IContainerCommon
clientAreaSize
- The client area size to get the decorated size for.public void layout()
IContainer
layout
in interface IContainer
public void layoutLater()
IContainer
layoutLater
in interface IContainer
public final void layoutBegin()
IContainerCommon
layoutBegin
in interface IContainerCommon
public final void layoutEnd()
IContainerCommon
layoutEnd
in interface IContainerCommon
public <M_WIDGET_TYPE extends IControl> M_WIDGET_TYPE add(int index, ICustomWidgetCreator<M_WIDGET_TYPE> creator, java.lang.Object layoutConstraints)
IContainer
add
in interface IContainer
M_WIDGET_TYPE
- The type of the widget that is created, added and returnedindex
- The index at which the control should be added in the containercreator
- The creator that creates the controllayoutConstraints
- The layout constraints / data for the added controlpublic <M_WIDGET_TYPE extends IControl> M_WIDGET_TYPE add(int index, ICustomWidgetCreator<M_WIDGET_TYPE> creator)
IContainer
add
in interface IContainer
M_WIDGET_TYPE
- The type of the widget that is created, added and returnedindex
- The index at which the control should be added in the containercreator
- The creator that creates the controlpublic final <M_WIDGET_TYPE extends IControl> M_WIDGET_TYPE add(ICustomWidgetCreator<M_WIDGET_TYPE> creator, java.lang.Object layoutConstraints)
IContainer
add
in interface IContainer
M_WIDGET_TYPE
- The type of the widget that is created, added and returnedcreator
- The creator that creates the controllayoutConstraints
- The layout constraints / data for the added controlpublic <M_WIDGET_TYPE extends IControl> M_WIDGET_TYPE add(ICustomWidgetCreator<M_WIDGET_TYPE> creator)
IContainer
add
in interface IContainer
M_WIDGET_TYPE
- The type of the widget that is created, added and returnedcreator
- The creator that creates the controlpublic final void addPopupMenu(JoPopupMenu popupMenu)
public final void setForegroundColor(IColorConstant colorValue)
IComponentCommon
setForegroundColor
in interface IComponentCommon
colorValue
- The color to set, may be nullpublic final void setBackgroundColor(IColorConstant colorValue)
IComponentCommon
setBackgroundColor
in interface IComponentCommon
colorValue
- The color to set, may be nullpublic void setVisible(boolean visible)
IComponentCommon
setVisible
in interface IComponentCommon
visible
- The visibility state to setpublic void setCursor(Cursor cursor)
IComponentCommon
setCursor
in interface IComponentCommon
cursor
- The cursor to setpublic void addPopupDetectionListener(IPopupDetectionListener listener)
IPopupDetectionObservable
addPopupDetectionListener
in interface IPopupDetectionObservable
listener
- The listener to addpublic void removePopupDetectionListener(IPopupDetectionListener listener)
IPopupDetectionObservable
removePopupDetectionListener
in interface IPopupDetectionObservable
listener
- The listener to removepublic boolean hasFocus()
IComponent
hasFocus
in interface IComponent
public boolean requestFocus()
IComponentCommon
requestFocus
in interface IComponentCommon
public void addFocusListener(IFocusListener listener)
IFocusObservable
addFocusListener
in interface IFocusObservable
listener
- The listener to addpublic void removeFocusListener(IFocusListener listener)
IFocusObservable
removeFocusListener
in interface IFocusObservable
listener
- The listener to removepublic void addKeyListener(IKeyListener listener)
IKeyObservable
addKeyListener
in interface IKeyObservable
listener
- The listener to addpublic void removeKeyListener(IKeyListener listener)
IKeyObservable
removeKeyListener
in interface IKeyObservable
listener
- The listener to removepublic void addMouseListener(IMouseListener mouseListener)
IMouseObservable
addMouseListener
in interface IMouseObservable
mouseListener
- The listener to addpublic void removeMouseListener(IMouseListener mouseListener)
IMouseObservable
removeMouseListener
in interface IMouseObservable
mouseListener
- The listener to removepublic void addMouseMotionListener(IMouseMotionListener listener)
IMouseMotionObservable
addMouseMotionListener
in interface IMouseMotionObservable
listener
- The listener to addpublic void removeMouseMotionListener(IMouseMotionListener listener)
IMouseMotionObservable
removeMouseMotionListener
in interface IMouseMotionObservable
listener
- The listener to removepublic void addComponentListener(IComponentListener componentListener)
IComponentObservable
addComponentListener
in interface IComponentObservable
componentListener
- The listener to addpublic void removeComponentListener(IComponentListener componentListener)
IComponentObservable
removeComponentListener
in interface IComponentObservable
componentListener
- The listener to removepublic void addShowingStateListener(IShowingStateListener listener)
IShowingStateObservable
addShowingStateListener
in interface IShowingStateObservable
listener
- The listener to addpublic void removeShowingStateListener(IShowingStateListener listener)
IShowingStateObservable
removeShowingStateListener
in interface IShowingStateObservable
listener
- The listener to removepublic IPopupMenu createPopupMenu()
IComponent
createPopupMenu
in interface IComponent
public void setPopupMenu(IMenuModel popupMenu)
IComponent
setPopupMenu
in interface IComponent
public final void redraw()
IComponentCommon
redraw
in interface IComponentCommon
public void setRedrawEnabled(boolean enabled)
IComponentCommon
setRedrawEnabled
in interface IComponentCommon
enabled
- The enabled statepublic boolean isShowing()
IComponent
isShowing
in interface IComponent
public final boolean isVisible()
IComponentCommon
isVisible
in interface IComponentCommon
public IColorConstant getForegroundColor()
IComponentCommon
getForegroundColor
in interface IComponentCommon
public IColorConstant getBackgroundColor()
IComponentCommon
getBackgroundColor
in interface IComponentCommon
public Dimension getSize()
IComponentCommon
getSize
in interface IComponentCommon
public void setSize(Dimension size)
IComponentCommon
setSize
in interface IComponentCommon
size
- The size to set, must not be nullpublic Position getPosition()
IComponentCommon
getPosition
in interface IComponentCommon
public void setPosition(Position position)
IComponentCommon
setPosition
in interface IComponentCommon
position
- The position of the component, must not be nullpublic Rectangle getBounds()
IComponent
getBounds
in interface IComponent
public void setBounds(Rectangle bounds)
IComponent
setBounds
in interface IComponent
bounds
- The bounds to set, never nullpublic void setSize(int width, int height)
IComponent
setSize
in interface IComponent
width
- The widthheight
- The heightpublic void setPosition(int x, int y)
IComponent
setPosition
in interface IComponent
x
- The x coordinatey
- The y coordinatepublic Position toScreen(Position localPosition)
IComponent
toScreen
in interface IComponent
localPosition
- The local position, must not be nullpublic Position toLocal(Position screenPosition)
IComponent
toLocal
in interface IComponent
screenPosition
- The screen position to transform, must not ne nullpublic Position fromComponent(IComponentCommon component, Position componentPosition)
IComponent
fromComponent
in interface IComponent
component
- 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)
IComponent
toComponent
in interface IComponent
componentPosition
- The position in this coordinate systemcomponent
- Component, in what coordinate system the position is transformed topublic final boolean isInitialized()
public void addDisposeListener(IDisposeListener listener)
IDisposeObservable
addDisposeListener
in interface IDisposeObservable
listener
- The listener to addpublic void removeDisposeListener(IDisposeListener listener)
IDisposeObservable
removeDisposeListener
in interface IDisposeObservable
listener
- The listener to removepublic void dispose()
IWidget
public boolean isDisposed()
IWidget
isDisposed
in interface IWidget
public void setEnabled(boolean enabled)
IWidgetCommon
setEnabled
in interface IWidgetCommon
enabled
- The enabled state to setpublic boolean isEnabled()
IWidgetCommon
isEnabled
in interface IWidgetCommon
public final java.lang.Object getUiReference()
IWidgetCommon
getUiReference
in interface IWidgetCommon
Siehe auch Jowidgets Nutzerhandbuch