Interface GuiComponent<G>

Type Parameters:
G - the type of the GUI a GuiComponent can belong to.
All Known Subinterfaces:
Control<C,S>, IAccordion, IButton, ICheckbox, IComponent, IContainer<C,S>, IControlParent, IDropdownMenu, IGrid, IHorizontalStack, IImageControl, IItemMenu<M,S>, ILabel, ILayer, ILinearContainer<C,S>, ILink, ISingleContainer, ITabContainer, ITextbox, IUploader, IValidationLabel, IVerticalStack
All Known Implementing Classes:
AbstractContainer, AbstractControl, AbstractItemMenu, AbstractLinearContainer, Button, Component, ComponentWithAdapterFactory, ControlParent, DropdownMenu, FloatContainer, Grid, HorizontalStack, ImageControl, Label, Layer, Link, SingleContainer, TabContainer, Textbox, Uploader, ValidationLabel, VerticalStack

public interface GuiComponent<G>
A GuiComponent can belong to a GUI.
Author:
Silvan Wyss
  • Method Details

    • belongsToGui

      boolean belongsToGui()
      Returns:
      true if the current GuiComponent belongs to a GUI, false otherwise.
    • getStoredParentGui

      G getStoredParentGui()
      Returns:
      the GUI of the current GuiComponent.
      Throws:
      RuntimeException - if the current GuiComponent does not belong to a GUI.