File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JavaFX and the fly likes What is Mixin Classes in JavaFX? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "What is Mixin Classes in JavaFX?" Watch "What is Mixin Classes in JavaFX?" New topic

What is Mixin Classes in JavaFX?

Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 802

What is Mixin Classes in JavaFX?

SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
jeevan stanzilous

Joined: Jun 16, 2009
Posts: 9
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.
Philippe Lhoste

Joined: Oct 23, 2009
Posts: 28
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).
I agree. Here's the link:
subject: What is Mixin Classes in JavaFX?
jQuery in Action, 3rd edition