Skip to content

Commit

Permalink
#7330: add foldout to spark option
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslawmalekcodete committed May 16, 2018
1 parent 97c3e08 commit e566261
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@
import com.twosigma.beakerx.message.Message;

import java.util.ArrayList;
import java.util.List;

public class Foldout extends Box {

public static final String VIEW_NAME_VALUE = "FoldoutView";
public static final String MODEL_NAME_VALUE = "FoldoutModel";

public Foldout(List<Widget> children) {
super(children);
openComm();
}

public Foldout(Message parent) {
super(new ArrayList<>());
openComm(parent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package com.twosigma.beakerx.widget;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

Expand All @@ -35,9 +36,8 @@ public SparkConfiguration() {
super(new ArrayList<>());
this.add = createAddButton();
this.header = new HBox(singletonList(this.add));
add(this.header);
this.properties = new Properties(new ArrayList<>());
add(this.properties.getWidget());
add(new Foldout(Arrays.asList(this.header,this.properties.getWidget())));
}

private Button createAddButton() {
Expand Down

0 comments on commit e566261

Please sign in to comment.