当前位置: 首页>>代码示例>>Java>>正文


Java AutoBinding.bind方法代码示例

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


在下文中一共展示了AutoBinding.bind方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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

示例3: 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

示例4: 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

示例5: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入方法依赖的package包/类
protected void initDataBindings() {
  BeanProperty<TvShowSettings, Boolean> settingsBeanProperty_6 = BeanProperty.create("asciiReplacement");
  BeanProperty<JCheckBox, Boolean> jCheckBoxBeanProperty = BeanProperty.create("selected");
  AutoBinding<TvShowSettings, Boolean, JCheckBox, Boolean> autoBinding_5 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_6, chckbxAsciiReplacement, jCheckBoxBeanProperty);
  autoBinding_5.bind();
  //
  BeanProperty<TvShowSettings, Boolean> tvShowSettingsBeanProperty = BeanProperty.create("renamerSpaceSubstitution");
  AutoBinding<TvShowSettings, Boolean, JCheckBox, Boolean> autoBinding_4 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      tvShowSettingsBeanProperty, chckbxSpaceReplacement, jCheckBoxBeanProperty);
  autoBinding_4.bind();
  //
  BeanProperty<TvShowSettings, String> tvShowSettingsBeanProperty_1 = BeanProperty.create("renamerTvShowFoldername");
  BeanProperty<JTextField, String> jTextFieldBeanProperty_1 = BeanProperty.create("text");
  AutoBinding<TvShowSettings, String, JTextField, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      tvShowSettingsBeanProperty_1, tfTvShowFolder, jTextFieldBeanProperty_1);
  autoBinding.bind();
  //
  BeanProperty<TvShowSettings, String> tvShowSettingsBeanProperty_2 = BeanProperty.create("renamerFilename");
  BeanProperty<JTextField, String> jTextFieldBeanProperty_2 = BeanProperty.create("text");
  AutoBinding<TvShowSettings, String, JTextField, String> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      tvShowSettingsBeanProperty_2, tfEpisodeFilename, jTextFieldBeanProperty_2);
  autoBinding_1.bind();
  //
  BeanProperty<TvShowSettings, String> tvShowSettingsBeanProperty_3 = BeanProperty.create("renamerSeasonFoldername");
  BeanProperty<JTextField, String> jTextFieldBeanProperty = BeanProperty.create("text");
  AutoBinding<TvShowSettings, String, JTextField, String> autoBinding_2 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      tvShowSettingsBeanProperty_3, tfSeasonFoldername, jTextFieldBeanProperty);
  autoBinding_2.bind();
  //
  BeanProperty<TvShowSettings, LanguageStyle> tvShowSettingsBeanProperty_4 = BeanProperty.create("tvShowRenamerLanguageStyle");
  BeanProperty<JComboBox, Object> jComboBoxBeanProperty = BeanProperty.create("selectedItem");
  AutoBinding<TvShowSettings, LanguageStyle, JComboBox, Object> autoBinding_3 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      tvShowSettingsBeanProperty_4, cbLanguageStyle, jComboBoxBeanProperty);
  autoBinding_3.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:37,代码来源:TvShowRenamerSettingsPanel.java

示例6: 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

示例7: 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

示例8: 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

示例9: initDataBindings

import org.jdesktop.beansbinding.AutoBinding; //导入方法依赖的package包/类
protected void initDataBindings() {
  BeanProperty<TvShowSettings, Boolean> settingsBeanProperty = BeanProperty.create("syncTrakt");
  BeanProperty<JCheckBox, Boolean> jCheckBoxBeanProperty = BeanProperty.create("selected");
  AutoBinding<TvShowSettings, Boolean, JCheckBox, Boolean> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty, chckbxTraktTv, jCheckBoxBeanProperty);
  autoBinding.bind();
  //
  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();
  //
  BeanProperty<TvShowSettings, List<String>> settingsBeanProperty_3 = BeanProperty.create("tvShowSkipFolders");
  JListBinding<String, TvShowSettings, JList> jListBinding_1 = SwingBindings.createJListBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_3, listExclude);
  jListBinding_1.bind();
  //
  BeanProperty<TvShowSettings, List<String>> settingsBeanProperty_4 = BeanProperty.create("badWords");
  JListBinding<String, TvShowSettings, JList> jListBinding_2 = SwingBindings.createJListBinding(UpdateStrategy.READ_WRITE, settings,
      settingsBeanProperty_4, listBadWords);
  jListBinding_2.bind();
  //
  BeanProperty<TvShowSettings, Boolean> tvShowSettingsBeanProperty = BeanProperty.create("buildImageCacheOnImport");
  AutoBinding<TvShowSettings, Boolean, JCheckBox, Boolean> autoBinding_2 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      tvShowSettingsBeanProperty, chckbxImageCache, jCheckBoxBeanProperty);
  autoBinding_2.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:33,代码来源:TvShowSettingsPanel.java

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: 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<TvShowSettings, MediaLanguages> tvShowSettingsBeanProperty = BeanProperty.create("subtitleScraperLanguage");
  BeanProperty<JComboBox, Object> jComboBoxBeanProperty = BeanProperty.create("selectedItem");
  AutoBinding<TvShowSettings, MediaLanguages, JComboBox, Object> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ_WRITE, settings,
      tvShowSettingsBeanProperty, cbScraperLanguage, jComboBoxBeanProperty);
  autoBinding_1.bind();
}
 
开发者ID:tinyMediaManager,项目名称:tinyMediaManager,代码行数:28,代码来源:TvShowSubtitleSettingsPanel.java


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