Modifier and Type | Field and Description |
---|---|
private JXCSkinCache<Gui> |
dialogs
The existing dialogs.
|
private java.util.Collection<java.lang.String> |
dialogsToLoad
Names of pending skin files.
|
private GuiFactory |
guiFactory
The
GuiFactory for creating new Gui instances. |
private GuiManager |
guiManager
The
GuiManager to add dialogs to. |
Constructor and Description |
---|
Dialogs(GuiFactory guiFactory,
GuiManager guiManager)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Gui |
addDialog(java.lang.String name)
Creates a new dialog instance.
|
java.lang.String |
getDialogToLoad()
Returns one dialog pending loading.
|
java.util.Iterator<Gui> |
iterator() |
Gui |
lookup(java.lang.String name)
Returns a dialog instance by dialog name.
|
@NotNull private final JXCSkinCache<Gui> dialogs
@NotNull private final java.util.Collection<java.lang.String> dialogsToLoad
@NotNull private final GuiFactory guiFactory
GuiFactory
for creating new Gui
instances.@NotNull private final GuiManager guiManager
GuiManager
to add dialogs to.public Dialogs(@NotNull GuiFactory guiFactory, @NotNull GuiManager guiManager)
guiFactory
- the gui factory for creating gui instancesguiManager
- the GUI manager to add dialogs to@NotNull public Gui addDialog(@NotNull java.lang.String name)
name
- the dialog's name@Nullable public java.lang.String getDialogToLoad()
null
@NotNull public java.util.Iterator<Gui> iterator()
iterator
in interface java.lang.Iterable<Gui>
@NotNull public Gui lookup(@NotNull java.lang.String name) throws JXCSkinException
name
- the dialog nameJXCSkinException
- if the dialog does not exist