Examples of removeItems()


Examples of com.sun.star.awt.XListBox.removeItems()

            String sDialogURL               = sPackageURL + "/dialogs/DiagramGallery2.xdl";
            XDialogProvider2 xDialogProv    = getDialogProvider();
            m_xGalleryDialog = xDialogProv.createDialogWithHandler( sDialogURL, m_oListener );
            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xGalleryDialog);
            XListBox diagramGroupList = (XListBox) UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("ListBox"));
            diagramGroupList.removeItems((short)3, (short)4);
            diagramGroupList.selectItemPos((short)0, true);
            Object oButton = xControlContainer.getControl("Item0");
            setImageOfObject(oButton, sPackageURL + "/images/simpleOrgchart.png", (short)-1);
            oButton = xControlContainer.getControl("Item1");
            setImageOfObject(oButton, sPackageURL + "/images/hororgchart.png", (short)-1);
View Full Code Here

Examples of com.sun.star.awt.XListBox.removeItems()

      XControl xListControl  = xDlgContainer.getControl(ListBoxName);
      XListBox xListBox = (XListBox) UnoRuntime.queryInterface(XListBox.class, xListControl);
      String FirstItem = xListBox.getItem((short) 0);
      if (FirstItem.equals(DelEntryName)){
    short SelPos = xListBox.getSelectedItemPos();
        xListBox.removeItems((short) 0, (short) 1);
        if (SelPos > 0){   
//      bSelectItem[0] = true;
      assignPropertyToDialogControl(ListBoxName, "SelectedItems", new short[SelPos]);
      xListBox.selectItemPos((short) (SelPos-1), true);
        }
View Full Code Here

Examples of com.sun.star.awt.XListBox.removeItems()

      Collections.sort(responses, new VersionComparer());

      XListBox xListBox =
               (XListBox) UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl(LST_VERSIONS));
      xListBox.removeItems((short) 0, xListBox.getItemCount());

      for (int i = responses.size() - 1; i >= 0; i--)
      {
         ResponseDoc curResponse = responses.get(i);
         xListBox.addItem(formatLine(curResponse), (short) 0);
View Full Code Here

Examples of com.sun.star.awt.XListBox.removeItems()

   }

   protected void fillItemsList()
   {
      XListBox xListBox = (XListBox) UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl(LST_ITEMS));
      xListBox.removeItems((short) 0, xListBox.getItemCount());

      for (int i = responses.size() - 1; i >= 0; i--)
      {
         ResponseDoc response = responses.get(i);
         xListBox.addItem(formatResponseLine(response), (short) 0);
View Full Code Here

Examples of com.sun.star.awt.XListBox.removeItems()

                short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
                fontSizeLB.selectItemPos(index, true);
                String label = fontSizeLB.getSelectedItem();
                if(!label.startsWith("*"))
                    label = "*" + label.substring(1);
                fontSizeLB.removeItems(index, (short)1);
                fontSizeLB.addItem(label, index);
                fontSizeLB.selectItemPos(index, true);

            }
            enableFontSizeListBox(!isFitText);
View Full Code Here

Examples of com.sun.star.awt.XListBox.removeItems()

                short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
                fontSizeLB.selectItemPos(index, true);
                String label = fontSizeLB.getSelectedItem();
                if(!label.startsWith("*"))
                    label = "*" + label.substring(1);
                fontSizeLB.removeItems(index, (short)1);
                fontSizeLB.addItem(label, index);
                fontSizeLB.selectItemPos(index, true);

            }
            enableFontSizeListBox(!isFitText);
View Full Code Here

Examples of com.sun.star.awt.XListBox.removeItems()

                short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
                fontSizeLB.selectItemPos(index, true);
                String label = fontSizeLB.getSelectedItem();
                if(!label.startsWith("*"))
                    label = "*" + label.substring(1);
                fontSizeLB.removeItems(index, (short)1);
                fontSizeLB.addItem(label, index);
                fontSizeLB.selectItemPos(index, true);

            }
            enableFontSizeListBox(!isFitText);
View Full Code Here

Examples of com.sun.star.awt.XListBox.removeItems()

                short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
                fontSizeLB.selectItemPos(index, true);
                String label = fontSizeLB.getSelectedItem();
                if(!label.startsWith("*"))
                    label = "*" + label.substring(1);
                fontSizeLB.removeItems(index, (short)1);
                fontSizeLB.addItem(label, index);
                fontSizeLB.selectItemPos(index, true);

            }
            enableFontSizeListBox(!isFitText);
View Full Code Here

Examples of com.sun.star.awt.XListBox.removeItems()

                short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
                fontSizeLB.selectItemPos(index, true);
                String label = fontSizeLB.getSelectedItem();
                if(!label.startsWith("*"))
                    label = "*" + label.substring(1);
                fontSizeLB.removeItems(index, (short)1);
                fontSizeLB.addItem(label, index);
                fontSizeLB.selectItemPos(index, true);

            }
            enableFontSizeListBox(!isFitText);
View Full Code Here

Examples of com.sun.star.awt.XListBox.removeItems()

            short index = FontSize._getIndexOfFontSize(getController().getDiagram().getFontSizeProp());
            fontSizeLB.selectItemPos(index, true);
            String label = fontSizeLB.getSelectedItem();
            if(label.startsWith("*"))
                label = " " + label.substring(1);
            fontSizeLB.removeItems(index, (short)1);
            fontSizeLB.addItem(label, index);
            fontSizeLB.selectItemPos(index, true);
            if(!isFitText)
                getController().getDiagram().setFontSizeProp(newFontSize);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.