use of org.zaproxy.zap.view.ZapToggleButton in project zaproxy by zaproxy.
the class AlertPanel method getLinkWithSitesTreeButton.
/**
* Returns the toggle button that enables/disables the "Alerts" tree filtering based on the "Sites" tree selection.
* <p>
* The instance variable {@code linkWithSitesTreeButton} is initialised on the first call to this method.
* </p>
*
* @see #linkWithSitesTreeButton
* @return the toggle button that enables/disables the "Alerts" tree filtering based on the "Sites" tree selection
*/
private JToggleButton getLinkWithSitesTreeButton() {
if (linkWithSitesTreeButton == null) {
linkWithSitesTreeButton = new ZapToggleButton();
linkWithSitesTreeButton.setIcon(new ImageIcon(AlertPanel.class.getResource("/resource/icon/16/earth-grey.png")));
linkWithSitesTreeButton.setToolTipText(Constant.messages.getString("alerts.panel.linkWithSitesSelection.unselected.button.tooltip"));
linkWithSitesTreeButton.setSelectedIcon(new ImageIcon(AlertPanel.class.getResource("/resource/icon/16/094.png")));
linkWithSitesTreeButton.setSelectedToolTipText(Constant.messages.getString("alerts.panel.linkWithSitesSelection.selected.button.tooltip"));
DisplayUtils.scaleIcon(linkWithSitesTreeButton);
linkWithSitesTreeButton.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
setLinkWithSitesTreeSelection(linkWithSitesTreeButton.isSelected());
}
});
alertsTreeFiltersButtonGroup.add(linkWithSitesTreeButton);
}
return linkWithSitesTreeButton;
}
use of org.zaproxy.zap.view.ZapToggleButton in project zaproxy by zaproxy.
the class AlertPanel method getScopeButton.
private JToggleButton getScopeButton() {
if (scopeButton == null) {
scopeButton = new ZapToggleButton();
scopeButton.setIcon(new ImageIcon(AlertPanel.class.getResource("/resource/icon/fugue/target-grey.png")));
scopeButton.setToolTipText(Constant.messages.getString("history.scope.button.unselected"));
scopeButton.setSelectedIcon(new ImageIcon(AlertPanel.class.getResource("/resource/icon/fugue/target.png")));
scopeButton.setSelectedToolTipText(Constant.messages.getString("history.scope.button.selected"));
DisplayUtils.scaleIcon(scopeButton);
scopeButton.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
extension.setShowJustInScope(scopeButton.isSelected());
}
});
alertsTreeFiltersButtonGroup.add(scopeButton);
}
return scopeButton;
}
use of org.zaproxy.zap.view.ZapToggleButton in project zaproxy by zaproxy.
the class BreakPanelToolbarFactory method getBtnBreakResponse.
public JToggleButton getBtnBreakResponse() {
ZapToggleButton btnBreakResponse;
btnBreakResponse = new ZapToggleButton(breakResponsesButtonAction);
btnBreakResponse.setSelectedIcon(new ImageIcon(BreakPanelToolbarFactory.class.getResource("/resource/icon/16/106r.png")));
btnBreakResponse.setSelectedToolTipText(Constant.messages.getString("brk.toolbar.button.response.unset"));
return btnBreakResponse;
}
use of org.zaproxy.zap.view.ZapToggleButton in project zaproxy by zaproxy.
the class BreakPanelToolbarFactory method getBtnBreakAll.
public JToggleButton getBtnBreakAll() {
ZapToggleButton btnBreakAll;
btnBreakAll = new ZapToggleButton(breakAllButtonAction);
btnBreakAll.setSelectedIcon(new ImageIcon(BreakPanelToolbarFactory.class.getResource("/resource/icon/16/151.png")));
btnBreakAll.setSelectedToolTipText(Constant.messages.getString("brk.toolbar.button.all.unset"));
return btnBreakAll;
}
use of org.zaproxy.zap.view.ZapToggleButton in project zaproxy by zaproxy.
the class BreakPanelToolbarFactory method getBtnBreakRequest.
public JToggleButton getBtnBreakRequest() {
ZapToggleButton btnBreakRequest;
btnBreakRequest = new ZapToggleButton(breakRequestsButtonAction);
btnBreakRequest.setSelectedIcon(new ImageIcon(BreakPanelToolbarFactory.class.getResource("/resource/icon/16/105r.png")));
btnBreakRequest.setSelectedToolTipText(Constant.messages.getString("brk.toolbar.button.request.unset"));
return btnBreakRequest;
}
Aggregations