/**
   * @param node
   * @param cc
   */
  public void add(Node node, String cc) {
    // parse as CC
    CC lCC = ConstraintParser.parseComponentConstraint(ConstraintParser.prepare(cc));

    // do regular add
    add(node, lCC);
  }
 /**
  * Sets the row layout constraints for the layout manager instance as a String.
  *
  * <p>See the class JavaDocs for information on how this string is formatted.
  *
  * @param constr The row layout constraints as a String or {@link net.miginfocom.layout.AC}
  *     representation. <code>null</code> is converted to <code>""</code> for storage.
  * @throws RuntimeException if the constraint was not valid.
  */
 public void setRowConstraints(Object constr) {
   if (constr == null || constr instanceof String) {
     constr = ConstraintParser.prepare((String) constr);
     rowSpecs = ConstraintParser.parseRowConstraints((String) constr);
   } else if (constr instanceof AC) {
     rowSpecs = (AC) constr;
   } else {
     throw new IllegalArgumentException(
         "Illegal constraint type: " + constr.getClass().toString());
   }
   rowConstraints = constr;
 }
 /**
  * Sets the layout constraints for the layout manager instance as a String.
  *
  * <p>See the class JavaDocs for information on how this string is formatted.
  *
  * @param constr The layout constraints as a String pr {@link net.miginfocom.layout.LC}
  *     representation. <code>null</code> is converted to <code>""</code> for storage.
  * @throws RuntimeException if the constraint was not valid.
  */
 public void setLayoutConstraints(Object constr) {
   if (constr == null || constr instanceof String) {
     constr = ConstraintParser.prepare((String) constr);
     lc = ConstraintParser.parseLayoutConstraint((String) constr);
   } else if (constr instanceof LC) {
     lc = (LC) constr;
   } else {
     throw new IllegalArgumentException(
         "Illegal constraint type: " + constr.getClass().toString());
   }
   layoutConstraints = constr;
   // if debug is set, do it
   if (lc != null && lc.getDebugMillis() > 0) {
     iDebug = true;
   }
 }
 public static void setCc(Node node, String cc) {
   CC lCC = ConstraintParser.parseComponentConstraint(ConstraintParser.prepare(cc));
   setCc(node, lCC);
 }
 /** rows called in FXML on MigLayoutPane itself */
 public void setRows(String value) {
   this.fxmlRowConstraints = value;
   setRowConstraints(ConstraintParser.parseRowConstraints(ConstraintParser.prepare(value)));
 }
 /** cols called in FXML on MigLayoutPane itself */
 public void setCols(String value) {
   this.fxmlColumConstraints = value;
   setColumnConstraints(ConstraintParser.parseColumnConstraints(ConstraintParser.prepare(value)));
 }
 /** layout called in FXML on MigLayoutPane itself */
 public void setLayout(String value) {
   this.fxmLayoutConstraints = value;
   setLayoutConstraints(ConstraintParser.parseLayoutConstraint(ConstraintParser.prepare(value)));
 }