Examples of XComboBox


Examples of com.sun.star.awt.XComboBox

               }

               break;

            case Component.XTYPE_XCOMBOBOX :
               XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class, compObject);

               if (listener instanceof ActionListener)
               {
                  xComboBox.addActionListener((XActionListener) listener);
               }
               else if (listener instanceof ItemListener)
               {
                  xComboBox.addItemListener((XItemListener) listener);
               }

               break;

            case Component.XTYPE_XLISTBOX :
View Full Code Here

Examples of com.sun.star.awt.XComboBox

            }

            Collections.sort(responses, new Comparer());
            fillItemsList();

            XComboBox xComboBox =
                     (XComboBox) UnoRuntime.queryInterface(XComboBox.class, xControlContainer.getControl(COMBO_PATH));
            xComboBox.addItem(currentHref, (short) 0);

            XTextComponent xComboText =
                     (XTextComponent) UnoRuntime.queryInterface(XTextComponent.class, xControlContainer
                              .getControl(COMBO_PATH));
            xComboText.setText(currentHref);
View Full Code Here

Examples of com.sun.star.awt.XComboBox

      return getTypedFileInfo(fileName);
   }

   public String[] getTypedFileInfo(String fileName) throws DialogException
   {
      XComboBox xComboType =
               (XComboBox) UnoRuntime.queryInterface(XComboBox.class, xControlContainer.getControl(COMBO_TYPE));

      String comboText = getEditFilterValue();

      int index = -1;

      for (int i = 0; i < xComboType.getItemCount(); i++)
      {
         String comboValue = xComboType.getItem((short) i);
         if (comboValue.equals(comboText))
         {
            index = i;
            break;
         }
View Full Code Here

Examples of com.sun.star.awt.XComboBox

         return false;
      }

      try
      {
         XComboBox xComboType =
                  (XComboBox) UnoRuntime.queryInterface(XComboBox.class, xControlContainer.getControl(COMBO_TYPE));

         ArrayList<FilterType> filters = filterLoader.getFilterTypes(currentModelName);
         if (filters.size() != 0)
         {
            for (int i = filters.size() - 1; i >= 0; i--)
            {
               FilterType currentFilter = filters.get(i);
               String filterStr = currentFilter.getLocalizedName() + " [." + currentFilter.getFileExtension() + "]";
               xComboType.addItem(filterStr, (short) 0);
               if (i == 0)
               {
                  setEditFilterValue(filterStr);
               }
            }
View Full Code Here

Examples of com.sun.star.awt.XComboBox

        }
    }

    public static void fillComboBox(Object list, Object[] items, Renderer renderer)
    {
        XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class, list);
        Helper.setUnoPropertyValue(UnoDataAware.getModel(list), "StringItemList", new String[]
                {
                });
        for (short i = 0; i < items.length; i++)
        {
            if (items[i] != null)
            {
                xComboBox.addItem((renderer != null ? renderer.render(items[i]) : items[i].toString()), i);
            }
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XComboBox

        }
    }
   
    public void enableCombo() {
        XCheckbox check1 = (XCheckbox)findComponent( obj, "check1" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( check1.isSelected() ) {
            combo.setEnabled( false );
        } else {
            combo.setEnabled( true );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XComboBox

        }
    }
   
    public void visibleCombo() {
        XCheckbox check2 = (XCheckbox)findComponent( obj, "check2" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( check2.isSelected() ) {
            combo.setVisible( false );
        } else {
            combo.setVisible( true );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XComboBox

        }
    }
   
    public void changeColorCombo() {
        XCheckbox check3 = (XCheckbox)findComponent( obj, "check3" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( check3.isSelected() ) {
            combo.setBackgroundColor( "#FF3333" );
        } else {
            combo.setBackgroundColor( "" );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XComboBox

        }
    }
   
    public void changeFontColorCombo() {
        XCheckbox check4 = (XCheckbox)findComponent( obj, "check4" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( check4.isSelected() ) {
            combo.setFontColor( "#CCEEEE" );
        } else {
            combo.setFontColor( "" );
        }
    }
View Full Code Here

Examples of net.xoetrope.html.XComboBox

        }
    }
   
    public void font10Combo() {
        XRadioButton radio1 = (XRadioButton)findComponent( obj, "radio1" );
        XComboBox combo = (XComboBox)findComponent( "combo" );
        if ( radio1.isSelected() ) {
            combo.setFontSize( 10 );
        }
    }
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.