indexing
description: "Column of an EV_GRID, containing EV_GRID_ITEMs."
date: "$Date: 2006-03-22 23:29:03 -0800 (Wed, 22 Mar 2006) $"
legal: "See notice at end of class."
status: "See notice at end of class."
revision: "$Revision: 57641 $"
class interface
EV_GRID_COLUMN
create {EV_GRID}
default_create
EV_ANY
require ANY
True
ensure then EV_ANY
is_coupled: implementation /= Void
is_initialized: is_initialized
default_create_called_set: default_create_called
is_in_default_state: is_in_default_state
feature
background_color: EV_COLOR
`Current'
`Void'background_color`Void'background_colorparent
`EV_GRID'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
data: ANY
EV_ANY
deselect_actions: EV_NOTIFY_ACTION_SEQUENCE
`Current'
EV_GRID_COLUMN_ACTION_SEQUENCES
ensure EV_GRID_COLUMN_ACTION_SEQUENCES
result_not_void: Result /= Void
foreground_color: EV_COLOR
`Current'
`Void'foreground_color`Void'foreground_colorparent
`EV_GRID'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
generating_type: STRING_8
ANY
generator: STRING_8
ANY
header_item: EV_GRID_HEADER_ITEM
`Current'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
result_not_void: Result /= Void
is_displayed: BOOLEAN
`Current'parent
hide`Current'
is_displayed
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
is_locked: BOOLEAN
`Current'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
item (i: INTEGER_32): EV_GRID_ITEM
`i'
require
not_destroyed: not is_destroyed
i_positive: i > 0
i_less_than_count: i <= count
is_parented: parent /= Void
locked_position: INTEGER_32
`Current'parent
`Result'is_locked
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
not_locked_implies_result_zero: not is_locked implies Result = 0
parent: EV_GRID
require
not_destroyed: not is_destroyed
pixmap: EV_PIXMAP
parenttitle
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
select_actions: EV_NOTIFY_ACTION_SEQUENCE
`Current'
EV_GRID_COLUMN_ACTION_SEQUENCES
ensure EV_GRID_COLUMN_ACTION_SEQUENCES
result_not_void: Result /= Void
selected_items: ARRAYED_LIST [EV_GRID_ITEM]
`Current'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
result_not_void: Result /= Void
title: STRING_32
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
title_not_void: Result /= Void
virtual_x_position: INTEGER_32
`Current'
parent
`Result'parent`Void'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
parent_void_implies_result_zero: parent = Void implies Result = 0
virtual_x_position_unlocked: INTEGER_32
`Current'
parent
is_lockedvirtual_x_position`virtual_y_position_unlocked'
is_locked`Result'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
parent_void_implies_result_zero: parent = Void implies Result = 0
width: INTEGER_32
`Result'`Current'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
result_non_negative: Result >= 0
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 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))
is_equal (other: like Current): 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: like Current): 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
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
count: INTEGER_32
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
count_not_negative: count >= 0
index: INTEGER_32
parent
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
index_positive: Result > 0
index_less_than_column_count: Result <= parent.column_count
is_selectable: BOOLEAN
enable_select
EV_SELECTABLE
require EV_SELECTABLE
not_destroyed: not is_destroyed
is_selected: BOOLEAN
EV_SELECTABLE
require EV_SELECTABLE
not_destroyed: not is_destroyed
ensure EV_SELECTABLE
bridge_ok: is_selectable implies Result = implementation.is_selected
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))
feature
disable_select
EV_DESELECTABLE
require EV_DESELECTABLE
not_destroyed: not is_destroyed
ensure EV_DESELECTABLE
unselected: not is_selected
enable_select
is_selected
EV_SELECTABLE
require EV_SELECTABLE
not_destroyed: not is_destroyed
is_selectable: is_selectable
ensure EV_SELECTABLE
is_selected: is_selected
ensure_visible
`Current'parent
require
not_destroyed: not is_destroyed
parented: parent /= Void
shown: is_displayed
ensure
parent_virtual_y_position_unchanged: old parent.virtual_y_position = parent.virtual_y_position
to_implement_assertion ("old_is_visible_implies_horizontal_position_not_changed")
column_visible: virtual_x_position >= parent.virtual_x_position and virtual_x_position + width <= parent.virtual_x_position + (parent.viewable_width).max (width)
hide
parent
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
not_is_displayed: not is_displayed
lock
is_locked`True'
`Current'
parent
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
is_locked: is_locked
locked_position_set: locked_position = virtual_x_position - parent.virtual_x_position
lock_at_position (a_position: INTEGER_32)
is_locked`True'
parent`a_position'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
is_locked: is_locked
locked_position_set: locked_position = a_position
required_width_of_item_span (start_row, end_row: INTEGER_32): INTEGER_32
`required_width'
`start_row'`end_row'
require
not_destroyed: not is_destroyed
parented: parent /= Void
valid_rows: start_row >= 1 and end_row <= parent.row_count and start_row <= end_row
ensure
result_non_negative: Result >= 0
resize_to_content
`Current'`required_width'
require
not_destroyed: not is_destroyed
parented: parent /= Void
shown: is_displayed
ensure
width_set: width = required_width_of_item_span (1, parent.row_count)
show
parent
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
is_displayed: is_displayed
toggle
is_selected
EV_DESELECTABLE
require EV_DESELECTABLE
not_is_destroyed: not is_destroyed
can_be_selected: not is_selected implies is_selectable
ensure EV_DESELECTABLE
is_selected_changed: is_selected /= old is_selected
unlock
is_locked`False'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
not_is_locked: not is_locked
feature
clear
`Current'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
all_items_may_be_removed: all_items_may_be_removed
ensure
to_implement_assertion ("EV_GRID_COLUMN.clear - All items positions return `Void'.")
redraw
`Current'
require
not_destroyed: not is_destroyed
parented: parent /= Void
remove_pixmap
`Current'
require
not_destroyed: not is_destroyed
ensure
pixmap_removed: pixmap = Void
set_background_color (a_color: EV_COLOR)
background_color`a_color'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
background_color_set: background_color = a_color
set_data (some_data: like data)
`some_data'data
EV_ANY
require EV_ANY
not_destroyed: not is_destroyed
ensure EV_ANY
data_assigned: data = some_data
set_foreground_color (a_color: EV_COLOR)
foreground_color`a_color'
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
foreground_color_set: foreground_color = a_color
set_item (i: INTEGER_32; a_item: EV_GRID_ITEM)
`i'`a_item'
`a_item'`Void'
require
not_destroyed: not is_destroyed
i_positive: i > 0
is_parented: parent /= Void
item_may_be_added_to_tree_node: a_item /= Void and parent.row (i).is_part_of_tree_structure implies parent.row (i).is_index_valid_for_item_setting_if_tree_node (index)
item_may_be_removed_from_tree_node: a_item = Void and then parent.row (i).is_part_of_tree_structure implies parent.row (i).is_index_valid_for_item_removal_if_tree_node (index)
ensure
item_set: item (i) = a_item
set_pixmap (a_pixmap: EV_PIXMAP)
`a_pixmap'`Current'title
require
not_destroyed: not is_destroyed
pixmap_not_void: a_pixmap /= Void
ensure
pixmap_set: pixmap = a_pixmap
set_title (a_title: like title)
require
not_destroyed: not is_destroyed
is_parented: parent /= Void
ensure
title_set: title.is_equal (a_title)
set_width (a_width: INTEGER_32)
`a_width'width
require
not_destroyed: not is_destroyed
width_non_negative: a_width >= 0
is_parented: parent /= Void
ensure
width_set: width = a_width
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)
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
feature
destroy
`Current'
EV_ANY
ensure EV_ANY
is_destroyed: is_destroyed
feature
all_items_may_be_removed: BOOLEAN
`Current'
require
not_destroyed: not is_destroyed
parented: parent /= Void
all_items_may_be_set: BOOLEAN
`Current'count
require
not_destroyed: not is_destroyed
parented: parent /= Void
feature
fixme (comment: STRING_8)
`comment'
REFACTORING_HELPER
require REFACTORING_HELPER
comment_not_void: comment /= Void
to_implement (comment: STRING_8)
`comment'
REFACTORING_HELPER
require REFACTORING_HELPER
comment_not_void: comment /= Void
to_implement_assertion (comment: STRING_8): BOOLEAN
`comment'
REFACTORING_HELPER
require REFACTORING_HELPER
comment_not_void: comment /= Void
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
feature
is_destroyed: BOOLEAN
`Current'
EV_ANY
ensure EV_ANY
bridge_ok: Result = implementation.is_destroyed
invariant
virtual_position_and_virtual_position_unlocked_equal_when_not_locked: not is_locked implies virtual_x_position = virtual_x_position_unlocked
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
EV_DESELECTABLE
not_selectable_therefore_not_selected: not is_selectable implies not is_selected
EV_ANY
is_initialized: is_initialized
is_coupled: implementation /= Void and then implementation.interface = Current
default_create_called: default_create_called
indexing
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end EV_GRID_COLUMN