本文整理汇总了Java中com.airhacks.afterburner.views.FXMLView类的典型用法代码示例。如果您正苦于以下问题:Java FXMLView类的具体用法?Java FXMLView怎么用?Java FXMLView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FXMLView类属于com.airhacks.afterburner.views包,在下文中一共展示了FXMLView类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initialize
import com.airhacks.afterburner.views.FXMLView; //导入依赖的package包/类
@Override
public void initialize(URL location, ResourceBundle resources) {
ObservableList<Node> nodes = main.getChildren();
Map<String, Hotkey> keyMap = keyService.getKeyMap();
FXMLView view;
KeyPresenter presenter;
Hotkey h;
SortedSet<String> sorted = new TreeSet<String>(keyMap.keySet());
for(String id : sorted){
view = new KeyView();
presenter = (KeyPresenter)view.getPresenter();
h = keyMap.get(id);
presenter.id.setText(id);
presenter.key.textProperty().bindBidirectional(h.getKeyProperty());
presenter.alt.selectedProperty().bindBidirectional(h.getUseAltProperty());
presenter.ctrl.selectedProperty().bindBidirectional(h.getUseCtrlProperty());
presenter.shift.selectedProperty().bindBidirectional(h.getUseShiftProperty());
nodes.add(view.getView());
}
}
开发者ID:RiceKab,项目名称:tos-keybinds,代码行数:23,代码来源:MainPresenter.java
示例2: start
import com.airhacks.afterburner.views.FXMLView; //导入依赖的package包/类
@Override
public void start(Stage stage) throws Exception {
KeyService service = new KeyService();
// Have to read a default file to populate the main view
service.readKeybindings(new File(System.getProperty("user.dir") + "\\hotkey_default.xml"));
Map<Object, Object> injectorSource = new HashMap<Object, Object>();
injectorSource.put("keyService", service);
Injector.setConfigurationSource(injectorSource::get);
FXMLView view = new MainView();
stage.setTitle("Tree of Savior key binder");
stage.setScene(new Scene(view.getView()));
stage.show();
// Open dialog to select xml file
MainPresenter presenter = (MainPresenter)view.getPresenter();
presenter.menubarController.openHotkeyFile();
}
开发者ID:RiceKab,项目名称:tos-keybinds,代码行数:20,代码来源:Launch.java
示例3: load
import com.airhacks.afterburner.views.FXMLView; //导入依赖的package包/类
public void load(FXMLView view) {
contentPane.getChildren().clear();
contentPane.getChildren().add(view.getView());
}
开发者ID:Zavael,项目名称:beehive-tracker,代码行数:5,代码来源:Navigator.java
注:本文中的com.airhacks.afterburner.views.FXMLView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论