 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.commands;
28 import org.jetbrains.annotations.NotNull;
58 public void execute(@NotNull
final String args) {
59 if (!args.isEmpty()) {
77 final StringBuilder sb =
new StringBuilder();
78 sb.append(
"Clears the contents of the Messages window.\n");
80 sb.append(
"Usage: clear\n");
82 sb.append(
"Clear all text messages shown in the Messages window.\n");
Implements the command "clear".
String getHelp()
Returns the help text for this command.
Adds encoding/decoding of crossfire protocol packets to a ServerConnection.
Abstract base class for Command implementations.
final JXCWindowRenderer windowRenderer
The JXCWindowRenderer to affect.
void execute(@NotNull final String args)
Executes the command with the given arguments.
void drawInfoError(@NotNull final String message)
Displays an error message.
Manages the contents of the contents of a log window.
Renders a Gui instance into a Frame.
boolean allArguments()
Returns whether all remaining commands should be included as arguments.
final CrossfireServerConnection crossfireServerConnection
The connection instance.
void clear()
Clears all lines from the buffer.
Buffer getActiveMessageBuffer()
Returns the active message buffer.
ClearCommand(@NotNull final JXCWindowRenderer windowRenderer, @NotNull final CrossfireServerConnection crossfireServerConnection)
Creates a new instance.