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 - factory
I - item
P - 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 Details

    • image

      public F image(Image 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

      public F text(String 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: