Move project to wsf_js_widget
This commit is contained in:
57
library/server/wsf_js_widget/webcontrol/wsf_basic_control.e
Normal file
57
library/server/wsf_js_widget/webcontrol/wsf_basic_control.e
Normal file
@@ -0,0 +1,57 @@
|
||||
note
|
||||
description: "Summary description for {WSF_BASIC_CONTROL}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
WSF_BASIC_CONTROL
|
||||
|
||||
inherit
|
||||
|
||||
WSF_STATELESS_CONTROL
|
||||
|
||||
create
|
||||
make_control,
|
||||
make_with_body
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make_control (t: STRING)
|
||||
do
|
||||
make_with_body (t, "", "")
|
||||
end
|
||||
|
||||
make_with_body (t,attr,a_content: STRING)
|
||||
do
|
||||
make (t)
|
||||
attributes := attr
|
||||
content := a_content
|
||||
end
|
||||
|
||||
feature -- Access
|
||||
|
||||
attributes: STRING
|
||||
|
||||
content: STRING
|
||||
|
||||
feature -- Rendering
|
||||
|
||||
render: STRING
|
||||
do
|
||||
Result := render_tag (content, attributes)
|
||||
end
|
||||
|
||||
feature
|
||||
|
||||
set_attributes (a: STRING)
|
||||
do
|
||||
attributes := a
|
||||
end
|
||||
|
||||
set_content (c: STRING)
|
||||
do
|
||||
content := c
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user