/**
* Creates an instance with given default values to display.
* @param initialCategory Default category
* @param initialName Default name
* @param initialType Default type
*/
public IoVariableDefinitionPane(VariableCategory initialCategory, VariableRole initialRole, String initialName,
String initialType) {
super();
setVgap(10);
setHgap(10);
this.categoryComboBox = new ComboBox<>(
FXCollections.observableArrayList(VariableCategory.values()));
this.variableRoleComboBox = new ComboBox<>(
FXCollections.observableArrayList(VariableRole.values()));
this.nameTextField = new TextField(initialName);
this.typeTextField = new TextField(initialType);
categoryComboBox.valueProperty().set(initialCategory);
add(new Label("category: "), 0, 0);
add(new Label("verification-role: "), 0, 1);
add(new Label("name: "), 0, 2);
add(new Label("type: "), 0, 3);
add(categoryComboBox, 1, 0);
add(variableRoleComboBox, 1, 1);
add(nameTextField, 1, 2);
add(typeTextField, 1, 3);
ViewUtils.setupClass(this);
}
IoVariableDefinitionPane.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:stvs
作者:
评论列表
文章目录