Package net.helipilot50.stocktrade.displayproject.actions

Examples of net.helipilot50.stocktrade.displayproject.actions.PendingAction


//        if (mcat == null) {
//            mcat = MsgCatalog.getInstance();
//        }
       
        // TF:Mar 9, 2010:Changed this to process it on the EDT
        ActionMgr.addAction(new PendingAction(null) {
      @Override
      public void performAction() {
          // TF:Mar 8, 2010:Re-used methods to reduce dependency on hard-coded strings
            int msgSet = getMsgSet(comp);
            int msgNumber = getMsgNumber(comp);
View Full Code Here


     */
    public void setViewNodes(Array_Of_DisplayNode<? extends DisplayNode> pData) {
        // TF:8/10/07:Cloned the array nodes to make sure they're not cleared
        // TF:3/2/08:Changed the clone to be a shallow clone after observing forte behaviour
        final Array_Of_DisplayNode<? extends DisplayNode> nodes = (Array_Of_DisplayNode<? extends DisplayNode>)CloneHelper.clone(pData, false);
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return "ListView.setViewNodes(" + nodes + ")";
            }
            @Override
View Full Code Here

        this.table.setModel(this.sorter);
    }

    public void setCurrentNode(final DisplayNode pCurrentNode) {
      // TF:26/07/2009:forced this onto the GUI thread
      ActionMgr.addAction(new PendingAction(null) {
        @Override
        public void performAction() {
              try {
                DisplayNode nodeToSet = pCurrentNode;
                // TF:29/07/2010:Fixed an issue from DaveC if the passed node is not found in the listview then the
View Full Code Here

  public void setRootNode(final DisplayNode pRootNode) {
        if (rootNode == pRootNode)
            return;
        rootNode = pRootNode;
        // TF:30/04/2009:Forced this to be on the EDT to stop an EDT violation.
        ActionMgr.addAction(new PendingAction(null) {
          @Override
          public void performAction() {
                if (rootNode == null || rootNode.getChildCount() == 0) {
                    ListView.this.setListData((Object [])null);
                    tableModel.setViewNodes(null);
View Full Code Here

     * The RequestScroll method initiates a sequence of events to scroll an ListView field line to a specified position in the ListView field display area, moving other lines into and out of the display area as necessary.
     * @param pLine desired line
     * @param pScrollPolicy see setScrollPolicy
     */
    public void requestScroll(final int pLine, final int pScrollPolicy) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public void performAction() {
                if (pScrollPolicy==Constants.AF_TOP) {
                    ListView.this.scrollRowToVisible(ListView.this.getTotalLines()-1);
                    ListView.this.scrollRowToVisible(pLine-1);
View Full Code Here

        this.setLayout(aLayout);
    }

    public void setElementList(Array_Of_ListElement<ListElement> pElements) {
      final Array_Of_ListElement<ListElement> elements = CloneHelper.clone(pElements, false);
      ActionMgr.addAction(new PendingAction(null){

      @Override
      public void performAction() {
        synchronized (PaletteList.this) {
          PaletteList.this.removeAll();
View Full Code Here

     *
     * CraigM:16/05/2008
     * @param pLine
     */
    public void setTopLine(final int pLine) {
      ActionMgr.addAction(new PendingAction(null) {
        @Override
        public String toString() {
          return "MultiLineTextField.setTopLine(" + pLine + ")";
        }
       
View Full Code Here

            return;
          }
            // Set the table and tell the table to update itself
            otm.setDataAndRegisterListeners((DynamicArray<Object>) otm.rowSource.getValue());
            if (otm.rowSource.getValue() == null) {
                ActionMgr.addAction(new PendingAction(null) {
                    public void performAction() {
                        otm.fireTableDataChanged();
                    }
                });
            }
View Full Code Here

            return;
          }
          if (otm.valueIsAdjusting) {
            return;
          }
            ActionMgr.addAction(new PendingAction(null) {
                @Override
                public void performAction() {
                  int selectedColumn = otm.table.getSelectedColumn();
                  int selectedRow = otm.table.getSelectedRow();
              int updatedColumn = -1;
View Full Code Here

                logger.debug("Firing value change on EDT");
                fireValueChange(evt.getOldValue(), evt.getNewValue());
            }
            else
            {
                ActionMgr.addAction(new PendingAction(null) {
                    public void performAction()
                    {
                        logger.debug("Firing value change inside performAction");
                        // We always fire a change unless the references are the same.
                        // The default property change support, will test if the old
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.displayproject.actions.PendingAction

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.