Package DisplayProject.actions

Examples of DisplayProject.actions.PendingAction


        builder.append(trace[i].toString()).append("\n");
      }
      traceback = builder.toString();
     
      // Replace the trace with the real traceback if we can get it.
      PendingAction action = ActionMgr.getCurrentAction();
      if (action != null) {
        traceback = action.getTraceback();
      }
    }
View Full Code Here


     * 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

     * 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

     * 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

     * return the weight of the row in the grid field. This method is thread-safe.
     * @param row
     * @return
     */
    public int getRowJustifyWeight(int row) {
        PendingAction action = ActionMgr.getAction(new RowJustifyWeightFilter(row));
        if (action != null) {
            return ((RowJustifyWeight)action).weight;
        }
        Integer val = layout.rowWeights.get(row);
        return (val == null) ? 0 : val.intValue();
View Full Code Here

     * rows is more than the passed value, the number of rows will be
     * set to the number of rows used. This method is thread-safe and may be
     * called on or off the GUI thread
     */
    public void setRows(final int pRows) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return GridField.this.getName() + ".setRows(" + pRows + ")";
            }
            @Override
View Full Code Here

     * columns is more than the passed value, the number of columns will be
     * set to the number of columns used. This method is thread-safe and may be
     * called on or off the GUI thread
     */
    public void setColumns(final int pColumns) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return GridField.this.getName() + ".setColumns(" + pColumns + ")";
            }
            @Override
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

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.