mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-12-05 18:30:49 +00:00
41 lines
939 B
Java
41 lines
939 B
Java
/*
|
|
* ligneRaccourci.java, 25/02/2022
|
|
* IUT Rodez 2022-2022, INFO2
|
|
* pas de copyright, aucun droits
|
|
*/
|
|
|
|
package lecteur_pdf.raccourcisClavier;
|
|
|
|
import javax.swing.*;
|
|
import java.util.Locale;
|
|
|
|
/**
|
|
* TODO class comment
|
|
*/
|
|
public class ligneRaccourci extends JPanel {
|
|
private JLabel raccourciLabel;
|
|
private JCheckBox ctrlCheckBox;
|
|
private JPanel optionsRaccourcis;
|
|
private JButton inputButton;
|
|
|
|
public ligneRaccourci(String labelName, char raccourcis, boolean ctrl) {
|
|
raccourciLabel.setText(labelName);
|
|
inputButton.setText(String.valueOf(raccourcis)/*.toUpperCase(Locale
|
|
.ROOT)*/);
|
|
ctrlCheckBox.setSelected(ctrl);
|
|
add(optionsRaccourcis);
|
|
}
|
|
|
|
public JLabel getRaccourciLabel() {
|
|
return raccourciLabel;
|
|
}
|
|
|
|
public JButton getInputTextField() {
|
|
return inputButton;
|
|
}
|
|
|
|
public JCheckBox getCtrlCheckBox() {
|
|
return ctrlCheckBox;
|
|
}
|
|
}
|