org.jowidgets.addons.bridge.awt.swt
Interface IAwtSwtControl

All Superinterfaces:
org.jowidgets.api.widgets.IComponent, org.jowidgets.common.widgets.IComponentCommon, org.jowidgets.common.widgets.controller.IComponentObservable, org.jowidgets.api.widgets.IControl, org.jowidgets.common.widgets.IControlCommon, org.jowidgets.api.controller.IDisposeObservable, org.jowidgets.common.widgets.controller.IFocusObservable, org.jowidgets.common.widgets.controller.IKeyObservable, org.jowidgets.common.widgets.controller.IMouseObservable, org.jowidgets.common.widgets.controller.IPopupDetectionObservable, org.jowidgets.api.widgets.IWidget, org.jowidgets.common.widgets.IWidgetCommon

public interface IAwtSwtControl
extends org.jowidgets.api.widgets.IControl


Method Summary
 org.jowidgets.util.IMutableValue<org.eclipse.swt.widgets.Composite> getSwtComposite()
          The swt composite is a mutable value.
 
Methods inherited from interface org.jowidgets.api.widgets.IControl
getParent, getRoot, setMaxSize, setMinSize, setParent, setPreferredSize
 
Methods inherited from interface org.jowidgets.api.widgets.IComponent
createPopupMenu, fromComponent, getBounds, hasFocus, isReparentable, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreen
 
Methods inherited from interface org.jowidgets.api.widgets.IWidget
dispose, isDisposed
 
Methods inherited from interface org.jowidgets.api.controller.IDisposeObservable
addDisposeListener, removeDisposeListener
 
Methods inherited from interface org.jowidgets.common.widgets.IControlCommon
getLayoutConstraints, getMaxSize, getMinSize, getPreferredSize, setLayoutConstraints, setToolTipText
 
Methods inherited from interface org.jowidgets.common.widgets.IComponentCommon
getBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisible
 
Methods inherited from interface org.jowidgets.common.widgets.IWidgetCommon
getUiReference, isEnabled, setEnabled
 
Methods inherited from interface org.jowidgets.common.widgets.controller.IComponentObservable
addComponentListener, removeComponentListener
 
Methods inherited from interface org.jowidgets.common.widgets.controller.IFocusObservable
addFocusListener, removeFocusListener
 
Methods inherited from interface org.jowidgets.common.widgets.controller.IKeyObservable
addKeyListener, removeKeyListener
 
Methods inherited from interface org.jowidgets.common.widgets.controller.IMouseObservable
addMouseListener, removeMouseListener
 
Methods inherited from interface org.jowidgets.common.widgets.controller.IPopupDetectionObservable
addPopupDetectionListener, removePopupDetectionListener
 

Method Detail

getSwtComposite

org.jowidgets.util.IMutableValue<org.eclipse.swt.widgets.Composite> getSwtComposite()
The swt composite is a mutable value. Remark: Users of this control must considers the following behavior : The initial value may be null and mutates later to a composite, because the swt awt bridge needs a peer to work. This peer will eventually be created e.g. at pack or set visible of any parent. The implemented AwtSwtControl may be disposed, if any parent ancestor swing panel will be removed from its parent. Then the mutable value mutates (changes) to null. If the holding swing panel will be reattached to another parent, the mutable value mutates back to a NEW composite instance.

Returns:
The mutable swt composite


Copyright © 2012. All Rights Reserved.