Package com.sun.star.util

Examples of com.sun.star.util.XRefreshable


                            // And some text after the reference..
                            mxDocText.insertString ( mxDocText.getEnd(),
                                    " contains the sum of some random numbers.", false );

                            // Refresh the document
                            XRefreshable xRefresh = (XRefreshable) UnoRuntime.queryInterface(
                                    XRefreshable.class, mxDoc );
                            xRefresh.refresh();
                    }
            }
            catch (Exception e)
            {
                    e.printStackTrace ( System.out );
View Full Code Here


                            XPropertySet.class, xChildNamed );
                    // Set the Child_Section's background colour to blue
                    xChildProps.setPropertyValue( "BackColor", new Integer(13421823));

                    // Refresh the document, so the linked section matches the Child_Section
                    XRefreshable xRefresh = (XRefreshable) UnoRuntime.queryInterface(
                            XRefreshable.class, mxDoc );
                    xRefresh.refresh();
            }
            catch (Exception e)
            {
                    e.printStackTrace ( System.out );
            }
View Full Code Here

    }

    public void refreshTables()
    {
        final XTablesSupplier suppTables = UnoRuntime.queryInterface(XTablesSupplier.class, m_connection);
        final XRefreshable refresh = UnoRuntime.queryInterface( XRefreshable.class, suppTables.getTables() );
        refresh.refresh();
    }
View Full Code Here

    }
    return format;
  }

    protected void refreshDocument(XComponent document) {
    XRefreshable refreshable = (XRefreshable) UnoRuntime.queryInterface(XRefreshable.class, document);
    if (refreshable != null) {
      refreshable.refresh();
    }
  }
View Full Code Here

        xTextFieldsSupplier = (XTextFieldsSupplier) UnoRuntime.queryInterface(XTextFieldsSupplier.class, xTextDocument);
    }

    public void refreshTextFields()
    {
        XRefreshable xUp = (XRefreshable) UnoRuntime.queryInterface(XRefreshable.class, xTextFieldsSupplier.getTextFields());
        xUp.refresh();
    }
View Full Code Here

    }
    return format;
  }

    protected void refreshDocument(XComponent document) {
    XRefreshable refreshable = (XRefreshable) UnoRuntime.queryInterface(XRefreshable.class, document);
    if (refreshable != null) {
      refreshable.refresh();
    }
  }
View Full Code Here

TOP

Related Classes of com.sun.star.util.XRefreshable

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.