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 voiddefault voiddefault voiddefault voiddefault voiddefault voiddefault voidvoidThe main listener method, triggered when an event occurs on a registered containerdefault voiddefault voiddefault voiddefault voiddefault voiddefault voidregisterUI(JComponent component) Registers the given UI component to trigger this listener when a change is detected on itdefault voiddefault 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:
mouseReleasedin interfaceMouseListener
-
keyReleased
- Specified by:
keyReleasedin interfaceKeyListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
itemStateChanged
- Specified by:
itemStateChangedin interfaceItemListener
-
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
changedUpdate
- Specified by:
changedUpdatein interfaceDocumentListener
-
insertUpdate
- Specified by:
insertUpdatein interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdatein interfaceDocumentListener
-
keyTyped
- Specified by:
keyTypedin interfaceKeyListener
-
keyPressed
- Specified by:
keyPressedin interfaceKeyListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-