| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!-- |
|---|
| 3 | Document : Page1 |
|---|
| 4 | Created on : Nov 28, 2010, 5:30:40 AM |
|---|
| 5 | Author : hcarralero |
|---|
| 6 | --> |
|---|
| 7 | <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf"> |
|---|
| 8 | <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/> |
|---|
| 9 | <f:view> |
|---|
| 10 | <webuijsf:page id="page1"> |
|---|
| 11 | <webuijsf:html id="html1"> |
|---|
| 12 | <webuijsf:head id="head1" title="TOLJava-WebDEMO==> Explorador de Variables"> |
|---|
| 13 | <webuijsf:link id="link1" url="/resources/stylesheet.css"/> |
|---|
| 14 | <webuijsf:script type="text/javascript" url="sh/scripts/shCore.js"/> |
|---|
| 15 | <webuijsf:script type="text/javascript" url="sh/scripts/shBrushJava.js"/> |
|---|
| 16 | <webuijsf:link id="link2" rel="stylesheet" type="text/css" url="sh/styles/shCore.css"/> |
|---|
| 17 | <webuijsf:link id="link3" rel="stylesheet" type="text/css" url="sh/styles/shThemeDefault.css"/> |
|---|
| 18 | </webuijsf:head> |
|---|
| 19 | <webuijsf:body id="body1" style="background-color: rgb(224, 224, 255); -rave-layout: grid"> |
|---|
| 20 | <webuijsf:form id="form1"> |
|---|
| 21 | <div style="left: 0px; top: 0px; position: absolute; width: 100%"> |
|---|
| 22 | <jsp:directive.include file="Encabezado.jspf"/> |
|---|
| 23 | </div> |
|---|
| 24 | <div style="left: 2px; top: 68px; position: absolute; width: 200px"> |
|---|
| 25 | <jsp:directive.include file="MenuIzquierdo.jspf"/> |
|---|
| 26 | <h:panelGrid id="gridPanel3"/> |
|---|
| 27 | </div> |
|---|
| 28 | <h:panelGrid id="pnlExplorador" style="border: 1px solid navy; left: 202px; top: 68px; position: absolute"> |
|---|
| 29 | <webuijsf:staticText id="staticText1" |
|---|
| 30 | style="border-bottom: solid navy 1px; background-color: rgb(204, 204, 255); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; text-align: center; width: 100%" text="Explorador de Variables"/> |
|---|
| 31 | <webuijsf:tabSet id="tsDemo" selected="tabVariables" style="border: 1px solid navy; width: 766px"> |
|---|
| 32 | <webuijsf:tab id="tabVariables" text="Variables"> |
|---|
| 33 | <h:panelGrid id="gridPanel1" style="width: 100%"> |
|---|
| 34 | <webuijsf:staticText id="staticText2" |
|---|
| 35 | style="background-color: rgb(155, 230, 251); color: navy; font-size: 14px; font-variant: small-caps; font-weight: bolder; height: 21px; text-align: left; width: 100%" text="Panel para la Exploración de las Variables de TOL"/> |
|---|
| 36 | <webuijsf:messageGroup id="messageGroup1" title="Mensajes del Sistema"/> |
|---|
| 37 | <h:panelGrid columns="3" id="gridPanel5" style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 32px; width: 100%"> |
|---|
| 38 | <webuijsf:label id="label1" style="text-align: right; width: 100%" text="Tipo de Variable:"/> |
|---|
| 39 | <webuijsf:radioButtonGroup binding="#{Explorador.rbgTipoVariable}" columns="6" id="rbgTipoVariable" |
|---|
| 40 | items="#{Explorador.rbgTipoVariableDefaultOptions.options}" onClick="" style="width: 455px"/> |
|---|
| 41 | <webuijsf:button actionExpression="#{Explorador.btnVerVARS_action}" binding="#{Explorador.btnVerVARS}" |
|---|
| 42 | id="btnVerVARS" text="Ver Variables" toolTip="Ver las variables del tipo seleccionado"/> |
|---|
| 43 | </h:panelGrid> |
|---|
| 44 | <webuijsf:table augmentTitle="false" binding="#{Explorador.tblVARS}" id="tblVARS" paginateButton="true" |
|---|
| 45 | paginationControls="true" width="100%"> |
|---|
| 46 | <webuijsf:tableRowGroup emptyDataMsg="No hay variables para mostrar" id="tableRowGroup1" rows="10" |
|---|
| 47 | sourceData="#{SessionBean1.vars}" sourceVar="currentRow"> |
|---|
| 48 | <webuijsf:tableColumn headerText="Nombre" id="tableColumn1" sort="name" width="120px"> |
|---|
| 49 | <webuijsf:staticText id="staticText3" text="#{currentRow.value['name']}"/> |
|---|
| 50 | </webuijsf:tableColumn> |
|---|
| 51 | <webuijsf:tableColumn headerText="Valor" id="tableColumn2"> |
|---|
| 52 | <webuijsf:staticText id="staticText4" text="#{Explorador.VARValor}"/> |
|---|
| 53 | </webuijsf:tableColumn> |
|---|
| 54 | <webuijsf:tableColumn headerText="Descripción" id="tableColumn3" sort="desc"> |
|---|
| 55 | <webuijsf:staticText id="staticText5" text="#{currentRow.value['desc']}"/> |
|---|
| 56 | </webuijsf:tableColumn> |
|---|
| 57 | <webuijsf:tableColumn align="center" id="tableColumn4" valign="middle" width="60px"> |
|---|
| 58 | <webuijsf:button actionExpression="#{Explorador.btnEditarVAR_action}" id="btnEditarVAR" text="Editar" toolTip="Cambiar el valor de la variable de esta fila"/> |
|---|
| 59 | </webuijsf:tableColumn> |
|---|
| 60 | </webuijsf:tableRowGroup> |
|---|
| 61 | </webuijsf:table> |
|---|
| 62 | <webuijsf:panelLayout binding="#{Explorador.pnlDatosVAR}" id="pnlDatosVAR" |
|---|
| 63 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 238px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 64 | <webuijsf:staticText id="staticText6" |
|---|
| 65 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Generales de la Variable"/> |
|---|
| 66 | <webuijsf:label id="label2" style="left: 24px; top: 48px; position: absolute; text-align: left" text="Nombre:"/> |
|---|
| 67 | <webuijsf:textField binding="#{Explorador.txtVARName}" columns="96" disabled="true" id="txtVARName" style="left: 24px; top: 72px; position: absolute"/> |
|---|
| 68 | <webuijsf:label id="label3" style="left: 24px; top: 96px; position: absolute" text="Descripción:"/> |
|---|
| 69 | <webuijsf:textArea binding="#{Explorador.taVARDesc}" columns="96" disabled="true" id="taVARDesc" rows="5" style="left: 24px; top: 120px; position: absolute"/> |
|---|
| 70 | </webuijsf:panelLayout> |
|---|
| 71 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARText}" id="pnlEditarVARText" |
|---|
| 72 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 238px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 73 | <webuijsf:staticText id="staticText7" |
|---|
| 74 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables de la Variable Tipo Text"/> |
|---|
| 75 | <webuijsf:label id="label4" style="left: 24px; top: 48px; position: absolute; text-align: left" text="Texto actual/Nuevo Texto:"/> |
|---|
| 76 | <webuijsf:textArea binding="#{Explorador.taVARTextText}" columns="96" id="taVARTextText" rows="5" style="left: 24px; top: 72px; position: absolute"/> |
|---|
| 77 | <webuijsf:panelLayout id="layoutPanel1" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 192px; position: absolute; text-align: center; width: 60%"> |
|---|
| 78 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARText_action}" id="btnModificarVARText" |
|---|
| 79 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 80 | <webuijsf:button actionExpression="#{Explorador.btnCancelarVARText_action}" id="btnCancelarVARText" |
|---|
| 81 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 82 | </webuijsf:panelLayout> |
|---|
| 83 | </webuijsf:panelLayout> |
|---|
| 84 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARReal}" id="pnlEditarVARReal" |
|---|
| 85 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 190px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 86 | <webuijsf:staticText id="staticText8" |
|---|
| 87 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables de la Variable Tipo Real"/> |
|---|
| 88 | <webuijsf:label id="label5" style="left: 24px; top: 48px; position: absolute" text="Valor actual/Nuevo Valor:"/> |
|---|
| 89 | <webuijsf:textField binding="#{Explorador.txtVARRealValue}" id="txtVARRealValue" style="left: 24px; top: 72px; position: absolute"/> |
|---|
| 90 | <webuijsf:panelLayout id="layoutPanel2" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 144px; position: absolute; text-align: center; width: 60%"> |
|---|
| 91 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARReal_action}" id="btnModificarVARReal" |
|---|
| 92 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 93 | <webuijsf:button actionExpression="#{Explorador.btnCancelarVARReal_action}" id="btnCancelarVARReal" |
|---|
| 94 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 95 | </webuijsf:panelLayout> |
|---|
| 96 | </webuijsf:panelLayout> |
|---|
| 97 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARDate}" id="pnlEditarVARDate" |
|---|
| 98 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 190px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 99 | <webuijsf:staticText id="staticText9" |
|---|
| 100 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables de la Variable Tipo Date"/> |
|---|
| 101 | <webuijsf:label id="label6" style="position: absolute; left: 24px; top: 48px" text="Fecha actual/Nuevo Fecha:"/> |
|---|
| 102 | <webuijsf:calendar binding="#{Explorador.calVARDateDate}" dateFormatPattern="dd-MM-yyyy" |
|---|
| 103 | dateFormatPatternHelp="dd-MM-aaaa" id="calVARDateDate" style="position: absolute; left: 24px; top: 72px"/> |
|---|
| 104 | <webuijsf:panelLayout id="layoutPanel3" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 144px; position: absolute; text-align: center; width: 60%"> |
|---|
| 105 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARDate_action}" id="btnModificarVARDate" |
|---|
| 106 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 107 | <webuijsf:button actionExpression="#{Explorador.btnCancelarVARDate_action}" id="btnCancelarVARDate" |
|---|
| 108 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 109 | </webuijsf:panelLayout> |
|---|
| 110 | </webuijsf:panelLayout> |
|---|
| 111 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARComplex}" id="pnlEditarVARComplex" |
|---|
| 112 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 190px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 113 | <webuijsf:staticText id="staticText10" |
|---|
| 114 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables de la Variable Tipo Complex"/> |
|---|
| 115 | <webuijsf:label id="label7" style="left: 96px; top: 48px; position: absolute" text="Valor de X actual/Nuevo Valor de X:"/> |
|---|
| 116 | <webuijsf:textField binding="#{Explorador.txtVARComplexX}" id="txtVARComplexX" style="left: 96px; top: 72px; position: absolute"/> |
|---|
| 117 | <webuijsf:label id="label8" style="left: 408px; top: 48px; position: absolute" text="Valor de Y actual/Nuevo Valor de Y:"/> |
|---|
| 118 | <webuijsf:textField binding="#{Explorador.txtVARComplexY}" id="txtVARComplexY" style="left: 408px; top: 72px; position: absolute"/> |
|---|
| 119 | <webuijsf:panelLayout id="layoutPanel4" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 144px; position: absolute; text-align: center; width: 60%"> |
|---|
| 120 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARComplex_action}" id="btnModificarVARComplex" |
|---|
| 121 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 122 | <webuijsf:button actionExpression="#{Explorador.btnCancelarVARComplex_action}" id="btnCancelarVARComplex" |
|---|
| 123 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 124 | </webuijsf:panelLayout> |
|---|
| 125 | </webuijsf:panelLayout> |
|---|
| 126 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARMatrix}" id="pnlEditarVARMatrix" |
|---|
| 127 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 94px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 128 | <webuijsf:staticText id="staticText12" |
|---|
| 129 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables para la Variable Tipo Matrix"/> |
|---|
| 130 | <webuijsf:panelLayout binding="#{Explorador.pnlAccionesVARMatrix}" id="pnlAccionesVARMatrix" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 48px; position: absolute; text-align: center; width: 60%"> |
|---|
| 131 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARMatrix_action}" id="btnModificarVARMatrix" |
|---|
| 132 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modifcar Valor"/> |
|---|
| 133 | <webuijsf:button actionExpression="#{Explorador.btnCancelarVARMatrix_action}" id="btnCancelarVARMatrix" |
|---|
| 134 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 135 | </webuijsf:panelLayout> |
|---|
| 136 | </webuijsf:panelLayout> |
|---|
| 137 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARVMatrix}" id="pnlEditarVARVMatrix" |
|---|
| 138 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 94px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 139 | <webuijsf:staticText id="staticText13" |
|---|
| 140 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables para la Variable tipo VMatrix"/> |
|---|
| 141 | <webuijsf:panelLayout binding="#{Explorador.pnlAccionesVARVMatrix}" id="pnlAccionesVARVMatrix" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 48px; position: absolute; text-align: center; width: 60%"> |
|---|
| 142 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARVMatrix_action}" id="btnModificarVARVMatrix" |
|---|
| 143 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 144 | <webuijsf:button actionExpression="#{Explorador.btnCancelarVARVMatrix_action}" id="btnCancelarVARVMatrix" |
|---|
| 145 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 146 | </webuijsf:panelLayout> |
|---|
| 147 | </webuijsf:panelLayout> |
|---|
| 148 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARPolyn}" id="pnlEditarVARPolyn" |
|---|
| 149 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 166px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 150 | <webuijsf:staticText id="staticText14" |
|---|
| 151 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables para la Variable de Tipo Polyn"/> |
|---|
| 152 | <webuijsf:panelLayout binding="#{Explorador.layoutPanel5}" id="layoutPanel5" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 120px; position: absolute; text-align: center; width: 60%"> |
|---|
| 153 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARPolyn_action}" id="btnModificarVARPolyn" |
|---|
| 154 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 155 | <webuijsf:button actionExpression="#{Explorador.btnCancelarPolyn_action}" id="btnCancelarPolyn" |
|---|
| 156 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 157 | </webuijsf:panelLayout> |
|---|
| 158 | <webuijsf:label id="label9" style="left: 0px; top: 48px; position: absolute; text-align: center; width: 100%" text="Definición en Lenguaje TOL:"/> |
|---|
| 159 | <webuijsf:textField binding="#{Explorador.txtVARPolyn}" columns="94" id="txtVARPolyn" style="height: 32px; left: 48px; top: 72px; position: absolute; width: 90%"/> |
|---|
| 160 | </webuijsf:panelLayout> |
|---|
| 161 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARRatio}" id="pnlEditarVARRatio" |
|---|
| 162 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 166px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 163 | <webuijsf:staticText id="staticText15" |
|---|
| 164 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables para la Variable de Tipo Ratio"/> |
|---|
| 165 | <webuijsf:panelLayout id="layoutPanel6" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 120px; position: absolute; text-align: center; width: 60%"> |
|---|
| 166 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARRatio_action}" id="btnModificarVARRatio" |
|---|
| 167 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 168 | <webuijsf:button actionExpression="#{Explorador.btnCancelarRatio_action}" id="btnCancelarRatio" |
|---|
| 169 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 170 | </webuijsf:panelLayout> |
|---|
| 171 | <webuijsf:label id="label10" style="left: 0px; top: 48px; position: absolute; text-align: center; width: 100%" text="Definición en Lenguaje TOL:"/> |
|---|
| 172 | <webuijsf:textField binding="#{Explorador.txtVARRatio}" columns="94" id="txtVARRatio" style="height: 32px; left: 48px; top: 72px; position: absolute; width: 90%"/> |
|---|
| 173 | </webuijsf:panelLayout> |
|---|
| 174 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARCode}" id="pnlEditarVARCode" |
|---|
| 175 | style="border-top: solid navy 1px; border-bottom: solid navy 1px; height: 166px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 176 | <webuijsf:staticText id="staticText16" |
|---|
| 177 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables de la Variable Tipo Code"/> |
|---|
| 178 | <webuijsf:label id="label11" style="left: 48px; top: 48px; position: absolute; text-align: right; width: 94px" text="Nombre:"/> |
|---|
| 179 | <webuijsf:textField binding="#{Explorador.txtVARCodeName}" columns="40" id="txtVARCodeName" style="position: absolute; left: 144px; top: 48px"/> |
|---|
| 180 | <webuijsf:label id="label12" style="left: 48px; top: 72px; position: absolute; text-align: right; width: 96px" text="Información:"/> |
|---|
| 181 | <webuijsf:textField binding="#{Explorador.txtVARCodeInfo}" columns="80" disabled="true" id="txtVARCodeInfo" style="left: 144px; top: 72px; position: absolute"/> |
|---|
| 182 | <webuijsf:panelLayout id="layoutPanel7" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 120px; position: absolute; text-align: center; width: 60%"> |
|---|
| 183 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARCode_action}" id="btnModificarVARCode" |
|---|
| 184 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 185 | <webuijsf:button actionExpression="#{Explorador.btnCancelarVARCode_action}" id="btnCancelarVARCode" |
|---|
| 186 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 187 | </webuijsf:panelLayout> |
|---|
| 188 | </webuijsf:panelLayout> |
|---|
| 189 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARSerie}" id="pnlEditarVARSerie" |
|---|
| 190 | style="style	border-top: solid navy 1px; border-bottom: solid navy 1px; height: 166px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 191 | <webuijsf:staticText id="staticText17" |
|---|
| 192 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables para la Variable de Tipo Serie"/> |
|---|
| 193 | <webuijsf:label id="label13" style="left: 0px; top: 48px; position: absolute; text-align: center; width: 100%" text="Definición en Lenguaje TOL"/> |
|---|
| 194 | <webuijsf:textField binding="#{Explorador.txtVARSerie}" columns="94" id="txtVARSerie" style="height: 32px; left: 48px; top: 72px; position: absolute; width: 90%"/> |
|---|
| 195 | <webuijsf:panelLayout id="layoutPanel8" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 120px; position: absolute; text-align: center; width: 60%"> |
|---|
| 196 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARSerie_action}" id="btnModificarVARSerie" |
|---|
| 197 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 198 | <webuijsf:button actionExpression="#{Explorador.btnCancelarSerie_action}" id="btnCancelarSerie" |
|---|
| 199 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 200 | </webuijsf:panelLayout> |
|---|
| 201 | </webuijsf:panelLayout> |
|---|
| 202 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARTimeSet}" id="pnlEditarVARTimeSet" |
|---|
| 203 | style="style	border-top: solid navy 1px; border-bottom: solid navy 1px; height: 166px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 204 | <webuijsf:staticText id="staticText18" |
|---|
| 205 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables para la Variable tipo TimeSet"/> |
|---|
| 206 | <webuijsf:label id="label14" style="left: 0px; top: 48px; position: absolute; text-align: center; width: 100%" text="Definición en Lenguaje TOL"/> |
|---|
| 207 | <webuijsf:textField binding="#{Explorador.txtVARTimeSet}" columns="94" id="txtVARTimeSet" style="height: 32px; left: 48px; top: 72px; position: absolute; width: 90%"/> |
|---|
| 208 | <webuijsf:panelLayout id="layoutPanel9" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 120px; position: absolute; text-align: center; width: 60%"> |
|---|
| 209 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARTimeSet_action}" id="btnModificarVARTimeSet" |
|---|
| 210 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Valor"/> |
|---|
| 211 | <webuijsf:button actionExpression="#{Explorador.btnCancelarTimeSet_action}" id="btnCancelarTimeSet" |
|---|
| 212 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 213 | </webuijsf:panelLayout> |
|---|
| 214 | </webuijsf:panelLayout> |
|---|
| 215 | <webuijsf:panelLayout binding="#{Explorador.pnlEditarVARSet}" id="pnlEditarVARSet" |
|---|
| 216 | style="style	border-top: solid navy 1px; border-bottom: solid navy 1px; height: 166px; position: relative; width: 100%; -rave-layout: grid" visible="false"> |
|---|
| 217 | <webuijsf:staticText id="staticText19" |
|---|
| 218 | style="border-bottom: solid navy 3px; background-color: rgb(160, 194, 214); color: navy; font-size: 18px; font-variant: small-caps; font-weight: bolder; height: 28px; left: 0px; top: 0px; position: absolute; text-align: left; width: 100%" text="Datos Modificables para la Variable tipo Set"/> |
|---|
| 219 | <webuijsf:label id="label15" style="left: 0px; top: 48px; position: absolute; text-align: center; width: 100%" text="Definición en Lenguaje TOL"/> |
|---|
| 220 | <webuijsf:textField binding="#{Explorador.txtVARSet}" columns="94" id="txtVARSet" style="height: 32px; left: 48px; top: 72px; position: absolute; width: 90%"/> |
|---|
| 221 | <webuijsf:panelLayout id="layoutPanel10" panelLayout="flow" style="border-width: 1px; border-style: dashed; background-color: rgb(130, 154, 179); height: 32px; left: 20%; top: 120px; position: absolute; text-align: center; width: 60%"> |
|---|
| 222 | <webuijsf:button actionExpression="#{Explorador.btnModificarVARSet_action}" id="btnModificarVARSet" |
|---|
| 223 | style="height: 24px; margin-right: 8px; margin-top: 4px; width: 120px" text="Modificar Vor"/> |
|---|
| 224 | <webuijsf:button actionExpression="#{Explorador.btnCancelarSet_action}" id="btnCancelarSet" |
|---|
| 225 | style="height: 24px; margin-left: 8px; margin-top: 4px; width: 120px" text="Cancelar"/> |
|---|
| 226 | </webuijsf:panelLayout> |
|---|
| 227 | </webuijsf:panelLayout> |
|---|
| 228 | </h:panelGrid> |
|---|
| 229 | </webuijsf:tab> |
|---|
| 230 | <webuijsf:tab id="tab3" text="Código Fuente"> |
|---|
| 231 | <h:panelGrid id="gridPanel2" style="width: 100%"> |
|---|
| 232 | <webuijsf:staticText id="staticText11" |
|---|
| 233 | style="background-color: rgb(155, 230, 251); color: navy; font-size: 14px; font-variant: small-caps; font-weight: bolder; height: 21px; text-align: left; width: 100%" text="Panel de Visor de Código Fuente"/> |
|---|
| 234 | <pre class="brush: java; highlight:[2, 5, 10]; toolbar: false;"> |
|---|
| 235 | //Se deben importar las clases a usar del paquete de TOLJava |
|---|
| 236 | import com.hcarralero.toljava.TOLMachine; |
|---|
| 237 | ... |
|---|
| 238 | //Se crea una instancia de TOLMachine, la cual nos sirve para |
|---|
| 239 | //acceder al Intérprete de TOL y poder consultarlo sobre las |
|---|
| 240 | //variables que se han definido, "tm" es la instancia creada. |
|---|
| 241 | TOLMachine tm= new TOLMachine(); |
|---|
| 242 | ... |
|---|
| 243 | //Usamos un arreglo para almacenar las variables que se definen |
|---|
| 244 | //en el intérprete. Este arreglo puede ser llenado con las variables |
|---|
| 245 | //que nos retorna el intérprete. En la Aplicación DEMO, la Tabla de |
|---|
| 246 | //Variables está asociada a la variable "vars" siguiente: |
|---|
| 247 | private TOLVariable[] vars = null; |
|---|
| 248 | ... |
|---|
| 249 | //Hay varios métodos de TOLMachine que podemos usar para obtener las |
|---|
| 250 | //variables definidas en el intérprete. Cada método se corresponde con |
|---|
| 251 | //un tipo de dato de TOL. El uso de estos métodos se ilustra en los |
|---|
| 252 | //ejemplos de código siguientes, tomados de la Aplicación DEMO |
|---|
| 253 | ... |
|---|
| 254 | //1er Ejemplo: Obtención de Variables Tipo Text |
|---|
| 255 | vars= tm.getTextVariables(); |
|---|
| 256 | ... |
|---|
| 257 | //2do Ejemplo: Obtención de Variables Tipo Real |
|---|
| 258 | vars= tm.getRealVariables(); |
|---|
| 259 | ... |
|---|
| 260 | //3er Ejemplo: Obtención de Variables Tipo Date |
|---|
| 261 | vars= tm.getDateVariables(); |
|---|
| 262 | ... |
|---|
| 263 | //4to Ejemplo: Obtención de Variables Tipo Complex |
|---|
| 264 | vars= tm.getCpmplexVariables(); |
|---|
| 265 | ... |
|---|
| 266 | //En la Aplicación DEMO se ejecuta uno de los ejemplos anteriores cuando |
|---|
| 267 | //se hace click en el botón "Ver Variables", según la opción escogida en |
|---|
| 268 | //los RadioButtoms. |
|---|
| 269 | ... |
|---|
| 270 | //Como el valor que puede tener una variable depende del tipo de dato TOL |
|---|
| 271 | //al que se asocie, entonces es posible saber el tipo por la clase a la |
|---|
| 272 | //que pertenece el valor que contiene. |
|---|
| 273 | ... |
|---|
| 274 | //"var" es una Variable |
|---|
| 275 | TOLVariable var= ...; |
|---|
| 276 | //"to" es un objeto que almacena el valor actual de la variable. |
|---|
| 277 | TOLObject to= var.getValue(); |
|---|
| 278 | ... |
|---|
| 279 | //Preguntando por la clase de "to" se puede saber el tipo de dato |
|---|
| 280 | //Determinar si "to" es un Text de TOL |
|---|
| 281 | if (to.getClass()==TOLText.class) { |
|---|
| 282 | //"to" representa un valor de tipo "Text" en TOL. |
|---|
| 283 | //Con esta confirmación podremos hacer un "casting seguro" al tipo |
|---|
| 284 | //de dato correcto. |
|---|
| 285 | TOLText tt= (TOLText)to; |
|---|
| 286 | //Ahora podemos acceder a los campos correctos para un objeto de |
|---|
| 287 | //tipo TOLText. |
|---|
| 288 | String text= tt.getText(); |
|---|
| 289 | ... |
|---|
| 290 | } else { |
|---|
| 291 | //"to" NO representa un valor de tipo "Text" en TOL. |
|---|
| 292 | //Ahora deberÃamos averiguar por otro tipo de dato para "trabajar" |
|---|
| 293 | //correctamente con "to". |
|---|
| 294 | ... |
|---|
| 295 | } |
|---|
| 296 | ... |
|---|
| 297 | //Determinar si "to" es un Real de TOL |
|---|
| 298 | if (to.getClass()==TOLReal.class) { |
|---|
| 299 | //"to" representa un valor de tipo "Real" en TOL. |
|---|
| 300 | //Con esta confirmación podremos hacer un "casting seguro" al tipo |
|---|
| 301 | //de dato correcto. |
|---|
| 302 | TOLReal tr= (TOLReal)to; |
|---|
| 303 | //Ahora podemos acceder a los campos correctos para un objeto de |
|---|
| 304 | //ipo TOLReal. |
|---|
| 305 | double value= tr.getValue(); |
|---|
| 306 | ... |
|---|
| 307 | } else { |
|---|
| 308 | //"to" NO representa un valor de tipo "Text" en TOL. |
|---|
| 309 | //Ahora deberÃamos averiguar por otro tipo de dato para "trabajar" |
|---|
| 310 | //correctamente con "to". |
|---|
| 311 | ... |
|---|
| 312 | } |
|---|
| 313 | </pre> |
|---|
| 314 | <webuijsf:script type="text/javascript"> |
|---|
| 315 | SyntaxHighlighter.all() |
|---|
| 316 | </webuijsf:script> |
|---|
| 317 | </h:panelGrid> |
|---|
| 318 | </webuijsf:tab> |
|---|
| 319 | </webuijsf:tabSet> |
|---|
| 320 | </h:panelGrid> |
|---|
| 321 | </webuijsf:form> |
|---|
| 322 | </webuijsf:body> |
|---|
| 323 | </webuijsf:html> |
|---|
| 324 | </webuijsf:page> |
|---|
| 325 | </f:view> |
|---|
| 326 | </jsp:root> |
|---|