本文整理汇总了Java中org.jdesktop.beansbinding.AutoBinding类的典型用法代码示例。如果您正苦于以下问题:Java AutoBinding类的具体用法?Java AutoBinding怎么用?Java AutoBinding使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AutoBinding类属于org.jdesktop.beansbinding包,在下文中一共展示了AutoBinding类的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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
//
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}