def __init__(self, name, text,width=60): # 初始化父类中的成员变量 Component.__init__(self) object.__setattr__(self, 'xtype', 'gridcolumn') object.__setattr__(self, 'eclass', 'GridColumnColumn') object.__setattr__(self, 'id', name) object.__setattr__(self, 'name', name) object.__setattr__(self, 'qualifiedId', name) # 初始化父类中成员变量结束 object.__setattr__(self, 'dataIndex', name) self.align ='left' self.cls ='' self.dataType ='string' object.__setattr__(self, 'dateFormat', '') object.__setattr__(self, 'displayType', 'valuetext') object.__setattr__(self, 'editable', 'false') self.filterName ='' self.flex =0 self.hidden ='false' object.__setattr__(self, 'inputMethod', 'normal') object.__setattr__(self, 'isKey', 'false') self.items =[] object.__setattr__(self, 'locked', 'false') # object.__setattr__(self, 'maxLength', 0) # object.__setattr__(self, 'maxValue', 9223372036854775807) # object.__setattr__(self, 'minLength', 0) # object.__setattr__(self, 'minValue', 0) object.__setattr__(self, 'relationField', '') self.sortable ='true' self.storeType ='constant' self.storeFile ={} self.text =text self.visible ='false' self.width =width
def __init__(self, name, text): Component.__init__(self) self.x = 0 self.y = 0 self.text = text self.hotkeys = [] self.events = [] self.clickEvent = 'click' self.cls = '' self.height = 30 self.buttonType = 'normal' object.__setattr__(self, 'xtype', 'button') object.__setattr__(self, 'eclass', 'ButtonButton') object.__setattr__(self, 'id', 'btn_' + name + '_' + text) object.__setattr__(self, 'name', 'btn_' + name + '_' + text) object.__setattr__(self, 'qualifiedId', 'btn_' + name + '_' + text)
def __init__(self, width=750, height=570): Component.__init__(self) object.__setattr__(self, 'alignCenter', 'true') object.__setattr__(self, 'autoFocus', 'true') object.__setattr__(self, 'autoScroll', 'false') object.__setattr__(self, 'border', 1) object.__setattr__(self, 'dock', 'null') object.__setattr__(self, 'eclass', 'Canvas') self.height = height object.__setattr__(self, 'id', 'root') object.__setattr__(self, 'isTrade', 'true') self.items = [] object.__setattr__(self, 'layout', { 'eclass': 'LayoutContainerAbsolute', 'type': 'absolute' }) object.__setattr__(self, 'qualifiedId', 'root') object.__setattr__(self, 'region', 'center') self.width = width self.x = 0 object.__setattr__(self, 'xtype', 'panel') self.y = 0
def __init__(self, x=0, y=0, labelWidth=80, width=150, height=30): Component.__init__(self) object.__setattr__(self, 'autoNextFocus', 'true') object.__setattr__(self, 'disabled', 'false') self.width = width self.x = x self.y = y object.__setattr__(self, 'xtype', 'formfield') object.__setattr__(self, 'eclass', 'formfield') object.__setattr__(self, 'id', '') object.__setattr__(self, 'name', '') object.__setattr__(self, 'qualifiedId', '') self.height = height self.inputMethod = 'normal' self.labelTextAlign = 'right' self.labelWidth = labelWidth self.fieldLabel = '' object.__setattr__(self, 'hidden', 'false') self.textAlign = 'left' self.events = [] self.hotkeys = [] self.cls = '' self.dict = ''
def __init__(self, name, text, x=0, y=0, width=150, height=30): # 初始化父类中的成员变量 Component.__init__(self) object.__setattr__(self, 'xtype', 'efcgrid') object.__setattr__(self, 'eclass', 'GridPanel') object.__setattr__(self, 'id', 'grid_' + name) object.__setattr__(self, 'name', 'grid_' + name) object.__setattr__(self, 'qualifiedId', 'grid_' + name) # 初始化父类中成员变量结束 self.checkFlag = 'single' self.collapsible = 'false' self.columns = [] self.disabled = 'false' # self.enableColumnResize = 'true' object.__setattr__(self, 'enableColumnResize', 'true') self.height = height self.hidden = 'false' self.rowSizeOfPage = 1 self.showNumber = 'false' self.store = {"data": [], "fields": []} self.x = x self.y = y self.width = width
def __init__(self): Component.__init__(self) object.__setattr__(self, 'xtype', 'label') object.__setattr__(self, 'eclass', 'FormLabel')