Package DisplayProject.actions

Examples of DisplayProject.actions.PendingAction


    /**
     * Set the parent of this display node. Uses a pending action for delayed write
     * @param pParent
     */
    public void setParent(final DisplayNode pParent) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public void performAction() {
                DisplayNode currentParent = (DisplayNode)getParent();
                if (pParent != currentParent) {
                    //Remove this from its current Parent
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

     */
    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 {
                  tableModel.setCurrentRow(pCurrentNode);
                  if (list.getModel().getSize() != 0) {
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

                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

                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

            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

TOP

Related Classes of 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.