Subversion Repository Public Repository

ramani

Diff Revisions 425 vs 426 for /Ramani/web/restrito/mindmapAutorArtigo.xhtml

Diff revisions: vs.
  @@ -1,16 +1,135 @@
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 - <!--
3 - To change this license header, choose License Headers in Project Properties.
4 - To change this template file, choose Tools | Templates
5 - and open the template in the editor.
6 - -->
7 2 <!DOCTYPE html>
8 - <html xmlns="http://www.w3.org/1999/xhtml">
9 - <head>
10 - <title>TODO supply a title</title>
11 - <meta name="viewport" content="width=device-width"/>
12 - </head>
13 - <body>
14 - <div>TODO write content</div>
15 - </body>
16 - </html>
3 + <html xmlns="http://www.w3.org/1999/xhtml"
4 + xmlns:ui="http://java.sun.com/jsf/facelets"
5 + xmlns:h="http://java.sun.com/jsf/html"
6 + xmlns:p="http://primefaces.org/ui"
7 + xmlns:f="http://java.sun.com/jsf/core">
8 + <h:head/>
9 + <h:body>
10 + <ui:composition template="../template.xhtml">
11 + <ui:define name="caminho">
12 + <h:outputLabel value="/ Graficos Mindmap"
13 + style="font-weight: bold"/>
14 + </ui:define>
15 +
16 + <ui:define name="conteudoCentro">
17 + <p:layout>
18 + <h:form id="formMind">
19 + <p:layoutUnit position="west">
20 + <h:panelGroup id="pgroup">
21 + <center>
22 + <h:outputLabel value="Menu"
23 + style="font-size: 25px; font-weight: bold"/>
24 + <hr/>
25 + <p:commandButton value="Voltar"
26 + title="Voltar para a página inicial"
27 + action="/projeto/listarProjetos.xhtml"
28 + style="width: 99%"
29 + ajax="false"
30 + immediate="true"
31 + icon="ui-icon-arrowreturnthick-1-w"
32 + iconPos="right"/>
33 +
34 +
35 + <p:commandButton value="Próximo"
36 + title="Próxima tab"
37 + onclick="wiz.next();"
38 + disabled="#{graficoMindMap.botaoProximo}"
39 + style="width: 99%"
40 + icon="ui-icon-arrowthick-1-e"
41 + iconPos="right"
42 + update="pgroup"/>
43 +
44 + <p:commandButton value="Anterior"
45 + title="Tab anterior"
46 + onclick="wiz.back();"
47 + disabled="#{graficoMindMap.botaoAnterior}"
48 + style="width: 99%"
49 + icon="ui-icon-arrowthick-1-w"
50 + iconPos="right"
51 + update="pgroup"
52 + />
53 +
54 +
55 +
56 +
57 + </center>
58 + </h:panelGroup>
59 + </p:layoutUnit>
60 + <p:layoutUnit position="center">
61 + <center>
62 + <h:outputLabel value="Mindmap"
63 + style="font-size: 25px; font-weight: bold"/>
64 + </center>
65 +
66 +
67 + <p:wizard
68 + widgetVar="wiz"
69 + flowListener="#{graficoMindMap.onFlowProcessAutorArtigo}"
70 + binding="#{graficoMindMap.wizard}"
71 + showNavBar="false"
72 + >
73 +
74 + <p:tab id="aut" title="Autor">
75 +
76 + <p:panel header="Selecione um autor">
77 +
78 + <h:panelGrid id="autorSelecao" columns="3" columnClasses="label, value" styleClass="grid">
79 + <p:growl id="nn"/>
80 +
81 + <h:outputText value="Nome do Autor:"/>
82 + <p:autoComplete
83 + required="true"
84 + requiredMessage="Por favor informe um autor!"
85 + id="autoCompleteAutor"
86 + forceSelection="true"
87 + minQueryLength="4"
88 + value="#{graficoMindMap.autor}"
89 + converter="AutorConverter"
90 + completeMethod="#{graficoMindMap.autoCompleteAutor}"
91 + var="autorComplete"
92 + itemLabel="#{autorComplete.nome}"
93 + itemValue="#{autorComplete}"
94 + />
95 +
96 +
97 + </h:panelGrid>
98 + </p:panel>
99 + </p:tab>
100 +
101 +
102 + <p:tab id="map" title="Mindmap">
103 +
104 + <p:panel header="Mindmap #{graficoMindMap.autor.nome}">
105 +
106 + <h:panelGrid columns="2" columnClasses="label, value" styleClass="grid" style="margin: 0 auto" >
107 + <f:ajax render="mindAutor">
108 +
109 + <p:mindmap id="mindAutor" value="#{graficoMindMap.rootAutor}" style="width:600px;height:450px;border:1px solid black;">
110 + <p:ajax event="select" listener="#{graficoMindMap.onNodeSelectArtigoConferencia}" />
111 + </p:mindmap>
112 +
113 + </f:ajax>
114 +
115 + </h:panelGrid>
116 + </p:panel>
117 + </p:tab>
118 +
119 +
120 +
121 +
122 + </p:wizard>
123 +
124 + </p:layoutUnit>
125 +
126 +
127 + </h:form>
128 +
129 +
130 +
131 + </p:layout>
132 + </ui:define>
133 + </ui:composition>
134 + </h:body>
135 + </html>