Class ButtonProperties<E extends ButtonProperties<?>>

java.lang.Object
com.amalgamasimulation.desktop.ui.editor.sections.descriptors.buttons.common.ButtonProperties<E>
All Implemented Interfaces:
IButtonProperties
Direct Known Subclasses:
ContainerButtonProperties, EmfButtonProperties, SimpleButtonProperties

public abstract class ButtonProperties<E extends ButtonProperties<?>> extends Object implements IButtonProperties
  • Field Details

    • style

      protected int style
    • icon

      protected org.eclipse.swt.graphics.Image icon
    • height

      protected int height
    • width

      protected int width
    • text

      protected String text
    • tooltip

      protected String tooltip
    • handler

      protected Consumer<org.eclipse.swt.events.SelectionEvent> handler
    • eventBroker

      protected org.eclipse.e4.core.services.events.IEventBroker eventBroker
  • Constructor Details

    • ButtonProperties

      protected ButtonProperties(Class<E> cl)
  • Method Details

    • getThis

      protected E getThis()
    • getHeight

      public int getHeight()
    • height

      public E height(int height)
    • getWidth

      public int getWidth()
    • width

      public E width(int width)
    • getText

      public String getText()
    • text

      public E text(String text)
    • getIcon

      public org.eclipse.swt.graphics.Image getIcon()
    • icon

      public E icon(org.eclipse.swt.graphics.Image icon)
    • getStyle

      public int getStyle()
    • setStyle

      public E setStyle(int style)
    • getTooltip

      public String getTooltip()
    • tooltip

      public E tooltip(String tooltip)
    • setEnable

      public E setEnable(boolean enable)
    • setEnable

      public E setEnable(BooleanSupplier enable)
    • isEnable

      public boolean isEnable()
    • setVisible

      public E setVisible(boolean visible)
    • setVisible

      public E setVisible(BooleanSupplier visible)
    • isVisible

      public boolean isVisible()
    • setCurrentEnable

      public void setCurrentEnable(boolean currentEnable)
    • getHandler

      public Consumer<org.eclipse.swt.events.SelectionEvent> getHandler()
    • handler

      public E handler(Consumer<org.eclipse.swt.events.SelectionEvent> handler)
    • getEventBroker

      protected org.eclipse.e4.core.services.events.IEventBroker getEventBroker()