<?xml version="1.0" encoding="UTF-8" ?>
<amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
          xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
  <amx:panelPage id="pp1" styleClass="panelPagebck">
    <amx:facet name="header">
            <amx:tableLayout id="tl4" inlineStyle="padding-right:10px;padding-left:10px;background-color:Aqua;"
                             halign="center">
                <amx:rowLayout id="rl3">
                    <amx:cellFormat id="cf3" halign="center">
                        <amx:outputText id="ot1" value="Anlık Puan"/>
                    </amx:cellFormat>
                </amx:rowLayout>
                <amx:rowLayout id="rl12">
                    <amx:cellFormat id="cf12" halign="center">
                        <amx:outputText id="ot11" value="#{applicationScope.ToplamaMBean.anlikPuan}"/>
                    </amx:cellFormat>
                </amx:rowLayout>
            </amx:tableLayout>
        </amx:facet>
    <amx:facet name="primary">
            <amx:tableLayout id="tl2" inlineStyle="background-color:Fuchsia;padding-right:20px;padding-left:20px;"
                             halign="center">
                <amx:rowLayout id="rl1">
                    <amx:cellFormat id="cf1" valign="middle" halign="center">
                        <amx:outputText value="Rekor" id="ot_rekor_label"/>
                    </amx:cellFormat>
                </amx:rowLayout>
                <amx:rowLayout>
                    <amx:cellFormat valign="middle" halign="center">
                        <amx:outputText value="#{applicationScope.ToplamaMBean.rekor}" id="ot_rekor_value"/>
                    </amx:cellFormat>
                </amx:rowLayout>
            </amx:tableLayout>
        </amx:facet>
    <amx:facet name="secondary">
            <amx:tableLayout id="tl3" inlineStyle="padding-right:20px;padding-left:20px; background-color:Lime;"
                             halign="center">
                <amx:rowLayout id="rl2">
                    <amx:cellFormat id="cf2" valign="middle" halign="center">
                        <amx:outputText value="En İyi" id="ot5"/>
                    </amx:cellFormat>
                </amx:rowLayout>
                <amx:rowLayout>
                    <amx:cellFormat valign="middle" halign="center">
                        <amx:outputText value="#{applicationScope.ToplamaMBean.toplamPuan}"/>
                    </amx:cellFormat>
                </amx:rowLayout>
            </amx:tableLayout>
        </amx:facet>
        <amx:commandLink id="cl2" action="goMenu">
        <amx:tableLayout id="tl5" inlineStyle="margin-top:5px; margin-bottom:5px; margin-left:5px;">
            <amx:rowLayout id="rl4">
                <amx:cellFormat id="cf4" styleClass="menubck">
                        <amx:outputText value="Menu" id="ot3" styleClass="menulink"/>
                    </amx:cellFormat>
                <amx:cellFormat id="cf5" rendered="false">
                    <amx:outputText value="outputText2" id="ot4"/>
                </amx:cellFormat>
            </amx:rowLayout>
        </amx:tableLayout>
        </amx:commandLink>
        <amx:commandLink id="cl1">
            <amx:actionListener id="al2" type="swipeUp" binding="#{applicationScope.ToplamaMBean.up}"/>
            <amx:actionListener id="al1" type="swipeDown" binding="#{applicationScope.ToplamaMBean.down}"/>
            <amx:actionListener id="al3" type="swipeRight" binding="#{applicationScope.ToplamaMBean.right}"/>
            <amx:actionListener id="al4" type="swipeLeft" binding="#{applicationScope.ToplamaMBean.left}"/>
            <amx:tableLayout id="tl1" halign="center" styleClass="tablobck" layout="weighted">
                <amx:iterator var="x" value="#{applicationScope.ToplamaMBean.temp}">
                    <amx:rowLayout>
                        <amx:iterator var="y" value="#{x}" id="it_12">
                            <amx:cellFormat styleClass="#{y.styleClass}"
                                            inlineStyle="text-align:center;border-color:Gray; border-style:solid;margin:2px; padding:5px; border-width:5px; width:#{y.width} height:#{y.height}">
                                <amx:outputText value="#{y.value eq 0 ? '' : y.value}" styleClass="#{y.styleClass}" id="ot2"/>
                            </amx:cellFormat>
                        </amx:iterator>
                    </amx:rowLayout>
                </amx:iterator>
            </amx:tableLayout>
        </amx:commandLink>
    </amx:panelPage>
</amx:view>
