myGrid

View / Controller component over DataThing model object

Details

  • Type: Future Functionality Check Future Functionality Check
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: No longer relevant
  • Affects Version/s: None
  • Fix Version/s: 2.0 essential
  • Component/s: Taverna Data
  • Labels:
    None

Description

The DataThing class represents a single piece of data in a workflow instance. There are a number of code points where there is a requirement to view and / or manipulate this model object but at present there is no shared UI component to perform this function. Code is therefore duplicated across the codebase, the current instances are :

1) WorkflowInputMapBuilder - the UI component responsible for gathering initial input values and launching the workflow enactor
2) Result browser / Progress monitor - shows final and intermediate data items (these functions share the same code)
3) Breakpoint, manually edit data - I'm not sure we use this any more but there is a capability to pause a running workflow and 'steer' it by manually editing the datathing.

In addition we would like to be able to set default values to be any legal data object, at present the set defaults operation can only set a single String as a default, so we would like to have

4) Set defaults dialogue - define the default DataThing to be used in the absence of a data link to a given input port

The code is pretty much all there, so this isn't a case of writing something from scratch - the WorkflowInputMapBuilder is the only one of these that allows manipulation of the DataThing object as far as I know (it also supports drag and drop but is all munged into one big class with some other functionality). We have a clean definition of the Model object in this MVC pattern, we need the 'VC' bit.

In an ideal world I'd be able to do 'UIComponentSPI view = new DataThingView(theDataThing, enableEditable)' and have it all work, at the moment we have no such class and it's making the further UI development harder. We would specialize UIComponentSPI and add a DataThingViewSPI interface to handle change events within the DataThing and synchronize the views as with the other model objects.

Activity

Hide
Ian Dunlop added a comment - 2008-03-26 11:46

Superseded by the T2 data model.

Show
Ian Dunlop added a comment - 2008-03-26 11:46 Superseded by the T2 data model.
Hide
Ian Dunlop added a comment - 2008-03-26 11:49

Ensure that you can edit data using the MVC pattern in T2.

Show
Ian Dunlop added a comment - 2008-03-26 11:49 Ensure that you can edit data using the MVC pattern in T2.

People

Vote (0)
Watch (0)

Dates

  • Created:
    2006-10-03 12:33
    Updated:
    2010-05-06 10:57
    Resolved:
    2010-05-06 10:57