Author: julien(a)jboss.com
Date: 2007-11-25 10:08:34 -0500 (Sun, 25 Nov 2007)
New Revision: 9090
Added:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/StateScope.java
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIObjectImpl.java
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIObject.java
Log:
added getProperty on UIObject but with no implementation yet (placeholder)
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIObjectImpl.java
===================================================================
---
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIObjectImpl.java 2007-11-23
16:40:10 UTC (rev 9089)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIObjectImpl.java 2007-11-25
15:08:34 UTC (rev 9090)
@@ -22,19 +22,14 @@
******************************************************************************/
package org.jboss.portal.presentation.impl.model;
-import java.util.List;
-import java.util.ArrayList;
-import java.io.Serializable;
-
+import org.jboss.portal.common.NotYetImplemented;
+import org.jboss.portal.presentation.model.StateScope;
import org.jboss.portal.presentation.model.UIObject;
-import org.jboss.portal.presentation.model.UIContext;
-import org.jboss.portal.presentation.model.UIPortal;
-import org.jboss.portal.presentation.model.UIContainer;
-import org.jboss.portal.presentation.model.UIWindow;
-import org.jboss.portal.presentation.model.UIPage;
-
import org.jboss.portal.presentation.model.state.ObjectState;
+import java.io.Serializable;
+import java.util.List;
+
/**
* @author <a href="mailto:sshah@redhat.com">Sohil Shah</a>
*
@@ -108,6 +103,11 @@
return this.id;
}
+ public String getProperty(StateScope scope, String propertyName)
+ {
+ throw new NotYetImplemented("Just a place holder for now");
+ }
+
public UIObject getChild(String name)
{
for (UIObject child : getChildren())
Added:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/StateScope.java
===================================================================
---
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/StateScope.java
(rev 0)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/StateScope.java 2007-11-25
15:08:34 UTC (rev 9090)
@@ -0,0 +1,45 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.presentation.model;
+
+/**
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public enum StateScope
+{
+ /**
+ * The content scope.
+ */
+ CONTENT,
+
+ /**
+ * The navigational scope.
+ */
+ NAVIGATIONAL,
+
+ /**
+ * The server scope.
+ */
+ SERVER
+}
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIObject.java
===================================================================
---
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIObject.java 2007-11-23
16:40:10 UTC (rev 9089)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIObject.java 2007-11-25
15:08:34 UTC (rev 9090)
@@ -50,6 +50,9 @@
UIObject getChild(String name);
+
+ String getProperty(StateScope scope, String propertyName);
+
/**
* Create a child with a specified type.
*