Package DisplayProject.actions

Examples of 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 static void reloadLabelText(final JMenuItem comp, final MsgCatalog mcat, final int defaultSet) {
        if (comp == null || mcat == null) {
            return;
        }
        // TF:Mar 9, 2010:Changed this to process it on the EDT
        ActionMgr.addAction(new PendingAction(null) {
      @Override
      public void performAction() {
            Integer msgSet, msgNumber = null;
            msgSet = (Integer) comp.getClientProperty("qq_msgSet");
            msgNumber = (Integer) comp.getClientProperty("qq_msgNumber");
View Full Code Here

    public static void reloadLabelText(final JPopupMenu comp, final MsgCatalog mcat, final int defaultSet) {
        if (comp == null || mcat == null) {
            return;
        }
        // TF:Mar 9, 2010:Changed this to process it on the EDT
        ActionMgr.addAction(new PendingAction(null) {
      @Override
      public void performAction() {
            Integer msgSet, msgNumber = null;
            msgSet = (Integer) comp.getClientProperty("qq_msgSet");
            msgNumber = (Integer) comp.getClientProperty("qq_msgNumber");
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

            reflectOpenChange(value);
        }
    }

    private void reflectOpenChange(final boolean value) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return "DisplayNode.reflectChange(" + value + ")";
            }
            @Override
View Full Code Here

     * Note that because this method can often be called repeatedly in quick succession we don't necessarily
     * want to process the GUI actions which will involve a thread context switch. If there really is a need
     * to update the screen immediately, explicitly invoke {@link UIutils.processGUIActions()}
     */
    public void updateFieldFromData(){
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return "DisplayNode.updateFieldFromData()";
            }
            @Override
View Full Code Here

     * Removes value from its present parent (if it has a parent), sets the child's parent to this node,
     * and then adds the child to this node's child array at index 0. value must not be null and must not be an ancestor of this node.
     * @param value
     */
    public void setFirstChild(final DisplayNode value) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return "DisplayNode.setFirstChild(" + value + ")";
            }
            @Override
View Full Code Here

     * Set the node's last child node
     * @param value
     */
    public void setLastChild(final DisplayNode value) {
        if (value != null) {
            ActionMgr.addAction(new PendingAction(null) {
                @Override
                public String toString() {
                    return "DisplayNode.setLastChild(" + value + ")";
                }
                public void performAction() {
View Full Code Here

     * this node prior to be added to this node's parent.
     * @param value
     */
    public void setNextSibling(final DisplayNode value) {
        if (value != null) {
            ActionMgr.addAction(new PendingAction(null) {
                @Override
                public void performAction() {
                    if (getParent() != null) {
                        int index = getParent().getIndex(DisplayNode.this);
                        if (index >= 0) {
View Full Code Here

     * the passed node's parent, to mimic the forte behaviour.
     * @param value
     */
    public void setPrevSibling(final DisplayNode value) {
        if (value != null) {
            ActionMgr.addAction(new PendingAction(null) {
                @Override
                public void performAction() {
                    if (getParent() != null) {
                        int index = getParent().getIndex(DisplayNode.this);
                        if (index >= 0) {
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.