java.lang.Objectcom.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory
public class CheckBoxFactory
A factory class to create "checkbox" instances.
| Field Summary | |
|---|---|
private java.awt.image.BufferedImage |
checked
The image for the "checked" state. |
private java.awt.Color |
color
The text color. |
private java.awt.Font |
font
The font to use. |
private java.awt.image.BufferedImage |
unchecked
The image for the "unchecked" state. |
| Constructor Summary | |
|---|---|
CheckBoxFactory(java.awt.image.BufferedImage checked,
java.awt.image.BufferedImage unchecked,
java.awt.Font font,
java.awt.Color color)
Create a new instance. |
|
| Method Summary | |
|---|---|
GUIElement |
newCheckBox(TooltipManager tooltipManager,
GUIElementListener elementListener,
java.lang.String name,
Extent extent,
CheckBoxOption option,
java.lang.String text)
Create a new checkbox. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private final java.awt.image.BufferedImage checked
@NotNull private final java.awt.Color color
@NotNull private final java.awt.Font font
@NotNull private final java.awt.image.BufferedImage unchecked
| Constructor Detail |
|---|
public CheckBoxFactory(@NotNull
java.awt.image.BufferedImage checked,
@NotNull
java.awt.image.BufferedImage unchecked,
@NotNull
java.awt.Font font,
@NotNull
java.awt.Color color)
checked - The image for the "checked" state.unchecked - The image for the "unchecked" state.font - The font to use.color - The text color.| Method Detail |
|---|
@NotNull
public GUIElement newCheckBox(@NotNull
TooltipManager tooltipManager,
@NotNull
GUIElementListener elementListener,
@NotNull
java.lang.String name,
@NotNull
Extent extent,
@NotNull
CheckBoxOption option,
@NotNull
java.lang.String text)
tooltipManager - the tooltip manager to updateelementListener - the element listener to notifyname - The name of this element.extent - the extent of this elementoption - The option to affect.text - The button text.