Package com.vaadin.ui

Examples of com.vaadin.ui.Table.addListener()


    /** Create new Table with given caption and listener. */
    public Table table(String caption,
            Property.ValueChangeListener changeListener) {
        Table c = table(caption);
        c.addListener(changeListener);
        return c;
    }

    /** Create new GridLayout and add it to current component container. */
    public GridLayout gridlayout() {
View Full Code Here


        t.addContainerProperty("foo", String.class, "bar");
        t.addItem();
        t.setSelectable(true);
        t.setMultiSelect(true);

        t.addListener(l);
        addComponent(t);

    }

    @Override
View Full Code Here

        table.setPageLength(5);
        table.setSelectable(true);
        table.setImmediate(true);
        table.setNullSelectionAllowed(true);
        table.addContainerProperty("Name", String.class, null);
        table.addListener(getTableValueChangeListener());
        Address address = new Address("Ruukinkatu 2–4", "20540", City.TURKU);
        Address address2 = new Address("Ruukinkatu 2–4", "20540", City.TURKU);
        Person person = new Person("Teppo", "Testaaja", new Date(100000000l),
                address);
        Person person2 = new Person("Taina", "Testaaja", new Date(200000000l),
View Full Code Here

    processDefinitionTable.setNullSelectionAllowed(false);
    processDefinitionTable.setSortDisabled(true);
    processDefinitionTable.setSizeFull();
   
    // Listener to change right panel when clicked on a model
    processDefinitionTable.addListener(new Property.ValueChangeListener() {
      private static final long serialVersionUID = 1L;

      public void valueChange(ValueChangeEvent event) {
        showProcessDefinitionDetail((String) event.getProperty().getValue());
      }
View Full Code Here

  protected Table createList() {
    final Table processInstanceTable = new Table();
    processInstanceTable.addStyleName(ExplorerLayout.STYLE_PROCESS_INSTANCE_LIST);
   
    // Listener to change right panel when clicked on a task
    processInstanceTable.addListener(new Property.ValueChangeListener() {
      private static final long serialVersionUID = 8811553575319455854L;
      public void valueChange(ValueChangeEvent event) {
        Item item = processInstanceTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
        if(item != null) {
          String processInstanceId = (String) item.getItemProperty("id").getValue();
View Full Code Here

    processDefinitionTable.setNullSelectionAllowed(false);
    processDefinitionTable.setSortDisabled(true);
    processDefinitionTable.setSizeFull();
   
    // Listener to change right panel when clicked on a model
    processDefinitionTable.addListener(new Property.ValueChangeListener() {
      private static final long serialVersionUID = 1L;

      public void valueChange(ValueChangeEvent event) {
        showProcessDefinitionDetail((String) event.getProperty().getValue());
      }
View Full Code Here

    LazyLoadingQuery deploymentListQuery = new DeploymentListQuery(deploymentFilter);
    deploymentListContainer = new LazyLoadingContainer(deploymentListQuery, 30);
    deploymentTable.setContainerDataSource(deploymentListContainer);
           
    // Listener to change right panel when clicked on a deployment
    deploymentTable.addListener(new Property.ValueChangeListener() {
      private static final long serialVersionUID = 8811553575319455854L;
      public void valueChange(ValueChangeEvent event) {
        Item item = deploymentTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
        if(item != null) {
          String deploymentId = (String) item.getItemProperty("id").getValue();
View Full Code Here

  protected Table createList() {
    final Table processInstanceTable = new Table();
    processInstanceTable.addStyleName(ExplorerLayout.STYLE_PROCESS_INSTANCE_LIST);
   
    // Listener to change right panel when clicked on a process instance
    processInstanceTable.addListener(new Property.ValueChangeListener() {
      private static final long serialVersionUID = 8811553575319455854L;
      public void valueChange(ValueChangeEvent event) {
        Item item = processInstanceTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
        if(item != null) {
          String processInstanceId = (String) item.getItemProperty("id").getValue();
View Full Code Here

    LazyLoadingQuery lazyLoadingQuery = new ProcessDefinitionListQuery(repositoryService, definitionFilter);
    this.processDefinitionContainer = new LazyLoadingContainer(lazyLoadingQuery, 30);
    processDefinitionTable.setContainerDataSource(processDefinitionContainer);
   
    // Listener to change right panel when clicked on a task
    processDefinitionTable.addListener(new Property.ValueChangeListener() {
      private static final long serialVersionUID = 1L;

      public void valueChange(ValueChangeEvent event) {
        Item item = processDefinitionTable.getItem(event.getProperty().getValue());
        String processDefinitionId = (String) item.getItemProperty("id").getValue();
View Full Code Here

  @Override
  protected Table createList() {
    final Table tableList = new Table();
   
    // Listener to change right panel when clicked on a task
    tableList.addListener(new Property.ValueChangeListener() {
      private static final long serialVersionUID = 8811553575319455854L;
      public void valueChange(ValueChangeEvent event) {
        // The itemId of the table list is the tableName
        String tableName = (String) event.getProperty().getValue();
        setDetailComponent(new DatabaseDetailPanel(tableName));
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.