Interface IGuiComponent<G>

Type Parameters:
G - is the type of the GUI a IGuiComponent can belong to.
All Known Subinterfaces:
IControlParent, ILayer<L>
All Known Implementing Classes:
ControlParent, Layer

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

    • belongsToGui

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

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