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

Public Member Functions

boolean canExecute ()
 
void execute ()
 
 ScrollCommand (final int distance, @NotNull final GUIScrollable scrollable)
 

Private Attributes

final int distance
 
final GUIScrollable scrollable
 

Detailed Description

A GUICommand which scrolls a GUIScrollable gui element by a given distance.

Author
Andreas Kirschbaum

Definition at line 34 of file ScrollCommand.java.

Constructor & Destructor Documentation

◆ ScrollCommand()

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

Creates a new instance.

Parameters
distancethe distance to scroll
scrollablethe scrollable element

Definition at line 52 of file ScrollCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.ScrollCommand.distance, and com.realtime.crossfire.jxclient.gui.commands.ScrollCommand.scrollable.

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.commands.ScrollCommand.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 58 of file ScrollCommand.java.

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

Here is the call graph for this function:

◆ execute()

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

Member Data Documentation

◆ distance

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

◆ scrollable

final GUIScrollable com.realtime.crossfire.jxclient.gui.commands.ScrollCommand.scrollable
private

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