示例#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);
   }
 }