1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 /* 24 * Created on 04.11.2003 25 * 26 * To change the template for this generated file go to 27 * Window>Preferences>Java>Code Generation>Code and Comments 28 */ 29 package com.sun.star.wizards.web.status; 30 31 import java.util.EventObject; 32 33 /** 34 * @author rpiterman 35 * 36 * To change the template for this generated type comment go to 37 * Window>Preferences>Java>Code Generation>Code and Comments 38 */ 39 public class TaskEvent extends EventObject 40 { 41 42 public static final int TASK_STARTED = 1; 43 public static final int TASK_FINISHED = 2; 44 public static final int TASK_STATUS_CHANGED = 3; 45 public static final int SUBTASK_NAME_CHANGED = 4; 46 private int type; 47 48 /** 49 * general constructor- 50 * @param source 51 * @param type_ 52 * @param max_ 53 * @param success_ 54 * @param failed_ 55 */ TaskEvent(Task source, int type_)56 public TaskEvent(Task source, int type_) 57 { 58 super(source); 59 type = type_; 60 } 61 getTask()62 public Task getTask() 63 { 64 return (Task) getSource(); 65 } 66 } 67