File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is Mixin Classes in JavaFX?

 
Ninad Kulkarni
Ranch Hand
Posts: 802
Hibernate Linux Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Mixin Classes in JavaFX?
 
jeevan stanzilous
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mixins look like regular classes, but have the mixin modifier on their declaration.Mixin is similar to interfaces in Java technology. mixin inheritance allows you to extend multiple mixin classes, giving you many of the benefits of multiple inheritance.

http://java.sun.com/javafx/1/tutorials/core/classes/#mixins
 
Philippe Lhoste
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As said.
Somehow, they are between interfaces (as they define traits, and a class can implement several mixins) and abstract classes (as you can put method implementations in them).
I have the feeling they actually supersede abstract classes, which are probably kept only for compatibility (unless I miss something).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic