Module: Muml_Class

Defined in:
lib/ontomde-uml2-crank/menu2.rb

Instance Method Summary collapse

Instance Method Details

#crank_class_submenuObject



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/ontomde-uml2-crank/menu2.rb', line 52

def crank_class_submenu
  subClazz = Set.new
  crank_subCrankBean(subClazz, true)
  if crank_isTopCrankBean && subClazz.length>1 
    write <<BEAN
     <rich:panelMenuGroup label="#{self.java_Name}" iconExpanded="triangleDown" iconCollapsed="triangleUp">
BEAN
    subClazz.sort { |a,b| a.uml_name.to_s <=> b.uml_name.to_s }.each{|c|
      c.crank_menu_item
    }
    write <<BEAN
     </rich:panelMenuGroup>
BEAN
  elsif
    crank_menu_item
  end
end

#crank_menu_itemObject



70
71
72
73
74
75
76
# File 'lib/ontomde-uml2-crank/menu2.rb', line 70

def crank_menu_item
  write <<BEAN
        <rich:panelMenuItem submitMode="none">
            <h:commandLink action="#{self.java_Name.upcase}" value="#{self.java_Name}" styleClass="titleCommandLink"/>
        </rich:panelMenuItem>    
BEAN
end