public void addInitConstraint ( InitComponent lhs , Constraint constraint , InitComponent rhs ) { if ( lhs == null || rhs == null ) { throw new IllegalArgumentException ( "Cannot add constraint about null component." ) ; } InitComponent before = ( constraint == Constraint . RUNS_BEFORE ) ? lhs : rhs ; InitComponent after = ( constraint == Constraint . RUNS_BEFORE ) ? rhs : lhs ; _initers . addDependency ( after , before ) ; }
Adds a constraint that a certain component must be initialized before another .