Package com.sun.star.awt

Examples of com.sun.star.awt.XFixedText


        }
    }
   
   
    public XFixedText insertFixedText(XMouseListener _xMouseListener, int _nPosX, int _nPosY, int _nWidth, int _nStep, String _sLabel){
        XFixedText xFixedText = null;
        try{
            // create a unique name by means of an own implementation...
            String sName = createUniqueName(m_xDlgModelNameContainer, "Label");
           
            // create a controlmodel at the multiservicefactory of the dialog model...
View Full Code Here


            // increase click counter
            _nCounts++;
           
            // set label text
            Object label = _xControlCont.getControl( "Label1" );
            XFixedText xLabel = ( XFixedText )UnoRuntime.queryInterface(
                XFixedText.class, label );           
            xLabel.setText( _labelPrefix + _nCounts );
        }   
View Full Code Here

            // increase click counter
            _nCounts++;
           
            // set label text
            Object label = _xControlCont.getControl( "Label1" );
            XFixedText xLabel = ( XFixedText )UnoRuntime.queryInterface(
                XFixedText.class, label );           
            xLabel.setText( _labelPrefix + _nCounts );
        }   
View Full Code Here

        }
    }
   
   
    public XFixedText insertFixedText(XMouseListener _xMouseListener, int _nPosX, int _nPosY, int _nWidth, int _nStep, String _sLabel){
        XFixedText xFixedText = null;
        try{
            // create a unique name by means of an own implementation...
            String sName = createUniqueName(m_xDlgModelNameContainer, "Label");
           
            // create a controlmodel at the multiservicefactory of the dialog model...
View Full Code Here

                                                              xMSF.createInstance(
                                                                      "com.sun.star.awt.UnoControlFixedText"));

            txtControl.setModel(txtModel);

            XFixedText xFT = (XFixedText) UnoRuntime.queryInterface(
                                     XFixedText.class, txtControl);
            xFT.setText("FxedText");

            XControlContainer ctrlCont = (XControlContainer) UnoRuntime.queryInterface(
                                                 XControlContainer.class,
                                                 dlgControl);
View Full Code Here

                                                              xMSF.createInstance(
                                                                      "com.sun.star.awt.UnoControlFixedText"));

            txtControl.setModel(txtModel);

            XFixedText xFT = (XFixedText) UnoRuntime.queryInterface(
                                     XFixedText.class, txtControl);
            xFT.setText("FxedText");

            XControlContainer ctrlCont = (XControlContainer) UnoRuntime.queryInterface(
                                                 XControlContainer.class,
                                                 dlgControl);
View Full Code Here

                String[] sServices2 = xServiceInfo2.getSupportedServiceNames();
               
                XWindow xWindow = (XWindow)UnoRuntime.queryInterface(XWindow.class, aFixedText);
                xWindow.setVisible(true);

                XFixedText xFixedText = (XFixedText)UnoRuntime.queryInterface(XFixedText.class, aFixedText);
                xFixedText.setText("Dies ist ein String");

                XControl xControl = (XControl)UnoRuntime.queryInterface(XControl.class, xFixedText);
                xControl.setModel(xFixedTextModel);

                XLayoutConstrains xLayoutConstrains = (XLayoutConstrains)UnoRuntime.queryInterface(XLayoutConstrains.class, aFixedText);
View Full Code Here

   public boolean launchBeforeOpen()
   {
      try
      {
         XFixedText xLabelHead =
                  (XFixedText) UnoRuntime.queryInterface(XFixedText.class, xControlContainer.getControl(LBL_TABLEHEAD));

         String headerValue = "Version Name";
         while (headerValue.length() < NAME_LEN)
         {
            headerValue += " ";
         }

         headerValue += "Size";
         while (headerValue.length() < SIZE_LEN)
         {
            headerValue += " ";
         }

         headerValue += "Created";
         while (headerValue.length() < CREATED_LEN)
         {
            headerValue += " ";
         }

         headerValue += "Owner";

         xLabelHead.setText(headerValue);

      }
      catch (Exception exc)
      {
         LOG.info("Unhandled exception: " + exc.getMessage(), exc);
View Full Code Here

   public boolean launchBeforeOpen()
   {
      try
      {
         XFixedText xLabelHead =
                  (XFixedText) UnoRuntime.queryInterface(XFixedText.class, xControlContainer.getControl(LBL_TABLEHEAD));

         String headerValue = "*";
         while (headerValue.length() < VNAME_LEN)
         {
            headerValue += " ";
         }

         headerValue += "Name";
         while (headerValue.length() < NAME_LEN)
         {
            headerValue += " ";
         }

         headerValue += "Size";
         while (headerValue.length() < SIZE_LEN)
         {
            headerValue += " ";
         }

         headerValue += "Mime-Type";
         while (headerValue.length() < MIMETYPE_SIZE)
         {
            headerValue += " ";
         }

         headerValue += "Last Modified";
         while (headerValue.length() < LASTMODIFIED_SIZE)
         {
            headerValue += " ";
         }

         headerValue += "Comments";

         xLabelHead.setText(headerValue);

      }
      catch (Exception exc)
      {
         LOG.info("Unhandled exception: " + exc.getMessage(), exc);
View Full Code Here

            String[] sServices2 = xServiceInfo2.getSupportedServiceNames();

            XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, aFixedText);
            xWindow.setVisible(true);

            XFixedText xFixedText = (XFixedText) UnoRuntime.queryInterface(XFixedText.class, aFixedText);
            xFixedText.setText("Dies ist ein String");

            XControl xControl = (XControl) UnoRuntime.queryInterface(XControl.class, xFixedText);
            xControl.setModel(xFixedTextModel);

            XLayoutConstrains xLayoutConstrains = (XLayoutConstrains) UnoRuntime.queryInterface(XLayoutConstrains.class, aFixedText);
View Full Code Here

TOP

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

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.