Module: Muml_Class
- Defined in:
- lib/ontomde-uml2-crank/menu2.rb
Instance Method Summary collapse
Instance Method Details
#crank_class_submenu ⇒ Object
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 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. } write <<BEAN </rich:panelMenuGroup> BEAN elsif end end |
#crank_menu_item ⇒ Object
70 71 72 73 74 75 76 |
# File 'lib/ontomde-uml2-crank/menu2.rb', line 70 def write <<BEAN <rich:panelMenuItem submitMode="none"> <h:commandLink action="#{self.java_Name.upcase}" value="#{self.java_Name}" styleClass="titleCommandLink"/> </rich:panelMenuItem> BEAN end |