/** * Gives notification that something was removed from the * document in a location that this view is responsible for. * This is implemented to simply update the children. * * @param changes The change information from the associated document. * @param a the current allocation of the view * @param f the factory to use to rebuild if the view has children * @see View#removeUpdate */ @Override public void removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) { updateChildren(changes, a); Rectangle alloc = ((a != null) && isAllocationValid()) ? getInsideAllocation(a) : null; int pos = changes.getOffset(); View v = getViewAtPosition(pos, alloc); if (v != null) { v.removeUpdate(changes, alloc, f); } }
/** * Gives notification that something was removed from the document * in a location that this view is responsible for. * * @param e the change information from the associated document * @param a the current allocation of the view * @param f the factory to use to rebuild if the view has children */ public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) { if (view != null) { view.removeUpdate(e, a, f); } }
public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) { lock(); try { if (view != null) { view.removeUpdate(e, a, f); } } finally { unlock(); } }
public void removeUpdate(DocumentEvent evt, Shape a, ViewFactory f) { // #38993 - until parent is set - do not do anything if (children == null && getParent() == null) { return; } if (useCustomReloadChildren()) { customRemoveUpdate(evt, a, f); } else { super.removeUpdate(evt, a, f); // default element-based update } }
/** * Gives notification that something was removed from the * document in a location that this view is responsible for. * This is implemented to simply update the children. * * @param changes The change information from the associated document. * @param a the current allocation of the view * @param f the factory to use to rebuild if the view has children * @see View#removeUpdate */ public void removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) { updateChildren(changes, a); Rectangle alloc = ((a != null) && isAllocationValid()) ? getInsideAllocation(a) : null; int pos = changes.getOffset(); View v = getViewAtPosition(pos, alloc); if (v != null) v.removeUpdate(changes, alloc, f); }
/** * Gives notification that something was removed from the * document in a location that this view is responsible for. * This is implemented to simply update the children. * * @param changes The change information from the associated document. * @param a the current allocation of the view * @param f the factory to use to rebuild if the view has children * @see View#removeUpdate */ public void removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) { updateChildren(changes, a); Rectangle alloc = ((a != null) && isAllocationValid()) ? getInsideAllocation(a) : null; int pos = changes.getOffset(); View v = getViewAtPosition(pos, alloc); if (v != null) v.removeUpdate(changes, alloc, f); }
/** * Gives notification that something was removed from the * document in a location that this view is responsible for. * This is implemented to simply update the children. * * @param changes The change information from the associated document. * @param a the current allocation of the view * @param f the factory to use to rebuild if the view has children * @see View#removeUpdate */ @Override public void removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) { updateChildren(changes, a); Rectangle alloc = ((a != null) && isAllocationValid()) ? getInsideAllocation(a) : null; int pos = changes.getOffset(); View v = getViewAtPosition(pos, alloc); if (v != null) { v.removeUpdate(changes, alloc, f); } }