예제 #1
0
  public void link(StateModel stateModel) {
    children.add(stateModel);
    stateModel.parents.add(this);

    if (stateModel.getState().isBubbling()) {
      setState(stateModel.getState());
    }
  }
예제 #2
0
 private void propagateStateToNodes(State state, List<StateModel> nodes) {
   for (StateModel stateModel : nodes) {
     stateModel.setState(state);
   }
 }