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