Examples of selectItemPos()


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);
            if(!isFitText)
                getController().getDiagram().setFontSizeProp(newFontSize);

            boolean isTextColorChange = isCheckedModifyTextColorCheckBox();
            getController().getDiagram().setTextColorChange(isTextColorChange);
View Full Code Here

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

            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);
            oButton = xControlContainer.getControl("Item2");
View Full Code Here

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

            if (m_xGradientDialog != null) {
                XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xGradientDialog);
                setStartColorOfGradientDialog(getController().getDiagram().getStartColorProp());
                setEndColorOfGradientDialog(getController().getDiagram().getEndColorProp());
                XListBox xListBox = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("gradientModeListBox"));
                xListBox.selectItemPos(getController().getDiagram().getGradientDirectionProp(), true);

                m_xGradientDialogWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, m_xGradientDialog);
                m_IsShownGradientDialog = true;
                short exec = m_xGradientDialog.execute();
                m_IsShownGradientDialog = false;
View Full Code Here

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

                    if(getController().getDiagramType() != Controller.ORGANIGRAM){
                        xControl = (XControl) UnoRuntime.queryInterface(XControl.class, xControlContainer.getControl(disabledOptionButton));
                        enableControl(xControl, false);
                    }else{
                        XListBox xListBoxOfConvertDialog = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("lastHorLevelListBox"));
                        xListBoxOfConvertDialog.selectItemPos(OrgChartTree.LASTHORLEVEL, true);
                    }
                }

                if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP){
                    if(getController().getDiagramType() == Controller.VENNDIAGRAM){
View Full Code Here

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

            {
                int ikey;
                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()

        tEnv.addObjRelation("XChangeBroadcaster.Changer",
            new ifc.form._XChangeBroadcaster.Changer() {
                public void change(){
                    box.addItem("Item1", (short) 0);
                    box.addItem("Item2", (short) 1);
                    box.selectItemPos((short) 0, true);
                    box.selectItemPos((short) 1, true);
                }
            }
        );
View Full Code Here

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

            new ifc.form._XChangeBroadcaster.Changer() {
                public void change(){
                    box.addItem("Item1", (short) 0);
                    box.addItem("Item2", (short) 1);
                    box.selectItemPos((short) 0, true);
                    box.selectItemPos((short) 1, true);
                }
            }
        );

        return tEnv;
View Full Code Here

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

            try {
                int ikey;
                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){
                        sValue = JavaTools.replaceSubString(sValue, "","{D '");
                        sValue = JavaTools.replaceSubString(sValue, "","' }");
View Full Code Here

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

        tEnv.addObjRelation("XChangeBroadcaster.Changer",
            new ifc.form._XChangeBroadcaster.Changer() {
                public void change(){
                    box.addItem("Item1", (short) 0);
                    box.addItem("Item2", (short) 1);
                    box.selectItemPos((short) 0, true);
                    box.selectItemPos((short) 1, true);
                }
            }
        );
View Full Code Here

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

            new ifc.form._XChangeBroadcaster.Changer() {
                public void change(){
                    box.addItem("Item1", (short) 0);
                    box.addItem("Item2", (short) 1);
                    box.selectItemPos((short) 0, true);
                    box.selectItemPos((short) 1, true);
                }
            }
        );

        return tEnv;
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.