use of com.twosigma.beakerx.widget.Tab in project beakerx by twosigma.
the class TabTest method shouldSendCommOpenWhenCreateWithChildren.
@Test
public void shouldSendCommOpenWhenCreateWithChildren() throws Exception {
// given
List<Widget> children = asList(new IntSlider(), new Text());
kernel.clearPublishedMessages();
// when
new Tab(children, asList("t1", "t2"));
// then
verifyInternalOpenCommMsgWitLayout(kernel.getPublishedMessages(), Tab.MODEL_NAME_VALUE, Tab.VIEW_NAME_VALUE);
verifyChildren(children);
verifyTitles();
}
use of com.twosigma.beakerx.widget.Tab in project beakerx by twosigma.
the class TabbedOutputContainerLayoutManager method display.
@Override
public void display(OutputContainer container) {
List<Widget> items = getWidgets(container);
Tab tab = new Tab(items, container.getLabels());
tab.display();
}