org.xwiki.gwt.wysiwyg.client.plugin.macro.input
Class InputFactory

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.macro.input.InputFactory

public final class InputFactory
extends Object

Creates input controls for specific data types.

Version:
$Id: b95825f16f99ee8449e38d622e64bf1d59b4ea94 $

Method Summary
protected static ChoiceInput createBooleanInput()
           
protected static ChoiceInput createChoiceInput(Map<String,String> options)
          Creates a choice input based on the given options.
static com.google.gwt.user.client.ui.Widget createInput(ParameterType type)
          Creates a new input control that collects user data of the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createInput

public static com.google.gwt.user.client.ui.Widget createInput(ParameterType type)
Creates a new input control that collects user data of the specified type. Common types are java.lang.String and boolean.

Parameters:
type - the type of a macro parameter
Returns:
the newly created input control

createChoiceInput

protected static ChoiceInput createChoiceInput(Map<String,String> options)
Creates a choice input based on the given options.

Parameters:
options - the options the user has to choose from
Returns:
the newly created choice input

createBooleanInput

protected static ChoiceInput createBooleanInput()
Returns:
a new boolean input


Copyright © 2004-2012 XWiki. All Rights Reserved.