Class: HtmlGrid::Composite

Inherits:
Object show all
Defined in:
src/view/htmlgrid/composite.rb

Direct Known Subclasses

ODDB::View::AddressConfirmComposite, ODDB::View::AddressSent, ODDB::View::Admin::ActiveAgentComposite, ODDB::View::Admin::ActiveAgentInnerComposite, ODDB::View::Admin::AddressSuggestionComposite, ODDB::View::Admin::AddressSuggestionInnerComposite, ODDB::View::Admin::AddressSuggestionOuterComposite, ODDB::View::Admin::AssignDeprivedSequenceComposite, ODDB::View::Admin::AssignFachinfoComposite, ODDB::View::Admin::AssignPatinfoComposite, ODDB::View::Admin::AtcClassComposite, ODDB::View::Admin::CommercialFormComposite, ODDB::View::Admin::CompanyHeader, ODDB::View::Admin::EntityComposite, ODDB::View::Admin::FachinfoConfirmComposite, ODDB::View::Admin::GalenicFormComposite, ODDB::View::Admin::GalenicGroupComposite, ODDB::View::Admin::IndicationComposite, ODDB::View::Admin::LoginComposite, ODDB::View::Admin::MergeCommercialFormComposite, ODDB::View::Admin::MergeGalenicFormComposite, ODDB::View::Admin::MergeIndicationComposite, ODDB::View::Admin::OrphanedFachinfoAssignComposite, ODDB::View::Admin::OrphanedPatinfoAssignComposite, ODDB::View::Admin::OrphanedPatinfoComposite, ODDB::View::Admin::OrphanedPatinfoListInnerComposite, ODDB::View::Admin::PackageComposite, ODDB::View::Admin::PackageForm, ODDB::View::Admin::PackageInnerComposite, ODDB::View::Admin::PasswordLostComposite, ODDB::View::Admin::PasswordResetComposite, ODDB::View::Admin::PatentInnerComposite, ODDB::View::Admin::PatinfoDeprivedSequencesComposite, ODDB::View::Admin::PatinfoStatsCompanyComposite, ODDB::View::Admin::PatinfoStatsComposite, ODDB::View::Admin::ReadonlyPatentComposite, ODDB::View::Admin::RegistrationComposite, ODDB::View::Admin::RegistrationInnerComposite, ODDB::View::Admin::SelectIndicationComposite, ODDB::View::Admin::SelectSubstanceComposite, ODDB::View::Admin::SequenceComposite, ODDB::View::Admin::SequenceForm, ODDB::View::Admin::SequenceInnerComposite, ODDB::View::Admin::SlEntryComposite, ODDB::View::Admin::SlEntryInnerComposite, ODDB::View::Admin::SponsorComposite, ODDB::View::Admin::SponsorInnerComposite, ODDB::View::Admin::StatusBar, ODDB::View::Admin::WaitForFachinfoComposite, ODDB::View::Ajax::DDDPriceTable, ODDB::View::Ajax::SwissmedicCat, ODDB::View::Analysis::AdditionalInfoComposite, ODDB::View::Analysis::AlphabeticalComposite, ODDB::View::Analysis::ExplainAnalysisColumns, ODDB::View::Analysis::ExplainAnalysisTechnical1, ODDB::View::Analysis::ExplainAnalysisTechnical2, ODDB::View::Analysis::ExplainResult, ODDB::View::Analysis::GroupComposite, ODDB::View::Analysis::GroupHeader, ODDB::View::Analysis::PositionComposite, ODDB::View::Analysis::PositionInnerComposite, ODDB::View::Analysis::ResultComposite, ODDB::View::CenteredSearchComposite, ODDB::View::CommonLogoHead, ODDB::View::Companies::CompanyComposite, ODDB::View::Companies::FiPiOverviewComposite, ODDB::View::Companies::MergeCompaniesComposite, ODDB::View::Companies::SetPassComposite, ODDB::View::Companies::UnknownCompanyComposite, ODDB::View::Companies::UnknownCompanyInnerComposite, ODDB::View::ConfirmComposite, ODDB::View::Copyright, ODDB::View::CountryNavigation, ODDB::View::Custom::OekkHead, ODDB::View::Doctors::DoctorComposite, ODDB::View::Doctors::DoctorInnerComposite, ODDB::View::Drugs::AtcChooserComposite, ODDB::View::Drugs::AtcHeader, ODDB::View::Drugs::CompareComposite, ODDB::View::Drugs::DDDComposite, ODDB::View::Drugs::DDDPriceComposite, ODDB::View::Drugs::DDDPriceTable, ODDB::View::Drugs::DDDTree, ODDB::View::Drugs::DateChooser, ODDB::View::Drugs::DateHeader, ODDB::View::Drugs::EmptyCompareComposite, ODDB::View::Drugs::EmptyResultComposite, ODDB::View::Drugs::ExplainNarcotics, ODDB::View::Drugs::FachinfoPreviewComposite, ODDB::View::Drugs::FachinfosComposite, ODDB::View::Drugs::FeedbacksComposite, ODDB::View::Drugs::FiChapterChooser, ODDB::View::Drugs::LimitationTextComposite, ODDB::View::Drugs::LimitationTextInnerComposite, ODDB::View::Drugs::LimitationTextsComposite, ODDB::View::Drugs::MiniFiComposite, ODDB::View::Drugs::NarcoticComposite, ODDB::View::Drugs::NarcoticInnerComposite, ODDB::View::Drugs::NarcoticsComposite, ODDB::View::Drugs::PackageComposite, ODDB::View::Drugs::PackageInnerComposite, ODDB::View::Drugs::PatinfoComposite, ODDB::View::Drugs::PatinfoInnerComposite, ODDB::View::Drugs::PatinfosComposite, ODDB::View::Drugs::PaymentMethodComposite, ODDB::View::Drugs::PriceHistoryComposite, ODDB::View::Drugs::RegisterDownloadComposite, ODDB::View::Drugs::RegisterInvoicedDownloadComposite, ODDB::View::Drugs::ResultComposite, ODDB::View::Drugs::ResultLimitComposite, ODDB::View::Drugs::SequencesComposite, ODDB::View::Drugs::VaccinesComposite, ODDB::View::ExplainResult, ODDB::View::FeedbackPager, ODDB::View::GoogleAdSenseComposite, ODDB::View::Hospitals::HospitalComposite, ODDB::View::Hospitals::HospitalInnerComposite, ODDB::View::Http404Composite, ODDB::View::Interactions::BasketHeader, ODDB::View::Interactions::ExplainResult, ODDB::View::LimitComposite, ODDB::View::Migel::AlphabeticalComposite, ODDB::View::Migel::ExplainResult, ODDB::View::Migel::FeedbacksComposite, ODDB::View::Migel::GroupComposite, ODDB::View::Migel::GroupInnerComposite, ODDB::View::Migel::LimitationTextComposite, ODDB::View::Migel::ProductComposite, ODDB::View::Migel::ProductInnerComposite, ODDB::View::Migel::ResultComposite, ODDB::View::Migel::SubgroupComposite, ODDB::View::Migel::SubgroupInnerComposite, ODDB::View::Navigation, ODDB::View::NavigationFoot, ODDB::View::NotifyComposite, ODDB::View::NotifyConfirmComposite, ODDB::View::NotifyInnerComposite, ODDB::View::PayPal::ReturnComposite, ODDB::View::ResultFoot, ODDB::View::SetPassComposite, ODDB::View::Substances::AdminComposite, ODDB::View::Substances::OuterComposite, ODDB::View::Substances::ResultComposite, ODDB::View::Substances::SelectSubstanceComposite, ODDB::View::SuggestAddressComposite, ODDB::View::SuggestedAddress, ODDB::View::TabNavigation, ODDB::View::TopFoot, ODDB::View::User::AuthInfoComposite, ODDB::View::User::CheckoutComposite, ODDB::View::User::DownloadExportInnerComposite, ODDB::View::User::FachinfoPDFDownloadInnerComposite, ODDB::View::User::FiPiCalculations, ODDB::View::User::FiPiOfferConfirmComposite, ODDB::View::User::FiPiOfferInputComposite, ODDB::View::User::HelpComposite, ODDB::View::User::InvalidUserComposite, ODDB::View::User::MailingListComposite, ODDB::View::User::MailingListInnerComposite, ODDB::View::User::OddbDatDownloadInnerComposite, ODDB::View::User::PayPalThanksComposite, ODDB::View::User::PluginComposite, ODDB::View::User::PluginInnerComposite, ODDB::View::User::RegisterDownloadComposite, ODDB::View::User::RegisterPowerUserComposite, ODDB::View::User::RenewPowerUserComposite, ODDB::View::User::YamlExportInnerComposite, ODDB::View::User::YweseeContactComposite, ODDB::View::WelcomeHead

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details



8
9
10
11
12
13
14
# File 'src/view/htmlgrid/composite.rb', line 8

def Composite.event_link(name)
  define_method(name) { |*args|
    link = HtmlGrid::Link.new(name, args.first, @session, self)
    link.href = @lookandfeel._event_url(name)
    link
  }
end

Instance Method Details

- (Object) hash_insert_col(hash, key, val)



27
28
29
30
31
32
33
34
35
36
37
38
# File 'src/view/htmlgrid/composite.rb', line 27

def hash_insert_col(hash, key, val)
  tmp = hash.sort.reverse
  hash.clear
  tmp.each { |matrix, value|
    mtrx = matrix.dup
    unless((mtrx <=> key) == -1)
      mtrx[0] += 1
    end
    hash.store(mtrx, value)
  }
  hash.store(key, val)
end

- (Object) hash_insert_row(hash, key, val)



15
16
17
18
19
20
21
22
23
24
25
26
# File 'src/view/htmlgrid/composite.rb', line 15

def hash_insert_row(hash, key, val)
  tmp = hash.sort.reverse
  hash.clear
  tmp.each { |matrix, value|
    mtrx = matrix.dup
    unless((mtrx[1] <=> key[1]) == -1)
      mtrx[1] += 1
    end
    hash.store(mtrx, value)
  }
  hash.store(key, val)
end