Added comments to autocompletion, input, navbar, progressbar, validator, webcontrol. Some more little changes.

This commit is contained in:
Severin Münger
2013-09-21 23:01:36 +02:00
parent 252b5ff758
commit 57dd4ce259
33 changed files with 232 additions and 138 deletions

View File

@@ -7,12 +7,14 @@ note
deferred class
WSF_AUTOCOMPLETION
feature
feature -- Access
autocompletion (input: STRING): JSON_ARRAY
-- JSON array of suggestions that fit the specific input
deferred
end
template: detachable STRING
-- Customizable template
end

View File

@@ -14,9 +14,10 @@ inherit
create
make
feature {NONE}
feature {NONE} -- Initialization
make (l: ITERABLE [STRING])
-- Initialize
do
list := l
end
@@ -24,6 +25,7 @@ feature {NONE}
feature -- Implementation
autocompletion (input: STRING): JSON_ARRAY
-- Implementation
local
o: JSON_OBJECT
do
@@ -33,14 +35,13 @@ feature -- Implementation
loop
if c.item.as_lower.has_substring (input.as_lower) then
create o.make
o.put (create {JSON_STRING}.make_json(c.item), "value")
o.put (create {JSON_STRING}.make_json (c.item), "value")
Result.add (o)
end
end
end
feature
list: ITERABLE [STRING]
-- List containing suggestions
end