本文整理汇总了Java中org.jdesktop.beansbinding.BeanProperty.create方法的典型用法代码示例。如果您正苦于以下问题:Java BeanProperty.create方法的具体用法?Java BeanProperty.create怎么用?Java BeanProperty.create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jdesktop.beansbinding.BeanProperty
的用法示例。
在下文中一共展示了BeanProperty.create方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的package包/类
protected void initDataBindings() {
BeanProperty<Settings, List<String>> settingsBeanProperty_5 = BeanProperty.create("videoFileType");
JListBinding<String, Settings, JList> jListBinding_1 = SwingBindings.createJListBinding(UpdateStrategy.READ_WRITE, settings,
settingsBeanProperty_5, listVideoFiletypes);
jListBinding_1.bind();
//
BeanProperty<Settings, List<String>> settingsBeanProperty_6 = BeanProperty.create("subtitleFileType");
JListBinding<String, Settings, JList> jListBinding_2 = SwingBindings.createJListBinding(UpdateStrategy.READ_WRITE, settings,
settingsBeanProperty_6, listSubtitleFiletypes);
jListBinding_2.bind();
//
BeanProperty<Settings, List<String>> settingsBeanProperty_10 = BeanProperty.create("titlePrefix");
JListBinding<String, Settings, JList> jListBinding = SwingBindings.createJListBinding(UpdateStrategy.READ_WRITE, settings,
settingsBeanProperty_10, listSortPrefixes);
jListBinding.bind();
//
BeanProperty<Settings, List<String>> settingsBeanProperty_11 = BeanProperty.create("audioFileType");
JListBinding<String, Settings, JList> jListBinding_3 = SwingBindings.createJListBinding(UpdateStrategy.READ_WRITE, settings,
settingsBeanProperty_11, listAudioFiletypes);
jListBinding_3.bind();
}
示例2: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例3: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例4: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例5: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例6: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的package包/类
protected void initDataBindings() {
BeanProperty<TvShowEpisodeSelectionModel, String> tvShowEpisodeSelectionModelBeanProperty = BeanProperty.create("selectedTvShowEpisode.path");
BeanProperty<LinkLabel, String> linkLabelBeanProperty = BeanProperty.create("text");
AutoBinding<TvShowEpisodeSelectionModel, String, LinkLabel, String> autoBinding = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
tvShowEpisodeSelectionModelBeanProperty, lblPath, linkLabelBeanProperty);
autoBinding.bind();
//
BeanProperty<TvShowEpisodeSelectionModel, Integer> tvShowEpisodeSelectionModelBeanProperty_1 = BeanProperty
.create("selectedTvShowEpisode.season");
BeanProperty<JLabel, String> jLabelBeanProperty = BeanProperty.create("text");
AutoBinding<TvShowEpisodeSelectionModel, Integer, JLabel, String> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
tvShowEpisodeSelectionModelBeanProperty_1, lblSeason, jLabelBeanProperty);
autoBinding_1.bind();
//
BeanProperty<TvShowEpisodeSelectionModel, Integer> tvShowEpisodeSelectionModelBeanProperty_2 = BeanProperty
.create("selectedTvShowEpisode.episode");
AutoBinding<TvShowEpisodeSelectionModel, Integer, JLabel, String> autoBinding_2 = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
tvShowEpisodeSelectionModelBeanProperty_2, lblEpisode, jLabelBeanProperty);
autoBinding_2.bind();
//
BeanProperty<TvShowEpisodeSelectionModel, String> tvShowEpisodeSelectionModelBeanProperty_3 = BeanProperty
.create("selectedTvShowEpisode.firstAiredAsString");
AutoBinding<TvShowEpisodeSelectionModel, String, JLabel, String> autoBinding_3 = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
tvShowEpisodeSelectionModelBeanProperty_3, lblAired, jLabelBeanProperty);
autoBinding_3.bind();
//
BeanProperty<TvShowEpisodeSelectionModel, String> tvShowEpisodeSelectionModelBeanProperty_4 = BeanProperty
.create("selectedTvShowEpisode.tagAsString");
AutoBinding<TvShowEpisodeSelectionModel, String, JLabel, String> autoBinding_4 = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
tvShowEpisodeSelectionModelBeanProperty_4, lblTags, jLabelBeanProperty);
autoBinding_4.bind();
//
BeanProperty<TvShowEpisodeSelectionModel, String> tvShowEpisodeSelectionModelBeanProperty_5 = BeanProperty
.create("selectedTvShowEpisode.dateAddedAsString");
AutoBinding<TvShowEpisodeSelectionModel, String, JLabel, String> autoBinding_5 = Bindings.createAutoBinding(UpdateStrategy.READ, selectionModel,
tvShowEpisodeSelectionModelBeanProperty_5, lblDateAdded, jLabelBeanProperty);
autoBinding_5.bind();
}
示例7: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例8: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例9: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例10: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例11: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例12: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例13: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的package包/类
/**
* Inits the data bindings.
*/
protected void initDataBindings() {
JTableBinding<TvShowChooserModel, List<TvShowChooserModel>, JTable> jTableBinding = SwingBindings.createJTableBinding(UpdateStrategy.READ,
tvShowsFound, table);
//
BeanProperty<TvShowChooserModel, String> tvShowChooserModelBeanProperty = BeanProperty.create("combinedName");
jTableBinding.addColumnBinding(tvShowChooserModelBeanProperty).setEditable(false);
//
jTableBinding.bind();
//
BeanProperty<JTable, String> jTableBeanProperty_1 = BeanProperty.create("selectedElement.overview");
BeanProperty<JTextPane, String> jTextPaneBeanProperty = BeanProperty.create("text");
AutoBinding<JTable, String, JTextPane, String> autoBinding_1 = Bindings.createAutoBinding(UpdateStrategy.READ, table, jTableBeanProperty_1,
tpTvShowOverview, jTextPaneBeanProperty);
autoBinding_1.bind();
//
BeanProperty<JTable, String> jTableBeanProperty_2 = BeanProperty.create("selectedElement.posterUrl");
BeanProperty<ImageLabel, String> imageLabelBeanProperty = BeanProperty.create("imageUrl");
AutoBinding<JTable, String, ImageLabel, String> autoBinding_2 = Bindings.createAutoBinding(UpdateStrategy.READ, table, jTableBeanProperty_2,
lblTvShowPoster, imageLabelBeanProperty);
autoBinding_2.bind();
//
BeanProperty<JTable, String> jTableBeanProperty_3 = BeanProperty.create("selectedElement.combinedName");
BeanProperty<JTextArea, String> jTextAreaBeanProperty_1 = BeanProperty.create("text");
AutoBinding<JTable, String, JTextArea, String> autoBinding_3 = Bindings.createAutoBinding(UpdateStrategy.READ, table, jTableBeanProperty_3,
lblTvShowName, jTextAreaBeanProperty_1);
autoBinding_3.bind();
}
示例14: initDataBindings
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的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();
}
示例15: createTargetProperty
import org.jdesktop.beansbinding.BeanProperty; //导入方法依赖的package包/类
private static Property createTargetProperty(MetaBinding bindingDef) {
String targetPath = actualTargetPath(bindingDef);
Property property = BeanProperty.create(targetPath);
return property;
}