Package gui.controller.auth
Class AuthTextFieldsEditListener
java.lang.Object
gui.controller.auth.AuthTextFieldsEditListener
- All Implemented Interfaces:
EventListener,DocumentListener
- Direct Known Subclasses:
RegisterTextFieldsEditListener
-
Constructor Summary
ConstructorsConstructorDescriptionAuthTextFieldsEditListener(JTextField loginField, JPasswordField passwordField, AuthActionListenerCallback callback, boolean isEnabled) -
Method Summary
Modifier and TypeMethodDescriptionvoidGives notification that an attribute or set of attributes changed.voidGives notification that there was an insert into the document.booleanvoidGives notification that a portion of the document has been removed.voidsetEnabled(boolean enabled) void
-
Constructor Details
-
AuthTextFieldsEditListener
public AuthTextFieldsEditListener(JTextField loginField, JPasswordField passwordField, AuthActionListenerCallback callback, boolean isEnabled)
-
-
Method Details
-
insertUpdate
Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region.- Specified by:
insertUpdatein interfaceDocumentListener- Parameters:
e- the document event
-
removeUpdate
Gives notification that a portion of the document has been removed. The range is given in terms of what the view last saw (that is, before updating sticky positions).- Specified by:
removeUpdatein interfaceDocumentListener- Parameters:
e- the document event
-
changedUpdate
Gives notification that an attribute or set of attributes changed.- Specified by:
changedUpdatein interfaceDocumentListener- Parameters:
e- the document event
-
tryToUpdateTextFields
public void tryToUpdateTextFields() -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-