Class LightUpDownButton

    • Constructor Detail

      • LightUpDownButton

        public LightUpDownButton()
        Instantiates a new light up-down button.
    • Method Detail

      • addButtonListener

        public void addButtonListener​(IUpDownButtonListener listener)
        Adds the button listener.
        Parameters:
        listener - the listener to add.
      • removeButtonListener

        public void removeButtonListener​(IUpDownButtonListener listener)
        Removes the button listener.
        Parameters:
        listener - the listener to remove.
      • computeSize

        public org.eclipse.swt.graphics.Point computeSize​(org.eclipse.swt.graphics.GC gc,
                                                          int width,
                                                          int height,
                                                          boolean flushCache)
        Description copied from interface: ILightControl
        Computes the size of this control.
        Specified by:
        computeSize in interface ILightControl
        Overrides:
        computeSize in class LightComposite
        Parameters:
        gc - the GC to do measurements with.
        width - the width hint, SWT.DEFAULT to compute the preferred width.
        height - the height hint, SWT.DEFAULT to compute the preferred height.
        flushCache - the flush cache flag, instructs the associated layout to reset all its caches, if any.
        Returns:
        the computed size.
      • layout

        public void layout​(org.eclipse.swt.graphics.GC gc)
        Description copied from interface: ILightComposite
        Layouts this composite using its layout, if any.
        Specified by:
        layout in interface ILightComposite
        Overrides:
        layout in class LightComposite
        Parameters:
        gc - the GC to do the measurements with.