<?xml version="1.0" encoding="ISO-8859-1"?>

<taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>Menu Component</short-name>
    <info>
    </info>
    <tag>
        <name>menu</name>
        <tag-class>com.softaspects.galileo.client.jsp.html.menu.MenuBarTag</tag-class>
        <body-content>JSP</body-content>
        <info>

            <![CDATA[
            Top level component properties

    @Attributes

    @AttributeName          : id
    @AttributeInfo: Id of MenuBar component

    @AttributeName          : menuItemWidth
    @AttributeInfo: Item size in pixels.

    @AttributeName          : menuItemHeight
    @AttributeInfo: Item size in pixels.

    @AttributeName          : fontSize
    @AttributeInfo: Font size of item's text

    @AttributeName          : imageWidth
    @AttributeInfo: Default width of images

    @AttributeName          : imageHeight
    @AttributeInfo: Default height of images

    @AttributeName          : fontWeight
    @AttributeInfo: FontWeight for item's text

    @AttributeName          : fontFamily
    @AttributeInfo: FontFamily for item's text

    @AttributeName          : fontColor
    @AttributeInfo: Font color for item's text

    @AttributeName          : fontColorHilite
    @AttributeInfo: Font color for item's text when mouse is over

    @AttributeName          : borderColor
    @AttributeInfo: Color of border

    @AttributeName          : menuItemBorder
    @AttributeInfo: Must be 0|1.If 1 - draw border around items

    @AttributeName          : menuItemBgColor
    @AttributeInfo: Background color of the component.

    @AttributeName          : menuHiliteBgColor
    @AttributeInfo: Background color for an item when mouse is over it.

    @AttributeName          : childMenuIcon
    @AttributeInfo: URL of the image for a child menu indicator
                           Icon for a item containing submenu.

    @AttributeName          : menuLabel
    @AttributeInfo: Label for a menu.

    @AttributeName          : menuAbsolutePosition
    @AttributeInfo: Must be true|false.Menu may have absolute|relative
                           position for Horyzontal Menu and absolute
                           position for Vertical Menu.

    @AttributeName          : verticalMenu
    @AttributeInfo: Must be true|false.Horyzontal or Vertical top level menubar.


    @AttributeName          : submenuVerticalLayout
    @AttributeInfo: Must be true|false.Set default layout for submenus(Vertical|Horyzontal)


    @AttributeName          : verticalSeparator
    @AttributeInfo: Must be true|false.Used to separate items
    in horyzontal top level menubar

    @AttributeName          : userOnItemSelect
    @AttributeInfo: User defined callback javascript function called when menu item is clicked.

    @AttributeName          : left,top
    @AttributeInfo: X,Y coordinates of Menu in absolute position mode.

    @AttributeName          : rootMenuNumber
    @AttributeInfo: Number of current root Menu beginning from 0.

    @AttributeName          : rootMenuVarName
    @AttributeInfo: Name of js variable for root Menu component.

    @AttributeName          : popUp
    @AttributeInfo: Must be true|false.
    If true - Menu is in PopUp mode.

    @AttributeName          : menu3DLook
    @AttributeInfo: Must be true|false.If true - draw 3D like Menu borders.
                           Useful only for horyzontal menus.

    @AttributeName          : lastSeparator
    @AttributeInfo: Must be true|false.If true - last menu separator is drawed.
                           Useful only for horyzontal top level menubar.

    @Attributes end
    ]]>
</info>
        <attribute>
                <name>id</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>fontSize</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>menuItemWidth</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>menuItemHeight</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>imageWidth</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>imageHeight</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>fontWeight</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>fontFamily</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>fontColor</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>fontColorHilite</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>borderColor</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>menuItemBorder</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>menuItemBgColor</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>menuHiliteBgColor</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>childMenuIcon</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>menuLabel</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>menuAbsolutePosition</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>verticalMenu</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>submenuVerticalLayout</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>verticalSeparator</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>userOnItemSelect</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>left</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>top</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>rootMenuNumber</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>rootMenuVarName</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>popUp</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>menu3DLook</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>lastSeparator</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>

</tag>
<tag>
        <name>dataModel</name>
        <tag-class>com.softaspects.galileo.client.jsp.html.menu.MenuDataModelTag</tag-class>
        <body-content>JSP</body-content>
        <info>

        <![CDATA[
        Holder of component's data model. Model can be instantiated and saved
    in context separately from the component definition and can be used by different
    components simultaneously.


    @Attributes:

    @AttributeName beanName
    @AttributeInfo Name with which the model is stored in context.

    @AttributeName scope
    @AttributeInfo Context in which the model is stored.

    Values(in any letter case): REQUEST - request context,
    SESSION - session context.
    APPLICATION - application context.


    @Attributes end.
    ]]>

</info>
        <attribute>
                <name>beanName</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>scope</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
</tag>
<tag>
        <name>selectionModel</name>
        <tag-class>com.softaspects.galileo.client.jsp.html.menu.MenuSelectionModelTag</tag-class>
        <body-content>JSP</body-content>
        <info>

        <![CDATA[

        Holder of component's selection model. Model can be instantiated and saved
    in context separately from the component definition and can be used by different
    components simultaneously.


    @Attributes:

    @AttributeName beanName
    @AttributeInfo Name with which the model is stored in context.

    @AttributeName scope
    @AttributeInfo Context in which the model is stored.

    Values(in any letter case): REQUEST - request context,
    SESSION - session context.
    APPLICATION - application context.

    @AttributeName          : selection
    @AttributeInfo: Menu's initial selection.
    For example: "0,1,1" - select the first item,then second item in submenu,
    then second item in that submenu.Client side javascript component performs
    all necessary validation if wrong path is given.

    @Attributes end.
    ]]>

</info>
        <attribute>
                <name>beanName</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>scope</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>selection</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
</tag>
<tag>
        <name>item</name>
        <tag-class>com.softaspects.galileo.client.jsp.html.menu.MenuItemTag</tag-class>
        <body-content>JSP</body-content>
<info>
       <![CDATA[

        Menu item .

                @Attributes:

    @AttributeName: text
    @AttributeInfo: Text of an item

    @AttributeName: data
    @AttributeInfo: Data of an item.

    @AttributeName: index
    @AttributeInfo: Index of an item beginning from 0.

    @AttributeName: imageTag
    @AttributeInfo: If item contains image - URL to an image.

    @AttributeName: rollOverImageTag
    @AttributeInfo: URL to rollover item's image.

    @AttributeName: itemWidth
    @AttributeInfo: Submenu Item width in pixels.Useful for Horyzontal submenus.

    @AttributeName: submenuSeparator
    @AttributeInfo: Must be true|false.If true separator is used in
                           horyzontal submenu.

    @AttributeName: verticalSubmenu
    @AttributeInfo: Must be true|false.Defines to draw
                           horyzontal or vertical submenu.


    @Attributes end
    ]]>

</info>
        <attribute>
                <name>text</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>data</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>index</name>
                <required>true</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>imageTag</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>rollOverImageTag</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>submenuSeparator</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>verticalSubmenu</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
                <name>itemWidth</name>
                <required>false</required>
                <rtexprvalue>true</rtexprvalue>
        </attribute>
</tag>

</taglib>
