OpenFairyGUI API
    Preparing search index...

    Class Controller

    A controller manages component state through named pages.

    Controllers are the state-machine mechanism in FairyGUI. Display objects bind their properties to controllers via Gears, allowing different visual states per controller page.

    Hierarchy (View Summary)

    Index
    propertyType: CONTROLLER
    • Parameters

      • type: string
      • listener: EventListener<GraphNodeEvent>

      Returns this

    • Removes all inbound references to this object. At the end of the process the object is considered 'detached': it may hold references to child resources, but nothing holds references to it. A detached object may be re-attached.

      Returns this

    • Dispatches an event on the GraphNode, and on the associated Graph. Event types on the graph are prefixed, "node:[type]".

      Parameters

      • event: BaseEvent

      Returns this

    • Removes both inbound references to and outbound references from this object. At the end of the process the object holds no references, and nothing holds references to it. A disposed object is not reusable.

      Returns void

    • Returns true if the node has been permanently removed from the graph.

      Returns boolean

    • Parameters

      • type: string
      • listener: EventListener<GraphNodeEvent>

      Returns this