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.nav;
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.UIXPage;
35 import org.apache.myfaces.trinidad.util.ComponentUtils;
36
37 /**
38 *
39 * The Page component is similar to the PanelPage component, except that instead of having navigation1, navigation2 and navigation3 facets for adding navigation item information, the user binds a model object and a stamp to render these areas. The model object is of type MenuModel. A commandNavigationItem should be used as the stamp and placed in the "nodeStamp" facet.
40 *
41 * <h4>Events:</h4>
42 * <table border="1" width="100%" cellpadding="3" summary="">
43 * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
44 * <th align="left">Type</th>
45 * <th align="left">Phases</th>
46 * <th align="left">Description</th>
47 * </tr>
48 * <tr class="TableRowColor">
49 * <td valign="top"><code>org.apache.myfaces.trinidad.event.RowDisclosureEvent</code></td>
50 * <td valign="top" nowrap>Apply<br>Request<br>Values<br>Invoke<br>Application</td>
51 * <td valign="top">The expansion event is generated for a table when the detail facet of a row is expanded or collapsed. For tree or a treeTable, the expansion
52 event is generated when tree nodes are expanded or collapsed.</td>
53 * </tr>
54 * <tr class="TableRowColor">
55 * <td valign="top"><code>org.apache.myfaces.trinidad.event.AttributeChangeEvent</code></td>
56 * <td valign="top" nowrap>Invoke<br>Application<br>Apply<br>Request<br>Values</td>
57 * <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>
58 * </tr>
59 * </table>
60 */
61 public class CorePage extends UIXPage
62 implements ClientBehaviorHolder
63 {
64 static public final String CHROME_TYPE_COMPACT = "compact";
65 static public final String CHROME_TYPE_EXPANDED = "expanded";
66 static public final FacesBean.Type TYPE = new FacesBean.Type(
67 UIXPage.TYPE);
68 static public final PropertyKey CHROME_TYPE_KEY =
69 TYPE.registerKey("chromeType", String.class, "compact");
70 static public final PropertyKey INLINE_STYLE_KEY =
71 TYPE.registerKey("inlineStyle", String.class);
72 static public final PropertyKey STYLE_CLASS_KEY =
73 TYPE.registerKey("styleClass", String.class);
74 static public final PropertyKey SHORT_DESC_KEY =
75 TYPE.registerKey("shortDesc", String.class);
76 static public final PropertyKey PARTIAL_TRIGGERS_KEY =
77 TYPE.registerKey("partialTriggers", String[].class, null, 0, PropertyKey.Mutable.RARELY);
78 static public final PropertyKey ONCLICK_KEY =
79 TYPE.registerKey("onclick", String.class);
80 static public final PropertyKey ONDBLCLICK_KEY =
81 TYPE.registerKey("ondblclick", String.class);
82 static public final PropertyKey ONMOUSEDOWN_KEY =
83 TYPE.registerKey("onmousedown", String.class);
84 static public final PropertyKey ONMOUSEUP_KEY =
85 TYPE.registerKey("onmouseup", String.class);
86 static public final PropertyKey ONMOUSEOVER_KEY =
87 TYPE.registerKey("onmouseover", String.class);
88 static public final PropertyKey ONMOUSEMOVE_KEY =
89 TYPE.registerKey("onmousemove", String.class);
90 static public final PropertyKey ONMOUSEOUT_KEY =
91 TYPE.registerKey("onmouseout", String.class);
92 static public final PropertyKey ONKEYPRESS_KEY =
93 TYPE.registerKey("onkeypress", String.class);
94 static public final PropertyKey ONKEYDOWN_KEY =
95 TYPE.registerKey("onkeydown", String.class);
96 static public final PropertyKey ONKEYUP_KEY =
97 TYPE.registerKey("onkeyup", String.class);
98 static public final String MENU_SWITCH_FACET = "menuSwitch";
99 static public final String CONTEXT_SWITCHER_FACET = "contextSwitcher";
100 static public final String MESSAGES_FACET = "messages";
101 static public final String BRANDING_FACET = "branding";
102 static public final String BRANDING_APP_FACET = "brandingApp";
103 static public final String BRANDING_APP_CONTEXTUAL_FACET = "brandingAppContextual";
104 static public final String SEARCH_FACET = "search";
105 static public final String LOCATION_FACET = "location";
106 static public final String ACTIONS_FACET = "actions";
107 static public final String APP_COPYRIGHT_FACET = "appCopyright";
108 static public final String APP_PRIVACY_FACET = "appPrivacy";
109 static public final String APP_ABOUT_FACET = "appAbout";
110 static public final String INFO_SUPPLEMENTAL_FACET = "infoSupplemental";
111 static public final String INFO_RETURN_FACET = "infoReturn";
112 static public final String INFO_USER_FACET = "infoUser";
113 static public final String INFO_FOOTNOTE_FACET = "infoFootnote";
114 static public final String INFO_STATUS_FACET = "infoStatus";
115
116 static public final String COMPONENT_FAMILY =
117 "org.apache.myfaces.trinidad.Page";
118 static public final String COMPONENT_TYPE =
119 "org.apache.myfaces.trinidad.CorePage";
120 // Supported client events for client behaviors:
121 private final static Collection<String> _EVENT_NAMES = Collections.unmodifiableCollection(
122 Arrays.asList(
123 "click", "dblclick", "mousedown", "mouseup", "mouseover", "mousemove",
124 "mouseout", "keypress", "keydown", "keyup"
125 ));
126
127 /**
128 * Construct an instance of the CorePage.
129 */
130 public CorePage()
131 {
132 super("org.apache.myfaces.trinidad.Page");
133 }
134
135 /**
136 * This location typically contains a menuChoice.
137 */
138 final public UIComponent getMenuSwitch()
139 {
140 return getFacet(MENU_SWITCH_FACET);
141 }
142
143 /**
144 * This location typically contains a menuChoice.
145 */
146 @SuppressWarnings("unchecked")
147 final public void setMenuSwitch(UIComponent menuSwitchFacet)
148 {
149 getFacets().put(MENU_SWITCH_FACET, menuSwitchFacet);
150 }
151
152 /**
153 * The context switcher of a page.
154 */
155 final public UIComponent getContextSwitcher()
156 {
157 return getFacet(CONTEXT_SWITCHER_FACET);
158 }
159
160 /**
161 * The context switcher of a page.
162 */
163 @SuppressWarnings("unchecked")
164 final public void setContextSwitcher(UIComponent contextSwitcherFacet)
165 {
166 getFacets().put(CONTEXT_SWITCHER_FACET, contextSwitcherFacet);
167 }
168
169 /**
170 * The node to display messages. Usually contains a messages component.
171 */
172 final public UIComponent getMessages()
173 {
174 return getFacet(MESSAGES_FACET);
175 }
176
177 /**
178 * The node to display messages. Usually contains a messages component.
179 */
180 @SuppressWarnings("unchecked")
181 final public void setMessages(UIComponent messagesFacet)
182 {
183 getFacets().put(MESSAGES_FACET, messagesFacet);
184 }
185
186 /**
187 * The corporate or organization branding region of the page. This section typically
188 * contains a medium size image of the logo of the organization
189 * owning the page.
190 */
191 final public UIComponent getBranding()
192 {
193 return getFacet(BRANDING_FACET);
194 }
195
196 /**
197 * The corporate or organization branding region of the page. This section typically
198 * contains a medium size image of the logo of the organization
199 * owning the page.
200 */
201 @SuppressWarnings("unchecked")
202 final public void setBranding(UIComponent brandingFacet)
203 {
204 getFacets().put(BRANDING_FACET, brandingFacet);
205 }
206
207 /**
208 * The application, module, or product branding region of the page.
209 * This section typically contains a image of the application logo.
210 */
211 final public UIComponent getBrandingApp()
212 {
213 return getFacet(BRANDING_APP_FACET);
214 }
215
216 /**
217 * The application, module, or product branding region of the page.
218 * This section typically contains a image of the application logo.
219 */
220 @SuppressWarnings("unchecked")
221 final public void setBrandingApp(UIComponent brandingAppFacet)
222 {
223 getFacets().put(BRANDING_APP_FACET, brandingAppFacet);
224 }
225
226 /**
227 * The application's contextual branding region of the page.
228 * This section typically
229 * contains formatted text indicating that ONE context exists
230 * between the persistent tabs. The user selects the context
231 * from a centralized aggregate home page of multiple contexts,
232 * then navigates into a tabbed application pertaining to that
233 * specific context.
234 */
235 final public UIComponent getBrandingAppContextual()
236 {
237 return getFacet(BRANDING_APP_CONTEXTUAL_FACET);
238 }
239
240 /**
241 * The application's contextual branding region of the page.
242 * This section typically
243 * contains formatted text indicating that ONE context exists
244 * between the persistent tabs. The user selects the context
245 * from a centralized aggregate home page of multiple contexts,
246 * then navigates into a tabbed application pertaining to that
247 * specific context.
248 */
249 @SuppressWarnings("unchecked")
250 final public void setBrandingAppContextual(UIComponent brandingAppContextualFacet)
251 {
252 getFacets().put(BRANDING_APP_CONTEXTUAL_FACET, brandingAppContextualFacet);
253 }
254
255 /**
256 * The search region of the page.
257 */
258 final public UIComponent getSearch()
259 {
260 return getFacet(SEARCH_FACET);
261 }
262
263 /**
264 * The search region of the page.
265 */
266 @SuppressWarnings("unchecked")
267 final public void setSearch(UIComponent searchFacet)
268 {
269 getFacets().put(SEARCH_FACET, searchFacet);
270 }
271
272 /**
273 * The locator region of the page. If present, this section
274 * typically contains either a processTrain, indicating the user's
275 * location in a multistep process, or navigationPath, containing
276 * links that will bring the user back to each of the parent
277 * pages of a tree of pages that he has navigated down into.
278 */
279 final public UIComponent getLocation()
280 {
281 return getFacet(LOCATION_FACET);
282 }
283
284 /**
285 * The locator region of the page. If present, this section
286 * typically contains either a processTrain, indicating the user's
287 * location in a multistep process, or navigationPath, containing
288 * links that will bring the user back to each of the parent
289 * pages of a tree of pages that he has navigated down into.
290 */
291 @SuppressWarnings("unchecked")
292 final public void setLocation(UIComponent locationFacet)
293 {
294 getFacets().put(LOCATION_FACET, locationFacet);
295 }
296
297 /**
298 * The page-level actions of the page. If present, this area
299 * typically contains either a panelButtonBar containing buttons
300 * that operate on the entire page, or a processChoiceBar allowing
301 * the user to move to the next or previous step in a process.
302 */
303 final public UIComponent getActions()
304 {
305 return getFacet(ACTIONS_FACET);
306 }
307
308 /**
309 * The page-level actions of the page. If present, this area
310 * typically contains either a panelButtonBar containing buttons
311 * that operate on the entire page, or a processChoiceBar allowing
312 * the user to move to the next or previous step in a process.
313 */
314 @SuppressWarnings("unchecked")
315 final public void setActions(UIComponent actionsFacet)
316 {
317 getFacets().put(ACTIONS_FACET, actionsFacet);
318 }
319
320 /**
321 * The copyright region of the page. If present, this area
322 * typically contains a outputText with the copyright information.
323 */
324 final public UIComponent getAppCopyright()
325 {
326 return getFacet(APP_COPYRIGHT_FACET);
327 }
328
329 /**
330 * The copyright region of the page. If present, this area
331 * typically contains a outputText with the copyright information.
332 */
333 @SuppressWarnings("unchecked")
334 final public void setAppCopyright(UIComponent appCopyrightFacet)
335 {
336 getFacets().put(APP_COPYRIGHT_FACET, appCopyrightFacet);
337 }
338
339 /**
340 * The privacy region of the page. If present, this area
341 * typically contains a commandLink to the privacy policy for the
342 * application.
343 */
344 final public UIComponent getAppPrivacy()
345 {
346 return getFacet(APP_PRIVACY_FACET);
347 }
348
349 /**
350 * The privacy region of the page. If present, this area
351 * typically contains a commandLink to the privacy policy for the
352 * application.
353 */
354 @SuppressWarnings("unchecked")
355 final public void setAppPrivacy(UIComponent appPrivacyFacet)
356 {
357 getFacets().put(APP_PRIVACY_FACET, appPrivacyFacet);
358 }
359
360 /**
361 * Area to put a commandLink to more information about the application.
362 */
363 final public UIComponent getAppAbout()
364 {
365 return getFacet(APP_ABOUT_FACET);
366 }
367
368 /**
369 * Area to put a commandLink to more information about the application.
370 */
371 @SuppressWarnings("unchecked")
372 final public void setAppAbout(UIComponent appAboutFacet)
373 {
374 getFacets().put(APP_ABOUT_FACET, appAboutFacet);
375 }
376
377 /**
378 * This region provides a location for
379 * presenting additional information for the user. It often
380 * contains a panelBox.
381 */
382 final public UIComponent getInfoSupplemental()
383 {
384 return getFacet(INFO_SUPPLEMENTAL_FACET);
385 }
386
387 /**
388 * This region provides a location for
389 * presenting additional information for the user. It often
390 * contains a panelBox.
391 */
392 @SuppressWarnings("unchecked")
393 final public void setInfoSupplemental(UIComponent infoSupplementalFacet)
394 {
395 getFacets().put(INFO_SUPPLEMENTAL_FACET, infoSupplementalFacet);
396 }
397
398 /**
399 * The return information region. Typically this will contain a "return to [X]" link.
400 */
401 final public UIComponent getInfoReturn()
402 {
403 return getFacet(INFO_RETURN_FACET);
404 }
405
406 /**
407 * The return information region. Typically this will contain a "return to [X]" link.
408 */
409 @SuppressWarnings("unchecked")
410 final public void setInfoReturn(UIComponent infoReturnFacet)
411 {
412 getFacets().put(INFO_RETURN_FACET, infoReturnFacet);
413 }
414
415 /**
416 * The user information region. This region provides a location for
417 * presenting user login and connection information.
418 */
419 final public UIComponent getInfoUser()
420 {
421 return getFacet(INFO_USER_FACET);
422 }
423
424 /**
425 * The user information region. This region provides a location for
426 * presenting user login and connection information.
427 */
428 @SuppressWarnings("unchecked")
429 final public void setInfoUser(UIComponent infoUserFacet)
430 {
431 getFacets().put(INFO_USER_FACET, infoUserFacet);
432 }
433
434 /**
435 * The footnote information region. This region provides a location for
436 * page-level information that is ancillary to the user's task.
437 */
438 final public UIComponent getInfoFootnote()
439 {
440 return getFacet(INFO_FOOTNOTE_FACET);
441 }
442
443 /**
444 * The footnote information region. This region provides a location for
445 * page-level information that is ancillary to the user's task.
446 */
447 @SuppressWarnings("unchecked")
448 final public void setInfoFootnote(UIComponent infoFootnoteFacet)
449 {
450 getFacets().put(INFO_FOOTNOTE_FACET, infoFootnoteFacet);
451 }
452
453 /**
454 * The status information region. This region
455 * provides a location for page-level status that is important to
456 * the user's task. It also provides a location for a key notation.
457 * A key notation is a legend used to define icons, elements, or
458 * terms used within the page content.
459 */
460 final public UIComponent getInfoStatus()
461 {
462 return getFacet(INFO_STATUS_FACET);
463 }
464
465 /**
466 * The status information region. This region
467 * provides a location for page-level status that is important to
468 * the user's task. It also provides a location for a key notation.
469 * A key notation is a legend used to define icons, elements, or
470 * terms used within the page content.
471 */
472 @SuppressWarnings("unchecked")
473 final public void setInfoStatus(UIComponent infoStatusFacet)
474 {
475 getFacets().put(INFO_STATUS_FACET, infoStatusFacet);
476 }
477
478 /**
479 * Gets what the chromeType is for the page: compact or expanded. If
480 * compact, the productBranding will be shown alongside the
481 * corporate branding instead of below the corporate branding.
482 *
483 * @return the new chromeType value
484 */
485 final public String getChromeType()
486 {
487 return ComponentUtils.resolveString(getProperty(CHROME_TYPE_KEY), "compact");
488 }
489
490 /**
491 * Sets what the chromeType is for the page: compact or expanded. If
492 * compact, the productBranding will be shown alongside the
493 * corporate branding instead of below the corporate branding.
494 *
495 * @param chromeType the new chromeType value
496 */
497 final public void setChromeType(String chromeType)
498 {
499 setProperty(CHROME_TYPE_KEY, (chromeType));
500 }
501
502 /**
503 * Gets the CSS styles to use for this component.
504 *
505 * @return the new inlineStyle value
506 */
507 final public String getInlineStyle()
508 {
509 return ComponentUtils.resolveString(getProperty(INLINE_STYLE_KEY));
510 }
511
512 /**
513 * Sets the CSS styles to use for this component.
514 *
515 * @param inlineStyle the new inlineStyle value
516 */
517 final public void setInlineStyle(String inlineStyle)
518 {
519 setProperty(INLINE_STYLE_KEY, (inlineStyle));
520 }
521
522 /**
523 * Gets a CSS style class to use for this component.
524 *
525 * @return the new styleClass value
526 */
527 final public String getStyleClass()
528 {
529 return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));
530 }
531
532 /**
533 * Sets a CSS style class to use for this component.
534 *
535 * @param styleClass the new styleClass value
536 */
537 final public void setStyleClass(String styleClass)
538 {
539 setProperty(STYLE_CLASS_KEY, (styleClass));
540 }
541
542 /**
543 * Gets The short description of the component. This text is commonly used by user agents to display tooltip help text.
544 *
545 * @return the new shortDesc value
546 */
547 final public String getShortDesc()
548 {
549 return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));
550 }
551
552 /**
553 * Sets The short description of the component. This text is commonly used by user agents to display tooltip help text.
554 *
555 * @param shortDesc the new shortDesc value
556 */
557 final public void setShortDesc(String shortDesc)
558 {
559 setProperty(SHORT_DESC_KEY, (shortDesc));
560 }
561
562 /**
563 * Gets the IDs of the components that should trigger a partial update.
564 * <p>
565 * This component will listen on the trigger components. If one of the
566 * trigger components receives an event that will cause it to update
567 * in some way, this component will request to be updated too.</p>
568 * <p>
569 * Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
570 * </p>
571 * <p>
572 * Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
573 * or use multiple colons to move up through the NamingContainer. For example,
574 * "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
575 * ":::" will pop out of two naming containers, etc. The search for
576 * the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
577 * component with id = commandButton1 after popping out of two naming containers relative to this component.
578 * To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
579 *
580 * @return the new partialTriggers value
581 */
582 final public String[] getPartialTriggers()
583 {
584 return (String[])getProperty(PARTIAL_TRIGGERS_KEY);
585 }
586
587 /**
588 * Sets the IDs of the components that should trigger a partial update.
589 * <p>
590 * This component will listen on the trigger components. If one of the
591 * trigger components receives an event that will cause it to update
592 * in some way, this component will request to be updated too.</p>
593 * <p>
594 * Separate multiple triggers with a space. e.g., partialTriggers="cmp1 cmp2"
595 * </p>
596 * <p>
597 * Identifiers must account for NamingContainers. You can use a single colon to start the search from the root,
598 * or use multiple colons to move up through the NamingContainer. For example,
599 * "::" will pop out of this component's naming container (it pops out of itself if it is a naming container),
600 * ":::" will pop out of two naming containers, etc. The search for
601 * the partialTrigger begins from there. e.g., partialTriggers=":::commandButton1" the search begins for the
602 * component with id = commandButton1 after popping out of two naming containers relative to this component.
603 * To go into naming containers, you separate the naming containers with ':', e.g.,partialTriggers= "nc1:nc2:nc3:componentId".</p>
604 *
605 * @param partialTriggers the new partialTriggers value
606 */
607 final public void setPartialTriggers(String[] partialTriggers)
608 {
609 setProperty(PARTIAL_TRIGGERS_KEY, (partialTriggers));
610 }
611
612 /**
613 * Gets an onclick Javascript handler.
614 *
615 * @return the new onclick value
616 */
617 final public String getOnclick()
618 {
619 return ComponentUtils.resolveString(getProperty(ONCLICK_KEY));
620 }
621
622 /**
623 * Sets an onclick Javascript handler.
624 *
625 * @param onclick the new onclick value
626 */
627 final public void setOnclick(String onclick)
628 {
629 setProperty(ONCLICK_KEY, (onclick));
630 }
631
632 /**
633 * Gets an ondblclick Javascript handler.
634 *
635 * @return the new ondblclick value
636 */
637 final public String getOndblclick()
638 {
639 return ComponentUtils.resolveString(getProperty(ONDBLCLICK_KEY));
640 }
641
642 /**
643 * Sets an ondblclick Javascript handler.
644 *
645 * @param ondblclick the new ondblclick value
646 */
647 final public void setOndblclick(String ondblclick)
648 {
649 setProperty(ONDBLCLICK_KEY, (ondblclick));
650 }
651
652 /**
653 * Gets an onmousedown Javascript handler.
654 *
655 * @return the new onmousedown value
656 */
657 final public String getOnmousedown()
658 {
659 return ComponentUtils.resolveString(getProperty(ONMOUSEDOWN_KEY));
660 }
661
662 /**
663 * Sets an onmousedown Javascript handler.
664 *
665 * @param onmousedown the new onmousedown value
666 */
667 final public void setOnmousedown(String onmousedown)
668 {
669 setProperty(ONMOUSEDOWN_KEY, (onmousedown));
670 }
671
672 /**
673 * Gets an onmouseup Javascript handler.
674 *
675 * @return the new onmouseup value
676 */
677 final public String getOnmouseup()
678 {
679 return ComponentUtils.resolveString(getProperty(ONMOUSEUP_KEY));
680 }
681
682 /**
683 * Sets an onmouseup Javascript handler.
684 *
685 * @param onmouseup the new onmouseup value
686 */
687 final public void setOnmouseup(String onmouseup)
688 {
689 setProperty(ONMOUSEUP_KEY, (onmouseup));
690 }
691
692 /**
693 * Gets an onmouseover Javascript handler.
694 *
695 * @return the new onmouseover value
696 */
697 final public String getOnmouseover()
698 {
699 return ComponentUtils.resolveString(getProperty(ONMOUSEOVER_KEY));
700 }
701
702 /**
703 * Sets an onmouseover Javascript handler.
704 *
705 * @param onmouseover the new onmouseover value
706 */
707 final public void setOnmouseover(String onmouseover)
708 {
709 setProperty(ONMOUSEOVER_KEY, (onmouseover));
710 }
711
712 /**
713 * Gets an onmousemove Javascript handler.
714 *
715 * @return the new onmousemove value
716 */
717 final public String getOnmousemove()
718 {
719 return ComponentUtils.resolveString(getProperty(ONMOUSEMOVE_KEY));
720 }
721
722 /**
723 * Sets an onmousemove Javascript handler.
724 *
725 * @param onmousemove the new onmousemove value
726 */
727 final public void setOnmousemove(String onmousemove)
728 {
729 setProperty(ONMOUSEMOVE_KEY, (onmousemove));
730 }
731
732 /**
733 * Gets an onmouseout Javascript handler.
734 *
735 * @return the new onmouseout value
736 */
737 final public String getOnmouseout()
738 {
739 return ComponentUtils.resolveString(getProperty(ONMOUSEOUT_KEY));
740 }
741
742 /**
743 * Sets an onmouseout Javascript handler.
744 *
745 * @param onmouseout the new onmouseout value
746 */
747 final public void setOnmouseout(String onmouseout)
748 {
749 setProperty(ONMOUSEOUT_KEY, (onmouseout));
750 }
751
752 /**
753 * Gets an onkeypress Javascript handler.
754 *
755 * @return the new onkeypress value
756 */
757 final public String getOnkeypress()
758 {
759 return ComponentUtils.resolveString(getProperty(ONKEYPRESS_KEY));
760 }
761
762 /**
763 * Sets an onkeypress Javascript handler.
764 *
765 * @param onkeypress the new onkeypress value
766 */
767 final public void setOnkeypress(String onkeypress)
768 {
769 setProperty(ONKEYPRESS_KEY, (onkeypress));
770 }
771
772 /**
773 * Gets an onkeydown Javascript handler.
774 *
775 * @return the new onkeydown value
776 */
777 final public String getOnkeydown()
778 {
779 return ComponentUtils.resolveString(getProperty(ONKEYDOWN_KEY));
780 }
781
782 /**
783 * Sets an onkeydown Javascript handler.
784 *
785 * @param onkeydown the new onkeydown value
786 */
787 final public void setOnkeydown(String onkeydown)
788 {
789 setProperty(ONKEYDOWN_KEY, (onkeydown));
790 }
791
792 /**
793 * Gets an onkeyup Javascript handler.
794 *
795 * @return the new onkeyup value
796 */
797 final public String getOnkeyup()
798 {
799 return ComponentUtils.resolveString(getProperty(ONKEYUP_KEY));
800 }
801
802 /**
803 * Sets an onkeyup Javascript handler.
804 *
805 * @param onkeyup the new onkeyup value
806 */
807 final public void setOnkeyup(String onkeyup)
808 {
809 setProperty(ONKEYUP_KEY, (onkeyup));
810 }
811
812 @Override
813 public String getDefaultEventName()
814 {
815 return "click";
816 }
817
818 @Override
819 public Collection<String> getEventNames()
820 {
821 return _EVENT_NAMES;
822 }
823
824 @Override
825 public Map<String, List<ClientBehavior>> getClientBehaviors()
826 {
827 return super.getClientBehaviors();
828 }
829
830 @Override
831 public void addClientBehavior(
832 String eventName,
833 ClientBehavior behavior)
834 {
835 super.addClientBehavior(eventName, behavior);
836 }
837
838 @Override
839 public String getFamily()
840 {
841 return COMPONENT_FAMILY;
842 }
843
844 @Override
845 protected FacesBean.Type getBeanType()
846 {
847 return TYPE;
848 }
849
850 /**
851 * Construct an instance of the CorePage.
852 */
853 protected CorePage(
854 String rendererType
855 )
856 {
857 super(rendererType);
858 }
859
860 static
861 {
862 TYPE.lockAndRegister("org.apache.myfaces.trinidad.Page","org.apache.myfaces.trinidad.Page");
863 }
864 }