mkarneim / beanfabrics Goto Github PK
View Code? Open in Web Editor NEWA Presentation Model Component Framework for Java Desktop Applications
License: Other
A Presentation Model Component Framework for Java Desktop Applications
License: Other
A PropertyChangeListener added by the method addPropertyChangeListener(String, PropertyChangeListener)
does not recieve named events fired by the PropertyChangeSupport.
The following test shows the expected behaviour:
@Test
public void test_BnModelObserver_recieves_named_property_change_events() {
// given:
final AbstractPM pm = new AbstractPM() {};
ModelProvider prov = new ModelProvider();
prov.setPresentationModel(pm);
BnModelObserver observer = new BnModelObserver();
observer.setModelProvider(prov);
observer.setPath(new Path());
final List<PropertyChangeEvent> events = new LinkedList<PropertyChangeEvent>();
observer.addPropertyChangeListener("my property change", new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
events.add(evt);
}
});
// when:
pm.getPropertyChangeSupport().firePropertyChange("my property change", null, null);
// then
assertEquals("events.size()", events.size(), 1);
}
Hello, http://www.beanfabrics.org is down
To use Beanfabrics library in a product built with Maven it has to be available in a maven repository http://mvnrepository.com/ tanks
I have in IntegerPM set up with max value 9999999999.
A higher number, like 10000000000, will bring up a "value too big" validation message - which is fine.
A LARGE number however (9999999999999999999999) will lead to a validation message of type "invalid number" (the same message I would receive for a string like "abc").
Is there a possibility to change this behaviour, so that I would receive "value too big" for any (whole positive) number, however large?
(Currently I'm using beanfabrics 1.4.2.)
The position of the sorting indicator (little black arrow) in the BnTable header is wrong when the PM is sorted by multiple sort keys at once.
Hi it is mentioned that WindowNuilder is supported. If you follow the link(https://code.google.com/intl/de-DE/webtoolkit/tools/wbpro/index.html), you will get
The requested URL /intl/de-DE/webtoolkit/tools/wbpro/index.html was not found on this server. That’s all we know.
If I open a WindowBuilder Design View without the plugin i get message that says:
Unknown GUI toolkit
Is there a solution?
Beanfabrics 1.1 does not support serialization of GUI components.
See https://code.google.com/p/beanfabrics/issues/detail?id=84 for the original request.
Beanfabrics supports custom annotations to enhance PM objects.
These annotations can be placed on the PM class, its fields and its methods.
While this works fine for fields and methods, there is a bug when processing class-level annotations: they are only evaluated for the first instance of a given PM class but not for further instances.
I feel great your project.
It would be a great help if published on the remote maven repository.
thanks :)
See stack trace:
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeLo(TimSort.java:747)
at java.util.TimSort.mergeAt(TimSort.java:483)
at java.util.TimSort.mergeCollapse(TimSort.java:410)
at java.util.TimSort.sort(TimSort.java:214)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:659)
at java.util.Collections.sort(Collections.java:217)
at org.beanfabrics.support.SupportUtil.sortMembers(SupportUtil.java:114)
at org.beanfabrics.model.PMManager.processPresentationModel(PMManager.java:66)
at org.beanfabrics.model.PMManager.setup(PMManager.java:35)
...
Publish Beanfabrics to Sonatype OSS maven repo.
Wenn eine TableView oder ListView an ein IListPM gebunden wird, das bereits eine Selektion besitzt, dann wird die Selektion zwar korrekt angezeigt, aber nicht richtig verwaltet, wenn der Anwender über die GUI die Selektion ändert: das IListPM bekommt die Änderungen nicht mit.
In the refresh() method of the BooleanPMRadioButton, a call to repaint is missing - cf. BooleanPMCheckBox#refesh().
This leads to Swing redendering artifacts like missing or stale error icons.
dito
AbstractPMResourceBunde_de.properties misspelled word:
message.one_or_more_invalid=Ein oder meherer Felder sind fehlerhaft
"meherer" is not a german word. Please spell correctly "mehrere".
Hi Michael,
I noticed while upgrading an older project of mine that my BnLists are not being refreshed anymore. Other fields like BnLabels backed by an IntegerPM still work flawlessly. The last working version of beanfabrics was 1.1.0.
I read through the changelog but couldn't find anything which would explain the change of behaviour, so here I am ;)
I've reduced the problematic code to a small test project consisting of just a View and PM. You can find it at https://github.com/fkleon/beanfabrics-test
Note that with beanfabrics 1.1.0 the list gets rendered as expected, with all 50 entries. But when you change the dependencies to beanfabrics 1.2.0, the list stops rendering, but the backing ListPM contains the correct entries and the BnLabel still gets updated:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.