Mercurial Hosting > junotu
changeset 16:736bcfba1d2d
Hide internal tags from interface
author | Fox |
---|---|
date | Sun, 10 Apr 2022 02:32:40 +0200 |
parents | 4bb371496315 |
children | e51c3c807650 |
files | src/junotu/TabEdit.java |
diffstat | 1 files changed, 19 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/junotu/TabEdit.java Sun Apr 10 02:20:14 2022 +0200 +++ b/src/junotu/TabEdit.java Sun Apr 10 02:32:40 2022 +0200 @@ -255,10 +255,28 @@ card = null; } + private void updateTitle() + { + Window window = (Window)this.getTopLevelAncestor(); + + String text = title.getText(); + String action = newCard ? "Create" : "Edit"; + + if( text.length() > 0 ) { + window.setTitle( window.preferredTitle( action+": "+text ) ); + } else { + window.setTitle( window.preferredTitle( action ) ); + } + + } + private void updateTags() { tags.removeAll(); for( String tag : card.tagNames() ) { + if( tag.startsWith("_") ) { + continue; + } for( Object value : card.tagValues( tag ) ) { tags.add( new TagWidget( tag, value ) ); } @@ -423,21 +441,7 @@ } } - private void updateTitle() - { - Window window = (Window)this.getTopLevelAncestor(); - - String text = title.getText(); - String action = newCard ? "Create" : "Edit"; - - if( text.length() > 0 ) { - window.setTitle( window.preferredTitle( action+": "+text ) ); - } else { - window.setTitle( window.preferredTitle( action ) ); - } - - } - + private void buttonClickedBack() { Window window = (Window)this.getTopLevelAncestor();