Package DisplayProject.actions

Examples of DisplayProject.actions.PendingAction


            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

    /**
     * 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

        {
            // Set the table and tell the table to update itself
            setDataAndRegisterListeners((DynamicArray<Object>) rowSource.getValue());
            if (rowSource.getValue() == null)
            {
                ActionMgr.addAction(new PendingAction(null) {

                    public void performAction()
                    {
                        fireTableDataChanged();
                    }
View Full Code Here

          // we do not need to update the value in the table, as the calling code will do that later, and it
          // knows which cell to target rather than having to try to derive it.
          if (valueIsAdjusting) {
            return;
          }
            ActionMgr.addAction(new PendingAction(null) {
                @Override
                public void performAction() {
                  int selectedColumn = ObjectTableModel.this.table.getSelectedColumn();
                  int selectedRow = ObjectTableModel.this.table.getSelectedRow();
              int updatedColumn = -1;
View Full Code Here

        finally {
          // TF:Mar 9, 2010:Changed this to perform its actions on the EDT
          final int defSet = defaultSet;
          final JPanel theForm = form;
          final Field[] theFields = fields;
          ActionMgr.addAction(new PendingAction(null) {
            @Override
            public void performAction() {
                    JMenuBar jmb = (JMenuBar) win.getJMenuBar();
                    if (jmb != null) {
                        MenuElement[] kids = jmb.getSubElements();
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.