public MulticastConnectivityConfigPanel( String environment, MulticastChannelContext context, ActionListener actionListener, MouseListener mouseListener) { setBorder( new TitledBorder( BorderFactory.createEmptyBorder(), "Multicast Connectivity Config", TitledBorder.LEADING, TitledBorder.TOP, MDFUtil.fontArialBold12)); setFont(MDFUtil.fontArialPlain12); setLayout(new BorderLayout()); /** * Panel containing the TCP connectivity for the selected environment Table containing the * multicast groups for the selected environment */ add(createConnectionConfigPanel(environment), BorderLayout.NORTH); multicastGroupConfigModel = new MulticastGroupConfigModel(environment, context); multicastGroupConfigTable = new MulticastGroupConfigTable(multicastGroupConfigModel, mouseListener); multicastGroupConfigTable.autoSelectFirstRow(); // JScrollPane scrollPane=new JScrollPane(multicastGroupConfigTable); // scrollPane.getHorizontalScrollBar().setEnabled(true); add(multicastGroupConfigTable, BorderLayout.CENTER); /** Panel containing the available market types that match the selected multicast group */ interestedMarketTypesPanel = new InterestedMarketTypesPanel(actionListener, multicastGroupConfigTable); if (!multicastGroupConfigModel .getMulticastChannelPairInfo(0) .getGroupName() .contains(MDFClientConfigurator.MULTICAST_GROUP_NAME_OPTIONS_KEY_WORD)) { interestedMarketTypesPanel.disableUDSCheckbox(); } JScrollPane marketTypesScrollPane = new JScrollPane(interestedMarketTypesPanel); add(marketTypesScrollPane, BorderLayout.SOUTH); }
public boolean isInterestedInUDS() { return interestedMarketTypesPanel.isInterestedInUDS(); }
/** * get the selected interested market types * * @return MarketType[] */ public List<MarketType> getInterestedMarketTypes() { return (interestedMarketTypesPanel.getInterestedMarketTypes()); }