本文整理了Java中javafx.fxml.FXML.<init>()
方法的一些代码示例,展示了FXML.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FXML.<init>()
方法的具体详情如下:
包路径:javafx.fxml.FXML
类名称:FXML
方法名:<init>
暂无
代码示例来源:origin: jfoenixadmin/JFoenix
public static final class InputController {
@FXML
private JFXListView<?> toolbarPopupList;
// close application
@FXML
private void submit() {
if (toolbarPopupList.getSelectionModel().getSelectedIndex() == 1) {
Platform.exit();
}
}
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/Pickers.fxml", title = "Material Design Example")
public class PickersController {
@FXML
private StackPane root;
@FXML
private JFXDatePicker dateOverlay;
@FXML
private JFXTimePicker timeOverlay;
@PostConstruct
public void init() {
dateOverlay.setDialogParent(root);
timeOverlay.setDialogParent(root);
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/ListView.fxml", title = "Material Design Example")
public class ListViewController {
@FXML
private JFXListView<?> list1;
@FXML
private JFXListView<?> list2;
@FXML
private JFXListView<?> subList;
@FXML
private JFXButton button3D;
@FXML
private JFXButton collapse;
@FXML
private JFXButton expand;
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/Popup.fxml", title = "Material Design Example")
public final class PopupController {
@FXML
private StackPane root;
@FXML
private JFXRippler rippler1;
@FXML
private JFXRippler rippler2;
@FXML
private JFXRippler rippler3;
@FXML
private JFXRippler rippler4;
@FXML
private JFXHamburger burger1;
@FXML
private JFXHamburger burger2;
@FXML
private JFXHamburger burger3;
@FXML
private JFXHamburger burger4;
@FXML
private JFXHamburger burger5;
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/NodesList.fxml", title = "Material Design Example")
public class NodesListController {
@FXML
JFXNodesList nodesList;
@FXML
JFXButton newButton;
@FXML
JFXButton fileButton;
@FXML
JFXButton commentButton;
@FXML
JFXButton filterButton;
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/Highlighter.fxml", title = "Material Design Example")
public class HighlighterController {
@FXML
private JFXTextField searchField;
@FXML
private Pane content;
private JFXHighlighter highlighter = new JFXHighlighter();
/**
* init fxml when loaded.
*/
@PostConstruct
public void init() {
JFXDepthManager.setDepth(content, 1);
JFXNodeUtils.addDelayedEventHandler(searchField, Duration.millis(400),
KeyEvent.KEY_PRESSED, event -> highlighter.highlight(content, searchField.getText()));
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/ScrollPane.fxml", title = "Material Design Example")
public class ScrollPaneController {
@FXML
private JFXListView<String> contentList;
@FXML
private JFXButton backButton;
@FXML
private JFXScrollPane scroll;
代码示例来源:origin: jfoenixadmin/JFoenix
@FXML
public void onNewComment() {
System.out.println("New Comment");
//Close list
nodesList.animateList(false);
}
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/TextField.fxml", title = "Material Design Example")
public class TextFieldController {
@FXML
private JFXTextField validatedText;
@FXML
private JFXPasswordField validatedPassowrd;
@FXML
private JFXTextArea jfxTextArea;
代码示例来源:origin: jfoenixadmin/JFoenix
@FXML
public void onNewFile() {
System.out.println("New File");
//Close list
nodesList.animateList(false);
}
代码示例来源:origin: jfoenixadmin/JFoenix
@FXML
public void onNewFilter() {
System.out.println("New Filter");
//Close list
nodesList.animateList(false);
}
代码示例来源:origin: speedment/speedment
/**
*
* @author Emil Forslund
*/
public final class AboutController implements Initializable {
private @Inject InfoComponent infoComponent;
private @Inject Brand brand;
private @FXML ImageView titleImage;
private @FXML Button close;
private @FXML Label version;
private @FXML Label license;
private @FXML Label external;
@Override
public void initialize(URL location, ResourceBundle resources) {
brand.logoLarge().map(Image::new).ifPresent(titleImage::setImage);
license.setText(license.getText().replace("{title}", infoComponent.getTitle()));
version.setText(infoComponent.getImplementationVersion());
external.setText(infoComponent.getLicenseName());
close.setOnAction(newCloseHandler());
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/Spinner.fxml", title = "Material Design Example")
public class SpinnerController {
@FXML
private JFXSpinner blueSpinner;
@FXML
private JFXSpinner greenSpinner;
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/ProgressBar.fxml", title = "Material Design Example")
public class ProgressBarController {
@FXML
private JFXProgressBar progress1;
@FXML
private JFXProgressBar progress2;
代码示例来源:origin: speedment/speedment
@FXML public void close() {
if (destroyed.compareAndSet(false, true)) {
onClose.run();
remove(notification);
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
@ViewController(value = "/fxml/ui/Combobox.fxml", title = "Material Design Example")
public class ComboBoxController {
@FXML
private JFXComboBox<Label> jfxComboBox;
@FXML
private JFXComboBox<Label> jfxEditableComboBox;
代码示例来源:origin: speedment/speedment
/**
*
* @author Emil Forslund
*/
public final class MenubarController implements Initializable {
private @Inject MenuBarComponent menuBarComponent;
public @FXML MenuBar menuBar;
@Override
public void initialize(URL location, ResourceBundle resources) {
menuBarComponent.populate(menuBar);
}
}
代码示例来源:origin: speedment/speedment
/**
*
* @author Emil Forslund
*/
public final class ToolbarController implements Initializable {
private @Inject ToolbarComponent toolbar;
private @FXML HBox hBox;
@Override
public void initialize(URL location, ResourceBundle resources) {
toolbar.populate(hBox);
}
}
代码示例来源:origin: speedment/speedment
/**
*
* @author Emil Forslund
*/
public final class OutputController implements Initializable {
private @Inject UserInterfaceComponent ui;
private @FXML VBox log;
@Override
public void initialize(URL location, ResourceBundle resources) {
Bindings.bindContent(
log.getChildren(),
ui.outputMessages()
);
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
@FXML
private void submit() {
if (toolbarPopupList.getSelectionModel().getSelectedIndex() == 1) {
Platform.exit();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!