.. default-domain:: java .. highlight:: java .. package:: krpc.client.services.UI Container ========= .. type:: public class Container The base class of canvases and panels, which other objects can be added to. | Base class: :type:`Object` | Derived classes: :type:`Canvas`, :type:`Panel` .. container:: inherited-members .. rubric:: Inherited Members * From :type:`Object`: :meth:`getRectTransform `, :meth:`getLayoutElement `, :meth:`getVisible `, :meth:`setVisible `, :meth:`remove ` .. method:: Panel addPanel(boolean visible) Add a panel to this object. :param boolean visible: Whether the new panel is visible. .. method:: Text addText(String content, boolean visible) Add text to this object. :param String content: The text. :param boolean visible: Whether the text is visible. .. method:: InputField addInputField(boolean visible) Add an input field to this object. :param boolean visible: Whether the input field is visible. .. method:: Button addButton(String content, boolean visible) Add a button to this object. :param String content: The label for the button. :param boolean visible: Whether the button is visible. .. method:: Toggle addToggle(String content, boolean visible) Add a toggle to this object. :param String content: The label for the toggle. :param boolean visible: Whether the toggle is visible. .. method:: ToggleGroup addToggleGroup() Add a toggle group to this object, to make a set of toggles into radio buttons. .. note:: The group is not drawn and does not take up any space. The toggles that belong to it can be added anywhere. .. method:: Slider addSlider(boolean vertical, boolean visible) Add a slider to this object. :param boolean vertical: Whether the slider runs from bottom to top, rather than from left to right. :param boolean visible: Whether the slider is visible. .. method:: Dropdown addDropdown(boolean visible) Add a dropdown to this object. :param boolean visible: Whether the dropdown is visible. .. method:: Image addImage(boolean visible) Add an image to this object. :param boolean visible: Whether the image is visible. .. method:: ScrollView addScrollView(boolean visible) Add a scroll view to this object. :param boolean visible: Whether the scroll view is visible.