[fusion-trac] #71: SelectionPanel: Capability to customize
display results
Fusion
trac_fusion at osgeo.org
Fri May 30 10:50:36 EDT 2008
#71: SelectionPanel: Capability to customize display results
-------------------------+--------------------------------------------------
Reporter: aboudreault | Owner: aboudreault
Type: enhancement | Status: new
Priority: P2 | Milestone: 1.1
Component: Widgets | Version: 1.0.6
Severity: Major | Resolution:
Keywords: | External_id:
State: New | Browser: All
Os: All |
-------------------------+--------------------------------------------------
Comment (by aboudreault):
Ok, i've made some work in the !SelectionPanel...... but i would like to
have your opinion. I've complety removed the dependency between the
!SelectionPanel and the default behavior. In fact, i've create an abstract
class called Fusion.Widget.!SelectionPanel.!SelectionRenderer (name to be
discussed) to define A behavior when a selection is done and off course an
default selection renderer class that inherit from this class. This
doesn't increase the complexity of the !SelectionPanel at all. If nothing
is specified in the ApplicationDefinition, the default behavior will be
used. Now, 2 new possibilities are now available:
* Pass a simple callback function to the !SelectionPanel
[[BR]]A simple function can be passed to the widget, and binded with
MAP_SELECTION_ON (Like your example in the MapGuideTutorial).[[BR]][[BR]]
* Pass a complex behavior created by a programmer
[[BR]]A experimented programmer will be able to create his own
!SelectionRenderer class. This part Fusion can be very complex and
different for each user (IE: a user may needs to make something at
initialization of the widget (like the default behavior), create his own
events, define his own clearSelection method, display results in others
windows, etc.) So, the user will create his own behavior with the
!SelectionRenderer class and just pass it to the !SelectionPanel via the
ApplicationDefinition.
I really don't know if you'll like the idea... i'm waiting your comments.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/71#comment:8>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list