本文整理了Java中javafx.scene.control.Tab.setText()
方法的一些代码示例,展示了Tab.setText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tab.setText()
方法的具体详情如下:
包路径:javafx.scene.control.Tab
类名称:Tab
方法名:setText
暂无
代码示例来源:origin: pmd/pmd
private void notifyMetricsAvailable(long numMetrics) {
metricResultsTab.setText("Metrics\t(" + (numMetrics == 0 ? "none" : numMetrics) + ")");
metricsTitledPane.setTitle("Metrics\t(" + (numMetrics == 0 ? "none" : numMetrics) + " available)");
metricResultsTab.setDisable(numMetrics == 0);
}
代码示例来源:origin: jfoenixadmin/JFoenix
tab.setText(msg);
tab.setContent(new Label(TAB_0));
tabPane.setPrefSize(300, 200);
Tab tab1 = new Tab();
tab1.setText(TAB_01);
tab1.setContent(new Label(TAB_01));
Tab temp = new Tab();
int count = tabPane.getTabs().size();
temp.setText(msg + count);
temp.setContent(new Label(TAB_0 + count));
tabPane.getTabs().add(temp);
代码示例来源:origin: org.codehaus.griffon/griffon-javafx
private static void updateLabeled(@Nonnull final Tab node, @Nonnull final GriffonApplication application) {
runInsideUIThread(() -> {
String key = getI18nKey(node);
String args = getI18nArgs(node);
String defaultValue = getI18nDefaultValue(node);
Object[] argArray = isBlank(args) ? EMPTY_OBJECT_ARRAY : args.split(",");
if (isBlank(defaultValue)) {
node.setText(application.getMessageSource().getMessage(key, argArray, application.getLocale()));
} else {
node.setText(application.getMessageSource().getMessage(key, argArray, application.getLocale(), defaultValue));
}
});
}
代码示例来源:origin: com.bitplan.gui/com.bitplan.javafx
tab.setTooltip(new Tooltip(title));
if (tab.getGraphic() == null) {
tab.setText(title);
代码示例来源:origin: com.aquafx-project/aquafx
tabD.setText("tab 1");
tabE.setText("tab 2");
tabPane.getTabs().add(tabE);
tabF.setText("tab 3");
tabPane.getTabs().add(tabF);
代码示例来源:origin: PhoenicisOrg/phoenicis
this.installedApplicationsTab.setText(tr("My applications"));
this.installedApplicationsTab.setContent(this.availableShortcuts);
代码示例来源:origin: com.aquafx-project/aquafx
tabD.setText("Buttons");
VBox buttonBox = new VBox();
buttonBox.setSpacing(10);
tabE.setText("RadioButtons");
VBox radioButtonBox = new VBox();
radioButtonBox.setSpacing(10);
tabF.setText("CheckBoxes");
VBox checkBoxBox = new VBox();
checkBoxBox.setSpacing(10);
tabG.setText("Toggles & Pills");
VBox togglesBox = new VBox();
togglesBox.setSpacing(10);
tabH.setText("Progress");
final Float[] values = new Float[] { -1.0f, 0f, 0.6f, 1.0f };
final ProgressBar[] pbs = new ProgressBar[values.length];
tabI.setText("Disabled Tab");
tabI.setDisable(true);
TabPane innerTabPane = new TabPane();
tabTexts.setText("Texts");
VBox txts = new VBox();
HBox textfieldBox1 = new HBox();
tabChoiceBox.setText("Combo- etc");
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private Tab createRadialTab() {
Tab t = new Tab();
t.setText(Messages.getString("PaintEditor.RadialGradient")); //$NON-NLS-1$
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private Tab createLinearTab() {
Tab t = new Tab();
t.setText(Messages.getString("PaintEditor.LinearGradient")); //$NON-NLS-1$
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private Tab createRadialTab() {
Tab t = new Tab();
t.setText(Messages.getString("PaintEditor.RadialGradient")); //$NON-NLS-1$
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private Tab createLinearTab() {
Tab t = new Tab();
t.setText(Messages.getString("PaintEditor.LinearGradient")); //$NON-NLS-1$
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private Tab createColorTab() {
Tab t = new Tab();
t.setText(Messages.getString("PaintEditor.Color")); //$NON-NLS-1$
GridLayoutPane p = new GridLayoutPane();
p.setNumColumns(3);
Rectangle solidPreview = new Rectangle(PREVIEW_SIZE, PREVIEW_SIZE);
this.solidPreview = solidPreview;
GridLayoutPane dataPane = new GridLayoutPane();
dataPane.setNumColumns(2);
ColorPicker picker = new ColorPicker();
picker.valueProperty().addListener((o) -> {
solidPreview.setFill(picker.getValue());
this.paint.set(picker.getValue());
});
dataPane.getChildren().addAll(new Label(Messages.getString("PaintEditor.Color")), picker); //$NON-NLS-1$
Color color = (Color) this.paint.get();
if (color instanceof Color) {
picker.setValue(color);
}
TitledPane dtp = new TitledPane(Messages.getString("PaintEditor.Data"), dataPane); //$NON-NLS-1$
dtp.setCollapsible(false);
TitledPane pane = new TitledPane(Messages.getString("PaintEditor.Preview"), solidPreview); //$NON-NLS-1$
pane.setCollapsible(false);
GridLayoutPane.setConstraint(dtp, new GridData(Alignment.FILL, Alignment.FILL, true, true));
GridLayoutPane.setConstraint(pane, new GridData(Alignment.BEGINNING, Alignment.BEGINNING, false, false));
p.getChildren().addAll(pane, dtp);
t.setContent(p);
return t;
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private Tab createColorTab() {
Tab t = new Tab();
t.setText(Messages.getString("PaintEditor.Color")); //$NON-NLS-1$
GridLayoutPane p = new GridLayoutPane();
p.setNumColumns(3);
Rectangle solidPreview = new Rectangle(PREVIEW_SIZE, PREVIEW_SIZE);
this.solidPreview = solidPreview;
GridLayoutPane dataPane = new GridLayoutPane();
dataPane.setNumColumns(2);
ColorPicker picker = new ColorPicker();
picker.valueProperty().addListener((o) -> {
solidPreview.setFill(picker.getValue());
this.paint.set(picker.getValue());
});
dataPane.getChildren().addAll(new Label(Messages.getString("PaintEditor.Color")), picker); //$NON-NLS-1$
Color color = (Color) this.paint.get();
if (color instanceof Color) {
picker.setValue(color);
}
TitledPane dtp = new TitledPane(Messages.getString("PaintEditor.Data"), dataPane); //$NON-NLS-1$
dtp.setCollapsible(false);
TitledPane pane = new TitledPane(Messages.getString("PaintEditor.Preview"), solidPreview); //$NON-NLS-1$
pane.setCollapsible(false);
GridLayoutPane.setConstraint(dtp, new GridData(Alignment.FILL, Alignment.FILL, true, true));
GridLayoutPane.setConstraint(pane, new GridData(Alignment.BEGINNING, Alignment.BEGINNING, false, false));
p.getChildren().addAll(pane, dtp);
t.setContent(p);
return t;
}
代码示例来源:origin: com.aquafx-project/aquafx
contentTabPane.setPadding(new Insets(25, 15, 15, 15));
Tab tabDate = new Tab();
tabDate.setText("Datum & Uhrzeit");
contentTabPane.getTabs().add(tabDate);
Tab tabTimezone = new Tab();
tabTimezone.setText("Zeitzone");
contentTabPane.getTabs().add(tabTimezone);
Tab tabClock = new Tab();
tabClock.setText("Uhr");
内容来源于网络,如有侵权,请联系作者删除!