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

Public Member Functions

boolean canExecute ()
 
void execute ()
 
 ScrollResetCommand (@NotNull final GUIScrollable scrollable)
 

Private Attributes

final GUIScrollable scrollable
 

Detailed Description

A GUICommand which resets the scroll position of a GUIScrollable.

Author
Andreas Kirschbaum

Definition at line 34 of file ScrollResetCommand.java.

Constructor & Destructor Documentation

◆ ScrollResetCommand()

com.realtime.crossfire.jxclient.gui.commands.ScrollResetCommand.ScrollResetCommand ( @NotNull final GUIScrollable  scrollable)

Creates a new instance.

Parameters
scrollablethe scrollable gui element to reset

Definition at line 46 of file ScrollResetCommand.java.

References com.realtime.crossfire.jxclient.gui.commands.ScrollResetCommand.scrollable.

Member Function Documentation

◆ canExecute()

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

◆ execute()

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

Executes the command. Does nothing if called while canExecute() returns

false

.

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

Definition at line 56 of file ScrollResetCommand.java.

References com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable.resetScroll(), and com.realtime.crossfire.jxclient.gui.commands.ScrollResetCommand.scrollable.

Here is the call graph for this function:

Member Data Documentation

◆ scrollable

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

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