Package Framework

Examples of Framework.ParameterHolder


                        return;
                    }
                }

                Hashtable<String, Object> qq_Params = new Hashtable<String, Object>();
                qq_Params.put("sourceField", new ParameterHolder(e.getComponent()));

                //The forte will return the X & Y in mils, so covert here
                qq_Params.put("x", new ParameterHolder(UIutils.pixelsToMils(e.getX())));
                qq_Params.put("y", new ParameterHolder(UIutils.pixelsToMils(e.getY())));

                ClientEventManager.postEvent(comp.getTopLevelAncestor(), "PopUpRequest", qq_Params);

                popup.show(comp, e.getX(), e.getY());
            }
View Full Code Here


                        boolean qq_HandlerResult = true;
                        qq_Block: try {
                            CursorMgr.startEvent();
                            // ================ Begin Forte Event Handler Translation ================
                            Hashtable<String,Object> qq_Params = new Hashtable<String,Object>();
                            qq_Params.put( "value", new ParameterHolder(2) );
                            EventManager.postEvent( B.this.theNotify, Notify.cEVENT_STATUS_CHANGE, qq_Params );
                            qq_HandlerResult = false;
                            break qq_Block;
                        // ================= End Forte Event Handler Translation =================
                        }
View Full Code Here

     * onClose<p>
     * <p>
     */
    public void onClose() {
        Hashtable<String,Object> qq_Params = new Hashtable<String,Object>();
        qq_Params.put( "value", new ParameterHolder(2) );
        EventManager.postEvent( this.theNotify, Notify.cEVENT_STATUS_CHANGE, qq_Params );
    }
View Full Code Here

     * <p>
     */
    public void onOpen() {
        this.theNotify = SO_proxy.getInstance().getNotify();
        Hashtable<String,Object> qq_Params = new Hashtable<String,Object>();
        qq_Params.put( "value", new ParameterHolder(1) );
        EventManager.postEvent( this.theNotify, Notify.cEVENT_STATUS_CHANGE, qq_Params );
    }
View Full Code Here

                            if (sD != null && sD instanceof BrowserDisplayNode && sF == dF) {
                                int column = 0;
                                BrowserDisplayNode sourceNode = (BrowserDisplayNode)sD;
                                BrowserDisplayNode destNode = null;
   
                                ParameterHolder qq_column = new ParameterHolder(column);
                                DisplayNode qq_tempNode = TreeField.locateNode(this.getqq_Browser(), UIutils.milsToPixels(dX), UIutils.milsToPixels(dY), qq_column);
                                column = qq_column.getInt();
                                destNode = (BrowserDisplayNode)qq_tempNode;
                                // LocateNode is the method used to determine which
                                // row the drop occured on. It returns a DisplayNode
                                // which we cast into a BrowserDisplayNode. Column
                                // is returned also, but isn't used in this example.
View Full Code Here

     * @param pTree -
     *            The tree whose root node is to be returned
     * @return the root node of the tree
     */
    public static DisplayNode getRootNode(final JTree pTree) {
        final ParameterHolder rootNode = new ParameterHolder();
        UIutils.invokeOnGuiThread(new Runnable() {
            public void run() {
                TreeModel aModel = pTree.getModel();
                if (aModel != null) {
                    rootNode.setObject(aModel.getRoot());
                }
            }
        });
        Object anObj = rootNode.getObject();
        if (anObj != null && anObj instanceof DisplayNode) {
            return (DisplayNode) anObj;
        }
        else {
            return null;
View Full Code Here

      // CraigM:25/06/2008 - If we are already on the EDT, we can't wait for it to be idle.
      if (SwingUtilities.isEventDispatchThread()) {
        return;
      }
     
        final ParameterHolder holder = new ParameterHolder();
        do {
            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {}
            UIutils.invokeOnGuiThread(new Runnable() {
                public void run() {
                    AWTEvent e = Toolkit.getDefaultToolkit().getSystemEventQueue().peekEvent();
                    holder.setBoolean(e != null);
                }
            });
        } while (holder.getBoolean());

    }
View Full Code Here

   * @param pClassType
   * @return
   */
  @SuppressWarnings("unchecked")
  public <T extends JFrame> T instantiateWindow(final Class<T> pClassType) {
    final ParameterHolder ph = new ParameterHolder();
    UIutils.invokeOnGuiThread(new Runnable()  {
      public void run() {
        try {
          ph.setObject(FrameworkUtils.newInstance(pClassType));
        }
        catch (Exception e) {
          ph.setObject(e);
        }
      }
    });
    if (ph.getObject() instanceof RuntimeException) {
      throw (RuntimeException)ph.getObject();
    }
    else {
      return (T)ph.getObject();
    }
  }
View Full Code Here

  int rowBeingEdited = -1;

  protected void postAfterFocusGain(int pReason, Component pObject) {
    if (ForteKeyboardFocusManager.getTraversalReason() != Constants.FC_SUPRESS) {
      Hashtable<String, ParameterHolder> params = new Hashtable<String, ParameterHolder>();
      params.put("reason", new ParameterHolder(pReason));
      ClientEventManager.postEvent(pObject, "AfterFocusGain", params);
    }
  }
View Full Code Here

        setRowForEvents(pNewRow-1);
      }
    };
    if (pReason != Constants.FC_SUPRESS) {
      Hashtable<String, Object> params = new Hashtable<String, Object>();
      params.put("reason", new ParameterHolder(pReason));
      EventHandle handle = new EventHandle(pObject, "AfterFocusGain", params);
      handle.setForceReceiptOfEvent(windowThread);
      handle.setCommencementNotifier(action);
      ClientEventManager.postEvent(handle);
    }
View Full Code Here

TOP

Related Classes of Framework.ParameterHolder

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.