[Perl-widget-developer] VOTE: display() name
Status: Alpha
Brought to you by:
spadkins
From: Stephen A. <ste...@of...> - 2001-06-08 17:49:50
|
Hi, ISSUE #1: I am requesting a quick vote to put to bed this naming issue. I agree that we need a $widget->display() method. My ordered votes for what to call it are: 1. display() 2. render() 3. show() 4. draw() ISSUE #2 (related): On HTML widgets, I think there is still a place for an html() method. This method has no parallels in the Gtk or Curses widgets. However, the difference is that calling the html() method on an HTML widget simply requests the widget to report the HTML that would be used. Calling the display() method (or render() or whatever) is a tacit promise that the HTML will be displayed. This information will be of use in handling the state management. Variables in the State which have not been "display()ed" can be maintained by creating <input type=hidden> elements. It is because of this difference between the html() method and the display() method that "display()" seems better to me than "render()". Please vote... or *forever* hold your peace. Stephen |