java.lang.Object
com.realtime.crossfire.jxclient.skin.skin.Dialogs
All Implemented Interfaces:
Iterable<Gui>

public class Dialogs extends Object implements Iterable<Gui>
Maintains a set of Gui instances representing dialog windows. These dialogs can be looked up by name. Also maintains a set of dialogs pending loading.
  • Constructor Details

    • Dialogs

      public Dialogs(@NotNull @NotNull GuiFactory guiFactory, @NotNull @NotNull GuiManager guiManager)
      Creates a new instance.
      Parameters:
      guiFactory - the gui factory for creating gui instances
      guiManager - the GUI manager to add dialogs to
  • Method Details

    • lookup

      @NotNull public @NotNull Gui lookup(@NotNull @NotNull String name) throws JXCSkinException
      Returns a dialog instance by dialog name.
      Parameters:
      name - the dialog name
      Returns:
      the dialog instance
      Throws:
      JXCSkinException - if the dialog does not exist
    • addDialog

      public void addDialog(@NotNull @NotNull String name)
      Creates a new dialog instance.
      Parameters:
      name - the dialog's name
    • getDialogToLoad

      @Nullable public @Nullable String getDialogToLoad()
      Returns one dialog pending loading. Each dialog is returned only once.
      Returns:
      a dialog pending loading or null
    • iterator

      @NotNull public @NotNull Iterator<Gui> iterator()
      Specified by:
      iterator in interface Iterable<Gui>