net.sf.mmm.ui.toolkit.impl.swt.sync
Class AbstractSyncCompositeAccess

java.lang.Object
  extended by net.sf.mmm.ui.toolkit.impl.swt.sync.AbstractSyncObjectAccess
      extended by net.sf.mmm.ui.toolkit.impl.swt.sync.AbstractSyncWidgetAccess
          extended by net.sf.mmm.ui.toolkit.impl.swt.sync.AbstractSyncControlAccess
              extended by net.sf.mmm.ui.toolkit.impl.swt.sync.AbstractSyncCompositeAccess
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
SyncCompositeAccess, SyncGroupAccess, SyncMySpinnerAccess, SyncSashFormAccess, SyncScrolledCompositeAccess, SyncShellAccess, SyncTabFolderAccess

public abstract class AbstractSyncCompositeAccess
extends AbstractSyncControlAccess

This is the abstract base class used for synchronous access on a SWT Composite.

Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Constructor Summary
AbstractSyncCompositeAccess(UIFactorySwt uiFactory, int swtStyle)
          The constructor.
 
Method Summary
protected  void createSynchron()
          This method is called for the create operation.
abstract  org.eclipse.swt.widgets.Composite getSwtObject()
          This method gets the widget to access synchronous.
 void layout()
          This method performs a layout of the composite.
protected  void performSynchron(String operation)
          This method is called from AbstractSyncObjectAccess.run().
 void setLayout(org.eclipse.swt.widgets.Layout layoutManager)
          This method sets the layout of the composite.
 
Methods inherited from class net.sf.mmm.ui.toolkit.impl.swt.sync.AbstractSyncControlAccess
canCreate, computeSize, computeSize, create, doCreateSynchron, getBackground, getBounds, getFont, getForeground, getParent, getParentAccess, getTooltip, handleDisposed, isEnabled, isVisible, pack, setBackground, setEnabled, setFont, setForeground, setLayoutData, setLocation, setParentAccess, setSize, setSize, setTooltip, setVisible
 
Methods inherited from class net.sf.mmm.ui.toolkit.impl.swt.sync.AbstractSyncWidgetAccess
addListener, disposeSynchron, isDisposedSynchron
 
Methods inherited from class net.sf.mmm.ui.toolkit.impl.swt.sync.AbstractSyncObjectAccess
checkReady, dispose, getDisplay, getStyle, hasStyle, invertFlag, invoke, isDisposed, run, setFlag, unsetFlag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSyncCompositeAccess

public AbstractSyncCompositeAccess(UIFactorySwt uiFactory,
                                   int swtStyle)
The constructor.

Parameters:
uiFactory - is used to do the synchronization.
swtStyle - is the style of the composite.
Method Detail

getSwtObject

public abstract org.eclipse.swt.widgets.Composite getSwtObject()
This method gets the widget to access synchronous.

Specified by:
getSwtObject in class AbstractSyncControlAccess
Returns:
the widget.

performSynchron

protected void performSynchron(String operation)
This method is called from AbstractSyncObjectAccess.run(). It does the actual job for the given operation.

Overrides:
performSynchron in class AbstractSyncControlAccess
Parameters:
operation - is the actual operation to perform.

createSynchron

protected void createSynchron()
This method is called for the create operation.

Overrides:
createSynchron in class AbstractSyncControlAccess

setLayout

public void setLayout(org.eclipse.swt.widgets.Layout layoutManager)
This method sets the layout of the composite.

Parameters:
layoutManager - is the layout to set.

layout

public void layout()
This method performs a layout of the composite.



Copyright © 2001-2008 mmm-Team. All Rights Reserved.