Class CheckBoxFactory
java.lang.Object
com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory
A factory class to create "checkbox" instances.
-
Constructor Summary
ConstructorsConstructorDescriptionCheckBoxFactory(@NotNull BufferedImage checked, @NotNull BufferedImage unchecked, @NotNull Font font, @NotNull Color color, @NotNull GuiFactory guiFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription@NotNull AbstractGUIElementnewCheckBox(@NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull String name, @NotNull CheckBoxOption option, @NotNull String text) Creates a new checkbox.
-
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" stateunchecked- the image for the "unchecked" statefont- the font to usecolor- the text colorguiFactory- 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 updateelementListener- the element listener to notifyname- the name of this elementoption- the option to affecttext- the button text- Returns:
- the new checkbox
-