Hi Daniel, Let me tell you what I understood of your requirement:
You have columns with data and you would like to resize the column to fit the data just like Excel allows you to do. In Excel when you bring the cursor at the end of the column hearder, dbl clicking it resizes the column. Is this what you want? If yes then you can look at http://lists.canoo.com/mailman/private/ulc-developer/2006/004804.html This implements resizing of columns for tabletree. You can modify it for table in your case. You can set a action listener on the header. In the action listener you invoke a method on the client side proxy (SnippetHelper) which then resizes the column on the client side. I hope this helps. Thanks and regards, Janak >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of >[EMAIL PROTECTED] >Sent: Wednesday, September 05, 2007 3:32 PM >To: [email protected] >Subject: [ULC-developer] Fetching Cursor from ULCTableHeader > > >Hello all, > >I am currently searching for an option to rebuild an identical behaviour >resizing columns like MS Excel. My plan was to add an ActionListener on >table header which fetches user clicks. Furthermore I wanted to resize the >column whether or not the cursor has this special resize appearance while >clicking on the separation of the header columns. Unfortunatly I always get >the same id (= "0") back when calling getCursor() on the header like shown >below. > > > table.getTableHeader().addActionListener(new IActionListener() { > public void actionPerformed(ActionEvent event) { > System.out.println("Cursor: " + table.getTableHeader().getCursor()); > } > }); > >Does anyone have an idea if this may be a little bug, or whether I am doing >something wrong here. Help is very appreciated! > > >Greetings and regards, > >Daniel > > >Disclaimer: >Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail >gegebene Information nicht rechtsverbindlich. >Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf >Anforderung in schriftlicher Form nach. >Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, >Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts >dieser E-Mail nicht gestattet ist. >Diese Nachricht ist ausschliesslich fuer den bezeichneten >Adressaten oder dessen Vertreter bestimmt. >Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder >dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender >der E-Mail in Verbindung zu setzen und/oder diese Nachricht mit >allen Anhängen zu loeschen. > >_______________________________________________ >ULC-developer mailing list >[email protected] >http://lists.canoo.com/mailman/listinfo/ulc-developer _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
