Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: PropertyViewFactory

[22:7] extends: FxObj

Wraps an AussomPropertyViewFactory (implements FXGL's PropertyViewFactory interface). The Java bridge is parameterised on Object / Node (raw generics) so any ObjectProperty value type and any Node view type work. Callback signatures: onMakeView(objectPropertyAjo) -> nodeAjo onPropertyChanged(objectPropertyAjo, nodeAjo) onViewChanged(objectPropertyAjo, nodeAjo) The onMakeView callback must return an AussomJavaObject around a javafx.scene.Node; null is treated as no view.

Methods

  • PropertyViewFactory ()

    Creates a new PropertyViewFactory bridge.

  • adopt (object Ajo)

    Wraps an existing factory AussomJavaObject.

    • @p Ajo is an AussomJavaObject around an AussomPropertyViewFactory.
    • @r A new wrapper.
  • onMakeView (callback Cb)

    Registers the makeView callback.

    • @p Cb is a callback (objectPropertyAjo) -> nodeAjo.
    • @r this object
  • onPropertyChanged (callback Cb)

    Registers the onPropertyChanged callback (fires when the underlying property updates and the view needs to follow).

    • @p Cb is a callback (objectPropertyAjo, nodeAjo) -> void.
    • @r this object
  • onViewChanged (callback Cb)

    Registers the onViewChanged callback (fires when the view updates and the property needs to follow).

    • @p Cb is a callback (objectPropertyAjo, nodeAjo) -> void.
    • @r this object