java/rozsirene-atributy/src/cz/frantovo/rozsireneatributy/gui/Panel.java
branchv_0
changeset 32 ca064ecf3ca3
parent 31 1ab5ce94a146
child 33 4805f1eef561
     1.1 --- a/java/rozsirene-atributy/src/cz/frantovo/rozsireneatributy/gui/Panel.java	Fri Dec 15 01:36:17 2023 +0100
     1.2 +++ b/java/rozsirene-atributy/src/cz/frantovo/rozsireneatributy/gui/Panel.java	Fri Dec 15 02:29:57 2023 +0100
     1.3 @@ -32,7 +32,8 @@
     1.4   */
     1.5  public class Panel extends javax.swing.JPanel {
     1.6  
     1.7 -	private static final int SLOUPEC_NÁZVU = 0;
     1.8 +	public static final int SLOUPEC_NÁZVU = 0;
     1.9 +	public static final int SLOUPEC_HODNOTY = 1;
    1.10  	private static final Logger log = Logger
    1.11  		.getLogger(Panel.class.getSimpleName());
    1.12  	private static final ResourceBundle překlady = ResourceBundle
    1.13 @@ -54,7 +55,7 @@
    1.14  		nastavEditor();
    1.15  		tabulka.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    1.16  		posuvnýPanel.setViewportView(tabulka);
    1.17 -
    1.18 +		
    1.19  		/** Výběr aktuálního atributu v tabulce */
    1.20  		tabulka.getSelectionModel().addListSelectionListener(
    1.21  			new ListSelectionListener() {
    1.22 @@ -76,6 +77,8 @@
    1.23  	private void nastavEditor() {
    1.24  		tabulka.getColumnModel().getColumn(SLOUPEC_NÁZVU)
    1.25  			.setCellEditor(new EditorNázvůAtributů(model.getKonfigurace()));
    1.26 +		tabulka.getColumnModel().getColumn(SLOUPEC_HODNOTY)
    1.27 +			.setCellEditor(new EditorHodnotAtributů(model.getKonfigurace()));
    1.28  	}
    1.29  
    1.30  	private Model getModel() {