google-code-export / choosel

Automatically exported from code.google.com/p/choosel
0 stars 0 forks source link

Introduce adaptable pattern for providing functionality blocks #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It is currently not possible to access view-specific functionality, e.g. 
running layouts on graphs, automatically. The goal of this task is to add the 
adaptable pattern to views and view content displays to allow call like this 
(example would work on Graph view content display):

GraphLayoutSupport layoutSupport = view.getAdapter(GraphLayoutSupport.class)
// run custom functionality on layoutSupport

The Adaptable interface should contain two methods:

<T> T getAdapter(Class<T> clazz)

boolean isAdaptableTo(Class<?> clazz)

Original issue reported on code.google.com by Lars.Grammel on 19 Jun 2011 at 2:58

GoogleCodeExporter commented 9 years ago

Original comment by Lars.Grammel on 19 Jun 2011 at 4:57

GoogleCodeExporter commented 9 years ago

Original comment by Lars.Grammel on 19 Jun 2011 at 5:39