- All Superinterfaces:
Iterable<Gui>
- All Known Implementing Classes:
DefaultJXCSkin
Defines a JXClient skin consisting of a main
Gui and zero or more
dialog
Guis.
-
Method Summary
void
Attaches this skin to a gui manager.
void
Frees all allocated resources.
Returns a named command list.
Returns the names of all named command lists.
Returns the default key bindings for this skin.
Returns a dialog by name.
Returns the popup dialog for readables.
Returns the "connection in progress" dialog.
Returns the "disconnect from server?" dialog.
Returns the key bindings dialog.
Returns the dialog for query text input.
Returns the "really quit?" dialog.
Returns the maximal resolution of this skin.
Returns the server selection window.
Returns the minimal resolution of this skin.
Returns a short name for the skin.
Returns the start window.
Returns all gui instances of this skin.
-
Method Details
-
getSkinName
@NotNull
@NotNull String getSkinName()
Returns a short name for the skin. It is used to construct path or file
names.
- Returns:
- the skin name
-
getMinResolution
Returns the minimal resolution of this skin.
- Returns:
- the minimal resolution
-
getMaxResolution
Returns the maximal resolution of this skin.
- Returns:
- the maximal resolution
-
iterator
Returns all gui instances of this skin. The instances have no defined
order.
- Specified by:
iterator in interface Iterable<Gui>
- Returns:
- an iterator returning all gui instances
-
getDialogQuit
@Nullable
@Nullable Gui getDialogQuit()
Returns the "really quit?" dialog. It is opened when the user presses
ESCAPE.
- Returns:
- the dialog or
null if the dialog does not exist
-
getDialogDisconnect
@Nullable
@Nullable Gui getDialogDisconnect()
Returns the "disconnect from server?" dialog. It is opened when the user
presses ESCAPE.
- Returns:
- the dialog or
null if the dialog does not exist
-
getDialogConnect
@Nullable
@Nullable Gui getDialogConnect()
Returns the "connection in progress" dialog. It is opened while the
connection establishment is in progress.
- Returns:
- the dialog or
null if the dialog does not exist
-
getDialogKeyBind
@NotNull
@NotNull Gui getDialogKeyBind()
Returns the key bindings dialog.
- Returns:
- the dialog
-
getDialogQuery
@NotNull
@NotNull Gui getDialogQuery()
Returns the dialog for query text input.
- Returns:
- the dialog
-
getDialogBook
@NotNull
@NotNull Gui getDialogBook(int bookNo)
Returns the popup dialog for readables.
- Parameters:
bookNo - the book ID
- Returns:
- the dialog
-
getMainInterface
@NotNull
@NotNull Gui getMainInterface()
Returns the main window.
- Returns:
- the dialog
-
-
getStartInterface
@NotNull
@NotNull Gui getStartInterface()
Returns the start window.
- Returns:
- the dialog
-
getDialog
Returns a dialog by name.
- Parameters:
name - the dialog's name
- Returns:
- the dialog
- Throws:
JXCSkinException - if the dialog does not exist
-
getCommandList
Returns a named command list.
- Parameters:
name - the name of the command list
- Returns:
- the command list
- Throws:
JXCSkinException - if the command list does not exist
-
getCommandListNames
Returns the names of all named command lists.
- Returns:
- the names in alphabetical order
-
getDefaultKeyBindings
Returns the default key bindings for this skin.
- Returns:
- the default key bindings
-
-
detach
void detach()
Frees all allocated resources.
-