indexing
description: "EiffelVision text component. Implementation interface."
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date: 2006-03-22 23:29:03 -0800 (Wed, 22 Mar 2006) $"
revision: "$Revision: 57641 $"
deferred class interface
EV_TEXT_COMPONENT_I
feature
accept_cursor: EV_POINTER_STYLE
pebble
EV_PICK_AND_DROPABLE_I
actual_drop_target_agent: FUNCTION [ANY, TUPLE [INTEGER_32, INTEGER_32], EV_ABSTRACT_PICK_AND_DROPABLE]
`Void'
`Current'
EV_WIDGET_I
background_color: EV_COLOR
EV_COLORIZABLE_I
clipboard_content: STRING_32
`Result'
configurable_target_menu_handler: PROCEDURE [ANY, TUPLE [menu: EV_MENU; target_list: ARRAYED_LIST [EV_PND_TARGET_DATA]; source: EV_PICK_AND_DROPABLE; source_pebble: ANY]]
EV_PICK_AND_DROPABLE_I
default_key_processing_handler: PREDICATE [ANY, TUPLE [EV_KEY]]
`Current'
`True'
EV_WIDGET_I
deny_cursor: EV_POINTER_STYLE
EV_PICK_AND_DROPABLE_I
foreground_color: EV_COLOR
EV_COLORIZABLE_I
generating_type: STRING_8
ANY
ensure ANY
generating_type_not_void: Result /= Void
generating_type_not_empty: not Result.is_empty
generator: STRING_8
ANY
ensure ANY
generator_not_void: Result /= Void
generator_not_empty: not Result.is_empty
help_context: FUNCTION [ANY, TUPLE, EV_HELP_CONTEXT]
EV_HELP_CONTEXTABLE_I
ensure EV_HELP_CONTEXTABLE_I
current_if_exists: internal_help_context /= Void implies Result = internal_help_context
internal_pointer_style: EV_POINTER_STYLE
EV_WIDGET_I
is_dock_executing: BOOLEAN
`Current'
EV_DOCKABLE_SOURCE_I
is_dockable: BOOLEAN
`Current'
EV_DOCKABLE_SOURCE_I
is_external_docking_enabled: BOOLEAN
`Current'
EV_DOCKABLE_SOURCE_I
is_external_docking_relative: BOOLEAN
`Current'
`Current'
EV_DOCKABLE_SOURCE_I
maximum_character_width: INTEGER_32
`Current'
not_external_docking_enabled: BOOLEAN
`is_externally_dockable'
`is_externally_dockable'
`True'`is_externally_dockable'
EV_DOCKABLE_SOURCE_I
not_is_external_docking_relative: BOOLEAN
`Current'
`Current'
is_external_docking_relative
EV_DOCKABLE_SOURCE_I
original_parent_position: INTEGER_32
EV_DOCKABLE_SOURCE_I
parent: EV_CONTAINER
`Current'
`Current'
EV_WIDGET_I
pebble: ANY
EV_PICK_AND_DROPABLE_I
pebble_function: FUNCTION [ANY, TUPLE, ANY]
EV_PICK_AND_DROPABLE_I
pebble_positioning_enabled: BOOLEAN
`True'
pebble_x_positionpebble_y_position
`False'
EV_PICK_AND_DROPABLE_I
pebble_x_position: INTEGER_32
`Current'
EV_PICK_AND_DROPABLE_I
pebble_y_position: INTEGER_32
`Current'
EV_PICK_AND_DROPABLE_I
pointer_position: EV_COORDINATE
`Current'
EV_WIDGET_I
ensure EV_WIDGET_I
result_not_void: Result /= Void
pointer_style: EV_POINTER_STYLE
`set_pointer_position'
EV_WIDGET_I
real_source: EV_DOCKABLE_SOURCE
`Result'
`Current'
EV_DOCKABLE_SOURCE_I
real_target: EV_DOCKABLE_TARGET
`Result'
`Current'
EV_WIDGET_I
selected_text: STRING_32
`Current'
require
has_selection: has_selection
text: STRING_32
EV_TEXTABLE_I
ensure EV_TEXTABLE_I
not_void: Result /= Void
cloned: Result /= text
text_length: INTEGER_32
`Current'
ensure
result_not_negative: Result >= 0
tooltip: STRING_32
`Current'
EV_TOOLTIPABLE_I
feature
height: INTEGER_32
EV_POSITIONED_I
minimum_height: INTEGER_32
EV_POSITIONED_I
minimum_width: INTEGER_32
EV_POSITIONED_I
screen_x: INTEGER_32
EV_WIDGET_I
screen_y: INTEGER_32
EV_WIDGET_I
width: INTEGER_32
EV_POSITIONED_I
x_position: INTEGER_32
x_position
EV_POSITIONED_I
y_position: INTEGER_32
y_position
EV_POSITIONED_I
feature
frozen deep_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies (other /= Void and then some.same_type (other))
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
frozen is_deep_equal (other: EV_TEXT_COMPONENT_I): BOOLEAN
`Current'`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
shallow_implies_deep: standard_is_equal (other) implies Result
same_type: Result implies same_type (other)
symmetric: Result implies other.is_deep_equal (Current)
is_equal (other: EV_TEXT_COMPONENT_I): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
frozen standard_equal (some: ?ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: EV_TEXT_COMPONENT_I): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
caret_position: INTEGER_32
closest_dockable_target: EV_DOCKABLE_TARGET
`Result'is_dockable
`Result'`Void'
EV_DOCKABLE_SOURCE_I
ensure EV_DOCKABLE_SOURCE_I
result_is_dockable: Result /= Void implies Result.is_docking_enabled
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
get_next_target (a_widget: EV_WIDGET): EV_DOCKABLE_TARGET
`Result'is_dockable
`current_target'
`Result'`Void'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
a_widget_not_void: a_widget /= Void
ensure EV_DOCKABLE_SOURCE_I
result_is_dockable: Result /= Void implies Result.is_docking_enabled
has_selection: BOOLEAN
`Current'
internal_non_sensitive: BOOLEAN
`Current'
interface
EV_SENSITIVE_I
is_destroyed: BOOLEAN
`Current'
EV_ANY_I
is_editable: BOOLEAN
is_tabable_from: BOOLEAN
EV_TAB_CONTROLABLE_I
is_tabable_to: BOOLEAN
EV_TAB_CONTROLABLE_I
is_transport_enabled: BOOLEAN
EV_PICK_AND_DROPABLE_I
mode_is_configurable_target_menu: BOOLEAN
EV_PICK_AND_DROPABLE_I
mode_is_drag_and_drop: BOOLEAN
EV_PICK_AND_DROPABLE_I
mode_is_pick_and_drop: BOOLEAN
EV_PICK_AND_DROPABLE_I
mode_is_target_menu: BOOLEAN
EV_PICK_AND_DROPABLE_I
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
selection_end: INTEGER_32
require
has_selection: has_selection
ensure
result_large_enough: Result >= 1
result_small_enough: Result <= text_length
selection_start: INTEGER_32
require
has_selection: has_selection
ensure
result_large_enough: Result >= 1
result_small_enough: Result <= text_length
user_is_sensitive: BOOLEAN
EV_SENSITIVE_I
valid_caret_position (pos: INTEGER_32): BOOLEAN
`pos'
feature
disable_dockable
`Current'
EV_DOCKABLE_SOURCE_I
ensure EV_DOCKABLE_SOURCE_I
not_is_dockable: not is_dockable
disable_external_docking
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
ensure EV_DOCKABLE_SOURCE_I
not_externally_dockable: not is_external_docking_enabled
disable_external_docking_relative
`False'is_external_docking_relative
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
external_docking_enabled: is_external_docking_enabled
ensure EV_DOCKABLE_SOURCE_I
external_docking_not_relative: not is_external_docking_relative
disable_pebble_positioning
`False'pebble_positioning_enabled
EV_PICK_AND_DROPABLE_I
disable_tabable_from
is_tabable_from`False'
EV_TAB_CONTROLABLE_I
ensure EV_TAB_CONTROLABLE_I
not_is_tabable_from: not is_tabable_from
disable_tabable_to
is_tabable_to`False'
EV_TAB_CONTROLABLE_I
ensure EV_TAB_CONTROLABLE_I
not_is_tabable_to: not is_tabable_to
disable_transport
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
is_transport_disabled: not is_transport_enabled
enable_dockable
`Current'
EV_DOCKABLE_SOURCE_I
ensure EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
enable_external_docking
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
ensure EV_DOCKABLE_SOURCE_I
is_externally_dockable: is_external_docking_enabled
enable_external_docking_relative
`True'is_external_docking_relative
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
external_docking_enabled: is_external_docking_enabled
ensure EV_DOCKABLE_SOURCE_I
external_docking_not_relative: is_external_docking_relative
enable_pebble_positioning
`True'pebble_positioning_enabled
EV_PICK_AND_DROPABLE_I
enable_tabable_from
is_tabable_from`True'
EV_TAB_CONTROLABLE_I
ensure EV_TAB_CONTROLABLE_I
is_tabable_from: is_tabable_from
enable_tabable_to
is_tabable_to`True'
EV_TAB_CONTROLABLE_I
ensure EV_TAB_CONTROLABLE_I
is_tabable_to: is_tabable_to
enable_transport
EV_PICK_AND_DROPABLE_I
require EV_PICK_AND_DROPABLE_I
pebble_not_void: pebble /= Void or pebble_function /= Void
ensure EV_PICK_AND_DROPABLE_I
is_transport_enabled: interface.implementation.is_transport_enabled
hide
`Current'
EV_WIDGET_I
internal_disable_dockable
disable_dockable
EV_DOCKABLE_SOURCE_I
internal_enable_dockable
enable_dockable
EV_DOCKABLE_SOURCE_I
remove_default_key_processing_handler
default_key_processing_handler
EV_WIDGET_I
ensure EV_WIDGET_I
default_key_processing_handler_removed: default_key_processing_handler = Void
remove_pebble
pebble
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
pebble_removed: pebble = Void and pebble_function = Void
is_transport_disabled: not is_transport_enabled
remove_real_source
real_source`Void'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
ensure EV_DOCKABLE_SOURCE_I
real_source_void: real_source = Void
remove_real_target
real_target`Void'
EV_WIDGET_I
ensure EV_WIDGET_I
real_target_void: real_target = Void
reset_pebble_function
pebble_function
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
pebble_function_preserved: pebble_function = old pebble_function
pebble_without_function: pebble_function = Void implies (pebble = old pebble)
pebble_with_function: pebble_function /= Void implies pebble = Void
set_accept_cursor (a_cursor: like accept_cursor)
`a_cursor'
pebble
EV_PICK_AND_DROPABLE_I
set_actual_drop_target_agent (an_agent: like actual_drop_target_agent)
`an_agent'actual_drop_target_agent
EV_WIDGET_I
require EV_WIDGET_I
an_agent_not_void: an_agent /= Void
ensure EV_WIDGET_I
assigned: actual_drop_target_agent = an_agent
set_caret_position (pos: INTEGER_32)
require
valid_caret_position: valid_caret_position (pos)
set_configurable_target_menu_handler (a_handler: like configurable_target_menu_handler)
`a_handler'
EV_PICK_AND_DROPABLE_I
set_configurable_target_menu_mode
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
mode_is_target_menu: mode_is_configurable_target_menu
set_default_colors
EV_COLORIZABLE_I
set_default_key_processing_handler (a_handler: like default_key_processing_handler)
default_key_processing_handler`a_handler'
EV_WIDGET_I
set_deny_cursor (a_cursor: like deny_cursor)
`a_cursor'
pebble
EV_PICK_AND_DROPABLE_I
set_drag_and_drop_mode
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
mode_is_drag_and_drop: mode_is_drag_and_drop
set_editable (flag: BOOLEAN)
`flag'
`flag'
set_focus
EV_WIDGET_I
set_pebble (a_pebble: like pebble)
`a_pebble'pebble
EV_PICK_AND_DROPABLE_I
require EV_PICK_AND_DROPABLE_I
a_pebble_not_void: a_pebble /= Void
ensure EV_PICK_AND_DROPABLE_I
pebble_assigned: interface.implementation.pebble = a_pebble
is_transport_enabled: interface.implementation.is_transport_enabled
set_pebble_function (a_function: FUNCTION [ANY, TUPLE, ANY])
`a_function'pebble_function
EV_PICK_AND_DROPABLE_I
require EV_PICK_AND_DROPABLE_I
a_function_not_void: a_function /= Void
ensure EV_PICK_AND_DROPABLE_I
pebble_function_assigned: interface.implementation.pebble_function = a_function
is_transport_enabled: interface.implementation.is_transport_enabled
set_pebble_position (a_x, a_y: INTEGER_32)
`Current'
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
pick_x_assigned: pick_x = a_x
pick_y_assigned: pick_y = a_y
set_pick_and_drop_mode
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
mode_is_pick_and_drop: mode_is_pick_and_drop
set_real_source (dockable_source: EV_DOCKABLE_SOURCE)
`dockable_source'
`Current'
EV_DOCKABLE_SOURCE_I
require EV_DOCKABLE_SOURCE_I
is_dockable: is_dockable
dockable_source_not_void: dockable_source /= Void
ensure EV_DOCKABLE_SOURCE_I
real_source_assigned: real_source = dockable_source
set_real_target (a_target: EV_DOCKABLE_TARGET)
`a_target'real_target
EV_WIDGET_I
require EV_WIDGET_I
target_not_void: a_target /= Void
ensure EV_WIDGET_I
assigned: real_target = a_target
set_target_menu_mode
EV_PICK_AND_DROPABLE_I
ensure EV_PICK_AND_DROPABLE_I
mode_is_target_menu: mode_is_target_menu
show
`Current'
EV_WIDGET_I
show_configurable_target_menu (a_x, a_y: INTEGER_32)
`a_x'`a_y'`Current'
EV_PICK_AND_DROPABLE_I
user_disable_sensitive
EV_SENSITIVE_I
ensure EV_SENSITIVE_I
is_desensitive: not user_is_sensitive
user_enable_sensitive
EV_SENSITIVE_I
ensure EV_SENSITIVE_I
is_sensitive_if_parent_sensitive: (has_parent and then parent_is_sensitive) implies interface.implementation.is_sensitive
is_sensitive_if_orphaned: not has_parent implies interface.implementation.is_sensitive
feature
append_text (a_text: STRING_GENERAL)
`Current'
require
valid_text: a_text /= Void
insert_text (a_text: STRING_GENERAL)
`a_text'
require
valid_text: a_text /= Void
prepend_text (a_text: STRING_GENERAL)
`Current'
require
valid_text: a_text /= Void
remove_help_context
`EV_APPLICATION.help_key'
EV_HELP_CONTEXTABLE_I
require EV_HELP_CONTEXTABLE_I
help_context_not_void: help_context /= Void
ensure EV_HELP_CONTEXTABLE_I
no_help_context: internal_help_context = Void
set_background_color (a_color: like background_color)
`a_color'foreground_color
EV_COLORIZABLE_I
require EV_COLORIZABLE_I
a_color_not_void: <