Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problems with trees
Problems with trees [message #132767] Wed, 13 May 2009 21:39 Go to next message
Jorge is currently offline JorgeFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

I have some problems with trees:


1) I have a tree with some columns and after order by a column, the tree
selections dont work more and the page have this javascript error:

this._labelObject has no properties
http://127.0.0.1:2616/rap?custom_service_handler=org.eclipse .rwt.internal.service.JSLibraryServiceHandler&hash=H1214 603519
Line 249


Line 249:


qx.Class.define("org.eclipse.swt.TreeItemUtil",{statics:{createTreeItem:function(widgetId,parent,tree)
{var wm=org.eclipse.swt.WidgetManager.getInstance();var realParent=null;
if(parent instanceof
org.eclipse.swt.widgets.Tree){realParent=parent.getTree();}
else{realParent=parent;}var w=new
org.eclipse.swt.widgets.TreeItem(realParent,tree);
wm.add(w,widgetId,false);
this.hijackTreeItemSelection(w);},hijackTreeItemSelection:fu nction(item){
item._applySelected=function(value,old){if
(value){this.addState("selected");
this._labelObject.addState("selected");}else{this.removeState( "selected");
this._labelObject.removeState("selected");}var vTree=this.getTree();
if
(!vTree._fastUpdate||(old&&vTree._oldItem==this)){th is._iconObject.setSource(this._evalCurrentIcon());
if
(value){this._iconObject.addState("selected");}else{this._iconObject.removeState( "selected");}}};}}});


2) Double click does not work

3) Change item foreground color on a tree with columns does not work for
the first column

4) Change item background color does not work

regards
Jorge
Re: Problems with trees [message #132815 is a reply to message #132767] Thu, 14 May 2009 08:09 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Jorge,

> 1) I have a tree with some columns and after order by a column, the tree
> selections dont work more and the page have this javascript error:
>
> this._labelObject has no properties
> http://127.0.0.1:2616/rap?custom_service_handler=org.eclipse .rwt.internal.service.JSLibraryServiceHandler&hash=H1214 603519
> [...]

Could you please open a bug for this problem and include a simple code
snippet? Without being able to reproduce we can't do anything about it.

> 2) Double click does not work

Double clicks work for me in the controls demo. What exactly is the
problem you experience?

> 3) Change item foreground color on a tree with columns does not work for
> the first column
>
> 4) Change item background color does not work

This problems has been partly fixed. See this bug:
[TreeItem] setForeground(Color), setForeground(int, Color),
setBackground(int, Color) does not work
https://bugs.eclipse.org/bugs/show_bug.cgi?id=218420

Best regards, Ralf
Previous Topic:StatusBar, MessageBox, ... breaking UI window?
Next Topic:cleanup after non-normal exit (Refresh or close browser instead of return from createUI())
Goto Forum:
  


Current Time: Fri Apr 26 13:27:29 GMT 2024

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

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

Back to the top