More about Pusher

What fields are in Pusher: private int index; private String label = null; private String value = null; private String category = null; private Color color; private int x; private int y; private boolean visible; Each Pusher has an index to give it uniqueness. The label is what is displayed on the panel and the […]

Source code PanelConfig

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package matchtagger;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 *
 * @author Eric
 */
public class PanelConfig {

    private final String name;
    private final int columns;
    private final int rows;
    private List<Pusher> pushers = new ArrayList<>();

    /**
     *
     * @param name
     * @param columns
     * @param rows
     */
    public PanelConfig(String name, int columns, int rows) {
        this.name = name;
        this.columns = columns;
        this.rows = rows;       
    }

    /**
     *
     * @param pushers
     */
    public void setPushers(List<Pusher> pushers) {
        Collections.sort(pushers);
        this.pushers = pushers;
    }

    /**
     * Returns the name of the panel to be used in header
     * 
     * @return      the name of the panel
     */
    public String getName() {
        return name;
    }

    /**
     *
     * @return
     */
    public int getColumns() {
        return columns;
    }

    /**
     *
     * @return      the number of rows of this panel
     */
    public int getRows() {
        return rows;
    }

    /**
     *
     * @return
     */
    public List<Pusher> getPushers() {
        return pushers;
    }
}

EasyTagPanel Configuration file

To create the button panel, I am using the same kind of XML file used by Dartfish EasyTag. The advantage of doing this, is also a quick way to check your XML file before sending it to your iPhone, iPad of Android when you want to use your button panel. Buttons are now named pushers. […]