Examples of SetAttributeAction


Examples of client.net.sf.saxon.ce.trans.update.SetAttributeAction

            Item att = iter.next();
            if (att == null) {
                break;
            }
            if (att instanceof NodeInfo && ((NodeInfo)att).getNodeKind() == Type.ATTRIBUTE) {
                pul.add(new SetAttributeAction(parent, ((NodeInfo)att).getURI(), ((NodeInfo)att).getLocalPart(), att.getStringValue()));
            }
        }

        return null;
    }
View Full Code Here

Examples of com.cburch.logisim.tools.SetAttributeAction

      throws AttrTableSetException {
    if (!proj.getLogisimFile().contains(circ)) {
      String msg = Strings.get("cannotModifyCircuitError");
      throw new AttrTableSetException(msg);
    } else {
      SetAttributeAction act = new SetAttributeAction(circ,
          Strings.getter("changeAttributeAction"));
      act.set(comp, attr, value);
      proj.doAction(act);
    }
  }
View Full Code Here

Examples of com.cburch.logisim.tools.SetAttributeAction

    Circuit circuit = frame.getCanvas().getCircuit();
    if (selection.isEmpty() && circuit != null) {
      AttrTableCircuitModel circuitModel = new AttrTableCircuitModel(project, circuit);
      circuitModel.setValueRequested(attr, value);
    } else {
      SetAttributeAction act = new SetAttributeAction(circuit,
          Strings.getter("selectionAttributeAction"));
      for (Component comp : selection.getComponents()) {
        if (!(comp instanceof Wire)) {
          act.set(comp, attr, value);
        }
      }
      project.doAction(act);
    }
  }
View Full Code Here

Examples of com.cburch.logisim.tools.SetAttributeAction

    }
  }
 
  public Action getCommitAction(Circuit circuit, String oldText,
      String newText) {
    SetAttributeAction act = new SetAttributeAction(circuit,
        Strings.getter("changeLabelAction"));
    act.set(comp, labelAttr, newText);
    return act;
  }
View Full Code Here

Examples of com.cburch.logisim.tools.SetAttributeAction

    }

    @Override
    public Action getCommitAction(Circuit circuit, String oldText,
            String newText) {
        SetAttributeAction act = new SetAttributeAction(circuit,
                getFromLocale("changeLabelAction"));
        act.set(comp, labelAttr, newText);
        return act;
    }
View Full Code Here

Examples of com.cburch.logisim.tools.SetAttributeAction

            throws AttrTableSetException {
        if (!proj.getLogisimFile().contains(circ)) {
            String msg = getFromLocale("cannotModifyCircuitError");
            throw new AttrTableSetException(msg);
        } else {
            SetAttributeAction act = new SetAttributeAction(circ,
                    getFromLocale("changeAttributeAction"));
            act.set(comp, attr, value);
            proj.doAction(act);
        }
    }
View Full Code Here

Examples of com.cburch.logisim.tools.SetAttributeAction

        Circuit circuit = frame.getCanvas().getCircuit();
        if (selection.isEmpty() && circuit != null) {
            AttrTableCircuitModel circuitModel = new AttrTableCircuitModel(project, circuit);
            circuitModel.setValueRequested(attr, value);
        } else {
            SetAttributeAction act = new SetAttributeAction(circuit,
                    getFromLocale("selectionAttributeAction"));
            for (Component comp : selection.getComponents()) {
                if (!(comp instanceof Wire)) {
                    act.set(comp, attr, value);
                }
            }
            project.doAction(act);
        }
    }
View Full Code Here

Examples of org.springmodules.xt.ajax.action.SetAttributeAction

                this.messageSource.getMessage("message.successful", null, "Successful", LocaleContextHolder.getLocale()),
                TaggedText.Tag.SPAN);
       
        ReplaceContentAction action1 = new ReplaceContentAction("onSuccessMessage", img, msg);
        Effect action2 = new Effect("Shake", "onSuccessMessage");
        SetAttributeAction action3 = new SetAttributeAction("name.field", "value", "");
        SetAttributeAction action4 = new SetAttributeAction("url.field", "value", "");
       
        return new AjaxAction[]{action1, action2, action3, action4};
    }
View Full Code Here

Examples of org.springmodules.xt.ajax.action.SetAttributeAction

                    event.getHttpRequest().setAttribute("entry", entry);
                    // Render the entry via external JSP content:
                    JspComponent jsp = new JspComponent(event.getHttpRequest(), "/personal/includes/entryPanel.page");
                   
                    // Change the class of the web element that fired the event:
                    SetAttributeAction action1 = new SetAttributeAction(event.getElementId(), "class", "expanded");
                   
                    // Construct the CSS selector identifying the web page part that will be updated with the JSP content:
                    String selector = new StringBuilder("#").append(event.getElementId()).append("~").append("div.entryBody").toString();
                    ElementMatcher matcher = new SelectorMatcher(Arrays.asList(selector));
                    // Replace the content of the web page part identified by the selector:
View Full Code Here

Examples of org.springmodules.xt.ajax.action.SetAttributeAction

     */
    private AjaxResponse hideEntry(AjaxActionEvent event) {
        AjaxResponse response = new AjaxResponseImpl("UTF-8");
       
        // Change the class of the web element that fired the event:
        SetAttributeAction action1 = new SetAttributeAction(event.getElementId(), "class", "closed");
       
        // Construct the CSS selector identifying the web page part that will be updated :
        String selector = new StringBuilder("#").append(event.getElementId()).append("~").append("div.entryBody").toString();
        ElementMatcher matcher = new SelectorMatcher(Arrays.asList(selector));
        // Call a client-side javascript function for hiding the entry:
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.