JXTaskPaneContainer extends JXPanel { @Override public void updateUI() { setUI((TaskPaneContainerUI) LookAndFeelAddons.getUI(this, TaskPaneContainerUI.class)); } JXTaskPaneContainer(); @Override TaskPaneContainerUI getUI(); @Override void updateUI(); void setUI(TaskPaneContainerUI ui); @Override String getUIClassID(); final static String uiClassID; }
@Test public void testRespectCustomLayoutGap() { JXTaskPaneContainer container = new JXTaskPaneContainer(); VerticalLayout layout = (VerticalLayout) container.getLayout(); VerticalLayout custom = new VerticalLayout(layout.getGap() + 10); container.setLayout(custom); container.updateUI(); assertEquals(custom.getGap(), ((VerticalLayout) container.getLayout()).getGap()); }
@Test public void testRespectCustomLayout() { JXTaskPaneContainer container = new JXTaskPaneContainer(); VerticalLayout layout = (VerticalLayout) container.getLayout(); VerticalLayout custom = new VerticalLayout(layout.getGap() + 10); container.setLayout(custom); container.updateUI(); assertSame(custom, container.getLayout()); }