View Javadoc

1   // ---------- Attention: Generated code, please do not modify! -----------  
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one or more
5    * contributor license agreements.  See the NOTICE file distributed with
6    * this work for additional information regarding copyright ownership.
7    * The ASF licenses this file to You under the Apache License, Version 2.0
8    * (the "License"); you may not use this file except in compliance with
9    * the License.  You may obtain a copy of the License at
10   *
11   *      http://www.apache.org/licenses/LICENSE-2.0
12   *
13   * Unless required by applicable law or agreed to in writing, software
14   * distributed under the License is distributed on an "AS IS" BASIS,
15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   * See the License for the specific language governing permissions and
17   * limitations under the License.
18   */
19  
20  package org.apache.myfaces.tobago.component;
21  
22  import javax.faces.context.FacesContext;
23  import org.apache.myfaces.tobago.context.Markup;
24  import org.apache.myfaces.tobago.internal.component.AbstractUIToolBar;
25  import org.apache.myfaces.tobago.layout.Display;
26  import org.apache.myfaces.tobago.layout.Measure;
27  import org.apache.myfaces.tobago.internal.util.ArrayUtils;
28  import org.apache.myfaces.tobago.internal.util.StringUtils;
29  import org.apache.myfaces.tobago.internal.util.Deprecation;
30  import org.apache.myfaces.tobago.renderkit.MarginValues;
31  import org.apache.myfaces.tobago.renderkit.SpacingValues;
32  import org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer;
33  import javax.el.ELException;
34  import javax.faces.FacesException;
35  import java.util.ArrayList;
36  import java.util.List;
37  import javax.el.MethodExpression;
38  import javax.el.ValueExpression;
39  
40  /** 
41   <p/>
42    Renders a toolbar.<p />
43    Allowed subcomponents are subtypes of UICommand i.e.
44    <code>'button'</code> and <code>'link'</code> tags.
45    These are rendered by ToolbarRenderer, so the result has
46    no difference.<p />
47    To add an drop down menu to a button add a facet <code>'dropDownMenu'</code>
48    containing a
49    <a href="menu.html"><code>&lt;tc:menu></code></a>
50    tag to the button. Label's and Image's on those menu tag's are ignored
51    and replaced by the renderer.
52    <pre>
53         &lt;tc:button onclick="alert('test 0')"
54             label="Alert 0" &gt;
55           &lt;f:facet name="dropDownMenu"&gt;
56             &lt;tc:menu&gt;
57               &lt;tc:menuCommand onclick="alert('test 1')" label="Alert 1"/&gt;
58               &lt;tc:menuCommand onclick="alert('test 2')" label="Alert 2"/&gt;
59               &lt;tc:menuCommand onclick="alert('test 3')" label="Alert 3"/&gt;
60             &lt;/tc:menu&gt;
61           &lt;/f:facet&gt;
62         &lt;/tc:button&gt;
63         </pre>
64    * UIComponent class, generated from template {@code component2.0.stg} with class
65    * {@link org.apache.myfaces.tobago.internal.taglib.component.ToolBarTagDeclaration}.
66   */
67  public class UIToolBar
68      extends AbstractUIToolBar implements SupportsMarkup {
69  
70    public static final String COMPONENT_TYPE = "org.apache.myfaces.tobago.ToolBar";
71  
72    public static final String COMPONENT_FAMILY = "javax.faces.Panel";
73  
74    private org.apache.myfaces.tobago.context.Markup currentMarkup;
75  
76    enum PropertyKeys {
77      markup,
78      marginLeft,
79      minimumHeight,
80      borderLeft,
81      tip,
82      height,
83      minimumWidth,
84      overflowX,
85      rowSpan,
86      overflowY,
87      left,
88      columnSpan,
89      borderRight,
90      paddingBottom,
91      maximumHeight,
92      top,
93      orientation,
94      currentWidth,
95      paddingTop,
96      marginTop,
97      marginRight,
98      width,
99      preferredHeight,
100     currentHeight,
101     labelPosition,
102     borderBottom,
103     display,
104     maximumWidth,
105     paddingLeft,
106     paddingRight,
107     preferredWidth,
108     marginBottom,
109     iconSize,
110     verticalIndex,
111     borderTop,
112     horizontalIndex,
113   }
114 
115   public String getFamily() {
116     return COMPONENT_FAMILY;
117   }
118 
119 
120   public org.apache.myfaces.tobago.context.Markup getMarkup() {
121     Object object = getStateHelper().eval(PropertyKeys.markup);
122     if (object != null) {
123       return Markup.valueOf(object);
124     }
125     return null;
126   }
127 
128   public void setMarkup(org.apache.myfaces.tobago.context.Markup markup) {
129     getStateHelper().put(PropertyKeys.markup, markup);
130   }
131 
132   public org.apache.myfaces.tobago.layout.Measure getMarginLeft() {
133     Object object = getStateHelper().eval(PropertyKeys.marginLeft);
134     if (object != null) {
135        return Measure.valueOf(object);
136     }
137     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMarginLeft(getFacesContext(), this) : Measure.ZERO;
138   }
139 
140   public void setMarginLeft(org.apache.myfaces.tobago.layout.Measure marginLeft) {
141     getStateHelper().put(PropertyKeys.marginLeft, marginLeft);
142   }
143 
144   public org.apache.myfaces.tobago.layout.Measure getMinimumHeight() {
145     Object object = getStateHelper().eval(PropertyKeys.minimumHeight);
146     if (object != null) {
147        return Measure.valueOf(object);
148     }
149     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMinimumHeight(getFacesContext(), this) : Measure.ZERO;
150   }
151 
152   public void setMinimumHeight(org.apache.myfaces.tobago.layout.Measure minimumHeight) {
153     getStateHelper().put(PropertyKeys.minimumHeight, minimumHeight);
154   }
155 
156   /**
157   This attribute is for internal use only.
158 
159   */
160   public org.apache.myfaces.tobago.layout.Measure getBorderLeft() {
161     Object object = getStateHelper().eval(PropertyKeys.borderLeft);
162     if (object != null) {
163        return Measure.valueOf(object);
164     }
165     return getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)
166    getRenderer(getFacesContext())).getBorderLeft(getFacesContext(), this) : Measure.ZERO;
167   }
168 
169   public void setBorderLeft(org.apache.myfaces.tobago.layout.Measure borderLeft) {
170     getStateHelper().put(PropertyKeys.borderLeft, borderLeft);
171   }
172 
173   /**
174   Text value to display as tooltip.
175 
176   */
177   public java.lang.String getTip() {
178     return (java.lang.String) getStateHelper().eval(PropertyKeys.tip);
179   }
180 
181   public void setTip(java.lang.String tip) {
182     getStateHelper().put(PropertyKeys.tip, tip);
183   }
184 
185   /**
186   This value will usually be set by the layout manager.
187 
188   */
189   public org.apache.myfaces.tobago.layout.Measure getHeight() {
190     Object object = getStateHelper().eval(PropertyKeys.height);
191     if (object != null) {
192        return Measure.valueOf(object);
193     }
194     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getHeight(getFacesContext(), this) : Measure.ZERO;
195   }
196 
197   public void setHeight(org.apache.myfaces.tobago.layout.Measure height) {
198     getStateHelper().put(PropertyKeys.height, height);
199   }
200 
201   public org.apache.myfaces.tobago.layout.Measure getMinimumWidth() {
202     Object object = getStateHelper().eval(PropertyKeys.minimumWidth);
203     if (object != null) {
204        return Measure.valueOf(object);
205     }
206     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMinimumWidth(getFacesContext(), this) : Measure.ZERO;
207   }
208 
209   public void setMinimumWidth(org.apache.myfaces.tobago.layout.Measure minimumWidth) {
210     getStateHelper().put(PropertyKeys.minimumWidth, minimumWidth);
211   }
212 
213   /**
214   This attribute is for internal use only.
215 
216   */
217   public boolean isOverflowX() {
218     Boolean bool = (Boolean) getStateHelper().eval(PropertyKeys.overflowX);
219     if (bool != null) {
220       return bool;
221     }
222     return false;
223   }
224 
225   public void setOverflowX(boolean overflowX) {
226     getStateHelper().put(PropertyKeys.overflowX, overflowX);
227   }
228 
229   public java.lang.Integer getRowSpan() {
230     Number value  = (Number) getStateHelper().eval(PropertyKeys.rowSpan);
231     if (value != null) {
232       return value.intValue();
233     }
234     return 1;
235   }
236 
237   public void setRowSpan(java.lang.Integer rowSpan) {
238     getStateHelper().put(PropertyKeys.rowSpan, rowSpan);
239   }
240 
241   /**
242   This attribute is for internal use only.
243 
244   */
245   public boolean isOverflowY() {
246     Boolean bool = (Boolean) getStateHelper().eval(PropertyKeys.overflowY);
247     if (bool != null) {
248       return bool;
249     }
250     return false;
251   }
252 
253   public void setOverflowY(boolean overflowY) {
254     getStateHelper().put(PropertyKeys.overflowY, overflowY);
255   }
256 
257   /**
258   This value will usually be set by the layout manager.
259 
260   */
261   public org.apache.myfaces.tobago.layout.Measure getLeft() {
262     Object object = getStateHelper().eval(PropertyKeys.left);
263     if (object != null) {
264        return Measure.valueOf(object);
265     }
266     return null;
267   }
268 
269   public void setLeft(org.apache.myfaces.tobago.layout.Measure left) {
270     getStateHelper().put(PropertyKeys.left, left);
271   }
272 
273   public java.lang.Integer getColumnSpan() {
274     Number value  = (Number) getStateHelper().eval(PropertyKeys.columnSpan);
275     if (value != null) {
276       return value.intValue();
277     }
278     return 1;
279   }
280 
281   public void setColumnSpan(java.lang.Integer columnSpan) {
282     getStateHelper().put(PropertyKeys.columnSpan, columnSpan);
283   }
284 
285   /**
286   This attribute is for internal use only.
287 
288   */
289   public org.apache.myfaces.tobago.layout.Measure getBorderRight() {
290     Object object = getStateHelper().eval(PropertyKeys.borderRight);
291     if (object != null) {
292        return Measure.valueOf(object);
293     }
294     return getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)
295   getRenderer(getFacesContext())).getBorderRight(getFacesContext(), this) : Measure.ZERO;
296   }
297 
298   public void setBorderRight(org.apache.myfaces.tobago.layout.Measure borderRight) {
299     getStateHelper().put(PropertyKeys.borderRight, borderRight);
300   }
301 
302   /**
303   This attribute is for internal use only.
304 
305   */
306   public org.apache.myfaces.tobago.layout.Measure getPaddingBottom() {
307     Object object = getStateHelper().eval(PropertyKeys.paddingBottom);
308     if (object != null) {
309        return Measure.valueOf(object);
310     }
311     return getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)
312   getRenderer(getFacesContext())).getPaddingBottom(getFacesContext(), this) : Measure.ZERO;
313   }
314 
315   public void setPaddingBottom(org.apache.myfaces.tobago.layout.Measure paddingBottom) {
316     getStateHelper().put(PropertyKeys.paddingBottom, paddingBottom);
317   }
318 
319   public org.apache.myfaces.tobago.layout.Measure getMaximumHeight() {
320     Object object = getStateHelper().eval(PropertyKeys.maximumHeight);
321     if (object != null) {
322        return Measure.valueOf(object);
323     }
324     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMaximumHeight(getFacesContext(), this) : Measure.ZERO;
325   }
326 
327   public void setMaximumHeight(org.apache.myfaces.tobago.layout.Measure maximumHeight) {
328     getStateHelper().put(PropertyKeys.maximumHeight, maximumHeight);
329   }
330 
331   /**
332   This value will usually be set by the layout manager.
333 
334   */
335   public org.apache.myfaces.tobago.layout.Measure getTop() {
336     Object object = getStateHelper().eval(PropertyKeys.top);
337     if (object != null) {
338        return Measure.valueOf(object);
339     }
340     return null;
341   }
342 
343   public void setTop(org.apache.myfaces.tobago.layout.Measure top) {
344     getStateHelper().put(PropertyKeys.top, top);
345   }
346 
347   /**
348   Orientation of toolbar
349   <br />Default: <code>left</code><br />Allowed Values: <code>left,right</code>
350   */
351   public java.lang.String getOrientation() {
352     java.lang.String orientation = (java.lang.String) getStateHelper().eval(PropertyKeys.orientation);
353     if (orientation != null) {
354       return orientation;
355     }
356     return "left";
357   }
358 
359   public void setOrientation(java.lang.String orientation) {
360     getStateHelper().put(PropertyKeys.orientation, orientation);
361   }
362 
363   /**
364   This value will usually be set by the layout manager. It holds the current width computed by the layout manager.
365 
366   */
367   public org.apache.myfaces.tobago.layout.Measure getCurrentWidth() {
368     Object object = getStateHelper().eval(PropertyKeys.currentWidth);
369     if (object != null) {
370        return Measure.valueOf(object);
371     }
372     return getWidth();
373   }
374 
375   public void setCurrentWidth(org.apache.myfaces.tobago.layout.Measure currentWidth) {
376     getStateHelper().put(PropertyKeys.currentWidth, currentWidth);
377   }
378 
379   /**
380   This attribute is for internal use only.
381 
382   */
383   public org.apache.myfaces.tobago.layout.Measure getPaddingTop() {
384     Object object = getStateHelper().eval(PropertyKeys.paddingTop);
385     if (object != null) {
386        return Measure.valueOf(object);
387     }
388     return getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)
389   getRenderer(getFacesContext())).getPaddingTop(getFacesContext(), this) : Measure.ZERO;
390   }
391 
392   public void setPaddingTop(org.apache.myfaces.tobago.layout.Measure paddingTop) {
393     getStateHelper().put(PropertyKeys.paddingTop, paddingTop);
394   }
395 
396   public org.apache.myfaces.tobago.layout.Measure getMarginTop() {
397     Object object = getStateHelper().eval(PropertyKeys.marginTop);
398     if (object != null) {
399        return Measure.valueOf(object);
400     }
401     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMarginTop(getFacesContext(), this) : Measure.ZERO;
402   }
403 
404   public void setMarginTop(org.apache.myfaces.tobago.layout.Measure marginTop) {
405     getStateHelper().put(PropertyKeys.marginTop, marginTop);
406   }
407 
408   public org.apache.myfaces.tobago.layout.Measure getMarginRight() {
409     Object object = getStateHelper().eval(PropertyKeys.marginRight);
410     if (object != null) {
411        return Measure.valueOf(object);
412     }
413     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMarginRight(getFacesContext(), this) : Measure.ZERO;
414   }
415 
416   public void setMarginRight(org.apache.myfaces.tobago.layout.Measure marginRight) {
417     getStateHelper().put(PropertyKeys.marginRight, marginRight);
418   }
419 
420   /**
421   This value will usually be set by the layout manager.
422 
423   */
424   public org.apache.myfaces.tobago.layout.Measure getWidth() {
425     Object object = getStateHelper().eval(PropertyKeys.width);
426     if (object != null) {
427        return Measure.valueOf(object);
428     }
429     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getWidth(getFacesContext(), this) : Measure.ZERO;
430   }
431 
432   public void setWidth(org.apache.myfaces.tobago.layout.Measure width) {
433     getStateHelper().put(PropertyKeys.width, width);
434   }
435 
436   public org.apache.myfaces.tobago.layout.Measure getPreferredHeight() {
437     Object object = getStateHelper().eval(PropertyKeys.preferredHeight);
438     if (object != null) {
439        return Measure.valueOf(object);
440     }
441     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getPreferredHeight(getFacesContext(), this) : Measure.ZERO;
442   }
443 
444   public void setPreferredHeight(org.apache.myfaces.tobago.layout.Measure preferredHeight) {
445     getStateHelper().put(PropertyKeys.preferredHeight, preferredHeight);
446   }
447 
448   /**
449   This value will usually be set by the layout manager. It holds the current height computed by the layout manager.
450 
451   */
452   public org.apache.myfaces.tobago.layout.Measure getCurrentHeight() {
453     Object object = getStateHelper().eval(PropertyKeys.currentHeight);
454     if (object != null) {
455        return Measure.valueOf(object);
456     }
457     return getHeight();
458   }
459 
460   public void setCurrentHeight(org.apache.myfaces.tobago.layout.Measure currentHeight) {
461     getStateHelper().put(PropertyKeys.currentHeight, currentHeight);
462   }
463 
464   /**
465   Position of the button label, possible values are: right, bottom, off.
466    If toolbar is facet of box: bottom is changed to right!
467   <br />Default: <code>bottom</code><br />Allowed Values: <code>bottom,right,off</code>
468   */
469   public java.lang.String getLabelPosition() {
470     java.lang.String labelPosition = (java.lang.String) getStateHelper().eval(PropertyKeys.labelPosition);
471     if (labelPosition != null) {
472       return labelPosition;
473     }
474     return "bottom";
475   }
476 
477   public void setLabelPosition(java.lang.String labelPosition) {
478     getStateHelper().put(PropertyKeys.labelPosition, labelPosition);
479   }
480 
481   /**
482   This attribute is for internal use only.
483 
484   */
485   public org.apache.myfaces.tobago.layout.Measure getBorderBottom() {
486     Object object = getStateHelper().eval(PropertyKeys.borderBottom);
487     if (object != null) {
488        return Measure.valueOf(object);
489     }
490     return getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)
491   getRenderer(getFacesContext())).getBorderBottom(getFacesContext(), this) : Measure.ZERO;
492   }
493 
494   public void setBorderBottom(org.apache.myfaces.tobago.layout.Measure borderBottom) {
495     getStateHelper().put(PropertyKeys.borderBottom, borderBottom);
496   }
497 
498   /**
499   This attribute is for internal use only.
500 
501   */
502   public org.apache.myfaces.tobago.layout.Display getDisplay() {
503     return (org.apache.myfaces.tobago.layout.Display) getStateHelper().eval(PropertyKeys.display);
504   }
505 
506   public void setDisplay(org.apache.myfaces.tobago.layout.Display display) {
507     getStateHelper().put(PropertyKeys.display, display);
508   }
509 
510   public org.apache.myfaces.tobago.layout.Measure getMaximumWidth() {
511     Object object = getStateHelper().eval(PropertyKeys.maximumWidth);
512     if (object != null) {
513        return Measure.valueOf(object);
514     }
515     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMaximumWidth(getFacesContext(), this) : Measure.ZERO;
516   }
517 
518   public void setMaximumWidth(org.apache.myfaces.tobago.layout.Measure maximumWidth) {
519     getStateHelper().put(PropertyKeys.maximumWidth, maximumWidth);
520   }
521 
522   /**
523   This attribute is for internal use only.
524 
525   */
526   public org.apache.myfaces.tobago.layout.Measure getPaddingLeft() {
527     Object object = getStateHelper().eval(PropertyKeys.paddingLeft);
528     if (object != null) {
529        return Measure.valueOf(object);
530     }
531     return getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)
532   getRenderer(getFacesContext())).getPaddingLeft(getFacesContext(), this) : Measure.ZERO;
533   }
534 
535   public void setPaddingLeft(org.apache.myfaces.tobago.layout.Measure paddingLeft) {
536     getStateHelper().put(PropertyKeys.paddingLeft, paddingLeft);
537   }
538 
539   /**
540   This attribute is for internal use only.
541 
542   */
543   public org.apache.myfaces.tobago.layout.Measure getPaddingRight() {
544     Object object = getStateHelper().eval(PropertyKeys.paddingRight);
545     if (object != null) {
546        return Measure.valueOf(object);
547     }
548     return getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)
549   getRenderer(getFacesContext())).getPaddingRight(getFacesContext(), this) : Measure.ZERO;
550   }
551 
552   public void setPaddingRight(org.apache.myfaces.tobago.layout.Measure paddingRight) {
553     getStateHelper().put(PropertyKeys.paddingRight, paddingRight);
554   }
555 
556   public org.apache.myfaces.tobago.layout.Measure getPreferredWidth() {
557     Object object = getStateHelper().eval(PropertyKeys.preferredWidth);
558     if (object != null) {
559        return Measure.valueOf(object);
560     }
561     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getPreferredWidth(getFacesContext(), this) : Measure.ZERO;
562   }
563 
564   public void setPreferredWidth(org.apache.myfaces.tobago.layout.Measure preferredWidth) {
565     getStateHelper().put(PropertyKeys.preferredWidth, preferredWidth);
566   }
567 
568   public org.apache.myfaces.tobago.layout.Measure getMarginBottom() {
569     Object object = getStateHelper().eval(PropertyKeys.marginBottom);
570     if (object != null) {
571        return Measure.valueOf(object);
572     }
573     return getRendererType() != null ? ((LayoutComponentRenderer) getRenderer(getFacesContext())).getMarginBottom(getFacesContext(), this) : Measure.ZERO;
574   }
575 
576   public void setMarginBottom(org.apache.myfaces.tobago.layout.Measure marginBottom) {
577     getStateHelper().put(PropertyKeys.marginBottom, marginBottom);
578   }
579 
580   /**
581   Size of button images, possible values are: small, big, off.
582   <br />Default: <code>small</code><br />Allowed Values: <code>small,big,off</code>
583   */
584   public java.lang.String getIconSize() {
585     java.lang.String iconSize = (java.lang.String) getStateHelper().eval(PropertyKeys.iconSize);
586     if (iconSize != null) {
587       return iconSize;
588     }
589     return "small";
590   }
591 
592   public void setIconSize(java.lang.String iconSize) {
593     getStateHelper().put(PropertyKeys.iconSize, iconSize);
594   }
595 
596   /**
597   This attribute is for internal use only.
598 
599   */
600   public java.lang.Integer getVerticalIndex() {
601     Number value  = (Number) getStateHelper().eval(PropertyKeys.verticalIndex);
602     if (value != null) {
603       return value.intValue();
604     }
605     return null;
606   }
607 
608   public void setVerticalIndex(java.lang.Integer verticalIndex) {
609     getStateHelper().put(PropertyKeys.verticalIndex, verticalIndex);
610   }
611 
612   /**
613   This attribute is for internal use only.
614 
615   */
616   public org.apache.myfaces.tobago.layout.Measure getBorderTop() {
617     Object object = getStateHelper().eval(PropertyKeys.borderTop);
618     if (object != null) {
619        return Measure.valueOf(object);
620     }
621     return getRendererType() != null ? ((org.apache.myfaces.tobago.renderkit.LayoutComponentRenderer)
622   getRenderer(getFacesContext())).getBorderTop(getFacesContext(), this) : Measure.ZERO;
623   }
624 
625   public void setBorderTop(org.apache.myfaces.tobago.layout.Measure borderTop) {
626     getStateHelper().put(PropertyKeys.borderTop, borderTop);
627   }
628 
629   public org.apache.myfaces.tobago.context.Markup getCurrentMarkup() {
630     if (currentMarkup != null) {
631       return currentMarkup;
632     }
633     return null;
634   }
635 
636   public void setCurrentMarkup(org.apache.myfaces.tobago.context.Markup currentMarkup) {
637     this.currentMarkup = currentMarkup;
638   }
639 
640   /**
641   This attribute is for internal use only.
642 
643   */
644   public java.lang.Integer getHorizontalIndex() {
645     Number value  = (Number) getStateHelper().eval(PropertyKeys.horizontalIndex);
646     if (value != null) {
647       return value.intValue();
648     }
649     return null;
650   }
651 
652   public void setHorizontalIndex(java.lang.Integer horizontalIndex) {
653     getStateHelper().put(PropertyKeys.horizontalIndex, horizontalIndex);
654   }
655 
656   public Object saveState(FacesContext context) {
657     currentMarkup = null;
658     return super.saveState(context);
659   }
660 
661 
662 }