Search
LayoutRingKey Class
Remarks See Also
 






Represents a key that cycles through the available keyboard layouts.

Namespace: com.mindfusion.keyboard
Assembly: com.mindfusion.keyboard

 Syntax

Java  Copy Code

public class LayoutRingKey extends Key implements Serializable

 Remarks

Pressing this key cycles through the layouts assigned to keyboard's LayoutRing property. The key's default appearance is determined by the properties of the *next* layout in the LayoutRing cycle, following this priority:

1.  If the next layout has a non-null / empty Image property, that image is displayed.
2.  If there is no Image assigned to the layout, but the Label property is set, that text is displayed as key's Content.
3.  If neither Image nor Label is set, the key will display the Unicode keyboard symbol (U+2328) as a fallback.

You can change the key appearance by setting a custom KeyTemplate and overriding draw method of KeyTemplate class.

 Inheritance Hierarchy

java.lang.Object
    com.mindfusion.keyboard.Key
        com.mindfusion.keyboard.LayoutRingKey

 See Also