summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2008-08-20 11:40:30 (EDT)
committerCarsten Drossel2008-08-20 11:40:30 (EDT)
commit7a0c843b2902f0324e19cc4285c7cb300fc0c975 (patch)
treef9540fb6af9b7935b81256595ba133a4672d8a3b
parent89a2db2c1d78e6a26f403e6eeecb4be34c5e7592 (diff)
downloadorg.eclipse.riena-7a0c843b2902f0324e19cc4285c7cb300fc0c975.zip
org.eclipse.riena-7a0c843b2902f0324e19cc4285c7cb300fc0c975.tar.gz
org.eclipse.riena-7a0c843b2902f0324e19cc4285c7cb300fc0c975.tar.bz2
applied Riena enhancement patch 244714 - add accessor methods to INavigationNodeId
-rw-r--r--org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/INavigationNodeId.java20
-rw-r--r--org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java14
2 files changed, 34 insertions, 0 deletions
diff --git a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/INavigationNodeId.java b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/INavigationNodeId.java
index aa28575..4e83891 100644
--- a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/INavigationNodeId.java
+++ b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/INavigationNodeId.java
@@ -36,4 +36,24 @@ public interface INavigationNodeId {
*/
String getInstanceId();
+ /**
+ * Set the type of a node. Nodes of the same type are created using the same
+ * node builder. Sub module nodes of the same type use the same type of
+ * view. Both is configured using extensions (NavigationNodeType and
+ * SubModuleType). This typeId is used to find the right extension.
+ *
+ * @see INavigationNodeBuilder
+ * @return The type ID of a navigation node.
+ */
+ void setTypeId(String typeId);
+
+ /**
+ * Set the optional instance ID. This is used to differentiate between nodes
+ * of the same type. E.g. two nodes representing employees that have the
+ * same type ID could use the social security number as instance ID.
+ *
+ * @return The instance ID of a navigation node.
+ */
+ void setInstanceId(String instanceId);
+
}
diff --git a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java
index 370cf8b..6ec79e8 100644
--- a/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java
+++ b/org.eclipse.riena.navigation/src/org/eclipse/riena/navigation/model/NavigationNodeId.java
@@ -88,4 +88,18 @@ public class NavigationNodeId implements INavigationNodeId {
return (string1 == null && string2 == null) || (string1 != null && string1.equals(string2));
}
+ /**
+ * @see org.eclipse.riena.navigation.INavigationNodeId#setInstanceId(java.lang.String)
+ */
+ public void setInstanceId(String instanceId) {
+ this.instanceId = instanceId;
+ }
+
+ /**
+ * @see org.eclipse.riena.navigation.INavigationNodeId#setTypeId(java.lang.String)
+ */
+ public void setTypeId(String typeId) {
+ this.typeId = typeId;
+ }
+
}