Package gui.controller.auth
Class AuthTextFieldsEditListener
java.lang.Object
gui.controller.auth.AuthTextFieldsEditListener
- All Implemented Interfaces:
EventListener
,DocumentListener
- Direct Known Subclasses:
RegisterTextFieldsEditListener
-
Constructor Summary
ConstructorDescriptionAuthTextFieldsEditListener
(JTextField loginField, JPasswordField passwordField, AuthActionListenerCallback callback, boolean isEnabled) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Gives notification that an attribute or set of attributes changed.void
Gives notification that there was an insert into the document.boolean
void
Gives notification that a portion of the document has been removed.void
setEnabled
(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:
insertUpdate
in 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:
removeUpdate
in interfaceDocumentListener
- Parameters:
e
- the document event
-
changedUpdate
Gives notification that an attribute or set of attributes changed.- Specified by:
changedUpdate
in interfaceDocumentListener
- Parameters:
e
- the document event
-
tryToUpdateTextFields
public void tryToUpdateTextFields() -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-