Java tutorial
// Description: Java 7 Swing Element JTabbedPane implementation for Tenant. /* * CF FreeSwitch Configuration Model * * Copyright (c) 2014 Mark Sobkow * * This program is available as free software under the GNU GPL v3, or * under a commercial license from Mark Sobkow. For commercial licensing * details, please contact msobkow@sasktel.net. * * Under the terms of the GPL: * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * This source code incorporates modified modules originally licensed * under the Apache 2.0 license by MSS Code Factory including CFSecurity * (net-sourceforge-msscodefactory-2.1-cfsecurity.xml), * CFInternet (net-sourceforge-msscodefactory-2.1-cfinternet.xml), and * CFCrm 2.1 (net-sourceforge-msscodefactory-2.1-cfcrm.xml), with all of the * required models being available as part of the MSS Code Factory 2.0 * distribution source and install zips. * * You can download installations of MSS Code Factory 2.0 from * http://msscodefactory.sourceforge.net/ * * *********************************************************************** * * Code manufactured by MSS Code Factory */ package net.sourceforge.msscodefactory.cffreeswitch.v2_1.CFFswSwing; import java.math.*; import java.sql.*; import java.text.*; import java.util.*; import java.util.List; import java.awt.*; import java.awt.event.*; import javax.swing.*; import net.sourceforge.msscodefactory.cflib.v2_1.CFLib.*; import net.sourceforge.msscodefactory.cflib.v2_1.CFLib.Swing.*; import org.apache.commons.codec.binary.Base64; import net.sourceforge.msscodefactory.cffreeswitch.v2_1.CFFsw.*; import net.sourceforge.msscodefactory.cffreeswitch.v2_1.CFFswObj.*; /** * CFFswSwingTenantEltJTabbedPane Swing Element JTabbedPane implementation * for Tenant. */ public class CFFswSwingTenantEltJTabbedPane extends CFJTabbedPane implements ICFFswSwingTenantJPanelCommon { protected ICFFswSwingSchema swingSchema = null; protected boolean swingIsInitializing = true; public final String LABEL_TabComponentsTSecGroupList = "Optional Components Tenant Security Group"; public final String LABEL_TabComponentsDomainBaseList = "Optional Components Domain Base Objects"; public final String LABEL_TabComponentsTldList = "Optional Components Top Level Domains"; public final String LABEL_TabComponentsFSSofiaList = "Optional Components FreeSwitch Sofia configuration"; public final String LABEL_TabComponentsFSSFDialerList = "Optional Components FreeSwitch Sofia Dialer configuration"; public final String LABEL_TabComponentsFSSFDialplanList = "Optional Components FreeSwitch Sofia Dial Plan configuration"; public final String LABEL_TabComponentsFSSFProfileList = "Optional Components FreeSwitch Sofia Profile configuration"; public final String LABEL_TabComponentsFSSFProfileDomList = "Optional Components FreeSwitch Sofia Profile Domain configuration"; public final String LABEL_TabComponentsFSSFProfileAlsList = "Optional Components FreeSwitch Sofia Profile Alias configuration"; public final String LABEL_TabComponentsFSSFGatewayList = "Optional Components FreeSwitch Sofia Gateway configuration"; public final String LABEL_TabComponentsFSSFConferenceList = "Optional Components FreeSwitch Sofia Conference configuration"; public final String LABEL_TabComponentsFSSFConferencePFList = "Optional Components FreeSwitch Sofia Conference Profile configuration"; public final String LABEL_TabComponentsFSSFDirectoryList = "Optional Components FreeSwitch Sofia Directory configuration"; public final String LABEL_TabComponentsFSSFExtensionList = "Optional Components FreeSwitch Sofia Extension configuration"; public final String LABEL_TabComponentsFSSFVMailList = "Optional Components FreeSwitch Sofia Voice Mail configuration"; public final String LABEL_TabComponentsPbxIvrMenuList = "Optional Components PBX IVR Menu"; public final String LABEL_TabComponentsPbxIvrMenuEntryList = "Optional Components PBX IVR Menu Entry"; protected JPanel tabViewComponentsTSecGroupListJPanel = null; protected JPanel tabViewComponentsDomainBaseListJPanel = null; protected JPanel tabViewComponentsTldListJPanel = null; protected JPanel tabViewComponentsFSSofiaListJPanel = null; protected JPanel tabViewComponentsFSSFDialerListJPanel = null; protected JPanel tabViewComponentsFSSFDialplanListJPanel = null; protected JPanel tabViewComponentsFSSFProfileListJPanel = null; protected JPanel tabViewComponentsFSSFProfileDomListJPanel = null; protected JPanel tabViewComponentsFSSFProfileAlsListJPanel = null; protected JPanel tabViewComponentsFSSFGatewayListJPanel = null; protected JPanel tabViewComponentsFSSFConferenceListJPanel = null; protected JPanel tabViewComponentsFSSFConferencePFListJPanel = null; protected JPanel tabViewComponentsFSSFDirectoryListJPanel = null; protected JPanel tabViewComponentsFSSFExtensionListJPanel = null; protected JPanel tabViewComponentsFSSFVMailListJPanel = null; protected JPanel tabViewComponentsPbxIvrMenuListJPanel = null; protected JPanel tabViewComponentsPbxIvrMenuEntryListJPanel = null; public CFFswSwingTenantEltJTabbedPane(ICFFswSwingSchema argSchema, ICFFswTenantObj argFocus) { super(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocusAsTenant(argFocus); // Wire the newly constructed JPanels/Tabs to this JTabbedPane addTab(LABEL_TabComponentsTSecGroupList, getTabViewComponentsTSecGroupListJPanel()); addTab(LABEL_TabComponentsDomainBaseList, getTabViewComponentsDomainBaseListJPanel()); addTab(LABEL_TabComponentsTldList, getTabViewComponentsTldListJPanel()); addTab(LABEL_TabComponentsFSSofiaList, getTabViewComponentsFSSofiaListJPanel()); addTab(LABEL_TabComponentsFSSFDialerList, getTabViewComponentsFSSFDialerListJPanel()); addTab(LABEL_TabComponentsFSSFDialplanList, getTabViewComponentsFSSFDialplanListJPanel()); addTab(LABEL_TabComponentsFSSFProfileList, getTabViewComponentsFSSFProfileListJPanel()); addTab(LABEL_TabComponentsFSSFProfileDomList, getTabViewComponentsFSSFProfileDomListJPanel()); addTab(LABEL_TabComponentsFSSFProfileAlsList, getTabViewComponentsFSSFProfileAlsListJPanel()); addTab(LABEL_TabComponentsFSSFGatewayList, getTabViewComponentsFSSFGatewayListJPanel()); addTab(LABEL_TabComponentsFSSFConferenceList, getTabViewComponentsFSSFConferenceListJPanel()); addTab(LABEL_TabComponentsFSSFConferencePFList, getTabViewComponentsFSSFConferencePFListJPanel()); addTab(LABEL_TabComponentsFSSFDirectoryList, getTabViewComponentsFSSFDirectoryListJPanel()); addTab(LABEL_TabComponentsFSSFExtensionList, getTabViewComponentsFSSFExtensionListJPanel()); addTab(LABEL_TabComponentsFSSFVMailList, getTabViewComponentsFSSFVMailListJPanel()); addTab(LABEL_TabComponentsPbxIvrMenuList, getTabViewComponentsPbxIvrMenuListJPanel()); addTab(LABEL_TabComponentsPbxIvrMenuEntryList, getTabViewComponentsPbxIvrMenuEntryListJPanel()); swingIsInitializing = false; } public ICFFswSwingSchema getSwingSchema() { return (swingSchema); } public void setSwingFocus(ICFLibAnyObj value) { final String S_ProcName = "setSwingFocus"; if ((value == null) || (value instanceof ICFFswTenantObj)) { super.setSwingFocus(value); } else { throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), S_ProcName, "value", value, "ICFFswTenantObj"); } } public void setSwingFocusAsTenant(ICFFswTenantObj value) { setSwingFocus(value); } public ICFFswTenantObj getSwingFocusAsTenant() { return ((ICFFswTenantObj) getSwingFocus()); } protected class RefreshComponentsTSecGroupList implements ICFJRefreshCallback { public RefreshComponentsTSecGroupList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswTSecGroupObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsTSecGroup(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsTSecGroupListJPanel(); ICFFswSwingTSecGroupJPanelList jpList = (ICFFswSwingTSecGroupJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsTSecGroupListJPanel() { if (tabViewComponentsTSecGroupListJPanel == null) { Collection<ICFFswTSecGroupObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsTSecGroup(swingIsInitializing); } else { dataCollection = null; } ICFFswTenantObj swingContainer; if ((focus != null) && (focus instanceof ICFFswTenantObj)) { swingContainer = (ICFFswTenantObj) focus; } else { swingContainer = null; } tabViewComponentsTSecGroupListJPanel = swingSchema.getTSecGroupFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsTSecGroupList(), false); } return (tabViewComponentsTSecGroupListJPanel); } protected class RefreshComponentsDomainBaseList implements ICFJRefreshCallback { public RefreshComponentsDomainBaseList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswDomainBaseObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsDomainBase(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsDomainBaseListJPanel(); ICFFswSwingDomainBaseJPanelList jpList = (ICFFswSwingDomainBaseJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsDomainBaseListJPanel() { if (tabViewComponentsDomainBaseListJPanel == null) { Collection<ICFFswDomainBaseObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsDomainBase(swingIsInitializing); } else { dataCollection = null; } ICFLibAnyObj swingContainer; swingContainer = null; tabViewComponentsDomainBaseListJPanel = swingSchema.getDomainBaseFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsDomainBaseList(), false); } return (tabViewComponentsDomainBaseListJPanel); } protected class RefreshComponentsTldList implements ICFJRefreshCallback { public RefreshComponentsTldList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswTldObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsTld(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsTldListJPanel(); ICFFswSwingTldJPanelList jpList = (ICFFswSwingTldJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsTldListJPanel() { if (tabViewComponentsTldListJPanel == null) { Collection<ICFFswTldObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsTld(swingIsInitializing); } else { dataCollection = null; } ICFFswTenantObj swingContainer; if ((focus != null) && (focus instanceof ICFFswTenantObj)) { swingContainer = (ICFFswTenantObj) focus; } else { swingContainer = null; } tabViewComponentsTldListJPanel = swingSchema.getTldFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsTldList(), false); } return (tabViewComponentsTldListJPanel); } protected class RefreshComponentsFSSofiaList implements ICFJRefreshCallback { public RefreshComponentsFSSofiaList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSofiaObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSofia(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSofiaListJPanel(); ICFFswSwingFSSofiaJPanelList jpList = (ICFFswSwingFSSofiaJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSofiaListJPanel() { if (tabViewComponentsFSSofiaListJPanel == null) { Collection<ICFFswFSSofiaObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSofia(swingIsInitializing); } else { dataCollection = null; } ICFFswTenantObj swingContainer; if ((focus != null) && (focus instanceof ICFFswTenantObj)) { swingContainer = (ICFFswTenantObj) focus; } else { swingContainer = null; } tabViewComponentsFSSofiaListJPanel = swingSchema.getFSSofiaFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSofiaList(), false); } return (tabViewComponentsFSSofiaListJPanel); } protected class RefreshComponentsFSSFDialerList implements ICFJRefreshCallback { public RefreshComponentsFSSFDialerList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFDialerObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFDialer(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFDialerListJPanel(); ICFFswSwingFSSFDialerJPanelList jpList = (ICFFswSwingFSSFDialerJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFDialerListJPanel() { if (tabViewComponentsFSSFDialerListJPanel == null) { Collection<ICFFswFSSFDialerObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFDialer(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSofiaObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSofiaObj)) { swingContainer = (ICFFswFSSofiaObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFDialerListJPanel = swingSchema.getFSSFDialerFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFDialerList(), false); } return (tabViewComponentsFSSFDialerListJPanel); } protected class RefreshComponentsFSSFDialplanList implements ICFJRefreshCallback { public RefreshComponentsFSSFDialplanList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFDialplanObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFDialplan(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFDialplanListJPanel(); ICFFswSwingFSSFDialplanJPanelList jpList = (ICFFswSwingFSSFDialplanJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFDialplanListJPanel() { if (tabViewComponentsFSSFDialplanListJPanel == null) { Collection<ICFFswFSSFDialplanObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFDialplan(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSofiaObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSofiaObj)) { swingContainer = (ICFFswFSSofiaObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFDialplanListJPanel = swingSchema.getFSSFDialplanFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFDialplanList(), false); } return (tabViewComponentsFSSFDialplanListJPanel); } protected class RefreshComponentsFSSFProfileList implements ICFJRefreshCallback { public RefreshComponentsFSSFProfileList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFProfileObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFProfile(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFProfileListJPanel(); ICFFswSwingFSSFProfileJPanelList jpList = (ICFFswSwingFSSFProfileJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFProfileListJPanel() { if (tabViewComponentsFSSFProfileListJPanel == null) { Collection<ICFFswFSSFProfileObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFProfile(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSofiaObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSofiaObj)) { swingContainer = (ICFFswFSSofiaObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFProfileListJPanel = swingSchema.getFSSFProfileFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFProfileList(), false); } return (tabViewComponentsFSSFProfileListJPanel); } protected class RefreshComponentsFSSFProfileDomList implements ICFJRefreshCallback { public RefreshComponentsFSSFProfileDomList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFProfileDomainObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFProfileDom(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFProfileDomListJPanel(); ICFFswSwingFSSFProfileDomainJPanelList jpList = (ICFFswSwingFSSFProfileDomainJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFProfileDomListJPanel() { if (tabViewComponentsFSSFProfileDomListJPanel == null) { Collection<ICFFswFSSFProfileDomainObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFProfileDom(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSFProfileObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSFProfileObj)) { swingContainer = (ICFFswFSSFProfileObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFProfileDomListJPanel = swingSchema.getFSSFProfileDomainFactory().newListJPanel( null, swingContainer, dataCollection, new RefreshComponentsFSSFProfileDomList(), false); } return (tabViewComponentsFSSFProfileDomListJPanel); } protected class RefreshComponentsFSSFProfileAlsList implements ICFJRefreshCallback { public RefreshComponentsFSSFProfileAlsList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFProfileAliasObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFProfileAls(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFProfileAlsListJPanel(); ICFFswSwingFSSFProfileAliasJPanelList jpList = (ICFFswSwingFSSFProfileAliasJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFProfileAlsListJPanel() { if (tabViewComponentsFSSFProfileAlsListJPanel == null) { Collection<ICFFswFSSFProfileAliasObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFProfileAls(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSFProfileObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSFProfileObj)) { swingContainer = (ICFFswFSSFProfileObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFProfileAlsListJPanel = swingSchema.getFSSFProfileAliasFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFProfileAlsList(), false); } return (tabViewComponentsFSSFProfileAlsListJPanel); } protected class RefreshComponentsFSSFGatewayList implements ICFJRefreshCallback { public RefreshComponentsFSSFGatewayList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFGatewayObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFGateway(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFGatewayListJPanel(); ICFFswSwingFSSFGatewayJPanelList jpList = (ICFFswSwingFSSFGatewayJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFGatewayListJPanel() { if (tabViewComponentsFSSFGatewayListJPanel == null) { Collection<ICFFswFSSFGatewayObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFGateway(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSofiaObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSofiaObj)) { swingContainer = (ICFFswFSSofiaObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFGatewayListJPanel = swingSchema.getFSSFGatewayFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFGatewayList(), false); } return (tabViewComponentsFSSFGatewayListJPanel); } protected class RefreshComponentsFSSFConferenceList implements ICFJRefreshCallback { public RefreshComponentsFSSFConferenceList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFConferenceObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFConference(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFConferenceListJPanel(); ICFFswSwingFSSFConferenceJPanelList jpList = (ICFFswSwingFSSFConferenceJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFConferenceListJPanel() { if (tabViewComponentsFSSFConferenceListJPanel == null) { Collection<ICFFswFSSFConferenceObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFConference(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSofiaObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSofiaObj)) { swingContainer = (ICFFswFSSofiaObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFConferenceListJPanel = swingSchema.getFSSFConferenceFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFConferenceList(), false); } return (tabViewComponentsFSSFConferenceListJPanel); } protected class RefreshComponentsFSSFConferencePFList implements ICFJRefreshCallback { public RefreshComponentsFSSFConferencePFList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFConferenceProfileObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFConferencePF(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFConferencePFListJPanel(); ICFFswSwingFSSFConferenceProfileJPanelList jpList = (ICFFswSwingFSSFConferenceProfileJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFConferencePFListJPanel() { if (tabViewComponentsFSSFConferencePFListJPanel == null) { Collection<ICFFswFSSFConferenceProfileObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFConferencePF(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSFConferenceObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSFConferenceObj)) { swingContainer = (ICFFswFSSFConferenceObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFConferencePFListJPanel = swingSchema.getFSSFConferenceProfileFactory() .newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFConferencePFList(), false); } return (tabViewComponentsFSSFConferencePFListJPanel); } protected class RefreshComponentsFSSFDirectoryList implements ICFJRefreshCallback { public RefreshComponentsFSSFDirectoryList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFDirectoryObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFDirectory(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFDirectoryListJPanel(); ICFFswSwingFSSFDirectoryJPanelList jpList = (ICFFswSwingFSSFDirectoryJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFDirectoryListJPanel() { if (tabViewComponentsFSSFDirectoryListJPanel == null) { Collection<ICFFswFSSFDirectoryObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFDirectory(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSofiaObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSofiaObj)) { swingContainer = (ICFFswFSSofiaObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFDirectoryListJPanel = swingSchema.getFSSFDirectoryFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFDirectoryList(), false); } return (tabViewComponentsFSSFDirectoryListJPanel); } protected class RefreshComponentsFSSFExtensionList implements ICFJRefreshCallback { public RefreshComponentsFSSFExtensionList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFExtensionObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFExtension(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFExtensionListJPanel(); ICFFswSwingFSSFExtensionJPanelList jpList = (ICFFswSwingFSSFExtensionJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFExtensionListJPanel() { if (tabViewComponentsFSSFExtensionListJPanel == null) { Collection<ICFFswFSSFExtensionObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFExtension(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSFDirectoryObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSFDirectoryObj)) { swingContainer = (ICFFswFSSFDirectoryObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFExtensionListJPanel = swingSchema.getFSSFExtensionFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFExtensionList(), false); } return (tabViewComponentsFSSFExtensionListJPanel); } protected class RefreshComponentsFSSFVMailList implements ICFJRefreshCallback { public RefreshComponentsFSSFVMailList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswFSSFVMailObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFVMail(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsFSSFVMailListJPanel(); ICFFswSwingFSSFVMailJPanelList jpList = (ICFFswSwingFSSFVMailJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsFSSFVMailListJPanel() { if (tabViewComponentsFSSFVMailListJPanel == null) { Collection<ICFFswFSSFVMailObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsFSSFVMail(swingIsInitializing); } else { dataCollection = null; } ICFFswFSSofiaObj swingContainer; if ((focus != null) && (focus instanceof ICFFswFSSofiaObj)) { swingContainer = (ICFFswFSSofiaObj) focus; } else { swingContainer = null; } tabViewComponentsFSSFVMailListJPanel = swingSchema.getFSSFVMailFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsFSSFVMailList(), false); } return (tabViewComponentsFSSFVMailListJPanel); } protected class RefreshComponentsPbxIvrMenuList implements ICFJRefreshCallback { public RefreshComponentsPbxIvrMenuList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswPbxIvrMenuObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsPbxIvrMenu(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsPbxIvrMenuListJPanel(); ICFFswSwingPbxIvrMenuJPanelList jpList = (ICFFswSwingPbxIvrMenuJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsPbxIvrMenuListJPanel() { if (tabViewComponentsPbxIvrMenuListJPanel == null) { Collection<ICFFswPbxIvrMenuObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsPbxIvrMenu(swingIsInitializing); } else { dataCollection = null; } ICFFswTenantObj swingContainer; if ((focus != null) && (focus instanceof ICFFswTenantObj)) { swingContainer = (ICFFswTenantObj) focus; } else { swingContainer = null; } tabViewComponentsPbxIvrMenuListJPanel = swingSchema.getPbxIvrMenuFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsPbxIvrMenuList(), false); } return (tabViewComponentsPbxIvrMenuListJPanel); } protected class RefreshComponentsPbxIvrMenuEntryList implements ICFJRefreshCallback { public RefreshComponentsPbxIvrMenuEntryList() { } public void refreshMe() { Component cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { if (!((JInternalFrame) cont).isClosed()) { Collection<ICFFswPbxIvrMenuEntryObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsPbxIvrMenuEntry(swingIsInitializing); } else { dataCollection = null; } JPanel panel = getTabViewComponentsPbxIvrMenuEntryListJPanel(); ICFFswSwingPbxIvrMenuEntryJPanelList jpList = (ICFFswSwingPbxIvrMenuEntryJPanelList) panel; jpList.setSwingDataCollection(dataCollection); } } } } public JPanel getTabViewComponentsPbxIvrMenuEntryListJPanel() { if (tabViewComponentsPbxIvrMenuEntryListJPanel == null) { Collection<ICFFswPbxIvrMenuEntryObj> dataCollection; ICFFswTenantObj focus = getSwingFocusAsTenant(); if (focus != null) { dataCollection = focus.getOptionalComponentsPbxIvrMenuEntry(swingIsInitializing); } else { dataCollection = null; } ICFFswPbxIvrMenuObj swingContainer; if ((focus != null) && (focus instanceof ICFFswPbxIvrMenuObj)) { swingContainer = (ICFFswPbxIvrMenuObj) focus; } else { swingContainer = null; } tabViewComponentsPbxIvrMenuEntryListJPanel = swingSchema.getPbxIvrMenuEntryFactory().newListJPanel(null, swingContainer, dataCollection, new RefreshComponentsPbxIvrMenuEntryList(), false); } return (tabViewComponentsPbxIvrMenuEntryListJPanel); } public void setPanelMode(CFJPanel.PanelMode value) { CFJPanel.PanelMode oldMode = getPanelMode(); super.setPanelMode(value); if (tabViewComponentsTSecGroupListJPanel != null) { ((ICFFswSwingTSecGroupJPanelCommon) tabViewComponentsTSecGroupListJPanel).setPanelMode(value); } if (tabViewComponentsDomainBaseListJPanel != null) { ((ICFFswSwingDomainBaseJPanelCommon) tabViewComponentsDomainBaseListJPanel).setPanelMode(value); } if (tabViewComponentsTldListJPanel != null) { ((ICFFswSwingTldJPanelCommon) tabViewComponentsTldListJPanel).setPanelMode(value); } if (tabViewComponentsFSSofiaListJPanel != null) { ((ICFFswSwingFSSofiaJPanelCommon) tabViewComponentsFSSofiaListJPanel).setPanelMode(value); } if (tabViewComponentsFSSFDialerListJPanel != null) { ((ICFFswSwingFSSFDialerJPanelCommon) tabViewComponentsFSSFDialerListJPanel).setPanelMode(value); } if (tabViewComponentsFSSFDialplanListJPanel != null) { ((ICFFswSwingFSSFDialplanJPanelCommon) tabViewComponentsFSSFDialplanListJPanel).setPanelMode(value); } if (tabViewComponentsFSSFProfileListJPanel != null) { ((ICFFswSwingFSSFProfileJPanelCommon) tabViewComponentsFSSFProfileListJPanel).setPanelMode(value); } if (tabViewComponentsFSSFProfileDomListJPanel != null) { ((ICFFswSwingFSSFProfileDomainJPanelCommon) tabViewComponentsFSSFProfileDomListJPanel) .setPanelMode(value); } if (tabViewComponentsFSSFProfileAlsListJPanel != null) { ((ICFFswSwingFSSFProfileAliasJPanelCommon) tabViewComponentsFSSFProfileAlsListJPanel) .setPanelMode(value); } if (tabViewComponentsFSSFGatewayListJPanel != null) { ((ICFFswSwingFSSFGatewayJPanelCommon) tabViewComponentsFSSFGatewayListJPanel).setPanelMode(value); } if (tabViewComponentsFSSFConferenceListJPanel != null) { ((ICFFswSwingFSSFConferenceJPanelCommon) tabViewComponentsFSSFConferenceListJPanel).setPanelMode(value); } if (tabViewComponentsFSSFConferencePFListJPanel != null) { ((ICFFswSwingFSSFConferenceProfileJPanelCommon) tabViewComponentsFSSFConferencePFListJPanel) .setPanelMode(value); } if (tabViewComponentsFSSFDirectoryListJPanel != null) { ((ICFFswSwingFSSFDirectoryJPanelCommon) tabViewComponentsFSSFDirectoryListJPanel).setPanelMode(value); } if (tabViewComponentsFSSFExtensionListJPanel != null) { ((ICFFswSwingFSSFExtensionJPanelCommon) tabViewComponentsFSSFExtensionListJPanel).setPanelMode(value); } if (tabViewComponentsFSSFVMailListJPanel != null) { ((ICFFswSwingFSSFVMailJPanelCommon) tabViewComponentsFSSFVMailListJPanel).setPanelMode(value); } if (tabViewComponentsPbxIvrMenuListJPanel != null) { ((ICFFswSwingPbxIvrMenuJPanelCommon) tabViewComponentsPbxIvrMenuListJPanel).setPanelMode(value); } if (tabViewComponentsPbxIvrMenuEntryListJPanel != null) { ((ICFFswSwingPbxIvrMenuEntryJPanelCommon) tabViewComponentsPbxIvrMenuEntryListJPanel) .setPanelMode(value); } } }