|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.swing.wizard.WizardModel<E>
jaxx.runtime.swing.wizard.WizardOperationModel<E>
E - le type des étapes.public class WizardOperationModel<E extends WizardOperationStep>
Un modèle de wizard avec des opérations.
| Field Summary | |
|---|---|
static String |
MODEL_STATE_PROPERTY_NAME
|
protected WizardOperationState |
modelState
L'état générale du modèle |
static String |
OPERATION_STATE_PROPERTY_NAME
|
protected Map<E,WizardOperationAction<E,? extends WizardOperationModel<E>>> |
operationActions
|
protected Set<E> |
operations
La liste des opérations à effectuer |
static String |
OPERATIONS_PROPERTY_NAME
|
protected Map<E,WizardOperationState> |
operationStates
Pour conserver les états des opérations |
static String |
WAS_STARTED_PROPERTY_NAME
|
protected boolean |
wasStarted
un drapeau pour savoir siune opération a été lancée |
| Fields inherited from class jaxx.runtime.swing.wizard.WizardModel |
|---|
excludeSteps, NEXT_STEP_PROPERTY_NAME, pcs, PREVIOUS_STEP_PROPERTY_NAME, step, STEP_PROPERTY_NAME, stepClass, steps, STEPS_PROPERTY_NAME, VALID_STEP_PROPERTY_NAME, validStep, valueAdjusting |
| Constructor Summary | |
|---|---|
WizardOperationModel(Class<E> stepClass,
E... steps)
|
|
| Method Summary | |
|---|---|
WizardOperationModel<E> |
addOperation(E operation)
|
void |
cancel()
|
boolean[] |
getAccessibleSteps()
|
WizardOperationState |
getModelState()
|
E |
getOperation()
|
WizardOperationAction<E,? extends WizardOperationModel<E>> |
getOperationAction(E operation)
|
protected int |
getOperationIndex(E operation)
|
Set<E> |
getOperations()
|
WizardOperationState |
getOperationState()
|
WizardOperationState |
getOperationState(E operation)
|
boolean |
isWasStarted()
|
WizardOperationAction<E,? extends WizardOperationModel<E>> |
reloadOperation(E operation)
|
void |
removeOperation(E operation)
|
protected void |
setModelState(WizardOperationState modelState)
|
void |
setOperationState(E operation,
WizardOperationState operationState)
|
void |
setOperationState(WizardOperationState operationState)
|
void |
setSteps(E... steps)
Change l'univers des etapes. |
void |
start()
|
protected void |
updateModelState(E operation,
WizardOperationState operationState)
|
void |
updateOperationStates(List<E> steps)
|
protected void |
updateUniverse()
|
| Methods inherited from class jaxx.runtime.swing.wizard.WizardModel |
|---|
addPropertyChangeListener, addPropertyChangeListener, destroy, finalize, fireIndexedPropertyChange, firePropertyChange, getNextStep, getNextStep, getPreviousStep, getPreviousStep, getStep, getStepClass, getStepIndex, getSteps, gotoNextStep, gotoPreviousStep, gotoStep, isValidStep, isValueAdjusting, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListeners, setExcludeSteps, setStep, setValueAdjusting, updateStepUniverse, validate, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OPERATIONS_PROPERTY_NAME
public static final String OPERATION_STATE_PROPERTY_NAME
public static final String MODEL_STATE_PROPERTY_NAME
public static final String WAS_STARTED_PROPERTY_NAME
protected Set<E extends WizardOperationStep> operations
protected Map<E extends WizardOperationStep,WizardOperationState> operationStates
protected Map<E extends WizardOperationStep,WizardOperationAction<E extends WizardOperationStep,? extends WizardOperationModel<E extends WizardOperationStep>>> operationActions
protected WizardOperationState modelState
protected boolean wasStarted
| Constructor Detail |
|---|
public WizardOperationModel(Class<E> stepClass,
E... steps)
| Method Detail |
|---|
public Set<E> getOperations()
public WizardOperationState getModelState()
public boolean isWasStarted()
public E getOperation()
public WizardOperationState getOperationState()
public WizardOperationState getOperationState(E operation)
public WizardOperationAction<E,? extends WizardOperationModel<E>> getOperationAction(E operation)
public void setOperationState(WizardOperationState operationState)
public void setOperationState(E operation,
WizardOperationState operationState)
public boolean[] getAccessibleSteps()
public void start()
start in class WizardModel<E extends WizardOperationStep>public void cancel()
public WizardOperationModel<E> addOperation(E operation)
public void removeOperation(E operation)
public void setSteps(E... steps)
WizardModel
setSteps in class WizardModel<E extends WizardOperationStep>steps - le nouvel univers des etapespublic void updateOperationStates(List<E> steps)
public WizardOperationAction<E,? extends WizardOperationModel<E>> reloadOperation(E operation)
protected void setModelState(WizardOperationState modelState)
protected void updateModelState(E operation,
WizardOperationState operationState)
protected void updateUniverse()
updateUniverse in class WizardModel<E extends WizardOperationStep>protected int getOperationIndex(E operation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||