java-gnome version 4.0.19

org.gnome.gtk
Class CellRendererProgress

Object
  extended by org.freedesktop.bindings.Pointer
      extended by org.freedesktop.bindings.Proxy
          extended by org.gnome.glib.Object
              extended by org.gnome.gtk.Object
                  extended by org.gnome.gtk.CellRenderer
                      extended by org.gnome.gtk.CellRendererProgress

public class CellRendererProgress
extends CellRenderer

Renderer a progress indicator similar to a ProgressBar in a TreeViewColumn.

Since:
4.0.12
Author:
Andrew Cowie, Serkan Kaba

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gnome.gtk.Object
Object.Destroy
 
Constructor Summary
CellRendererProgress(CellLayout vertical)
          Construct a new CellRendererPixbuf.
 
Method Summary
 void setText(DataColumnString column)
          Indicate the DataColumn containing the plain text to render on the progress indicator.
 void setValue(DataColumnInteger column)
          Indicate the DataColumn containing the percentage complete to show in the indicator.
 
Methods inherited from class org.gnome.gtk.CellRenderer
setAlignment, setBackground, setBackground, setVisible
 
Methods inherited from class org.gnome.gtk.Object
connect, destroy
 
Methods inherited from class org.freedesktop.bindings.Pointer
toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CellRendererProgress

public CellRendererProgress(CellLayout vertical)
Construct a new CellRendererPixbuf.

Since:
4.0.17
Method Detail

setText

public void setText(DataColumnString column)
Indicate the DataColumn containing the plain text to render on the progress indicator. See ProgressBar's setText().

Since:
4.0.12

setValue

public void setValue(DataColumnInteger column)
Indicate the DataColumn containing the percentage complete to show in the indicator.

Percentage complete is expressed in the range of 0 to 100.

Note that for some reason this was not implemented in GTK like ProgressBar's fraction property, where percentage complete is expressed as a double between 0.0 and 1.0 !

Since:
4.0.12


java-gnome