Ejemplo n.º 1
0
  /** Inserts a new component above all other components on the page. */
  public WOComponent insertComponentAbove() {
    if (currentComponent == null) {
      return insertComponentAtIndex(0);
    }

    return insertComponentAtIndex(currentComponent.sortNumber().intValue());
  }
Ejemplo n.º 2
0
 /** Inserts a new component above the current component */
 public WOComponent insertComponentBelow() {
   return insertComponentAtIndex(currentComponent.sortNumber().intValue() + 1);
 }