Class SWTSkinPropertiesClone

  • All Implemented Interfaces:
    SkinProperties, SWTSkinProperties, SWTSkinPropertiesParam

    public class SWTSkinPropertiesClone
    extends java.lang.Object
    implements SWTSkinPropertiesParam
    Simple extension of SWTSkinProperties that first checks the original cloning id before checking the keys that it's cloning.

    Cloned Skin Objects will be calling this class with a Config ID of "" plus whatever property name string they add on.

    • Field Detail

      • sCloneConfigID

        private final java.lang.String sCloneConfigID
      • sTemplateConfigID

        private final java.lang.String sTemplateConfigID
      • sCloneParams

        private final java.lang.String[] sCloneParams
    • Constructor Detail

      • SWTSkinPropertiesClone

        public SWTSkinPropertiesClone​(SWTSkinProperties properties,
                                      java.lang.String sCloneConfigID,
                                      java.lang.String[] sCloneParams)
        Initialize
        Parameters:
        properties - Where to read properties from
        sCloneConfigID - The config key that told us to clone something
    • Method Detail

      • checkName

        private void checkName​(java.lang.String name)
        Parameters:
        name -
      • addProperty

        public void addProperty​(java.lang.String name,
                                java.lang.String value)
        Description copied from interface: SkinProperties
        Add a property key/value pair to the list
        Specified by:
        addProperty in interface SkinProperties
        Parameters:
        name - Name of Property
        value - Value of Property
      • getColor

        public org.eclipse.swt.graphics.Color getColor​(java.lang.String name)
        Description copied from interface: SWTSkinProperties
        Retrieve a color property in as a SWT Color
        Specified by:
        getColor in interface SWTSkinProperties
        Parameters:
        name - Property Name
        Returns:
        a Color, or null
      • getIntValue

        public int getIntValue​(java.lang.String name,
                               int def)
        Description copied from interface: SkinProperties
        Retrieve a property's int value
        Specified by:
        getIntValue in interface SkinProperties
        Parameters:
        name - Name of property
        def - Default value if property not found
        Returns:
        value
      • getStringArray

        public java.lang.String[] getStringArray​(java.lang.String name)
        Specified by:
        getStringArray in interface SkinProperties
      • getStringValue

        public java.lang.String getStringValue​(java.lang.String name,
                                               java.lang.String def)
        Specified by:
        getStringValue in interface SkinProperties
      • getStringValue

        public java.lang.String getStringValue​(java.lang.String name)
        Description copied from interface: SkinProperties
        Retrieve a string value
        Specified by:
        getStringValue in interface SkinProperties
        Parameters:
        name - Name of property
        Returns:
        the String value, or null if not found
      • getStringArray

        public java.lang.String[] getStringArray​(java.lang.String name,
                                                 java.lang.String[] params)
        Specified by:
        getStringArray in interface SkinProperties
      • getStringValue

        public java.lang.String getStringValue​(java.lang.String name,
                                               java.lang.String[] params,
                                               java.lang.String def)
        Specified by:
        getStringValue in interface SkinProperties
      • getStringValue

        public java.lang.String getStringValue​(java.lang.String name,
                                               java.lang.String[] params)
        Specified by:
        getStringValue in interface SkinProperties
      • getBooleanValue

        public boolean getBooleanValue​(java.lang.String name,
                                       boolean def)
        Specified by:
        getBooleanValue in interface SkinProperties
      • hasKey

        public boolean hasKey​(java.lang.String name)
        Specified by:
        hasKey in interface SkinProperties
        Returns:
      • getColor

        public org.eclipse.swt.graphics.Color getColor​(java.lang.String name,
                                                       org.eclipse.swt.graphics.Color def)
        Specified by:
        getColor in interface SWTSkinProperties
      • getReferenceID

        public java.lang.String getReferenceID​(java.lang.String name)
        Specified by:
        getReferenceID in interface SkinProperties
        Returns:
      • addResourceBundle

        public void addResourceBundle​(java.util.ResourceBundle subBundle,
                                      java.lang.String skinPath)
        Specified by:
        addResourceBundle in interface SkinProperties
        skinPath - TODO
      • addResourceBundle

        public void addResourceBundle​(java.util.ResourceBundle subBundle,
                                      java.lang.String skinPath,
                                      java.lang.ClassLoader loader)
        Specified by:
        addResourceBundle in interface SkinProperties