001: /*
002: * The contents of this file are subject to the terms of the Common Development
003: * and Distribution License (the License). You may not use this file except in
004: * compliance with the License.
005: *
006: * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
007: * or http://www.netbeans.org/cddl.txt.
008: *
009: * When distributing Covered Code, include this CDDL Header Notice in each file
010: * and include the License file at http://www.netbeans.org/cddl.txt.
011: * If applicable, add the following below the CDDL Header, with the fields
012: * enclosed by brackets [] replaced by your own identifying information:
013: * "Portions Copyrighted [year] [name of copyright owner]"
014: *
015: * The Original Software is NetBeans. The Initial Developer of the Original
016: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
017: * Microsystems, Inc. All Rights Reserved.
018: */
019:
020: package org.netbeans.modules.soa.mapper.common;
021:
022: import java.beans.PropertyChangeListener;
023:
024: /**
025: * <p>
026: *
027: * Title: Generic mapper view </p> <p>
028: *
029: * Description: Provides a basic functionalities of all generic mapper views. In
030: * design, the view model is for displaying only. Subclasses should normally not
031: * modify the view model. </p> <p>
032: *
033: * Copyright: Copyright (c) 2002 </p> <p>
034: *
035: * Company: </p>
036: *
037: * @author Un Seng Leong
038: * @created December 4, 2002
039: * @version 1.0
040: */
041: public interface IMapperView {
042:
043: /**
044: * The property name of a change of this model.
045: */
046: public static final String MODEL_CHANGE = "MapperV.Model";
047:
048: /**
049: * The property name of a change of this view name.
050: */
051: public static final String NAME_CHANGE = "MapperV.Name";
052:
053: /**
054: * Set the view model of this view should display.
055: *
056: * @param model the link mode to display
057: */
058: public void setViewModel(IMapperViewModel model);
059:
060: /**
061: * Return the current mapper view model of this view.
062: *
063: * @return the mapper view model of this view.
064: */
065: public IMapperViewModel getViewModel();
066:
067: /**
068: * Return a name of this view.
069: *
070: * @return a String repersentation of this view name.
071: */
072: public String getViewName();
073:
074: /**
075: * Set a name of this view.
076: *
077: * @param name a String repersentation of this view name.
078: */
079: public void setViewName(String name);
080:
081: /**
082: * Set the auto layout object of this view.
083: *
084: * @param autoLayout the auto layout of this view.
085: */
086: public void setAutoLayout(IMapperAutoLayout autoLayout);
087:
088: /**
089: * Return the auto layout object of this view.
090: *
091: * @return the auto layout object of this view.
092: */
093: public IMapperAutoLayout getAutoLayout();
094:
095: /**
096: * Adds a PropertyChangeListener to the listener list.
097: *
098: * @param listener the PropertyChangeListener to be added
099: */
100: public void addPropertyChangeListener(
101: PropertyChangeListener listener);
102:
103: /**
104: * Removes a PropertyChangeListener from the listener list.
105: *
106: * @param listener the PropertyChangeListener to be added
107: */
108: public void removePropertyChangeListener(
109: PropertyChangeListener listener);
110:
111: /**
112: * Adds a IMapperListener to the listener list.
113: *
114: * @param listener the IMapperListener to be added
115: */
116: public void addMapperListener(IMapperListener listener);
117:
118: /**
119: * Removes a IMapperListener from the listener list.
120: *
121: * @param listener the IMapperListener to be added
122: */
123: public void removeMapperListener(IMapperListener listener);
124: }
|