• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AutoBinding类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.jdesktop.beansbinding.AutoBinding的典型用法代码示例。如果您正苦于以下问题:Java AutoBinding类的具体用法?Java AutoBinding怎么用?Java AutoBinding使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AutoBinding类属于org.jdesktop.beansbinding包,在下文中一共展示了AutoBinding类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
protected void initDataBindings() {
  BeanProperty<MovieSelectionModel, Integer> movieSelectionModelBeanProperty = BeanProperty.create("selectedMovie.dateAdded.date");
  BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
  AutoBinding<MovieSelectionModel, Integer, JLabel, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, movieSelectionModel,
      movieSelectionModelBeanProperty, lblDateAdded, jLabelBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<MovieSelectionModel, Integer> movieSelectionModelBeanProperty_2 = BeanProperty.create("selectedMovie.dateAdded.day");
  AutoBinding<MovieSelectionModel, Integer, JLabel, String> autoBinding_2 = Bindings.createAutoBinding(UpdateStrategy.READ, movieSelectionModel,
      movieSelectionModelBeanProperty_2, lblDateAdded, jLabelBeanProperty);
  autoBinding_2.bind();
  //
  BeanProperty<MovieSelectionModel, String> movieSelectionModelBeanProperty_3 = BeanProperty.create("selectedMovie.dateAddedAsString");
  AutoBinding<MovieSelectionModel, String, JLabel, String> autoBinding_3 = Bindings.createAutoBinding(UpdateStrategy.READ, movieSelectionModel,
      movieSelectionModelBeanProperty_3, lblDateAdded, jLabelBeanProperty);
  autoBinding_3.bind();
  //
  BeanProperty<MovieSelectionModel, String> movieSelectionModelBeanProperty_13 = BeanProperty.create("selectedMovie.path");
  AutoBinding<MovieSelectionModel, String, JLabel, String> autoBinding_19 = Bindings.createAutoBinding(UpdateStrategy.READ, movieSelectionModel,
      movieSelectionModelBeanProperty_13, lblMoviePath, jLabelBeanProperty);
  autoBinding_19.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:23,代码来源:MovieMediaFilesPanel.java


示例2: initBinding

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
private void initBinding() {
        org.jdesktop.beansbinding.Binding binding1 = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ, this, org.jdesktop.beansbinding.ELProperty.create("${formValidation.textFieldState}"), jTextFieldConstant, org.jdesktop.beansbinding.BeanProperty.create("enabled"), "textBinding");
        bindingGroup.addBinding(binding1);
        org.jdesktop.beansbinding.Binding binding2 = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ, this, org.jdesktop.beansbinding.ELProperty.create("${formValidation.comboBoxState}"), jComboBoxFunction, org.jdesktop.beansbinding.BeanProperty.create("enabled"), "comboBinding");
        bindingGroup.addBinding(binding2);
        org.jdesktop.beansbinding.Binding binding3 = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ, this, org.jdesktop.beansbinding.ELProperty.create("${formValidation.buttonState}"), okButton, org.jdesktop.beansbinding.BeanProperty.create("enabled"), "buttonBinding");
        bindingGroup.addBinding(binding3);
//        Binding binding1 = Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ_WRITE, jTextFieldConstant, org.jdesktop.beansbinding.BeanProperty.create("text"), this.caratteristicheWidgetInterConst, ELProperty.create("${costante}"));
        this.binding = Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ_WRITE, this.getCaratteristiche(), ELProperty.create("${costante}"), jTextFieldConstant, ELProperty.create("${text}"), "costantBinding");
//        bindingGroup.addBinding(binding1);

        ValidatoreCampoTesto validatoreCampoTesto = new it.unibas.spicygui.controllo.validators.ValidatoreCampoTesto();
        validatoreCampoTesto.setFormValidation(formValidation);
        this.binding.setValidator(validatoreCampoTesto);
        this.binding.bind();
    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:17,代码来源:ConstantDialog.java


示例3: creaWidget

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
private void creaWidget(Scene scene, Point point) {

        this.setLayout(LayoutFactory.createHorizontalFlowLayout());
        MyGradientLabelWidget gradientWidget = creaHeaderWidget(scene);
        ImageWidget imageWidget = new ImageWidget(scene, ImageUtilities.loadImage(Costanti.ICONA_CONSTANT));
        gradientWidget.addChild(imageWidget);
        LabelWidget constantWidget = new LabelWidget(scene, "");
        constantWidget.setVerticalAlignment(LabelWidget.VerticalAlignment.CENTER);
        this.addChild(gradientWidget);
        this.addChild(constantWidget);
        this.setPreferredLocation(new Point(point.x - 1, point.y - 1));
        settaBordoConstant();

        Binding bindingConst = Bindings.createAutoBinding(AutoBinding.UpdateStrategy.READ, caratteristicheWidget, ELProperty.create("${costante}"), constantWidget, BeanProperty.create("label"));
        bindingConst.bind();
        
        this.setOpaque(true);

    }
 
开发者ID:dbunibas,项目名称:spicy,代码行数:20,代码来源:ConstantWidget.java


示例4: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
protected void initDataBindings()
{
	BeanProperty<FindFociModel, List<String>> findFociModelBeanProperty = BeanProperty.create("imageList");
	JComboBoxBinding<String, FindFociModel, JComboBox> jComboBinding = SwingBindings.createJComboBoxBinding(
			UpdateStrategy.READ, model, findFociModelBeanProperty, comboImageList);
	jComboBinding.bind();
	//
	BeanProperty<FindFociModel, String> findFociModelBeanProperty_1 = BeanProperty.create("selectedImage");
	BeanProperty<JComboBox, Object> jComboBoxBeanProperty = BeanProperty.create("selectedItem");
	AutoBinding<FindFociModel, String, JComboBox, Object> autoBinding = Bindings.createAutoBinding(
			UpdateStrategy.READ_WRITE, model, findFociModelBeanProperty_1, comboImageList, jComboBoxBeanProperty);
	autoBinding.bind();
	//
	BeanProperty<JButton, Boolean> jButtonBeanProperty = BeanProperty.create("enabled");
	AutoBinding<FindFociModel, List<String>, JButton, Boolean> autoBinding_1 = Bindings.createAutoBinding(
			UpdateStrategy.READ, model, findFociModelBeanProperty, btnRun, jButtonBeanProperty);
	autoBinding_1.setConverter(new ValidImagesConverter());
	autoBinding_1.bind();
}
 
开发者ID:aherbert,项目名称:GDSC,代码行数:21,代码来源:OptimiserView.java


示例5: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
/**
 * Inits the data bindings.
 */
protected void initDataBindings() {
  JTableBinding<MovieSetChooserModel, List<MovieSetChooserModel>, JTable> jTableBinding = SwingBindings.createJTableBinding(UpdateStrategy.READ,
      movieSetsFound, tableMovieSets);
  //
  BeanProperty<MovieSetChooserModel, String> movieSetChooserModelBeanProperty = BeanProperty.create("name");
  jTableBinding.addColumnBinding(movieSetChooserModelBeanProperty).setEditable(false); // $NON-NLS-1$
  //
  jTableBinding.bind();
  //
  BeanProperty<JTable, List<MovieInSet>> jTableBeanProperty = BeanProperty.create("selectedElement.movies");
  JTableBinding<MovieInSet, JTable, JTable> jTableBinding_1 = SwingBindings.createJTableBinding(UpdateStrategy.READ, tableMovieSets,
      jTableBeanProperty, tableMovies);
  //
  BeanProperty<MovieInSet, String> movieInSetBeanProperty = BeanProperty.create("name");
  jTableBinding_1.addColumnBinding(movieInSetBeanProperty).setColumnName(BUNDLE.getString("tmm.movie")).setEditable(false); //$NON-NLS-1$
  //
  BeanProperty<MovieInSet, String> movieInSetBeanProperty_2 = BeanProperty.create("movie.title");
  jTableBinding_1.addColumnBinding(movieInSetBeanProperty_2).setColumnName(BUNDLE.getString("movieset.movie.matched")).setEditable(false); //$NON-NLS-1$
  //
  jTableBinding_1.bind();
  //
  BeanProperty<JTable, String> jTableBeanProperty_1 = BeanProperty.create("selectedElement.name");
  BeanProperty<JTextArea, String> jTextAreaBeanProperty = BeanProperty.create("text");
  AutoBinding<JTable, String, JTextArea, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, tableMovieSets, jTableBeanProperty_1,
      lblMovieSetName, jTextAreaBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<JTable, String> jTableBeanProperty_2 = BeanProperty.create("selectedElement.posterUrl");
  BeanProperty<ImageLabel, String> imageLabelBeanProperty = BeanProperty.create("imageUrl");
  AutoBinding<JTable, String, ImageLabel, String> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ, tableMovieSets,
      jTableBeanProperty_2, lblMovieSetPoster, imageLabelBeanProperty);
  autoBinding_1.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:37,代码来源:MovieSetChooserDialog.java


示例6: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
/**
 * Inits the data bindings.
 */
protected void initDataBindings() {
  BeanProperty<MovieList, Integer> movieListBeanProperty = BeanProperty.create("movieSetCount");
  BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
  AutoBinding<MovieList, Integer, JLabel, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, movieList, movieListBeanProperty,
      lblMovieSetCount, jLabelBeanProperty);
  autoBinding.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:11,代码来源:MovieSetPanel.java


示例7: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
protected void initDataBindings() {
  BeanProperty<MovieSetSelectionModel, String> movieSetSelectionModelBeanProperty = BeanProperty.create("selectedMovieSet.title");
  BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
  AutoBinding<MovieSetSelectionModel, String, JLabel, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
      movieSetSelectionModelBeanProperty, lblMovieSetName, jLabelBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<MovieSetSelectionModel, String> movieSetSelectionModelBeanProperty_4 = BeanProperty.create("selectedMovieSet.plot");
  BeanProperty<JTextPane, String> jTextPaneBeanProperty = BeanProperty.create("text");
  AutoBinding<MovieSetSelectionModel, String, JTextPane, String> autoBinding_3 = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
      movieSetSelectionModelBeanProperty_4, tpOverview, jTextPaneBeanProperty);
  autoBinding_3.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:14,代码来源:MovieSetInformationPanel.java


示例8: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
protected void initDataBindings() {
  BeanProperty<MovieSelectionModel, Boolean> movieSelectionModelBeanProperty = BeanProperty.create("selectedMovie.watched");
  BeanProperty<JCheckBox, Boolean> jCheckBoxBeanProperty = BeanProperty.create("selected");
  AutoBinding<MovieSelectionModel, Boolean, JCheckBox, Boolean> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, movieSelectionModel,
      movieSelectionModelBeanProperty, chckbxWatched, jCheckBoxBeanProperty);
  autoBinding.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:8,代码来源:MovieMediaInformationPanel.java


示例9: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
/**
 * Inits the data bindings.
 */
protected void initDataBindings() {
  JListBinding<ExportTemplate, List<ExportTemplate>, JList> jListBinding = SwingBindings.createJListBinding(UpdateStrategy.READ, templatesFound,
      list);
  //
  BeanProperty<ExportTemplate, String> exportTemplateBeanProperty = BeanProperty.create("name");
  jListBinding.setDetailBinding(exportTemplateBeanProperty);
  //
  jListBinding.bind();
  //
  BeanProperty<JList, String> jListBeanProperty = BeanProperty.create("selectedElement.name");
  BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
  AutoBinding<JList, String, JLabel, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, list, jListBeanProperty, lblTemplateName,
      jLabelBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<JList, String> jListBeanProperty_1 = BeanProperty.create("selectedElement.url");
  AutoBinding<JList, String, JLabel, String> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ, list, jListBeanProperty_1, lblUrl,
      jLabelBeanProperty);
  autoBinding_1.bind();
  //
  BeanProperty<JList, String> jListBeanProperty_2 = BeanProperty.create("selectedElement.description");
  BeanProperty<JTextPane, String> jTextPaneBeanProperty = BeanProperty.create("text");
  AutoBinding<JList, String, JTextPane, String> autoBinding_2 = Bindings.createAutoBinding(UpdateStrategy.READ, list, jListBeanProperty_2,
      tpDescription, jTextPaneBeanProperty);
  autoBinding_2.bind();
  //
  BeanProperty<JList, Boolean> jListBeanProperty_3 = BeanProperty.create("selectedElement.detail");
  BeanProperty<JCheckBox, Boolean> jCheckBoxBeanProperty = BeanProperty.create("selected");
  AutoBinding<JList, Boolean, JCheckBox, Boolean> autoBinding_3 = Bindings.createAutoBinding(UpdateStrategy.READ, list, jListBeanProperty_3,
      chckbxTemplateWithDetail, jCheckBoxBeanProperty);
  autoBinding_3.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:36,代码来源:MovieExporterDialog.java


示例10: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
/**
 * Inits the data bindings.
 */
protected void initDataBindings() {
  BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
  //
  BeanProperty<MovieList, Integer> movieListBeanProperty = BeanProperty.create("movieCount");
  AutoBinding<MovieList, Integer, JLabel, String> autoBinding_20 = Bindings.createAutoBinding(UpdateStrategy.READ, movieList, movieListBeanProperty,
      lblMovieCountTotal, jLabelBeanProperty);
  autoBinding_20.bind();
  //
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:13,代码来源:MoviePanel.java


示例11: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
protected void initDataBindings() {
  BeanProperty<MovieSettings, String> settingsBeanProperty_11 = BeanProperty.create("movieRenamerPathname");
  BeanProperty<JTextField, String> jTextFieldBeanProperty_3 = BeanProperty.create("text");
  AutoBinding<MovieSettings, String, JTextField, String> autoBinding_10 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_11, tfMoviePath, jTextFieldBeanProperty_3);
  autoBinding_10.bind();
  //
  BeanProperty<MovieSettings, String> settingsBeanProperty_12 = BeanProperty.create("movieRenamerFilename");
  BeanProperty<JTextField, String> jTextFieldBeanProperty_4 = BeanProperty.create("text");
  AutoBinding<MovieSettings, String, JTextField, String> autoBinding_11 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_12, tfMovieFilename, jTextFieldBeanProperty_4);
  autoBinding_11.bind();
  //
  BeanProperty<MovieSettings, Boolean> settingsBeanProperty = BeanProperty.create("movieRenamerSpaceSubstitution");
  BeanProperty<JCheckBox, Boolean> jCheckBoxBeanProperty = BeanProperty.create("selected");
  AutoBinding<MovieSettings, Boolean, JCheckBox, Boolean> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty, chckbxSpaceSubstitution, jCheckBoxBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<MovieSettings, Boolean> settingsBeanProperty_1 = BeanProperty.create("movieRenamerNfoCleanup");
  AutoBinding<MovieSettings, Boolean, JCheckBox, Boolean> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_1, chckbxRemoveOtherNfos, jCheckBoxBeanProperty);
  autoBinding_1.bind();
  //
  BeanProperty<MovieSettings, Boolean> settingsBeanProperty_5 = BeanProperty.create("movieRenamerCreateMoviesetForSingleMovie");
  AutoBinding<MovieSettings, Boolean, JCheckBox, Boolean> autoBinding_4 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_5, chckbxMoviesetSingleMovie, jCheckBoxBeanProperty);
  autoBinding_4.bind();
  //
  BeanProperty<MovieSettings, Boolean> settingsBeanProperty_7 = BeanProperty.create("asciiReplacement");
  AutoBinding<MovieSettings, Boolean, JCheckBox, Boolean> autoBinding_5 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_7, chckbxAsciiReplacement, jCheckBoxBeanProperty);
  autoBinding_5.bind();
  //
  BeanProperty<MovieSettings, LanguageStyle> movieSettingsBeanProperty = BeanProperty.create("movieRenamerLanguageStyle");
  BeanProperty<JComboBox, Object> jComboBoxBeanProperty = BeanProperty.create("selectedItem");
  AutoBinding<MovieSettings, LanguageStyle, JComboBox, Object> autoBinding_2 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      movieSettingsBeanProperty, cbSubtitleLanguage, jComboBoxBeanProperty);
  autoBinding_2.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:41,代码来源:MovieRenamerSettingsPanel.java


示例12: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
protected void initDataBindings() {
  JTableBinding<SubtitleScraper, List<SubtitleScraper>, JTable> jTableBinding = SwingBindings.createJTableBinding(UpdateStrategy.READ_WRITE,
      scrapers, tableScraper);
  //
  BeanProperty<SubtitleScraper, Boolean> subtitleScraperBeanProperty = BeanProperty.create("active");
  jTableBinding.addColumnBinding(subtitleScraperBeanProperty).setColumnName("Active").setColumnClass(Boolean.class);
  //
  BeanProperty<SubtitleScraper, Icon> subtitleScraperBeanProperty_1 = BeanProperty.create("scraperLogo");
  jTableBinding.addColumnBinding(subtitleScraperBeanProperty_1).setColumnName("Logo").setEditable(false).setColumnClass(ImageIcon.class);
  //
  BeanProperty<SubtitleScraper, String> subtitleScraperBeanProperty_2 = BeanProperty.create("scraperName");
  jTableBinding.addColumnBinding(subtitleScraperBeanProperty_2).setColumnName("Name").setEditable(false).setColumnClass(String.class);
  //
  jTableBinding.bind();
  //
  BeanProperty<JTable, String> jTableBeanProperty = BeanProperty.create("selectedElement.scraperDescription");
  BeanProperty<JTextPane, String> jTextPaneBeanProperty = BeanProperty.create("text");
  AutoBinding<JTable, String, JTextPane, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, tableScraper, jTableBeanProperty,
      tpScraperDescription, jTextPaneBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<MovieSettings, MediaLanguages> movieSettingsBeanProperty = BeanProperty.create("subtitleScraperLanguage");
  BeanProperty<JComboBox, Object> jComboBoxBeanProperty = BeanProperty.create("selectedItem");
  AutoBinding<MovieSettings, MediaLanguages, JComboBox, Object> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      movieSettingsBeanProperty, cbScraperLanguage, jComboBoxBeanProperty);
  autoBinding_1.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:28,代码来源:MovieSubtitleSettingsPanel.java


示例13: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
protected void initDataBindings() {
  BeanProperty<MovieSelectionModel, String> movieSelectionModelBeanProperty = BeanProperty.create("selectedMovie.director");
  BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
  AutoBinding<MovieSelectionModel, String, JLabel, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
      movieSelectionModelBeanProperty, lblDirector, jLabelBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<MovieSelectionModel, String> movieSelectionModelBeanProperty_1 = BeanProperty.create("selectedMovie.writer");
  AutoBinding<MovieSelectionModel, String, JLabel, String> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
      movieSelectionModelBeanProperty_1, lblWriter, jLabelBeanProperty);
  autoBinding_1.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:13,代码来源:MovieCrewPanel.java


示例14: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
protected void initDataBindings() {
  BeanProperty<MovieSettings, MediaLanguages> settingsBeanProperty_8 = BeanProperty.create("scraperLanguage");
  BeanProperty<JComboBox, Object> jComboBoxBeanProperty = BeanProperty.create("selectedItem");
  AutoBinding<MovieSettings, MediaLanguages, JComboBox, Object> autoBinding_7 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_8, cbScraperLanguage, jComboBoxBeanProperty);
  autoBinding_7.bind();
  //
  BeanProperty<MovieSettings, CountryCode> settingsBeanProperty_9 = BeanProperty.create("certificationCountry");
  AutoBinding<MovieSettings, CountryCode, JComboBox, Object> autoBinding_8 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_9, cbCertificationCountry, jComboBoxBeanProperty);
  autoBinding_8.bind();
  //
  BeanProperty<JCheckBox, Boolean> jCheckBoxBeanProperty = BeanProperty.create("selected");
  BeanProperty<MovieSettings, Boolean> settingsBeanProperty_1 = BeanProperty.create("scraperFallback");
  AutoBinding<MovieSettings, Boolean, JCheckBox, Boolean> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_1, chckbxScraperFallback, jCheckBoxBeanProperty);
  autoBinding_1.bind();
  //
  JTableBinding<MovieScraper, List<MovieScraper>, JTable> jTableBinding = SwingBindings.createJTableBinding(UpdateStrategy.READ_WRITE, scrapers,
      tableScraper);
  //
  BeanProperty<MovieScraper, Boolean> movieScraperBeanProperty = BeanProperty.create("defaultScraper");
  jTableBinding.addColumnBinding(movieScraperBeanProperty).setColumnName("Default").setColumnClass(Boolean.class);
  //
  BeanProperty<MovieScraper, Icon> movieScraperBeanProperty_1 = BeanProperty.create("scraperLogo");
  jTableBinding.addColumnBinding(movieScraperBeanProperty_1).setColumnName("Logo").setColumnClass(Icon.class);
  //
  BeanProperty<MovieScraper, String> movieScraperBeanProperty_2 = BeanProperty.create("scraperName");
  jTableBinding.addColumnBinding(movieScraperBeanProperty_2).setColumnName("Name").setEditable(false);
  //
  jTableBinding.bind();
  //
  BeanProperty<JTable, String> jTableBeanProperty = BeanProperty.create("selectedElement.scraperDescription");
  BeanProperty<JTextPane, String> jTextPaneBeanProperty = BeanProperty.create("text");
  AutoBinding<JTable, String, JTextPane, String> autoBinding_12 = Bindings.createAutoBinding(UpdateStrategy.READ, tableScraper, jTableBeanProperty,
      tpScraperDescription, jTextPaneBeanProperty);
  autoBinding_12.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:40,代码来源:MovieScraperPanel.java


示例15: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
protected void initDataBindings() {
  BeanProperty<MovieSettings, MovieConnectors> settingsBeanProperty_10 = BeanProperty.create("movieConnector");
  BeanProperty<JComboBox<MovieConnectors>, Object> jComboBoxBeanProperty = BeanProperty.create("selectedItem");
  AutoBinding<MovieSettings, MovieConnectors, JComboBox<MovieConnectors>, Object> autoBinding_9 = Bindings
      .createAutoBinding(UpdateStrategy.READ_WRITE, settings, settingsBeanProperty_10, cbNfoFormat, jComboBoxBeanProperty);
  autoBinding_9.bind();
  //
  BeanProperty<MovieSettings, List<String>> settingsBeanProperty_4 = BeanProperty.create("movieDataSource");
  JListBinding<String, MovieSettings, JList> jListBinding_1 = SwingBindings.createJListBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_4, listDataSources);
  jListBinding_1.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:13,代码来源:MovieSourcePanel.java


示例16: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
protected void initDataBindings() {
  BeanProperty<TvShowSettings, MediaLanguages> settingsBeanProperty_8 = BeanProperty.create("scraperLanguage");
  BeanProperty<JComboBox, Object> jComboBoxBeanProperty = BeanProperty.create("selectedItem");
  AutoBinding<TvShowSettings, MediaLanguages, JComboBox, Object> autoBinding_7 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_8, cbScraperLanguage, jComboBoxBeanProperty);
  autoBinding_7.bind();
  //
  BeanProperty<TvShowSettings, CountryCode> settingsBeanProperty_9 = BeanProperty.create("certificationCountry");
  AutoBinding<TvShowSettings, CountryCode, JComboBox, Object> autoBinding_8 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_9, cbCertificationCountry, jComboBoxBeanProperty);
  autoBinding_8.bind();
  //
  JTableBinding<TvShowScraper, List<TvShowScraper>, JTable> jTableBinding = SwingBindings.createJTableBinding(UpdateStrategy.READ_WRITE, scrapers,
      tableScraper);
  //
  BeanProperty<TvShowScraper, Boolean> tvShowScraperBeanProperty = BeanProperty.create("defaultScraper");
  jTableBinding.addColumnBinding(tvShowScraperBeanProperty).setColumnName("Default").setColumnClass(Boolean.class);
  //
  BeanProperty<TvShowScraper, Icon> tvShowScraperBeanProperty_1 = BeanProperty.create("scraperLogo");
  jTableBinding.addColumnBinding(tvShowScraperBeanProperty_1).setColumnName("Logo").setColumnClass(Icon.class);
  //
  BeanProperty<TvShowScraper, String> tvShowScraperBeanProperty_2 = BeanProperty.create("scraperName");
  jTableBinding.addColumnBinding(tvShowScraperBeanProperty_2).setColumnName("Name").setEditable(false);
  //
  jTableBinding.bind();
  //
  BeanProperty<JTable, String> jTableBeanProperty = BeanProperty.create("selectedElement.scraperDescription");
  BeanProperty<JTextPane, String> jTextPaneBeanProperty = BeanProperty.create("text");
  AutoBinding<JTable, String, JTextPane, String> autoBinding_3 = Bindings.createAutoBinding(UpdateStrategy.READ, tableScraper, jTableBeanProperty,
      tpScraperDescription, jTextPaneBeanProperty);
  autoBinding_3.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:34,代码来源:TvShowScraperPanel.java


示例17: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
protected void initDataBindings() {
  BeanProperty<JCheckBox, Boolean> jCheckBoxBeanProperty = BeanProperty.create("selected");
  BeanProperty<TvShowSettings, Boolean> settingsBeanProperty_1 = BeanProperty.create("dvdOrder");
  AutoBinding<TvShowSettings, Boolean, JCheckBox, Boolean> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_1, cbDvdOrder, jCheckBoxBeanProperty);
  autoBinding_1.bind();
  //
  BeanProperty<TvShowSettings, List<String>> settingsBeanProperty_2 = BeanProperty.create("tvShowDataSource");
  JListBinding<String, TvShowSettings, JList> jListBinding = SwingBindings.createJListBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_2, listDataSources);
  jListBinding.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:14,代码来源:TvShowSourcePanel.java


示例18: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
/**
 * Inits the data bindings.
 */
protected void initDataBindings() {
  BeanProperty<TvShowEpisodeSelectionModel, String> tvShowEpisodeSelectionModelBeanProperty = BeanProperty.create("selectedTvShowEpisode.director");
  BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
  AutoBinding<TvShowEpisodeSelectionModel, String, JLabel, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
      tvShowEpisodeSelectionModelBeanProperty, lblDirector, jLabelBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<TvShowEpisodeSelectionModel, String> tvShowEpisodeSelectionModelBeanProperty_1 = BeanProperty.create("selectedTvShowEpisode.writer");
  AutoBinding<TvShowEpisodeSelectionModel, String, JLabel, String> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
      tvShowEpisodeSelectionModelBeanProperty_1, lblWriter, jLabelBeanProperty);
  autoBinding_1.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:16,代码来源:TvShowEpisodeCastPanel.java


示例19: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
protected void initDataBindings() {
  BeanProperty<TvShowSeasonSelectionModel, String> tvShowSeasonSelectionModelBeanProperty = BeanProperty
      .create("selectedTvShowSeason.tvShow.title");
  BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
  AutoBinding<TvShowSeasonSelectionModel, String, JLabel, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ,
      tvShowSeasonSelectionModel, tvShowSeasonSelectionModelBeanProperty, lblTvshowTitle, jLabelBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<TvShowSeasonSelectionModel, Integer> tvShowSeasonSelectionModelBeanProperty_1 = BeanProperty.create("selectedTvShowSeason.season");
  AutoBinding<TvShowSeasonSelectionModel, Integer, JLabel, String> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ,
      tvShowSeasonSelectionModel, tvShowSeasonSelectionModelBeanProperty_1, lblSeason, jLabelBeanProperty);
  autoBinding_1.bind();

}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:15,代码来源:TvShowSeasonInformationPanel.java


示例20: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入依赖的package包/类
protected void initDataBindings() {
  BeanProperty<TvShowSelectionModel, String> tvShowSelectionModelBeanProperty = BeanProperty.create("selectedTvShow.title");
  BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
  AutoBinding<TvShowSelectionModel, String, JLabel, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, tvShowSelectionModel,
      tvShowSelectionModelBeanProperty, lblTvShowName, jLabelBeanProperty);
  autoBinding.bind();
  //
  BeanProperty<TvShowSelectionModel, String> tvShowSelectionModelBeanProperty_1 = BeanProperty.create("selectedTvShow.plot");
  BeanProperty<JTextPane, String> jTextPaneBeanProperty = BeanProperty.create("text");
  AutoBinding<TvShowSelectionModel, String, JTextPane, String> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ, tvShowSelectionModel,
      tvShowSelectionModelBeanProperty_1, tpOverview, jTextPaneBeanProperty);
  autoBinding_1.bind();
  //
  BeanProperty<TvShowSelectionModel, Float> tvShowSelectionModelBeanProperty_2 = BeanProperty.create("selectedTvShow.rating");
  BeanProperty<StarRater, Float> starRaterBeanProperty = BeanProperty.create("rating");
  AutoBinding<TvShowSelectionModel, Float, StarRater, Float> autoBinding_2 = Bindings.createAutoBinding(UpdateStrategy.READ, tvShowSelectionModel,
      tvShowSelectionModelBeanProperty_2, panelRatingStars, starRaterBeanProperty);
  autoBinding_2.bind();
  //
  AutoBinding<TvShowSelectionModel, Float, JLabel, String> autoBinding_3 = Bindings.createAutoBinding(UpdateStrategy.READ, tvShowSelectionModel,
      tvShowSelectionModelBeanProperty_2, lblRating, jLabelBeanProperty);
  autoBinding_3.bind();
  //
  BeanProperty<TvShowSelectionModel, Certification> tvShowSelectionModelBeanProperty_8 = BeanProperty.create("selectedTvShow.certification");
  BeanProperty<JLabel, Icon> jLabelBeanProperty_2 = BeanProperty.create("icon");
  AutoBinding<TvShowSelectionModel, Certification, JLabel, Icon> autoBinding_9 = Bindings.createAutoBinding(UpdateStrategy.READ,
      tvShowSelectionModel, tvShowSelectionModelBeanProperty_8, lblCertificationImage, jLabelBeanProperty_2);
  autoBinding_9.setConverter(new CertificationImageConverter());
  autoBinding_9.bind();
  //
  BeanProperty<TvShowSelectionModel, Integer> tvShowSelectionModelBeanProperty_3 = BeanProperty.create("selectedTvShow.votes");
  AutoBinding<TvShowSelectionModel, Integer, JLabel, String> autoBinding_4 = Bindings.createAutoBinding(UpdateStrategy.READ, tvShowSelectionModel,
      tvShowSelectionModelBeanProperty_3, lblVoteCount, jLabelBeanProperty);
  autoBinding_4.setConverter(new VoteCountConverter());
  autoBinding_4.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:37,代码来源:TvShowInformationPanel.java



注:本文中的org.jdesktop.beansbinding.AutoBinding类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java BoundingBox类代码示例发布时间:2022-05-22
下一篇:
Java XMLDoc类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap