Class StateEditorDialog

java.lang.Object
net.mcreator.ui.dialogs.StateEditorDialog

public class StateEditorDialog extends Object
  • Constructor Details

    • StateEditorDialog

      public StateEditorDialog()
  • Method Details

    • open

      @Nullable public static StateMap open(MCreator mcreator, List<PropertyData<?>> properties, StateMap stateMap, JStateLabel.NumberMatchType numberMatchSymbol)
      Opens a dialog to edit values of passed properties list used in the future/provided state.
      Parameters:
      mcreator - The workspace window this method was called from.
      properties - List of properties that can be used to form the resulting state.
      stateMap - The property-to-object map representation of the state to be edited, or null in case it is just being created.
      numberMatchSymbol - NumberMatchType describing how a number property should relate to the specified value.
      Returns:
      The resulting properties' values map after editing session is complete, or null if the operation has been canceled (via cancel/close button).