Class UIBuilder.Cell<C extends Component>

java.lang.Object
org.httprpc.sierra.UIBuilder.Cell<C>
Enclosing class:
UIBuilder

public static class UIBuilder.Cell<C extends Component> extends Object
Provides a fluent API for configuring a sub-component.
  • Method Details

    • getComponent

      public C getComponent()
      Returns the cell's component.
      Returns:
      The cell's component.
    • weightBy

      public UIBuilder.Cell<C> weightBy(double weight)
      Applies a weight value to a cell.
      Parameters:
      weight - The weight value.
      Returns:
      The cell instance.
    • with

      @SafeVarargs public final UIBuilder.Cell<C> with(Consumer<? super C>... consumers)
      Applies consumers to a cell's component.
      Parameters:
      consumers - The consumers to apply.
      Returns:
      The cell instance.