Class NewDFItemWizardIterator<T extends com.im.df.api.ddl.DFItem>

  • All Implemented Interfaces:
    org.openide.WizardDescriptor.Iterator<org.openide.WizardDescriptor>
    Direct Known Subclasses:
    ConvertDFFieldWizardIterator

    public class NewDFItemWizardIterator<T extends com.im.df.api.ddl.DFItem>
    extends java.lang.Object
    implements org.openide.WizardDescriptor.Iterator<org.openide.WizardDescriptor>
    • Field Detail

      • MSG_WIZARD_TITLE

        public static final java.lang.String MSG_WIZARD_TITLE
        See Also:
        Constant Field Values
      • MSG_SETTINGS_TITLED_BORDER

        public static final java.lang.String MSG_SETTINGS_TITLED_BORDER
        See Also:
        Constant Field Values
      • MSG_PROGRESS_TITLE

        public static final java.lang.String MSG_PROGRESS_TITLE
        See Also:
        Constant Field Values
      • MSG_SELECT_DFITEM_TYPE

        public static final java.lang.String MSG_SELECT_DFITEM_TYPE
        See Also:
        Constant Field Values
      • MSG_TYPE_NOT_SELECTED

        public static final java.lang.String MSG_TYPE_NOT_SELECTED
        See Also:
        Constant Field Values
      • MSG_DFITEM_CREATED

        public static final java.lang.String MSG_DFITEM_CREATED
        See Also:
        Constant Field Values
      • MSGS_KEYS_ARR

        public static final java.lang.String[] MSGS_KEYS_ARR
    • Method Detail

      • getDFItem

        public T getDFItem()
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
      • showWizard

        public static <T2 extends com.im.df.api.ddl.DFItem> NewDFItemWizardIterator<T2> showWizard​(com.im.df.api.ddl.DFItem parent,
                                                                                                   java.util.List<com.im.df.api.support.DFNewType<T2>> newTypes,
                                                                                                   com.im.df.api.support.DFNewType<T2> selectedNewType,
                                                                                                   NewDFItemWizardIterator.WizardType type)
        Presents the Wizard, and returns the Iterator so the caller may query it for the results.
        Returns:
        The wizard iterator
      • showWizard

        public static <T2 extends com.im.df.api.ddl.DFItem> NewDFItemWizardIterator<T2> showWizard​(com.im.df.api.ddl.DFItem parent,
                                                                                                   java.util.List<com.im.df.api.support.DFNewType<T2>> newTypes,
                                                                                                   com.im.df.api.support.DFNewType<T2> selectedNewType,
                                                                                                   NewDFItemWizardIterator.WizardType type,
                                                                                                   java.util.List<org.openide.WizardDescriptor.Panel<org.openide.WizardDescriptor>> extraPanels,
                                                                                                   java.awt.Dimension size)
      • showWizard

        public static <T2 extends com.im.df.api.ddl.DFItem> NewDFItemWizardIterator<T2> showWizard​(com.im.df.api.ddl.DFItem parent,
                                                                                                   java.util.List<com.im.df.api.support.DFNewType<T2>> newTypes,
                                                                                                   com.im.df.api.support.DFNewType<T2> selectedNewType,
                                                                                                   java.util.Map<java.lang.Object,​java.lang.Object> customizerProperties,
                                                                                                   NewDFItemWizardIterator.WizardType type)
        Presents the Wizard, and returns the Iterator so the caller may query it for the results.
        Returns:
        The wizard iterator
      • getNewItem

        public T getNewItem()
        Returns:
        the created item, or null, if the creation failed or is not finished yet.
      • getCreationTask

        public com.im.commons.progress.Task getCreationTask()
        Returns:
        The creation Task handle
      • setMsgs

        protected final void setMsgs​(java.util.Map<java.lang.String,​java.lang.String> msgs)
      • getMsg

        protected final java.lang.String getMsg​(java.lang.String key)
      • addExtraPanel

        public void addExtraPanel​(org.openide.WizardDescriptor.Panel<org.openide.WizardDescriptor> panel)
      • createPanels

        protected org.openide.WizardDescriptor.Panel[] createPanels()
      • current

        public org.openide.WizardDescriptor.Panel<org.openide.WizardDescriptor> current()
        Specified by:
        current in interface org.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
      • name

        public java.lang.String name()
        Specified by:
        name in interface org.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface org.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
      • hasPrevious

        public boolean hasPrevious()
        Specified by:
        hasPrevious in interface org.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
      • nextPanel

        public void nextPanel()
        Specified by:
        nextPanel in interface org.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
      • previousPanel

        public void previousPanel()
        Specified by:
        previousPanel in interface org.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
      • setWizardDescriptor

        protected void setWizardDescriptor​(org.openide.WizardDescriptor wizardDescriptor)
      • getWizardDescriptor

        public org.openide.WizardDescriptor getWizardDescriptor()
      • addChangeListener

        public void addChangeListener​(javax.swing.event.ChangeListener l)
        Specified by:
        addChangeListener in interface org.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
      • removeChangeListener

        public void removeChangeListener​(javax.swing.event.ChangeListener l)
        Specified by:
        removeChangeListener in interface org.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>