Ejemplo n.º 1
0
  public boolean removeStrut(final WB_FrameStrut strut) {
    if ((strut.start() != this) && (strut.end() != this)) {
      return false;
    }

    struts.remove(strut);

    return true;
  }
Ejemplo n.º 2
0
  public boolean addStrut(final WB_FrameStrut strut) {
    if ((strut.start() != this) && (strut.end() != this)) {
      return false;
    }
    for (int i = 0; i < struts.size(); i++) {
      if ((struts.get(i).start() == strut.start()) && (struts.get(i).end() == strut.end())) {
        return false;
      }
    }
    struts.add(strut);

    return true;
  }