Class: ODDB::View::Substances::OuterComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/substances/substance.rb

Constant Summary

COMPONENTS =
{
  [0,0] =>  :substance_name,
  [0,1] =>  View::Substances::DescriptionForm,
  [1,1] =>  View::Substances::AdminComposite,
  [0,4] =>  :connection_keys,
  [0,5] =>  :substrate_connections,
  [0,6] =>  :sequences,
}
CSS_CLASS =
'composite'
CSS_MAP =
{
  [0,0] =>  'th',
  [1,2] =>  'button',
}
COLSPAN_MAP =
{
  [0,0] =>  2,
  [0,4] =>  2,
  [0,5] =>  2,
  [0,6] =>  2,
}
DEFAULT_CLASS =
HtmlGrid::Value

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) connection_keys(model, session)



172
173
174
175
176
177
# File 'src/view/substances/substance.rb', line 172

def connection_keys(model, session)
  conn_keys = model.connection_keys
  unless(conn_keys.empty?)
    View::Substances::ConnectionKeys.new(conn_keys, session, self)
  end
end

- (Object) sequences(model, session)



188
189
190
191
# File 'src/view/substances/substance.rb', line 188

def sequences(model, session)
  sequences = model.sequences
  Sequences.new(sequences, session, self)
end

- (Object) substance_name(model, session)



178
179
180
# File 'src/view/substances/substance.rb', line 178

def substance_name(model, session)
  model.name
end

- (Object) substrate_connections(model, session)



181
182
183
184
185
186
187
# File 'src/view/substances/substance.rb', line 181

def substrate_connections(model, session)
  unless(model.substrate_connections.nil?)
    connections = model.substrate_connections.values
    values = PointerArray.new(connections, model.pointer)
    View::Substances::Substrates.new(values, session, self)
  end
end