/**\r
* Copyright (C) 2009 EDIT\r
-* European Distributed Institute of Taxonomy \r
+* European Distributed Institute of Taxonomy\r
* http://www.e-taxonomy.eu\r
-* \r
+*\r
* The contents of this file are subject to the Mozilla Public License Version 1.1\r
* See LICENSE.TXT at the top of this package for the full license terms.\r
*/\r
*/\r
public CdmBaseElement(CdmFormFactory formFactory,\r
ICdmFormElement formElement, CdmBase entity, int style) {\r
- \r
+\r
super(formFactory, formElement);\r
- text_uuid = formFactory.createTextWithLabelElement(formElement, "UUID", null, style); \r
+ text_uuid = formFactory.createTextWithLabelElement(formElement, "UUID", null, style);\r
+ text_uuid.setEditable(false);\r
text_objectId = formFactory.createTextWithLabelElement(formElement, "Object ID", null, style);\r
+ text_objectId.setEditable(false);\r
setEntity(entity);\r
}\r
\r
return entity;\r
}\r
\r
- \r
+\r
public void setEntity(CdmBase entity) {\r
- \r
- this.entity = entity; \r
- \r
- text_uuid.setText(entity != null ? entity.getUuid().toString() : ""); \r
+\r
+ this.entity = entity;\r
+\r
+ text_uuid.setText(entity != null ? entity.getUuid().toString() : "");\r
text_objectId.setText(entity != null ? entity.getId()+"" : "");\r
}\r
}\r