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.channel.markup.generic;
032:
033: import de.ug2t.channel.markup.html.renderer.*;
034: import de.ug2t.connector.*;
035: import de.ug2t.kernel.*;
036: import de.ug2t.unifiedGui.*;
037: import de.ug2t.unifiedGui.interfaces.*;
038:
039: public final class MuGenericProgressBar extends MuGenericComponent
040: implements IUnProgressBar, IKePoolable {
041: private int pem_min = 0;
042: private int pem_max = 0;
043: private int pem_progress = 0;
044:
045: private IKeView pem_view = new HtmlProgressBarRenderer();
046:
047: public MuGenericProgressBar(String xName, String xValue, int xMin,
048: int xMax, ACoDataGetter xTplGetter, Object xTplName,
049: MuGenericApplication xAppl) throws Exception {
050: super (xName, xTplGetter, xTplName, xAppl);
051: this .pem_min = xMin;
052: this .pem_max = xMax;
053:
054: this .pcmf_setView(pem_view);
055: this .pcmf_setValue(xValue);
056: this .pcmf_setFixedSize(250, 25, UnFixedSize.FIX_SIZE);
057:
058: return;
059: };
060:
061: // @@
062:
063: public int pcmf_getMin() {
064: return (this .pem_min);
065: }
066:
067: public int pcmf_getMax() {
068: return (this .pem_max);
069: }
070:
071: public int pcmf_getProgress() {
072: return (this .pem_progress);
073: }
074:
075: public void pcmf_setMin(int xMin) {
076: if (this .pem_min == xMin)
077: return;
078:
079: this .pem_min = xMin;
080: this .pcmf_setPropChanged(true);
081: }
082:
083: public void pcmf_setMax(int xMax) {
084: if (this .pem_max == xMax)
085: return;
086:
087: this .pem_max = xMax;
088: this .pcmf_setPropChanged(true);
089: }
090:
091: public void pcmf_setProgress(int xProgress) {
092: if (this .pem_progress == xProgress)
093: return;
094:
095: this .pem_progress = xProgress;
096: this .pcmf_setPropChanged(true);
097: }
098:
099: // @@
100: }
|