4 |
## $Id$ |
## $Id$ |
5 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
6 |
## $Log$ |
## $Log$ |
7 |
|
## Revision 1.4 2003/04/05 21:17:51 joko |
8 |
|
## extends Class::Abstract (for being able to call '_abstract_method' on it) |
9 |
|
## |
10 |
|
## Revision 1.3 2003/04/04 00:56:08 jonen |
11 |
|
## + add 'mungle_adapter' function |
12 |
|
## |
13 |
## Revision 1.2 2003/03/20 07:56:18 jonen |
## Revision 1.2 2003/03/20 07:56:18 jonen |
14 |
## + added docu |
## + added docu |
15 |
## |
## |
23 |
## ----------------------------------------------------------------------------- |
## ----------------------------------------------------------------------------- |
24 |
*/ |
*/ |
25 |
|
|
26 |
|
|
27 |
|
/** |
28 |
|
* required only for $this->_abstract_method({methodname}) |
29 |
|
* can later be used or not without any problems or further |
30 |
|
* dependencies since this is an abstract base class at the |
31 |
|
* very top of the inheritance hierarchy. |
32 |
|
* |
33 |
|
*/ |
34 |
|
loadModule('Class::Abstract'); |
35 |
|
|
36 |
/** |
/** |
37 |
* AbstractGUIModule class provides an simple way to create new modules |
* AbstractGUIModule class provides an simple way to create new modules |
38 |
* for the Explorer, eg navigation or data browsing elements. |
* for the Explorer, eg navigation or data browsing elements. |
41 |
* @package org.netfrag.app |
* @package org.netfrag.app |
42 |
* @name WebExplorer::Module::AbstractModule |
* @name WebExplorer::Module::AbstractModule |
43 |
*/ |
*/ |
44 |
|
class WebExplorer_Module_AbstractGUIModule extends Class_Abstract { |
|
|
|
|
class WebExplorer_Module_AbstractGUIModule { |
|
45 |
|
|
46 |
|
|
47 |
/** |
/** |
80 |
|
|
81 |
function add_hidden_item($label, $value) { |
function add_hidden_item($label, $value) { |
82 |
//print "Label: $label => $value<br>"; |
//print "Label: $label => $value<br>"; |
83 |
$this->_gui_object->add_hidden_item($label, $value); |
$this->_gui_object->add_hidden_element($label, $value); |
84 |
} |
} |
85 |
|
|
86 |
function &get() { |
function &get() { |
87 |
return $this->_gui_object; |
if($this->_args['adapter']) { |
88 |
|
return $this->mungle_adapter($this->_args['adapter']); |
89 |
|
} else { |
90 |
|
return $this->_gui_object; |
91 |
|
} |
92 |
|
} |
93 |
|
|
94 |
|
function mungle_adapter($label) { |
95 |
|
return php::mkInstance($label, array(&$this->_gui_object)); |
96 |
} |
} |
97 |
|
|
98 |
} |
} |