22 package com.realtime.crossfire.jxclient.gui.commands;
27 import java.awt.Component;
28 import org.jetbrains.annotations.NotNull;
51 target.setVisible(
true);
Interface defining an abstract GUI element.
boolean canExecute()
Returns whether this command may be executed.whether this command may be executed ...
A GUICommand which shows a target GUIElement.
void execute()
Executes the command.Does nothing if called while canExecute() returnsfalse .
final Runnable executeRunnable
The Runnable that implements the functionality of execute().
Utility class for Swing related functions.
ShowCommand(@NotNull final Component target)
Creates a new instance.
final Component target
The gui element to show.
static void invokeAndWait(@NotNull final Runnable runnable)
Calls SwingUtilities#invokeAndWait(Runnable) if not on the EDT or calls the Runnable directly if on t...