Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Action on table column(table page)
Action on table column [message #1830141] Fri, 17 July 2020 15:24 Go to next message
Eclipse UserFriend
Hello
I have a table that contain an email column I would like to be able to perform action when click on the email, is there a way to perform this ?
Kind Regards
Re: Action on table column [message #1830184 is a reply to message #1830141] Mon, 20 July 2020 03:55 Go to previous message
Eclipse UserFriend
Oueslati Anis wrote on Fri, 17 July 2020 19:24
Hello
I have a table that contain an email column I would like to be able to perform action when click on the email, is there a way to perform this ?
Kind Regards


You could use app links like this:

public class MyTable extends AbstractTable {

    public class EmailColumn extends AbstractStringColumn {

      @Override
      protected boolean getConfiguredHtmlEnabled() {
        return true;
      }

      @Override
      protected void execDecorateCell(Cell cell, ITableRow row) {
        cell.setText(HTML.appLink(getValue(row), getValue(row)).toHtml());
      }
    }

    @Override
    protected void execAppLinkAction(String ref) {
      System.out.println("E-Mail: " + ref);
    }
}


Regards,
Beat
Previous Topic:A Nullpointer exception in Eclipse Scout IDE 2010-Mars
Next Topic:Menu Class
Goto Forum:
  


Current Time: Mon Jul 14 04:29:57 EDT 2025

Powered by FUDForum. Page generated in 0.64781 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top