Class Decorator<T,​U>

java.lang.Object
org.eclipse.nebula.widgets.tiles.Decorator<T,​U>
Type Parameters:
T -
U -
Direct Known Subclasses:
DecoratorColor, DecoratorInteger, DecoratorString

public abstract class Decorator<T,​U>
extends java.lang.Object
This abstract base class represents a decorator and handles reference counting.
  • Constructor Summary

    Constructors 
    Constructor Description
    Decorator()  
  • Method Summary

    Modifier and Type Method Description
    void addDecoratorListener​(DecoratorListener listener)
    Adds a decorator listener
    abstract U decorate​(T t)
    Implement this to decorate elements
    protected void free()
    Decreases the reference count and potentially disposes the element
    void removeDecoratorListener​(DecoratorListener listener)
    Removes a decorator listener
    protected void use()
    Increases the reference count

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • addDecoratorListener

      public final void addDecoratorListener​(DecoratorListener listener)
      Adds a decorator listener
      Parameters:
      listener -
    • decorate

      public abstract U decorate​(T t)
      Implement this to decorate elements
      Parameters:
      t -
      Returns:
    • removeDecoratorListener

      public final void removeDecoratorListener​(DecoratorListener listener)
      Removes a decorator listener
      Parameters:
      listener -
    • free

      protected final void free()
      Decreases the reference count and potentially disposes the element
    • use

      protected final void use()
      Increases the reference count