當前位置: 首頁>>代碼示例>>Java>>正文


Java WizardStepSetChangedEvent類代碼示例

本文整理匯總了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);
    }
}
 
開發者ID:viydaag,項目名稱:dungeonstory-java,代碼行數:31,代碼來源:LevelUpCharacterWizard.java

示例2: stepSetChanged

import org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent; //導入依賴的package包/類
@Override
public void stepSetChanged(WizardStepSetChangedEvent event)
{
	Page.getCurrent().setTitle(event.getComponent().getCaption());

}
 
開發者ID:rlsutton1,項目名稱:VaadinUtils,代碼行數:7,代碼來源:WizardView.java

示例3: stepSetChanged

import org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent; //導入依賴的package包/類
@Override
public void stepSetChanged(final WizardStepSetChangedEvent event)
{
	Page.getCurrent().setTitle(event.getComponent().getCaption());

}
 
開發者ID:bsutton,項目名稱:scoutmaster,代碼行數:7,代碼來源:GroupMaintenanceWizardView.java

示例4: stepSetChanged

import org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent; //導入依賴的package包/類
@Override
public void stepSetChanged(WizardStepSetChangedEvent event) {

}
 
開發者ID:viydaag,項目名稱:dungeonstory-java,代碼行數:5,代碼來源:CharacterWizard.java


注:本文中的org.vaadin.teemu.wizards.event.WizardStepSetChangedEvent類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。