Exemple #1
0
 def __init__(self, accl):
     self.mebt_magnet_polarity_window = null
     #---- place to create all subcontrollers
     self.mebt_main_orbit_diff_cntrl = MEBT_Main_Orbit_Diff_Controller(
         self, accl)
     #--------fill out the tabbed panel
     self.tabbedPane = JTabbedPane()
     self.tabbedPane.add("MEBT Orbit Diff.",
                         self.mebt_main_orbit_diff_cntrl.getMainPanel())
	def __init__(self,accl):
		self.mebt_magnet_polarity_window = null
		#---- place to create all subcontrollers
		self.mebt_main_orbit_diff_cntrl = MEBT_Main_Orbit_Diff_Controller(self,accl)
		#--------fill out the tabbed panel
		self.tabbedPane = JTabbedPane()		
		self.tabbedPane.add("MEBT Orbit Diff.",self.mebt_main_orbit_diff_cntrl.getMainPanel())
Exemple #3
0
class MEBT_Magnet_Polarity_Document:
    """ This is a place where you put everything that it is yours logic and GUI """
    def __init__(self, accl):
        self.mebt_magnet_polarity_window = null
        #---- place to create all subcontrollers
        self.mebt_main_orbit_diff_cntrl = MEBT_Main_Orbit_Diff_Controller(
            self, accl)
        #--------fill out the tabbed panel
        self.tabbedPane = JTabbedPane()
        self.tabbedPane.add("MEBT Orbit Diff.",
                            self.mebt_main_orbit_diff_cntrl.getMainPanel())

    def setWindow(self, mebt_magnet_polarity_window):
        self.mebt_magnet_polarity_window = mebt_magnet_polarity_window
        self.mebt_magnet_polarity_window.getMainPanel().add(
            self.tabbedPane, BorderLayout.CENTER)

    def getWindow(self):
        return self.mebt_magnet_polarity_window

    def getMessageTextField(self):
        if (self.mebt_magnet_polarity_window != null):
            return self.mebt_magnet_polarity_window.getMessageTextField()
        else:
            return null
class MEBT_Magnet_Polarity_Document:
	""" This is a place where you put everything that it is yours logic and GUI """
	def __init__(self,accl):
		self.mebt_magnet_polarity_window = null
		#---- place to create all subcontrollers
		self.mebt_main_orbit_diff_cntrl = MEBT_Main_Orbit_Diff_Controller(self,accl)
		#--------fill out the tabbed panel
		self.tabbedPane = JTabbedPane()		
		self.tabbedPane.add("MEBT Orbit Diff.",self.mebt_main_orbit_diff_cntrl.getMainPanel())

	def setWindow(self,mebt_magnet_polarity_window):
		self.mebt_magnet_polarity_window = mebt_magnet_polarity_window
		self.mebt_magnet_polarity_window.getMainPanel().add(self.tabbedPane,BorderLayout.CENTER)		
		
	def getWindow(self):
		return self.mebt_magnet_polarity_window
		
	def getMessageTextField(self):
		if(self.mebt_magnet_polarity_window != null):
			return self.mebt_magnet_polarity_window.getMessageTextField()
		else:
			return null