setEllipsis() public method

When non-null the text will be truncated "..." if it does not fit within the width of the label. Wrapping will not occur when ellipsis is enabled. Default is false.
public setEllipsis ( String ellipsis ) : void
ellipsis String Ellipsis.
return void
Ejemplo n.º 1
0
        public Window(string title, WindowStyle style)
        {
            Insist.isNotNull(title, "title cannot be null");

            touchable = Touchable.Enabled;
            clip      = true;

            titleLabel = new Label(title, new LabelStyle(style.titleFont, style.titleFontColor));
            titleLabel.setEllipsis(true);

            titleTable = new Table();
            titleTable.add(titleLabel).setExpandX().setFillX().setMinWidth(0);
            addElement(titleTable);

            setStyle(style);
            width  = 150;
            height = 150;
        }
Ejemplo n.º 2
0
        public Window( string title, WindowStyle style )
        {
            Assert.isNotNull( title, "title cannot be null" );

            touchable = Touchable.Enabled;
            clip = true;

            titleLabel = new Label( title, new LabelStyle( style.titleFont, style.titleFontColor ) );
            titleLabel.setEllipsis( true );

            titleTable = new Table();
            titleTable.add( titleLabel ).setExpandX().setFillX().setMinWidth( 0 );
            addElement( titleTable );

            setStyle( style );
            width = 150;
            height = 150;
        }