Class CheckBoxFactory
- java.lang.Object
-
- com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory
-
public class CheckBoxFactory extends java.lang.ObjectA factory class to create "checkbox" instances.
-
-
Constructor Summary
Constructors Constructor Description CheckBoxFactory(@NotNull java.awt.image.BufferedImage checked, @NotNull java.awt.image.BufferedImage unchecked, @NotNull java.awt.Font font, @NotNull java.awt.Color color, @NotNull GuiFactory guiFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull AbstractGUIElementnewCheckBox(@NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.lang.String name, @NotNull CheckBoxOption option, @NotNull java.lang.String text)Creates a new checkbox.
-
-
-
Constructor Detail
-
CheckBoxFactory
public CheckBoxFactory(@NotNull @NotNull java.awt.image.BufferedImage checked, @NotNull @NotNull java.awt.image.BufferedImage unchecked, @NotNull @NotNull java.awt.Font font, @NotNull @NotNull java.awt.Color color, @NotNull @NotNull GuiFactory guiFactory)Creates a new instance.- Parameters:
checked- the image for the "checked" stateunchecked- the image for the "unchecked" statefont- the font to usecolor- the text colorguiFactory- the global GUI factory instance
-
-
Method Detail
-
newCheckBox
@NotNull public @NotNull AbstractGUIElement newCheckBox(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull java.lang.String name, @NotNull @NotNull CheckBoxOption option, @NotNull @NotNull java.lang.String text)
Creates a new checkbox.- Parameters:
tooltipManager- the tooltip manager to updateelementListener- the element listener to notifyname- the name of this elementoption- the option to affecttext- the button text- Returns:
- the new checkbox
-
-