Class/Object

net.sf.jguiraffe.gui.platform.javafx.builder.components.table

CellComponentManager

Related Docs: object CellComponentManager | package table

Permalink

class CellComponentManager extends AnyRef

A class for managing a set of components to be used as renderers for a table cell.

The API of the JGUIraffe library allows that the display of a column in a table is defined using a renderer form. In contrast to the Swing-specific implementation (where the content of this form can simply be used as renderer component), in JavaFX this is not trivial to achieve. Here the main problem is that components (Nodes) may appear only once in the scene graph. Therefore, affected components have to be created multiple times - once for each existing table cell.

This class implements a solution for this problem. It works as follows: $ - A special proxy implementation for the ComponentManager interface is provided. Such a proxy is installed when a new form context for a column form is opened. $ - The special ComponentManager creates special ComponentHandler objects which are not associated with a specific control, but dynamically delegate to another handler based on the currently active table cell. $ - When a new cell is created, this object is asked to replay the body of the tag which has created the form context for a column. This time, the original ComponentManager is used; so the actual UI for this specific cell is created. $ - When the cell needs access to its data it ensures that it is selected as the active cell. Thus, the special ComponentHandler objects know from where to access the actual data.

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

Instance Constructors

  1. new CellComponentManager(tag: ContainerTag, form: Form)

    Permalink

    tag

    the tag that created the form context controlled by this object

    form

    the form for the current column

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. val form: Form

    Permalink

    the form for the current column

  10. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def installComponentManagerProxy(tag: Tag): ComponentManager

    Permalink

    Installs a special ComponentManager proxy implementation for the current builder.

    Installs a special ComponentManager proxy implementation for the current builder. This manager is used for executing the tags in a special sub form context.

    tag

    the current tag opening the sub form context

    returns

    the newly installed component manager

  13. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  17. def registerCell(cell: AnyRef): Node

    Permalink

    Registers a new cell at this manager.

    Registers a new cell at this manager. This causes the body of the test tag to be executed again which creates a new form and a new UI. The form is associated with the passed in cell object. Thus it is accessed from the form representing the column whenever this cell is selected. The root component of the UI is returned.

    cell

    the cell to be registered

    returns

    the UI created during the tag execution

  18. def selectCell(cell: AnyRef): Unit

    Permalink

    Selects the specified cell.

    Selects the specified cell. This determines the form associated with this cell. It is filled with the current data values provided by the component handler proxies via the initFieldData() method.

    cell

    the cell to be selected

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. val tag: ContainerTag

    Permalink

    the tag that created the form context controlled by this object

  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped