All objects appearing the layout tree must implement this interface. It can roughly be thought of as a styled element (although an InlineLayoutBox may be split across many lines) and some Styleable objects may not define an element at all (e.g. anonymous inline boxes) and some {@cod
| 34 | * (e.g. {@code :before} and {@code :after} pseudo-elements) |
| 35 | */ |
| 36 | public interface Styleable { |
| 37 | @Nullable |
| 38 | @CheckReturnValue |
| 39 | CalculatedStyle getStyle(); |
| 40 | |
| 41 | void setStyle(@Nullable CalculatedStyle style); |
| 42 | |
| 43 | @Nullable |
| 44 | @CheckReturnValue |
| 45 | Element getElement(); |
| 46 | |
| 47 | void setElement(@Nullable Element e); |
| 48 | |
| 49 | @Nullable |
| 50 | @CheckReturnValue |
| 51 | String getPseudoElementOrClass(); |
| 52 | } |
no outgoing calls
no test coverage detected