Hi,

I would like to display a specific tooltip in tableview cells.
I have a specific renderer that extends Label and that set the text of the
label (with model data).

I tried to set the tooltip text at the same time I set the text of the Label
but the tooltip does not display.
Here is my method render code :

    public void render(Object row, int rowIndex, int columnIndex, TableView
tableView, String columnName, boolean selected, boolean highlighted, boolean
disabled) {
        if (row != null) {
            // Get the row and cell data
            if (columnName != null) {
                Dictionary<String, Object> rowData;
                if (row instanceof Dictionary<?, ?>) {
                    rowData = (Dictionary&lt;String, Object&gt;)row;
                } else {
                    rowData = new BeanAdapter(row);
                }

                Object cellData = rowData.get(columnName);

                if(cellData == null) {
                        setText("-");
                } else if (cellData instanceof ServiceObject) {
                    setText(((ServiceObject)cellData).getId());
                    setTooltipText("Tooltip ServiceObject");
                }
           }
      }
}


I'm using Pivot 1.5.1.

Thanks for any help.
Lionel

--
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/Tooltip-is-not-displaying-in-TableView-cell-tp3181910p3181910.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to