// Path: traction/src/main/java/traction/mvc/controllers/FragmentController.java
// public class FragmentController
// extends Fragment
// {
// 	/**
// 	 * Helper to implement Controller logic.
// 	 */
// 	protected final ControllerHelper View = new ControllerHelper(this);
// 
// 	@Override
// 	public void onCreate(Bundle savedInstanceState)
// 	{	
// 		super.onCreate(savedInstanceState);
// 		setRetainInstance(true);
// 	}
// 	
// 	@Override
// 	public View onCreateView(LayoutInflater notUsed, ViewGroup container, Bundle savedInstanceState) 
// 	{
// 		View v = View.inflateView(View.getContentView(), container, container != null);
//         IViewBinding vb = ViewFactory.getViewBinding(v);
//         if (vb != null) {
//             View.ensureMenuInflator(vb.getBindingInventory());
//         }
//         return v;
// 	}
// 	
// 	@Override
// 	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
// 	{
//         View.onCreateOptionsMenu(menu);
// 	}
// 
// 	@Override
// 	public void onDestroyView() 
// 	{		
// 		super.onDestroyView();	
// 		ViewFactory.DetachContext(getView());
// 	}
// 
//     @Override
//     public void onAttach(Activity activity)
//     {
//         super.onAttach(activity);
//         View.registerFragmentToActivity(this, activity);
//     }
// 
//     @Override
//     public void onDetach()
//     {
//         super.onDetach();
//         View.unregisterFragmentFromActivity(this, getActivity());
//     }
// 
//     @Override
//     public void onStart()
//     {
//         super.onStart();
//         View.connectFragmentViewToParentView(this);
//     }
// }
// 
// Path: Demo/src/main/java/ni3po42/android/tractiondemo/models/EntryItem.java
// public class EntryItem
//     extends ObservableObject
// {
//     private static final PropertyStore store = new PropertyStore(EntryItem.class);
// 
//     @Override
//     protected PropertyStore getPropertyStore()
//     {
//         return store;
//     }
// 
//     public EntryItem(int id, String content, boolean active)
//     {
//         this.id = id;
//         this.content = content;
//         this.active = active;
//     }
// 
//     private String content;
//     private int id;
//     private boolean active;
// 
//     public int getId()
//     {
//         return id;
//     }
// 
//     public void setId(int id)
//     {
//         notifyListener("Id", this.id, this.id = id);
//     }
// 
//     public String getContent()
//     {
//         return content;
//     }
// 
//     public void setContent(String content)
//     {
//         notifyListener("Content", this.content, this.content = content);
//     }
// 
//     public boolean isActive()
//     {
//         return active;
//     }
// 
//     public void setActive(boolean active)
//     {
//         notifyListener("Active", this.active, this.active = active);
//     }
// }
// 
// Path: Demo/src/main/java/ni3po42/android/tractiondemo/models/IEntryModel.java
// public interface IEntryModel
// {
//     List<EntryItem> getEntries();
// }


import android.os.Bundle;
import traction.mvc.controllers.FragmentController;
import ni3po42.android.tractiondemo.R;
import ni3po42.android.tractiondemo.models.EntryItem;
import ni3po42.android.tractiondemo.models.IEntryModel;
/* Copyright 2013 Tim Stratton

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */

package ni3po42.android.tractiondemo.controllers;



public class EntryController
    extends FragmentController
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        View.setContentView(R.layout.entry);
    }

    @Override
    public void onStart()
    {
        super.onStart();

// Path: traction/src/main/java/traction/mvc/controllers/FragmentController.java
// public class FragmentController
// extends Fragment
// {
// 	/**
// 	 * Helper to implement Controller logic.
// 	 */
// 	protected final ControllerHelper View = new ControllerHelper(this);
// 
// 	@Override
// 	public void onCreate(Bundle savedInstanceState)
// 	{	
// 		super.onCreate(savedInstanceState);
// 		setRetainInstance(true);
// 	}
// 	
// 	@Override
// 	public View onCreateView(LayoutInflater notUsed, ViewGroup container, Bundle savedInstanceState) 
// 	{
// 		View v = View.inflateView(View.getContentView(), container, container != null);
//         IViewBinding vb = ViewFactory.getViewBinding(v);
//         if (vb != null) {
//             View.ensureMenuInflator(vb.getBindingInventory());
//         }
//         return v;
// 	}
// 	
// 	@Override
// 	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater)
// 	{
//         View.onCreateOptionsMenu(menu);
// 	}
// 
// 	@Override
// 	public void onDestroyView() 
// 	{		
// 		super.onDestroyView();	
// 		ViewFactory.DetachContext(getView());
// 	}
// 
//     @Override
//     public void onAttach(Activity activity)
//     {
//         super.onAttach(activity);
//         View.registerFragmentToActivity(this, activity);
//     }
// 
//     @Override
//     public void onDetach()
//     {
//         super.onDetach();
//         View.unregisterFragmentFromActivity(this, getActivity());
//     }
// 
//     @Override
//     public void onStart()
//     {
//         super.onStart();
//         View.connectFragmentViewToParentView(this);
//     }
// }
// 
// Path: Demo/src/main/java/ni3po42/android/tractiondemo/models/EntryItem.java
// public class EntryItem
//     extends ObservableObject
// {
//     private static final PropertyStore store = new PropertyStore(EntryItem.class);
// 
//     @Override
//     protected PropertyStore getPropertyStore()
//     {
//         return store;
//     }
// 
//     public EntryItem(int id, String content, boolean active)
//     {
//         this.id = id;
//         this.content = content;
//         this.active = active;
//     }
// 
//     private String content;
//     private int id;
//     private boolean active;
// 
//     public int getId()
//     {
//         return id;
//     }
// 
//     public void setId(int id)
//     {
//         notifyListener("Id", this.id, this.id = id);
//     }
// 
//     public String getContent()
//     {
//         return content;
//     }
// 
//     public void setContent(String content)
//     {
//         notifyListener("Content", this.content, this.content = content);
//     }
// 
//     public boolean isActive()
//     {
//         return active;
//     }
// 
//     public void setActive(boolean active)
//     {
//         notifyListener("Active", this.active, this.active = active);
//     }
// }
// 
// Path: Demo/src/main/java/ni3po42/android/tractiondemo/models/IEntryModel.java
// public interface IEntryModel
// {
//     List<EntryItem> getEntries();
// }


// Path: Demo/src/main/java/ni3po42/android/tractiondemo/controllers/EntryController.java
import android.os.Bundle;
import traction.mvc.controllers.FragmentController;
import ni3po42.android.tractiondemo.R;
import ni3po42.android.tractiondemo.models.EntryItem;
import ni3po42.android.tractiondemo.models.IEntryModel;

/* Copyright 2013 Tim Stratton

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */

package ni3po42.android.tractiondemo.controllers;



public class EntryController
    extends FragmentController
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        View.setContentView(R.layout.entry);
    }

    @Override
    public void onStart()
    {
        super.onStart();

        IEntryModel model = View.getScope();