 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.list;
37 import java.awt.Image;
38 import org.jetbrains.annotations.NotNull;
39 import org.jetbrains.annotations.Nullable;
149 public GUIMetaElementList(@NotNull
final TooltipManager tooltipManager, @NotNull
final GUIElementListener elementListener, @NotNull
final String
name,
final int cellWidth,
final int cellHeight, @NotNull
final MetaserverModel metaserverModel, @Nullable
final Image
image, @NotNull
final Font
font, @NotNull
final String
format, @NotNull
final String
tooltip, @Nullable
final GUIText hostname, @Nullable
final AbstractLabel comment, @NotNull
final CommandList connectCommandList, @NotNull
final GuiFactory guiFactory) {
150 super(
tooltipManager,
elementListener,
name, cellWidth,
cellHeight,
new MetaElementCellRenderer(
new GUIMetaElement(
tooltipManager,
elementListener,
metaserverModel,
name+
"_template",
image,
font, 0,
format,
tooltip,
guiFactory)), connectCommandList,
guiFactory);
183 synchronized (getTreeLock()) {
186 if (oldSize < newSize) {
187 for (
int i = oldSize; i < newSize; i++) {
193 for (
int i = newSize; i < oldSize; i++) {
207 if (selectedIndex == -1) {
237 if (index == -1 &&
hostname !=
null) {
Abstract base class for text input fields.
Represents a response line from the metaserver.
A GUIElement that displays a list of entries.
String format(@NotNull final String format)
Returns a formatted string using the given format.
Abstract base class for all label classes.
String getHostname()
Returns the hostname.
int resizeElements(final int newSize)
Changes the number of list elements.
final int cellHeight
The height of a list cell in pixels.
void addElement( @NotNull final T element)
Adds an GUIElement to the list.
void setText(@NotNull final String text)
Sets the label text.
String getComment()
Returns the server comment.
Factory for creating Gui instances.
A list of GUICommand instances.
void setText(@NotNull final String text)
Sets the entered text.
Interface for listeners on metaserver entry related events.
void setSelectedIndex(final int newIndex)
Update the selected list entry.
Listener for GUIElement related events.