org.xwiki.gwt.wysiwyg.client.widget.wizard.util
Class AbstractEntityListSelectorWizardStep<C extends EntityConfig,E extends Entity>

java.lang.Object
  extended by org.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep
      extended by org.xwiki.gwt.user.client.ui.wizard.AbstractInteractiveWizardStep
          extended by org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep<D>
              extended by org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractListSelectorWizardStep<EntityLink<C>,E>
                  extended by org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractEntityListSelectorWizardStep<C,E>
Type Parameters:
C - the type of entity configuration data associated with the link
E - the type of entity that is being selected
All Implemented Interfaces:
com.google.gwt.event.dom.client.DoubleClickHandler, com.google.gwt.event.dom.client.KeyUpHandler, com.google.gwt.event.shared.EventHandler, SourcesNavigationEvents, WizardStep
Direct Known Subclasses:
AbstractPageListSelectorWizardStep, CurrentPageAttachmentSelectorWizardStep, CurrentPageImageSelectorWizardStep

public abstract class AbstractEntityListSelectorWizardStep<C extends EntityConfig,E extends Entity>
extends AbstractListSelectorWizardStep<EntityLink<C>,E>

Wizard step that allows the user to select an entity from a list.

Version:
$Id: 9b3388c3908eece6526e3015bc85c13b54a80d13 $

Constructor Summary
AbstractEntityListSelectorWizardStep()
           
 
Method Summary
protected  boolean isSelectedByDefault(E listItemData)
          
protected  void saveSelectedValue(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
          Saves the current selection in this panel in the data managed by this wizard step, if all validation goes well on the submit time.
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractListSelectorWizardStep
addNavigationListener, display, displayError, fetchData, fillList, getErrorLabel, getList, getListItem, getNewOptionListItem, getSelectedItem, getSelectErrorMessage, getSelectHelpLabel, hideError, init, onCancel, onDoubleClick, onKeyUp, onSubmit, refreshList, removeNavigationListener, setActive, setNewOptionOnTop
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.widget.wizard.util.AbstractSelectorWizardStep
getData, getResult, initializeSelection
 
Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.AbstractInteractiveWizardStep
getStepTitle, isAutoSubmit, setStepTitle
 
Methods inherited from class org.xwiki.gwt.user.client.ui.wizard.AbstractNavigationAwareWizardStep
getDirectionName, getNextStep, getValidDirections, setDirectionName, setNextStep, setValidDirections
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEntityListSelectorWizardStep

public AbstractEntityListSelectorWizardStep()
Method Detail

isSelectedByDefault

protected boolean isSelectedByDefault(E listItemData)

Overrides:
isSelectedByDefault in class AbstractListSelectorWizardStep<EntityLink<C extends EntityConfig>,E extends Entity>
Parameters:
listItemData - a list item data
Returns:
true of the list item with the given data should be selected by default, false otherwise
See Also:
AbstractListSelectorWizardStep.isSelectedByDefault(Object)

saveSelectedValue

protected void saveSelectedValue(com.google.gwt.user.client.rpc.AsyncCallback<Boolean> async)
Saves the current selection in this panel in the data managed by this wizard step, if all validation goes well on the submit time.

Specified by:
saveSelectedValue in class AbstractListSelectorWizardStep<EntityLink<C extends EntityConfig>,E extends Entity>
Parameters:
async - the object to be notified after the selected value is saved
See Also:
AbstractListSelectorWizardStep.saveSelectedValue(AsyncCallback)


Copyright © 2004-2012 XWiki. All Rights Reserved.