DOM Level 2: Java (2/3)


Accessing a CSS property from an event

String color =
 ((ElementCSSInlineStyle)
   event.getTarget())
    .getStyle()
    .getPropertyValue("fill");