当前位置: 首页>>代码示例>>Java>>正文


Java TextType类代码示例

本文整理汇总了Java中com.rapidminer.parameter.TextType的典型用法代码示例。如果您正苦于以下问题:Java TextType类的具体用法?Java TextType怎么用?Java TextType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TextType类属于com.rapidminer.parameter包,在下文中一共展示了TextType类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SQLEditor

import com.rapidminer.parameter.TextType; //导入依赖的package包/类
public SQLEditor() {
	super(new RSyntaxDocument(TextType.SQL.getSyntaxIdentifier()));
	setAnimateBracketMatching(true);
	setAutoIndentEnabled(true);
	setAutoscrolls(true);

	// A CompletionProvider is what knows of all possible completions, and
	// analyzes the contents of the text area at the caret position to
	// determine what completion choices should be presented. Most instances
	// of CompletionProvider (such as DefaultCompletionProvider) are designed
	// so that they can be shared among multiple text components.
	CompletionProvider provider = new LanguageAwareCompletionProvider(new DefaultCompletionProvider(BASIC_SQL_DIALECT));

	// An AutoCompletion acts as a "middle-man" between a text component
	// and a CompletionProvider. It manages any options associated with
	// the auto-completion (the popup trigger key, whether to display a
	// documentation window along with completion choices, etc.). Unlike
	// CompletionProviders, instances of AutoCompletion cannot be shared
	// among multiple text components.
	AutoCompletion ac = new AutoCompletion(provider);
	ac.install(this);

	requestFocusInWindow();
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:25,代码来源:SQLEditor.java

示例2: getParameterTypes

import com.rapidminer.parameter.TextType; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = super.getParameterTypes();
	ParameterType type = new ParameterTypeText(PARAMETER_SCRIPT, "The script to execute.", TextType.GROOVY, false);
	type.setExpert(false);
	type.setDefaultValue("/* \n" + " * You can use both Java and Groovy syntax in this script.\n"
			+ " * \n * Note that you have access to the following two predefined variables:\n"
			+ " * 1) input (an array of all input data)\n"
			+ " * 2) operator (the operator instance which is running this script)\n" + " */\n" + "\n"
			+ "// Take first input data and treat it as generic IOObject\n"
			+ "// Alternatively, you could treat it as an ExampleSet if it is one:\n"
			+ "// ExampleSet inputData = input[0];\n" + "IOObject inputData = input[0];\n" + "\n\n"
			+ "// You can add any code here\n" + "\n" + "\n"
			+ "// This line returns the first input as the first output\n" + "return inputData;");
	types.add(type);
	types.add(new ParameterTypeBoolean(PARAMETER_STANDARD_IMPORTS,
			"Indicates if standard imports for examples and attributes etc. should be automatically generated.", true));
	return types;
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:20,代码来源:ScriptingOperator.java

示例3: getParameterTypes

import com.rapidminer.parameter.TextType; //导入依赖的package包/类
@Override
	public List<ParameterType> getParameterTypes() {
		List<ParameterType> types = super.getParameterTypes();
		types.addAll(DatabaseHandler.getConnectionParameterTypes(this));
		
//		ParameterType type = new ParameterTypeCategory(PARAMETER_DATABASE_SYSTEM, "Indicates the used database system", DatabaseService.getDBSystemNames(), 0);
//		type.setExpert(false);
//		types.add(type);
//
//		types.add(new ParameterTypeString(PARAMETER_DATABASE_URL, "The complete URL connection string for the database, e.g. 'jdbc:mysql://foo.bar:portnr/database'", false, false));
//		types.add(new ParameterTypeString(PARAMETER_USERNAME, "Database username.", false, false));
//		type = new ParameterTypePassword(PARAMETER_PASSWORD, "Password for the database.");
//		type.setExpert(false);
//		types.add(type);

		ParameterType type = new ParameterTypeText(PARAMETER_QUERY, "SQL query. If not set, the query is read from the file specified by 'query_file'.", TextType.SQL);
		type.setExpert(false);
		types.add(type);

		types.add(new ParameterTypeFile(PARAMETER_QUERY_FILE, "File containing the query. Only evaluated if 'query' is not set.", null, true));
		types.addAll(DatabaseHandler.getStatementPreparationParamterTypes(this));
		
		return types;
	}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:25,代码来源:SQLExecution.java

示例4: getParameterTypes

import com.rapidminer.parameter.TextType; //导入依赖的package包/类
public List<ParameterType> getParameterTypes() {
    List types = super.getParameterTypes();
    types.addAll(DatabaseHandler.getConnectionParameterTypes(this));
    ParameterTypeText type = new ParameterTypeText("query", "SQL query. If not set, the query is read from the file specified by \'query_file\'.", TextType.SQL);
    type.setExpert(false);
    types.add(type);
    types.add(new ParameterTypeFile("query_file", "File containing the query. Only evaluated if \'query\' is not set.", (String)null, true));
    types.addAll(DatabaseHandler.getStatementPreparationParamterTypes(this));
    return types;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:11,代码来源:SQLExecution.java

示例5: getParameterTypes

import com.rapidminer.parameter.TextType; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = super.getParameterTypes();
	ParameterType type = new ParameterTypeText(PARAMETER_SCRIPT, "The script to execute.", TextType.GROOVY, false);
	type.setExpert(false);
	types.add(type);
	types.add(new ParameterTypeBoolean(PARAMETER_STANDARD_IMPORTS,
			"Indicates if standard imports for examples and attributes etc. should be automatically generated.", true));
	return types;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:11,代码来源:ScriptingOperator.java

示例6: getParameterTypes

import com.rapidminer.parameter.TextType; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = super.getParameterTypes();				
	ParameterType type = new ParameterTypeText(PARAMETER_SCRIPT, "The script to execute.", TextType.JAVA, false);
	type.setExpert(false);
	types.add(type);
	types.add(new ParameterTypeBoolean(PARAMETER_STANDARD_IMPORTS, "Indicates if standard imports for examples and attributes etc. should be automatically generated.", true));
	return types;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:10,代码来源:ScriptingOperator.java

示例7: SQLEditor

import com.rapidminer.parameter.TextType; //导入依赖的package包/类
public SQLEditor() {
    super(new RSyntaxDocument(TextType.SQL.getSyntaxIdentifier()));
    setAnimateBracketMatching(true);
    setAutoIndentEnabled(true);
    setAutoscrolls(true);

    requestFocusInWindow();

}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:10,代码来源:SQLEditor.java


注:本文中的com.rapidminer.parameter.TextType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。