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

Public Member Functions

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

Private Attributes

final int distance
 
final GUIScrollable scrollable
 

Detailed Description

A GUICommand which scrolls a target GUIScrollable gui element if executed but always reports that scrolling is not possible.

Author
Andreas Kirschbaum

Definition at line 34 of file ScrollNeverCommand.java.

Constructor & Destructor Documentation

◆ ScrollNeverCommand()

com.realtime.crossfire.jxclient.gui.commands.ScrollNeverCommand.ScrollNeverCommand ( 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 ScrollNeverCommand.java.

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

Member Function Documentation

◆ canExecute()

boolean com.realtime.crossfire.jxclient.gui.commands.ScrollNeverCommand.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 ScrollNeverCommand.java.

◆ execute()

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

Member Data Documentation

◆ distance

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

◆ scrollable

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

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