New Control structure
This commit is contained in:
@@ -18,7 +18,7 @@ feature {NONE}
|
||||
|
||||
make_checkbox (n: STRING; l: STRING; c: STRING)
|
||||
do
|
||||
make (n, "input")
|
||||
make_control (n, "input")
|
||||
label := l
|
||||
checked_value := c
|
||||
end
|
||||
|
||||
@@ -31,18 +31,15 @@ feature {NONE}
|
||||
feature
|
||||
|
||||
value: LIST [STRING]
|
||||
local
|
||||
l: LINKED_LIST [STRING]
|
||||
do
|
||||
create l.make
|
||||
create {LINKED_LIST [STRING]} Result.make
|
||||
across
|
||||
controls as c
|
||||
loop
|
||||
if c.item.value then
|
||||
l.extend (c.item.checked_value)
|
||||
Result.extend (c.item.checked_value)
|
||||
end
|
||||
end
|
||||
Result := l
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -18,7 +18,7 @@ feature {NONE}
|
||||
|
||||
make_input (n: STRING; v: STRING)
|
||||
do
|
||||
make (n, "input")
|
||||
make_control (n, "input")
|
||||
type := "text"
|
||||
text := v
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user