Work in progress

This commit is contained in:
denny
2015-09-14 21:31:26 -04:00
parent 732d478502
commit c7227ca780
42 changed files with 978 additions and 1356 deletions

View File

@@ -26,11 +26,12 @@ import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
import net.miginfocom.swing.MigLayout;
import module.decode.config.DecodeConfigFactory;
import module.decode.config.DecodeConfiguration;
import net.miginfocom.swing.MigLayout;
import controller.Editor;
import controller.channel.AbstractChannelEditor;
import controller.channel.Channel;
import controller.channel.ChannelNode;
import controller.channel.ChannelValidationException;
@@ -41,6 +42,11 @@ public class DecodeComponentEditor extends AbstractChannelEditor
private JComboBox<DecoderType> mComboDecoders;
private DecodeEditor mEditor;
public DecodeComponentEditor()
{
this( new ChannelNode( new Channel() ) );
}
public DecodeComponentEditor( ChannelNode channelNode )
{
@@ -95,7 +101,7 @@ public class DecodeComponentEditor extends AbstractChannelEditor
}
//Change to the new one
mEditor = DecoderFactory.getPanel( config, mChannelNode );
mEditor = DecoderFactory.getEditorPanel( config, mChannelNode );
add( mEditor, "span 2,center" );
@@ -127,6 +133,11 @@ public class DecodeComponentEditor extends AbstractChannelEditor
}
});
}
public DecodeConfiguration getDecodeConfig()
{
return mEditor.getConfig();
}
@Override
public void save()