TreeItem

A specialized node of the tree view in the Packet Details pane. (Reference)

function

description

treeitem:add(proto_field [,tvbrange] [,value [,text1 [,text2] ...] ])

Adds a ProtoField as a new TreeItem child to the current TreeItem (uses Big Endian when parsing numeric fields)

treeitem:add(proto [,tvbrange] [,value [,text1 [,text2] ...] ])

Adds a Proto as a new TreeItem child to the current TreeItem

treeitem:add_le(proto_field [,tvbrange] [,value [,text1 [,text2] ...] ])

Adds a ProtoField as a new TreeItem child to the current TreeItem (uses Little Endian when parsing numeric fields)

treeitem:set_text(text)

Sets the full text of the TreeItem

treeitem:append_text(text)

Appends text to the TreeItem's current text

treeitem:set_expert_flags([group [,severity] ])

Sets the expert flags of the item and adds an Expert Info TreeItem to the packet details

treeitem:add_expert_info([group [,severity [,text] ] ])

Sets the expert flags of the item and adds an Expert Info TreeItem to the packet details

treeitem:set_generated()

Marks the TreeItem as a generated field (data inferred but not contained in the packet)

treeitem:set_hidden() (DEPRECATED)

Marks the TreeItem as hidden so that it is not shown in the Packet Details pane but can still be used for filtering

treeitem:set_len(len)

Set TreeItem's length inside its associated Tvb, after it has already been created. This only changes the highlighted bytes in the Packet Bytes pane. The TreeItem's value text remains the same.


treeitem:add(proto_field [,tvbrange] [,value [,text1 [,text2] ...] ])


treeitem:add(proto [,tvbrange] [,value [,text1 [,text2] ...] ])


treeitem:add(tvbrange ,label [,text1 [,text2] ...])


treeitem:add_le(proto_field [,tvbrange] [,value [,text1 [,text2] ...] ])


treeitem:set_text(text)


treeitem:append_text(text)


treeitem:set_expert_flags([group [,severity] ])


treeitem:add_expert_info([group [,severity [,text] ] ])


treeitem:set_generated()


treeitem:set_hidden() (DEPRECATED)


treeitem:set_len(len)

LuaAPI/TreeItem (last edited 2016-03-29 08:12:03 by PeterWu)