Package net.mcreator.ui.modgui
Interface ModElementChangedListener
- All Superinterfaces:
ActionListener
,ChangeListener
,DocumentListener
,EventListener
,ItemListener
,KeyListener
,MouseListener
public interface ModElementChangedListener
extends MouseListener, KeyListener, ActionListener, ItemListener, ChangeListener, DocumentListener
Gets triggered whenever a change to a mod element is detected inside ModElementGUI
One case of this listener usage is warning the user about some unsaved changes made to a mod element.
Another case is the ModElementCodeViewer
which
regenerates the code preview upon UI changes.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
default void
default void
default void
default void
default void
default void
void
The main listener method, triggered when an event occurs on a registered containerdefault void
default void
default void
default void
default void
default void
registerUI
(JComponent component) Registers the given UI component to trigger this listener when a change is detected on itdefault void
default void
-
Method Details
-
modElementChanged
void modElementChanged()The main listener method, triggered when an event occurs on a registered container
-
registerUI
Registers the given UI component to trigger this listener when a change is detected on it
- Parameters:
component
- The UI element to register
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
keyReleased
- Specified by:
keyReleased
in interfaceKeyListener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-
changedUpdate
- Specified by:
changedUpdate
in interfaceDocumentListener
-
insertUpdate
- Specified by:
insertUpdate
in interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdate
in interfaceDocumentListener
-
keyTyped
- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
- Specified by:
keyPressed
in interfaceKeyListener
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-