Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand Class Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand:
Collaboration graph

Public Member Functions

boolean canExecute ()
 
void execute ()
 
 ScrollListCommand (@NotNull final GUIScrollable list, final int distance)
 

Private Attributes

final int distance
 
final GUIScrollable list
 

Detailed Description

A GUICommand which scrolls a GUIScrollable instance.

Author
Andreas Kirschbaum

Definition at line 33 of file ScrollListCommand.java.

Constructor & Destructor Documentation

◆ ScrollListCommand()

com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.ScrollListCommand ( @NotNull final GUIScrollable  list,
final int  distance 
)

Creates a new instance.

Parameters
listthe list to scroll
distancethe distance to scroll

Definition at line 51 of file ScrollListCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.distance, and com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.list.

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.canExecute ( )

Returns whether this command may be executed.

Returns
whether this command may be executed

Implements com.realtime.crossfire.jxclient.gui.commandlist.GUICommand.

Definition at line 57 of file ScrollListCommand.java.

References com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable.canScroll(), com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.distance, and com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.list.

Here is the call graph for this function:

◆ execute()

void com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.execute ( )

Member Data Documentation

◆ distance

final int com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.distance
private

◆ list

final GUIScrollable com.realtime.crossfire.jxclient.gui.commands.ScrollListCommand.list
private

The documentation for this class was generated from the following file: