1 // WARNING: This file was automatically generated. Do not edit it directly,
2 // or you will lose your changes.
3
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one
6 * or more contributor license agreements. See the NOTICE file
7 * distributed with this work for additional information
8 * regarding copyright ownership. The ASF licenses this file
9 * to you under the Apache License, Version 2.0 (the
10 * "License"); you may not use this file except in compliance
11 * with the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing,
16 * software distributed under the License is distributed on an
17 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18 * KIND, either express or implied. See the License for the
19 * specific language governing permissions and limitations
20 * under the License.
21 */
22 package org.apache.myfaces.trinidad.component.core.layout;
23
24 import java.util.Arrays;
25 import java.util.Collection;
26 import java.util.Collections;
27 import java.util.List;
28 import java.util.Map;
29 import javax.faces.component.UIComponent;
30 import javax.faces.component.behavior.ClientBehavior;
31 import javax.faces.component.behavior.ClientBehaviorHolder;
32 import org.apache.myfaces.trinidad.bean.FacesBean;
33 import org.apache.myfaces.trinidad.bean.PropertyKey;
34 import org.apache.myfaces.trinidad.component.UIXPanel;
35 import org.apache.myfaces.trinidad.util.ComponentUtils;
36
37 /**
38 *
39 * The panelBorderLayout component is a layout element which lays out all of its
40 * children consecutively in its middle, and supports twelve other
41 * facets: top, bottom, left, right, start and end. Clients should use only
42 * one of left/right or start/end for each side, in any one container, but if both are used,
43 * left/right "wins".
44 *
45 * <h4>Events:</h4>
46 * <table border="1" width="100%" cellpadding="3" summary="">
47 * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
48 * <th align="left">Type</th>
49 * <th align="left">Phases</th>
50 * <th align="left">Description</th>
51 * </tr>
52 * <tr class="TableRowColor">
53 * <td valign="top"><code>org.apache.myfaces.trinidad.event.AttributeChangeEvent</code></td>
54 * <td valign="top" nowrap>Invoke<br>Application<br>Apply<br>Request<br>Values</td>
55 * <td valign="top">Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change event might include the width of a column that supported client-side resizing.</td>
56 * </tr>
57 * </table>
58 */
59 public class CorePanelBorderLayout extends UIXPanel
60 implements ClientBehaviorHolder
61 {
62 static public final String LAYOUT_EXPAND = "expand";
63 static public final String LAYOUT_POSITIONED = "positioned";
64 static public final FacesBean.Type TYPE = new FacesBean.Type(
65 UIXPanel.TYPE);
66 static public final PropertyKey LAYOUT_KEY =
67 TYPE.registerKey("layout", String.class, "expand");
68 static public final PropertyKey TOP_HEIGHT_KEY =
69 TYPE.registerKey("topHeight", String.class, "25%");
70 static public final PropertyKey BOTTOM_HEIGHT_KEY =
71 TYPE.registerKey("bottomHeight", String.class, "25%");
72 static public final PropertyKey INNER_TOP_HEIGHT_KEY =
73 TYPE.registerKey("innerTopHeight", String.class, "25%");
74 static public final PropertyKey INNER_BOTTOM_HEIGHT_KEY =
75 TYPE.registerKey("innerBottomHeight", String.class, "25%");
76 static public final PropertyKey START_WIDTH_KEY =
77 TYPE.registerKey("startWidth", String.class, "25%");
78 static public final PropertyKey END_WIDTH_KEY =
79 TYPE.registerKey("endWidth", String.class, "25%");
80 static public final PropertyKey LEFT_WIDTH_KEY =
81 TYPE.registerKey("leftWidth", String.class, "25%");
82 static public final PropertyKey RIGHT_WIDTH_KEY =
83 TYPE.registerKey("rightWidth", String.class, "25%");
84 static public final PropertyKey INNER_START_WIDTH_KEY =
85 TYPE.registerKey("innerStartWidth", String.class, "25%");
86 static public final PropertyKey INNER_END_WIDTH_KEY =
87 TYPE.registerKey("innerEndWidth", String.class, "25%");
88 static public final PropertyKey INNER_LEFT_WIDTH_KEY =
89 TYPE.registerKey("innerLeftWidth", String.class, "25%");
90 static public final PropertyKey INNER_RIGHT_WIDTH_KEY =
91 TYPE.registerKey("innerRightWidth", String.class, "25%");
92 static public final PropertyKey INLINE_STYLE_KEY =
93 TYPE.registerKey("inlineStyle", String.class);
94 static public final PropertyKey STYLE_CLASS_KEY =
95 TYPE.registerKey("styleClass", String.class);
96 static public final PropertyKey SHORT_DESC_KEY =
97 TYPE.registerKey("shortDesc", String.class);
98 static public final PropertyKey PARTIAL_TRIGGERS_KEY =
99 TYPE.registerKey("partialTriggers", String[].class, null, 0, PropertyKey.Mutable.RARELY);
100 static public final PropertyKey ONCLICK_KEY =
101 TYPE.registerKey("onclick", String.class);
102 static public final PropertyKey ONDBLCLICK_KEY =
103 TYPE.registerKey("ondblclick", String.class);
104 static public final PropertyKey ONMOUSEDOWN_KEY =
105 TYPE.registerKey("onmousedown", String.class);
106 static public final PropertyKey ONMOUSEUP_KEY =
107 TYPE.registerKey("onmouseup", String.class);
108 static public final PropertyKey ONMOUSEOVER_KEY =
109 TYPE.registerKey("onmouseover", String.class);
110 static public final PropertyKey ONMOUSEMOVE_KEY =
111 TYPE.registerKey("onmousemove", String.class);
112 static public final PropertyKey ONMOUSEOUT_KEY =
113 TYPE.registerKey("onmouseout", String.class);
114 static public final PropertyKey ONKEYPRESS_KEY =
115 TYPE.registerKey("onkeypress", String.class);
116 static public final PropertyKey ONKEYDOWN_KEY =
117 TYPE.registerKey("onkeydown", String.class);
118 static public final PropertyKey ONKEYUP_KEY =
119 TYPE.registerKey("onkeyup", String.class);
120 static public final String TOP_FACET = "top";
121 static public final String BOTTOM_FACET = "bottom";
122 static public final String LEFT_FACET = "left";
123 static public final String RIGHT_FACET = "right";
124 static public final String START_FACET = "start";
125 static public final String END_FACET = "end";
126 static public final String INNER_TOP_FACET = "innerTop";
127 static public final String INNER_BOTTOM_FACET = "innerBottom";
128 static public final String INNER_LEFT_FACET = "innerLeft";
129 static public final String INNER_RIGHT_FACET = "innerRight";
130 static public final String INNER_START_FACET = "innerStart";
131 static public final String INNER_END_FACET = "innerEnd";
132
133 static public final String COMPONENT_FAMILY =
134 "org.apache.myfaces.trinidad.Panel";
135 static public final String COMPONENT_TYPE =
136 "org.apache.myfaces.trinidad.CorePanelBorderLayout";
137 // Supported client events for client behaviors:
138 private final static Collection<String> _EVENT_NAMES = Collections.unmodifiableCollection(
139 Arrays.asList(
140 "click", "dblclick", "mousedown", "mouseup", "mouseover", "mousemove",
141 "mouseout", "keypress", "keydown", "keyup"
142 ));
143
144 /**
145 * Construct an instance of the CorePanelBorderLayout.
146 */
147 public CorePanelBorderLayout()
148 {
149 super("org.apache.myfaces.trinidad.BorderLayout");
150 }
151
152 /**
153 * Content to be rendered above the children.
154 */
155 final public UIComponent getTop()
156 {
157 return getFacet(TOP_FACET);
158 }
159
160 /**
161 * Content to be rendered above the children.
162 */
163 @SuppressWarnings("unchecked")
164 final public void setTop(UIComponent topFacet)
165 {
166 getFacets().put(TOP_FACET, topFacet);
167 }
168
169 /**
170 * Content to be rendered below the children.
171 */
172 final public UIComponent getBottom()
173 {
174 return getFacet(BOTTOM_FACET);
175 }
176
177 /**
178 * Content to be rendered below the children.
179 */
180 @SuppressWarnings("unchecked")
181 final public void setBottom(UIComponent bottomFacet)
182 {
183 getFacets().put(BOTTOM_FACET, bottomFacet);
184 }
185
186 /**
187 * Content to be rendered to the left of the children and
188 * between any top and bottom facets.
189 */
190 final public UIComponent getLeft()
191 {
192 return getFacet(LEFT_FACET);
193 }
194
195 /**
196 * Content to be rendered to the left of the children and
197 * between any top and bottom facets.
198 */
199 @SuppressWarnings("unchecked")
200 final public void setLeft(UIComponent leftFacet)
201 {
202 getFacets().put(LEFT_FACET, leftFacet);
203 }
204
205 /**
206 * Content to be rendered to the right of the children and
207 * between any top and bottom facets.
208 */
209 final public UIComponent getRight()
210 {
211 return getFacet(RIGHT_FACET);
212 }
213
214 /**
215 * Content to be rendered to the right of the children and
216 * between any top and bottom facets.
217 */
218 @SuppressWarnings("unchecked")
219 final public void setRight(UIComponent rightFacet)
220 {
221 getFacets().put(RIGHT_FACET, rightFacet);
222 }
223
224 /**
225 * Content to be rendered to the left of the children and
226 * between any top and bottom facets, if the reading direction is
227 * left-to-right, on the right otherwise.
228 */
229 final public UIComponent getStart()
230 {
231 return getFacet(START_FACET);
232 }
233
234 /**
235 * Content to be rendered to the left of the children and
236 * between any top and bottom facets, if the reading direction is
237 * left-to-right, on the right otherwise.
238 */
239 @SuppressWarnings("unchecked")
240 final public void setStart(UIComponent startFacet)
241 {
242 getFacets().put(START_FACET, startFacet);
243 }
244
245 /**
246 * Content to be rendered to the right of the children and
247 * between any top and bottom facets, if the reading direction is
248 * left-to-right, on the left otherwise.
249 */
250 final public UIComponent getEnd()
251 {
252 return getFacet(END_FACET);
253 }
254
255 /**
256 * Content to be rendered to the right of the children and
257 * between any top and bottom facets, if the reading direction is
258 * left-to-right, on the left otherwise.
259 */
260 @SuppressWarnings("unchecked")
261 final public void setEnd(UIComponent endFacet)
262 {
263 getFacets().put(END_FACET, endFacet);
264 }
265
266 /**
267 * Content to be rendered above the children, inside of 'top'.
268 */
269 final public UIComponent getInnerTop()
270 {
271 return getFacet(INNER_TOP_FACET);
272 }
273
274 /**
275 * Content to be rendered above the children, inside of 'top'.
276 */
277 @SuppressWarnings("unchecked")
278 final public void setInnerTop(UIComponent innerTopFacet)
279 {
280 getFacets().put(INNER_TOP_FACET, innerTopFacet);
281 }
282
283 /**
284 * Content to be rendered below the children, but above 'bottom'.
285 */
286 final public UIComponent getInnerBottom()
287 {
288 return getFacet(INNER_BOTTOM_FACET);
289 }
290
291 /**
292 * Content to be rendered below the children, but above 'bottom'.
293 */
294 @SuppressWarnings("unchecked")
295 final public void setInnerBottom(UIComponent innerBottomFacet)
296 {
297 getFacets().put(INNER_BOTTOM_FACET, innerBottomFacet);
298 }
299
300 /**
301 * Content to be rendered to the left of the children and
302 * between any innerTop and innerBottom facets, to the right of the left facet.
303 */
304 final public UIComponent getInnerLeft()
305 {
306 return getFacet(INNER_LEFT_FACET);
307 }
308
309 /**
310 * Content to be rendered to the left of the children and
311 * between any innerTop and innerBottom facets, to the right of the left facet.
312 */
313 @SuppressWarnings("unchecked")
314 final public void setInnerLeft(UIComponent innerLeftFacet)
315 {
316 getFacets().put(INNER_LEFT_FACET, innerLeftFacet);
317 }
318
319 /**
320 * Content to be rendered to the right of the children and
321 * between any innerTop and innerBottom facets.
322 */
323 final public UIComponent getInnerRight()
324 {
325 return getFacet(INNER_RIGHT_FACET);
326 }
327
328 /**
329 * Content to be rendered to the right of the children and
330 * between any innerTop and innerBottom facets.
331 */
332 @SuppressWarnings("unchecked")
333 final public void setInnerRight(UIComponent innerRightFacet)
334 {
335 getFacets().put(INNER_RIGHT_FACET, innerRightFacet);
336 }
337
338 /**
339 * the equivalent of innerLeft on left-to-right clients and innerRight on right-to-left clients.
340 */
341 final public UIComponent getInnerStart()
342 {
343 return getFacet(INNER_START_FACET);
344 }
345
346 /**
347 * the equivalent of innerLeft on left-to-right clients and innerRight on right-to-left clients.
348 */
349 @SuppressWarnings("unchecked")
350 final public void setInnerStart(UIComponent innerStartFacet)
351 {
352 getFacets().put(INNER_START_FACET, innerStartFacet);
353 }
354
355 /**
356 * the equivalent of innerRight on left-to-right clients and innerLeft on right-to-left clients.
357 */
358 final public UIComponent getInnerEnd()
359 {
360 return getFacet(INNER_END_FACET);
361 }
362
363 /**
364 * the equivalent of innerRight on left-to-right clients and innerLeft on right-to-left clients.
365 */
366 @SuppressWarnings("unchecked")
367 final public void setInnerEnd(UIComponent innerEndFacet)
368 {
369 getFacets().put(INNER_END_FACET, innerEndFacet);
370 }
371
372 /**
373 * Gets Changes how the panel is rendered. The default is to expand the panel to fix the size of its contents.
374 * Setting the value to positioned will force the panel to use the size given to it via CSS (either via the
375 * styleClass, inlineStyle or via the skin). The facets are sized using the height and width attributes and
376 * the center is given the remainder. With a positioned layout the height and width should be set and the
377 * position should be set to relative or absolute. Note that due to limitations in IE6, the positioned layout
378 * uses JavaScript resizing that will affect performance. Expand is the default.
379 *
380 * @return the new layout value
381 */
382 final public String getLayout()
383 {
384 return ComponentUtils.resolveString(getProperty(LAYOUT_KEY), "expand");
385 }
386
387 /**
388 * Sets Changes how the panel is rendered. The default is to expand the panel to fix the size of its contents.
389 * Setting the value to positioned will force the panel to use the size given to it via CSS (either via the
390 * styleClass, inlineStyle or via the skin). The facets are sized using the height and width attributes and
391 * the center is given the remainder. With a positioned layout the height and width should be set and the
392 * position should be set to relative or absolute. Note that due to limitations in IE6, the positioned layout
393 * uses JavaScript resizing that will affect performance. Expand is the default.
394 *
395 * @param layout the new layout value
396 */
397 final public void setLayout(String layout)
398 {
399 setProperty(LAYOUT_KEY, (layout));
400 }
401
402 /**
403 * Gets Specifies the CSS height to give to the top facet in valid CSS units.
404 * Used if the layout is positioned and the top facet is present and rendered. Defaults to 25%.
405 *
406 * @return the new topHeight value
407 */
408 final public String getTopHeight()
409 {
410 return ComponentUtils.resolveString(getProperty(TOP_HEIGHT_KEY), "25%");
411 }
412
413 /**
414 * Sets Specifies the CSS height to give to the top facet in valid CSS units.
415 * Used if the layout is positioned and the top facet is present and rendered. Defaults to 25%.
416 *
417 * @param topHeight the new topHeight value
418 */
419 final public void setTopHeight(String topHeight)
420 {
421 setProperty(TOP_HEIGHT_KEY, (topHeight));
422 }
423
424 /**
425 * Gets Specifies the CSS height to give to the bottom facet in valid CSS units.
426 * Used if the layout is positioned and the bottom facet is present and rendered. Defaults to 25%.
427 *
428 * @return the new bottomHeight value
429 */
430 final public String getBottomHeight()
431 {
432 return ComponentUtils.resolveString(getProperty(BOTTOM_HEIGHT_KEY), "25%");
433 }
434
435 /**
436 * Sets Specifies the CSS height to give to the bottom facet in valid CSS units.
437 * Used if the layout is positioned and the bottom facet is present and rendered. Defaults to 25%.
438 *
439 * @param bottomHeight the new bottomHeight value
440 */
441 final public void setBottomHeight(String bottomHeight)
442 {
443 setProperty(BOTTOM_HEIGHT_KEY, (bottomHeight));
444 }
445
446 /**
447 * Gets Specifies the CSS height to give to the inner top facet in valid CSS units.
448 * Used if the layout is positioned and the inner top facet is present and rendered. Defaults to 25%.
449 *
450 * @return the new innerTopHeight value
451 */
452 final public String getInnerTopHeight()
453 {
454 return ComponentUtils.resolveString(getProperty(INNER_TOP_HEIGHT_KEY), "25%");
455 }
456
457 /**
458 * Sets Specifies the CSS height to give to the inner top facet in valid CSS units.
459 * Used if the layout is positioned and the inner top facet is present and rendered. Defaults to 25%.
460 *
461 * @param innerTopHeight the new innerTopHeight value
462 */
463 final public void setInnerTopHeight(String innerTopHeight)
464 {
465 setProperty(INNER_TOP_HEIGHT_KEY, (innerTopHeight));
466 }
467
468 /**
469 * Gets Specifies the CSS height to give to the inner bottom facet in valid CSS units.
470 * Used if the layout is positioned and the inner bottom facet is present and rendered. Defaults to 25%.
471 *
472 * @return the new innerBottomHeight value
473 */
474 final public String getInnerBottomHeight()
475 {
476 return ComponentUtils.resolveString(getProperty(INNER_BOTTOM_HEIGHT_KEY), "25%");
477 }
478
479 /**
480 * Sets Specifies the CSS height to give to the inner bottom facet in valid CSS units.
481 * Used if the layout is positioned and the inner bottom facet is present and rendered. Defaults to 25%.
482 *
483 * @param innerBottomHeight the new innerBottomHeight value
484 */
485 final public void setInnerBottomHeight(String innerBottomHeight)
486 {
487 setProperty(INNER_BOTTOM_HEIGHT_KEY, (innerBottomHeight));
488 }
489
490 /**
491 * Gets Specifies the CSS width to give to the start facet in valid CSS units.
492 * Used if the layout is positioned and the start facet is present and rendered and the left or right facet
493 * is not used instead. Defaults to 25%.
494 *
495 * @return the new startWidth value
496 */
497 final public String getStartWidth()
498 {
499 return ComponentUtils.resolveString(getProperty(START_WIDTH_KEY), "25%");
500 }
501
502 /**
503 * Sets Specifies the CSS width to give to the start facet in valid CSS units.
504 * Used if the layout is positioned and the start facet is present and rendered and the left or right facet
505 * is not used instead. Defaults to 25%.
506 *
507 * @param startWidth the new startWidth value
508 */
509 final public void setStartWidth(String startWidth)
510 {
511 setProperty(START_WIDTH_KEY, (startWidth));
512 }
513
514 /**
515 * Gets Specifies the CSS width to give to the end facet in valid CSS units.
516 * Used if the layout is positioned and the end facet is present and rendered and the left or right facet
517 * is not used instead. Defaults to 25%.
518 *
519 * @return the new endWidth value
520 */
521 final public String getEndWidth()
522 {
523 return ComponentUtils.resolveString(getProperty(END_WIDTH_KEY), "25%");
524 }
525
526 /**
527 * Sets Specifies the CSS width to give to the end facet in valid CSS units.
528 * Used if the layout is positioned and the end facet is present and rendered and the left or right facet
529 * is not used instead. Defaults to 25%.
530 *
531 * @param endWidth the new endWidth value
532 */
533 final public void setEndWidth(String endWidth)
534 {
535 setProperty(END_WIDTH_KEY, (endWidth));
536 }
537
538 /**
539 * Gets Specifies the CSS width to give to the left facet in valid CSS units.
540 * Used if the layout is positioned and the left facet is present and rendered. Defaults to 25%.
541 *
542 * @return the new leftWidth value
543 */
544 final public String getLeftWidth()
545 {
546 return ComponentUtils.resolveString(getProperty(LEFT_WIDTH_KEY), "25%");
547 }
548
549 /**
550 * Sets Specifies the CSS width to give to the left facet in valid CSS units.
551 * Used if the layout is positioned and the left facet is present and rendered. Defaults to 25%.
552 *
553 * @param leftWidth the new leftWidth value
554 */
555 final public void setLeftWidth(String leftWidth)
556 {
557 setProperty(LEFT_WIDTH_KEY, (leftWidth));
558 }
559
560 /**
561 * Gets Specifies the CSS width to give to the right facet in valid CSS units.
562 * Used if the layout is positioned and the right facet is present and rendered. Defaults to 25%.
563 *
564 * @return the new rightWidth value
565 */
566 final public String getRightWidth()
567 {
568 return ComponentUtils.resolveString(getProperty(RIGHT_WIDTH_KEY), "25%");
569 }
570
571 /**
572 * Sets Specifies the CSS width to give to the right facet in valid CSS units.
573 * Used if the layout is positioned and the right facet is present and rendered. Defaults to 25%.
574 *
575 * @param rightWidth the new rightWidth value
576 */
577 final public void setRightWidth(String rightWidth)
578 {
579 setProperty(RIGHT_WIDTH_KEY, (rightWidth));
580 }
581
582 /**
583 * Gets Specifies the CSS width to give to the inner start facet in valid CSS units.
584 * Used if the layout is positioned and the inner start facet is present and rendered and the inner left or right facet
585 * is not used instead. Defaults to 25%.
586 *
587 * @return the new innerStartWidth value
588 */
589 final public String getInnerStartWidth()
590 {
591 return ComponentUtils.resolveString(getProperty(INNER_START_WIDTH_KEY), "25%");
592 }
593
594 /**
595 * Sets Specifies the CSS width to give to the inner start facet in valid CSS units.
596 * Used if the layout is positioned and the inner start facet is present and rendered and the inner left or right facet
597 * is not used instead. Defaults to 25%.
598 *
599 * @param innerStartWidth the new innerStartWidth value
600 */
601 final public void setInnerStartWidth(String innerStartWidth)
602 {
603 setProperty(INNER_START_WIDTH_KEY, (innerStartWidth));
604 }
605
606 /**
607 * Gets Specifies the CSS width to give to the inner end facet in valid CSS units.
608 * Used if the layout is positioned and the inner end facet is present and rendered and the inner left or right facet
609 * is not used instead. Defaults to 25%.
610 *
611 * @return the new innerEndWidth value
612 */
613 final public String getInnerEndWidth()
614 {
615 return ComponentUtils.resolveString(getProperty(INNER_END_WIDTH_KEY), "25%");
616 }
617
618 /**
619 * Sets Specifies the CSS width to give to the inner end facet in valid CSS units.
620 * Used if the layout is positioned and the inner end facet is present and rendered and the inner left or right facet
621 * is not used instead. Defaults to 25%.
622 *
623 * @param innerEndWidth the new innerEndWidth value
624 */
625 final public void setInnerEndWidth(String innerEndWidth)
626 {
627 setProperty(INNER_END_WIDTH_KEY, (innerEndWidth));
628 }
629
630 /**
631 * Gets Specifies the CSS width to give to the inner left facet in valid CSS units.
632 * Used if the layout is positioned and the inner left facet is present and rendered. Defaults to 25%.
633 *
634 * @return the new innerLeftWidth value
635 */
636 final public String getInnerLeftWidth()
637 {
638 return ComponentUtils.resolveString(getProperty(INNER_LEFT_WIDTH_KEY), "25%");
639 }
640
641 /**
642 * Sets Specifies the CSS width to give to the inner left facet in valid CSS units.
643 * Used if the layout is positioned and the inner left facet is present and rendered. Defaults to 25%.
644 *
645 * @param innerLeftWidth the new innerLeftWidth value
646 */
647 final public void setInnerLeftWidth(String innerLeftWidth)
648 {
649 setProperty(INNER_LEFT_WIDTH_KEY, (innerLeftWidth));
650 }
651
652 /**
653 * Gets Specifies the CSS width to give to the inner right facet in valid CSS units.
654 * Used if the layout is positioned and the inner right facet is present and rendered. Defaults to 25%.
655 *
656 * @return the new innerRightWidth value
657 */
658 final public String getInnerRightWidth()
659 {
660 return ComponentUtils.resolveString(getProperty(INNER_RIGHT_WIDTH_KEY), "25%");
661 }
662
663 /**
664 * Sets Specifies the CSS width to give to the inner right facet in valid CSS units.
665 * Used if the layout is positioned and the inner right facet is present and rendered. Defaults to 25%.
666 *
667 * @param innerRightWidth the new innerRightWidth value
668 */
669 final public void setInnerRightWidth(String innerRightWidth)
670 {
671 setProperty(INNER_RIGHT_WIDTH_KEY, (innerRightWidth));
672 }
673
674 /**
675 * Gets the CSS styles to use for this component.
676 *
677 * @return the new inlineStyle value
678 */
679 final public String getInlineStyle()
680 {
681 return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));
682 }
683
684 /**
685 * Sets the CSS styles to use for this component.
686 *
687 * @param inlineStyle the new inlineStyle value
688 */
689 final public void setInlineStyle(String inlineStyle)
690 {
691 setProperty(INLINE_STYLE_KEY, (inlineStyle));
692 }
693
694 /**
695 * Gets a CSS style class to use for this component.
696 *
697 * @return the new styleClass value
698 */
699 final public String getStyleClass()
700 {
701 return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
702 }
703
704 /**
705 * Sets a CSS style class to use for this component.
706 *
707 * @param styleClass the new styleClass value
708 */
709 final public void setStyleClass(String styleClass)
710 {
711 setProperty(STYLE_CLASS_KEY, (styleClass));
712 }
713
714 /**
715 * Gets The short description of the component. This text is commonly used by user agents to display tooltip help text.
716 *
717 * @return the new shortDesc value
718 */
719 final public String getShortDesc()
720 {
721 return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));
722 }
723
724 /**
725 * Sets The short description of the component. This text is commonly used by user agents to display tooltip help text.
726 *
727 * @param shortDesc the new shortDesc value
728 */
729 final public void setShortDesc(String shortDesc)
730 {
731 setProperty(SHORT_DESC_KEY, (shortDesc));
732 }
733
734 /**
735 * Gets the IDs of the components that should trigger a partial update.
736 * <p>
737 * This component will listen on the trigger components. If one of the
738 * trigger components receives an event that will cause it to update
739 * in some way, this component will request to be updated too.</p>
740 * <p>
741 * Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
742 * </p>
743 * <p>
744 * Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
745 * or use multiple colons to move up through the NamingContainer. For example,
746 * "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
747 * ":::" will pop out of two naming containers, etc. The search for
748 * the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
749 * component with id = commandButton1 after popping out of two naming containers relative to this component.
750 * To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
751 *
752 * @return the new partialTriggers value
753 */
754 final public String[] getPartialTriggers()
755 {
756 return (String[])getProperty(PARTIAL_TRIGGERS_KEY);
757 }
758
759 /**
760 * Sets the IDs of the components that should trigger a partial update.
761 * <p>
762 * This component will listen on the trigger components. If one of the
763 * trigger components receives an event that will cause it to update
764 * in some way, this component will request to be updated too.</p>
765 * <p>
766 * Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
767 * </p>
768 * <p>
769 * Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
770 * or use multiple colons to move up through the NamingContainer. For example,
771 * "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
772 * ":::" will pop out of two naming containers, etc. The search for
773 * the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
774 * component with id = commandButton1 after popping out of two naming containers relative to this component.
775 * To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
776 *
777 * @param partialTriggers the new partialTriggers value
778 */
779 final public void setPartialTriggers(String[] partialTriggers)
780 {
781 setProperty(PARTIAL_TRIGGERS_KEY, (partialTriggers));
782 }
783
784 /**
785 * Gets an onclick Javascript handler.
786 *
787 * @return the new onclick value
788 */
789 final public String getOnclick()
790 {
791 return ComponentUtils.resolveString(getProperty(ONCLICK_KEY));
792 }
793
794 /**
795 * Sets an onclick Javascript handler.
796 *
797 * @param onclick the new onclick value
798 */
799 final public void setOnclick(String onclick)
800 {
801 setProperty(ONCLICK_KEY, (onclick));
802 }
803
804 /**
805 * Gets an ondblclick Javascript handler.
806 *
807 * @return the new ondblclick value
808 */
809 final public String getOndblclick()
810 {
811 return ComponentUtils.resolveString(getProperty(ONDBLCLICK_KEY));
812 }
813
814 /**
815 * Sets an ondblclick Javascript handler.
816 *
817 * @param ondblclick the new ondblclick value
818 */
819 final public void setOndblclick(String ondblclick)
820 {
821 setProperty(ONDBLCLICK_KEY, (ondblclick));
822 }
823
824 /**
825 * Gets an onmousedown Javascript handler.
826 *
827 * @return the new onmousedown value
828 */
829 final public String getOnmousedown()
830 {
831 return ComponentUtils.resolveString(getProperty(ONMOUSEDOWN_KEY));
832 }
833
834 /**
835 * Sets an onmousedown Javascript handler.
836 *
837 * @param onmousedown the new onmousedown value
838 */
839 final public void setOnmousedown(String onmousedown)
840 {
841 setProperty(ONMOUSEDOWN_KEY, (onmousedown));
842 }
843
844 /**
845 * Gets an onmouseup Javascript handler.
846 *
847 * @return the new onmouseup value
848 */
849 final public String getOnmouseup()
850 {
851 return ComponentUtils.resolveString(getProperty(ONMOUSEUP_KEY));
852 }
853
854 /**
855 * Sets an onmouseup Javascript handler.
856 *
857 * @param onmouseup the new onmouseup value
858 */
859 final public void setOnmouseup(String onmouseup)
860 {
861 setProperty(ONMOUSEUP_KEY, (onmouseup));
862 }
863
864 /**
865 * Gets an onmouseover Javascript handler.
866 *
867 * @return the new onmouseover value
868 */
869 final public String getOnmouseover()
870 {
871 return ComponentUtils.resolveString(getProperty(ONMOUSEOVER_KEY));
872 }
873
874 /**
875 * Sets an onmouseover Javascript handler.
876 *
877 * @param onmouseover the new onmouseover value
878 */
879 final public void setOnmouseover(String onmouseover)
880 {
881 setProperty(ONMOUSEOVER_KEY, (onmouseover));
882 }
883
884 /**
885 * Gets an onmousemove Javascript handler.
886 *
887 * @return the new onmousemove value
888 */
889 final public String getOnmousemove()
890 {
891 return ComponentUtils.resolveString(getProperty(ONMOUSEMOVE_KEY));
892 }
893
894 /**
895 * Sets an onmousemove Javascript handler.
896 *
897 * @param onmousemove the new onmousemove value
898 */
899 final public void setOnmousemove(String onmousemove)
900 {
901 setProperty(ONMOUSEMOVE_KEY, (onmousemove));
902 }
903
904 /**
905 * Gets an onmouseout Javascript handler.
906 *
907 * @return the new onmouseout value
908 */
909 final public String getOnmouseout()
910 {
911 return ComponentUtils.resolveString(getProperty(ONMOUSEOUT_KEY));
912 }
913
914 /**
915 * Sets an onmouseout Javascript handler.
916 *
917 * @param onmouseout the new onmouseout value
918 */
919 final public void setOnmouseout(String onmouseout)
920 {
921 setProperty(ONMOUSEOUT_KEY, (onmouseout));
922 }
923
924 /**
925 * Gets an onkeypress Javascript handler.
926 *
927 * @return the new onkeypress value
928 */
929 final public String getOnkeypress()
930 {
931 return ComponentUtils.resolveString(getProperty(ONKEYPRESS_KEY));
932 }
933
934 /**
935 * Sets an onkeypress Javascript handler.
936 *
937 * @param onkeypress the new onkeypress value
938 */
939 final public void setOnkeypress(String onkeypress)
940 {
941 setProperty(ONKEYPRESS_KEY, (onkeypress));
942 }
943
944 /**
945 * Gets an onkeydown Javascript handler.
946 *
947 * @return the new onkeydown value
948 */
949 final public String getOnkeydown()
950 {
951 return ComponentUtils.resolveString(getProperty(ONKEYDOWN_KEY));
952 }
953
954 /**
955 * Sets an onkeydown Javascript handler.
956 *
957 * @param onkeydown the new onkeydown value
958 */
959 final public void setOnkeydown(String onkeydown)
960 {
961 setProperty(ONKEYDOWN_KEY, (onkeydown));
962 }
963
964 /**
965 * Gets an onkeyup Javascript handler.
966 *
967 * @return the new onkeyup value
968 */
969 final public String getOnkeyup()
970 {
971 return ComponentUtils.resolveString(getProperty(ONKEYUP_KEY));
972 }
973
974 /**
975 * Sets an onkeyup Javascript handler.
976 *
977 * @param onkeyup the new onkeyup value
978 */
979 final public void setOnkeyup(String onkeyup)
980 {
981 setProperty(ONKEYUP_KEY, (onkeyup));
982 }
983
984 @Override
985 public String getDefaultEventName()
986 {
987 return "click";
988 }
989
990 @Override
991 public Collection<String> getEventNames()
992 {
993 return _EVENT_NAMES;
994 }
995
996 @Override
997 public Map<String, List<ClientBehavior>> getClientBehaviors()
998 {
999 return super.getClientBehaviors();
1000 }
1001
1002 @Override
1003 public void addClientBehavior(
1004 String eventName,
1005 ClientBehavior behavior)
1006 {
1007 super.addClientBehavior(eventName, behavior);
1008 }
1009
1010 @Override
1011 public String getFamily()
1012 {
1013 return COMPONENT_FAMILY;
1014 }
1015
1016 @Override
1017 protected FacesBean.Type getBeanType()
1018 {
1019 return TYPE;
1020 }
1021
1022 /**
1023 * Construct an instance of the CorePanelBorderLayout.
1024 */
1025 protected CorePanelBorderLayout(
1026 String rendererType
1027 )
1028 {
1029 super(rendererType);
1030 }
1031
1032 static
1033 {
1034 TYPE.lockAndRegister("org.apache.myfaces.trinidad.Panel","org.apache.myfaces.trinidad.BorderLayout");
1035 }
1036 }