1 23 24 package org.objectweb.fractal.gui.model; 25 26 import java.util.List ; 27 28 31 32 public interface Component { 33 34 37 38 long OK = 0; 39 40 44 45 long NAME_MISSING = 1; 46 47 51 52 54 58 59 long IMPLEMENTATION_MISSING = 1 << 2; 60 61 65 66 long IMPLEMENTATION_CLASS_NOT_FOUND = 1 << 3; 67 68 72 73 long IMPLEMENTATION_CLASS_INVALID = 1 << 4; 75 79 80 long INTERFACES_INVALID = 1 << 5; 81 82 86 87 long ATTRIBUTE_CONTROLLER_MISSING = 1 << 6; 88 89 93 94 long ATTRIBUTE_CONTROLLER_CLASS_NOT_FOUND = 1 << 7; 95 96 100 101 long ATTRIBUTE_CONTROLLER_CLASS_INVALID = 1 << 8; 103 107 112 113 Configuration getConfiguration(); 114 115 116 120 128 129 long getStatus (); 130 131 138 139 void setStatus (long status); 140 141 145 151 152 Component getParent (); 153 154 160 161 Component getRootComponent (); 162 163 169 170 Object [] getPath (); 171 172 176 182 183 String getName (); 184 185 193 194 void setName (String name); 195 196 202 203 String getType (); 204 205 213 214 void setType (String type); 215 216 222 223 String getImplementation (); 224 225 233 234 void setImplementation (String implementation); 235 236 240 246 247 List getClientInterfaces (); 248 249 257 258 Interface getClientInterface (String name); 259 260 270 271 void addClientInterface (ClientInterface itf); 272 273 282 283 void removeClientInterface (ClientInterface itf); 284 285 292 293 List getServerInterfaces (); 294 295 303 304 Interface getServerInterface (String name); 305 306 316 317 void addServerInterface (ServerInterface itf); 318 319 328 329 void removeServerInterface (ServerInterface itf); 330 331 335 343 344 void bind (ClientInterface citf, String suffix, ServerInterface sitf); 345 346 354 355 void rebind (ClientInterface citf, ServerInterface sitf); 356 357 364 365 void unbind (ClientInterface citf); 366 367 371 377 378 String getAttributeController (); 379 380 389 390 void setAttributeController (String attributeController); 391 392 398 399 List getAttributeNames (); 400 401 409 410 String getAttribute (String attributeName); 411 412 422 423 void setAttribute (String attributeName, String attributeValue); 424 425 429 435 436 String getTemplateControllerDescriptor (); 437 438 447 448 void setTemplateControllerDescriptor (String desc); 449 450 456 457 String getComponentControllerDescriptor (); 458 459 468 469 void setComponentControllerDescriptor (String desc); 470 471 475 481 482 boolean isShared (); 483 484 490 491 Component getMasterComponent (); 492 493 500 501 List getSlaveComponents (); 502 503 507 513 514 boolean isComposite (); 515 516 522 523 boolean contains (Component child); 524 525 533 534 boolean containsSlaveOfExternalComponent (Component root); 535 536 544 545 boolean containsMasterOfExternalComponent (Component root); 546 547 554 555 List getSubComponents (); 556 557 564 565 Component getSubComponent (String name); 566 567 575 576 void addSubComponent (Component child); 577 578 586 587 void removeSubComponent (Component child); 588 } 589 | Popular Tags |