Gridarta Editor
net.sf.gridarta.gui.data.NamedObjectsUtils Class Reference

Utility class for NamedObjects related functions. More...

+ Collaboration diagram for net.sf.gridarta.gui.data.NamedObjectsUtils:

Static Public Member Functions

static< E extends NamedObject > String showNodeChooserDialog (@NotNull final Component parentComponent, @NotNull final String initial, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final NamedObjects< E > namedObjects)
 Show a dialog for choosing from the object tree. More...
 

Private Member Functions

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

Static Private Attributes

static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
 The ActionBuilder. More...
 

Detailed Description

Utility class for NamedObjects related functions.

Author
Michael Toennies
Christian Hujer
Andreas Kirschbaum

Definition at line 46 of file NamedObjectsUtils.java.

Constructor & Destructor Documentation

◆ NamedObjectsUtils()

net.sf.gridarta.gui.data.NamedObjectsUtils.NamedObjectsUtils ( )
private

Private constructor to prevent instantiation.

Definition at line 57 of file NamedObjectsUtils.java.

Member Function Documentation

◆ showNodeChooserDialog()

static <E extends NamedObject> String net.sf.gridarta.gui.data.NamedObjectsUtils.showNodeChooserDialog ( @NotNull final Component  parentComponent,
@NotNull final String  initial,
@NotNull final FaceObjectProviders  faceObjectProviders,
@NotNull final NamedObjects< E >  namedObjects 
)
static

Show a dialog for choosing from the object tree.

Parameters
parentComponentparent component to show dialog on
initialinitially selected node name
faceObjectProvidersthe face object providers for looking up faces
namedObjectsthe named objects tree to show
Returns
name of selected node or
null
if the user abandoned the selection dialog by using cancel or close instead of okay

Definition at line 71 of file NamedObjectsUtils.java.

References net.sf.gridarta.model.data.NamedObject.getPath().

Referenced by net.sf.gridarta.gui.utils.TreeChooseAction.actionPerformed().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ ACTION_BUILDER

final ActionBuilder net.sf.gridarta.gui.data.NamedObjectsUtils.ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
staticprivate

The ActionBuilder.

Definition at line 52 of file NamedObjectsUtils.java.


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