Class NamedObjectsUtils


  • public class NamedObjectsUtils
    extends java.lang.Object
    Utility class for NamedObjects related functions.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E extends NamedObject>
      @Nullable java.lang.String
      showNodeChooserDialog​(@NotNull java.awt.Component parentComponent, @NotNull java.lang.String initial, @NotNull FaceObjectProviders faceObjectProviders, @NotNull NamedObjects<E> namedObjects)
      Show a dialog for choosing from the object tree.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • showNodeChooserDialog

        @Nullable
        public static <E extends NamedObject> @Nullable java.lang.String showNodeChooserDialog​(@NotNull
                                                                                               @NotNull java.awt.Component parentComponent,
                                                                                               @NotNull
                                                                                               @NotNull java.lang.String initial,
                                                                                               @NotNull
                                                                                               @NotNull FaceObjectProviders faceObjectProviders,
                                                                                               @NotNull
                                                                                               @NotNull NamedObjects<E> namedObjects)
        Show a dialog for choosing from the object tree.
        Parameters:
        parentComponent - parent component to show dialog on
        initial - initially selected node name
        faceObjectProviders - the face object providers for looking up faces
        namedObjects - the 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