Commit 54c9ee68 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Removed old files

parent 400c1b43
Loading
Loading
Loading
Loading

README.txt

deleted100644 → 0
+0 −14
Original line number Diff line number Diff line
Wicket libraries used to compile TAP Schema Manager:

1) Wicket 1.6.0 - slf4j-api-1.4.2.jar
2) Wicket 1.6.0 - slf4j-jdk14-1.4.2.jar
3) Wicket 1.6.0 - wicket-core-6.0.0.jar
4) Wicket 1.6.0 - wicket-devutils-6.0.0.jar
5) Wicket 1.6.0 - wicket-extensions-6.0.0.jar
6) Wicket 1.6.0 - wicket-ioc-6.0.0.jar
7) Wicket 1.6.0 - wicket-request-6.0.0.jar
8) Wicket 1.6.0 - wicket-util-6.0.0.jar

Instructions on how to install the 1.6.0 Wicket libraries are at the following link:

https://blogs.oracle.com/geertjan/entry/wicket_1_6_0_in

old/src/conf/MANIFEST.MF

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
Manifest-Version: 1.0
+0 −89
Original line number Diff line number Diff line
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.inaf.oats.ia2.tap.utils;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.form.OnChangeAjaxBehavior;
import org.apache.wicket.markup.html.form.CheckBox;
import org.apache.wicket.model.IModel;

/**
 * AjaxCheckBox class extends CheckBox class to add an univocal ID (called idString) to it.
 * The onUpdate method of the OnChangeAjaxBehavior is never called, probably because
 * it is covered by other behaviors implemented in other files directly with the
 * AjaxCheckBox instances.
 * 
 * @author pietro
 */
public class AjaxCheckBoxCustom extends CheckBox {
    
    private String idString;
    
    /**
     * AjaxCheckBox constructor
     * 
     * @param id
     * @param model 
     */
    public AjaxCheckBoxCustom(String id, IModel model)
    {
        super(id, model);
        /*
        OnChangeAjaxBehavior onChangeAjaxBehavior = new OnChangeAjaxBehavior()
        {
            //onUpdate is never called: because is it covered by another behavior?
            @Override
            protected void onUpdate(AjaxRequestTarget target)
            {
                SchemaPage schemaPage = (SchemaPage)getPage();
                String idString = getIdString();
                String[] idSplit = getIdString().split("-");
                if (idSplit.length == 2)
                {
                    if (idSplit[1].equals("checked"))
                    {
                        schemaPage.tapschema.schemasMap.get(idSplit[0])
                                .checked
                                = (boolean)getModelObject();
                    }
                }
                else if (idSplit.length == 3)
                {
                    if (idSplit[2].equals("checked"))
                    {
                        schemaPage.tapschema.schemasMap.get(idSplit[0])
                                .tablesMap.get(idSplit[1])
                                .checked
                                = (boolean)getModelObject();
                    }
                }
                else if (idSplit.length == 4)
                {
                    if (idSplit[3].equals("checked"))
                    {
                        schemaPage.tapschema.schemasMap.get(idSplit[0])
                                .tablesMap.get(idSplit[1])
                                .columnsMap.get(idSplit[2])
                                .checked
                                = (boolean)getModelObject();
                    }
                }
            }
        };
        add(onChangeAjaxBehavior);
        */
    }
    
    public String getIdString()
    {
        return idString;
    }
    
    public void setIdString(String idString)
    {
        this.idString = idString;
    }
    
}
+0 −545

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −11
Original line number Diff line number Diff line
package it.inaf.oats.ia2.tap.utils;

/**
 *
 * @author Sonia Zorba <zorba at oats.inaf.it>
 */
public enum AlertType {
    INFO,
    ERROR,
    WARNING
}
Loading