Class AbstractWYSIWYGDialog<T extends GUIComponent>

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
ButtonDialog, CheckboxDialog, EntityModelDialog, ImageButtonDialog, ImageDialog, InputSlotDialog, LabelDialog, OutputSlotDialog, TextFieldDialog, TooltipDialog

public class AbstractWYSIWYGDialog<T extends GUIComponent> extends MCreatorDialog
See Also:
  • Constructor Details

    • AbstractWYSIWYGDialog

      public AbstractWYSIWYGDialog(WYSIWYGEditor editor, @Nullable T editingComponent)
  • Method Details

    • getEditingComponent

      @Nullable public T getEditingComponent()
    • setEditingComponent

      public void setEditingComponent(@Nullable T editingComponent)
    • getEditor

      public WYSIWYGEditor getEditor()
    • textToMachineName

      @Nonnull public static String textToMachineName(Collection<GUIComponent> componentList, @Nullable String prefix, @Nonnull String text)
      A helper method to transform text to unique machine name when needed.

      This method is not thread safe!

      Parameters:
      componentList - List of existing components to check for duplicates
      prefix - Optional prefix
      text - Input UI text to transform. Can be empty.
      Returns:
      UI text transformed to a machine name