indexing description: "Objects that ..." author: "" date: "$Date$" revision: "$Revision$" deferred class FEATURE_MODIFIER feature -- Initialization initialize (par: EV_TABLE; top, left: INTEGER; title: STRING; cmd: EV_COMMAND) is -- Create the label and the text. require valid_title: title /= Void do create_label (par, top, left, title) create_button (par, top, left + 2, cmd) end feature -- Access button: EV_BUTTON -- Fetch value button feature -- Status setting disable_button is -- Disable the button do button.set_insensitive (True) end feature {NONE} -- Basic operation create_button (par: EV_TABLE; top, left: INTEGER; cmd: EV_COMMAND) is -- Create the button. do create button.make_with_text (par, "Fetch Value") par.set_child_position (button, top, left, top + 1, left + 1) if cmd /= Void then button.add_click_command (cmd, Void) else button.set_insensitive (True) end button.set_vertical_resize (False) end create_label (par: EV_TABLE; top, left: INTEGER; title: STRING) is -- Create the label. local label: EV_LABEL do create label.make_with_text (par, title) par.set_child_position (label, top, left, top + 1, left + 1) label.set_vertical_resize (False) label.set_horizontal_resize (False) end end -- class FEATURE_MODIFIER --|---------------------------------------------------------------- --| EiffelVision2: library of reusable components for ISE Eiffel. --| Copyright (C) 1986-2001 Interactive Software Engineering Inc. --| All rights reserved. Duplication and distribution prohibited. --| May be used only with ISE Eiffel, under terms of user license. --| Contact ISE for any other use. --| --| Interactive Software Engineering Inc. --| ISE Building --| 360 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support: http://support.eiffel.com> --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------