<%--
/* $Header: systemAssocIncl.jspf 24-jul-2005.14:26:57 andyao Exp $ */

/* Copyright (c) 2004, 2005, Oracle. All rights reserved.  */

/*
   DESCRIPTION
    <short description of component this file declares/defines>

   PRIVATE CLASSES
    <list of private classes defined - with one-line descriptions>

   NOTES
    <other useful comments, qualifications, etc.>

   MODIFIED    (MM/DD/YY)
    andyao      07/24/05 - 
    vesriniv    07/06/05 - add customizations upport 
    andyao      06/13/05 - add table summary 
    andyao      03/09/05 - fix bug 4178482 
    andyao      02/07/05 - use the latest target selector API 
    andyao      01/21/05 - tip alignment 
    andyao      01/07/05 - remove html comment 
    andyao      01/05/05 - add row banding 
    andyao      12/28/04 - 
    andyao      12/09/04 - temporarily remove de/select All buttons 
    andyao      12/01/04 - 
    andyao      11/22/04 - add remove system 
    andyao      11/19/04 - andyao_svcfixes2
    andyao      11/16/04 - Creation
 */

/**
 *  @version $Header: systemAssocIncl.jspf 24-jul-2005.14:26:57 andyao Exp $
 *  @author  andyao  
 *  @since   release specific (what release of product did this appear in)
 */

 --%>


<uix:tableLayout borderWidth="0" cellSpacing="5" width="100%">
  <uix:rowLayout>
    <uix:cellFormat height="60" vAlign="top">
      <uix:stackLayout renderedBinding="<%=SystemAssocPageViewBean.SHOW_PAGE_TEXT_KEY%>">
        <uix:contents>
          <uix:messagePrompt 
            renderedBinding="<%=PageViewBean.IS_CREATE_MODE%>"
            promptBinding="SYSTEM_ASSOC_PAGE_TEXT1@gensvc"/>
          <uix:messagePrompt 
            renderedBinding="<%=PageViewBean.IS_EDIT_MODE%>"
            promptBinding="SYSTEM_ASSOC_PAGE_TEXT2@gensvc"/>
          <uix:spacer height="20"/>
        </uix:contents> 
      </uix:stackLayout>

      <uix:labeledFieldLayout labelWidth="15%" fieldWidth="85%"
        renderedBinding="<%=SystemAssocPageViewBean.SHOW_SYSTEM_INFO_KEY%>">
        <%-- systemName --%>
        <uix:messageTextInput 
          promptBinding="SYSTEM@gensvc"
          readOnly="true"
          styleClass="OraDataText"
          textBinding="<%=SystemAssocPageViewBean.SYSTEM_NAME_KEY%>"
          >
          <%-- the button add additional system components --%>
          <uix:end>
            <uix:switcher childNameBinding="<%=SystemAssocPageViewBean.READ_ONLY_KEY%>">
              <uix:case name="false">
                <uix:flowLayout renderedBinding="<%=SystemAssocPageViewBean.SHOW_ALLOW_MEMBER_EDIT_KEY%>">
                  <uix:spacer width="10"/>
                  <oem:targetSelection
                    textBinding="<%=SystemAssocPageViewBean.SELECT_SYSTEM_BUTTON_TEXT_KEY%>" 
                    />
                  <uix:spacer width="10"/>
                  <uix:submitButton
                    renderedBinding="<%=SystemAssocPageViewBean.SHOW_REMOVE_BUTTON_KEY%>"
                    unvalidated="true"
                    textBinding="REMOVE_SYSTEM@gensvc"
                    name="<%=UIConstants.EVENT_PARAM%>"
                    value="<%=SystemAssocPageViewBean.REMOVE_SYSTEM_EVENT%>"/>
                </uix:flowLayout>
              </uix:case>
            </uix:switcher>
          </uix:end>
        </uix:messageTextInput>

        <%-- system time zone --%>
        <uix:messageTextInput 
          readOnly="true"
          promptBinding="TIME_ZONE@gensvc" 
          textBinding="<%=SystemAssocPageViewBean.SYSTEM_TIME_ZONE_KEY%>"
          styleClass="OraDataText"
          />
      </uix:labeledFieldLayout>

      <uix:spacer height="10"/>

      <uix:tableLayout width="100%">
        <uix:rowLayout rendered="no">
          <uix:cellFormat hAlign="right" renderedBinding="<%=SystemAssocPageViewBean.NOT_VIEW_MODE%>">
            <uix:submitButton
              textBinding="DESELECT_ALL_AS_KEY_COMPS@gensvc"
              name="<%=UIConstants.EVENT_PARAM%>"
              value="<%=SystemAssocPageViewBean.DESELECT_ALL_KEY_COMPS_EVENT%>"
              />
            <uix:spacer width="10"/>
            <uix:submitButton
              textBinding="SELECT_ALL_AS_KEY_COMPS@gensvc"
              name="<%=UIConstants.EVENT_PARAM%>"
              value="<%=SystemAssocPageViewBean.SELECT_ALL_KEY_COMPS_EVENT%>"
              />
          </uix:cellFormat>
        </uix:rowLayout>
        <uix:rowLayout>
          <uix:cellFormat>
            <%-- table of system components --%>
            <uix:table
              columnHeaderDataBinding="<%=SystemAssocPageViewBean.COLUMN_HEADER_DATA_KEY%>"
              columnFormatsBinding="<%=SystemAssocPageViewBean.COLUMN_FORMATS_DATA_KEY%>"
              tableDataBinding="<%=SystemAssocPageViewBean.TABLE_DATA_KEY%>"
              alternateTextBinding="<%=SystemAssocPageViewBean.ALTERNATE_TEXT_KEY%>"
              width="100%"
              id="<%=SystemAssocPageViewBean.SYSTEM_COMPONENTS_KEY%>"
              partialRenderMode="self"
              blockSizeBinding="<%=SystemAssocPageViewBean.BLOCK_SIZE_KEY%>"
              maxValueBinding="<%=SystemAssocPageViewBean.MAX_KEY%>"
              valueBinding="<%=SystemAssocPageViewBean.START_KEY%>"
              unvalidated="true"
              formSubmitted="true"
              renderedBinding="<%=PageViewBean.IS_EDIT_MODE%>"
              summaryBinding="SYSTEM_COMPONENTS@gensvc"
              >
              <uix:tableFormat tableBanding="rowBanding"/>
              <uix:columnHeaderStamp>
                <uix:sortableHeader 
                  textBinding="<%=UIConstants.TEXT_KEY%>" 
                  sortableBinding="sortable"
                  />
              </uix:columnHeaderStamp>
              <uix:contents>
                <uix:text textBinding="<%=SystemAssocPageViewBean.COMPONENT_KEY%>"/>
                <uix:text textBinding="<%=SystemAssocPageViewBean.TYPE_KEY%>"/>
                <uix:checkBox 
                  checkedBinding="<%=SystemAssocPageViewBean.KEY_COMPONENT_KEY%>" 
                  shortDescBinding="KEY_COMPONENT@gensvc"
                  name="<%=SystemAssocPageViewBean.KEY_COMPONENT_KEY%>" 
                  readOnlyBinding="<%=SystemAssocPageViewBean.READ_ONLY_KEY%>"/>
                <%--                  
                <uix:text 
                  textBinding="<%=SystemAssocPageViewBean.FAULT_TEST_DEFINED_KEY%>"
                  renderedBinding="<%=SystemAssocPageViewBean.SHOW_FAULT_TEST_KEY%>"
                  /> 

                <uix:image source="/em/images/updateicon_enabled.gif"
                  destinationBinding="<%=SystemAssocPageViewBean.FAULT_TEST_DEFINED_KEY%>"
                  renderedBinding="<%=SystemAssocPageViewBean.SHOW_FAULT_TEST_KEY%>"
                  />
                --%>
              </uix:contents>
            </uix:table>

            <uix:table
              columnHeaderDataBinding="<%=SystemAssocPageViewBean.COLUMN_HEADER_DATA_KEY%>"
              columnFormatsBinding="<%=SystemAssocPageViewBean.COLUMN_FORMATS_DATA_KEY%>"
              tableDataBinding="<%=SystemAssocPageViewBean.TABLE_DATA_KEY%>"
              alternateTextBinding="<%=SystemAssocPageViewBean.ALTERNATE_TEXT_KEY%>"
              width="80%"
              id="<%=SystemAssocPageViewBean.SYSTEM_COMPONENTS_KEY%>"
              partialRenderMode="self"
              blockSizeBinding="<%=SystemAssocPageViewBean.BLOCK_SIZE_KEY%>"
              maxValueBinding="<%=SystemAssocPageViewBean.MAX_KEY%>"
              valueBinding="<%=SystemAssocPageViewBean.START_KEY%>"
              unvalidated="true"
              formSubmitted="true"
              renderedBinding="<%=PageViewBean.IS_VIEW_MODE%>"
              summaryBinding="SYSTEM_COMPONENTS@gensvc"
              >
              <uix:tableFormat tableBanding="rowBanding"/>
              <uix:columnHeaderStamp>
                <uix:sortableHeader textBinding="text"
                  sortableBinding="sortable"/>
              </uix:columnHeaderStamp>
              <uix:contents>
                <uix:text textBinding="<%=SystemAssocPageViewBean.COMPONENT_KEY%>"/>
                <uix:text textBinding="<%=SystemAssocPageViewBean.TYPE_KEY%>"/>
                <uix:checkBox 
                  checkedBinding="<%=SystemAssocPageViewBean.KEY_COMPONENT_KEY%>" 
                  name="<%=SystemAssocPageViewBean.KEY_COMPONENT_KEY%>" 
                  readOnlyBinding="<%=SystemAssocPageViewBean.READ_ONLY_KEY%>"
                  />
              </uix:contents>
            </uix:table>

            <uix:table
              columnHeaderDataBinding="<%=SystemAssocPageViewBean.COLUMN_HEADER_DATA_KEY%>"
              columnFormatsBinding="<%=SystemAssocPageViewBean.COLUMN_FORMATS_DATA_KEY%>"
              tableDataBinding="<%=SystemAssocPageViewBean.TABLE_DATA_KEY%>"
              alternateTextBinding="<%=SystemAssocPageViewBean.ALTERNATE_TEXT_KEY%>"
              width="100%"
              id="<%=SystemAssocPageViewBean.SYSTEM_COMPONENTS_KEY%>"
              partialRenderMode="self"
              blockSizeBinding="<%=SystemAssocPageViewBean.BLOCK_SIZE_KEY%>"
              maxValueBinding="<%=SystemAssocPageViewBean.MAX_KEY%>"
              valueBinding="<%=SystemAssocPageViewBean.START_KEY%>"
              unvalidated="true"
              formSubmitted="true"
              renderedBinding="<%=PageViewBean.IS_CREATE_MODE%>"
              >
              <uix:tableFormat tableBanding="rowBanding"/>
              <uix:columnHeaderStamp>
                <uix:sortableHeader textBinding="text"
                  sortableBinding="sortable"/>
              </uix:columnHeaderStamp>
              <uix:contents>
                <uix:text textBinding="<%=SystemAssocPageViewBean.COMPONENT_KEY%>"/>
                <uix:text textBinding="<%=SystemAssocPageViewBean.TYPE_KEY%>"/>
                <uix:checkBox 
                  checkedBinding="<%=SystemAssocPageViewBean.KEY_COMPONENT_KEY%>" 
                  name="<%=SystemAssocPageViewBean.KEY_COMPONENT_KEY%>" 
                  readOnlyBinding="<%=SystemAssocPageViewBean.READ_ONLY_KEY%>"
                  />
              </uix:contents>
            </uix:table>
          </uix:cellFormat>
        </uix:rowLayout>
      </uix:tableLayout>
    </uix:cellFormat>
    <uix:cellFormat renderedBinding="<%=PageViewBean.SHOW_TIP_KEY%>">
      <uix:spacer width="50" height="1"/>
    </uix:cellFormat>
    <uix:cellFormat vAlign="top" renderedBinding="<%=PageViewBean.SHOW_TIP_KEY%>">
      <uix:contentContainer textBinding="TIP@gensvc" width="300"
        renderedBinding="<%=PageViewBean.IS_CREATE_MODE%>">
        <uix:styledText styleClass="OraInstructionText">
          <uix:rawText textBinding="SYSTEM_ASSOC_PAGE_TEXT4@gensvc"/>
          <uix:rawText text="<br\/><br/>"/>
          <uix:rawText textBinding="SYSTEM_ASSOC_PAGE_TEXT9@gensvc"/>
        </uix:styledText>

      </uix:contentContainer>
      <uix:contentContainer textBinding="TIP@gensvc" width="300"
        renderedBinding="<%=PageViewBean.IS_EDIT_MODE%>">
        <uix:styledText styleClass="OraInstructionText">
          <uix:rawText textBinding="SYSTEM_ASSOC_PAGE_TEXT4@gensvc"/>
          <uix:rawText text="<br\/><br/>"/>
          <uix:rawText textBinding="SYSTEM_ASSOC_PAGE_TEXT6@gensvc"/>
          <uix:rawText text="<br\/><br/>"/>
          <uix:rawText textBinding="SYSTEM_ASSOC_PAGE_TEXT7@gensvc"/>
        </uix:styledText>
      </uix:contentContainer>
    </uix:cellFormat>
  </uix:rowLayout>

</uix:tableLayout>
