Class LightEditorBar<C extends ILightControl>

    • Constructor Detail

      • LightEditorBar

        public LightEditorBar()
        Instantiates a new light editor bar.
    • Method Detail

      • getLeftSide

        public ILightComposite getLeftSide()
        Gets the left side area.
        Returns:
        the left side area.
      • getRightSide

        public ILightComposite getRightSide()
        Gets the right side area.
        Returns:
        the right side area.
      • getBackgroundColor

        public org.eclipse.swt.graphics.Color getBackgroundColor()
        Gets the background color.
        Returns:
        the background color.
      • setBackgroundColor

        public void setBackgroundColor​(org.eclipse.swt.graphics.Color backgroundColor)
        Sets the background color.
        Parameters:
        backgroundColor - the new background color.
      • getBorderColor

        public org.eclipse.swt.graphics.Color getBorderColor()
        Gets the border color.
        Returns:
        the border color.
      • setBorderColor

        public void setBorderColor​(org.eclipse.swt.graphics.Color borderColor)
        Sets the border color.
        Parameters:
        borderColor - the new border color.
      • getImage

        public org.eclipse.swt.graphics.Image getImage()
        Gets the image assigned to the left side area.
        Returns:
        the image or null if no image assigned.
      • setImage

        public void setImage​(org.eclipse.swt.graphics.Image image)
        Assigns the image to the left side area.
        Parameters:
        image - the new image, null to hide the image.
      • paint

        public void paint​(org.eclipse.swt.graphics.GC gc,
                          org.eclipse.swt.graphics.Rectangle rectangle)
        Description copied from interface: ILightControl
        Paints the given rectangle of this control.
        Specified by:
        paint in interface ILightControl
        Overrides:
        paint in class LightComposite
        Parameters:
        gc - the GC to paint on.
        rectangle - the rectangle to paint.
      • setEditable

        public void setEditable​(boolean isEditable)
        Description copied from interface: IEditable
        Sets control editable state.
        Specified by:
        setEditable in interface IEditable
        Parameters:
        isEditable - - true if control can be edited.
      • isEditable

        public boolean isEditable()
        Description copied from interface: IEditable
        Returns control editable state.
        Specified by:
        isEditable in interface IEditable
        Returns:
        true if control can be edited.