Container#

public class Container#

The base class of canvases and panels, which other objects can be added to.

Base class: Object
Derived classes: Canvas, Panel
Panel addPanel(boolean visible)#

Add a panel to this object.

Parameters:
  • visible (boolean) – Whether the new panel is visible.

Text addText(String content, boolean visible)#

Add text to this object.

Parameters:
  • content (String) – The text.

  • visible (boolean) – Whether the text is visible.

InputField addInputField(boolean visible)#

Add an input field to this object.

Parameters:
  • visible (boolean) – Whether the input field is visible.

Button addButton(String content, boolean visible)#

Add a button to this object.

Parameters:
  • content (String) – The label for the button.

  • visible (boolean) – Whether the button is visible.

Toggle addToggle(String content, boolean visible)#

Add a toggle to this object.

Parameters:
  • content (String) – The label for the toggle.

  • visible (boolean) – Whether the toggle is visible.

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.

Slider addSlider(boolean vertical, boolean visible)#

Add a slider to this object.

Parameters:
  • vertical (boolean) – Whether the slider runs from bottom to top, rather than from left to right.

  • visible (boolean) – Whether the slider is visible.

Dropdown addDropdown(boolean visible)#

Add a dropdown to this object.

Parameters:
  • visible (boolean) – Whether the dropdown is visible.

Image addImage(boolean visible)#

Add an image to this object.

Parameters:
  • visible (boolean) – Whether the image is visible.

ScrollView addScrollView(boolean visible)#

Add a scroll view to this object.

Parameters:
  • visible (boolean) – Whether the scroll view is visible.