Examples of ViewItem


Examples of org.eclipse.ui.internal.cheatsheets.views.ViewItem

    if (expandRestoreStates == null)
      expandRestoreStates = new ArrayList();

    // Assemble lists of expanded items and completed items.
    for (int i = 0; i < items.size(); i++) {
      ViewItem item = (ViewItem) items.get(i);
      if (item.isCompleted()) {
        completedList.add(Integer.toString(i));
      }
      if (item.isExpanded()) {
        expandedList.add(Integer.toString(i));
      }

      if (item instanceof CoreItem) {
        CoreItem withsubs = (CoreItem) item;
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.views.model.ViewItem

    }

    // TODO refactoring: introduce view item list that offers this functionality
    public boolean hasViewItemsWithPartialSubset(Subset subset) {
        for (int i = 0; i < viewItemsJsArray.length(); i++) {
            ViewItem viewItem = viewItemsJsArray.get(i);
            if (viewItem.isStatus(subset, Status.PARTIAL)) {
                return true;
            }
        }
        return false;
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.views.model.ViewItem

    // TODO move into js array to java.util.List wrapper
    public void removeViewItem(ViewItem viewItem) {
        int occurences = 0;
        for (int i = 0; i < viewItemsJsArray.length(); i++) {
            ViewItem itemFromArray = viewItemsJsArray.get(i);
            if (itemFromArray == viewItem) {
                occurences++;
            } else if (occurences > 0) {
                viewItemsJsArray.set(i - occurences, itemFromArray);
            }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.views.model.ViewItem

        this.slot = slot;
    }

    @Override
    public String f(JsArgs args) {
        ViewItem viewItem = args.getObject();
        return viewItem.<String> getValue(slot);
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.views.model.ViewItem

        this.slot = slot;
    }

    @Override
    public String f(JsArgs args) {
        ViewItem viewItem = args.getObject();
        return viewItem.<Color> getValue(slot).toRGBa();
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.views.model.ViewItem

        this.slot = slot;
    }

    @Override
    public double f(JsArgs args) {
        ViewItem viewItem = args.getObject();
        return viewItem.getValueAsDouble(slot);
    }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.views.model.ViewItem

        this.decimalPlaces = decimalPlaces;
    }

    @Override
    public String f(JsArgs args) {
        ViewItem viewItem = args.getObject();
        double value = viewItem.getValueAsDouble(slot);
        return StringUtils.formatDecimal(value, decimalPlaces);
    }
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.