public CFBamSwingDelSubDep1ViewEditJPanel( ICFBamSwingSchema argSchema, ICFBamDelSubDep1Obj argFocus) { super(); 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; setSwingFocus(argFocus); setSize(1024, 480); splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT); attrJPanel = argSchema.getDelSubDep1Factory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getDelSubDep1Factory().newEltJTabbedPane(argFocus); splitPane.setTopComponent(attrScrollPane); splitPane.setBottomComponent(eltJTabbedPane); add(splitPane); splitPane.setBounds(0, 0, 1024, 455); splitPane.setDividerLocation(200); if (getSwingFocus() != null) { setPanelMode(CFJPanel.PanelMode.View); } doLayout(); }
public CFBamSwingEnumDefAskDeleteJInternalFrame( ICFBamSwingSchema argSchema, ICFBamEnumDefObj argFocus) { super(); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; setSwingFocus(argFocus); swingAskDeleteJPanel = argSchema.getEnumDefFactory().newAskDeleteJPanel(argFocus); setContentPane(swingAskDeleteJPanel); Dimension dim = new Dimension(1024, 480); setSize(dim); dim = new Dimension(320, 240); setMinimumSize(dim); setTitle("Confirm deletion of EnumDef"); setIconifiable(false); setMaximizable(true); setResizable(true); setClosable(false); }
public CFBamSwingDomainAskDeleteJPanel( ICFBamSwingSchema argSchema, ICFInternetDomainObj argFocus) { super(); 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; swingFocus = argFocus; // Construct the various objects textAreaMessage = new JTextArea("Are you sure you want to delete this Domain?"); actionOk = new ActionOk(); actionCancel = new ActionCancel(); buttonOk = new JButton(actionOk); buttonCancel = new JButton(actionCancel); attrJPanel = argSchema.getDomainFactory().newAttrJPanel(argFocus); scrollPane = new CFHSlaveJScrollPane(attrJPanel); // Lay out the widgets setSize(1024, 480); Dimension min = new Dimension(480, 300); setMinimumSize(min); add(textAreaMessage); textAreaMessage.setBounds(0, 0, 1024, 50); int xparts = (768 - (2 * 125)) / 3; add(buttonOk); buttonOk.setBounds(xparts, 55, 125, 40); add(buttonCancel); buttonCancel.setBounds(xparts + 125 + xparts, 55, 125, 40); add(scrollPane); scrollPane.setBounds(0, 100, 1024, 480 - 100); }
public CFBamSwingDoubleColViewEditJInternalFrame( ICFBamSwingSchema argSchema, ICFBamDoubleColObj argFocus) { super(); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; swingFocus = argFocus; if ((argFocus != null) && (!argFocus.getIsNew())) { argFocus = (ICFBamDoubleColObj) argFocus.read(true); swingFocus = argFocus; } swingViewEditJPanel = argSchema.getDoubleColFactory().newViewEditJPanel(argFocus); setContentPane(swingViewEditJPanel); Dimension dim = new Dimension(1024, 480); setSize(dim); dim = new Dimension(320, 240); setMinimumSize(dim); setTitle("View/Edit DoubleCol"); setJMenuBar(getFrameMenuBar()); setIconifiable(true); setMaximizable(true); setResizable(true); setClosable(false); }
public void loadData(boolean forceReload) { ICFBamSchemaObj schemaObj = swingSchema.getSchema(); if ((containingCluster == null) || forceReload) { CFSecurityAuthorization auth = schemaObj.getAuthorization(); long containingClusterId = auth.getSecClusterId(); containingCluster = schemaObj.getClusterTableObj().readClusterByIdIdx(containingClusterId); } if ((listOfSysCluster == null) || forceReload) { arrayOfSysCluster = null; listOfSysCluster = schemaObj .getSysClusterTableObj() .readSysClusterByClusterIdx(containingCluster.getRequiredId(), swingIsInitializing); if (listOfSysCluster != null) { Object objArray[] = listOfSysCluster.toArray(); if (objArray != null) { int len = objArray.length; arrayOfSysCluster = new ICFSecuritySysClusterObj[len]; for (int i = 0; i < len; i++) { arrayOfSysCluster[i] = (ICFSecuritySysClusterObj) objArray[i]; } Arrays.sort(arrayOfSysCluster, compareSysClusterByQualName); } } } }
public void loadData(boolean forceReload) { ICFBamSchemaObj schemaObj = swingSchema.getSchema(); if ((listOfAccessFrequency == null) || forceReload) { arrayOfAccessFrequency = null; listOfAccessFrequency = schemaObj.getAccessFrequencyTableObj().readAllAccessFrequency(swingIsInitializing); if (listOfAccessFrequency != null) { Object objArray[] = listOfAccessFrequency.toArray(); if (objArray != null) { int len = objArray.length; arrayOfAccessFrequency = new ICFBamAccessFrequencyObj[len]; for (int i = 0; i < len; i++) { arrayOfAccessFrequency[i] = (ICFBamAccessFrequencyObj) objArray[i]; } Arrays.sort(arrayOfAccessFrequency, compareAccessFrequencyByQualName); } } } }
public CFBamSwingURLProtocolPickerJInternalFrame( ICFBamSwingSchema argSchema, ICFInternetURLProtocolObj argFocus, ICFLibAnyObj argContainer, Collection<ICFInternetURLProtocolObj> argDataCollection, ICFBamSwingURLProtocolChosen whenChosen) { super(); final String S_ProcName = "construct-schema-focus"; if (argSchema == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 1, "argSchema"); } if (whenChosen == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 5, "whenChosen"); } setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); // argFocus is optional; focus may be set later during execution as // conditions of the runtime change. swingSchema = argSchema; swingPickerJPanel = argSchema .getURLProtocolFactory() .newPickerJPanel(argFocus, argContainer, argDataCollection, whenChosen); setSwingFocusAsURLProtocol(argFocus); setSwingDataCollection(argDataCollection); setSwingContainer(argContainer); setContentPane(swingPickerJPanel); Dimension dim = new Dimension(1024, 480); setSize(dim); dim = new Dimension(320, 240); setMinimumSize(dim); setTitle("Pick a URL Protocol"); setIconifiable(true); setMaximizable(true); setResizable(true); setClosable(false); setPanelMode(CFJPanel.PanelMode.View); }
public JPanel getTabViewComponentsParamsListJPanel() { if (tabViewComponentsParamsListJPanel == null) { Collection<ICFBamParamObj> dataCollection; ICFBamServerListFuncObj focus = getSwingFocusAsServerListFunc(); if (focus != null) { dataCollection = focus.getOptionalComponentsParams(swingIsInitializing); } else { dataCollection = null; } ICFBamServerMethodObj swingContainer; if ((focus != null) && (focus instanceof ICFBamServerMethodObj)) { swingContainer = (ICFBamServerMethodObj) focus; } else { swingContainer = null; } tabViewComponentsParamsListJPanel = swingSchema .getParamFactory() .newListJPanel( null, swingContainer, dataCollection, new RefreshComponentsParamsList(), true); } return (tabViewComponentsParamsListJPanel); }
public JPanel getTabViewComponentsClearDepListJPanel() { if (tabViewComponentsClearDepListJPanel == null) { Collection<ICFBamClearSubDep1Obj> dataCollection; ICFBamClearTopDepObj focus = (ICFBamClearTopDepObj) getSwingFocusAsClearTopDep(); if (focus != null) { dataCollection = focus.getOptionalComponentsClearDep(swingIsInitializing); } else { dataCollection = null; } ICFBamClearTopDepObj swingContainer; if ((focus != null) && (focus instanceof ICFBamClearTopDepObj)) { swingContainer = (ICFBamClearTopDepObj) focus; } else { swingContainer = null; } tabViewComponentsClearDepListJPanel = swingSchema .getClearSubDep1Factory() .newListJPanel( null, swingContainer, dataCollection, new RefreshComponentsClearDepList(), false); } return (tabViewComponentsClearDepListJPanel); }
public JPanel getTabViewChildrenRefListJPanel() { if (tabViewChildrenRefListJPanel == null) { Collection<ICFBamTableColObj> dataCollection; ICFBamTextTypeObj focus = (ICFBamTextTypeObj) getSwingFocusAsTextType(); if (focus != null) { dataCollection = focus.getOptionalChildrenRef(swingIsInitializing); } else { dataCollection = null; } ICFBamTableObj swingContainer; if ((focus != null) && (focus instanceof ICFBamTableObj)) { swingContainer = (ICFBamTableObj) focus; } else { swingContainer = null; } tabViewChildrenRefListJPanel = swingSchema .getTableColFactory() .newListJPanel( null, swingContainer, dataCollection, new RefreshChildrenRefList(), false); } return (tabViewChildrenRefListJPanel); }