|
|
|
|
@ -8,6 +8,7 @@ package planosactuacao;
|
|
|
|
|
|
|
|
|
|
import com.sun.rave.web.ui.appbase.AbstractPageBean;
|
|
|
|
|
import com.sun.webui.jsf.component.Button;
|
|
|
|
|
import com.sun.webui.jsf.component.Hyperlink;
|
|
|
|
|
import com.sun.webui.jsf.component.PanelGroup;
|
|
|
|
|
import com.sun.webui.jsf.component.StaticText;
|
|
|
|
|
import db.entidades.Area;
|
|
|
|
|
@ -64,6 +65,7 @@ public class ViewPlano extends AbstractPageBean {
|
|
|
|
|
// </editor-fold>
|
|
|
|
|
HtmlPanelGrid gridPlano;
|
|
|
|
|
HtmlPanelGrid gridArea;
|
|
|
|
|
HtmlPanelGrid gridAreaContainer;
|
|
|
|
|
HtmlPanelGrid gridRisco;
|
|
|
|
|
HtmlPanelGrid gridValor;
|
|
|
|
|
HtmlPanelGrid gridMedida;
|
|
|
|
|
@ -195,13 +197,15 @@ public class ViewPlano extends AbstractPageBean {
|
|
|
|
|
|
|
|
|
|
private void showAreas(List<Area> areas)
|
|
|
|
|
{
|
|
|
|
|
int i = 0;
|
|
|
|
|
for(Area area : areas)
|
|
|
|
|
{
|
|
|
|
|
i++;
|
|
|
|
|
gridArea = new HtmlPanelGrid();
|
|
|
|
|
gridArea.setColumns(1);
|
|
|
|
|
gridArea.setColumnClasses("gridColCenter");
|
|
|
|
|
gridArea.setWidth("100%");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gridPlano.getChildren().add(gridArea);
|
|
|
|
|
|
|
|
|
|
pg = new PanelGroup();
|
|
|
|
|
@ -211,10 +215,30 @@ public class ViewPlano extends AbstractPageBean {
|
|
|
|
|
st.setText("Área: ");
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId("fakeLink" + i);
|
|
|
|
|
st.setStyleClass("fakeLink");
|
|
|
|
|
st.setOnMouseOver("this.style.textDecoration = 'underline'");
|
|
|
|
|
st.setOnMouseOut("this.style.textDecoration = 'none'");
|
|
|
|
|
st.setOnClick("expand(this)");
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
st.setText(area.getDescricao());
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
|
|
|
|
|
gridArea.getChildren().add(pg);
|
|
|
|
|
|
|
|
|
|
gridAreaContainer = new HtmlPanelGrid();
|
|
|
|
|
gridAreaContainer.setId("area_container" + i);
|
|
|
|
|
gridAreaContainer.setStyleClass("hidden");
|
|
|
|
|
gridAreaContainer.setColumns(1);
|
|
|
|
|
gridAreaContainer.setColumnClasses("gridColCenter");
|
|
|
|
|
gridAreaContainer.setWidth("100%");
|
|
|
|
|
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
st.setText(" ");
|
|
|
|
|
gridAreaContainer.getChildren().add(st);
|
|
|
|
|
|
|
|
|
|
gridArea.getChildren().add(gridAreaContainer);
|
|
|
|
|
showRiscos(area.getRiscos());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -226,8 +250,9 @@ public class ViewPlano extends AbstractPageBean {
|
|
|
|
|
HtmlPanelGrid grd = new HtmlPanelGrid();
|
|
|
|
|
grd.setColumns(1);
|
|
|
|
|
grd.setWidth("100%");
|
|
|
|
|
grd.setStyleClass("centerBlock");
|
|
|
|
|
gridArea.getChildren().add(grd);
|
|
|
|
|
//grd.setStyleClass("centerBlock");
|
|
|
|
|
//gridArea.getChildren().add(grd);
|
|
|
|
|
gridAreaContainer.getChildren().add(grd);
|
|
|
|
|
|
|
|
|
|
gridRisco = new HtmlPanelGrid();
|
|
|
|
|
gridRisco.setStyleClass("centerBlock");
|
|
|
|
|
|