[Buix-commits] r323 - trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui
Author: tchemit Date: 2008-04-03 21:53:38 +0000 (Thu, 03 Apr 2008) New Revision: 323 Added: trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui/AbstractUI.java Log: abstract dialog ui Added: trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui/AbstractUI.java =================================================================== --- trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui/AbstractUI.java (rev 0) +++ trunk/lutinvcs/lutinvcs-core/src/main/java/org/codelutin/vcs/ui/AbstractUI.java 2008-04-03 21:53:38 UTC (rev 323) @@ -0,0 +1,51 @@ +/** + * # #% Copyright (C) 2008 Code Lutin, Tony Chemit + * This program is free software; you + * can redistribute it and/or modify it under the terms of the GNU General + * Public License as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. This program is + * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A + * PARTICULAR PURPOSE. See the GNU General Public License for more details. You + * should have received a copy of the GNU General Public License along with this + * program; if not, write to the Free Software Foundation, Inc., 59 Temple Place + * - Suite 330, Boston, MA 02111-1307, USA. + * # #% + */ +package org.codelutin.vcs.ui; + +import org.codelutin.vcs.ui.handler.AbstractUIHandler; +import org.codelutin.vcs.ui.model.AbstractUIModel; + +/** @author chemit */ +public class AbstractUI extends javax.swing.JDialog { + + protected final AbstractUIModel model; + + protected final AbstractUIHandler handler; + + public AbstractUI() { + // Jaxx always generate the default constructor, so need it, but DO NOT USE IT! + throw new IllegalStateException("the default constructor can NOT be used!"); + } + + public AbstractUI(AbstractUIHandler handler, AbstractUIModel model) { + this.handler = handler; + this.model = model; + UIHelper.setQuitAction(this); + } + + public AbstractUI getUi() { + return this; + } + + public AbstractUIModel getModel() { + return model; + } + + protected AbstractUIHandler getHandler() { + return handler; + } + + +}
participants (1)
-
tchemit@users.labs.libre-entreprise.org