예제 #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());
  }
예제 #2
0
 /** Inserts a new component above the current component */
 public WOComponent insertComponentBelow() {
   return insertComponentAtIndex(currentComponent.sortNumber().intValue() + 1);
 }