create new tag
view all tags


Story summary Show Information Edited Entity
Iteration AnA08Usability
FEA AnA08S14ShowInformationEditedEntity
Story Lead  
Next Story  
Passed acceptance test No


Create new interface IHumanIdentifiable

  • This interface will have just one method getHumanId. This method will be implemented in all entities that are directly manipulated in the interface to return a text identifier of the entity, this text pretends to be a human readable identifier. For example, for calendars, this method would just return the calendar name.

  • We're going to show information for each entity that is edited with a common CRUD in LibrePlan. These entities are:
    • Worker
    • VirtualWorker
    • Machine
    • ExternalCompany
    • Scenario
    • BaseCalendar
    • QualityForm
    • CostCategory
    • User
    • Profile
    • AdvanceType
    • CriterionType
    • ExceptionDayTypes
    • LabelType
    • UnitType
    • TypeOfWorkHours
    • WorkReportType

  • For those classes implements interface IHumanIdentifiable and method getHumanId with following behaviour:
    • For all entities it's going to return just the entity name.
    • Exceptions:
      • Worker: First name + Surname
      • UnitType: measure

Show information about entity currently being edited

  • Modify BaseCRUDController adding a new public final method called updateWindowTitle:
    • This method will use getEntityBeingEdited() and call getHumanId() over the entity.
    • And depending on controller state will update corresponding window title.

  • This method will be called from goToEditForm for the moment.

Update information dynamically when user modifies entity

  • Use ON_BLUR event in form fields used to calculate humanId (usually field name) and call updateWindowTitle method. This will update window title while user is modifying these values.

User stories

Tasks in this story

Total Hours in this Story


Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 20 Aug 2012 - mrego
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback