Examples of ItemSetChangeListener


Examples of com.vaadin.data.Container.ItemSetChangeListener

        testList.setSelectable(true);
        testList.setImmediate(true);
        testList.addListener(this);

        databaseHelper.getTestContainer().addListener(
                new ItemSetChangeListener() {
                    @Override
                    public void containerItemSetChange(ItemSetChangeEvent event) {
                        Object selected = testList.getValue();
                        if (selected != null) {
                            testForm.setItemDataSource(testList
View Full Code Here

Examples of com.vaadin.data.Container.ItemSetChangeListener

    @Test
    public void itemSetChangeListeners_freeform_shouldFire()
            throws SQLException {
        SQLContainer container = new SQLContainer(new FreeformQuery(
                "SELECT * FROM people", connectionPool, "ID"));
        ItemSetChangeListener listener = EasyMock
                .createMock(ItemSetChangeListener.class);
        listener.containerItemSetChange(EasyMock.isA(ItemSetChangeEvent.class));
        EasyMock.replay(listener);

        container.addListener(listener);
        container.addItem();

View Full Code Here

Examples of com.vaadin.data.Container.ItemSetChangeListener

    @Test
    public void itemSetChangeListeners_freeformItemRemoved_shouldFire()
            throws SQLException {
        SQLContainer container = new SQLContainer(new FreeformQuery(
                "SELECT * FROM people", connectionPool, "ID"));
        ItemSetChangeListener listener = EasyMock
                .createMock(ItemSetChangeListener.class);
        listener.containerItemSetChange(EasyMock.isA(ItemSetChangeEvent.class));
        EasyMock.expectLastCall().anyTimes();
        EasyMock.replay(listener);

        container.addListener(listener);
        container.removeItem(container.lastItemId());
View Full Code Here

Examples of com.vaadin.data.Container.ItemSetChangeListener

    @Test
    public void removeListener_freeform_shouldNotFire() throws SQLException {
        SQLContainer container = new SQLContainer(new FreeformQuery(
                "SELECT * FROM people", connectionPool, "ID"));
        ItemSetChangeListener listener = EasyMock
                .createMock(ItemSetChangeListener.class);
        EasyMock.replay(listener);

        container.addListener(listener);
        container.removeListener(listener);
View Full Code Here

Examples of com.vaadin.data.Container.ItemSetChangeListener

    @Test
    public void itemSetChangeListeners_table_shouldFire() throws SQLException {
        SQLContainer container = new SQLContainer(new TableQuery("people",
                connectionPool, SQLTestsConstants.sqlGen));
        ItemSetChangeListener listener = EasyMock
                .createMock(ItemSetChangeListener.class);
        listener.containerItemSetChange(EasyMock.isA(ItemSetChangeEvent.class));
        EasyMock.replay(listener);

        container.addListener(listener);
        container.addItem();
View Full Code Here

Examples of com.vaadin.data.Container.ItemSetChangeListener

    @Test
    public void itemSetChangeListeners_tableItemRemoved_shouldFire()
            throws SQLException {
        SQLContainer container = new SQLContainer(new TableQuery("people",
                connectionPool, SQLTestsConstants.sqlGen));
        ItemSetChangeListener listener = EasyMock
                .createMock(ItemSetChangeListener.class);
        listener.containerItemSetChange(EasyMock.isA(ItemSetChangeEvent.class));
        EasyMock.expectLastCall().anyTimes();
        EasyMock.replay(listener);

        container.addListener(listener);
        container.removeItem(container.lastItemId());
View Full Code Here

Examples of com.vaadin.data.Container.ItemSetChangeListener

    @Test
    public void removeListener_table_shouldNotFire() throws SQLException {
        SQLContainer container = new SQLContainer(new TableQuery("people",
                connectionPool, SQLTestsConstants.sqlGen));
        ItemSetChangeListener listener = EasyMock
                .createMock(ItemSetChangeListener.class);
        EasyMock.replay(listener);

        container.addListener(listener);
        container.removeListener(listener);
View Full Code Here

Examples of com.vaadin.data.Container.ItemSetChangeListener

  }
 
  @Test
  public final void testAddItemSetChangeListener()
  {
    @SuppressWarnings("serial")
    final ItemSetChangeListener listener = new ItemSetChangeListener()
    {
      @Override
      public void containerItemSetChange(ItemSetChangeEvent event)
      {
      }
View Full Code Here

Examples of com.vaadin.data.Container.ItemSetChangeListener

  }

  @Test
  public final void testRemoveItemSetChangeListener()
  {
    @SuppressWarnings("serial")
    final ItemSetChangeListener listener = new ItemSetChangeListener()
    {
      @Override
      public void containerItemSetChange(ItemSetChangeEvent event)
      {
      }
View Full Code Here

Examples of com.vaadin.data.Container.ItemSetChangeListener

  @SuppressWarnings("deprecation")
  @Test
  public final void testAddListener()
  {
    @SuppressWarnings("serial")
    final ItemSetChangeListener listener = new ItemSetChangeListener()
    {
      @Override
      public void containerItemSetChange(ItemSetChangeEvent event)
      {
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.