static void addCompForBorder(SBorder border, String description, SContainer container) { SPanel comp = new SPanel(new SGridLayout(1, 1)); SLabel label = new SLabel(description, SConstants.CENTER); comp.add(label); comp.setBorder(border); // container.add(Box.createRigidArea(new Dimension(0, 10))); container.add(comp); }
private ICompositeView<SComponent> createEvenGridView( IEvenGridViewDescriptor viewDescriptor, IActionHandler actionHandler, Locale locale) { SGridLayout layout = new SGridLayout(); switch (viewDescriptor.getDrivingDimension()) { case IEvenGridViewDescriptor.ROW:
IEvenGridViewDescriptor viewDescriptor, IActionHandler actionHandler, Locale locale) { SGridLayout layout = new SGridLayout(); switch (viewDescriptor.getDrivingDimension()) { case ROW:
final SLabel label = new SLabel(""); SGridLayout layout = new SGridLayout(2); layout.setHgap(10); layout.setVgap(40);
@Override public void activateExample() { SGridLayout layout = new SGridLayout(1, 0); panel = new SPanel( layout );