Class FontIconDefinition

    • Field Detail


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

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

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

        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.
        atom - Name of the icon.
    • Method Detail

      • onEventSelf

        public void onEventSelf​(GEvent event)
        Overridden to check for cache clearing...
        Specified by:
        onEventSelf in interface IGProp<GProp<?>[]>
        onEventSelf in class GProp<GProp<?>[]>
        event - The property event.
      • clone

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

        public boolean isImageTargetValid()
        Checks if this target is valid.
        Specified by:
        isImageTargetValid in interface IImageTarget
      • isHorizontallyFlippedRTL

        public boolean isHorizontallyFlippedRTL()
        Flag indicating the image should be flipped horizontally when RTL.
        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.
        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.
        cid - The client image data instance.
        source - The source KString tag.
        provider - The information provider.
        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.