Package psconsole.TaskManager

Examples of psconsole.TaskManager.TaskOrder


        //</editor-fold>
       
        // -- заполняем объект задачи
        Task task = new Task(numsys.geterateID());
        for (int i = 0; i < taskOTM.count(); ++i) {
            TaskOrder o = taskOTM.getOrder(i);
            task.orderList.add(o);
        }
        task.name = txtTaskName.getText();
        task.startNow = rbStartNow.isSelected();
        task.timeStart = task.startNow ? timeCurrent : tm;
View Full Code Here


        /**
         * Добавляет новый ордер и новую строку, и связывает их
         * @return созданный функцией ордер (дефолтным конструктором)
         */
        public TaskOrder addOrder() {
            TaskOrder order = new TaskOrder("gbpusd");
            addOrder(order);
            return order;
        }
View Full Code Here

            return false;
        }
       
        @Override
        public Object getValueAt(int row, int column) {
            TaskOrder order = getOrder(row);
            switch (column) {
                case 0: return order;
                case 1: return order.type;
                case 2: return order.size;
                case 3: return order.deviation;
View Full Code Here

        }
       
        @Override
        public void setValueAt(Object aValue, int row, int column) {
            boolean valid = validateCell(aValue, row, column);
            TaskOrder order = getOrder(row);
            switch (column) {
                case 0: order.symbol = aValue.toString(); break;
                case 1: order.type = (TaskOrder.Type)aValue; break;
                case 2:
                    if (valid) order.size = Double.parseDouble(aValue.toString());
View Full Code Here

TOP

Related Classes of psconsole.TaskManager.TaskOrder

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.