Examples of PagingListener


Examples of com.cxy.redisclient.presentation.component.PagingListener

      }
    });
    table.setLinesVisible(true);
    listener = new EditListener(table, true);
    table.addListener(SWT.MouseDown, listener);
    pageListener = new PagingListener(table, new ListPage(id, db, key));
    table.addListener(SWT.SetData, pageListener);

    tblclmnNewColumn = new TableColumn(table, SWT.NONE);
    tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
    tblclmnNewColumn.setWidth(200);
View Full Code Here

Examples of com.cxy.redisclient.presentation.component.PagingListener

        tableItemSelected();
      }
    });
    table.setLinesVisible(true);
    table.addListener(SWT.MouseDown, new EditListener(table, false));
    pageListener = new PagingListener(table, new SetPage(id, db, key));
    table.addListener(SWT.SetData, pageListener);
   
    tblclmnNewColumn = new TableColumn(table, SWT.NONE);
    tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
    tblclmnNewColumn.setWidth(200);
View Full Code Here

Examples of com.cxy.redisclient.presentation.component.PagingListener

    });
    table.setLinesVisible(true);
    table.addListener(SWT.MouseDown, new EditListener(table, false));
    editListener = new EditListener(table, true);

    pageListener = new PagingListener(table, new ZSetPage(id, db, key));
    table.addListener(SWT.SetData, pageListener);
   
    tblclmnNewColumn = new TableColumn(table, SWT.NONE);
    tblclmnNewColumn.setWidth(88);
    tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.SCORE));

    tblclmnMember = new TableColumn(table, SWT.NONE);
    tblclmnMember.setWidth(164);
    tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.MEMBER));

    btnAdd = new Button(grpValues, SWT.NONE);
    btnAdd.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));
    btnAdd.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        table.addListener(SWT.MouseDown, editListener);
       
        table.removeListener(SWT.SetData, pageListener);
        pageListener = new PagingListener(table, new ZSetPage(id, db, key), true);
        table.addListener(SWT.SetData, pageListener);
        table.clearAll();
       
        TableItem item = table.getItem(0);
       
View Full Code Here

Examples of com.cxy.redisclient.presentation.component.PagingListener

  private void refresh() {
    table.removeListener(SWT.MouseDown, editListener);
    table.addListener(SWT.MouseDown, new EditListener(table, false));
   
    table.removeListener(SWT.SetData, pageListener);
    pageListener = new PagingListener(table, new ZSetPage(id, db, key));
    table.addListener(SWT.SetData, pageListener);
   
    table.clearAll();
    table.setSelection(0);
    statusChanged();
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.