/** * @deprecated As of 7.0, use {@link #markAsDirty()} instead. Note that you * typically do not need to call {@link #markAsDirty()} as * {@link #getState()} will mark the connector dirty and the * framework will then check what, if anything, needs to be sent * to the client. {@link LegacyComponent}s which rely on paint * might still need to call this or {@link #markAsDirty()} . */ @Deprecated @Override public void requestRepaint() { markAsDirty(); }
@Override public void removeExtension(Extension extension) { if (extension.getParent() != this) { throw new IllegalArgumentException( "This connector is not the parent for given extension"); } extension.setParent(null); extensions.remove(extension); markAsDirty(); }
@Override public void markAsDirtyRecursive() { markAsDirty(); for (ClientConnector connector : getAllChildrenIterable(this)) { connector.markAsDirtyRecursive(); } }
/** * Add an extension to this connector. This method is protected to allow * extensions to select which targets they can extend. * * @param extension * the extension to add */ protected void addExtension(Extension extension) { ClientConnector previousParent = extension.getParent(); if (equals(previousParent)) { // Nothing to do, already attached return; } else if (previousParent != null) { throw new IllegalStateException( "Moving an extension from one parent to another is not supported"); } extensions.add(extension); extension.setParent(this); markAsDirty(); }
@Override public void attach() { markAsDirty(); getUI().getConnectorTracker().registerConnector(this); for (ClientConnector connector : getAllChildrenIterable(this)) { connector.attach(); } fireEvent(new AttachEvent(this)); }