Package org.eclipse.jface.widgets
Class AbstractItemFactory<F extends AbstractItemFactory<?,?,?>,I extends Item,P extends Widget>
java.lang.Object
org.eclipse.jface.widgets.AbstractWidgetFactory<F,I,P>
org.eclipse.jface.widgets.AbstractItemFactory<F,I,P>
- Type Parameters:
F
- factoryI
- itemP
- parent
- Direct Known Subclasses:
TableColumnFactory
,TreeColumnFactory
@NoExtend
public abstract class AbstractItemFactory<F extends AbstractItemFactory<?,?,?>,I extends Item,P extends Widget>
extends AbstractWidgetFactory<F,I,P>
Abstract factory for items. Factories for widgets that inherit from Item
should extend this factory to handle the properties of Item itself, like
enabled or tool tip.
- Since:
- 3.18
-
Method Summary
Methods inherited from class org.eclipse.jface.widgets.AbstractWidgetFactory
addProperty, cast, create, data, data
-
Method Details
-
image
Sets the receiver's image to the argument, which may be null indicating that no image should be displayed.- Parameters:
image
- the image to display on the receiver- Returns:
- this
- See Also:
-
text
Sets the receiver's text.Note: If control characters like '\n', '\t' etc. are used in the string, then the behavior is platform dependent.
- Parameters:
text
- the text- Returns:
- this
- See Also:
-