Examples of removeItems()


Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

    public void onOpen(OpenEvent<TreeItem> event) {
        TreeItem node = event.getTarget();
        Object userObject = node.getUserObject();

        if ( userObject != null && userObject instanceof String && "rootNode".equals( (String) userObject ) ) {
            node.removeItems();
            setupPackageNode( node );
        }
    }
}
View Full Code Here

Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

        final PackageConfigData conf = (PackageConfigData) node.getUserObject();
        if ( conf != null ) {
            RepositoryServiceFactory.getPackageService().listSnapshots( conf.name,
                                                                 new GenericCallback<SnapshotInfo[]>() {
                                                                     public void onSuccess(SnapshotInfo[] snaps) {
                                                                         node.removeItems();
                                                                         for ( final SnapshotInfo snapInfo : snaps ) {
                                                                             TreeItem snap = new TreeItem( snapInfo.name );
                                                                             //snap.setTooltip(snapInfo.comment);
                                                                             snap.setUserObject( new Object[]{snapInfo, conf} );
                                                                             node.addItem( snap );
View Full Code Here

Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

    public void onOpen(OpenEvent<TreeItem> event) {
        final TreeItem node = event.getTarget();
        if ( ExplorerNodeConfig.TEST_SCENARIOS_ROOT_ID.equals( itemWidgets.get( node ) ) ) {
            RepositoryServiceFactory.getService().listPackages( new GenericCallback<PackageConfigData[]>() {
                public void onSuccess(PackageConfigData[] conf) {
                    node.removeItems();
                    removeTestScenarioIDs( itemWidgets );

                    for ( int i = 0; i < conf.length; i++ ) {
                        final PackageConfigData c = conf[i];
                        TreeItem pkg = new TreeItem( Util.getHeader( images.packages(),
View Full Code Here

Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

    public void onOpen(OpenEvent<TreeItem> event) {
        TreeItem node = event.getTarget();
        Object userObject = node.getUserObject();

        if ( userObject != null && userObject instanceof String && "rootNode".equals( (String) userObject ) ) {
            node.removeItems();
            setupPackageNode( node );
        }
    }
}
View Full Code Here

Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

        final PackageConfigData conf = (PackageConfigData) node.getUserObject();
        if ( conf != null ) {
            RepositoryServiceFactory.getService().listSnapshots( conf.name,
                                                                 new GenericCallback<SnapshotInfo[]>() {
                                                                     public void onSuccess(SnapshotInfo[] snaps) {
                                                                         node.removeItems();
                                                                         for ( final SnapshotInfo snapInfo : snaps ) {
                                                                             TreeItem snap = new TreeItem( snapInfo.name );
                                                                             //snap.setTooltip(snapInfo.comment);
                                                                             snap.setUserObject( new Object[]{snapInfo, conf} );
                                                                             node.addItem( snap );
View Full Code Here

Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

    public void onOpen(OpenEvent<TreeItem> event) {
        final TreeItem node = event.getTarget();
        if ( ExplorerNodeConfig.STATES_ROOT_ID.equals( itemWidgets.get( node ) ) ) {
            removeStateIDs( itemWidgets );
            node.removeItems();
            ExplorerNodeConfig.setupStatesStructure( node,
                                                     itemWidgets );
        } else if ( ExplorerNodeConfig.CATEGORY_ROOT_ID.equals( itemWidgets.get( node ) ) ) {
            removeCategoryIDs( itemWidgets );
            node.removeItems();
View Full Code Here

Examples of com.google.gwt.user.client.ui.TreeItem.removeItems()

            node.removeItems();
            ExplorerNodeConfig.setupStatesStructure( node,
                                                     itemWidgets );
        } else if ( ExplorerNodeConfig.CATEGORY_ROOT_ID.equals( itemWidgets.get( node ) ) ) {
            removeCategoryIDs( itemWidgets );
            node.removeItems();
            ExplorerNodeConfig.setupCategoriesStructure( node,
                                                         itemWidgets );
        }
    }
View Full Code Here

Examples of com.google.gwt.widgetideas.client.FastTreeItem.removeItems()

        FastTree t = (FastTree) mProcessTable.getWidget(i, 1);
        for (int j =0; j < t.getChild(0).getChildCount(); j++) {
         
          FastTreeItem curItem = t.getChild(0).getChild(j);
          if (curItem.getText().equals(p.getName())) {
            curItem.removeItems();
            for (Workflow w : p.getWorkflows()) {
              Anchor a = new Anchor(w.getId());
              a.addClickHandler(
                  mController.getWorkflowHandler(w));
              curItem.addItem(a);
View Full Code Here

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

            Object oComboBox = xControlContainer.getControl("StyleComboBox");
            XComboBox xComboBox = (XComboBox) UnoRuntime.queryInterface(XComboBox.class, oComboBox);
            if(getController().getDiagramType() == Controller.CYCLEDIAGRAM){
                setImageColorOfControlDialog(10079487);
                xComboBox.removeItems((short)1, (short)3);
                String[] newStyles = { getDialogPropertyValue("Strings", "CycleStyleComboBox1"),
                                       getDialogPropertyValue("Strings", "CycleStyleComboBox2"),
                                       getDialogPropertyValue("Strings", "CycleStyleComboBox3")
                                     };
                xComboBox.addItems(newStyles, (short)1);
View Full Code Here

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

                                     };
                xComboBox.addItems(newStyles, (short)1);
            }
            if(getController().getDiagramType() == Controller.PYRAMIDDIAGRAM){
                setImageColorOfControlDialog(10079487);
                xComboBox.removeItems((short)1, (short)3);
                String[] newStyles = { getDialogPropertyValue("Strings", "PyramidStyleComboBox1"),
                                       getDialogPropertyValue("Strings", "PyramidStyleComboBox2"),
                                       getDialogPropertyValue("Strings", "PyramidStyleComboBox3")
                                     };
                xComboBox.addItems(newStyles, (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.