Package gda.rcp.views
Class TabCompositeFactoryImpl
java.lang.Object
gda.rcp.views.TabCompositeFactoryImpl
- All Implemented Interfaces:
CompositeFactory,TabCompositeFactory
-
Field Summary
Fields inherited from interface gda.rcp.views.CompositeFactory
COMPOSITE_ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.CompositecreateComposite(org.eclipse.swt.widgets.Composite parent, int style) org.eclipse.swt.graphics.ImagegetImage()Returns the image to be used when displaying the tab for this mode.getLabel()The label displayed on the tabReturn a user-friendly name for this modebooleanvoidsetCompositeFactory(CompositeFactory compositeFactory) voidsetEnabled(boolean enabled) voidsetImageFilePath(String imageFilePath) voidsetImagePluginId(String imagePluginId) voidvoidsetTooltip(String tooltip) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.rcp.views.TabCompositeFactory
isVisible
-
Constructor Details
-
TabCompositeFactoryImpl
public TabCompositeFactoryImpl()
-
-
Method Details
-
getCompositeFactory
-
setCompositeFactory
-
getImagePluginId
-
setImagePluginId
-
getImageFilePath
-
setImageFilePath
-
getImage
public org.eclipse.swt.graphics.Image getImage()Description copied from interface:TabCompositeFactoryReturns the image to be used when displaying the tab for this mode.It is up to the mode to dispose of any image resources created.
- Specified by:
getImagein interfaceTabCompositeFactory- Returns:
- a tab image, or null to use default image
-
createComposite
public org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent, int style) - Specified by:
createCompositein interfaceCompositeFactory
-
getTooltip
Description copied from interface:TabCompositeFactoryReturn a user-friendly name for this mode- Specified by:
getTooltipin interfaceTabCompositeFactory- Returns:
- String name
-
getLabel
Description copied from interface:TabCompositeFactoryThe label displayed on the tab- Specified by:
getLabelin interfaceTabCompositeFactory
-
setTooltip
-
setLabel
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceTabCompositeFactory
-
setEnabled
public void setEnabled(boolean enabled)
-