Class TransientTopComponent

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Externalizable, Serializable, Accessible, org.openide.util.HelpCtx.Provider, org.openide.util.Lookup.Provider

    public class TransientTopComponent
    extends org.openide.windows.TopComponent
    The TransientTopComponent is a convenience base class for SNAP Desktop windows that are registered through scripts.

    Script programmers may use this class as a base class for their windows in order to avoid serialisation errors caused by the NetBeans Platform. The serialisation of windows occurs in order store and restore window state.

    A TransientTopComponent differs from the "normal" TopComponent class only in that it overrides the TopComponent.getPersistenceType() to always return TopComponent.PERSISTENCE_NEVER.

    See Also:
    Serialized Form
    • Constructor Detail

      • TransientTopComponent

        public TransientTopComponent()
      • TransientTopComponent

        public TransientTopComponent​(org.openide.util.Lookup lookup)
    • Method Detail

      • getPersistenceType

        public final int getPersistenceType()
        Overrides:
        getPersistenceType in class org.openide.windows.TopComponent