Change STRING TO STRING_32
This commit is contained in:
@@ -12,7 +12,7 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (a_header, a_field: STRING)
|
||||
make (a_header, a_field: STRING_32)
|
||||
do
|
||||
header := a_header
|
||||
field_name := a_field
|
||||
@@ -21,7 +21,7 @@ feature {NONE} -- Initialization
|
||||
|
||||
feature -- Render
|
||||
|
||||
render_column (e: WSF_ENTITY): STRING
|
||||
render_column (e: WSF_ENTITY): STRING_32
|
||||
-- Return the rendered column cell for a specific entity (row)
|
||||
do
|
||||
if attached e.item (field_name) as data then
|
||||
@@ -33,12 +33,12 @@ feature -- Render
|
||||
|
||||
feature -- Properties
|
||||
|
||||
header: STRING
|
||||
header: STRING_32
|
||||
|
||||
sortable: BOOLEAN
|
||||
|
||||
sorting_name: STRING
|
||||
sorting_name: STRING_32
|
||||
|
||||
field_name: STRING
|
||||
field_name: STRING_32
|
||||
|
||||
end
|
||||
|
||||
@@ -29,7 +29,7 @@ feature {NONE} -- Initialization
|
||||
|
||||
feature -- Render
|
||||
|
||||
render_item (item: G): STRING
|
||||
render_item (item: G): STRING_32
|
||||
-- Render table row
|
||||
do
|
||||
Result := ""
|
||||
@@ -41,7 +41,7 @@ feature -- Render
|
||||
Result := render_tag_with_tagname ("tr", Result, "", "")
|
||||
end
|
||||
|
||||
render_header: STRING
|
||||
render_header: STRING_32
|
||||
-- Render table header
|
||||
do
|
||||
Result := ""
|
||||
@@ -53,10 +53,10 @@ feature -- Render
|
||||
Result := render_tag_with_tagname ("thead", render_tag_with_tagname ("tr", Result, "", ""), "", "")
|
||||
end
|
||||
|
||||
render: STRING
|
||||
render: STRING_32
|
||||
-- Render entre table and subcontrols
|
||||
local
|
||||
table: STRING
|
||||
table: STRING_32
|
||||
do
|
||||
table := render_tag_with_tagname ("table", render_header + render_tag_with_tagname ("tbody", render_body, "", ""), "", "table table-striped")
|
||||
Result := ""
|
||||
|
||||
@@ -21,14 +21,14 @@ create
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make (a_header, a_field: STRING)
|
||||
make (a_header, a_field: STRING_32)
|
||||
do
|
||||
make_column (a_header, a_field)
|
||||
end
|
||||
|
||||
feature -- Render
|
||||
|
||||
render_column (e: WSF_ENTITY): STRING
|
||||
render_column (e: WSF_ENTITY): STRING_32
|
||||
-- Return the rendered column image cell for a specific entity (row)
|
||||
do
|
||||
if attached e.item (field_name) as data then
|
||||
|
||||
@@ -48,7 +48,7 @@ feature {WSF_PAGE_CONTROL, WSF_CONTROL} -- State management
|
||||
|
||||
feature --Event handling
|
||||
|
||||
handle_callback (cname: LIST[STRING]; event: STRING; event_parameter: detachable ANY)
|
||||
handle_callback (cname: LIST[STRING_32]; event: STRING_32; event_parameter: detachable ANY)
|
||||
-- Handle goto/next/prev events
|
||||
do
|
||||
if Current.control_name.same_string (cname[1]) then
|
||||
@@ -57,7 +57,7 @@ feature --Event handling
|
||||
elseif event.same_string ("prev") then
|
||||
datasource.set_page (datasource.page - 1)
|
||||
elseif event.same_string ("goto") then
|
||||
if attached {STRING}event_parameter as p and then attached p.to_integer as i then
|
||||
if attached {STRING_32}event_parameter as p and then attached p.to_integer as i then
|
||||
datasource.set_page (i)
|
||||
end
|
||||
end
|
||||
@@ -67,12 +67,12 @@ feature --Event handling
|
||||
|
||||
feature -- Render
|
||||
|
||||
render: STRING
|
||||
render: STRING_32
|
||||
-- Render paging control
|
||||
local
|
||||
paging_start: INTEGER
|
||||
paging_end: INTEGER
|
||||
cssclass: STRING
|
||||
cssclass: STRING_32
|
||||
do
|
||||
Result := render_tag_with_tagname ("li", render_tag_with_tagname ("a", "«", "href=%"#%" data-nr=%"prev%"", ""), "", "")
|
||||
paging_start := (datasource.page - 4).max (1)
|
||||
|
||||
@@ -60,12 +60,12 @@ feature {WSF_PAGE_CONTROL, WSF_CONTROL} -- State management
|
||||
|
||||
feature -- Rendering
|
||||
|
||||
render_item (item: G): STRING
|
||||
render_item (item: G): STRING_32
|
||||
--Render item
|
||||
deferred
|
||||
end
|
||||
|
||||
render_body: STRING
|
||||
render_body: STRING_32
|
||||
--Render Body
|
||||
do
|
||||
Result := ""
|
||||
@@ -76,10 +76,10 @@ feature -- Rendering
|
||||
end
|
||||
end
|
||||
|
||||
render: STRING
|
||||
render: STRING_32
|
||||
--Render repeater inclusive paging if paging is available
|
||||
local
|
||||
content: STRING
|
||||
content: STRING_32
|
||||
do
|
||||
content := render_tag_with_tagname ("div", render_body, "", "repeater_content")
|
||||
Result := ""
|
||||
|
||||
Reference in New Issue
Block a user