Class CheckBoxFactory

java.lang.Object
com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory

public class CheckBoxFactory extends Object
A factory class to create "checkbox" instances.
  • Constructor Details

    • CheckBoxFactory

      public CheckBoxFactory(@NotNull @NotNull BufferedImage checked, @NotNull @NotNull BufferedImage unchecked, @NotNull @NotNull Font font, @NotNull @NotNull Color color, @NotNull @NotNull GuiFactory guiFactory)
      Creates a new instance.
      Parameters:
      checked - the image for the "checked" state
      unchecked - the image for the "unchecked" state
      font - the font to use
      color - the text color
      guiFactory - the global GUI factory instance
  • Method Details

    • newCheckBox

      @NotNull public @NotNull AbstractGUIElement newCheckBox(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull String name, @NotNull @NotNull CheckBoxOption option, @NotNull @NotNull String text)
      Creates a new checkbox.
      Parameters:
      tooltipManager - the tooltip manager to update
      elementListener - the element listener to notify
      name - the name of this element
      option - the option to affect
      text - the button text
      Returns:
      the new checkbox