Moved set_attributes from BASIC_CONTROL to STATELESS_CONTROL

This commit is contained in:
severin
2014-01-04 10:30:34 +01:00
parent 9c9a132329
commit 37aac7053a
5 changed files with 15 additions and 15 deletions

View File

@@ -27,7 +27,7 @@ feature {NONE} -- Initialization
end
make_with_tag_name (title, t: STRING)
-- Make a dropdown control with specified tag name and menu title (such as li)
-- Make a dropdown control with specified tag name (such as li) and menu title
do
make_multi_control_with_tag_name (t)
add_class ("dropdown")

View File

@@ -20,7 +20,7 @@ create
feature {NONE} -- Initialization
make (v: STRING)
-- Initialize with specified name and value
-- Initialize with specified value
do
make_value_control ("input")
type := "text"

View File

@@ -36,7 +36,7 @@ feature {NONE} -- Initialization
end
make_with_body_class (t, attr, c, b: STRING)
-- Initialize with specific attributes and body
-- Initialize with specific class, attributes and body
do
make_with_body (t, attr, b)
if not c.is_empty then
@@ -54,12 +54,6 @@ feature -- Rendering
feature -- Change
set_attributes (a: STRING)
-- Set the attributes string of this control
do
attributes := a
end
set_body (b: STRING)
-- Set the body of this control
do

View File

@@ -19,7 +19,7 @@ inherit
feature {NONE} -- Initialization
make (a_tag_name: STRING)
-- Initialize with specified control name and tag
-- Initialize with specified and tag
require
not a_tag_name.is_empty
do

View File

@@ -43,6 +43,12 @@ feature -- Change
css_classes.prune (cla)
end
set_attributes (a: STRING)
-- Set the attributes of this control
do
attributes := a
end
feature -- Rendering
render_tag (body: STRING; attrs: detachable STRING): STRING