Package java.lang

Examples of java.lang.Object


     return values;
   }
  

    public void restoreState(FacesContext context, Object state) {
        Object values[] = (Object[]) state;
        super.restoreState(context, values[0]);
                _accesskey = (String)values[1] ;
         
                  _actionExpression = (MethodExpression)values[2] ;
         
View Full Code Here


    XConnection xConn    = xConnector.connect("socket,host=localhost,port=6001");
    if(xConn == null) System.err.println("no XConnection!");

    IBridge iBridge = UnoRuntime.getBridgeByName("java", null, "remote", null, new Object[]{"iiop", xConn, null});

    Object rInitialObject = iBridge.mapInterfaceFrom("classic_uno", XInterface.class);

    if(rInitialObject != null)
    {
      System.err.println("got the remote object");
      System.out.println("before naming service !");
      try
      {
        XNamingService rName = (XNamingService)UnoRuntime.queryInterface(XNamingService.class, rInitialObject );
        try
        {
          if(rName != null)
          {
            System.err.println("got the remote naming service !");
            Object rXsmgr = rName.getRegisteredObject("StarOffice.ServiceManager");
            XMultiServiceFactory rSmgr = (XMultiServiceFactory)UnoRuntime.queryInterface(XMultiServiceFactory.class, rXsmgr);
            if(rSmgr != null)
            {
              System.out.println("got the remote service manager !");
              Object rDriver = rSmgr.createInstance("com.sun.star.sdbc.ADriver");
              if(rDriver != null)
              {
                System.out.println("got a com.sun.star.sdbc.Driver !");
                com.sun.star.sdbc.XDriver  xDriver  = (XDriver)UnoRuntime.queryInterface(com.sun.star.sdbc.XDriver.class,rDriver);
                if(xDriver != null)
View Full Code Here

                        int targetY = ((ParameterHolder)qq_currentEvent.getParameter("targetY")).getInt();
                        JComponent targetField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("targetField")).getObject();
                        int dropX = ((ParameterHolder)qq_currentEvent.getParameter("dropX")).getInt();
                        int dropY = ((ParameterHolder)qq_currentEvent.getParameter("dropY")).getInt();
                        JComponent dropField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("dropField")).getObject();
                        Object sourceData = (Object)((ParameterHolder)qq_currentEvent.getParameter("sourceData")).getObject();
                        int sourceDataType = ((ParameterHolder)qq_currentEvent.getParameter("sourceDataType")).getInt();
                        Logger.getLogger("task.part.logmgr").info("===ObjectDrop===");
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(sourceX));
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(sourceY));
                        Logger.getLogger("task.part.logmgr").info(Name.get(sourceField));
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(targetX));
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(targetY));
                        Logger.getLogger("task.part.logmgr").info(Name.get(targetField));
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(dropX));
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(dropY));
                        Logger.getLogger("task.part.logmgr").info(Name.get(dropField));
                        //task.lgr.putline(sourceData);
                        switch (sourceDataType) {
                            case Constants.SD_NODE: {
                                Logger.getLogger("task.part.logmgr").info("SD_NODE");
                                break;
                            }
                            case Constants.SD_IMAGE: {
                                Logger.getLogger("task.part.logmgr").info("SD_IMAGE");
                                break;
                            }

                            default: {
                                Logger.getLogger("task.part.logmgr").info("SD_FIELDWIDGET");

                                break;
                            }
                        }
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------
                // <Target>.FileDrop
                // -----------------
                else if (qq_currentEvent.isEvent(PushButton_FileDrop_getqq_Target)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        Array_Of_File<File> files = (Array_Of_File<File>)((ParameterHolder)qq_currentEvent.getParameter("files")).getObject();
                        int targetX = ((ParameterHolder)qq_currentEvent.getParameter("targetX")).getInt();
                        int targetY = ((ParameterHolder)qq_currentEvent.getParameter("targetY")).getInt();
                        JComponent targetField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("targetField")).getObject();
                        int dropX = ((ParameterHolder)qq_currentEvent.getParameter("dropX")).getInt();
                        int dropY = ((ParameterHolder)qq_currentEvent.getParameter("dropY")).getInt();
                        JComponent dropField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("dropField")).getObject();
                        Logger.getLogger("task.part.logmgr").info("===FileDrop===");
                        if (files != null) {
                            for (File f : files) {
                                Logger.getLogger("task.part.logmgr").info(f.getLocalName());
                            }
                        }
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(targetX));
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(targetY));
                        Logger.getLogger("task.part.logmgr").info(Name.get(targetField));
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(dropX));
                        Logger.getLogger("task.part.logmgr").info( Integer.toString(dropY));
                        Logger.getLogger("task.part.logmgr").info(Name.get(dropField));

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------------
                // <aListView2>.ObjectDrop
                // -----------------------
                else if (qq_currentEvent.isEvent(ListView_ObjectDrop_getqq_aListView2)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        int sourceX = ((ParameterHolder)qq_currentEvent.getParameter("sourceX")).getInt();
                        int sourceY = ((ParameterHolder)qq_currentEvent.getParameter("sourceY")).getInt();
                        JComponent sourceField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("sourceField")).getObject();
                        int targetX = ((ParameterHolder)qq_currentEvent.getParameter("targetX")).getInt();
                        int targetY = ((ParameterHolder)qq_currentEvent.getParameter("targetY")).getInt();
                        JComponent targetField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("targetField")).getObject();
                        int dropX = ((ParameterHolder)qq_currentEvent.getParameter("dropX")).getInt();
                        int dropY = ((ParameterHolder)qq_currentEvent.getParameter("dropY")).getInt();
                        JComponent dropField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("dropField")).getObject();
                        Object sourceData = (Object)((ParameterHolder)qq_currentEvent.getParameter("sourceData")).getObject();
                        int sourceDataType = ((ParameterHolder)qq_currentEvent.getParameter("sourceDataType")).getInt();
                        ((DisplayNode)sourceData).setParent(this.getAListView2());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ------------------
                // <aListView2>.Click
                // ------------------
                else if (qq_currentEvent.isEvent(ListView_Click_getqq_aListView2)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        DisplayNode n = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("node")).getObject();
                        Logger.getLogger("task.part.logmgr").info("-= aListView2 Click =-");
                        Logger.getLogger("task.part.logmgr").info(n.getDVNodeText());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ------------------------
                // <aListView2>.DoubleClick
                // ------------------------
                else if (qq_currentEvent.isEvent(ListView_DoubleClick_getqq_aListView2)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        DisplayNode n = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("node")).getObject();
                        Logger.getLogger("task.part.logmgr").info("-= aListView2 DoubleClick =-");
                        Logger.getLogger("task.part.logmgr").info(n.getDVNodeText());

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ----------------------
                // <aListView>.ObjectDrop
                // ----------------------
                else if (qq_currentEvent.isEvent(ListView_ObjectDrop_getqq_aListView)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        int sourceX = ((ParameterHolder)qq_currentEvent.getParameter("sourceX")).getInt();
                        int sourceY = ((ParameterHolder)qq_currentEvent.getParameter("sourceY")).getInt();
                        JComponent sourceField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("sourceField")).getObject();
                        int targetX = ((ParameterHolder)qq_currentEvent.getParameter("targetX")).getInt();
                        int targetY = ((ParameterHolder)qq_currentEvent.getParameter("targetY")).getInt();
                        JComponent targetField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("targetField")).getObject();
                        int dropX = ((ParameterHolder)qq_currentEvent.getParameter("dropX")).getInt();
                        int dropY = ((ParameterHolder)qq_currentEvent.getParameter("dropY")).getInt();
                        JComponent dropField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("dropField")).getObject();
                        Object sourceData = (Object)((ParameterHolder)qq_currentEvent.getParameter("sourceData")).getObject();
                        int sourceDataType = ((ParameterHolder)qq_currentEvent.getParameter("sourceDataType")).getInt();
                        ((DisplayNode)sourceData).setParent(this.getAListView());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------
                // <aListView>.Click
                // -----------------
                else if (qq_currentEvent.isEvent(ListView_Click_getqq_aListView)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        DisplayNode n = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("node")).getObject();
                        Logger.getLogger("task.part.logmgr").info("-= aListView Click =-");
                        Logger.getLogger("task.part.logmgr").info(n.getDVNodeText());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // -----------------------
                // <aListView>.DoubleClick
                // -----------------------
                else if (qq_currentEvent.isEvent(ListView_DoubleClick_getqq_aListView)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        DisplayNode n = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("node")).getObject();
                        Logger.getLogger("task.part.logmgr").info("-= aListView DoubleClick =-");
                        Logger.getLogger("task.part.logmgr").info(n.getDVNodeText());

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ---------------------
                // <aOutline>.ObjectDrop
                // ---------------------
                else if (qq_currentEvent.isEvent(OutlineField_ObjectDrop_getqq_aOutline)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        int sourceX = ((ParameterHolder)qq_currentEvent.getParameter("sourceX")).getInt();
                        int sourceY = ((ParameterHolder)qq_currentEvent.getParameter("sourceY")).getInt();
                        JComponent sourceField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("sourceField")).getObject();
                        int targetX = ((ParameterHolder)qq_currentEvent.getParameter("targetX")).getInt();
                        int targetY = ((ParameterHolder)qq_currentEvent.getParameter("targetY")).getInt();
                        JComponent targetField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("targetField")).getObject();
                        int dropX = ((ParameterHolder)qq_currentEvent.getParameter("dropX")).getInt();
                        int dropY = ((ParameterHolder)qq_currentEvent.getParameter("dropY")).getInt();
                        JComponent dropField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("dropField")).getObject();
                        Object sourceData = (Object)((ParameterHolder)qq_currentEvent.getParameter("sourceData")).getObject();
                        int sourceDataType = ((ParameterHolder)qq_currentEvent.getParameter("sourceDataType")).getInt();
                        ((DisplayNode)sourceData).setParent(this.getAOutline());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ----------------
                // <aOutline>.Click
                // ----------------
                else if (qq_currentEvent.isEvent(OutlineField_Click_getqq_aOutline)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        DisplayNode n = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("node")).getObject();
                        Logger.getLogger("task.part.logmgr").info("-= aOutline Click =-");
                        Logger.getLogger("task.part.logmgr").info(n.getDVNodeText());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ----------------------
                // <aOutline>.DoubleClick
                // ----------------------
                else if (qq_currentEvent.isEvent(OutlineField_DoubleClick_getqq_aOutline)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        DisplayNode n = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("node")).getObject();
                        Logger.getLogger("task.part.logmgr").info("-= aListView2 aOutline =-");
                        Logger.getLogger("task.part.logmgr").info(n.getDVNodeText());

                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
                }

                // ------------------
                // <aTree>.ObjectDrop
                // ------------------
                else if (qq_currentEvent.isEvent(TreeView_ObjectDrop_getqq_aTree)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        int sourceX = ((ParameterHolder)qq_currentEvent.getParameter("sourceX")).getInt();
                        int sourceY = ((ParameterHolder)qq_currentEvent.getParameter("sourceY")).getInt();
                        JComponent sourceField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("sourceField")).getObject();
                        int targetX = ((ParameterHolder)qq_currentEvent.getParameter("targetX")).getInt();
                        int targetY = ((ParameterHolder)qq_currentEvent.getParameter("targetY")).getInt();
                        JComponent targetField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("targetField")).getObject();
                        int dropX = ((ParameterHolder)qq_currentEvent.getParameter("dropX")).getInt();
                        int dropY = ((ParameterHolder)qq_currentEvent.getParameter("dropY")).getInt();
                        JComponent dropField = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("dropField")).getObject();
                        Object sourceData = (Object)((ParameterHolder)qq_currentEvent.getParameter("sourceData")).getObject();
                        int sourceDataType = ((ParameterHolder)qq_currentEvent.getParameter("sourceDataType")).getInt();
                        ((DisplayNode)sourceData).setParent(this.getATree());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
View Full Code Here

                        // ================ Begin Forte Event Handler Translation ================
                        // Copy the appropriate type of data.
                        switch (ClipboardUtils.getClipboardDataType()) {
                            case Constants.SD_TEXT: {
                                // Data is text.  Move to text_field.
                                Object o = null;
                                // to hold clipboard object
                                o = ClipboardUtils.copyFromClipboard(Constants.SD_TEXT);
                                // Since it is a generic object, cast it.
                                this.getText_field().setValue( (TextData)o );

                                break;
                            }
                            case Constants.SD_IMAGE: {
                                // Data is image.  Move to image_field.
                                Object o = null;
                                // to hold clipboard object
                                o = ClipboardUtils.copyFromClipboard(Constants.SD_IMAGE);
                                // Since it is a generic object, cast it.
                                PictureButtonImageValue.set(this.getqq_image_field(), ((ImageData)o));
                                break;
View Full Code Here

                        try {
                            CursorMgr.startEvent();
                            // ================ Begin Forte Event Handler Translation ================
                            JComponent sF = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("sourceField")).getObject();
                            JComponent dF = (JComponent)((ParameterHolder)qq_currentEvent.getParameter("dropField")).getObject();
                            Object sD = (Object)((ParameterHolder)qq_currentEvent.getParameter("sourceData")).getObject();
                            int dX = ((ParameterHolder)qq_currentEvent.getParameter("dropX")).getInt();
                            int dY = ((ParameterHolder)qq_currentEvent.getParameter("dropY")).getInt();
                            // This event is recieved whenever any draggable field
                            // is dropped on any widget. The code below figures out
                            // the details.
View Full Code Here

    // ----------------------
    // Accessors and Mutators
    // ----------------------
    public void setNBObject_ao(Object nBObject_ao) {
        Object oldValue = this.nBObject_ao;
        this.nBObject_ao = nBObject_ao;
//        this.qq_Listeners.firePropertyChange("NBObject_ao", oldValue, this.nBObject_ao);
    }
View Full Code Here

                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_save)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        BraShop_proxy.getInstance().putBra(this.getTheBra());
                        Object o = ObjectValue.get(this.getqq_theBra_Color());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
View Full Code Here

      return;
    }

    TagRenderContext rc = PageRenderer.getTagRenderContext(exec);
    final boolean rcRequired = rc == null;
    Object ret = null;
    if (rcRequired) {
      ret = PageRenderer.beforeRenderTag(exec);
      rc = PageRenderer.getTagRenderContext(exec);
    }
View Full Code Here

  //-- super --//
  public void redraw(java.io.Writer out) throws java.io.IOException {
    final Execution exec = Executions.getCurrent();
    final StringWriter bufout = new StringWriter();
    final Page page = getPage();
    final Object ret = PageRenderer.beforeRenderHtml(exec, page, bufout);
    super.redraw(bufout);
    PageRenderer.afterRenderHtml(exec, page, bufout, ret);

    final StringBuffer buf = bufout.getBuffer();
    if (exec != null)
View Full Code Here

                else if (qq_currentEvent.isEvent(PushButton_Click_getqq_save)) {
                    try {
                        CursorMgr.startEvent();
                        // ================ Begin Forte Event Handler Translation ================
                        BraShop_proxy.getInstance().putBra(this.getTheBra());
                        Object o = ObjectValue.get(this.getqq_theBra_Color());
                        // ================ End Forte Event Handler Translation ================
                    }
                    finally {
                        CursorMgr.endEvent();
                    }
View Full Code Here

TOP

Related Classes of java.lang.Object

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.