@Override protected Container createOrderedWrapper(Container newDataSource) { ContainerOrderedWrapper wrapper = new ContainerOrderedWrapper(newDataSource); wrapper.setResetOnItemSetChange(true); return wrapper; }
@Override protected Container createOrderedWrapper(Container newDataSource) { ContainerOrderedWrapper wrapper = new ContainerOrderedWrapper(newDataSource); wrapper.setResetOnItemSetChange(true); return wrapper; }
/** * Constructs a Switcher by a given {@link Container} and colorVariant ("green" or "black", "green" is default). * @param container * @param colorVariation */ public Switcher(Container container, String colorVariation) { this.colorVariation = colorVariation; // instantiate the combobox with the container if (!(container instanceof Container.Ordered)) { container = new ContainerOrderedWrapper(container); } combobox = new ComboBox("", container); combobox.setTextInputAllowed(false); }
} else { super.setContainerDataSource( new ContainerOrderedWrapper(newDataSource));