GenericDocumentAbstract.java :  » Code-Analyzer » beautyJ » de » gulden » framework » amoda » generic » document » Java Open Source

Java Open Source » Code Analyzer » beautyJ 
beautyJ » de » gulden » framework » amoda » generic » document » GenericDocumentAbstract.java
/*
 * Project: AMODA - Abstract Modeled Application
 * Class:   de.gulden.framework.amoda.generic.document.GenericDocumentAbstract
 * Version: snapshot-beautyj-1.1
 *
 * Date:    2004-09-29
 *
 * This is a snapshot version of the AMODA 0.2 development branch,
 * it is not released as a seperate version.
 * For AMODA, see http://amoda.berlios.de/.
 *  
 * This is licensed under the GNU Lesser General Public License (LGPL)
 * and comes with NO WARRANTY.
 *
 * Author:  Jens Gulden
 * Email:   amoda@jensgulden.de
 */

package de.gulden.framework.amoda.generic.document;

import de.gulden.framework.amoda.model.core.*;
import de.gulden.framework.amoda.model.document.*;
import de.gulden.framework.amoda.model.document.Document;
import java.lang.*;
import java.util.*;

/**
 * Class GenericDocumentAbstract.
 *  
 * @author  Jens Gulden
 * @version  snapshot-beautyj-1.1
 */
public abstract class GenericDocumentAbstract implements Document {

    // ------------------------------------------------------------------------
    // --- fields                                                           ---
    // ------------------------------------------------------------------------

    protected Application application;

    protected String title;


    // ------------------------------------------------------------------------
    // --- methods                                                          ---
    // ------------------------------------------------------------------------

    public void init(Application application) {
        setApplication(application);
    }

    public Application getApplication() {
        return application;
    }

    public void setApplication(Application _application) {
        application = _application;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String _title) {
        title = _title;
    }

    public Workspace getWorkspace() {
        return getApplication().getWorkspace();
    }

    public abstract DocumentView createDefaultView();

} // end GenericDocumentAbstract
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.