01: // @@
02: // @@
03: /*
04: * Wi.Ser Framework
05: *
06: * Version: 1.8.1, 20-September-2007
07: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
08: *
09: * This library is free software; you can redistribute it and/or
10: * modify it under the terms of the GNU Lesser General Public
11: * License as published by the Free Software Foundation; either
12: * version 2 of the License, or (at your option) any later version.
13: *
14: * This library is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * Lesser General Public License for more details.
18: *
19: * You should have received a copy of the GNU Lesser General Public
20: * License along with this library located in LGPL.txt in the
21: * license directory; if not, write to the
22: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23: * Boston, MA 02111-1307, USA.
24: *
25: * If this agreement does not cover your requirements, please contact us
26: * via email to get detailed information about the commercial license
27: * or our service offerings!
28: *
29: */
30: // @@
31: package de.ug2t.unifiedGui.cellRenderer;
32:
33: import de.ug2t.unifiedGui.interfaces.*;
34:
35: /**
36: * @author Dirk
37: *
38: * date: 20.02.2005
39: *
40: * <p>
41: * Purpose: This interface is used to render cell content and special cell properties of a table widget
42: * </p>
43: */
44: public interface IUnTableItemRenderer {
45: /**
46: * <p>
47: * Renderes a list item
48: * </p>
49: * <p>
50: *
51: * @return rendered widget
52: * </p>
53: * <p>
54: * @param xToRender
55: * object wich has to be rendered
56: * @param xRow
57: * row
58: * @param xCol
59: * collumn
60: * @param xTable
61: * table widget
62: * </p>
63: */
64: public Object pcmf_getRenderWidget(Object xToRender, int xRow,
65: int xCol, IUnTable xTable);
66:
67: /**
68: * <p>
69: * Informs the framework whether you want to render special cell properties or not
70: * If you do not need the functionality you can use the abstract class AUnTableItemRenderer instead
71: * </p>
72: * <p>
73: *
74: * @return true indicates special properties, otherwise false
75: * </p>
76: * <p>
77: */
78: public boolean pcmf_doCellPropSettings();
79:
80: /**
81: * <p>
82: * Sets special cell propertires during the render process
83: * If you do not need the functionality you can use the abstract class AUnTableItemRenderer instead
84: * </p>
85: * <p>
86: *
87: * @param xToRender
88: * object wich has to be rendered
89: * @param xRow
90: * row
91: * @param xCol
92: * collumn
93: * @param xTable
94: * table widget
95: * </p>
96: */
97: public void pcmf_setCellProps(Object xToRender, int xRow, int xCol,
98: IUnTable xTable);
99: }
|