Class SWTSkinObjectBasic

    • Field Detail

      • control

        protected org.eclipse.swt.widgets.Control control
      • type

        protected java.lang.String type
      • sConfigID

        protected java.lang.String sConfigID
      • sID

        protected java.lang.String sID
      • suffixes

        protected java.lang.String[] suffixes
      • listeners_mon

        protected AEMonitor listeners_mon
      • sViewID

        private java.lang.String sViewID
      • isVisible

        private int isVisible
      • bgColor

        protected org.eclipse.swt.graphics.Color bgColor
      • colorBorder

        private org.eclipse.swt.graphics.Color colorBorder
      • colorBorderParams

        private int[] colorBorderParams
      • colorFillParams

        private int[] colorFillParams
      • colorFillType

        private int colorFillType
      • initialized

        boolean initialized
      • paintListenerHooked

        boolean paintListenerHooked
      • alwaysHookPaintListener

        boolean alwaysHookPaintListener
      • mapData

        private java.util.Map mapData
      • disposed

        private boolean disposed
      • debug

        protected boolean debug
      • bgImage

        private org.eclipse.swt.graphics.Image bgImage
      • tooltipID

        private java.lang.String tooltipID
      • customTooltipID

        protected boolean customTooltipID
      • resizeGradientBGListener

        private org.eclipse.swt.widgets.Listener resizeGradientBGListener
      • datasource

        private java.lang.Object datasource
      • firstVisibility

        private boolean firstVisibility
      • layoutComplete

        private boolean layoutComplete
      • obfuscatedImageGenerator

        private ObfuscateImage obfuscatedImageGenerator
    • Constructor Detail

      • SWTSkinObjectBasic

        public SWTSkinObjectBasic​(SWTSkin skin,
                                  SWTSkinProperties properties,
                                  org.eclipse.swt.widgets.Control control,
                                  java.lang.String sID,
                                  java.lang.String sConfigID,
                                  java.lang.String type,
                                  SWTSkinObject parent)
        Parameters:
        properties - TODO
      • SWTSkinObjectBasic

        public SWTSkinObjectBasic​(SWTSkin skin,
                                  SWTSkinProperties properties,
                                  java.lang.String sID,
                                  java.lang.String sConfigID,
                                  java.lang.String type,
                                  SWTSkinObject parent)
    • Method Detail

      • setControl

        public void setControl​(org.eclipse.swt.widgets.Control _control)
      • getResizeGradientBGListener

        private org.eclipse.swt.widgets.Listener getResizeGradientBGListener()
      • setIsVisible

        protected boolean setIsVisible​(boolean visible,
                                       boolean walkup)
        Parameters:
        visible -
        Since:
        3.0.4.3
      • getControl

        public org.eclipse.swt.widgets.Control getControl()
        Description copied from interface: SWTSkinObject
        Retrieve the associated SWT Control used by the skin object
        Specified by:
        getControl in interface SWTSkinObject
        Returns:
        SWT Control
      • getType

        public java.lang.String getType()
        Description copied from interface: SWTSkinObject
        Retrieve the type of widget.
        Specified by:
        getType in interface SWTSkinObject
        Returns:
        TODO Move widget types to SWTSkinObject
      • getConfigID

        public java.lang.String getConfigID()
        Description copied from interface: SWTSkinObject
        Retrieve the Config ID which is ID in the skin config file.
        Specified by:
        getConfigID in interface SWTSkinObject
        Returns:
        Config ID
      • getSkinObjectID

        public java.lang.String getSkinObjectID()
        Description copied from interface: SWTSkinObject
        Retrieve the Skin Object ID that represents this object. Typically the same as SWTSkinObject.getConfigID(), however, may be different if a config id is used to make independant copies
        Specified by:
        getSkinObjectID in interface SWTSkinObject
        Returns:
        An unique Skin Object ID
      • setBackground

        public void setBackground​(java.lang.String sConfigID,
                                  java.lang.String sSuffix)
        Specified by:
        setBackground in interface SWTSkinObject
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • switchSuffix

        public java.lang.String switchSuffix​(java.lang.String suffix)
        Switch the suffix using the default of 1 for level and false for walkUp
        Specified by:
        switchSuffix in interface SWTSkinObject
        Returns:
      • switchSuffix

        public final java.lang.String switchSuffix​(java.lang.String suffix,
                                                   int level,
                                                   boolean walkUp)
        Specified by:
        switchSuffix in interface SWTSkinObject
        walkUp - TODO
        Returns:
        TODO
      • switchSuffix

        public java.lang.String switchSuffix​(java.lang.String newSuffixEntry,
                                             int level,
                                             boolean walkUp,
                                             boolean walkDown)
        Specified by:
        switchSuffix in interface SWTSkinObject
      • getSuffix

        public java.lang.String getSuffix()
        Specified by:
        getSuffix in interface SWTSkinObject
        Returns:
      • triggerListeners

        public void triggerListeners​(int eventType,
                                     java.lang.Object params)
        Specified by:
        triggerListeners in interface SWTSkinObject
      • triggerListenersRaw

        private void triggerListenersRaw​(int eventType,
                                         java.lang.Object params)
      • setViewID

        protected void setViewID​(java.lang.String viewID)
      • getTooltipID

        public java.lang.String getTooltipID​(boolean walkup)
        Specified by:
        getTooltipID in interface SWTSkinObject
        Returns:
      • paintControl

        public void paintControl​(org.eclipse.swt.graphics.GC gc)
      • paintControl

        public final void paintControl​(org.eclipse.swt.events.PaintEvent e)
        Specified by:
        paintControl in interface org.eclipse.swt.events.PaintListener
      • isAlwaysHookPaintListener

        public boolean isAlwaysHookPaintListener()
      • setAlwaysHookPaintListener

        public void setAlwaysHookPaintListener​(boolean alwaysHookPaintListener)
      • getData

        public java.lang.Object getData​(java.lang.String id)
        Specified by:
        getData in interface SWTSkinObject
      • setData

        public void setData​(java.lang.String id,
                            java.lang.Object data)
        Specified by:
        setData in interface SWTSkinObject
      • obfuscatedImage

        public org.eclipse.swt.graphics.Image obfuscatedImage​(org.eclipse.swt.graphics.Image image)
        Specified by:
        obfuscatedImage in interface ObfuscateImage
      • setDebug

        public void setDebug​(boolean debug)
        Specified by:
        setDebug in interface SWTSkinObject
        Parameters:
        debug - the debug to set
      • isDebug

        public boolean isDebug()
        Specified by:
        isDebug in interface SWTSkinObject
        Returns:
        the debug
      • getColor_SuffixWalkback

        private org.eclipse.swt.graphics.Color getColor_SuffixWalkback​(java.lang.String id)