本文整理了Java中javafx.fxml.FXML
类的一些代码示例,展示了FXML
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FXML
类的具体详情如下:
包路径:javafx.fxml.FXML
类名称:FXML
暂无
代码示例来源: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/Icons.fxml", title = "Material Design Example")
public class IconsController {
@FXML
private JFXHamburger burger1;
@FXML
private JFXHamburger burger2;
@FXML
private JFXHamburger burger3;
@FXML
private JFXHamburger burger4;
@FXML
private JFXBadge badge1;
@FXML
private StackPane root;
private JFXSnackbar snackbar;
代码示例来源: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: pmd/pmd
@FXML
private SyntaxHighlightingCodeArea exportResultArea;
@FXML
private TextField descriptionField;
@FXML
private TextField messageField;
@FXML
private Slider prioritySlider;
@FXML
private ChoiceBox<Language> languageChoiceBox;
@FXML
private TextField nameField;
代码示例来源:origin: pmd/pmd
@FXML
private Button removeFileButton;
@FXML
private Button selectFilesButton;
@FXML
private ListView<File> fileListView;
@FXML
private Button moveItemUpButton;
@FXML
private Button moveItemDownButton;
@FXML
private Button setClassPathButton;
@FXML
private Button cancelButton;
代码示例来源:origin: speedment/speedment
@FXML public void close() {
if (destroyed.compareAndSet(false, true)) {
onClose.run();
remove(notification);
}
}
代码示例来源:origin: jfoenixadmin/JFoenix
@FXMLViewFlowContext
private ViewFlowContext context;
@FXML
private JFXButton centerButton;
@FXML
private JFXButton topButton;
@FXML
private JFXButton rightButton;
@FXML
private JFXButton bottomButton;
@FXML
private JFXButton leftButton;
@FXML
private JFXButton acceptButton;
@FXML
private JFXButton alertButton;
@FXML
private StackPane root;
@FXML
private JFXDialog dialog;
代码示例来源: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;
内容来源于网络,如有侵权,请联系作者删除!