Class NewDFItemWizardIterator<T extends com.im.df.api.ddl.DFItem>
- java.lang.Object
-
- com.im.ijc.core.wizards.newdfitem.NewDFItemWizardIterator<T>
-
- 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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NewDFItemWizardIterator.WizardType
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MSG_DFITEM_CREATED
static java.lang.String
MSG_NEW_ITEM
static java.lang.String
MSG_PANEL1_NAME
static java.lang.String
MSG_PROGRESS_TITLE
static java.lang.String
MSG_SELECT_DFITEM_TYPE
static java.lang.String
MSG_SETTINGS_TITLED_BORDER
static java.lang.String
MSG_TYPE_NOT_SELECTED
static java.lang.String
MSG_WIZARD_TITLE
static java.lang.String[]
MSGS_KEYS_ARR
static java.lang.String
PROP_DFITEM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangeListener(javax.swing.event.ChangeListener l)
void
addExtraPanel(org.openide.WizardDescriptor.Panel<org.openide.WizardDescriptor> panel)
void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
protected java.util.Map<java.lang.String,java.lang.String>
createMessages(NewDFItemWizardIterator.WizardType type)
protected org.openide.WizardDescriptor.Panel[]
createPanels()
org.openide.WizardDescriptor.Panel<org.openide.WizardDescriptor>
current()
com.im.commons.progress.Task
getCreationTask()
T
getDFItem()
protected java.lang.String
getMsg(java.lang.String key)
T
getNewItem()
org.openide.WizardDescriptor
getWizardDescriptor()
boolean
hasNext()
boolean
hasPrevious()
java.lang.String
name()
void
nextPanel()
void
previousPanel()
void
removeChangeListener(javax.swing.event.ChangeListener l)
void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
protected void
setMsgs(java.util.Map<java.lang.String,java.lang.String> msgs)
protected void
setWizardDescriptor(org.openide.WizardDescriptor wizardDescriptor)
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.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)
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.
-
-
-
Field Detail
-
PROP_DFITEM
public static final java.lang.String PROP_DFITEM
- See Also:
- Constant Field Values
-
MSG_WIZARD_TITLE
public static final java.lang.String MSG_WIZARD_TITLE
- See Also:
- Constant Field Values
-
MSG_NEW_ITEM
public static final java.lang.String MSG_NEW_ITEM
- 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_PANEL1_NAME
public static final java.lang.String MSG_PANEL1_NAME
- 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
-
createMessages
protected final java.util.Map<java.lang.String,java.lang.String> createMessages(NewDFItemWizardIterator.WizardType type)
-
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 interfaceorg.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
-
name
public java.lang.String name()
- Specified by:
name
in interfaceorg.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceorg.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceorg.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
-
nextPanel
public void nextPanel()
- Specified by:
nextPanel
in interfaceorg.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
-
previousPanel
public void previousPanel()
- Specified by:
previousPanel
in interfaceorg.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 interfaceorg.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
-
removeChangeListener
public void removeChangeListener(javax.swing.event.ChangeListener l)
- Specified by:
removeChangeListener
in interfaceorg.openide.WizardDescriptor.Iterator<T extends com.im.df.api.ddl.DFItem>
-
-