do not allow to chage tag tree selection, when current tag is under editing

This commit is contained in:
honfika@gmail.com
2015-05-07 21:30:34 +02:00
parent 89f66fbcb2
commit 4a11e24805
9 changed files with 220 additions and 33 deletions

View File

@@ -37,7 +37,7 @@ import layout.TableLayout;
*
* @author JPEXS
*/
public class HeaderInfoPanel extends JPanel {
public class HeaderInfoPanel extends JPanel implements TagEditorPanel {
private final JLabel signatureLabel = new JLabel();
@@ -229,10 +229,11 @@ public class HeaderInfoPanel extends JPanel {
}
private String fmtDouble(double d) {
String r = "" + d;
String r = Double.toString(d);
if (r.endsWith(".0")) {
r = r.substring(0, r.length() - 2);
}
return r;
}
@@ -252,4 +253,15 @@ public class HeaderInfoPanel extends JPanel {
saveButton.setVisible(edit);
cancelButton.setVisible(edit);
}
@Override
public boolean tryAutoSave() {
// todo: implement
return false;
}
@Override
public boolean isEditing() {
return saveButton.isVisible();
}
}