Exemplo n.º 1
0
 public void setInstanceName(String InstanceName) {
   if (this.InstanceName.equals(InstanceName)) {
     return;
   }
   if (patch != null) {
     AxoObjectInstanceAbstract o1 = patch.GetObjectInstance(InstanceName);
     if ((o1 != null) && (o1 != this)) {
       Logger.getLogger(AxoObjectInstanceAbstract.class.getName())
           .log(Level.SEVERE, "Object name {0} already exists!", InstanceName);
       doLayout();
       repaint();
       return;
     }
   }
   this.InstanceName = InstanceName;
   if (InstanceLabel != null) {
     InstanceLabel.setText(InstanceName);
   }
   doLayout();
   if (getParent() != null) {
     getParent().repaint();
   }
 }