Examples of XListBox


Examples of com.sun.star.awt.XListBox

        // add to the list box control as item listener
        if ( m_useJavaCallbacks )
        {
            XControl control = m_document.getCurrentView().getControl( listBox );
            XListBox listBoxControl = (XListBox)UnoRuntime.queryInterface(
                XListBox.class, control );
            listBoxControl.addItemListener( this );
        }

        try
        {
            XStorable storable = (XStorable)m_document.query( XStorable.class );
View Full Code Here

Examples of com.sun.star.awt.XListBox

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

Examples of com.sun.star.awt.XListBox

            m_xGradientDialog = xDialogProv.createDialogWithHandler(sDialogURL, m_oListener);
            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;
                if(exec == 1){
                    XRadioButton xRadioButton = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("setGradientOptionButton"));
                    if(xRadioButton.getState()){
                        getController().getDiagram().setStartColorProp(getImageColorOfControl(xControlContainer.getControl("startColor")));
                        getController().getDiagram().setEndColorProp(getImageColorOfControl(xControlContainer.getControl("endColor")));
                        getController().getDiagram().setGradientDirectionProp(xListBox.getSelectedItemPos());
                        getController().getDiagram().setColorModeProp(Diagram.GRADIENT_COLOR_MODE);
                    }else{
                        enableControlDialogWindow(false);
                        executeColorTable2();
                        enableControlDialogWindow(true);
View Full Code Here

Examples of com.sun.star.awt.XListBox

                    //    disabledOptionButton += 4;
                    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

    }

    public short getSelectedItemPosOfConvertDialogListBox(){
        if(m_xConvertDialog != null){
            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xConvertDialog);
            XListBox xListBoxOfConvertDialog = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("lastHorLevelListBox"));
            return xListBoxOfConvertDialog.getSelectedItemPos();
        }
        return -1;
    }
View Full Code Here

Examples of com.sun.star.awt.XListBox

            m_xDialog = xDialogProv.createDialogWithHandler(sDialogURL, this);

            XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xDialog);

            Object oListBox = xControlContainer.getControl("fixListBox");
            XListBox xFixListBox = (XListBox) UnoRuntime.queryInterface(XListBox.class, oListBox);
            String cellHeader = createStringWithSpace(getDialogPropertyValue("Validator", "Validator.cellLabel.Label"), 22);
            String descHeader = getDialogPropertyValue("Validator", "Validator.errorLabel.Label");
            String label = cellHeader + descHeader;
            xFixListBox.addItem(label, (short) 0);

            Object oFixedText = xControlContainer.getControl("sheetNameLabel");
            m_xSheetFixedText = (XFixedText) UnoRuntime.queryInterface(XFixedText.class, oFixedText);

            oFixedText = xControlContainer.getControl("formulaLabel");
View Full Code Here

Examples of com.sun.star.awt.XListBox

    }
   
   
   
    public XListBox insertListBox(int _nPosX, int _nPosY, int _nHeight, int _nWidth, int _nStep, String[] _sStringItemList) {
        XListBox xListBox = null;
        try{
            // create a unique name by means of an own implementation...
            String sName = createUniqueName(m_xDlgModelNameContainer, "ListBox");
            // create a controlmodel at the multiservicefactory of the dialog model...       
            Object oListBoxModel = m_xMSFDialogModel.createInstance("com.sun.star.awt.UnoControlListBoxModel");
View Full Code Here

Examples of com.sun.star.awt.XListBox

        }
    }
   
   
    public XListBox insertListBox(int _nPosX, int _nPosY, int _nWidth, int _nStep, String[] _sStringItemList){
        XListBox xListBox = null;
        try{
            // create a unique name by means of an own implementation...
            String sName = createUniqueName(m_xDlgModelNameContainer, "ListBox");
           
            // create a controlmodel at the multiservicefactory of the dialog model...
View Full Code Here

Examples of com.sun.star.awt.XListBox

                    case SO_SECONDFIELDNAME:
                    case SO_THIRDFIELDNAME:
                    case SO_FOURTHFIELDNAME:
                        scontrolname = getControlName(EventObject.Source);
                        String scontrolnameSuffix = sIncSuffix + "_" + scontrolname.substring(scontrolname.length() - 1, scontrolname.length());
                        XListBox xCurFieldListBox = (XListBox) UnoRuntime.queryInterface(XListBox.class, CurUnoDialog.xDlgContainer.getControl(scontrolname));
                        String CurDisplayFieldName = xCurFieldListBox.getSelectedItem();
                        FieldColumn CurFieldColumn = new FieldColumn(oQueryMetaData, CurDisplayFieldName);
                        XControl xValueControl = CurUnoDialog.xDlgContainer.getControl("txtValue" + scontrolnameSuffix);
                        XInterface xValueModel = (XInterface) UnoDialog.getModel(xValueControl);
                        Helper.setUnoPropertyValue(xValueModel, "TreatAsNumber", new Boolean(CurFieldColumn.bIsNumberFormat));
                        final NumberFormatter aNumberFormatter = oQueryMetaData.getNumberFormatter();
View Full Code Here

Examples of com.sun.star.awt.XListBox

        protected void setCondition(PropertyValue _filtercondition)
        {
            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)
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.