indexing
description: "Abstraction for objects that have a tooltip property."
status: "See notice at end of class"
keywords: "tooltip, popup, hint"
date: "$Date$"
revision: "$Revision$"
deferred class interface
EV_TOOLTIPABLE
feature
data: ANY
EV_ANY
tooltip: STRING
Current
require
not_destroyed: not is_destroyed
ensure
bridge_ok: (Result = void and implementation.tooltip = void) or Result.is_equal (implementation.tooltip)
feature
remove_tooltip
tooltipVoid
require
not_destroyed: not is_destroyed
ensure
tooltip_removed: tooltip = void
set_data (some_data: like data)
some_datadata
EV_ANY
require EV_ANY
not_destroyed: not is_destroyed
ensure EV_ANY
data_assigned: data = some_data
set_tooltip (a_tooltip: STRING)
a_tooltiptooltip
require
not_destroyed: not is_destroyed
tooltip: a_tooltip /= void
a_tooltip_not_empty: not a_tooltip.is_empty
ensure
tooltip_assigned: a_tooltip.is_equal (tooltip) and tooltip /= a_tooltip
feature
copy (other: like Current)
other
EV_ANY
require ANY
other_not_void: other /= void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
feature
destroy
Current
EV_ANY
ensure EV_ANY
is_destroyed: is_destroyed
feature
is_destroyed: BOOLEAN
Current
EV_ANY
ensure EV_ANY
bridge_ok: Result = implementation.is_destroyed
invariant
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
EV_ANY
is_initialized: is_initialized
is_coupled: implementation /= void and then implementation.interface = Current
default_create_called: default_create_called
end -- EV_TOOLTIPABLE