Class: ODDB::View::Admin::CompositionList

Inherits:
HtmlGrid::DivList
  • Object
show all
Defined in:
src/view/admin/sequence.rb

Direct Known Subclasses

RootCompositionList

Constant Summary

COMPONENTS =
{ [0,0] => :composition }
LABELS =
false
OFFSET_STEP =
[1,0]
OMIT_HEADER =
true

Instance Method Summary (collapse)

Instance Method Details

- (Object) composition(model)



176
177
178
179
180
181
182
183
184
185
186
187
# File 'src/view/admin/sequence.rb', line 176

def composition(model)
  agents = ActiveAgents.new(model.active_agents, @session, self)
  if @model.size > 1
    span = HtmlGrid::Span.new(model, @session, self)
    span.css_class = 'italic'
    label = model.label || @list_index.to_i + 1
    span.value = @lookandfeel.lookup(:part, label)
    [span, agents]
  else
    agents
  end
end