Structure TREEMLITEM

Definition

TREEMLITEM is a structure that is used to define the line type of the internal table TREEMLITAB. This internal table is used in the List Tree Model to specify the items that belong to a particular node.

Use

You can use TREEMLITAB to specify the type of the actual parameter you are going to pass to the items_table parameter in the add_node method of cl_list_tree_model.

Structure

Component and Type

Description

item_name

TYPE C(12)

Name of the item

class

TYPE I

Class of the item. Possible values:

  • cl_item_tree_model=>item_class_text: Item is a text

  • cl_item_tree_model=>item_class_button: Item is a pushbutton

  • cl_item_tree_model=>item_class_checkbox: Item is a checkbox

  • cl_item_tree_model=>item_class_link: Item is a link

font

TYPE I

Font in which the item is to be displayed. Possible values:

  • cl_item_tree_model=>item_font_default: Use the default font

  • cl_item_tree_model=>item_font_fixed: Use a fixed font

  • cl_item_tree_model=>item_font_prop: Use a proportional font

disabled

TYPE AS4FLAG

Flag to indicate whether the item should be disabled (disabled items cannot be selected). Possible values:

  • 'X': Item is disabled

  • ' ': Item can be selecte d

editable

TYPE AS4FLAG

Flag to indicate whether the item can be edited. Possible values:

  • 'X': Item can be edited

  • ' ': Item cannot be edite d

hidden

TYPE AS4FLAG

Flag to indicate whether the item is hidden. Possible values:

  • 'X': Item is hidden

  • ' ': Item is not hidde n

t_image

TYPE C(6)

The image or icon to be displayed as part of the icon. Possible values:

  • ' ': No icon

  • '@XY@': The SAP icon with the code XY

  • 'BNONE': No icon. The text is shifted so that it begins in the position where the image would otherwise have been.

chosen

TYPE AS4FLAG

Flag to indicate whether the item should be chosen. Possible values:

  • 'X': Chosen

  • ' ': Not chose n

style

TYPE I

Style of the item. Possible values:

  • cl_tree_model=>style_default

  • cl_tree_model=>style_emphasized

  • cl_tree_model=>style_emphasized_negative

  • cl_tree_model=>style_emphasized_positive

  • cl_tree_model=>style_inactive

  • cl_tree_model=>style_inherited

  • cl_tree_model=>style_intensified_critica

txtisqinfo

TYPE AS4FLAG

Flag to indicate whether the text of the item should also be used as its quickinfo. Possible values:

  • 'X': Item text is used as the quickinfo

  • ' ': Item text is not used as the quickinf o

text

TYPE STRING

Text of the item

alignment

TYPE I

Alignment of the item. Possible values:

  • cl_item_tree_model=>align_left

  • cl_item_tree_model=>align_right

  • cl_item_tree_model=>align_auto The item is not aligned, but the display width is adjusted to the length of the item

length

TYPE I

Length of the item in characters

ignoreimag

TYPE AS4FLAG

Controls the width of the item. Possible values:

  • 'X': The length of the item is the length of the entire item. Icons occupy space that is then not available for text.

  • ' ': The length of the item is the length of its text. Checkboxes and icons are then added to the length of the item.

usebgcolor

TYPE AS4FLAG

  • 'X': The background color of the item is slightly different from the background color of the control

  • ' ': The background color of the item is the same color as the background color of the control.