Package com.sun.star.awt

Examples of com.sun.star.awt.Selection


    * Has <b> OK </b> status if selection set before is equal to a selection we
    * got using getSelection().
    */
    public void _getSelection() {
        oObj.setText("getSelection");
        Selection sel = new Selection(2,3);
        oObj.setSelection(sel);
        tRes.tested("getSelection()", ValueComparer.equalValue
            (oObj.getSelection(), sel));
    }
View Full Code Here


    private void focus(Object textControl)
    {
        UnoRuntime.queryInterface(XWindow.class, textControl).setFocus();
        XTextComponent xTextComponent = UnoRuntime.queryInterface(XTextComponent.class, textControl);
        String text = xTextComponent.getText();
        xTextComponent.setSelection(new Selection(0, text.length()));
        XControl xc = UnoRuntime.queryInterface(XControl.class, textControl);
        focusGained(xc);
    }
View Full Code Here

        // only perform if this is not the last row.
        int actuallRow = guiRow + nscrollvalue;
        if (actuallRow + 1 < scrollfields.size())
        {
            // get the current selection
            Selection selection = getSelection(control);

            // the last row should scroll...
            boolean scroll = guiRow == (nblockincrement - 1);
            if (scroll)
            {
View Full Code Here

        // only perform if this is not the first row
        int actuallRow = guiRow + nscrollvalue;
        if (actuallRow > 0)
        {
            // get the current selection
            Selection selection = getSelection(control);

            // the last row should scroll...
            boolean scroll = (guiRow == 0);
            if (scroll)
            {
View Full Code Here

    private void focus(Object textControl)
    {
        ((XWindow) UnoRuntime.queryInterface(XWindow.class, textControl)).setFocus();
        XTextComponent xTextComponent = (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, textControl);
        String text = xTextComponent.getText();
        xTextComponent.setSelection(new Selection(0, text.length()));
        XControl xc = (XControl) UnoRuntime.queryInterface(XControl.class, textControl);
        focusGained(xc);
    }
View Full Code Here

        // only perform if this is not the last row.
        int actuallRow = guiRow + nscrollvalue;
        if (actuallRow + 1 < scrollfields.size())
        {
            // get the current selection
            Selection selection = getSelection(control);

            // the last row should scroll...
            boolean scroll = guiRow == (nblockincrement - 1);
            if (scroll)
            {
View Full Code Here

        // only perform if this is not the first row
        int actuallRow = guiRow + nscrollvalue;
        if (actuallRow > 0)
        {
            // get the current selection
            Selection selection = getSelection(control);

            // the last row should scroll...
            boolean scroll = (guiRow == 0);
            if (scroll)
            {
View Full Code Here

     */
    private void focus(Object textControl) {
        ((XWindow)UnoRuntime.queryInterface(XWindow.class,textControl)).setFocus();
        XTextComponent xTextComponent = (XTextComponent)UnoRuntime.queryInterface(XTextComponent.class,textControl);
        String text = xTextComponent.getText();
        xTextComponent.setSelection( new Selection(0, text.length()) );
        XControl xc = (XControl)UnoRuntime.queryInterface(XControl.class,textControl);
        focusGained(xc);
    }
View Full Code Here

    synchronized void rowDown(int guiRow, Object control ) {
        // only perform if this is not the last row.
        int actuallRow = guiRow + nscrollvalue;
        if ( actuallRow + 1 < scrollfields.size() ) {
            // get the current selection
            Selection selection = getSelection(control );
           
            // the last row should scroll...
            boolean scroll = guiRow == ( nblockincrement - 1 );
            if (scroll)
                setScrollValue( nscrollvalue + 1 );
View Full Code Here

    synchronized void rowUp(int guiRow, Object control ) {
        // only perform if this is not the first row
        int actuallRow = guiRow + nscrollvalue;
        if ( actuallRow > 0 ) {
            // get the current selection
            Selection selection = getSelection( control );
           
            // the last row should scroll...
            boolean scroll = (guiRow == 0);
            if (scroll)
                setScrollValue( nscrollvalue - 1 );
View Full Code Here

TOP

Related Classes of com.sun.star.awt.Selection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.