Added WSF_WIDGET_COMPOSITE.extend_html_text (READABLE_STRING_8) that should replace the now obsolete "extend_text" Added WSF_WIDGET_COMPOSITE.extend_raw_text (READABLE_STRING_GENERAL), for text that need to be html encoded during html rendering. Made WSF_FORM_RAW_TEXT obsolete.
41 lines
555 B
Plaintext
41 lines
555 B
Plaintext
note
|
|
description: "Widget embedding html text/code, this will render as it is in target html"
|
|
date: "$Date$"
|
|
revision: "$Revision$"
|
|
|
|
class
|
|
WSF_WIDGET_TEXT
|
|
|
|
inherit
|
|
WSF_WIDGET
|
|
|
|
create
|
|
make_with_text
|
|
|
|
feature {NONE} -- Initialization
|
|
|
|
make_with_text (a_text: READABLE_STRING_8)
|
|
do
|
|
text := a_text
|
|
end
|
|
|
|
feature -- Access
|
|
|
|
text: READABLE_STRING_8
|
|
|
|
feature -- Change
|
|
|
|
set_text (a_text: like text)
|
|
do
|
|
text := a_text
|
|
end
|
|
|
|
feature -- Conversion
|
|
|
|
append_to_html (a_theme: WSF_THEME; a_html: STRING_8)
|
|
do
|
|
a_html.append (text)
|
|
end
|
|
|
|
end
|