net.java.truelicense.ui.wizard.WizardModel Maven / Gradle / Ivy
/*
* Copyright (C) 2005-2015 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truelicense.ui.wizard;
/**
* A model for a generic wizard user interface.
*
* @param the type of the wizard's states.
* @param the type of the wizard's views.
* @author Christian Schlichtherle
* @since TrueLicense 2.3
*/
public interface WizardModel {
/** Returns the current state. */
S currentState();
/** Sets the current state. */
void currentState(S state);
/** Returns the view for the given state. */
V view(S state);
/** Sets the view for the given state. */
void view(S state, V view);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy