Esempio n. 1
0
 @Override
 public void copyStyle(Stylable src) {
   super.copyStyle(src);
   if (src instanceof VisualState) {
     VisualState srcComponent = (VisualState) src;
     getReferencedState().setFinal(srcComponent.getReferencedState().isFinal());
   }
 }
Esempio n. 2
0
 @Override
 public void mixStyle(Stylable... srcs) {
   super.mixStyle(srcs);
   boolean isFinal = false;
   boolean isInitial = false;
   for (Stylable src : srcs) {
     if (src instanceof VisualState) {
       VisualState srcState = (VisualState) src;
       if (srcState.getReferencedState().isFinal()) {
         isFinal = true;
       }
       if (srcState.getReferencedState().isInitial()) {
         isInitial = true;
       }
     }
   }
   getReferencedState().setFinal(isFinal);
   getReferencedState().setInitial(isInitial);
 }