本文整理匯總了Java中org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent類的典型用法代碼示例。如果您正苦於以下問題:Java WizardStepSetChangedEvent類的具體用法?Java WizardStepSetChangedEvent怎麽用?Java WizardStepSetChangedEvent使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
WizardStepSetChangedEvent類屬於org.vaadin.teemu.wizards.event包,在下文中一共展示了WizardStepSetChangedEvent類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: removeStep
import org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent; //導入依賴的package包/類
public void removeStep(String id, boolean force) {
if (force) {
if (idMap.containsKey(id)) {
WizardStep stepToRemove = idMap.get(id);
if (isActive(stepToRemove)) {
throw new IllegalStateException("Currently active step cannot be removed.");
}
int indexOfLastCompletedStep = steps.indexOf(lastCompletedStep);
if (steps.indexOf(stepToRemove) == indexOfLastCompletedStep) {
lastCompletedStep = steps.get(indexOfLastCompletedStep - 1);
}
idMap.remove(id);
steps.remove(stepToRemove);
// notify listeners
fireEvent(new WizardStepSetChangedEvent(this));
// if current step changes index, must fire a event to refresh the progress bar
if (isCompleted(stepToRemove)) {
fireEvent(new WizardStepActivationEvent(this, currentStep));
}
}
} else {
super.removeStep(id);
}
}
示例2: stepSetChanged
import org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent; //導入依賴的package包/類
@Override
public void stepSetChanged(WizardStepSetChangedEvent event)
{
Page.getCurrent().setTitle(event.getComponent().getCaption());
}
示例3: stepSetChanged
import org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent; //導入依賴的package包/類
@Override
public void stepSetChanged(final WizardStepSetChangedEvent event)
{
Page.getCurrent().setTitle(event.getComponent().getCaption());
}
示例4: stepSetChanged
import org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent; //導入依賴的package包/類
@Override
public void stepSetChanged(WizardStepSetChangedEvent event) {
}