GIGJ.COM
welcome to my space
X
Welcome to:gigj.com
Search:  
Personal Injury | Languages | Soups | Photography | Email | Prepress | Exotic Locations | Computer Games | Related articles
 HOME   Customizing context menu of table column headers

Customizing context menu of table column headers

Published by: jack 2010-03-10

  • I'm sure I'm just looking in the wrong direction, someone can give me a tip on how to customize the context menu that pops up when a user richgt-click on the column header of a table ?

    Thanks


  • I've checked out the SVN version and now i can customize the context menu. But for various reasons in my application we have decided to not utilize right-click because they are not suited for mobile devices with touchscreens. So I'm trying to override the left-click event and display a menu that is similar to the context menu with this code:

    table.addTableListener(new TableListener() {
    Delete a column from a table in Microsoft Word 2007::
    resize tables, add or remove rows, add new columns, and delete existing columns. This tutorial will explain both how to delete the content of a
    http://freewindowsvistatutorials.com/programsAndApplications/micrleteColumnsFromTables.php
    HOME
    - XHTML Tables Module::
    A table may either contain a single implicit column group (no type of query, the table model allows authors to place cell headers and data
    http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-tables.html
    HOME

    @Override
    public void tableColumnClick(TableEvent te) {
    super.tableColumnClick(te);
    te.doit = false;
    Menu menu = new Menu();
    menu.add(new MenuItem("Sort UP"));
    menu.add(new MenuItem("Sort DOWN"));
    menu.add(new MenuItem("Hide"));
    menu.showAt(te.getClientX(), te.getClientY());
    }

    });problem is that getClientX and getclientY is always -1 and te.event is always null. What am I doing wrong this time ?


  • Thank you, I'll try it out asap.


  • You can listen for the ContextMenu event on Table. Within your listener, you can call table.getContextMenu to get a reference to the Menu and can modify as needed.


  • I gave you bad advise for the header context menu. I added a new event for HeaderContextMenu. With the latest SVN code you can do this:

    tbl.addListener(Events.HeaderContextMenu, new Listener() {
    public void handleEvent(TableEvent be) {
    Menu menu = be.menu;
    Info.display("Event", "Context menu event");
    }
    });


  • You are getting -1 values because the DOM event was not being passed in the event. This is fixed in SVN.


  • I've got some problems implementing it, I've tryed this piece of code

    table.addListener(Events.ContextMenu, new Listener() {
    public void handleEvent(TableEvent be) {
    Info.display("Event", "Context menu event");
    }
    } );

    but the Info is never displayed





  • Nortel Unveils Vision, Strategy for Israeli High-Performance Net
    Busy Friday Leads to Strong Close for Net Stocks

    #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about Customizing context menu of table column headers , Please add it free.
  • yahoo offers to speed reviews for fee
  • bt launches free internet access service
  • aplio delivers updated internet phone
  • bt inktomi provide european search
  • cmgi may not support lycos deal
  • australian isp tries per minute access
  • yamaha to test run online piano lessons
  • spiderman inside lycos exit at what cost
  • spain s pm worried about net lag
  • singapore gets asia s 1st secure 3rd party digital distribution
  • dubai plans high tech gathering for april
  • site operator prohibited from connecting to the internet
  • global knowledge to be cabletron s primary trainer in asia

  • browser bug exposes cookie data
  • companies sue over banner ads
  • hk telecom nominated for smithsonian award by netscape
  • report online investing to change face of finance
  • 1999 internet ipos up 179 percent
  • isdex drops on broad market musings
  • internet market close report for 1999 02 10
  • lycos shares fall after deal
  • opensite technologies delivers auction 4 0
  • hk broker targets foreign investors with web trading
  • yahoo expands small business services
  • czech companies building virtual city
  • compuserve marketwatch partner
  • flycast files for ipo

  • About us -Site map -Advertisement -Jion us -Contact usExchange linksSponsor us
    Copyright© 2008 gigj.com All Rights Reserved
    Site made&Support support@gigj.com    E-mail: web@gigj.com