def __addItems(self,rowId, colId): ''' We will create table columns for max col items. Will set class only for the allowed tab ''' maxCol = CONST.getMaxColSize() labels = CONST.getColumnItems(rowId) table = WW.Table(1,maxCol) table.setClass('tabNavTable') self.add(table) for i, val in map(None,range(maxCol), labels): tdTag = table.getTdTag(0,i) tdTag.addClass('tabNavTableCell') chf = WW.DivFrame('iSubMenu%s%s'%(rowId, i)) table.add(0,i,chf) if val == None: chf.setClass('tabNavItemEmpty') continue if i == colId: cls = 'tabNavItemHl' else: cls = 'tabNavItem' chf.add(UTIL.getText(val)) chf.setClass(cls)
def addData(self): sessinfo = SESSINFO.getSessionInfo() status = sessinfo.getStatus() t1 = WW.Textbox('iDataStatus', status) t1.hide() self.add(t1) t1 = WW.Textbox('iDataAccessMsg', UTIL.getText('INBOX_ACCESS_ERROR1')) t1.hide() self.add(t1) rItems = CONST.getRowItems() for i in range(len(rItems)): cItems = CONST.getColumnItems(i) for j, val in enumerate(cItems): t1 = WW.Textbox('iDataMenuLabel%s%s'%(i,j), UTIL.getText(val)) t1.hide() self.add(t1)