Examples of selectItemPos()


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

            try
            {
                XListBox xFieldsListBox = (XListBox) UnoRuntime.queryInterface(XListBox.class, ControlElements[SOLSTFIELDNAME]);
                xFieldsListBox.selectItem(_filtercondition.Name, true);
                XListBox xOperatorListBox = (XListBox) UnoRuntime.queryInterface(XListBox.class, ControlElements[SOLSTOPERATOR]);
                xOperatorListBox.selectItemPos((short) (_filtercondition.Handle - 1), true);

                if (AnyConverter.isString(_filtercondition.Value))
                {
                    String sValue = AnyConverter.toString(_filtercondition.Value);
                    if (sValue.indexOf("{D '") > -1)
View Full Code Here

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

    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);
        }
      }
//      bSelectItem[0] = true;
  }
  catch (Exception exception){
View Full Code Here

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

            }else{
                ((XRadioButton) UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("fontSizeOptionButton"))).setState(true);
                XListBox fontSizeLB = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("fontSizeListBox"));
                //short selectedItemPos = fontSizeLB.getSelectedItemPos();
                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);
View Full Code Here

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

                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);
            ((XCheckBox) UnoRuntime.queryInterface(XCheckBox.class, xControlContainer.getControl("modifyTextColorCheckBox"))).setState((short)0);
            enableTextColorImageControl(false);
View Full Code Here

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

            }else{
                ((XRadioButton) UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("fontSizeOptionButton"))).setState(true);
                XListBox fontSizeLB = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("fontSizeListBox"));
                //short selectedItemPos = fontSizeLB.getSelectedItemPos();
                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);
View Full Code Here

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

                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);
            ((XCheckBox) UnoRuntime.queryInterface(XCheckBox.class, xControlContainer.getControl("modifyTextColorCheckBox"))).setState((short)0);
            enableTextColorImageControl(false);
View Full Code Here

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

            }else{
                ((XRadioButton) UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("fontSizeOptionButton"))).setState(true);
                XListBox fontSizeLB = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("fontSizeListBox"));
                //short selectedItemPos = fontSizeLB.getSelectedItemPos();
                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);
View Full Code Here

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

                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);
            ((XCheckBox) UnoRuntime.queryInterface(XCheckBox.class, xControlContainer.getControl("modifyTextColorCheckBox"))).setState((short)0);
            enableTextColorImageControl(false);
View Full Code Here

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

            }else{
                ((XRadioButton) UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("fontSizeOptionButton"))).setState(true);
                XListBox fontSizeLB = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("fontSizeListBox"));
                //short selectedItemPos = fontSizeLB.getSelectedItemPos();
                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);
View Full Code Here

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

                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);
            if(getController().getDiagram().isTextColorChange())
                ((XCheckBox) UnoRuntime.queryInterface(XCheckBox.class, xControlContainer.getControl("modifyTextColorCheckBox"))).setState((short)1);
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.