Examples of PendingAction


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

Examples of DisplayProject.actions.PendingAction

     * 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

Examples of DisplayProject.actions.PendingAction

     * 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

Examples of DisplayProject.actions.PendingAction

     * 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

Examples of DisplayProject.actions.PendingAction

     * 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

Examples of DisplayProject.actions.PendingAction

     * 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

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

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

     * indicies are 1-based. If the collapsed attribute is true,
     * this method does nothing. This method is thread-safe and may be
     * called on or off the GUI thread
     */
    public void insertColumn(final int position) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return GridField.this.getName() + ".insertColumn(" + position + ")";
            }
            @Override
View Full Code Here

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

     * Add a row into the model. If the collapsed attribute is true,
     * this method does nothing. This method is thread-safe and may be
     * called on or off the GUI thread
     */
    public void insertRow(final int position) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return GridField.this.getName() + ".insertRow(" + position + ")";
            }
            @Override
View Full Code Here

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

     * return the weight of the column in the grid field. This method is thread-safe.
     * @param row
     * @return
     */
    public int getColumnJustifyWeight(int column) {
        PendingAction action = ActionMgr.getAction(new ColumnJustifyWeightFilter(column));
        if (action != null) {
            return ((ColumnJustifyWeight)action).weight;
        }
        Integer val = layout.columnWeights.get(column);
        return val == null ? 0 : val.intValue();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.