def __init__(self,accl):
		self.warm_linac_rf_setup_window = null
		self.mainPanel = JTabbedPane()
		#---- place to create all subcontrollers
		self.main_loop_controller = Main_Loop_Controller(self,accl)
		self.rf_power_controller = RF_NET_Power_Controller(self,self.main_loop_controller)
		self.dtl_acceptance_scans_controller = DTL_Acceptance_Scans_Controller(self,accl)
		#----------------------------------------------------------
		self.mainPanel.add("Set RF Power",self.rf_power_controller.getMainPanel())
		self.mainPanel.add("PASTA Scans",self.main_loop_controller.getMainPanel())
		self.mainPanel.add("DTL Acceptance Scans",self.dtl_acceptance_scans_controller.getMainPanel())
Example #2
0
class Warm_Linac_RF_SetUp_Document:
    """ This is a place where you put everything that it is yours logic and GUI """
    def __init__(self, accl):
        self.warm_linac_rf_setup_window = null
        self.mainPanel = JTabbedPane()
        #---- place to create all subcontrollers
        self.main_loop_controller = Main_Loop_Controller(self, accl)
        self.rf_power_controller = RF_NET_Power_Controller(
            self, self.main_loop_controller)
        #----------------------------------------------------------
        self.mainPanel.add("Set RF Power",
                           self.rf_power_controller.getMainPanel())
        self.mainPanel.add("PASTA Scans",
                           self.main_loop_controller.getMainPanel())

    def setWindow(self, warm_linac_rf_setup_window):
        self.warm_linac_rf_setup_window = warm_linac_rf_setup_window
        self.warm_linac_rf_setup_window.getMainPanel().add(
            self.mainPanel, BorderLayout.CENTER)

    def getWindow(self):
        return self.warm_linac_rf_setup_window

    def getMainPanel(self):
        return self.mainPanel

    def getMessageTextField(self):
        if (self.warm_linac_rf_setup_window != null):
            return self.warm_linac_rf_setup_window.getMessageTextField()
        else:
            return null
class Warm_Linac_RF_SetUp_Document:
	""" This is a place where you put everything that it is yours logic and GUI """
	def __init__(self,accl):
		self.warm_linac_rf_setup_window = null
		self.mainPanel = JTabbedPane()
		#---- place to create all subcontrollers
		self.main_loop_controller = Main_Loop_Controller(self,accl)
		self.rf_power_controller = RF_NET_Power_Controller(self,self.main_loop_controller)
		#----------------------------------------------------------
		self.mainPanel.add("Set RF Power",self.rf_power_controller.getMainPanel())
		self.mainPanel.add("PASTA Scans",self.main_loop_controller.getMainPanel())
	
	def setWindow(self,warm_linac_rf_setup_window):
		self.warm_linac_rf_setup_window = warm_linac_rf_setup_window
		self.warm_linac_rf_setup_window.getMainPanel().add(self.mainPanel,BorderLayout.CENTER)		
		
	def getWindow(self):
		return self.warm_linac_rf_setup_window
		
	def getMainPanel(self):
		return self.mainPanel		
		
	def getMessageTextField(self):
		if(self.warm_linac_rf_setup_window != null):
			return self.warm_linac_rf_setup_window.getMessageTextField()
		else:
			return null
	def __init__(self,accl):
		self.warm_linac_rf_setup_window = null
		self.mainPanel = JTabbedPane()
		#---- place to create all subcontrollers
		self.main_loop_controller = Main_Loop_Controller(self,accl)
		self.rf_power_controller = RF_NET_Power_Controller(self,self.main_loop_controller)
		#----------------------------------------------------------
		self.mainPanel.add("Set RF Power",self.rf_power_controller.getMainPanel())
		self.mainPanel.add("PASTA Scans",self.main_loop_controller.getMainPanel())