package Tree::Simple::View::DHTML; use strict; use warnings; our $VERSION = '0.13'; use base 'Tree::Simple::View::HTML'; use Tree::Simple::View::Exceptions; use constant OPEN_TAG => 1; use constant CLOSE_TAG => 2; use constant EXPANDED => 3; ## private methods sub _init { my ($self, @args) = @_; $self->SUPER::_init(@args); $self->{list_counter_id} = 0; ($self->{obj_id}) = ("$self" =~ /\((.*?)\)$/); } sub _createUID { my ($self, $tree) = @_; return $tree->getUID() if $self->{config}->{use_tree_uids}; $self->{list_counter_id}++; return join "_" => ($self->{obj_id}, $self->{list_counter_id}); } ## public methods sub expandPathSimple { my ($self, $tree, $current_path, @path) = @_; my @results = ("