001: // @@
002: // @@
003: /*
004: * Wi.Ser Framework
005: *
006: * Version: 1.8.1, 20-September-2007
007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library located in LGPL.txt in the
021: * license directory; if not, write to the
022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023: * Boston, MA 02111-1307, USA.
024: *
025: * If this agreement does not cover your requirements, please contact us
026: * via email to get detailed information about the commercial license
027: * or our service offerings!
028: *
029: */
030: // @@
031: package de.ug2t.unifiedGui.loader;
032:
033: import de.ug2t.kernel.*;
034:
035: /**
036: * @author Dirk
037: *
038: * date: 20.02.2005
039: *
040: * <p>
041: * Purpose: IUnLoader is the common gatway to Swing model classes. Loaders are
042: * used to transfer Swing model data to WiSer widgets. The loader is able to use
043: * a renderer to transform the model data into the view.
044: *
045: * Each loader has to implement this interface and the following optinal
046: * functions: public xxxModel pcmf_getModel(); public void pcmf_setRenderer
047: * (base_xxxItemRenderer_if xRenderer);
048: *
049: * </p>
050: */
051: public interface IUnLoader {
052: /**
053: * <p>
054: * Loads the corresponding widget with the model data
055: * </p>
056: */
057: public void pcmf_load();
058:
059: /**
060: * <p>
061: * Starts a transaction. This means that all model changes are bufferd
062: * (without refreshing the view) until a commit is executed
063: * </p>
064: */
065: public void pcmf_beginTr();
066:
067: /**
068: * <p>
069: * Commits a transaction and updates the view
070: * </p>
071: */
072: public void pcmf_commitTr();
073:
074: /**
075: * <p>
076: * Disconnects a model from the loader
077: * </p>
078: */
079: public void pcmf_disconnectModel();
080:
081: /**
082: * <p>
083: * Connects a model to the loader
084: * </p>
085: * <p>
086: * </p>
087: * <p>
088: *
089: * @param xModel
090: * model to connect
091: * </p>
092: */
093: public void pcmf_connectModel(Object xModel);
094:
095: /**
096: * <p>
097: * Sets a post execute function which is acleed after the loading has been completed
098: * </p>
099: * <p>
100: * </p>
101: * <p>
102: *
103: * @param xPostFct
104: * post exec function object
105: * </p>
106: */
107: public void pcmf_setPostFct(IKeExecutable xPostFct);
108: }
|