本文整理了Java中com.vaadin.ui.TextArea.clear()
方法的一些代码示例,展示了TextArea.clear()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextArea.clear()
方法的具体详情如下:
包路径:com.vaadin.ui.TextArea
类名称:TextArea
方法名:clear
暂无
代码示例来源:origin: com.vaadin/vaadin-server
/**
* Constructs an empty TextArea.
*/
public TextArea() {
registerRpc(new TextAreaServerRpc() {
@Override
public void setHeight(String height) {
TextArea.this.setHeight(height);
}
@Override
public void setWidth(String width) {
TextArea.this.setWidth(width);
}
});
clear();
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
protected void clearFields() {
valueTextArea.clear();
keyTextField.clear();
}
代码示例来源:origin: eclipse/hawkbit
protected void clearFields() {
valueTextArea.clear();
keyTextField.clear();
}
代码示例来源:origin: stackoverflow.com
public class ViewController implements Initializable {
@FXML
private TextField urlTextField;
@FXML
private TextArea linesTextArea;
private static final Logger LOG = Logger.getLogger(ViewController.class.getName());
private Future<List<String>> future;
private ExecutorService executorService = Executors.newSingleThreadExecutor();
private TextFileReader reader = new TextFileReader();
public void initialize(URL url, ResourceBundle rb) {
}
@FXML
@SuppressWarnings("NestedAssignment")
public void showFileLines() throws InterruptedException, ExecutionException {
future = executorService.submit(new Callable<List<String>>() {
public List<String> call() throws Exception {
return reader.read(new File(ViewController.this.urlTextField.getText()));
}
});
List<String> lines = future.get();
executorService.shutdownNow();
linesTextArea.clear();
for (String line : lines ) {
linesTextArea.appendText(line + "\n");
}
}
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void resetComponents() {
vendorTextField.clear();
nameTextField.clear();
versionTextField.clear();
descTextArea.clear();
if (!editSwModule) {
typeComboBox.clear();
}
editSwModule = Boolean.FALSE;
}
代码示例来源:origin: eclipse/hawkbit
private void resetComponents() {
vendorTextField.clear();
nameTextField.clear();
versionTextField.clear();
descTextArea.clear();
if (!editSwModule) {
typeComboBox.clear();
}
editSwModule = Boolean.FALSE;
}
代码示例来源:origin: eclipse/hawkbit
/**
* clear all fields of Target Edit Window.
*/
public void resetComponents() {
nameTextField.clear();
nameTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
controllerIDTextField.setEnabled(Boolean.TRUE);
controllerIDTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
controllerIDTextField.clear();
descTextArea.clear();
editTarget = Boolean.FALSE;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
/**
* clear all fields of Target Edit Window.
*/
public void resetComponents() {
nameTextField.clear();
nameTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
controllerIDTextField.setEnabled(Boolean.TRUE);
controllerIDTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
controllerIDTextField.clear();
descTextArea.clear();
editTarget = Boolean.FALSE;
}
代码示例来源:origin: stackoverflow.com
statsTextArea.clear();
statsTextArea.appendText("Number of elements : " + handler.numberOfElements()+"\n");
statsTextArea.appendText("Mean : " + handler.mean()+"\n");
代码示例来源:origin: eclipse/hawkbit
/**
* clear all the fields.
*/
public void resetComponents() {
distNameTextField.clear();
distNameTextField.removeStyleName("v-textfield-error");
distVersionTextField.clear();
distVersionTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_LAYOUT_ERROR_HIGHTLIGHT);
distsetTypeNameComboBox.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_LAYOUT_ERROR_HIGHTLIGHT);
distsetTypeNameComboBox.clear();
distsetTypeNameComboBox.setEnabled(true);
descTextArea.clear();
reqMigStepCheckbox.clear();
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
/**
* clear all the fields.
*/
public void resetComponents() {
distNameTextField.clear();
distNameTextField.removeStyleName("v-textfield-error");
distVersionTextField.clear();
distVersionTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_LAYOUT_ERROR_HIGHTLIGHT);
distsetTypeNameComboBox.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_LAYOUT_ERROR_HIGHTLIGHT);
distsetTypeNameComboBox.clear();
distsetTypeNameComboBox.setEnabled(true);
descTextArea.clear();
reqMigStepCheckbox.clear();
}
代码示例来源:origin: eclipse/hawkbit
protected void resetFields() {
tagName.setEnabled(true);
tagName.clear();
tagDesc.clear();
restoreComponentStyles();
colorPickerLayout.setSelectedColor(colorPickerLayout.getDefaultColor());
colorPickerLayout.getSelPreview().setColor(colorPickerLayout.getSelectedColor());
tagPreviewBtnClicked = false;
disableFields();
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
protected void resetFields() {
tagName.setEnabled(true);
tagName.clear();
tagDesc.clear();
restoreComponentStyles();
colorPickerLayout.setSelectedColor(colorPickerLayout.getDefaultColor());
colorPickerLayout.getSelPreview().setColor(colorPickerLayout.getSelectedColor());
tagPreviewBtnClicked = false;
disableFields();
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void resetFields() {
rolloutName.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
noOfGroups.clear();
noOfGroups.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
triggerThreshold.setValue(defaultRolloutGroupConditions.getSuccessConditionExp());
triggerThreshold.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
errorThreshold.setValue(defaultRolloutGroupConditions.getErrorConditionExp());
errorThreshold.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
description.clear();
description.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
}
代码示例来源:origin: eclipse/hawkbit
private void resetFields() {
rolloutName.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
noOfGroups.clear();
noOfGroups.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
triggerThreshold.setValue(defaultRolloutGroupConditions.getSuccessConditionExp());
triggerThreshold.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
errorThreshold.setValue(defaultRolloutGroupConditions.getErrorConditionExp());
errorThreshold.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
description.clear();
description.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
/**
* Reset the values in popup.
*/
public void resetComponents() {
dsNamecomboBox.clear();
descTextArea.clear();
targetBulkTokenTags.getTokenField().clear();
targetBulkTokenTags.populateContainer();
progressBar.setValue(0F);
progressBar.setVisible(false);
managementUIState.getTargetTableFilters().getBulkUpload().setProgressBarCurrentValue(0F);
targetsCountLabel.setVisible(false);
}
代码示例来源:origin: eclipse/hawkbit
/**
* Reset the values in popup.
*/
public void resetComponents() {
dsNamecomboBox.clear();
descTextArea.clear();
targetBulkTokenTags.getTokenField().clear();
targetBulkTokenTags.populateContainer();
progressBar.setValue(0F);
progressBar.setVisible(false);
managementUIState.getTargetTableFilters().getBulkUpload().setProgressBarCurrentValue(0F);
targetsCountLabel.setVisible(false);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
editRolloutEnabled = false;
rolloutName.clear();
targetFilterQuery.clear();
resetFields();
enableFields();
代码示例来源:origin: eclipse/hawkbit
editRolloutEnabled = false;
rolloutName.clear();
targetFilterQuery.clear();
resetFields();
enableFields();
内容来源于网络,如有侵权,请联系作者删除!