Class/Object

net.sf.jguiraffe.gui.platform.javafx.common

ToolTipCreationCallBack

Related Docs: object ToolTipCreationCallBack | package common

Permalink

class ToolTipCreationCallBack extends ComponentBuilderCallBack

An internally used helper class for creating the tool tips of controls constructed during a builder operation.

A builder typically runs in a background thread so that the UI is not blocked. This causes problems with Java FX tool tips which can only be created in the Java FX thread. Therefore, the Java FX-specific implementation of the ComponentManager interface does not create and assign tool tips directly. Rather, a task object is created which collects all requests for creating tool tips. After the build operation this task is run as a ComponentBuilderCallBack and handles the initialization of tool tips in the Java FX thread.

If tool tips are involved, an instance of this class is created on demand and stored in the current Jelly context. (This is safe from a threading aspect because the Jelly context is assigned to a single build operation only.) The companion object provides a method for easily obtaining the instance for the current Jelly context. It performs all necessary one-time initialization. Requests for new tool tips can be added to an instance obtained this way.

Linear Supertypes
ComponentBuilderCallBack, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ToolTipCreationCallBack
  2. ComponentBuilderCallBack
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ToolTipCreationCallBack(toolTipFactory: ToolTipFactory)

    Permalink

    toolTipFactory

    the factory for tool tips

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addCreateToolTipRequest(prop: ObjectProperty[Tooltip], text: String): Unit

    Permalink

    Adds a request for creating a tool tip for the specified tool tip property.

    Adds a request for creating a tool tip for the specified tool tip property.

    prop

    the property in which to store the tool tip

    text

    the text of the tool tip

  5. def addCreateToolTipRequest(ctrl: Control, text: String): Unit

    Permalink

    Adds a request for creating a tool tip for the specified control.

    Adds a request for creating a tool tip for the specified control.

    ctrl

    the control

    text

    the text of the tool tip

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def callBack(data: ComponentBuilderData, param: Any): Unit

    Permalink

    <invalid inheritdoc annotation> This implementation starts the initialization of tool tips asynchronously in the Java FX thread.

    <invalid inheritdoc annotation> This implementation starts the initialization of tool tips asynchronously in the Java FX thread.

    Definition Classes
    ToolTipCreationCallBack → ComponentBuilderCallBack
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. val toolTipFactory: ToolTipFactory

    Permalink

    the factory for tool tips

  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ComponentBuilderCallBack

Inherited from AnyRef

Inherited from Any

Ungrouped