Examples of Selection


Examples of org.locationtech.udig.tools.edit.support.Selection

    public String getName() {
        return Messages.SelectPointCommand_name;
    }

    public void rollback( IProgressMonitor monitor ) throws Exception {
        Selection selection = editBlackboard.getSelection();
        synchronized (selection) {
            editBlackboard.selectionClear();
            editBlackboard.selectionAddAll(oldPoints);
        }
    }
View Full Code Here

Examples of org.olap4j.query.Selection

      levelUniqueName = ((Member) sel.getRootElement()).getLevel().getUniqueName();
    }
    String totalsFunction = query.getTotalFunction(level.getUniqueName());
    List<QueryDimension> dimensions = dim.getAxis().getDimensions();
    QueryDimension lastDimension = dimensions.get(dimensions.size() - 1);
    Selection deepestSelection = null;
    int selectionDepth = -1;
    for (Selection selection : lastDimension.getInclusions()) {
      Level current = getSelectionLevel(selection);
      if (selectionDepth < current.getDepth()) {
        deepestSelection = selection;
View Full Code Here

Examples of org.openhab.model.sitemap.Selection

    snippet = StringUtils.replace(snippet, "%icon%", escapeURLPath(itemUIRegistry.getIcon(w)));
    snippet = StringUtils.replace(snippet, "%label_header%", getLabel(w));
   
    String state = itemUIRegistry.getState(w).toString();
    Selection selection = (Selection) w;
   
    StringBuilder rowSB = new StringBuilder();
    for(Mapping mapping : selection.getMappings()) {
      String rowSnippet = getSnippet("selection_row");
      rowSnippet = StringUtils.replace(rowSnippet, "%item%", w.getItem()!=null ? w.getItem() : "");
      rowSnippet = StringUtils.replace(rowSnippet, "%cmd%", mapping.getCmd()!=null ? mapping.getCmd() : "");
      rowSnippet = StringUtils.replace(rowSnippet, "%label%", mapping.getLabel()!=null ? mapping.getLabel() : "");
      if(state.equals(mapping.getCmd())) {
View Full Code Here

Examples of org.richfaces.model.selection.Selection

        // state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
      Object savedKey = table.getRowKey();

        final TableHolder holder = new TableHolder(table);

        final Selection gridSelection = table.getSelection() == null ? new SimpleSelection()
                : table.getSelection();
        final ClientSelection clientSelection = new ClientSelection();

        table.walk(context, new DataVisitor() {
            public void process(FacesContext context, Object rowKey,
                    Object argument) throws IOException {

                // TableHolder holder = (TableHolder) argument;

                if (gridSelection.isSelected(rowKey)) {

                    int i = holder.getRowCounter();

                    clientSelection.addIndex(i);
                }
View Full Code Here

Examples of org.richfaces.model.selection.Selection

  private void encodeSelection(FacesContext context, final UIScrollableDataTable grid) throws IOException {
    final ScrollableDataTableRendererState state = ScrollableDataTableRendererState.createState(context, grid);
   
    state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
   
    final Selection gridSelection =
      grid.getSelection() == null ?
          new SimpleSelection() :
            grid.getSelection();
    final ClientSelection clientSelection = new ClientSelection();
   
    grid.walk(context,
      new DataVisitor() {
        public void process(FacesContext context, Object rowKey,
            Object argument) throws IOException {
       
          if (gridSelection.isSelected(rowKey)) {

            int i = state.getRowIndex();
           
            clientSelection.addIndex(i);
          }
View Full Code Here

Examples of org.richfaces.model.selection.Selection

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

Examples of org.richfaces.model.selection.Selection

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

Examples of org.richfaces.model.selection.Selection

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

Examples of org.richfaces.model.selection.Selection

  if (this._selection != null) {
    return this._selection;
  }
  ValueExpression ve = getValueExpression("selection");
  if (ve != null) {
      Selection value = null;
     
      try {
      value = (Selection) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

Examples of org.richfaces.model.selection.Selection

  private void encodeSelection(FacesContext context, final UIScrollableDataTable grid) throws IOException {
    final ScrollableDataTableRendererState state = ScrollableDataTableRendererState.createState(context, grid);
   
    state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
   
    final Selection gridSelection =
      grid.getSelection() == null ?
          new SimpleSelection() :
            grid.getSelection();
    final ClientSelection clientSelection = new ClientSelection();
   
    grid.walk(context,
      new DataVisitor() {
        public void process(FacesContext context, Object rowKey,
            Object argument) throws IOException {
       
          if (gridSelection.isSelected(rowKey)) {

            int i = state.getRowIndex();
           
            clientSelection.addIndex(i);
          }
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.