Re: [qooxdoo-devel] progress bar in a table

2011-04-21 Thread John de la Garza
On Thu, Apr 21, 2011 at 2:37 AM, Gabriel Munteanu
 wrote:

> clicking next and previous works just fine.
> maybe there is something in your app that does something, or maybe another
> plotter presents this bug [I used canvascell.plotter.Bar]. What plotter do
> you use ?
>
>

I use Bar, too...  I have a deadline so I can't mess with that
anymore, I need to accept it for a demo, it doesn't cause any real
problem now.  I need to focus on other parts of the demo now, but I
will post a some code that can show my results.

I see that a queue object is continuing to grow and never shrinks in
my Renderer object.  Maybe I am doing something to cause these
problems with a bug in my code.  I'll post back next week when I get
back to that.

Thanks for the help.

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] progress bar in a table

2011-04-21 Thread Gabriel Munteanu
i tried it too.
there is no rendering problem, and nothing in the console.

can you try out this example [ it is a newly generated qooxdoo app
Application.js file]:
-
/* 

   Copyright:

   License:

   Authors:

 */

/* 

#asset(for2/*)

 */

/**
 * This is the main application class of your custom application "for2"
 */
qx.Class.define("for2.Application",
{
  extend : qx.application.Standalone,



  /*
 
*
 MEMBERS
 
*
  */

  members :
  {
/**
 * This method contains the initial application code and gets called 
 * during startup of the application
 * 
 * @lint ignoreDeprecated(alert)
 */
main : function()
{
  // Call super class
  this.base(arguments);

  // Enable logging in debug variant
  if (qx.core.Environment.get("qx.debug"))
  {
// support native logging capabilities, e.g. Firebug for Firefox
qx.log.appender.Native;
// support additional cross-browser console. Press F7 to toggle
visibility
qx.log.appender.Console;
  }

  /*
 
-
Below is your actual application code...
 
-
  */

  // Create a button
  var data = [[1, 'First name 1', 'Last name 1'],
  [2, 'First name 2', 'Last name 2']];
  var model = new qx.ui.table.model.Simple();
  model.setData(data);
  model.setColumns(['ID', 'First names', 'Last names'], ['id', 'first',
'last']);

  var table = new qx.ui.table.Table(model);
  var columnmodel = table.getTableColumnModel();
  var barPlotter = new canvascell.plotter.Bar({
fill:   '#ff',
border: '#00ff00' 
  });
  columnmodel.setDataCellRenderer(0,new
canvascell.Renderer(barPlotter));

  var table2 = new qx.ui.table.Table(model);
  var columnmodel2 = table2.getTableColumnModel();
  var barPlotter2 = new canvascell.plotter.Bar({
fill:   '#ff',
border: '#00ff00' 
  });
  columnmodel2.setDataCellRenderer(0,new
canvascell.Renderer(barPlotter2));

  var doc = this.getRoot();
  var stack = new qx.ui.container.Stack();

  // add some children
  stack.add(table);
  stack.add(table2);
  
  
  var prev = new qx.ui.form.Button("Previous",
"icon/22/actions/go-previous.png");
  var next = new qx.ui.form.Button("Next",
"icon/22/actions/go-next.png");
  
  prev.addListener("execute", stack.previous, stack);
  next.addListener("execute", stack.next, stack);

  doc.add(prev, {
left: 100, 
top: 50
  });
  doc.add(next, {
left: 100, 
top: 150
  });
  doc.add(stack, {
left: 300, 
top: 50
  });
}
  }
});
---
just create a new qooxdoo app, replace Application.js contents with the
above, and make sure you have something similar in your config.json:
"libraries" : 
{
  "library" :
  [
{
  "manifest" : "contrib://CanvasCell/trunk/Manifest.json",
  "uri" : "../../../NetBeansProjects/qooxdoo-contrib/CanvasCell/trunk"
}
  ]
},

clicking next and previous works just fine.
maybe there is something in your app that does something, or maybe another
plotter presents this bug [I used canvascell.plotter.Bar]. What plotter do
you use ?

cheers,
Gabi

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/progress-bar-in-a-table-tp6274854p6293712.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] progress bar in a table

2011-04-20 Thread John de la Garza
>>
>> http://demo.qooxdoo.org/contrib/demobrowser/#CanvasCell~trunk%2Fdefault%2F1.4%2Findex.html
>>
>>


Has anyone used this code with tables that are on stacks?  I have a
stack of tables and when I bring a page to the front it wont render
on the first view.  If I click a sorter on the table it then looks
fine.

I'm getting output from this code from Renderer.js (line 136):

var par = qx.dom.Element.getParentElement(el);
 var size = qx.bom.element.Dimension.getContentSize(par);

size.width is a negative number

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] progress bar in a table

2011-04-15 Thread John de la Garza
On Fri, Apr 15, 2011 at 8:26 AM, Bruce Bockius  wrote:
> You might checkout
>
> http://demo.qooxdoo.org/contrib/demobrowser/#CanvasCell~trunk%2Fdefault%2F1.4%2Findex.html
>
>
> --

wow, looks like my job is almost done... thanks again

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] progress bar in a table

2011-04-15 Thread Bruce Bockius
You might checkout

http://demo.qooxdoo.org/contrib/demobrowser/#CanvasCell~trunk%2Fdefault%2F1.4%2Findex.html


-Original Message-
From: John de la Garza [mailto:[email protected]] 
Sent: Friday, April 15, 2011 9:13 AM
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] progress bar in a table

On Fri, Apr 15, 2011 at 1:24 AM, Gabriel Munteanu  
wrote:
> Hi,
>
> First, you cannot use the progressbar in the data model.
> what you should have is :
> var data = [[1,2],[1,50]];

yes I now realize that I wasn't making sense to try that...
>
> then, in order to show the second column [values 2 and 50] you should 
> choose a renderer 
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.columnmodel.Basic~setDataCellRenderer.
> Unfortunately, you cannot use a widget [as qx.ui.indicator.ProgressBar 
> is], but only low-level dom nodes. you can use existing renderers:
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.cellrenderer
> or extend one, and make it look like a progressbar. [check 
> createDataCellHtml method].
>
> finally, you could indeed use the widget qx.ui.indicator.ProgressBar 
> when in edit mode.
> check:
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.columnmodel.Bas
> ic~setCellEditorFactory and implement qx.ui.table.ICellEditorFactory 
> to use qx.ui.indicator.ProgressBar.
>

Thank you, this is very helpful

--
Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- 
Increasing the use of server virtualization is a top priority.Virtualization 
can reduce costs, simplify management, and improve application availability and 
disaster protection. Learn more about boosting the value of server 
virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] progress bar in a table

2011-04-15 Thread John de la Garza
On Fri, Apr 15, 2011 at 1:24 AM, Gabriel Munteanu
 wrote:
> Hi,
>
> First, you cannot use the progressbar in the data model.
> what you should have is :
> var data = [[1,2],[1,50]];

yes I now realize that I wasn't making sense to try that...
>
> then, in order to show the second column [values 2 and 50] you should choose
> a renderer
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.columnmodel.Basic~setDataCellRenderer.
> Unfortunately, you cannot use a widget [as qx.ui.indicator.ProgressBar is],
> but only low-level dom nodes. you can use existing renderers:
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.cellrenderer
> or extend one, and make it look like a progressbar. [check
> createDataCellHtml method].
>
> finally, you could indeed use the widget qx.ui.indicator.ProgressBar when in
> edit mode.
> check:
> http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.columnmodel.Basic~setCellEditorFactory
> and implement qx.ui.table.ICellEditorFactory to use
> qx.ui.indicator.ProgressBar.
>

Thank you, this is very helpful

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] progress bar in a table

2011-04-15 Thread Gabriel Munteanu
Hi,

First, you cannot use the progressbar in the data model.
what you should have is :
var data = [[1,2],[1,50]];

then, in order to show the second column [values 2 and 50] you should choose
a renderer
http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.columnmodel.Basic~setDataCellRenderer.
Unfortunately, you cannot use a widget [as qx.ui.indicator.ProgressBar is],
but only low-level dom nodes. you can use existing renderers:
http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.cellrenderer
or extend one, and make it look like a progressbar. [check
createDataCellHtml method].

finally, you could indeed use the widget qx.ui.indicator.ProgressBar when in
edit mode.
check:
http://demo.qooxdoo.org/current/apiviewer/#qx.ui.table.columnmodel.Basic~setCellEditorFactory
and implement qx.ui.table.ICellEditorFactory to use
qx.ui.indicator.ProgressBar.

cheers,
Gabi

--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/progress-bar-in-a-table-tp6274854p6275579.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel