public CFInternetSwingSecUserViewEditJPanel( ICFInternetSwingSchema argSchema, ICFSecuritySecUserObj 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.getSecUserFactory().newAttrJPanel(argFocus); attrScrollPane = new CFHSlaveJScrollPane(attrJPanel); eltJTabbedPane = argSchema.getSecUserFactory().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 CFInternetSwingServiceTypeViewEditJInternalFrame( ICFInternetSwingSchema argSchema, ICFSecurityServiceTypeObj 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 = (ICFInternetServiceTypeObj) argFocus.read(true); swingFocus = argFocus; } swingViewEditJPanel = argSchema.getServiceTypeFactory().newViewEditJPanel(argFocus); setContentPane(swingViewEditJPanel); Dimension dim = new Dimension(1024, 480); setSize(dim); dim = new Dimension(320, 240); setMinimumSize(dim); setTitle("View/Edit Service Type"); setJMenuBar(getFrameMenuBar()); setIconifiable(true); setMaximizable(true); setResizable(true); setClosable(false); }
public CFInternetSwingSecDevicePickerJInternalFrame( ICFInternetSwingSchema argSchema, ICFSecuritySecDeviceObj argFocus, ICFSecuritySecUserObj argContainer, Collection<ICFSecuritySecDeviceObj> argDataCollection, ICFInternetSwingSecDeviceChosen 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 .getSecDeviceFactory() .newPickerJPanel(argFocus, argContainer, argDataCollection, whenChosen); setSwingFocusAsSecDevice(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 Security Device"); setIconifiable(true); setMaximizable(true); setResizable(true); setClosable(false); setPanelMode(CFJPanel.PanelMode.View); }