use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.
the class DialogAddAutoTagScanner method getConfigurationTextField.
protected ZapTextField getConfigurationTextField() {
if (configurationTextField == null) {
configurationTextField = new ZapTextField();
configurationTextField.getDocument().addDocumentListener(getConfirmButtonValidatorDocListener());
}
return configurationTextField;
}
use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.
the class DialogAddAutoTagScanner method getResponseHeaderRegexTextField.
protected ZapTextField getResponseHeaderRegexTextField() {
if (responseHeaderRegexTextField == null) {
responseHeaderRegexTextField = new ZapTextField();
responseHeaderRegexTextField.getDocument().addDocumentListener(getConfirmButtonValidatorDocListener());
}
return responseHeaderRegexTextField;
}
use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.
the class DialogAddAutoTagScanner method getRequestUrlRegexTextField.
protected ZapTextField getRequestUrlRegexTextField() {
if (requestUrlRegexTextField == null) {
requestUrlRegexTextField = new ZapTextField();
requestUrlRegexTextField.getDocument().addDocumentListener(getConfirmButtonValidatorDocListener());
}
return requestUrlRegexTextField;
}
use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.
the class SearchPanel method getRegExField.
protected ZapTextField getRegExField() {
if (regEx == null) {
regEx = new ZapTextField();
regEx.setHorizontalAlignment(ZapTextField.LEFT);
regEx.setAlignmentX(0.0F);
regEx.setPreferredSize(DisplayUtils.getScaledDimension(250, 25));
regEx.setText("");
regEx.setToolTipText(Constant.messages.getString("search.toolbar.tooltip.regex"));
regEx.setMinimumSize(DisplayUtils.getScaledDimension(250, 25));
regEx.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
doSearch();
}
});
}
return regEx;
}
use of org.zaproxy.zap.utils.ZapTextField in project zaproxy by zaproxy.
the class DialogAddUser method getNameTextField.
protected ZapTextField getNameTextField() {
if (nameTextField == null) {
nameTextField = new ZapTextField(25);
nameTextField.getDocument().addDocumentListener(new DocumentListener() {
@Override
public void removeUpdate(DocumentEvent e) {
checkValidAndEnableConfirmButton();
}
@Override
public void insertUpdate(DocumentEvent e) {
checkValidAndEnableConfirmButton();
}
@Override
public void changedUpdate(DocumentEvent e) {
checkValidAndEnableConfirmButton();
}
});
}
return nameTextField;
}
Aggregations