Class FocusModel

    • Field Detail

      • FOCUS_PROPERTY

        public static final java.lang.String FOCUS_PROPERTY
        The FocusModel fires PropertyChangeEvents when the focused part changes. This is the name of the property that is delivered with the event.
        See Also:
        setFocus(IContentPart), Constant Field Values
    • Method Detail

      • dispose

        public void dispose()
        Specified by:
        dispose in interface IDisposable
        Since:
        1.1
      • focusProperty

        public javafx.beans.property.ObjectProperty<IContentPart<? extends javafx.scene.Node>> focusProperty()
        Returns an object property providing the currently focused IContentPart.
        Returns:
        An object property named FOCUS_PROPERTY.
      • getFocus

        public IContentPart<? extends javafx.scene.Node> getFocus()
        Returns the IContentPart which has keyboard focus, or null if no IContentPart currently has keyboard focus.
        Returns:
        the IContentPart which has keyboard focus, or null
      • setFocus

        public void setFocus​(IContentPart<? extends javafx.scene.Node> focusPart)
        Selects the given IContentPart as the focus part. Note that setting the focus part does not assign keyboard focus to the part.
        Parameters:
        focusPart - The IContentPart which should become the new focus part.