Examples of Constants


Examples of org.drools.guvnor.client.messages.Constants

    public CallMethodLabelButton(ExecutionTrace previousEx, Scenario scenario,
                                 ExecutionTrace executionTrace, ScenarioWidget scenarioWidget) {

        add(new CallMethodOnNewDataButton(previousEx, scenario, executionTrace,
                scenarioWidget));
        Constants constants = ((Constants) GWT.create(Constants.class));
        add(new SmallLabel(constants.CALL()));

    }
View Full Code Here

Examples of org.drools.guvnor.client.messages.Constants

        VerticalPanel vp = new VerticalPanel();
        vp.setWidth("100%");
        vp.setHeight("100%");
        vp.add(this.externalFrame);

        Constants constants = ((Constants) GWT.create(Constants.class));
        okButton = new Button(constants.OK());

        //cancel button with default handler
        cancelButton = new Button(constants.Cancel(),
                new ClickHandler() {
                    public void onClick(ClickEvent event) {
                        hide();
                    }
                });
View Full Code Here

Examples of org.drools.workbench.screens.guided.rule.client.resources.i18n.Constants

        } ).getRuleNamesForPackage( path, model.getPackageName() );
    }

    @Override
    public String getTitle(String fileName) {
        Constants constants = GWT.create(Constants.class);
        return constants.GuidedRuleEditorTitle() + " [" + fileName + "]";
    }
View Full Code Here

Examples of org.jvnet.glassfish.comms.sipagent.support.Constants

    @Test
    public void createController() {
        System.out.println("createController");
        Controller result = ControllerFactory.instance().createController(
                   new Constants());
        assertNotNull(result);
        result.close();
       
    } /* Test of createController method, of class ControllerFactory. */
 
View Full Code Here

Examples of org.jvnet.glassfish.comms.sipagent.support.Constants

     * backend as well as the graphical components. Call initAgent after
     * construction!
     */
    public AgentMainJPanel(int anInstanceNr) {
        itsID = anInstanceNr;
        itsConstants = new Constants();
       
        initComponents();
        // fix the table model headers... which would be hard coded otherwise
        itsMessageHistory.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
View Full Code Here

Examples of org.springframework.core.Constants

      NodeList childNodes = element.getChildNodes();
      List eventTypes = DomUtils.getChildElementsByTagName(element, EVENT_TYPE);
      if (eventTypes != null && eventTypes.size() > 0) {
        // compute event type
        int eventType = 0;
        Constants types = new Constants(Event.class);
        for (Iterator iter = eventTypes.iterator(); iter.hasNext();) {
          Element evenTypeElement = (Element) iter.next();
          eventType |= types.asNumber(DomUtils.getTextValue(evenTypeElement)).intValue();
        }
        definitionBuilder.addPropertyValue(EVENT_TYPE, new Integer(eventType));
      }

      List nodeTypeNames = DomUtils.getChildElementsByTagName(element, NODE_TYPE_NAME);
View Full Code Here

Examples of org.springframework.core.Constants

    }
    if (isValidateExistingTransaction()) {
      if (definition.getIsolationLevel() != TransactionDefinition.ISOLATION_DEFAULT) {
        Integer currentIsolationLevel = TransactionSynchronizationManager.getCurrentTransactionIsolationLevel();
        if (currentIsolationLevel == null || currentIsolationLevel.intValue() != definition.getIsolationLevel()) {
          Constants isoConstants = DefaultTransactionDefinition.constants;
          throw new IllegalTransactionStateException("Participating transaction with definition [" +
              definition + "] specifies isolation level which is incompatible with existing transaction: " +
              (currentIsolationLevel != null ?
                  isoConstants.toCode(currentIsolationLevel, DefaultTransactionDefinition.PREFIX_ISOLATION) :
                  "(unknown)"));
        }
      }
      if (!definition.isReadOnly()) {
        if (TransactionSynchronizationManager.isCurrentTransactionReadOnly()) {
View Full Code Here

Examples of org.springframework.core.Constants

    }
    if (isValidateExistingTransaction()) {
      if (definition.getIsolationLevel() != TransactionDefinition.ISOLATION_DEFAULT) {
        Integer currentIsolationLevel = TransactionSynchronizationManager.getCurrentTransactionIsolationLevel();
        if (currentIsolationLevel == null || currentIsolationLevel.intValue() != definition.getIsolationLevel()) {
          Constants isoConstants = DefaultTransactionDefinition.constants;
          throw new IllegalTransactionStateException("Participating transaction with definition [" +
              definition + "] specifies isolation level which is incompatible with existing transaction: " +
              (currentIsolationLevel != null ?
                  isoConstants.toCode(currentIsolationLevel, DefaultTransactionDefinition.PREFIX_ISOLATION) :
                  "(unknown)"));
        }
      }
      if (!definition.isReadOnly()) {
        if (TransactionSynchronizationManager.isCurrentTransactionReadOnly()) {
View Full Code Here

Examples of org.springframework.core.Constants

    }
    if (isValidateExistingTransaction()) {
      if (definition.getIsolationLevel() != TransactionDefinition.ISOLATION_DEFAULT) {
        Integer currentIsolationLevel = TransactionSynchronizationManager.getCurrentTransactionIsolationLevel();
        if (currentIsolationLevel == null || currentIsolationLevel != definition.getIsolationLevel()) {
          Constants isoConstants = DefaultTransactionDefinition.constants;
          throw new IllegalTransactionStateException("Participating transaction with definition [" +
              definition + "] specifies isolation level which is incompatible with existing transaction: " +
              (currentIsolationLevel != null ?
                  isoConstants.toCode(currentIsolationLevel, DefaultTransactionDefinition.PREFIX_ISOLATION) :
                  "(unknown)"));
        }
      }
      if (!definition.isReadOnly()) {
        if (TransactionSynchronizationManager.isCurrentTransactionReadOnly()) {
View Full Code Here

Examples of org.springframework.core.Constants

    }

    @Override
    public void setSystemPropertiesModeName(String constantName) throws IllegalArgumentException {
        super.setSystemPropertiesModeName(constantName);
        Constants constants = new Constants(PropertyPlaceholderConfigurer.class);
        this.systemPropertiesMode = constants.asNumber(constantName).intValue();
    }
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.