本文整理匯總了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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例7: SQLEditor
import com.rapidminer.parameter.TextType; //導入依賴的package包/類
public SQLEditor() {
super(new RSyntaxDocument(TextType.SQL.getSyntaxIdentifier()));
setAnimateBracketMatching(true);
setAutoIndentEnabled(true);
setAutoscrolls(true);
requestFocusInWindow();
}