Examples of MainModel


Examples of com.nexirius.jnex.example.datamodel.MainModel

    public String getApplicationName() {
        return "MediaApplication";
    }

    public void preInit() {
        mainModel = new MainModel();

        file = new DataModelFile(mainModel.getMediaArray());

        file.setDirectory("c:\\temp");
        file.setExtension(".txt");
View Full Code Here

Examples of com.nexirius.jnex.example.datamodel.MainModel

    /**
     * Method that returns the main model in its initial state
     */
    public DataModel createHomeModel() {
        MainModel mainModel;

        mainModel = new MainModel();

        XFile textFile = getTextFile();

        if (textFile.exists()) {
            try {
                mainModel.dropData(new String(textFile.getBytes()));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }

View Full Code Here

Examples of com.nexirius.jnex.example.datamodel.MainModel

    }

    //Method that defines that actual command and should return true if the transition
    //it could be mapped into should take place.
    public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
        MainModel mainModel = (MainModel) sessionVariable.getApplicationModel();

        if (sessionVariable.getActModel().isValid()) {
            sessionVariable.getActState().finishDuplicatePopup();
            mainModel.getPersonArray().sort();

            return true;
        }

        return false;
View Full Code Here

Examples of com.nexirius.jnex.example.datamodel.MainModel

    public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
        DataModelVector selectedChildren = sessionVariable.getSelectedChildren();
        DataModelEnumeration en = selectedChildren.getEnumeration();

        while (en.hasMore()) {
            MainModel mainModel = ((MainModel) sessionVariable.getApplicationModel());

            DataModel model = en.next();
            mainModel.getPersonArray().removeItem(model);
        }

        return true;
    }
View Full Code Here

Examples of com.nexirius.jnex.example.datamodel.MainModel

        return false;
    }

    public boolean execute(HTMLSessionVariable sessionVariable) throws Exception {
        String attr = sessionVariable.getRequestParameter("sortAttribute");
        MainModel mainModel = (MainModel) sessionVariable.getApplicationModel();

        mainModel.getPersonArray().sortByAttribute(attr);

        return true;
    }
View Full Code Here

Examples of com.nexirius.theteam.datamodel.MainModel

import com.nexirius.theteam.datamodel.MainModel;

public class MainController extends DataController {
    public MainController(ViewerFactory factory)
            throws Exception {
        this.setDataViewer(factory.createDefaultEditor(new MainModel()));
    }
View Full Code Here

Examples of com.nexirius.tools.properties.model.MainModel

    public String getApplicationName() {
        return "EditProperties";
    }

    public void preInit() {
        mainModel = new MainModel();

        mainModel.addTitleListener(new TitleListener());
        // append the exit command to the main model
        mainModel.appendMethod(new ExitCommand());
        // attach the about command to the main model
View Full Code Here

Examples of com.vessosa.g15lastfmplayer.model.MainModel

    checkForArchiteture();
    Config.initConfig();
    if (Config.getValueAsBoolean(Config.CHECK_FOR_UPDATES_ON_STARTUP))
      checkForUpdates();

    getController().addModel(new MainModel());

    getG15MediaKeys();
    registerMediaKeys();
    getRadioSearchScreen();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.