You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/09/26 19:52:20 UTC

svn commit: r450127 - in /myfaces/tomahawk/trunk/sandbox: core/src/main/java/org/apache/myfaces/custom/fisheye/ core/src/main/tld/entities/ core/src/site/xdoc/ examples/src/main/webapp/

Author: werpu
Date: Tue Sep 26 10:52:19 2006
New Revision: 450127

URL: http://svn.apache.org/viewvc?view=rev&rev=450127
Log:
fisheye scroller functionality added, all tests work now

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenu.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuTag.java
    myfaces/tomahawk/trunk/sandbox/core/src/main/tld/entities/html_fisheyelist_attributes.xml
    myfaces/tomahawk/trunk/sandbox/core/src/site/xdoc/fisheye.xml
    myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenu.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenu.java?view=diff&rev=450127&r1=450126&r2=450127
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenu.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenu.java Tue Sep 26 10:52:19 2006
@@ -52,6 +52,21 @@
     private String _labelEdge;
     private String _orientation;
 
+     private Integer _visibleWindow = null;
+ 
+     public void setVisibleWindow(Integer visibleWindow)
+    {
+        _visibleWindow = visibleWindow;
+    }
+
+    public Integer getVisibleWindow()
+    {
+        if (_visibleWindow != null) return _visibleWindow;
+        ValueBinding vb = getValueBinding("visibleWindow");
+        return vb != null ? (Integer)vb.getValue(getFacesContext()) : null;
+    }
+ 
+    
     public HtmlFishEyeNavigationMenu()
     {
         setRendererType(DEFAULT_RENDERER_TYPE);
@@ -180,6 +195,8 @@
         _attachEdge = (String) values[8];
         _labelEdge = (String) values[9];
         _conservativeTrigger = (Boolean) values[10];
+        _visibleWindow = (Integer)values[11];
+
     }
 
     /**
@@ -187,7 +204,7 @@
      */
     public Object saveState(FacesContext context)
     {
-        Object[] values = new Object[11];
+        Object[] values = new Object[12];
         values[0] = super.saveState(context);
         values[1] = _itemWidth;
         values[2] = _itemHeight;
@@ -199,6 +216,8 @@
         values[8] = _attachEdge;
         values[9] = _labelEdge;
         values[10] = _conservativeTrigger;
+        values[11] = _visibleWindow;
+
         return values;
     }
 

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java?view=diff&rev=450127&r1=450126&r2=450127
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuRenderer.java Tue Sep 26 10:52:19 2006
@@ -21,6 +21,7 @@
 import java.util.List;
 import java.util.Map;
 import java.util.Stack;
+import java.util.TreeMap;
 
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
@@ -41,42 +42,42 @@
 
 /**
  * Renderer for the FishEyeList component
- *
+ * 
  * @author Jurgen Lust (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
 public class HtmlFishEyeNavigationMenuRenderer extends HtmlLinkRenderer {
-    private static final String ON_CLICK_ATTR = "onClick";
+    private static final String ON_CLICK_ATTR             = "onClick";
 
-    private static final String DOJO_COMPONENT_TYPE = "ScrollableFisheyeList";
+    private static final String DOJO_COMPONENT_TYPE       = "ScrollableFisheyeList";
 
-    private static final String DOJO_ITEM_TYPE = "ScrollableFisheyeListItem";
+    private static final String DOJO_ITEM_TYPE            = "ScrollableFisheyeListItem";
 
-    public static final String ATTACH_EDGE_ATTR = "attachEdge";
+    public static final String  ATTACH_EDGE_ATTR          = "attachEdge";
 
-    public static final String CAPTION_ATTR = "caption";
+    public static final String  CAPTION_ATTR              = "caption";
 
-    public static final String EFFECT_UNITS_ATTR = "effectUnits";
+    public static final String  EFFECT_UNITS_ATTR         = "effectUnits";
 
-    public static final String ICON_SRC_ATTR = "iconSrc";
+    public static final String  ICON_SRC_ATTR             = "iconSrc";
 
-    public static final String ITEM_HEIGHT_ATTR = "itemHeight";
+    public static final String  ITEM_HEIGHT_ATTR          = "itemHeight";
 
-    public static final String ITEM_MAX_HEIGHT_ATTR = "itemMaxHeight";
+    public static final String  ITEM_MAX_HEIGHT_ATTR      = "itemMaxHeight";
 
-    public static final String ITEM_MAX_WIDTH_ATTR = "itemMaxWidth";
+    public static final String  ITEM_MAX_WIDTH_ATTR       = "itemMaxWidth";
 
-    public static final String ITEM_PADDING_ATTR = "itemPadding";
+    public static final String  ITEM_PADDING_ATTR         = "itemPadding";
 
-    public static final String ITEM_WIDTH_ATTR = "itemWidth";
+    public static final String  ITEM_WIDTH_ATTR           = "itemWidth";
 
-    public static final String LABEL_EDGE_ATTR = "labelEdge";
+    public static final String  LABEL_EDGE_ATTR           = "labelEdge";
 
-    public static final String ORIENTATION_ATTR = "orientation";
+    public static final String  ORIENTATION_ATTR          = "orientation";
 
-    public static final String CONSERVATIVE_TRIGGER_ATTR = "conservativeTrigger";
+    public static final String  CONSERVATIVE_TRIGGER_ATTR = "conservativeTrigger";
 
-    public static final String RENDERER_TYPE = "org.apache.myfaces.FishEyeList";
+    public static final String  RENDERER_TYPE             = "org.apache.myfaces.FishEyeList";
 
     /**
      * @see javax.faces.render.Renderer#decode(javax.faces.context.FacesContext,
@@ -86,8 +87,7 @@
         FormInfo nestingForm = findNestingForm(component, context);
         if (nestingForm != null) {
             String fieldName = HtmlRendererUtils.getHiddenCommandLinkFieldName(nestingForm);
-            String reqValue = (String) context.getExternalContext()
-                .getRequestParameterMap().get(fieldName);
+            String reqValue = (String) context.getExternalContext().getRequestParameterMap().get(fieldName);
             if (reqValue != null && reqValue.length() > 0) {
                 UIComponent source = context.getViewRoot().findComponent(reqValue);
                 if (source instanceof UINavigationMenuItem) {
@@ -102,27 +102,63 @@
      * @see javax.faces.render.Renderer#encodeBegin(javax.faces.context.FacesContext,
      *      javax.faces.component.UIComponent)
      */
-    public void encodeBegin(FacesContext context, UIComponent component)
-        throws IOException {
+    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
         if (component.isRendered()) {
             HtmlFishEyeNavigationMenu fisheye = (HtmlFishEyeNavigationMenu) component;
             ResponseWriter writer = context.getResponseWriter();
             // initialize DOJO
-            String javascriptLocation = (String) component.getAttributes().get(
-                JSFAttr.JAVASCRIPT_LOCATION);
-            DojoUtils.addMainInclude(context, component, javascriptLocation,
-                                     DojoUtils.getDjConfigInstance(context));
+            String javascriptLocation = (String) component.getAttributes().get(JSFAttr.JAVASCRIPT_LOCATION);
+            DojoUtils.addMainInclude(context, component, javascriptLocation, DojoUtils.getDjConfigInstance(context));
             DojoUtils.addRequire(context, component, "dojo.widget.myfaces.ScrollableFisheyeList");
             DojoUtils.addRequire(context, component, "dojo.widget.html.myfaces.ScrollableFisheyeListItem");
             DojoUtils.addRequire(context, component, "dojo.widget.Button");
-             
+            String leftName = "";
+            if (fisheye.getVisibleWindow() != null) {
+                writer.startElement(HTML.TABLE_ELEM, component);
+                writer.startElement(HTML.TR_ELEM, component);
+                writer.startElement(HTML.TD_ELEM, component);
+                writer.writeAttribute(HTML.WIDTH_ATTR, "30", null);
+                writer.startElement(HTML.DIV_ELEM, component);
+                writer.writeAttribute(HTML.ID_ATTR, component.getClientId(context) + "_left", null);
+                writer.write("<<");
+                writer.endElement(HTML.DIV_ELEM);
+
+                Map paramMap = new TreeMap();
+                paramMap.put("id", DojoUtils.calculateWidgetVarName(component.getClientId(context) + "_left"));
+                leftName = DojoUtils.renderWidgetInitializationCode(writer, component, "Button", paramMap, component.getClientId(context) + "_left", true);
+                // render the onclick
+                writer.endElement(HTML.TD_ELEM);
+                writer.startElement(HTML.TD_ELEM, component);
+            }
+
             writer.startElement(HTML.DIV_ELEM, fisheye);
-            writer.writeAttribute(HTML.ID_ATTR, component.getClientId(context),
-                                  null);
+            writer.writeAttribute(HTML.ID_ATTR, component.getClientId(context), null);
 
             writer.endElement(HTML.DIV_ELEM);
+            String rightName = "";
+            if (fisheye.getVisibleWindow() != null) {
+                writer.endElement(HTML.TD_ELEM);
+                writer.startElement(HTML.TD_ELEM, component);
+                writer.writeAttribute(HTML.WIDTH_ATTR, "30", null);
+                writer.startElement(HTML.DIV_ELEM, component);
+                writer.writeAttribute(HTML.ID_ATTR, component.getClientId(context) + "_right", null);
+                writer.write(">>");
+                writer.endElement(HTML.DIV_ELEM);
+                Map paramMap = new TreeMap();
+                paramMap.put("id", DojoUtils.calculateWidgetVarName(component.getClientId(context) + "_right"));
+                rightName = DojoUtils.renderWidgetInitializationCode(writer, component, "Button", paramMap, component.getClientId(context) + "_right", true);
+
+                writer.endElement(HTML.TD_ELEM);
+                writer.endElement(HTML.TR_ELEM);
+                writer.endElement(HTML.TABLE_ELEM);
+            }
 
             Map paramMap = new HashedMap();
+
+            if (fisheye.getVisibleWindow() != null) {
+                paramMap.put("visibleWindow", fisheye.getVisibleWindow());
+            }
+
             paramMap.put(ITEM_WIDTH_ATTR, fisheye.getItemWidth());
             paramMap.put(ITEM_HEIGHT_ATTR, fisheye.getItemHeight());
             paramMap.put(ITEM_MAX_WIDTH_ATTR, fisheye.getItemMaxWidth());
@@ -132,27 +168,33 @@
             paramMap.put(ITEM_PADDING_ATTR, fisheye.getItemPadding());
             paramMap.put(ATTACH_EDGE_ATTR, fisheye.getAttachEdge());
             paramMap.put(LABEL_EDGE_ATTR, fisheye.getLabelEdge());
-            paramMap.put(CONSERVATIVE_TRIGGER_ATTR, fisheye
-                .getConservativeTrigger());
+            paramMap.put(CONSERVATIVE_TRIGGER_ATTR, fisheye.getConservativeTrigger());
 
             DojoUtils.renderWidgetInitializationCode(context, component, DOJO_COMPONENT_TYPE, paramMap);
 
+            if (fisheye.getVisibleWindow() != null) {
+                writer.startElement(HTML.SCRIPT_ELEM, component);
+                writer.writeAttribute(HTML.TYPE_ATTR, HTML.SCRIPT_TYPE_TEXT_JAVASCRIPT, null);
+                writer
+                        .write(leftName + ".onClick = function(e) {" + DojoUtils.calculateWidgetVarName(component.getClientId(context))
+                                + ".onLeftScroll();};");
+                writer.write(rightName + ".onClick = function(e) {" + DojoUtils.calculateWidgetVarName(component.getClientId(context))
+                        + ".onRightScroll();};");
+                writer.endElement(HTML.SCRIPT_ELEM);
+            }
+
         }
 
     }
 
     private Stack getChildsMenuStack(FacesContext context, UIComponent component) {
-        Stack menuStack = (Stack) ((HttpServletRequest) context
-            .getExternalContext().getRequest()).getAttribute(component
-            .getClientId(context)
-            + "_FishEyeMenuAttr");
+        Stack menuStack = (Stack) ((HttpServletRequest) context.getExternalContext().getRequest()).getAttribute(component.getClientId(context)
+                + "_FishEyeMenuAttr");
         if (menuStack != null)
             return menuStack;
 
         menuStack = new Stack();
-        ((HttpServletRequest) context.getExternalContext().getRequest())
-            .setAttribute(component.getClientId(context)
-                + "_FishEyeMenuAttr", menuStack);
+        ((HttpServletRequest) context.getExternalContext().getRequest()).setAttribute(component.getClientId(context) + "_FishEyeMenuAttr", menuStack);
         return menuStack;
     }
 
@@ -160,8 +202,7 @@
      * @see javax.faces.render.Renderer#encodeChildren(javax.faces.context.FacesContext,
      *      javax.faces.component.UIComponent)
      */
-    public void encodeChildren(FacesContext context, UIComponent component)
-        throws IOException {
+    public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
         ResponseWriter writer = context.getResponseWriter();
         List children = component.getChildren();
         Stack menuStack = (Stack) getChildsMenuStack(context, component);
@@ -170,8 +211,7 @@
             if (!child.isRendered())
                 continue;
             if (child instanceof UINavigationMenuItem) {
-                renderMenuItem(context, writer, component,
-                               (UINavigationMenuItem) child, menuStack);
+                renderMenuItem(context, writer, component, (UINavigationMenuItem) child, menuStack);
             }
         }
     }
@@ -180,16 +220,14 @@
      * @see javax.faces.render.Renderer#encodeEnd(javax.faces.context.FacesContext,
      *      javax.faces.component.UIComponent)
      */
-    public void encodeEnd(FacesContext context, UIComponent component)
-        throws IOException {
+    public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
         if (component.isRendered()) {
             ResponseWriter writer = context.getResponseWriter();
             Stack menuStack = getChildsMenuStack(context, component);
             String jsMenuVar = DojoUtils.calculateWidgetVarName(component.getClientId(context));
-            
+
             writer.startElement(HTML.SCRIPT_ELEM, component);
-            writer.writeAttribute(HTML.TYPE_ATTR,
-                                  HTML.SCRIPT_TYPE_TEXT_JAVASCRIPT, null);
+            writer.writeAttribute(HTML.TYPE_ATTR, HTML.SCRIPT_TYPE_TEXT_JAVASCRIPT, null);
             while (!menuStack.isEmpty()) {
                 String item = (String) menuStack.pop();
                 writer.write(jsMenuVar);
@@ -197,7 +235,7 @@
                 writer.write(item);
                 writer.write(");\n");
             }
-            writer.write(jsMenuVar+".programmaticDone();\n");
+            writer.write(jsMenuVar + ".postCreate(['programmaticdone'],null);\n");
             writer.endElement(HTML.SCRIPT_ELEM);
         }
     }
@@ -210,15 +248,13 @@
         return true;
     }
 
-    protected void renderMenuItem(FacesContext context, ResponseWriter writer,
-                                  UIComponent menu, UINavigationMenuItem item, Stack childsMenuStack)
-        throws IOException {
-        //find the enclosing form
+    protected void renderMenuItem(FacesContext context, ResponseWriter writer, UIComponent menu, UINavigationMenuItem item, Stack childsMenuStack)
+            throws IOException {
+        // find the enclosing form
         FormInfo formInfo = findNestingForm(item, context);
         String clientId = item.getClientId(context);
         if (formInfo == null) {
-            throw new IllegalArgumentException("Component " + clientId
-                + " must be embedded in an form");
+            throw new IllegalArgumentException("Component " + clientId + " must be embedded in an form");
         }
         UIComponent nestingForm = formInfo.getForm();
         String formName = formInfo.getFormName();
@@ -232,30 +268,23 @@
             onClick.append("',1,{source:'");
             onClick.append(clientId);
             onClick.append("'});return false;");
-        }
-        else {
-            //call the clear_<formName> method
-            onClick.append(
-                HtmlRendererUtils
-                    .getClearHiddenCommandFormParamsFunctionName(formName))
-                .append("();");
-
-            if (MyfacesConfig.getCurrentInstance(context.getExternalContext())
-                .isAutoScroll()) {
-                org.apache.myfaces.shared_tomahawk.renderkit.html.util.JavascriptUtils
-                    .appendAutoScrollAssignment(onClick, formName);
+        } else {
+            // call the clear_<formName> method
+            onClick.append(HtmlRendererUtils.getClearHiddenCommandFormParamsFunctionName(formName)).append("();");
+
+            if (MyfacesConfig.getCurrentInstance(context.getExternalContext()).isAutoScroll()) {
+                org.apache.myfaces.shared_tomahawk.renderkit.html.util.JavascriptUtils.appendAutoScrollAssignment(onClick, formName);
             }
 
-            //add id parameter for decode
-            String hiddenFieldName = HtmlRendererUtils
-                .getHiddenCommandLinkFieldName(formInfo);
+            // add id parameter for decode
+            String hiddenFieldName = HtmlRendererUtils.getHiddenCommandLinkFieldName(formInfo);
             onClick.append(jsForm);
             onClick.append(".elements['").append(hiddenFieldName).append("']");
             onClick.append(".value='").append(clientId).append("';");
             addHiddenCommandParameter(context, nestingForm, hiddenFieldName);
         }
 
-        //add the target window
+        // add the target window
         String target = item.getTarget();
         if (target != null && target.trim().length() > 0) {
             onClick.append(jsForm);
@@ -265,14 +294,14 @@
         }
 
         // onSubmit
-        onClick.append("if(").append(jsForm).append(".onsubmit){var result=")
-            .append(jsForm).append(
-            ".onsubmit();  if( (typeof result == 'undefined') || result ) {"
-                + jsForm + ".submit();}}else{");
+        onClick.append("if(").append(jsForm).append(".onsubmit){var result=").append(jsForm).append(
+                ".onsubmit();  if( (typeof result == 'undefined') || result ) {" + jsForm + ".submit();}}else{");
 
-        //submit
+        // submit
         onClick.append(jsForm);
-        onClick.append(".submit();}return false;"); //return false, so that browser does not handle the click
+        onClick.append(".submit();}return false;"); // return false, so that
+                                                    // browser does not handle
+                                                    // the click
 
         Map paramMap = new HashMap();
         paramMap.put(CAPTION_ATTR, item.getItemLabel());
@@ -280,17 +309,13 @@
         paramMap.put(ON_CLICK_ATTR, new StringBuffer("function () {").append(onClick).append("}"));
         // push the onclick as lambda and use a stringbuffer so that we do not
         // get enclosing quotes
-        String menuItemId = DojoUtils.renderWidgetInitializationCode(writer,
-                                                                     item, DOJO_ITEM_TYPE, paramMap, item.getClientId(context),
-                                                                     false);
+        String menuItemId = DojoUtils.renderWidgetInitializationCode(writer, item, DOJO_ITEM_TYPE, paramMap, item.getClientId(context), false);
         childsMenuStack.push(menuItemId);
         // we have to revert the elements,
         // hence a stack
     }
 
-    protected void writeAttribute(ResponseWriter writer,
-                                  HtmlFishEyeNavigationMenu fisheye, String name, Object value)
-        throws IOException {
+    protected void writeAttribute(ResponseWriter writer, HtmlFishEyeNavigationMenu fisheye, String name, Object value) throws IOException {
         if (name != null && value != null) {
             writer.writeAttribute(name, value, null);
         }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuTag.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuTag.java?view=diff&rev=450127&r1=450126&r2=450127
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuTag.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/fisheye/HtmlFishEyeNavigationMenuTag.java Tue Sep 26 10:52:19 2006
@@ -39,7 +39,19 @@
     private String _itemWidth;
     private String _labelEdge;
     private String _orientation;
+    private String _visibleWindow         = null;
 
+
+ 
+ public static final String TAG_PARAM_VisibleWindow = "visibleWindow";
+ 
+ 
+ public void setVisibleWindow(String visibleWindow) {
+ 	_visibleWindow = visibleWindow;
+ }
+ 
+    
+    
     public String getAttachEdge()
     {
         return _attachEdge;
@@ -112,6 +124,7 @@
         _itemWidth = null;
         _labelEdge = null;
         _orientation = null;
+        _visibleWindow = null;
     }
 
     public void setAttachEdge(String attachEdge)
@@ -291,6 +304,21 @@
                         .valueOf(_conservativeTrigger));
             }
         }
+        if (_visibleWindow != null)
+        {
+            if (isValueReference(_visibleWindow))
+            {
+                fisheye.setValueBinding("visibleWindow", app
+                        .createValueBinding(_visibleWindow));
+            }
+            else
+            {
+                fisheye.setVisibleWindow(Integer
+                        .valueOf(_visibleWindow));
+            }
+        }
+
+ 
     }
 
 }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/tld/entities/html_fisheyelist_attributes.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/tld/entities/html_fisheyelist_attributes.xml?view=diff&rev=450127&r1=450126&r2=450127
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/tld/entities/html_fisheyelist_attributes.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/tld/entities/html_fisheyelist_attributes.xml Tue Sep 26 10:52:19 2006
@@ -58,4 +58,10 @@
 			<rtexprvalue>false</rtexprvalue>
 	        <type>java.lang.Boolean</type>
 		</attribute>
+		<attribute>
+			<name>visibleWindow</name>
+			<required>false</required>
+			<rtexprvalue>false</rtexprvalue>
+	        <type>java.lang.Integer</type>
+		</attribute>
 		

Modified: myfaces/tomahawk/trunk/sandbox/core/src/site/xdoc/fisheye.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/site/xdoc/fisheye.xml?view=diff&rev=450127&r1=450126&r2=450127
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/site/xdoc/fisheye.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/site/xdoc/fisheye.xml Tue Sep 26 10:52:19 2006
@@ -67,6 +67,7 @@
 			   [effectUnits="2"]
 			   [itemPadding="10"]
 			   [attachEdge="top|bottom"]
+			   [visibleWindow="4"]
 			   [labelEdge="top|bottom"]&gt;
 &lt;/s:fishEyeNavigationMenu&gt;
             </source>

Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp?view=diff&rev=450127&r1=450126&r2=450127
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/fisheye.jsp Tue Sep 26 10:52:19 2006
@@ -60,7 +60,7 @@
 	<t:div styleClass="outerbar">
 		<s:fishEyeNavigationMenu itemWidth="50" itemHeight="50" itemMaxWidth="200"
 			itemMaxHeight="200" orientation="horizontal" effectUnits="2"
-			itemPadding="10" attachEdge="top" labelEdge="bottom">
+			itemPadding="10" attachEdge="top" labelEdge="bottom" visibleWindow="3" >
 
 			<t:navigationMenuItem icon="images/icon_browser.png"
 				itemLabel="Web Browser"