/*
 * 
 * 
 * Copyright (C) 2004 SIPfoundry Inc.
 * Licensed by SIPfoundry under the LGPL license.
 * 
 * Copyright (C) 2004 Pingtel Corp.
 * Licensed to SIPfoundry under a Contributor Agreement.
 * 
 * $
 */
package org.sipfoundry.sipxconfig.site.phone;

import org.apache.tapestry.BaseComponent;
import org.apache.tapestry.event.PageEvent;
import org.apache.tapestry.event.PageRenderListener;
import org.apache.tapestry.form.IPropertySelectionModel;
import org.sipfoundry.sipxconfig.components.MapSelectionModel;
import org.sipfoundry.sipxconfig.phone.PhoneContext;

/**
 * Editing a phone is reused for creating new phones and editing existing ones
 */
public abstract class EditPhoneForm extends BaseComponent implements PageRenderListener {

    /**
     * all the phoneModels available to the system ready for UI selection 
     */
    public abstract void setPhoneSelectionModel(IPropertySelectionModel phoneModels);
     
    public abstract PhoneContext getPhoneContext();
        
    public void pageBeginRender(PageEvent event_) {
        PhoneContext phoneContext = getPhoneContext();
        setPhoneSelectionModel(new MapSelectionModel(phoneContext.getPhoneFactoryIds()));
    }    
}

@@ -295,903 +295,69 @@
 nt;%0A
-import org.apache.tapestry.event.PageEvent;%0Aimport org.apache.tapestry.event.PageRenderListener;%0Aimport org.apache.tapestry.form.IPropertySelectionModel;%0Aimport org.sipfoundry.sipxconfig.components.MapSelectionModel;%0Aimport org.sipfoundry.sipxconfig.phone.PhoneContext;%0A%0A/**%0A * Editing a phone is reused for creating new phones and editing existing ones%0A */%0Apublic abstract class EditPhoneForm extends BaseComponent implements PageRenderListener %7B%0A%0A    /**%0A     * all the phoneModels available to the system ready for UI selection %0A     */%0A    public abstract void setPhoneSelectionModel(IPropertySelectionModel phoneModels);%0A     %0A    public abstract PhoneContext getPhoneContext();%0A        %0A    public void pageBeginRender(PageEvent event_) %7B%0A        PhoneContext phoneContext = getPhoneContext();%0A        setPhoneSelectionModel(new MapSelectionModel(phoneContext.getPhoneFactoryIds()));%0A    %7D
+%0Apublic abstract class EditPhoneForm extends BaseComponent %7B%0A
     

FIX BUILD: Resolve subversion evil twin issue, File was not shown as modified however it had been. This file should have been commited as part of r4886 merge