Package DisplayProject.actions

Examples of DisplayProject.actions.PendingAction


            return;
          }
          if (otm.valueIsAdjusting) {
            return;
          }
            ActionMgr.addAction(new PendingAction(null) {
                @Override
                public void performAction() {
                  int selectedColumn = otm.table.getSelectedColumn();
                  int selectedRow = otm.table.getSelectedRow();
              int updatedColumn = -1;
View Full Code Here


        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

     *         scrolling occurs if line is already in display area.
     * AF_MIDDLE  Scrolls line to middle outline field display line.
     * AF_TOP    Scrolls line to top outline field display line.
     */
    public void requestScroll(final int pLine, final int pScrollPolicy) {
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return "OutlineField.requestScroll(" + pLine + ", " + pScrollPolicy + ")";
            }
            @Override
View Full Code Here

      }
    }
   
    public void setElementList(Array_Of_ListElement<ListElement> elements){
        final Array_Of_ListElement<ListElement> data = CloneHelper.clone(elements, false);
        ActionMgr.addAction(new PendingAction(null) {
            @Override
            public String toString() {
                return "MenuList.setElementList(" + data + ")";
            }
            @Override
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

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.