Interface InputWidget<T,​W>

    • Method Detail

      • updateModel

        void updateModel()
        Updates the model to reflect the latest widget state.
      • getValue

        T getValue()
        Gets the current widget value.
      • refreshWidget

        void refreshWidget()
        Refreshes the widget to reflect the latest model value(s).
      • isLabeled

        default boolean isLabeled()
        Returns true iff the widget should be labeled with the parameter label. Most widgets are labeled this way, though some may not be; e.g., MessageWidgets.
        See Also:
        WidgetModel.getWidgetLabel()
      • isMessage

        default boolean isMessage()
        Returns true iff the widget should be considered a read-only "message" rather than a bidirectional input widget. The InputPanel.isMessageOnly() method will return true iff this method returns true for all of its widgets.
      • set

        void set​(WidgetModel model)
        Initializes the widget to use the given widget model. Once initialized, the widget's UI pane will be accessible via UIComponent.getComponent().
        Specified by:
        set in interface WrapperPlugin<T>
        Parameters:
        model - The data object to associate with the plugin.
      • supports

        default boolean supports​(WidgetModel model)
        Gets whether this widget would be appropriate for the given model.
        Specified by:
        supports in interface Typed<T>
      • getType

        default Class<WidgetModel> getType()
        Description copied from interface: Typed
        Gets the type associated with the object.
        Specified by:
        getType in interface Typed<T>