Re: [RFC] adding components to TextArea

2010-06-20 Thread Greg Brown
My comments below - Noel, please feel free to provide additional detail. a) How can I extract out the current line and column number? TextArea#getRowIndex() will give you the line number. There is currently no way to determine the column index. However, assuming that we define column index as

RE: [RFC] adding components to TextArea

2010-06-20 Thread aappddeevv
invoke a logical action. Obviously, keystroke defaults are a must. -Original Message- From: Greg Brown [mailto:gkbr...@mac.com] Sent: Sunday, June 20, 2010 10:08 AM To: dev@pivot.apache.org Subject: Re: [RFC] adding components to TextArea My comments below - Noel, please feel free to provide

RE: [RFC] adding components to TextArea

2010-06-19 Thread aappddeevv
Cc: aappddeevv; 'Greg Brown' Subject: Re: [RFC] adding components to TextArea TextArea exposes the document model, along with formatting and styling information, via the org.apache.pivot.wtk.text.* classes. I'm busy building a demo application (basically a wordpad-clone) that shows off how

Re: [RFC] adding components to TextArea

2010-06-07 Thread Noel Grandin
Hi The new child components are laid out using the existing *NodeView inner classes in TextAreaSkin. Currently, I set the size of the child components during the layout() operation, and I set their position during the paint() operation. I have to do it this way because TextAreaSkin only

Re: [RFC] adding components to TextArea

2010-06-07 Thread Greg Brown
I have to do it this way because TextAreaSkin only calculates position information during paint(). I don't think that's accurate. It should be calculated in layout(), when validate() is called on the document view. You should be able to position/size the components after that call.

Re: [RFC] adding components to TextArea

2010-06-07 Thread Todd Volkert
Should the 1.5.x branch be created from the 1.5 tag or from the current trunk? -T On Mon, Jun 7, 2010 at 9:33 AM, Greg Brown gkbr...@mac.com wrote: I think that traversing the view hierarchy again is OK. Also, I think we should probably consider creating a 1.5.x branch at this point. That

Re: [RFC] adding components to TextArea

2010-06-07 Thread Greg Brown
I was thinking we'd create it from trunk. - Reply message - From: Todd Volkert tvolk...@gmail.com Date: Mon, Jun 7, 2010 11:03 am Subject: [RFC] adding components to TextArea To: dev@pivot.apache.org Should the 1.5.x branch be created from the 1.5 tag or from the current trunk? -T

Re: [RFC] adding components to TextArea

2010-06-07 Thread Todd Volkert
create it from trunk. - Reply message - From: Todd Volkert tvolk...@gmail.com Date: Mon, Jun 7, 2010 11:03 am Subject: [RFC] adding components to TextArea To: dev@pivot.apache.org Should the 1.5.x branch be created from the 1.5 tag or from the current trunk? -T On Mon, Jun 7, 2010