Class SimpleBuiltWidget.AbstractState<W extends SimpleBuiltWidget>

java.lang.Object
dev.pfaff.altargui.WidgetInstance<W>
dev.pfaff.altargui.element.SingleChildWidgetInstance<W>
dev.pfaff.altargui.widgets.SimpleBuiltWidget.AbstractState<W>
All Implemented Interfaces:
IElement
Direct Known Subclasses:
SimpleBuiltWidget.State
Enclosing interface:
SimpleBuiltWidget

public abstract static class SimpleBuiltWidget.AbstractState<W extends SimpleBuiltWidget> extends SingleChildWidgetInstance<W>
  • Constructor Details

  • Method Details

    • update

      protected abstract boolean update(W widget)
      Returns:
      true if the widget has changed, false otherwise.
    • configure

      public void configure(StateContext stateContext, W widget, boolean init)
      Description copied from class: WidgetInstance
      Configures the instance's state according to the inputs in the specified widget.

      Other initialization might be done if init is true.

      Specified by:
      configure in class WidgetInstance<W extends SimpleBuiltWidget>