Gridarta Editor
net.sf.gridarta.gui.utils.TextComponentUtils Class Reference

Utility class for JTextComponent related functions. More...

+ Collaboration diagram for net.sf.gridarta.gui.utils.TextComponentUtils:

Static Public Member Functions

static void setActionNextFocus (@NotNull final JTextField textField, @NotNull final Component nextComponent)
 Transfers the focus to another component when ENTER is pressed. More...
 
static void setAutoSelectOnFocus (@NotNull final JTextComponent textComponent)
 Selects all text of a JTextComponent when the component gains the focus. More...
 

Private Member Functions

 TextComponentUtils ()
 Private constructor to prevent instantiation. More...
 

Detailed Description

Utility class for JTextComponent related functions.

Author
Andreas Kirschbaum

Definition at line 35 of file TextComponentUtils.java.

Constructor & Destructor Documentation

◆ TextComponentUtils()

net.sf.gridarta.gui.utils.TextComponentUtils.TextComponentUtils ( )
private

Private constructor to prevent instantiation.

Definition at line 40 of file TextComponentUtils.java.

Member Function Documentation

◆ setActionNextFocus()

static void net.sf.gridarta.gui.utils.TextComponentUtils.setActionNextFocus ( @NotNull final JTextField  textField,
@NotNull final Component  nextComponent 
)
static

Transfers the focus to another component when ENTER is pressed.

Parameters
textFieldthe text field to track
nextComponentthe component to transfer the focus to

Definition at line 70 of file TextComponentUtils.java.

Referenced by net.sf.gridarta.gui.dialog.golocation.GoLocationDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GoLocationDialog().

+ Here is the caller graph for this function:

◆ setAutoSelectOnFocus()


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