00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 package com.realtime.crossfire.jxclient.gui.textinput;
00023
00024 import com.realtime.crossfire.jxclient.gui.commandlist.CommandList;
00025 import com.realtime.crossfire.jxclient.gui.gui.GUIElementListener;
00026 import com.realtime.crossfire.jxclient.gui.gui.TooltipManager;
00027 import java.awt.Color;
00028 import java.awt.Font;
00029 import java.awt.Image;
00030 import org.jetbrains.annotations.NotNull;
00031
00037 public class GUITextField extends GUIText {
00038
00042 private static final long serialVersionUID = 1;
00043
00047 @NotNull
00048 private final CommandList commandList;
00049
00068 public GUITextField(@NotNull final CommandCallback commandCallback, @NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final Image activeImage, @NotNull final Image inactiveImage, @NotNull final Font font, @NotNull final Color inactiveColor, @NotNull final Color activeColor, final int margin, @NotNull final String text, @NotNull final CommandList commandList, final boolean enableHistory) {
00069 super(commandCallback, tooltipManager, elementListener, name, activeImage, inactiveImage, font, inactiveColor, activeColor, margin, text, enableHistory);
00070 this.commandList = commandList;
00071 }
00072
00076 @Override
00077 protected void execute(@NotNull final String command) {
00078 commandList.execute();
00079 }
00080
00081 }