/** * Called by ConnectionWidget to register the usage of the anchor. * @param entry the anchor entry */ public final void addEntry (Anchor.Entry entry) { if (entry == null) return; notifyEntryAdded (entry); entries.add (entry); if (! attachedToWidget && entries.size () > 0) { attachedToWidget = true; if (relatedWidget != null) relatedWidget.addDependency (this); notifyUsed (); } revalidateDependency (); }
/** * Called by ConnectionWidget to register the usage of the anchor. * @param entry the anchor entry */ public final void addEntry (Anchor.Entry entry) { if (entry == null) return; notifyEntryAdded (entry); entries.add (entry); if (! attachedToWidget && entries.size () > 0) { attachedToWidget = true; if (relatedWidget != null) relatedWidget.addDependency (this); notifyUsed (); } revalidateDependency (); }