Interface WidgetInstance

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    DefaultWidgetInstance

    public interface WidgetInstance
    extends java.io.Serializable
    Represents an instance of a widget in the view. There can be more than one widget instance for a single widget.
    • Method Detail

      • getModel

        java.lang.Object getModel()
        Returns:
        The widget model for this instance
      • getPositionInfo

        java.lang.String getPositionInfo()
        A string with position info. Can be used e.g. by a container renderer to render a child widget at a defined place.
      • getId

        java.lang.String getId()
        Returns:
        The id of this instance, usually the id of the Widget plus a suffix.
      • getSelectedChildIndex

        int getSelectedChildIndex()
      • setSelectedChildIndex

        void setSelectedChildIndex​(int index)
      • getWidget

        Widget getWidget()
        Returns:
        The corresponding Widget.
      • getCreator

        java.lang.Object getCreator()
        Returns:
        The object which triggered the instance creation.
      • getTemplateRoot

        WidgetInstance getTemplateRoot()
        Returns:
        The template ancestor instance, if existing or null otherwise.