Exemple #1
0
	def _element_selected(self, elementId, notify=True):
		log.log("StructureRegisterBrowser._element_selected", [elementId, notify], 0)
		if self.__ficheLevel:
			RegisterBrowser._element_selected(self, elementId, notify=notify)
		else:
			self.__element = self.__register.getNodeById(elementId)
		log.log("StructureRegisterBrowser._element_selected return", [self.__element], 1)
Exemple #2
0
	def _element_selected(self, elementId, notify=True):
		log.log("EntryRegisterBrowser._element_selected", [elementId, notify, self.__level], 0)
		if self.__level == "FICHE":
			RegisterBrowser._element_selected(self, elementId, notify=notify)
		else:
			self.__selectedElement = elementId
		log.log("EntryRegisterBrowser._element_selected return", [], 1)
Exemple #3
0
	def _nextFicheNotFound(self):
		log.op("StructureRegisterBrowser._nextFicheNotFound", [], 0)
		fiche = self.__register.findNextFiche(self.__element)
		if fiche != None:
			self.__element = fiche.getParent()
			self.__selectStructureNode(self.__element)
			itemId = self._element2item[fiche.getId()]
			self._unselect(self._selected)
			self._select(itemId, veto=True)
			RegisterBrowser._element_selected(self, fiche.getId(), notify=False)
		log.op("StructureRegisterBrowser._nextFicheNotFound return", [], 1)
Exemple #4
0
	def _element_selected(self, element, notify=True):
		if self.__level in ["FICHE-ENTRY", "FICHE-GAP"]:
			RegisterBrowser._element_selected(self, element, notify=notify)
		else:
			self.__selectedElement = element