incubator-ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ange...@apache.org
Subject svn commit: r1043511 - /incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/UIExtensionFactory.java
Date Wed, 08 Dec 2010 16:43:33 GMT
Author: angelos
Date: Wed Dec  8 16:43:33 2010
New Revision: 1043511

URL: http://svn.apache.org/viewvc?rev=1043511&view=rev
Log:
Added the UIExtensionFactory.

Added:
    incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/UIExtensionFactory.java

Added: incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/UIExtensionFactory.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/UIExtensionFactory.java?rev=1043511&view=auto
==============================================================================
--- incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/UIExtensionFactory.java
(added)
+++ incubator/ace/trunk/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/UIExtensionFactory.java
Wed Dec  8 16:43:33 2010
@@ -0,0 +1,36 @@
+/*
+ * 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.ace.webui.vaadin;
+
+import java.util.Map;
+
+import com.vaadin.ui.Component;
+
+/**
+ * A {@link org.apache.ace.webui.vaadin.UIExtensionFactory} creates components for named
extension points in the Vaadin UI.
+ */
+public interface UIExtensionFactory {
+    public static final String EXTENSION_POINT = "extension_point";
+    
+    /**
+     * Creates a UI component for use in the extension point. The contents of the
+     * context are extension-point dependent.
+     */
+    Component create(Map<String, Object> context);
+}



Mime
View raw message