[jboss-cvs] jboss-seam/src/main/org/jboss/seam/pages ...
Gavin King
gavin.king at jboss.com
Sun Jun 3 15:38:29 EDT 2007
User: gavin
Date: 07/06/03 15:38:29
Modified: src/main/org/jboss/seam/pages Page.java
Log:
add raise-event to <page>
Revision Changes Path
1.20 +40 -3 jboss-seam/src/main/org/jboss/seam/pages/Page.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Page.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/pages/Page.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- Page.java 22 May 2007 00:56:25 -0000 1.19
+++ Page.java 3 Jun 2007 19:38:29 -0000 1.20
@@ -8,6 +8,7 @@
import javax.faces.context.FacesContext;
+import org.jboss.seam.core.Events;
import org.jboss.seam.core.Interpolator;
import org.jboss.seam.core.Locale;
import org.jboss.seam.core.Pages;
@@ -36,6 +37,7 @@
private TaskControl taskControl = new TaskControl();
private ProcessControl processControl = new ProcessControl();
private ConversationIdParameter conversationIdParameter;
+ private String eventType;
/**
* The scheme (http/https) required by this page.
@@ -98,10 +100,12 @@
{
return "Page(" + getViewId() + ")";
}
+
public String getViewId()
{
return viewId;
}
+
public String renderDescription()
{
return Interpolator.instance().interpolate( getDescription() );
@@ -111,50 +115,62 @@
{
this.description = description;
}
+
public String getDescription()
{
return description;
}
+
public void setTimeout(Integer timeout)
{
this.timeout = timeout;
}
+
public Integer getTimeout()
{
return timeout;
}
+
public void setNoConversationViewId(String noConversationViewId)
{
this.noConversationViewId = noConversationViewId;
}
+
public String getNoConversationViewId()
{
return noConversationViewId;
}
+
public void setResourceBundleName(String resourceBundleName)
{
this.resourceBundleName = resourceBundleName;
}
+
public String getResourceBundleName()
{
return resourceBundleName;
}
+
public void setSwitchEnabled(boolean switchEnabled)
{
this.switchEnabled = switchEnabled;
}
+
public boolean isSwitchEnabled()
{
return switchEnabled;
}
+
public List<Param> getParameters()
{
return parameters;
}
+
public Map<String, Navigation> getNavigations()
{
return navigations;
}
+
public boolean hasDescription()
{
return description!=null;
@@ -164,30 +180,37 @@
{
return conversationRequired;
}
+
public void setConversationRequired(boolean conversationRequired)
{
this.conversationRequired = conversationRequired;
}
+
public Navigation getDefaultNavigation()
{
return defaultNavigation;
}
+
public void setDefaultNavigation(Navigation defaultActionOutcomeMapping)
{
this.defaultNavigation = defaultActionOutcomeMapping;
}
+
public ConversationControl getConversationControl()
{
return conversationControl;
}
+
public TaskControl getTaskControl()
{
return taskControl;
}
+
public ProcessControl getProcessControl()
{
return processControl;
}
+
public List<Action> getActions()
{
return actions;
@@ -234,6 +257,11 @@
for ( Input in: getInputs() ) in.in();
+ if (eventType==null)
+ {
+ Events.instance().raiseEvent(eventType);
+ }
+
for ( Action action: getActions() )
{
if ( action.isExecutable() )
@@ -312,5 +340,14 @@
this.conversationIdParameter = param;
}
+ public String getEventType()
+ {
+ return eventType;
+ }
+
+ public void setEventType(String eventType)
+ {
+ this.eventType = eventType;
+ }
}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list