Re: D2W: Property level component for truncating a string?

2012-06-07 Thread Mark Wardle
There is one that truncates a string. I'm away from computer so can't give 
exact name. Something like Erxd2wDisplayLargeString ?


-- 
Dr. Mark Wardle
Sent with mobile


On Wednesday, 6 June 2012 at 04:30, Paul Hoadley wrote:

 Hello,
 
 Is there a property-level component that will truncate a string to some 
 specified length?  I'm thinking about attributes with long text values in 
 list views: it would be nice to display, say, the first 20 characters in the 
 table, and then the whole string in the inspect view.
 
 Obviously I can write a cover method to do this, but I was just wondering if 
 such a component already exists.
 
 
 -- 
 Paul Hoadley
 http://logicsquad.net/
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/mark%40wardle.org
 
 This email sent to m...@wardle.org 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: D2W: Property level component for truncating a string?

2012-06-07 Thread Paul Hoadley
On 07/06/2012, at 6:50 PM, Mark Wardle wrote:

 There is one that truncates a string. I'm away from computer so can't give 
 exact name. Something like Erxd2wDisplayLargeString ?

Thanks Mark: ERDDisplayLargeString.  I actually looked at that, and skipped 
over it because its Javadocs are empty.  I'll look into the source.

In any case, just out of curiosity if nothing else, I'm still interested to 
know how to get the value of a custom key set in the rules down in my custom 
property-level component.  If I've extended ERDCustomComponent, how do I get 
the D2WContext, given all of d2wContext(), localContext() and 
d2wContextFromBindings() are returning null?  Is that not the way to do it?  
(Specifically, I want to read a rule that sets the length at which to truncate 
the string.)


-- 
Paul Hoadley
http://logicsquad.net/



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: D2W: Property level component for truncating a string?

2012-06-06 Thread Paul Hoadley
On 06/06/2012, at 1:22 PM, David Holt wrote:

 Check out the flyover component. You can have both ways of viewing in your 
 list view if I'm not mistaken.

Thanks David.  I'll check it out.


-- 
Paul.

http://logicsquad.net/



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: D2W: Property level component for truncating a string?

2012-06-06 Thread Paul Hoadley
On 06/06/2012, at 4:40 PM, Paul Hoadley wrote:

 On 06/06/2012, at 1:22 PM, David Holt wrote:
 
 Check out the flyover component. You can have both ways of viewing in your 
 list view if I'm not mistaken.
 
 Thanks David.  I'll check it out.

I went on to create my own property-level component for this instead.  I'm 
_sure_ this is a FAQ, but: I've subclassed ERDCustomComponent, and I want to 
get a value for a custom key set in the rules—how do I access the D2WContext 
from the object?  All of d2wContext(), localContext() and 
d2wContextFromBindings() are returning null.


-- 
Paul Hoadley
http://logicsquad.net/



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: D2W: Property level component for truncating a string?

2012-06-05 Thread David Holt
Check out the flyover component. You can have both ways of viewing in your list 
view if I'm not mistaken.

Sent from my iPad

On 2012-06-05, at 8:30 PM, Paul Hoadley pa...@logicsquad.net wrote:

 Hello,
 
 Is there a property-level component that will truncate a string to some 
 specified length?  I'm thinking about attributes with long text values in 
 list views: it would be nice to display, say, the first 20 characters in the 
 table, and then the whole string in the inspect view.
 
 Obviously I can write a cover method to do this, but I was just wondering if 
 such a component already exists.
 
 
 -- 
 Paul Hoadley
 http://logicsquad.net/
 
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com