1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20 package org.apache.myfaces.orchestra.flow.components;
21
22 import javax.faces.component.UIComponent;
23
24 import org.apache.myfaces.shared_orchestra.taglib.UIComponentTagBase;
25
26 /**
27 * Tag for ModalFlow component.
28 */
29 public class ModalFlowTag extends UIComponentTagBase
30 {
31 private String outcome;
32 private String onEntry;
33 private String onExit;
34
35 @Override
36 public String getComponentType()
37 {
38 return ModalFlow.COMPONENT_TYPE;
39 }
40
41 @Override
42 protected void setProperties(UIComponent component)
43 {
44 super.setProperties(component);
45
46 setStringProperty(component, "outcome", outcome);
47 setStringProperty(component, "onEntry", onEntry);
48 setStringProperty(component, "onExit", onExit);
49 }
50
51 public void setOutcome(String outcome)
52 {
53 this.outcome = outcome;
54 }
55
56 public void setOnEntry(String onEntry)
57 {
58 this.onEntry = onEntry;
59 }
60
61 public void setOnExit(String onExit)
62 {
63 this.onExit = onExit;
64 }
65
66 @Override
67 public String getRendererType()
68 {
69 return null;
70 }
71 }