Questions tagged [cellrenderer]

145 questions
1
vote
1 answer

How do I register the on-tap in a paper-icon-button in an ag-grid cell renderer?

I am working on adding ajax call to paper-icon-buttons that are rendered in an ag-grid cell renderer. Here is the script in my custom polymer component. The paper-icon-buttons do show up and clicking on them causes the ripple, but the functions in…
Loren Cahlander
  • 1,257
  • 1
  • 10
  • 24
1
vote
1 answer

JTable cellRenderer doesnt change just desingated cells

Here is a code part of my project. I am try to change the color of desingated cells. But when i try it, all cells' color changing. Why is that ? Thanks. private class cellRenderer extends DefaultTableCellRenderer { @Override public…
Ozan Ertürk
  • 465
  • 5
  • 17
1
vote
1 answer

Java - Changing JTable renderer per class

I was hoping someone could explain something to me as I found my solution, but I don't understand why it works. I wanted to set a default renderer by Class type to a whole table, not knowing at creation where objects will be in it. I had declared a…
Ryan
  • 3,579
  • 9
  • 47
  • 59
1
vote
1 answer

How to make the jList selectable inside a jTable

How to make the jList selectable and jScrollPane scrollable inside a jTable. This is my table code : private JTable getCalendarTable() { if (calendarTable == null) { calendarTable = new JTable() { public boolean…
user236501
  • 8,538
  • 24
  • 85
  • 119
1
vote
0 answers

Python gtk3 renderer text with autocompletion

I have a tree-view with some columns. One of them is my "mp3" column. And I have a list of mp3 names. I want to make the cell-renderer-text editable and add completion while typing. I saw some examples but they used Gtk.EntryCompletion() and…
earlymorningtea
  • 508
  • 1
  • 9
  • 20
1
vote
1 answer

How to truncate a text in a custom GtkCellRenderer?

I trying to create custom GtkCellRenderer with some text. And I want this text truncated, when a size of GtkCellRenderer is smaller than size of text. For example: alt text How can I do this? Is this some property of CellRenderer or PangoLayout or I…
troorl
  • 1,579
  • 1
  • 15
  • 20
1
vote
2 answers

Coloring a single cell in a JTable when representing Color objects

I have a JTable that is used to display numerous different data types in different rows. There are only two columns, where the left column is the variable name and the right column is the variable associated with the variable (so using a ColumnModel…
Stevo
  • 397
  • 6
  • 26
1
vote
2 answers

Creating a table with an initial element selected

I want to create a table which displays in each row a set of data, in addition to a radio button for possible selection. This can be achieved easily by using a simple table model class which extends the DefaultTableModel and a cell renderer and…
Anto
  • 4,265
  • 14
  • 63
  • 113
1
vote
3 answers

How to limit number of decimal places to be displayed in Gtk CellRendererText

I am trying to limit the amount of decimal places shown in a Gtk.CellRendererText. Currently a float number field is shown with 6 decimal places, but I would like to have just 1. This test code should work on Linux: #!/usr/bin/python3 from…
tobias47n9e
  • 2,233
  • 3
  • 28
  • 54
1
vote
1 answer

Button not displaying until MouseOver

I have a CustomCellRenderer for a TileList that has a button on the cell. The button does not display except for the label text on the button. Once I mouse over the button it displays like normal again. I'm not doing anything fancy with the button,…
Josh Brittain
  • 2,162
  • 7
  • 31
  • 54
1
vote
0 answers

GTK# Set precision of a column of floats in a TreeViewColumn using Mono & F#

I'm using GTK# and the built in gtk.TreeView to create a data grid. I have a column that is populated with floats. Right now they display as 120.00000. I would like to have these floats display with only two digits of precision : not this ->…
Andre P.
  • 613
  • 1
  • 7
  • 21
1
vote
2 answers

Change the font color in specific cell in Jtable

DefaultTableCellRenderer cellRender = new DefaultTableCellRenderer(); for(int i = 0; i < tblPackage.getRowCount(); i++) { if("ACTIVE".equals(tblPackage.getModel().getValueAt(i, 3).toString())) { …
jefferyleo
  • 630
  • 3
  • 17
  • 34
1
vote
1 answer

Update a combo box to display a specific Index within a JTable

I have an existing content of values within a JComboBox located within a JTable column. What I am trying to do is read a value in from an exisiting object and update the ComboBox to show this value immediately. My first attempt was to: // Sets up…
Nathan
  • 266
  • 4
  • 16
1
vote
1 answer

GObject Subclassing in Ruby for custom CellRenderer in GtkTreeView

I am trying to implement a customized CellRenderer in Ruby/GTK, and I've already found this suggestion: GObject subclassing in Ruby However, when I try the following: class CellRendererCustom < Gtk::CellRendererText type_register #register within…
1
vote
1 answer

Java: JList rendering effect

I have seen this effect for a list in my Netbeans. Can somebody tell me what this effect is called and how I can implement it in my custom ListCellRenderer? Thanks for your help. Andy
andyRandy
  • 93
  • 1
  • 3
  • 10