All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.lessvoid.nifty.controls.label.builder.LabelBuilder Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.nifty.controls.label.builder;

import de.lessvoid.nifty.builder.ControlBuilder;

import javax.annotation.Nonnull;

public class LabelBuilder extends ControlBuilder {
  public LabelBuilder() {
    super("label");
  }

  public LabelBuilder(@Nonnull final String id) {
    super(id, "label");
  }

  public LabelBuilder(@Nonnull final String id, @Nonnull final String text) {
    super(id, "label");
    text(text);
  }

  public void label(@Nonnull final String label) {
    text(label);
  }

  public void wrap(final boolean enabled) {
    set("wrap", Boolean.toString(enabled));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy