Class FontIconDefinition

    • Field Detail

      • FLIP_HORIZONTALLY_RTL

        public static final java.lang.String FLIP_HORIZONTALLY_RTL
        The content for RTL should be flipped.
        See Also:
        Constant Field Values
      • CONTENT_RTL

        public static final java.lang.String CONTENT_RTL
        The content for RTL alternate content.
        See Also:
        Constant Field Values
      • CONTENT_SELECT

        public static final java.lang.String CONTENT_SELECT
        The content for Select state alternate content.
        See Also:
        Constant Field Values
      • CONTENT_RTL_SELECT

        public static final java.lang.String CONTENT_RTL_SELECT
        The content for RTL and Select state alternate content.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FontIconDefinition

        public FontIconDefinition()
        The single font icon definition constructor.
      • FontIconDefinition

        public FontIconDefinition​(Atom atom)
        The single font icon definition constructor with a name.
        Parameters:
        atom - Name of the icon.
    • Method Detail

      • clone

        public PropCnr clone()
                      throws java.lang.CloneNotSupportedException
        Clone of image forces creation of the source client image data before cloning.
        Overrides:
        clone in class PropCnr
        Throws:
        java.lang.CloneNotSupportedException - If a subclass doesn't allow cloning, e.g. the client properties.
      • isHorizontallyFlippedRTL

        public boolean isHorizontallyFlippedRTL()
        Flag indicating the image should be flipped horizontally when RTL.
        Returns:
        The flip flag, default value is false, i.e. same icon for RTL or LTR.
      • getStatesCSS

        public java.lang.String[] getStatesCSS()
        Gets the state CSS'es for Normal, RTL, Disable, Press, Select, Focus, Hover and Capture.
        Returns:
        A cached array with the state CSS'es, where an empty setting is assigned an empty string. Do not modify the array!
      • getKStringFontIcon

        public java.lang.String getKStringFontIcon​(ClientImageData cid,
                                                   KStringHTMLImageTag source,
                                                   IKStringInfoProvider provider)
        Appends the font icon definition to a KString tag.
        Parameters:
        cid - The client image data instance.
        source - The source KString tag.
        provider - The information provider.
        Returns:
        String to use.
      • append

        public void append​(PropMgr propertyManager,
                           SendTransaction trans)
        Appends the font icon data for the client to display in e.g. a button, menu item, etc.