Re: Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!

2012-06-19 Thread Julian
Hi,

i've had the same problem, many thanks to Jens and Rajeshwar for the
solution!

I've extended Column and TextColumn:

public abstract class TooltipColumnT, C extends ColumnT, C{
private final CellC cell;

public TooltipColumn(CellC cell) {
super(cell);
this.cell = cell;
}

public abstract SafeHtml getTooltipValue(T object);

@Override
 public void render(Context context, T object, SafeHtmlBuilder sb) {
SafeHtmlBuilder mysb = new SafeHtmlBuilder();

cell.render(context, getValue(object), mysb);
mysb.appendHtmlConstant(span);
mysb.append(getTooltipValue(object));
mysb.appendHtmlConstant(/span);
sb.append(mysb.toSafeHtml());
  }
}

public abstract class TooltipTextColumnT extends TooltipColumnT,
String {

  /**
   * Construct a new TextColumn.
   */
  public TooltipTextColumn() {
super(new TextCell());
  }

}

CSS:
  .CssCellTableCell span {
display:none
}

  .CssCellTableCell:hover span {
border:1px solid #e6e3e5;
DISPLAY: block;
Z-INDEX: 1000;
PADDING: 0px 10px 0px 10px;
POSITION:absolute;
float:left;
background:#d1;
TEXT-DECORATION: none
}

Add a Column:

TooltipTextColumnTodos aTextColumn = new
TooltipTextColumnTodos() {

@Override
public String getValue(Todos object) {
return object.getText();
}

@Override
public SafeHtml getTooltipValue(Todos object) {
return new
SafeHtmlBuilder().appendEscaped(object.getText()).toSafeHtml();
}
};

cellTable.addColumn(aTextColumn, Text);

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!

2012-06-04 Thread Jens
The contact instance in getValue() is your row value. So when you make the 
generated SafeHtml dependent on the contact you have a different tooltip 
for each row (= contact) in that column. If you want to show a tooltip in 
every column you have to do this in every Column.getValue().

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ai0G-oC4BNAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!

2012-06-04 Thread laxman lingampally
Hi all,

Thanks a lot Jens and  Rajeshwar , For Helping   me,
As of now Tooltip is Working fine

Regards
Laxman


On Mon, Jun 4, 2012 at 2:30 PM, Jens jens.nehlme...@gmail.com wrote:

 The contact instance in getValue() is your row value. So when you make the
 generated SafeHtml dependent on the contact you have a different tooltip
 for each row (= contact) in that column. If you want to show a tooltip in
 every column you have to do this in every Column.getValue().

 -- J.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/ai0G-oC4BNAJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!

2012-05-31 Thread laxman lingampally
Hi all,

i need a GWT celltable record i.e specific record values in Tooltip ,


In my project i have one search Grid(Celltable) it is having five columns,
when ever click on serach button it shows number of recods that is fine,

but , i need to show  some infermation ( like status name , id value like
that..) in Tooltip like window.

Any idea or any solution ?

please help  me out.

Thanks for helping.

Regards
laxman

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!

2012-05-31 Thread Rajeshwar Mishra
Use  Column?, SafeHtml

Thanks,
Rajeshwar

On Thu, May 31, 2012 at 12:58 PM, laxman lingampally 
lingampall.lax...@gmail.com wrote:

 Hi all,

 i need a GWT celltable record i.e specific record values in Tooltip ,


 In my project i have one search Grid(Celltable) it is having five columns,
 when ever click on serach button it shows number of recods that is fine,

 but , i need to show  some infermation ( like status name , id value like
 that..) in Tooltip like window.

 Any idea or any solution ?

 please help  me out.

 Thanks for helping.

 Regards
 laxman






  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!

2012-05-31 Thread laxman lingampally
Hi  Rajeshwar ,

Thanks a lot .

thanks for your answer.

i am given below code , just see and tell me where i am done mistake.


CellTableContact searchGridCellTable = new CellTableContact();

---
.-
// Add a text column to show the dateLogged.
 TextColumnContact dateLogged = new TextColumnContact() {
  @Override
  public String getValue(Contact object) {
return object.getDateLogged();
  }
};
  searchGridCellTable.addColumn(dateLogged,
SafeHtmlUtils.fromSafeConstant(span title='tooltip text goes
here'DateLogged/span));

--


like this. above code showing Tooltip at Header only,

   but i need only specific record. my cellTable having number of Records.
  can you please tell how can i use, i need to show some values in Tooltip
,(only specific record)

please help me out,

if it passible give me sample code for me .


Thanks  Regards
Laxman




On Thu, May 31, 2012 at 4:57 PM, Rajeshwar Mishra 
contacttorajesh...@gmail.com wrote:

 Use  Column?, SafeHtml

 Thanks,
 Rajeshwar

 On Thu, May 31, 2012 at 12:58 PM, laxman lingampally 
 lingampall.lax...@gmail.com wrote:

 Hi all,

 i need a GWT celltable record i.e specific record values in Tooltip ,


 In my project i have one search Grid(Celltable) it is having five
 columns, when ever click on serach button it shows number of recods that is
 fine,

 but , i need to show  some infermation ( like status name , id value like
 that..) in Tooltip like window.

 Any idea or any solution ?

 please help  me out.

 Thanks for helping.

 Regards
 laxman






  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help: GWT Celltable Record (Specific Record Mouseover) ToolTip !!!

2012-05-31 Thread Jens
Have you actually read what Rajeshwar wrote?

He tolds you to use Column?, SafeHtml but your posted code contains 
TextColumn. Change it to ColumnContact, SafeHtml, use a SafeHtmlCell for 
that column and then implement getValue().

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Z4wiKCEZNtsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.