# UIToggleComponent.UIToggleComponent [← UIToggleComponent](index.md) · [← Master](../../wiki.md) Parça 1/2 · [sonraki](UIToggleComponent-2.md) UIToggleComponent() Method Summary All Methods Instance Methods Concrete Methods Modifier and Type Method and Description protected void applyProperty(UIContext context, java.lang.String key, GuiElement element) GuiElement create(Minecraft mc, UIContext context) void deserializeNBT(NBTTagCompound tag) void populateData(NBTTagCompound tag) void serializeNBT(NBTTagCompound tag) UIToggleComponent state(boolean state) Change component's toggled state. Methods inherited from class mchorse.mappet.api.ui.components.UILabelBaseComponent apply, color, color, getLabel, label Methods inherited from class mchorse.mappet.api.ui.components.UIComponent anchor, anchor, anchorX, anchorY, applyKeybinds, change, clearChanges, context, context, createContext, enabled, getChanges, getChildComponents, getDefaultUpdateDelay, h, handleChanges, id, isDataReserved, keybind, keybind, keybind, keybind, margin, marginBottom, marginLeft, marginRight, marginTop, resetContext, rh, rh, rw, rw, rwh, rx, rx, rxy, ry, ry, serializeNBT, tooltip, tooltip, updateDelay, visible, w, wh, x, xy, y Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Field Detail state public boolean state Constructor Detail UIToggleComponent public UIToggleComponent() Method Detail state public UIToggleComponent state(boolean state) Change component's toggled state. // Assuming that uiContext is a IMappetUIContext uiContext.get("toggle").state(true); applyProperty protected void applyProperty(UIContext context, java.lang.String key, GuiElement element) Overrides: