Author: julien(a)jboss.com
Date: 2007-12-19 07:41:36 -0500 (Wed, 19 Dec 2007)
New Revision: 9371
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/container/AbstractUIObject.java
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIObject.java
Log:
minor
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/container/AbstractUIObject.java
===================================================================
---
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/container/AbstractUIObject.java 2007-12-19
01:17:55 UTC (rev 9370)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/container/AbstractUIObject.java 2007-12-19
12:41:36 UTC (rev 9371)
@@ -388,6 +388,8 @@
{
throw new IllegalArgumentException("No null object accepted");
}
+
+ //
if (destination instanceof AbstractUIObject)
{
//
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-12-19
01:17:55 UTC (rev 9370)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIObject.java 2007-12-19
12:41:36 UTC (rev 9371)
@@ -22,8 +22,8 @@
******************************************************************************/
package org.jboss.portal.presentation.model;
-import org.jboss.portal.presentation.model.state.StateChangeVetoException;
import org.jboss.portal.presentation.model.state.StateException;
+import org.jboss.portal.presentation.model.state.ConstraintViolationException;
import java.util.List;
@@ -161,7 +161,15 @@
*/
void destroyChild(String name) throws IllegalArgumentException, StateException;
-
+ /**
+ * Move the specified object to a new parent. A constraint violation will be detected
if the destination
+ * is a descendant of the current object.
+ *
+ * @param destination the new parent
+ * @throws IllegalArgumentException if the destination is null
+ * @throws StateException any state exception
+ * @throws ConstraintViolationException if the destination is not valid
+ */
void move(UIObject destination) throws IllegalArgumentException, StateException;
}
Show replies by date