You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2010/11/10 09:02:56 UTC
svn commit: r1033387 [1/5] - in /myfaces/trinidad/trunk:
trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/
trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/
trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/ tri...
Author: matzew
Date: Wed Nov 10 08:02:53 2010
New Revision: 1033387
URL: http://svn.apache.org/viewvc?rev=1033387&view=rev
Log:
added svn eol property
Modified:
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXEditableFacesBeanImpl.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXFacesBeanImpl.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Window.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManager.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManagerFactory.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowEvent.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleEvent.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleListener.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleNavigateEvent.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/facelets/MetaTagHandler.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/facelets/MethodRule.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/menu/GroupNode.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/menu/ImmutableGroupNode.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/menu/ImmutableItemNode.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/menu/ItemNode.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/menu/MenuNode.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/menu/MenuUtils.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/model/CollectionModelDecorator.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/model/RowKeyChangeEvent.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/model/RowKeyChangeListener.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/render/XhtmlConstants.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/resource/LoggerBundle_en.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/resource/MessageBundle_en.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/resource/SkinResourceLoader.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/share/io/InputStreamProvider.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/share/io/NameResolver.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/skin/SkinVersion.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/style/Selector.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/style/Style.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/style/Styles.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/ComponentReference.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/util/RequestType.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/ChainedUploadedFileProcessor.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/TrinidadBodyTagSupport.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/TrinidadConverterELTag.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/TrinidadTagSupport.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/TrinidadValidatorELTag.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/test/java/org/apache/myfaces/trinidad/ClirrRunnerTest.java (props changed)
myfaces/trinidad/trunk/trinidad-api/src/test/java/org/apache/myfaces/trinidad/component/ClientIdCachingTest.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-api/src/test/java/org/apache/myfaces/trinidad/util/ComponentReferenceTest.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/FeatureDemoInitializer.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/FeatureDemoRegistry.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/changePersistence/addRemoveFacets/AddRemoveFacetsDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/changePersistence/addRemoveReorderChildren/AddRemoveReorderChildrenDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/changePersistence/explicitAttributeChange/ExplicitAttributeChangeDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/changePersistence/implicitAttributeChange/ImplicitAttributeChangeDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/convertersAndValidators/clientSideConverters/ClientSideConvertersDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/convertersAndValidators/clientSideDateRestriction/ClientSideDateRestrictionDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/convertersAndValidators/clientSideValidators/ClientSideValidatorsDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/convertersAndValidators/messageCustomization/MessageCustomizationDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/convertersAndValidators/serverSideConverters/ServerSideConvertersDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/convertersAndValidators/serverSideDateRestrictions/ServerSideDateRestrictionsDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/convertersAndValidators/serverSideValidators/ServerSideValidatorsDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/others/accessibilityProfile/AccessibilityProfileDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/others/dialogFramework/DialogFrameworkDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/others/fileDownload/FileDownloadDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/others/partialPageRendering/PartialPageRenderingDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/others/progressSteps/ProgressStepsDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/others/showDetailDisclosure/ShowDetailDisclosureDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/table/addRow/AddRowDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/table/exportToCSV/ExportToCSVDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/feature/table/totalRow/TotalRowDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/samples/email/ContactListBean.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/samples/email/Email.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/samples/email/ReceivedEmailListBean.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/samples/email/SentEmailListBean.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/samples/email/TableBean.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/support/FeatureDemoCategoryId.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/support/FeatureDemoId.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/support/IFeatureDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/support/IFeatureDemoCategory.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/support/impl/AbstractFeatureDemo.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/support/impl/FeatureDemoCategoryImpl.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-components-showcase/src/main/java/org/apache/myfaces/trinidaddemo/support/util/SkinFamilySelection.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/ProfanityScanner.java (props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/SkinDirtyPhaseListener.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/SubformBean.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/test/stateSaving/TestStateSavingBean.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-examples/trinidad-demo/src/main/java/org/apache/myfaces/trinidaddemo/util/BindingTest.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/application/InternalViewHandlingStrategy.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/application/ViewDeclarationLanguageFactoryImpl.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/dispatch/ContentTypeAndCharacterSet.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/dispatch/DispatchResourceResponse.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/CompositeUploadedFileProcessorImpl.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/UploadActionInvocationHandler.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/UploadRequestManager.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/upload/UploadResourceRequest.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/xmlHttp/XmlHttpPortletExternalContext.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/config/xmlHttp/XmlHttpResourceResponse.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/facelets/LegacyMethodBinding.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/facelets/MethodRule.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/facelets/TimezonePropertyTagRule.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/TrinidadRenderingConstants.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/resource/LoggerBundle_en.java (props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/skin/AgentAtRuleMatcher.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/skin/SkinVersionImpl.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/skin/parse/SkinVersionNode.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/skin/parse/SkinVersionNodeParser.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/CoreStyle.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/style/xml/parse/IncludeCompactPropertyNode.java (contents, props changed)
myfaces/trinidad/trunk/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/util/ObjectInputStreamResolveClass.java (props changed)
Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXEditableFacesBeanImpl.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXEditableFacesBeanImpl.java?rev=1033387&r1=1033386&r2=1033387&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXEditableFacesBeanImpl.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXEditableFacesBeanImpl.java Wed Nov 10 08:02:53 2010
@@ -1,64 +1,64 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.trinidad.component;
-
-import org.apache.myfaces.trinidad.bean.PropertyKey;
-
-/**
- * UIXFacesBeanImpl subclass that implements the local value contract needed for ValueHolders.
- * UIXEditableValue subclasses that wish to modify their FacesBean behavior should subclass
- * this class.
- * @see org.apache.myfaces.trinidad.bean.FacesBeanImpl
- * @see org.apache.myfaces.trinidad.component.UIXEditableValue
- */
-public class UIXEditableFacesBeanImpl extends UIXFacesBeanImpl
-{
- public UIXEditableFacesBeanImpl()
- {
- }
-
- /**
- * Subclassers most call super with the component and type
- * @param component UIXEditableValue to bind to this UIXFacesBean
- * @param type
- * @throws IllegalStateException if init() called more than once
- * @throws IllegalArgumentException if component is not a UIXEditableValue
- * @throws NullPointerException of component or type is null
- */
- @Override
- public void init(
- UIXComponent component,
- Type type)
- {
- // UIXFacesBeanImpl only works with UIXComponentBase
- if (!(component instanceof UIXEditableValue))
- throw new IllegalArgumentException(component.getClass() +" is not a UIXEditableValue");
-
- super.init(component, type);
- }
-
-
- @Override
- public void setProperty(PropertyKey key, Object value)
- {
- super.setProperty(key, value);
- if (key == UIXEditableValue.VALUE_KEY)
- setProperty(UIXEditableValue.LOCAL_VALUE_SET_KEY, Boolean.TRUE);
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidad.component;
+
+import org.apache.myfaces.trinidad.bean.PropertyKey;
+
+/**
+ * UIXFacesBeanImpl subclass that implements the local value contract needed for ValueHolders.
+ * UIXEditableValue subclasses that wish to modify their FacesBean behavior should subclass
+ * this class.
+ * @see org.apache.myfaces.trinidad.bean.FacesBeanImpl
+ * @see org.apache.myfaces.trinidad.component.UIXEditableValue
+ */
+public class UIXEditableFacesBeanImpl extends UIXFacesBeanImpl
+{
+ public UIXEditableFacesBeanImpl()
+ {
+ }
+
+ /**
+ * Subclassers most call super with the component and type
+ * @param component UIXEditableValue to bind to this UIXFacesBean
+ * @param type
+ * @throws IllegalStateException if init() called more than once
+ * @throws IllegalArgumentException if component is not a UIXEditableValue
+ * @throws NullPointerException of component or type is null
+ */
+ @Override
+ public void init(
+ UIXComponent component,
+ Type type)
+ {
+ // UIXFacesBeanImpl only works with UIXComponentBase
+ if (!(component instanceof UIXEditableValue))
+ throw new IllegalArgumentException(component.getClass() +" is not a UIXEditableValue");
+
+ super.init(component, type);
+ }
+
+
+ @Override
+ public void setProperty(PropertyKey key, Object value)
+ {
+ super.setProperty(key, value);
+ if (key == UIXEditableValue.VALUE_KEY)
+ setProperty(UIXEditableValue.LOCAL_VALUE_SET_KEY, Boolean.TRUE);
+ }
+}
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXEditableFacesBeanImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXFacesBeanImpl.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXFacesBeanImpl.java?rev=1033387&r1=1033386&r2=1033387&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXFacesBeanImpl.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXFacesBeanImpl.java Wed Nov 10 08:02:53 2010
@@ -1,159 +1,159 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.trinidad.component;
-
-import java.util.Collections;
-import java.util.Set;
-
-import javax.faces.context.FacesContext;
-
-import org.apache.myfaces.trinidad.bean.FacesBeanImpl;
-import org.apache.myfaces.trinidad.bean.PropertyKey;
-import org.apache.myfaces.trinidad.util.CollectionUtils;
-
-/**
- * FacesBeanImpl subclass that implements UIXFacesBean. UIXComponentBase subclasses that want to
- * change the behavior of their associated FacesBean are encouraged to subclass this class in preference
- * to implementing the FacesBean and UIXFaceBean contracts directly. In addition, while
- * UIXComponentBase will work with any UIXFacesBean, it is optimized to work with
- * UIXFacesBeanImpl.
- * @see org.apache.myfaces.trinidad.bean.FacesBean
- * @see org.apache.myfaces.trinidad.bean.FacesBeanImpl
- * @see org.apache.myfaces.trinidad.component.UIXFacesBean
- * @see org.apache.myfaces.trinidad.component.UIXComponentBase
- */
-public class UIXFacesBeanImpl extends FacesBeanImpl implements UIXFacesBean
-{
- public UIXFacesBeanImpl()
- {
- }
-
- public final Type getType()
- {
- return _type;
- }
-
- /**
- * @return the UIXComponent that this UIXFacesBean as initialized with
- */
- public final UIXComponent getComponent()
- {
- return _component;
- }
-
- /**
- * Subclassers most call super with the component and type
- * @param component UIXComponentBase to bind to this UIXFacesBean
- * @param type
- * @throws IllegalStateException if init() called a second time with a different component or if
- * the Type changes for one non-null Type to another
- * @throws IllegalArgumentException if component is not a UIXComponentBase
- * @throws NullPointerException of component is null
- */
- public void init(
- UIXComponent component,
- Type type)
- {
- // component can only be specified once
- if ((_component != null) && (_component != component))
- throw new IllegalStateException("FacesBean Component Changed");
-
- // type can only be specified once
- if ((_type != null) && (_type != type))
- throw new IllegalStateException("FacesBean Type Changed");
-
- // UIXFacesBeanImpl only works with UIXComponentBase
- if (!(component instanceof UIXComponentBase))
- throw new IllegalArgumentException(component.getClass() +" is not a UIXComponentBase");
-
- if (component == null)
- throw new NullPointerException("UIXFacesBean must have a component");
-
- _type = type;
- _component = component;
- }
-
- @Override
- public Set<PropertyKey> keySet()
- {
- // override to make sure that the id key is in the returned set.
- Set<PropertyKey> baseSet = super.keySet();
-
- if (baseSet.isEmpty())
- return _ID_KEY_SET;
- else
- return CollectionUtils.compositeSet(baseSet, _ID_KEY_SET);
- }
-
- @Override
- public void setPropertyImpl(PropertyKey key, Object value)
- {
- // delegate sets of the id back to the UIXComponent
- if (key == UIXComponentBase.ID_KEY)
- {
- _component.setId((String)value);
- }
- else
- {
- super.setPropertyImpl(key, value);
- }
- }
-
- @Override
- protected Object getLocalPropertyImpl(PropertyKey key)
- {
- if (key == UIXComponentBase.ID_KEY)
- {
- return _component.getId();
- }
- else
- {
- return super.getLocalPropertyImpl(key);
- }
- }
-
- @Override
- public Object saveState(FacesContext context)
- {
- // save the id in addition to the rest of the FacesBean state
- Object[] addIdState = new Object[2];
-
- addIdState[0] = _component.getId();
- addIdState[1] = super.saveState(context);
-
- return addIdState;
- }
-
- @Override
- public void restoreState(FacesContext context, Object state)
- {
- // restore the id in addition to the rest of the FacesBean state
- Object[] addIdState = (Object[])state;
- assert addIdState.length == 2;
-
- _component.setId((String)addIdState[0]);
- super.restoreState(context, addIdState[1]);
- }
-
- // Set containing the ID Key
- private static final Set<PropertyKey> _ID_KEY_SET =Collections.singleton(UIXComponentBase.ID_KEY);
-
- private Type _type;
- private UIXComponent _component;
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidad.component;
+
+import java.util.Collections;
+import java.util.Set;
+
+import javax.faces.context.FacesContext;
+
+import org.apache.myfaces.trinidad.bean.FacesBeanImpl;
+import org.apache.myfaces.trinidad.bean.PropertyKey;
+import org.apache.myfaces.trinidad.util.CollectionUtils;
+
+/**
+ * FacesBeanImpl subclass that implements UIXFacesBean. UIXComponentBase subclasses that want to
+ * change the behavior of their associated FacesBean are encouraged to subclass this class in preference
+ * to implementing the FacesBean and UIXFaceBean contracts directly. In addition, while
+ * UIXComponentBase will work with any UIXFacesBean, it is optimized to work with
+ * UIXFacesBeanImpl.
+ * @see org.apache.myfaces.trinidad.bean.FacesBean
+ * @see org.apache.myfaces.trinidad.bean.FacesBeanImpl
+ * @see org.apache.myfaces.trinidad.component.UIXFacesBean
+ * @see org.apache.myfaces.trinidad.component.UIXComponentBase
+ */
+public class UIXFacesBeanImpl extends FacesBeanImpl implements UIXFacesBean
+{
+ public UIXFacesBeanImpl()
+ {
+ }
+
+ public final Type getType()
+ {
+ return _type;
+ }
+
+ /**
+ * @return the UIXComponent that this UIXFacesBean as initialized with
+ */
+ public final UIXComponent getComponent()
+ {
+ return _component;
+ }
+
+ /**
+ * Subclassers most call super with the component and type
+ * @param component UIXComponentBase to bind to this UIXFacesBean
+ * @param type
+ * @throws IllegalStateException if init() called a second time with a different component or if
+ * the Type changes for one non-null Type to another
+ * @throws IllegalArgumentException if component is not a UIXComponentBase
+ * @throws NullPointerException of component is null
+ */
+ public void init(
+ UIXComponent component,
+ Type type)
+ {
+ // component can only be specified once
+ if ((_component != null) && (_component != component))
+ throw new IllegalStateException("FacesBean Component Changed");
+
+ // type can only be specified once
+ if ((_type != null) && (_type != type))
+ throw new IllegalStateException("FacesBean Type Changed");
+
+ // UIXFacesBeanImpl only works with UIXComponentBase
+ if (!(component instanceof UIXComponentBase))
+ throw new IllegalArgumentException(component.getClass() +" is not a UIXComponentBase");
+
+ if (component == null)
+ throw new NullPointerException("UIXFacesBean must have a component");
+
+ _type = type;
+ _component = component;
+ }
+
+ @Override
+ public Set<PropertyKey> keySet()
+ {
+ // override to make sure that the id key is in the returned set.
+ Set<PropertyKey> baseSet = super.keySet();
+
+ if (baseSet.isEmpty())
+ return _ID_KEY_SET;
+ else
+ return CollectionUtils.compositeSet(baseSet, _ID_KEY_SET);
+ }
+
+ @Override
+ public void setPropertyImpl(PropertyKey key, Object value)
+ {
+ // delegate sets of the id back to the UIXComponent
+ if (key == UIXComponentBase.ID_KEY)
+ {
+ _component.setId((String)value);
+ }
+ else
+ {
+ super.setPropertyImpl(key, value);
+ }
+ }
+
+ @Override
+ protected Object getLocalPropertyImpl(PropertyKey key)
+ {
+ if (key == UIXComponentBase.ID_KEY)
+ {
+ return _component.getId();
+ }
+ else
+ {
+ return super.getLocalPropertyImpl(key);
+ }
+ }
+
+ @Override
+ public Object saveState(FacesContext context)
+ {
+ // save the id in addition to the rest of the FacesBean state
+ Object[] addIdState = new Object[2];
+
+ addIdState[0] = _component.getId();
+ addIdState[1] = super.saveState(context);
+
+ return addIdState;
+ }
+
+ @Override
+ public void restoreState(FacesContext context, Object state)
+ {
+ // restore the id in addition to the rest of the FacesBean state
+ Object[] addIdState = (Object[])state;
+ assert addIdState.length == 2;
+
+ _component.setId((String)addIdState[0]);
+ super.restoreState(context, addIdState[1]);
+ }
+
+ // Set containing the ID Key
+ private static final Set<PropertyKey> _ID_KEY_SET =Collections.singleton(UIXComponentBase.ID_KEY);
+
+ private Type _type;
+ private UIXComponent _component;
+}
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/component/UIXFacesBeanImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Window.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Window.java?rev=1033387&r1=1033386&r2=1033387&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Window.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Window.java Wed Nov 10 08:02:53 2010
@@ -1,100 +1,100 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.trinidad.context;
-
-import java.io.Serializable;
-
-import java.util.Map;
-
-/**
- * Represents a Window in the current user's Session. Windows are created and vended
- * by the Session's WindowManager and the Window for the current request is
- * available from <code>WindowManager.getCurrentWindow</code>
- * @see WindowManager#getCurrentWindow
- */
-public abstract class Window implements Serializable
-{
- /**
- * <p>
- * Represents the current state of the Window. Windows start out <code>OPEN</code>,
- * when the current window's document is being unloaded, they move to the <code>UNLOADING</code>
- * state and then either move back to the <code>OPEN</code> state if the Window's content
- * is populated with a new document from the same application, or to the <code>CLOSED</code>
- * state if it is not.
- * </p><p>
- * This represents the framework's best guess at the current status of the Window.
- * </p>
- */
- public enum LifecycleState
- {
- /** The Window is currently open */
- OPEN,
-
- /** The Window is being unloaded */
- UNLOADING,
-
- /** The Window is believed to be closed, either because the window was explicitly closed
- * or because the window is suspected to have been closed
- */
- CLOSED
- }
-
- /**
- * Represents how the window is used in the application
- */
- public enum Usage
- {
- /** Used as a top-level application window */
- FRAME,
-
- /** Used as a dialog */
- DIALOG
- }
-
- /**
- * @return The unique identifier for this Window within the Session
- */
- public abstract String getId();
-
- /**
- * @return The current state of the Window
- */
- public abstract LifecycleState getLifecycleState();
-
- /**
- * Returns the Usage of the Window--either a top-level frame or a dialog
- * @return how the window is used
- */
- public abstract Usage getUsage();
-
- /**
- * @return <code>true</code> if the window's document hasn't been rendered since the Window
- * was created.
- */
- public abstract boolean isNew();
-
- /**
- * Returns the Map for storing data associated with this Window object. If the environment is
- * configured for fail-over, the contents of this Map must be Serializable.
- * @return The client data storage Map.
- */
- public abstract Map<String, Object> getWindowMap();
-
- private static final long serialVersionUID = 1L;
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidad.context;
+
+import java.io.Serializable;
+
+import java.util.Map;
+
+/**
+ * Represents a Window in the current user's Session. Windows are created and vended
+ * by the Session's WindowManager and the Window for the current request is
+ * available from <code>WindowManager.getCurrentWindow</code>
+ * @see WindowManager#getCurrentWindow
+ */
+public abstract class Window implements Serializable
+{
+ /**
+ * <p>
+ * Represents the current state of the Window. Windows start out <code>OPEN</code>,
+ * when the current window's document is being unloaded, they move to the <code>UNLOADING</code>
+ * state and then either move back to the <code>OPEN</code> state if the Window's content
+ * is populated with a new document from the same application, or to the <code>CLOSED</code>
+ * state if it is not.
+ * </p><p>
+ * This represents the framework's best guess at the current status of the Window.
+ * </p>
+ */
+ public enum LifecycleState
+ {
+ /** The Window is currently open */
+ OPEN,
+
+ /** The Window is being unloaded */
+ UNLOADING,
+
+ /** The Window is believed to be closed, either because the window was explicitly closed
+ * or because the window is suspected to have been closed
+ */
+ CLOSED
+ }
+
+ /**
+ * Represents how the window is used in the application
+ */
+ public enum Usage
+ {
+ /** Used as a top-level application window */
+ FRAME,
+
+ /** Used as a dialog */
+ DIALOG
+ }
+
+ /**
+ * @return The unique identifier for this Window within the Session
+ */
+ public abstract String getId();
+
+ /**
+ * @return The current state of the Window
+ */
+ public abstract LifecycleState getLifecycleState();
+
+ /**
+ * Returns the Usage of the Window--either a top-level frame or a dialog
+ * @return how the window is used
+ */
+ public abstract Usage getUsage();
+
+ /**
+ * @return <code>true</code> if the window's document hasn't been rendered since the Window
+ * was created.
+ */
+ public abstract boolean isNew();
+
+ /**
+ * Returns the Map for storing data associated with this Window object. If the environment is
+ * configured for fail-over, the contents of this Map must be Serializable.
+ * @return The client data storage Map.
+ */
+ public abstract Map<String, Object> getWindowMap();
+
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/Window.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManager.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManager.java?rev=1033387&r1=1033386&r2=1033387&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManager.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManager.java Wed Nov 10 08:02:53 2010
@@ -1,88 +1,88 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.trinidad.context;
-
-import java.io.IOException;
-
-import java.util.Map;
-
-import javax.faces.context.ExternalContext;
-
-import javax.faces.context.FacesContext;
-
-import org.apache.myfaces.trinidad.event.WindowLifecycleListener;
-
-/**
- * <p>
- * Manages the set of Windows currently in the Session and allows listeners on the Windows'
- * lifecycles to be registered.
- * </p>
- * @see org.apache.myfaces.trinidad.context.RequestContext#getWindowManager
- */
-abstract public class WindowManager
-{
- /**
- * @param extContext ExternalContext so that the WindowManager may be called before the
- * FacesContext is available
- * @return The Window that contains the document making the current request
- */
- public abstract Window getCurrentWindow(ExternalContext extContext);
-
- /**
- * @param extContext ExternalContext so that the WindowManager may be called before the
- * FacesContext is available
- * @return The Unmodifiable Map of WindowIds to Windows
- */
- public abstract Map<String, ? extends Window> getWindows(ExternalContext extContext);
-
- /**
- * <p>
- * Registers a listener that will be informed of changes to the Lifecylce state of any of
- * the known Windows.
- * </p>
- * <p>
- * WindowLifecycleListener may be registered automatically by adding a file
- * containing the names of the classes implementing the WindowListener in a file named
- * <code>org.apache.myfaces.trinidad.event.WindowListener</code> inside of
- * the <code>META_INF/services</code> directory.
- * </p>
- * @param extContext ExternalContext so that the WindowManager may be called before the
- * FacesContext is available
- * @param windowListener
- */
- public abstract void addWindowLifecycleListener(
- ExternalContext extContext, WindowLifecycleListener windowListener);
-
- /**
- * Removes a listener that will be informed of changes to the Lifecylce state of any of
- * the known Windows
- * @param extContext ExternalContext so that the WindowManager may be called before the
- * FacesContext is available
- * @param windowListener
- */
- public abstract void removeWindowLifecycleListener(
- ExternalContext extContext, WindowLifecycleListener windowListener);
-
- /**
- * Performs any necessary action to embed the current window identifier into the output
- * @param context FacesContext to use to write the output
- * @throws IOException if an output exception occurs
- */
- public abstract void writeState(FacesContext context) throws IOException;
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidad.context;
+
+import java.io.IOException;
+
+import java.util.Map;
+
+import javax.faces.context.ExternalContext;
+
+import javax.faces.context.FacesContext;
+
+import org.apache.myfaces.trinidad.event.WindowLifecycleListener;
+
+/**
+ * <p>
+ * Manages the set of Windows currently in the Session and allows listeners on the Windows'
+ * lifecycles to be registered.
+ * </p>
+ * @see org.apache.myfaces.trinidad.context.RequestContext#getWindowManager
+ */
+abstract public class WindowManager
+{
+ /**
+ * @param extContext ExternalContext so that the WindowManager may be called before the
+ * FacesContext is available
+ * @return The Window that contains the document making the current request
+ */
+ public abstract Window getCurrentWindow(ExternalContext extContext);
+
+ /**
+ * @param extContext ExternalContext so that the WindowManager may be called before the
+ * FacesContext is available
+ * @return The Unmodifiable Map of WindowIds to Windows
+ */
+ public abstract Map<String, ? extends Window> getWindows(ExternalContext extContext);
+
+ /**
+ * <p>
+ * Registers a listener that will be informed of changes to the Lifecylce state of any of
+ * the known Windows.
+ * </p>
+ * <p>
+ * WindowLifecycleListener may be registered automatically by adding a file
+ * containing the names of the classes implementing the WindowListener in a file named
+ * <code>org.apache.myfaces.trinidad.event.WindowListener</code> inside of
+ * the <code>META_INF/services</code> directory.
+ * </p>
+ * @param extContext ExternalContext so that the WindowManager may be called before the
+ * FacesContext is available
+ * @param windowListener
+ */
+ public abstract void addWindowLifecycleListener(
+ ExternalContext extContext, WindowLifecycleListener windowListener);
+
+ /**
+ * Removes a listener that will be informed of changes to the Lifecylce state of any of
+ * the known Windows
+ * @param extContext ExternalContext so that the WindowManager may be called before the
+ * FacesContext is available
+ * @param windowListener
+ */
+ public abstract void removeWindowLifecycleListener(
+ ExternalContext extContext, WindowLifecycleListener windowListener);
+
+ /**
+ * Performs any necessary action to embed the current window identifier into the output
+ * @param context FacesContext to use to write the output
+ * @throws IOException if an output exception occurs
+ */
+ public abstract void writeState(FacesContext context) throws IOException;
+}
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManager.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManagerFactory.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManagerFactory.java?rev=1033387&r1=1033386&r2=1033387&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManagerFactory.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManagerFactory.java Wed Nov 10 08:02:53 2010
@@ -1,49 +1,49 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.trinidad.context;
-
-import javax.faces.context.ExternalContext;
-
-/**
- * <p>
- * Application-scoped factory for creating per-Session WindowManager instances. It is the
- * WindowManagerFactory implementation's responsibility to ensure that only one
- * WindowManager instance is created per-session. The WindowManagerFactory is also responsible
- * for ensuring that any mutable state in the WindowManager instances will be successfully failed
- * over.
- * </p>
- * <p>
- * The factory is usually specified by placing the name of the WindowManagerFactory
- * implementation class in a file named
- * <code>org.apache.myfaces.trinidad.context.WindowManagerFactory</code>
- * in the <code>META-INF/services</code> directory
- * </p>
- * @see org.apache.myfaces.trinidad.context.WindowManager
- * @see org.apache.myfaces.trinidad.context.RequestContext#getWindowManager
- */
-abstract public class WindowManagerFactory
-{
- /**
- * Returns the WindowManager to use for this session, creating a new instance if one doesn't
- * already exist.
- * @param extContext ExternalContext
- * @return WindowManager to use for this Session
- */
- public abstract WindowManager getWindowManager(ExternalContext extContext);
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidad.context;
+
+import javax.faces.context.ExternalContext;
+
+/**
+ * <p>
+ * Application-scoped factory for creating per-Session WindowManager instances. It is the
+ * WindowManagerFactory implementation's responsibility to ensure that only one
+ * WindowManager instance is created per-session. The WindowManagerFactory is also responsible
+ * for ensuring that any mutable state in the WindowManager instances will be successfully failed
+ * over.
+ * </p>
+ * <p>
+ * The factory is usually specified by placing the name of the WindowManagerFactory
+ * implementation class in a file named
+ * <code>org.apache.myfaces.trinidad.context.WindowManagerFactory</code>
+ * in the <code>META-INF/services</code> directory
+ * </p>
+ * @see org.apache.myfaces.trinidad.context.WindowManager
+ * @see org.apache.myfaces.trinidad.context.RequestContext#getWindowManager
+ */
+abstract public class WindowManagerFactory
+{
+ /**
+ * Returns the WindowManager to use for this session, creating a new instance if one doesn't
+ * already exist.
+ * @param extContext ExternalContext
+ * @return WindowManager to use for this Session
+ */
+ public abstract WindowManager getWindowManager(ExternalContext extContext);
+}
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/context/WindowManagerFactory.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowEvent.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowEvent.java?rev=1033387&r1=1033386&r2=1033387&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowEvent.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowEvent.java Wed Nov 10 08:02:53 2010
@@ -1,65 +1,65 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.trinidad.event;
-
-import java.util.EventObject;
-import org.apache.myfaces.trinidad.context.Window;
-
-/**
- * Represents an event delivered with a Window as the source.
- * @see org.apache.myfaces.trinidad.context.Window
- * @see org.apache.myfaces.trinidad.event.WindowLifecycleListener
- */
-public abstract class WindowEvent extends EventObject
-{
- /**
- * Constructs a WindowEvent for the specified Window
- * @param source the Window that tis the source of this event.
- */
- protected WindowEvent(Window source)
- {
- super(source);
-
- if (source == null)
- throw new NullPointerException();
- }
-
- /**
- * @return the Window that this event ocurred on.
- */
- @Override
- public Window getSource()
- {
- return (Window)super.getSource();
- }
-
- /**
- * Called by subclass <code>equals</code> implementation to check the WindowEvent
- * portion of equivalence.
- * @param e Non-null WindowEvent to compare for equality
- * @return <code>true</code> if the the WindowEvent satisfies the WindowEvent portion
- * of equivalence.
- */
- protected final boolean subclassEquals(WindowEvent e)
- {
- return getSource().equals(e.getSource());
- }
-
- private static final long serialVersionUID = 1L;
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidad.event;
+
+import java.util.EventObject;
+import org.apache.myfaces.trinidad.context.Window;
+
+/**
+ * Represents an event delivered with a Window as the source.
+ * @see org.apache.myfaces.trinidad.context.Window
+ * @see org.apache.myfaces.trinidad.event.WindowLifecycleListener
+ */
+public abstract class WindowEvent extends EventObject
+{
+ /**
+ * Constructs a WindowEvent for the specified Window
+ * @param source the Window that tis the source of this event.
+ */
+ protected WindowEvent(Window source)
+ {
+ super(source);
+
+ if (source == null)
+ throw new NullPointerException();
+ }
+
+ /**
+ * @return the Window that this event ocurred on.
+ */
+ @Override
+ public Window getSource()
+ {
+ return (Window)super.getSource();
+ }
+
+ /**
+ * Called by subclass <code>equals</code> implementation to check the WindowEvent
+ * portion of equivalence.
+ * @param e Non-null WindowEvent to compare for equality
+ * @return <code>true</code> if the the WindowEvent satisfies the WindowEvent portion
+ * of equivalence.
+ */
+ protected final boolean subclassEquals(WindowEvent e)
+ {
+ return getSource().equals(e.getSource());
+ }
+
+ private static final long serialVersionUID = 1L;
}
\ No newline at end of file
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowEvent.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleEvent.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleEvent.java?rev=1033387&r1=1033386&r2=1033387&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleEvent.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleEvent.java Wed Nov 10 08:02:53 2010
@@ -1,158 +1,158 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.trinidad.event;
-
-import org.apache.myfaces.trinidad.context.Window;
-import org.apache.myfaces.trinidad.context.Window.LifecycleState;
-
-/**
- * Event delivered when the LifecycleState of a Window changes. The <code>cause</code>
- * indicates the cause ot the state change. The state diagram for theWindow LifecycleStates
- * is
- <pre>
- +-----------load---------------+
- | | ---expire---
- V /---unload----\ | / \
- <start> ---open--->OPEN----- ----->UNLOADED-- -->CLOSED
- | \--navigate---/ ^ \ /
- | | ---close----
- +---------closing--------------+
-
- </pre>
- * The new LifecycleStates can be retrieved by calling <code>getLifecycleState</code> on the
- * source Window or by calling the <code>getNewLifecycleState</code> convenience function
- * on the WindowLifecycleEvent
- * @see org.apache.myfaces.trinidad.context.Window
- * @see org.apache.myfaces.trinidad.context.Window.LifecycleState
- */
-public class WindowLifecycleEvent extends WindowEvent
-{
- /**
- * What caused the delivery of the WindowLifecycleEvent.
- */
- public enum Cause
- {
- /**
- * Delivered when a new Window is open
- */
- OPEN,
- /**
- * Delivered when the content of a Window have been unloaded but cause of the unloading
- * isn't known.
- */
- UNLOAD,
- /**
- * Delivered when the content of a Window have been unloaded as a result of
- * navigating within the application
- */
- NAVIGATE,
- /**
- * Delivered when the content of a Window have been unloaded in order to
- * close the window
- */
- CLOSING,
-
- /**
- * The contents of an existing Window are being reloaded
- */
- RELOAD,
-
- /**
- * The Window is believed to have been closed by the user
- */
- EXPIRE,
-
- /**
- * The Window is believed to have been closed by the user
- */
- CLOSE
- }
-
- /**
- * Creates a WindowOpenEvent event for the specified Window and cause.
- */
- public WindowLifecycleEvent(Window source, Cause cause)
- {
- super(source);
-
- if (cause == null)
- throw new NullPointerException();
-
- _cause = cause;
- }
-
- /**
- * @return the cause of the WindowOpen event.
- */
- public Cause getCause()
- {
- return _cause;
- }
-
- /**
- * Returns the new LifecycleState that the Window has moved to.
- */
- public final LifecycleState getNewLifecycleState()
- {
- return getSource().getLifecycleState();
- }
-
- @Override
- public int hashCode()
- {
- return getSource().hashCode() * 37 + _cause.hashCode();
- }
-
- @Override
- public boolean equals(Object o)
- {
- if (this == o)
- return true;
- else if ((o != null) && (o.getClass() == WindowLifecycleEvent.class))
- {
- return subclassEquals((WindowLifecycleEvent)o);
- }
- else
- {
- return false;
- }
- }
-
- @Override
- public String toString()
- {
- return super.toString() + ",cause=" + _cause;
- }
-
- /**
- * Called by subclass <code>equals</code> implementation to check the WindowEvent
- * portion of equivalence.
- * @param e Non-null WindowEvent to compare for equality
- * @return <code>true</code> if the the WindowEvent satisfies the WindowEvent portion
- * of equivalence.
- */
- protected final boolean subclassEquals(WindowLifecycleEvent e)
- {
- return super.subclassEquals(e) && _cause.equals(e._cause);
- }
-
- private final Cause _cause;
-
- private static final long serialVersionUID = 1L;
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidad.event;
+
+import org.apache.myfaces.trinidad.context.Window;
+import org.apache.myfaces.trinidad.context.Window.LifecycleState;
+
+/**
+ * Event delivered when the LifecycleState of a Window changes. The <code>cause</code>
+ * indicates the cause ot the state change. The state diagram for theWindow LifecycleStates
+ * is
+ <pre>
+ +-----------load---------------+
+ | | ---expire---
+ V /---unload----\ | / \
+ <start> ---open--->OPEN----- ----->UNLOADED-- -->CLOSED
+ | \--navigate---/ ^ \ /
+ | | ---close----
+ +---------closing--------------+
+
+ </pre>
+ * The new LifecycleStates can be retrieved by calling <code>getLifecycleState</code> on the
+ * source Window or by calling the <code>getNewLifecycleState</code> convenience function
+ * on the WindowLifecycleEvent
+ * @see org.apache.myfaces.trinidad.context.Window
+ * @see org.apache.myfaces.trinidad.context.Window.LifecycleState
+ */
+public class WindowLifecycleEvent extends WindowEvent
+{
+ /**
+ * What caused the delivery of the WindowLifecycleEvent.
+ */
+ public enum Cause
+ {
+ /**
+ * Delivered when a new Window is open
+ */
+ OPEN,
+ /**
+ * Delivered when the content of a Window have been unloaded but cause of the unloading
+ * isn't known.
+ */
+ UNLOAD,
+ /**
+ * Delivered when the content of a Window have been unloaded as a result of
+ * navigating within the application
+ */
+ NAVIGATE,
+ /**
+ * Delivered when the content of a Window have been unloaded in order to
+ * close the window
+ */
+ CLOSING,
+
+ /**
+ * The contents of an existing Window are being reloaded
+ */
+ RELOAD,
+
+ /**
+ * The Window is believed to have been closed by the user
+ */
+ EXPIRE,
+
+ /**
+ * The Window is believed to have been closed by the user
+ */
+ CLOSE
+ }
+
+ /**
+ * Creates a WindowOpenEvent event for the specified Window and cause.
+ */
+ public WindowLifecycleEvent(Window source, Cause cause)
+ {
+ super(source);
+
+ if (cause == null)
+ throw new NullPointerException();
+
+ _cause = cause;
+ }
+
+ /**
+ * @return the cause of the WindowOpen event.
+ */
+ public Cause getCause()
+ {
+ return _cause;
+ }
+
+ /**
+ * Returns the new LifecycleState that the Window has moved to.
+ */
+ public final LifecycleState getNewLifecycleState()
+ {
+ return getSource().getLifecycleState();
+ }
+
+ @Override
+ public int hashCode()
+ {
+ return getSource().hashCode() * 37 + _cause.hashCode();
+ }
+
+ @Override
+ public boolean equals(Object o)
+ {
+ if (this == o)
+ return true;
+ else if ((o != null) && (o.getClass() == WindowLifecycleEvent.class))
+ {
+ return subclassEquals((WindowLifecycleEvent)o);
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ @Override
+ public String toString()
+ {
+ return super.toString() + ",cause=" + _cause;
+ }
+
+ /**
+ * Called by subclass <code>equals</code> implementation to check the WindowEvent
+ * portion of equivalence.
+ * @param e Non-null WindowEvent to compare for equality
+ * @return <code>true</code> if the the WindowEvent satisfies the WindowEvent portion
+ * of equivalence.
+ */
+ protected final boolean subclassEquals(WindowLifecycleEvent e)
+ {
+ return super.subclassEquals(e) && _cause.equals(e._cause);
+ }
+
+ private final Cause _cause;
+
+ private static final long serialVersionUID = 1L;
+}
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleEvent.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleListener.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleListener.java?rev=1033387&r1=1033386&r2=1033387&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleListener.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleListener.java Wed Nov 10 08:02:53 2010
@@ -1,58 +1,58 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.trinidad.event;
-
-import java.util.EventListener;
-
-import javax.faces.context.ExternalContext;
-
-/**
- * <p>
- * A listener called when the Lifecyle of a Window changes.
- * </p>
- * <p>
- * Window listeners may be registered automatically by adding a file
- * containing the names of the classes implementing the WindowLifecycleListener in a file named
- * <code>org.apache.myfaces.trinidad.event.WindowLifecycleListener</code> inside of
- * the <code>META_INF/services</code> directory or manually by calling
- * <code>WindowManager.addWindowLifecycleListener</code>
- * @see org.apache.myfaces.trinidad.context.WindowManager
- */
-public interface WindowLifecycleListener extends EventListener
-{
- /**
- * <p>
- * Called when the LifecycleState of a Window changes.
- * </p>
- * <p>
- * The current lifecycle state of a Window is the framework's best guess and may not be accurate.
- * In particular, the last remaining open window may never move into the <code>CLOSED</code> state
- * once it has moved into the <code>UNLOADED</code> state. In addition, no Window lifecycle events
- * are delivered if the Session ceases to exist.
- * </p>
- * <p>
- * The FacesContext may not be available at the time that this event is delivered.
- * </p>
- * @param extContext ExternalContext available for this event
- * @param event WindowLifecycleEvent indicating the cause of the change to the Window's
- * LifecycleState
- */
- public abstract void processWindowLifecylce(
- ExternalContext extContext, WindowLifecycleEvent event);
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidad.event;
+
+import java.util.EventListener;
+
+import javax.faces.context.ExternalContext;
+
+/**
+ * <p>
+ * A listener called when the Lifecyle of a Window changes.
+ * </p>
+ * <p>
+ * Window listeners may be registered automatically by adding a file
+ * containing the names of the classes implementing the WindowLifecycleListener in a file named
+ * <code>org.apache.myfaces.trinidad.event.WindowLifecycleListener</code> inside of
+ * the <code>META_INF/services</code> directory or manually by calling
+ * <code>WindowManager.addWindowLifecycleListener</code>
+ * @see org.apache.myfaces.trinidad.context.WindowManager
+ */
+public interface WindowLifecycleListener extends EventListener
+{
+ /**
+ * <p>
+ * Called when the LifecycleState of a Window changes.
+ * </p>
+ * <p>
+ * The current lifecycle state of a Window is the framework's best guess and may not be accurate.
+ * In particular, the last remaining open window may never move into the <code>CLOSED</code> state
+ * once it has moved into the <code>UNLOADED</code> state. In addition, no Window lifecycle events
+ * are delivered if the Session ceases to exist.
+ * </p>
+ * <p>
+ * The FacesContext may not be available at the time that this event is delivered.
+ * </p>
+ * @param extContext ExternalContext available for this event
+ * @param event WindowLifecycleEvent indicating the cause of the change to the Window's
+ * LifecycleState
+ */
+ public abstract void processWindowLifecylce(
+ ExternalContext extContext, WindowLifecycleEvent event);
+}
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleListener.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleNavigateEvent.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleNavigateEvent.java?rev=1033387&r1=1033386&r2=1033387&view=diff
==============================================================================
--- myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleNavigateEvent.java (original)
+++ myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleNavigateEvent.java Wed Nov 10 08:02:53 2010
@@ -1,85 +1,85 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.myfaces.trinidad.event;
-
-import org.apache.myfaces.trinidad.context.Window;
-
-/**
- * WindowLifecycleEvent delivered when the current window is being unloaded
- * in order to navigate to a new location
- */
-public final class WindowLifecycleNavigateEvent extends WindowLifecycleEvent
-{
- public WindowLifecycleNavigateEvent(Window source, String destination)
- {
- super(source, WindowLifecycleEvent.Cause.NAVIGATE);
-
- if (destination == null)
- throw new NullPointerException();
-
- _destination = destination;
- }
-
- /**
- * Returns the URL to which the page is navigating.
- * <p>
- * The destination is not guaranteed to be normalized; it may
- * be absolute, page-relative, or server-relative. It is also
- * not guaranteed to be correct, as a browser
- * may be redirected to an alternate destination.
- */
- public String getDestination()
- {
- return _destination;
- }
-
- @Override
- public int hashCode()
- {
- return super.hashCode() * 37 + _destination.hashCode();
- }
-
-
- @Override
- public boolean equals(Object o)
- {
- if (this == o)
- return true;
- else if ((o != null) && (o instanceof WindowLifecycleNavigateEvent))
- {
- return subclassEquals((WindowLifecycleEvent)o) &&
- _destination.equals(((WindowLifecycleNavigateEvent)o)._destination);
- }
- else
- {
- return false;
- }
- }
-
- @Override
- public String toString()
- {
- return super.toString() + ",destination=" + _destination;
- }
-
-
- private final String _destination;
-
- private static final long serialVersionUID = 1L;
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.myfaces.trinidad.event;
+
+import org.apache.myfaces.trinidad.context.Window;
+
+/**
+ * WindowLifecycleEvent delivered when the current window is being unloaded
+ * in order to navigate to a new location
+ */
+public final class WindowLifecycleNavigateEvent extends WindowLifecycleEvent
+{
+ public WindowLifecycleNavigateEvent(Window source, String destination)
+ {
+ super(source, WindowLifecycleEvent.Cause.NAVIGATE);
+
+ if (destination == null)
+ throw new NullPointerException();
+
+ _destination = destination;
+ }
+
+ /**
+ * Returns the URL to which the page is navigating.
+ * <p>
+ * The destination is not guaranteed to be normalized; it may
+ * be absolute, page-relative, or server-relative. It is also
+ * not guaranteed to be correct, as a browser
+ * may be redirected to an alternate destination.
+ */
+ public String getDestination()
+ {
+ return _destination;
+ }
+
+ @Override
+ public int hashCode()
+ {
+ return super.hashCode() * 37 + _destination.hashCode();
+ }
+
+
+ @Override
+ public boolean equals(Object o)
+ {
+ if (this == o)
+ return true;
+ else if ((o != null) && (o instanceof WindowLifecycleNavigateEvent))
+ {
+ return subclassEquals((WindowLifecycleEvent)o) &&
+ _destination.equals(((WindowLifecycleNavigateEvent)o)._destination);
+ }
+ else
+ {
+ return false;
+ }
+ }
+
+ @Override
+ public String toString()
+ {
+ return super.toString() + ",destination=" + _destination;
+ }
+
+
+ private final String _destination;
+
+ private static final long serialVersionUID = 1L;
+}
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/WindowLifecycleNavigateEvent.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/trinidad/trunk/trinidad-api/src/main/java/org/apache/myfaces/trinidad/facelets/MetaTagHandler.java
------------------------------------------------------------------------------
svn:eol-style = native