use of java.awt.event.ActionListener in project android-classyshark by google.
the class Toolbar method buildSettingsButton.
private JButton buildSettingsButton() {
JButton button = new JButton(theme.getSettingsIcon());
button.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
toolbarController.onSettingsButtonPressed();
}
});
button.setToolTipText("Settings");
button.setBorderPainted(false);
return button;
}
use of java.awt.event.ActionListener in project android-classyshark by google.
the class Toolbar method buildExportButton.
private JButton buildExportButton() {
JButton result = new JButton(theme.getExportIcon());
result.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
toolbarController.onExportButtonPressed();
}
});
result.setToolTipText("Export");
result.setBorderPainted(false);
result.setEnabled(false);
return result;
}
use of java.awt.event.ActionListener in project android-classyshark by google.
the class Toolbar method buildViewButton.
private JButton buildViewButton() {
JButton result = new JButton(theme.getForwardIcon());
result.setToolTipText("Next");
result.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
toolbarController.onViewTopClassPressed();
}
});
result.setBorderPainted(false);
result.setFocusPainted(true);
result.setEnabled(false);
return result;
}
use of java.awt.event.ActionListener in project android-classyshark by google.
the class Toolbar method buildLeftPanelToggleButton.
private JToggleButton buildLeftPanelToggleButton() {
final ImageIcon toggleIcon = theme.getToggleIcon();
final JToggleButton jToggleButton = new JToggleButton(toggleIcon, true);
jToggleButton.setToolTipText("Show/hide navigation tree");
jToggleButton.setBorderPainted(false);
jToggleButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
toolbarController.onChangeLeftPaneVisibility(jToggleButton.isSelected());
}
});
return jToggleButton;
}
use of java.awt.event.ActionListener in project android-classyshark by google.
the class Toolbar method buildMappingsButton.
private JButton buildMappingsButton() {
JButton result = new JButton(theme.getMappingIcon());
result.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
toolbarController.onMappingsButtonPressed();
}
});
result.setToolTipText("Import Proguard mapping file");
result.setBorderPainted(false);
result.setEnabled(true);
return result;
}
Aggregations