Class WizardUILancher<E extends WizardStep,​M extends WizardModel<E>,​UI extends WizardUI<E,​M>>

java.lang.Object
jaxx.runtime.swing.wizard.WizardUILancher<E,​M,​UI>
Type Parameters:
E - le type des etapes
M - le type de modele
UI - le type d'ui

public abstract class WizardUILancher<E extends WizardStep,​M extends WizardModel<E>,​UI extends WizardUI<E,​M>>
extends java.lang.Object
Une classe pour lancer une ui de wizard.
Since:
1.3
Author:
Tony Chemit - chemit@codelutin.com
  • Field Summary

    Fields
    Modifier and Type Field Description
    static JAXXContextEntryDef<java.lang.Runnable> APPLY_DEF
    the jaxx context entry to store the apply action
    static JAXXContextEntryDef<java.lang.Runnable> CANCEL_DEF
    the jaxx context entry to store the cancel action
    protected UI ui  
  • Constructor Summary

    Constructors
    Constructor Description
    WizardUILancher​(JAXXContext context, java.awt.Window mainUI, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass)  
    WizardUILancher​(JAXXContext context, java.awt.Window mainUI, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, M model)  
    WizardUILancher​(JAXXContext context, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, java.lang.String title, java.lang.String tip, javax.swing.ImageIcon icon)  
    WizardUILancher​(JAXXContext context, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, M model, java.lang.String title, java.lang.String tip, javax.swing.ImageIcon icon)  
  • Method Summary

    Modifier and Type Method Description
    protected UI createUI​(JAXXContext context, java.awt.Window mainUI, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, M model)  
    protected UI createUI​(JAXXContext context, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, M model, java.lang.String title, java.lang.String tip, javax.swing.ImageIcon icon)  
    protected void doAction​(UI ui)  
    protected void doCancel​(UI ui)  
    protected void doClose​(UI ui, boolean wasCanceld)  
    <T> T getContextValue​(java.lang.Class<T> clazz)  
    <T> T getContextValue​(java.lang.Class<T> clazz, java.lang.String name)  
    protected void init​(UI ui)  
    static <M extends WizardModel<?>>
    JAXXContextEntryDef<M>
    newModelEntry​(java.lang.Class<M> modelType)  
    void start()  
    protected void start​(UI ui)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • APPLY_DEF

      public static final JAXXContextEntryDef<java.lang.Runnable> APPLY_DEF
      the jaxx context entry to store the apply action
    • CANCEL_DEF

      public static final JAXXContextEntryDef<java.lang.Runnable> CANCEL_DEF
      the jaxx context entry to store the cancel action
    • ui

      protected UI extends WizardUI<E,​M> ui
  • Constructor Details

    • WizardUILancher

      public WizardUILancher​(JAXXContext context, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, java.lang.String title, java.lang.String tip, javax.swing.ImageIcon icon)
    • WizardUILancher

      public WizardUILancher​(JAXXContext context, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, M model, java.lang.String title, java.lang.String tip, javax.swing.ImageIcon icon)
    • WizardUILancher

      public WizardUILancher​(JAXXContext context, java.awt.Window mainUI, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, M model)
    • WizardUILancher

      public WizardUILancher​(JAXXContext context, java.awt.Window mainUI, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass)
  • Method Details

    • newModelEntry

      public static <M extends WizardModel<?>> JAXXContextEntryDef<M> newModelEntry​(java.lang.Class<M> modelType)
    • start

      public void start()
    • start

      protected void start​(UI ui)
    • getContextValue

      public <T> T getContextValue​(java.lang.Class<T> clazz, java.lang.String name)
    • getContextValue

      public <T> T getContextValue​(java.lang.Class<T> clazz)
    • init

      protected void init​(UI ui)
    • doAction

      protected void doAction​(UI ui)
    • doCancel

      protected void doCancel​(UI ui)
    • doClose

      protected void doClose​(UI ui, boolean wasCanceld)
    • createUI

      protected UI createUI​(JAXXContext context, java.awt.Window mainUI, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, M model) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • createUI

      protected UI createUI​(JAXXContext context, java.lang.Class<UI> uiClass, java.lang.Class<M> modelClass, M model, java.lang.String title, java.lang.String tip, javax.swing.ImageIcon icon) throws java.lang.Exception
      Throws:
      java.lang.Exception