wip #34 - updating the decoder editors to the new editor format

This commit is contained in:
denny
2016-03-21 18:30:19 -04:00
parent d93f497b33
commit e89e7bd361
6 changed files with 53 additions and 49 deletions

View File

@@ -87,6 +87,7 @@ public class DecodeConfigurationEditor extends ValidatingEditor<Channel>
{
remove( mCurrentEditor );
mCurrentEditor = editor;
mCurrentEditor.setItem( getItem() );
add( mCurrentEditor );
revalidate();
@@ -97,12 +98,12 @@ public class DecodeConfigurationEditor extends ValidatingEditor<Channel>
@Override
public void save()
{
// if( mEditor != null )
// {
// mEditor.save();
// }
//
// mChannel.setDecodeConfiguration( mEditor.getConfig() );
if( hasItem() && mCurrentEditor != null )
{
mCurrentEditor.save();
}
setModified( false );
}
@Override
@@ -119,11 +120,13 @@ public class DecodeConfigurationEditor extends ValidatingEditor<Channel>
{
mComboDecoders.setEnabled( false );
}
setModified( false );
}
@Override
public boolean isValid( Editor<Channel> editor ) throws EditorValidationException
public void validate( Editor<Channel> editor ) throws EditorValidationException
{
return mCurrentEditor.isValid( editor );
mCurrentEditor.validate( editor );
}
}