New Control structure

This commit is contained in:
Severin Münger
2013-09-13 00:28:37 +02:00
parent b3e383ea82
commit b1cf630443
13 changed files with 255 additions and 67 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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