← 返回首页
InputWidget (SciJava Javadocs 0-SNAPSHOT API)
JavaScript is disabled on your browser.
org.scijava.widget

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.
      • supports

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

Copyright © 2015–2022 SciJava. All rights reserved.