コード例 #1
0
class MEBT_Magnet_Polarity_Window:
    def __init__(self, mebt_magnet_polarity_document):
        #--- mebt_magnet_polarity_document the parent document for all controllers
        self.mebt_magnet_polarity_document = mebt_magnet_polarity_document
        self.frame = null
        self.centerPanel = JPanel(BorderLayout())
        self.mainPanel = JPanel(BorderLayout())
        self.time_txt = DateAndTimeText()
        self.messageTextField = JTextField()
        #---------------------------------------
        timePanel = JPanel(BorderLayout())
        timePanel.add(self.time_txt.getTimeTextField(), BorderLayout.CENTER)
        self.messageTextField.setForeground(Color.red)
        self.centerPanel.add(self.mainPanel, BorderLayout.CENTER)
        tmpP = JPanel(BorderLayout())
        tmpP.add(self.messageTextField, BorderLayout.CENTER)
        tmpP.add(timePanel, BorderLayout.WEST)
        self.centerPanel.add(tmpP, BorderLayout.SOUTH)

    def setFrame(self, xal_frame, mainPanel):
        self.frame = xal_frame
        mainPanel.add(self.centerPanel, BorderLayout.CENTER)

    def getMainPanel(self):
        return self.mainPanel

    def getMessageTextField(self):
        return self.messageTextField
コード例 #2
0
class Warm_Linac_RF_SetUp_Window:
    def __init__(self, warm_linac_rf_setup_document):
        #--- warm_linac_rf_setup_document the parent document for all controllers
        self.warm_linac_rf_setup_document = warm_linac_rf_setup_document
        self.frame = null
        self.centerPanel = JPanel(BorderLayout())
        self.mainPanel = JPanel(BorderLayout())
        self.time_txt = DateAndTimeText()
        self.messageTextField = JTextField()
        #---------------------------------------
        timePanel = JPanel(BorderLayout())
        timePanel.add(self.time_txt.getTimeTextField(), BorderLayout.CENTER)
        self.messageTextField.setForeground(Color.red)
        self.centerPanel.add(self.mainPanel, BorderLayout.CENTER)
        tmpP = JPanel(BorderLayout())
        tmpP.add(self.messageTextField, BorderLayout.CENTER)
        tmpP.add(timePanel, BorderLayout.WEST)
        self.centerPanel.add(tmpP, BorderLayout.SOUTH)

    def setFrame(self, xal_frame, mainPanel):
        self.frame = xal_frame
        mainPanel.add(self.centerPanel, BorderLayout.CENTER)

    def getMainPanel(self):
        return self.mainPanel

    def getMessageTextField(self):
        return self.messageTextField
コード例 #3
0
class Warm_Linac_RF_SetUp_Window:
	def __init__(self,warm_linac_rf_setup_document):
		#--- warm_linac_rf_setup_document the parent document for all controllers
		self.warm_linac_rf_setup_document = warm_linac_rf_setup_document
		self.frame = null
		self.centerPanel = JPanel(BorderLayout())		
		self.mainPanel = JPanel(BorderLayout())
		self.time_txt = DateAndTimeText()
		self.messageTextField = JTextField()
		#---------------------------------------
		timePanel = JPanel(BorderLayout())
		timePanel.add(self.time_txt.getTimeTextField(),BorderLayout.CENTER)		
		self.messageTextField.setForeground(Color.red)
		self.centerPanel.add(self.mainPanel,BorderLayout.CENTER)
		tmpP = JPanel(BorderLayout())
		tmpP.add(self.messageTextField, BorderLayout.CENTER)
		tmpP.add(timePanel, BorderLayout.WEST)
		self.centerPanel.add(tmpP,BorderLayout.SOUTH)
		
	def setFrame(self,xal_frame,mainPanel):
		self.frame = xal_frame
		mainPanel.add(self.centerPanel,BorderLayout.CENTER)
		
	def getMainPanel(self):
		return self.mainPanel
		 
	def getMessageTextField(self):
		return self.messageTextField
コード例 #4
0
class MEBT_Magnet_Polarity_Window:
	def __init__(self,mebt_magnet_polarity_document):
		#--- mebt_magnet_polarity_document the parent document for all controllers
		self.mebt_magnet_polarity_document = mebt_magnet_polarity_document
		self.frame = null
		self.centerPanel = JPanel(BorderLayout())		
		self.mainPanel = JPanel(BorderLayout())
		self.time_txt = DateAndTimeText()
		self.messageTextField = JTextField()
		#---------------------------------------
		timePanel = JPanel(BorderLayout())
		timePanel.add(self.time_txt.getTimeTextField(),BorderLayout.CENTER)		
		self.messageTextField.setForeground(Color.red)
		self.centerPanel.add(self.mainPanel,BorderLayout.CENTER)
		tmpP = JPanel(BorderLayout())
		tmpP.add(self.messageTextField, BorderLayout.CENTER)
		tmpP.add(timePanel, BorderLayout.WEST)
		self.centerPanel.add(tmpP,BorderLayout.SOUTH)
		
	def setFrame(self,xal_frame,mainPanel):
		self.frame = xal_frame
		mainPanel.add(self.centerPanel,BorderLayout.CENTER)
		
	def getMainPanel(self):
		return self.mainPanel
		 
	def getMessageTextField(self):
		return self.messageTextField
コード例 #5
0
 def __init__(self, mebt_magnet_polarity_document):
     #--- mebt_magnet_polarity_document the parent document for all controllers
     self.mebt_magnet_polarity_document = mebt_magnet_polarity_document
     self.frame = null
     self.centerPanel = JPanel(BorderLayout())
     self.mainPanel = JPanel(BorderLayout())
     self.time_txt = DateAndTimeText()
     self.messageTextField = JTextField()
     #---------------------------------------
     timePanel = JPanel(BorderLayout())
     timePanel.add(self.time_txt.getTimeTextField(), BorderLayout.CENTER)
     self.messageTextField.setForeground(Color.red)
     self.centerPanel.add(self.mainPanel, BorderLayout.CENTER)
     tmpP = JPanel(BorderLayout())
     tmpP.add(self.messageTextField, BorderLayout.CENTER)
     tmpP.add(timePanel, BorderLayout.WEST)
     self.centerPanel.add(tmpP, BorderLayout.SOUTH)
コード例 #6
0
	def __init__(self,warm_linac_rf_setup_document):
		#--- warm_linac_rf_setup_document the parent document for all controllers
		self.warm_linac_rf_setup_document = warm_linac_rf_setup_document
		self.frame = null
		self.centerPanel = JPanel(BorderLayout())		
		self.mainPanel = JPanel(BorderLayout())
		self.time_txt = DateAndTimeText()
		self.messageTextField = JTextField()
		#---------------------------------------
		timePanel = JPanel(BorderLayout())
		timePanel.add(self.time_txt.getTimeTextField(),BorderLayout.CENTER)		
		self.messageTextField.setForeground(Color.red)
		self.centerPanel.add(self.mainPanel,BorderLayout.CENTER)
		tmpP = JPanel(BorderLayout())
		tmpP.add(self.messageTextField, BorderLayout.CENTER)
		tmpP.add(timePanel, BorderLayout.WEST)
		self.centerPanel.add(tmpP,BorderLayout.SOUTH)