public void setWidgets (Iterable<Actor> actors) {
		clearChildren();
		widgetBounds.clear();
		scissors.clear();
		handleBounds.clear();
		splits.clear();

		for (Actor actor : actors) {
			super.addActor(actor);
			widgetBounds.add(new Rectangle());
			scissors.add(new Rectangle());
		}
		float currentSplit = 0;
		float splitAdvance = 1f / getChildren().size;
		for (int i = 0; i < getChildren().size - 1; i++) {
			handleBounds.add(new Rectangle());
			currentSplit += splitAdvance;
			splits.add(currentSplit);
		}
		invalidate();
	}
public void setWidgets ( Iterable < Actor > actors ) { clearChildren ( ) ; widgetBounds . clear ( ) ; scissors . clear ( ) ; handleBounds . clear ( ) ; splits . clear ( ) ; for ( Actor actor : actors ) { super . addActor ( actor ) ; widgetBounds . add ( new Rectangle ( ) ) ; scissors . add ( new Rectangle ( ) ) ; } float currentSplit = 0 ; float splitAdvance = 1f / getChildren ( ) . size ; for ( int i = 0 ; i < getChildren ( ) . size - 1 ; i ++ ) { handleBounds . add ( new Rectangle ( ) ) ; currentSplit += splitAdvance ; splits . add ( currentSplit ) ; } invalidate ( ) ; }
Changes widgets of this split pane. You can pass any number of actors even 1 or 0. Actors can't be null.