/** Asks the associated {@link CloneableEditorSupport} to initialize * this editor via its {@link CloneableEditorSupport#initializeCloneableEditor(org.openide.text.CloneableEditor)} * method. By default called from the support on various occasions including * shortly after creation and * after the {@link CloneableEditor} has been deserialized. * * @since 6.37 */ protected final void initializeBySupport() { cloneableEditorSupport().initializeCloneableEditor(this); }
protected Pane createPane () { CloneableEditor ed = createCloneableEditor (); initializeCloneableEditor (ed); return ed; }
protected Pane createPane () { CloneableEditor ed = createCloneableEditor (); initializeCloneableEditor (ed); return ed; }
/** Creates and initializes * new <code>CloneableEditor</code> component. * Typically do not override this method (unless you are dealing with * <a href="@org-netbeans-core-multiview@/overview-summary.html">multiviews</a>). * For creating your own <code>CloneableEditor</code> type component * override {@link #createCloneableEditor} method. * * @return the {@link Pane} for this support */ protected Pane createPane() { CloneableEditor ed = createCloneableEditor(); initializeCloneableEditor(ed); return ed; }
/** * Resolves deserialized object. Overrides superclass method. Adds checking * for object validity. In case this object is invalid * throws {@link java.io.InvalidObjectException InvalidObjectException}. * @throws ObjecStreamException When problem during serialization occures. * @throws InvalidObjectException When deserialized <code>CloneableEditor</code> * is invalid and shouldn't be used. */ protected Object readResolve() throws ObjectStreamException { if (discard ()) { throw new java.io.InvalidObjectException( "Deserialized component is invalid: " + this); // NOI18N } else { support.initializeCloneableEditor (this); return this; } }
/** * Resolves deserialized object. Overrides superclass method. Adds checking * for object validity. In case this object is invalid * throws {@link java.io.InvalidObjectException InvalidObjectException}. * @throws ObjecStreamException When problem during serialization occures. * @throws InvalidObjectException When deserialized <code>CloneableEditor</code> * is invalid and shouldn't be used. */ protected Object readResolve() throws ObjectStreamException { if (discard ()) { throw new java.io.InvalidObjectException( "Deserialized component is invalid: " + this); // NOI18N } else { support.initializeCloneableEditor (this); return this; } }