Package java.lang

Examples of java.lang.Integer


      byte[] pBytes18 = new byte[18000];
      byte[] pBytes36 = new byte[36000];

      for ( int nInitInd = 0; nInitInd < 36000; nInitInd++ )
      {
        pBytes36[nInitInd] = ( new Integer( nInitInd >> ( ( nInitInd % 2 ) * 8 ) ) ).byteValue();
        if ( nInitInd < 18000 )
          pBytes18[nInitInd] = ( new Integer( 256  - pBytes36[nInitInd] ) ).byteValue();
      }
     
      System.out.println( "This test can take up to some hours. The file size currently is about 50000." );
      System.out.println( "Progress: " );
      for ( int nAvailableBytes = nMinTestLen; nAvailableBytes < nMaxTestLen; nAvailableBytes++ )
      {
        Object oBStream = new BorderedStream( nAvailableBytes );
        XStream xBorderedStream = (XStream)UnoRuntime.queryInterface( XStream.class, oBStream );
        if ( xBorderedStream == null )
        {
          m_aTestHelper.Error( "Can't create bordered stream!" );
          return false;
        }

        // create storage based on the temporary stream
        Object pArgs[] = new Object[2];
        pArgs[0] = (Object) xBorderedStream;
        pArgs[1] = new Integer( ElementModes.WRITE );

        Object oTempStorage = m_xStorageFactory.createInstanceWithArguments( pArgs );
        XStorage xTempStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oTempStorage );
        if ( xTempStorage == null )
        {
View Full Code Here


                        
            if (this._maxlength != null) {
        if (this._maxlength.isLiteralText()) {
          try {
                       
            Integer __maxlength = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxlength.getExpressionString(),
                      Integer.class);
         
                        comp.setMaxlength(__maxlength.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxlength", this._maxlength);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclick != null) {
        if (this._onclick.isLiteralText()) {
          try {
                       
            java.lang.String __onclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclick(__onclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclick", this._onclick);
        }
      }
                        
            if (this._ondblclick != null) {
        if (this._ondblclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondblclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondblclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndblclick(__ondblclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondblclick", this._ondblclick);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                        
            if (this._onkeydown != null) {
        if (this._onkeydown.isLiteralText()) {
          try {
                       
            java.lang.String __onkeydown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeydown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeydown(__onkeydown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeydown", this._onkeydown);
        }
      }
                        
            if (this._onkeypress != null) {
        if (this._onkeypress.isLiteralText()) {
          try {
                       
            java.lang.String __onkeypress = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeypress.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeypress(__onkeypress);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeypress", this._onkeypress);
        }
      }
                        
            if (this._onkeyup != null) {
        if (this._onkeyup.isLiteralText()) {
          try {
                       
            java.lang.String __onkeyup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeyup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeyup(__onkeyup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeyup", this._onkeyup);
        }
      }
                        
            if (this._onmousedown != null) {
        if (this._onmousedown.isLiteralText()) {
          try {
                       
            java.lang.String __onmousedown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousedown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousedown(__onmousedown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousedown", this._onmousedown);
        }
      }
                        
            if (this._onmousemove != null) {
        if (this._onmousemove.isLiteralText()) {
          try {
                       
            java.lang.String __onmousemove = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousemove.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousemove(__onmousemove);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousemove", this._onmousemove);
        }
      }
                        
            if (this._onmouseout != null) {
        if (this._onmouseout.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseout = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseout.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseout(__onmouseout);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseout", this._onmouseout);
        }
      }
                        
            if (this._onmouseover != null) {
        if (this._onmouseover.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseover = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseover.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseover(__onmouseover);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseover", this._onmouseover);
        }
      }
                        
            if (this._onmouseup != null) {
        if (this._onmouseup.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseup(__onmouseup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseup", this._onmouseup);
        }
      }
                        
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                        
            if (this._size != null) {
        if (this._size.isLiteralText()) {
          try {
                       
            Integer __size = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._size.getExpressionString(),
                      Integer.class);
         
                        comp.setSize(__size.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("size", this._size);
View Full Code Here

    {
        if (mxText != null)
        {
            int nPosition = mxText.getCaretPosition();
            if (nPosition+1 <= mxText.getCharacterCount())
                return new Integer (nPosition+1);
        }
        return null;
    }
View Full Code Here

    {
        if (mxText != null)
        {
            int nPosition = mxText.getCaretPosition();
            if (nPosition > 0)
                return new Integer (nPosition-1);
        }
        return null;
    }
View Full Code Here

    }

    public Object getValue ()
    {
        if (mxText != null)
            return new Integer (mxText.getCaretPosition());
        else
            return null;
    }
View Full Code Here

    {
        if (mxText != null)
        {
            int nPosition = mxText.getCaretPosition();
            if (nPosition+1 <= mxText.getCharacterCount())
                return new Integer (nPosition+1);
        }
        return null;
    }
View Full Code Here

    {
        if (mxText != null)
        {
            int nPosition = mxText.getCaretPosition();
            if (nPosition > 0)
                return new Integer (nPosition-1);
        }
        return null;
    }
View Full Code Here

    }

    public Object getValue ()
    {
        if (mxText != null)
            return new Integer (mxText.getCaretPosition());
        else
            return null;
    }
View Full Code Here

                        
            if (this._maxlength != null) {
        if (this._maxlength.isLiteralText()) {
          try {
                       
            Integer __maxlength = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._maxlength.getExpressionString(),
                      Integer.class);
         
                        comp.setMaxlength(__maxlength.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("maxlength", this._maxlength);
        }
      }
                        
            if (this._onblur != null) {
        if (this._onblur.isLiteralText()) {
          try {
                       
            java.lang.String __onblur = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onblur.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnblur(__onblur);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onblur", this._onblur);
        }
      }
                        
            if (this._onchange != null) {
        if (this._onchange.isLiteralText()) {
          try {
                       
            java.lang.String __onchange = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onchange.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnchange(__onchange);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onchange", this._onchange);
        }
      }
                        
            if (this._onclick != null) {
        if (this._onclick.isLiteralText()) {
          try {
                       
            java.lang.String __onclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnclick(__onclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onclick", this._onclick);
        }
      }
                        
            if (this._ondblclick != null) {
        if (this._ondblclick.isLiteralText()) {
          try {
                       
            java.lang.String __ondblclick = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._ondblclick.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOndblclick(__ondblclick);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("ondblclick", this._ondblclick);
        }
      }
                        
            if (this._onfocus != null) {
        if (this._onfocus.isLiteralText()) {
          try {
                       
            java.lang.String __onfocus = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onfocus.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnfocus(__onfocus);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onfocus", this._onfocus);
        }
      }
                        
            if (this._onkeydown != null) {
        if (this._onkeydown.isLiteralText()) {
          try {
                       
            java.lang.String __onkeydown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeydown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeydown(__onkeydown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeydown", this._onkeydown);
        }
      }
                        
            if (this._onkeypress != null) {
        if (this._onkeypress.isLiteralText()) {
          try {
                       
            java.lang.String __onkeypress = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeypress.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeypress(__onkeypress);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeypress", this._onkeypress);
        }
      }
                        
            if (this._onkeyup != null) {
        if (this._onkeyup.isLiteralText()) {
          try {
                       
            java.lang.String __onkeyup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onkeyup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnkeyup(__onkeyup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onkeyup", this._onkeyup);
        }
      }
                        
            if (this._onmousedown != null) {
        if (this._onmousedown.isLiteralText()) {
          try {
                       
            java.lang.String __onmousedown = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousedown.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousedown(__onmousedown);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousedown", this._onmousedown);
        }
      }
                        
            if (this._onmousemove != null) {
        if (this._onmousemove.isLiteralText()) {
          try {
                       
            java.lang.String __onmousemove = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmousemove.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmousemove(__onmousemove);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmousemove", this._onmousemove);
        }
      }
                        
            if (this._onmouseout != null) {
        if (this._onmouseout.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseout = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseout.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseout(__onmouseout);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseout", this._onmouseout);
        }
      }
                        
            if (this._onmouseover != null) {
        if (this._onmouseover.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseover = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseover.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseover(__onmouseover);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseover", this._onmouseover);
        }
      }
                        
            if (this._onmouseup != null) {
        if (this._onmouseup.isLiteralText()) {
          try {
                       
            java.lang.String __onmouseup = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onmouseup.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnmouseup(__onmouseup);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onmouseup", this._onmouseup);
        }
      }
                        
            if (this._onselect != null) {
        if (this._onselect.isLiteralText()) {
          try {
                       
            java.lang.String __onselect = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._onselect.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setOnselect(__onselect);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("onselect", this._onselect);
        }
      }
                         
            if (this._required != null) {
        if (this._required.isLiteralText()) {
          try {
                       
            Boolean __required = (Boolean) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._required.getExpressionString(),
                      Boolean.class);
         
                        comp.setRequired(__required.booleanValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("required", this._required);
        }
      }
                        
            if (this._requiredMessage != null) {
        if (this._requiredMessage.isLiteralText()) {
          try {
                       
            java.lang.String __requiredMessage = (java.lang.String) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._requiredMessage.getExpressionString(),
                      java.lang.String.class);
         
                        comp.setRequiredMessage(__requiredMessage);
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("requiredMessage", this._requiredMessage);
        }
      }
                        
            if (this._size != null) {
        if (this._size.isLiteralText()) {
          try {
                       
            Integer __size = (Integer) getFacesContext().
              getApplication().
                getExpressionFactory().
                  coerceToType(this._size.getExpressionString(),
                      Integer.class);
         
                        comp.setSize(__size.intValue());
                      } catch (ELException e) {
            throw new FacesException(e);
          }
        } else {
          component.setValueExpression("size", this._size);
View Full Code Here

     
      String inputValue = (String) JOptionPane.showInputDialog(
          this,Messages.getString("MaudeWorkstationGUIPlugin.GRAPH_TEXT_CHANGE_RADIO_NODE"),Messages.getString("MaudeWorkstationGUIPlugin.GRAPH_TITLE_CHANGE_RADIO_NODE"), //$NON-NLS-1$ //$NON-NLS-2$
          JOptionPane.PLAIN_MESSAGE);
      if (inputValue != null) {
        int linea = (new Integer(inputValue)).intValue();
        drawingArea.setRadioNodo(linea);
      }
     
    } catch (NumberFormatException e) {
      JOptionPane.showMessageDialog(this,
View Full Code Here

TOP

Related Classes of java.lang.Integer

Copyright © 2018 www.massapicom. 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.