Package net.mcreator.ui.modgui
Class ModElementGUIPage
java.lang.Object
net.mcreator.ui.modgui.ModElementGUIPage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetID()
lazyValidate
(Supplier<AggregatedValidationResult> validator) Use this method when ValidationGroup or AggregatedValidationResult value is not lazy-evaluated but rather stored in the object itselfvoid
setShowThisPageAction
(Runnable showThisPageAction) void
validate
(ValidationGroup validationGroup) <T extends JComponent & IValidable>
ModElementGUIPagevalidate
(T validable)
-
Constructor Details
-
ModElementGUIPage
-
-
Method Details
-
validate
-
validate
-
lazyValidate
Use this method when ValidationGroup or AggregatedValidationResult value is not lazy-evaluated but rather stored in the object itself- Parameters:
validator
- The supplier of the AggregatedValidationResult that is called every time the validation is needed- Returns:
- This class instance
-
getID
-
getComponent
-
getValidationResult
-
setShowThisPageAction
-
showThisPage
public void showThisPage()
-