Examples of IBinding


Examples of com.erlang4j.api.IBinding

      @Override
      public void run() {
        if (message instanceof OtpErlangTuple) {
          MessageParser parser = new MessageParser();
          IBinding parsed = parser.parse(message, "{ConversationID, set, Sender, FieldName, {Type, Value}}");
          if (parsed.isValid()) {
            if (parsed.getAtom("Type").equals("var")) {
              OtpErlangObject valueE = parsed.getRaw("Value");
              Object value = null;
              if (valueE instanceof OtpErlangInt) {
                try {
                  value = ((OtpErlangInt) valueE).intValue();
                } catch (OtpErlangRangeException e) {
                  e.printStackTrace();
                }
              } else if (valueE instanceof OtpErlangString) {
                value = ((OtpErlangString) valueE).stringValue();
              } else if (valueE instanceof OtpErlangLong) {
                value = ((OtpErlangLong) valueE).longValue();
                if ((Long) value >= Integer.MIN_VALUE && (Long) value <= Integer.MAX_VALUE) {
                  value = new Integer(value.toString());
                }
              } else if (valueE instanceof OtpErlangDouble) {
                value = ((OtpErlangDouble) valueE).doubleValue();
              }
              if (value != null) {
                handlers.get(parsed.getAtom("FieldName")).Exec(value);
              }
            }
          } else {
            parsed = parser.parse(message, "{ConversationID, set_parent, Parent}");
            if (parsed.isValid()) {
              if (parsed.getRaw("Parent") instanceof OtpErlangTuple) {
                parentRef.set((OtpErlangTuple)parsed.getRaw("Parent"));
              }
            }
          }
        }
      }
View Full Code Here

Examples of com.onpositive.semantic.model.binding.IBinding

            if (findEditor != null) {
              return findEditor;
            }
          }
        }
        IBinding mBind = m.getBinding();
        String idd = null;
        if (mBind != null && (idd = mBind.getId()) != null
            && idd.equals(id)) {
          return c;
        }
      }
      if (c instanceof Container) {
View Full Code Here

Examples of net.sf.tapestry.IBinding

public class ArrayViewer extends BaseComponent {
  /**
   * Return the bound heading if there is one, else return a static default heading
   */
  public String getHeading() {
    IBinding binding = (IBinding)getBinding("heading");
    if(binding.getObject() != null) {
      return binding.getObject().toString();
    }
    return heading;
  }
View Full Code Here

Examples of org.apache.tapestry.IBinding

            listener.actionTriggered(this, cycle);
    }

  public String getElementId(){
    String value = null;
    IBinding idBinding = getIdBinding();
    if(idBinding != null){
      value = idBinding.getString();
    }
    return value;
  }
View Full Code Here

Examples of org.apache.tapestry.IBinding

        if (i == null)
            return;

        int index = 0;

        IBinding indexBinding = getIndexBinding();
        IBinding valueBinding = getValueBinding();
        IActionListener listener = getListener();
        String element = getElement();

        while (i.hasNext())
        {
            Object value = null;

            if (indexBinding != null)
                indexBinding.setInt(index++);

            if (cycleRewinding)
                value = convertValue((String) i.next());
            else
            {
                value = i.next();
                writeValue(form, name, value);
            }

            valueBinding.setObject(value);

            if (listener != null)
                listener.actionTriggered(this, cycle);

            if (element != null)
View Full Code Here

Examples of org.apache.tapestry.IBinding

     *
     **/

    public boolean isStateful()
    {
        IBinding statefulBinding = getStatefulBinding();

        if (statefulBinding == null)
            return true;

        return statefulBinding.getBoolean();
    }
View Full Code Here

Examples of org.apache.tapestry.IBinding

     */
    public void setTableRow(Object tableRow)
    {
        m_objTableRow = tableRow;

        IBinding objRowBinding = getRowBinding();
        if (objRowBinding != null)
            objRowBinding.setObject(tableRow);
    }
View Full Code Here

Examples of org.apache.tapestry.IBinding

     */
  public void setTableColumn(ITableColumn tableColumn)
  {
    m_objTableColumn = tableColumn;
       
        IBinding objColumnBinding = getColumnBinding();
        if (objColumnBinding != null)
            objColumnBinding.setObject(tableColumn);
  }
View Full Code Here

Examples of org.apache.tapestry.IBinding

     *
     * @return the CSS class of the cell
     */
    public String getValueClass()
    {
        IBinding objClassBinding = getClassBinding();
        if (objClassBinding != null)
            return objClassBinding.getString();
        else
            return getTableColumn().getColumnName() + TABLE_VALUE_CSS_CLASS_SUFFIX;
    }
View Full Code Here

Examples of org.apache.tapestry.IBinding

        {
            _rendering = true;
            _value = null;
            _index = 0;
           
            IBinding indexBinding = getIndexBinding();
            IBinding valueBinding = getValueBinding();
            String element = getElement();

            boolean hasNext = dataSource.hasNext();

            while (hasNext)
            {
                _value = dataSource.next();
                hasNext = dataSource.hasNext();

                if (indexBinding != null)
                    indexBinding.setInt(_index);

                if (valueBinding != null)
                    valueBinding.setObject(_value);

                if (element != null)
                {
                    writer.begin(element);
                    renderInformalParameters(writer, cycle);
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.