note description: "Summary description for {IRON_NODE_HTML_MENU_ITEM}." date: "$Date$" revision: "$Revision$" class IRON_NODE_HTML_LINK create make feature {NONE} -- Initialization make (a_url: like url; a_title: detachable like title) do url := a_url if a_title /= Void then title := a_title else create {STRING_8} title.make_from_string (a_url) end end feature -- Access url: READABLE_STRING_8 title: READABLE_STRING_8 -- html encoded title. sub_links: detachable ARRAYED_LIST [IRON_NODE_HTML_LINK] -- Optional sub links is_active: BOOLEAN feature -- Change set_is_active (b: BOOLEAN) do is_active := b end add_sublink_item (lnk: IRON_NODE_HTML_LINK) local lst: like sub_links do lst := sub_links if lst = Void then create lst.make (1) sub_links := lst end lst.force (lnk) end add_sublink (a_url: READABLE_STRING_8; a_title: detachable READABLE_STRING_8) local lnk: IRON_NODE_HTML_LINK do create lnk.make (a_url, a_title) add_sublink_item (lnk) end ;note copyright: "Copyright (c) 1984-2013, Eiffel Software" license: "GPL version 2 (see http://www.eiffel.com/licensing/gpl.txt)" licensing_options: "http://www.eiffel.com/licensing" copying: "[ This file is part of Eiffel Software's Eiffel Development Environment. Eiffel Software's Eiffel Development Environment is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2 of the License (available at the URL listed under "license" above). Eiffel Software's Eiffel Development Environment is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Eiffel Software's Eiffel Development Environment; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ]" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end