Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2011 JBoss Inc
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package org.drools.guvnor.client.widgets.wizards;
 
 import java.util.List;
 
View and Presenter definitions for the generic Wizard
 
 public interface WizardActivityView
         extends
         IsWidget {
 
     interface Presenter {

        
Show an indicator that a save operation is in progress
 
         void showSavingIndicator();

        
Hide the indicator that a save operation is in ro
 
         void hideSavingIndicator();

        
Show a message that the asset is a duplicate and cannot be saved
 
         void showDuplicateAssetNameError();

        
Show a message that an unspecified error occurred during the save
 
         void showUnspecifiedCheckinError();

        
Show a message that a specified error occurred during the save
 
         void showCheckinError(String message);

        
A page has been selected from the UI

Parameters:
pageNumber
 
         void pageSelected(int pageNumber);

        
The Wizard has been finished
 
         void complete();

        
Hide the Wizard
 
         void hide();
 
     }

    
Set the Presenter for the View to callback to

Parameters:
presenter
 
     void setPresenter(Presenter presenter);

    
Show the Wizard
 
     void show();

    
The title for the Wizard

Parameters:
title
 
     void setTitle(String title);

    
The individual page titles

Parameters:
pages
    void setPageTitles(List<WizardPagepages);

    
Select a page

Parameters:
page
    void selectPage(int page);

    
Set the Widget to display in the body panel of the generic Wizard

Parameters:
w
    void setBodyWidget(Widget w);

    
Set the body panel preferred height

Parameters:
height
    void setPreferredHeight(int height);

    
Set the body panel preferred width

Parameters:
width
    void setPreferredWidth(int width);

    
The state (completed, not completed) of a page has changed.

Parameters:
pageIndex
isComplete
    void setPageCompletionState(int pageIndex,
                                boolean isComplete);

    
The state (completed, not completed) of the whole Wizard has changed

Parameters:
isComplete
    void setCompletionStatus(boolean isComplete);

    
Show an indicator that a save operation is in progress
    void showSavingIndicator();

    
Hide the indicator that a save operation is in ro
    void hideSavingIndicator();

    
Show a message that the asset is a duplicate and cannot be saved
    void showDuplicateAssetNameError();

    
Show a message that an unspecified error occurred during the save
    void showUnspecifiedCheckinError();

    
Show a message that a specified error occurred during the save
    void showCheckinError(String message);

    
Hide the Wizard
    void hide();
New to GrepCode? Check out our FAQ X