예제 #1
0
 protected Object getOnBody(String key) {
   if (key.equals(/* NOI18N */ "serializationData")) {
     if (!bodyCreated || getBody() == null) {
       return null;
     }
     return BeanSerialization.serializeObject(getBody());
   } else {
     return (super.getOnBody(key));
   }
 }
예제 #2
0
 protected void setOnBody(String key, Object value) {
   if (key.equals(/* NOI18N */ "serializationData") && !hasDeserialized) {
     if (!bodyCreated || getBody() == null) {
       return;
     }
     Object newBody = BeanSerialization.deserializeObject((String) value, getName());
     if (newBody != null) {
       body = beanBody = newBody;
       hasDeserialized = true;
       DesignerAccess.getShadowTable().put(body, this);
     }
   } else {
     super.setOnBody(key, value);
   }
 }