Closes issue #37 - LoJack site ID aliases are not triggering alias

actions.

-Updated LJ1200Message to return proper address, reply code and site ID
aliases.

-Update LJDecoderState and LJDecoderPanel to properly reset after a
successful decode and to correct issues with gui label coloration.
This commit is contained in:
denny
2015-12-21 19:21:50 -05:00
parent 137d35697e
commit 4a7cc2b852
3 changed files with 44 additions and 10 deletions

View File

@@ -57,6 +57,15 @@ public class LJ1200DecoderPanel extends DecoderPanel
setLayout( new MigLayout( "insets 1 0 0 0", "[grow,fill]", "" ) );
mProtocol.setFont( mFontDecoder );
mProtocol.setForeground( mColorLabelDecoder );
mTo.setFont( mFontDecoder );
mTo.setForeground( mColorLabelDecoder );
mToAlias.setFont( mFontDecoder );
mToAlias.setForeground( mColorLabelDecoder );
add( mProtocol );
add( mTo );
add( mToAlias, "wrap" );
@@ -76,14 +85,19 @@ public class LJ1200DecoderPanel extends DecoderPanel
mTo.setText( getDecoderState().getAddress() );
repaint();
break;
case FROM_TALKGROUP_ALIAS:
case TO_TALKGROUP_ALIAS:
Alias alias = getDecoderState().getAddressAlias();
if( alias != null )
{
mToAlias.setText( alias.getName() );
repaint();
}
else
{
mToAlias.setText( "" );
}
repaint();
break;
default:
break;