To add a new style, you just need to add a getter and setter to the skin class. In this case, I imagine the property would be named "showEllipsis" and would be a boolean. In the setter, you should call invalidateComponent() to ensure that the glyph vector is regenerated.
On Nov 30, 2010, at 12:04 PM, Eugene Kondrashev wrote: > Hi Greg > > Thanks for reply. Sooner or later i would need to implement that in some > lightweight form. > > Ok, one more question, can you point me please for an example of defining my > own style item? > > Thanks, > Eugene > > 2010/11/30 Greg Brown <[email protected]> > Hi Eugene, > > Unfortunately, the ellipsis style is not currently supported. There is an > open issue to add this feature: > > https://issues.apache.org/jira/browse/PIVOT-623 > > You could certainly modify LabelSkin to add this functionality. If you do so, > please consider submitting your changes for inclusion in the platform. > > Thanks, > Greg > > On Nov 30, 2010, at 11:25 AM, Eugene Kondrashev wrote: > >> Hi >> I wonder if Label has something like text-overflow: ellipsis css like >> attributes? >> >> From the LabelSkin sources i found that there is no logic to do that. >> >> Can you help me please achieving my goal. I need long text elipsis for the >> Label, so tell me if I've ommited something from th OOB behavior or if there >> is no mechanizm to do that, how can i implement it myself? >> I guess I need to implement my own LabelSkin that will have exactly the same >> code except public layout() method where glyphVectors is build. >> >> Any help appriciated, >> >> thanks, >> Eugene > >
