org.openengsb.ui.taskbox.model.WebTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openengsb-ui-taskbox Show documentation
Show all versions of openengsb-ui-taskbox Show documentation
OpenEngSB UI classes for Taskbox Service which extend the interfaces from the core Taskbox
component. Provides methods to get Wicket panels.
The newest version!
/**
* Copyright 2010 OpenEngSB Division, Vienna University of Technology
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.openengsb.ui.taskbox.model;
import org.apache.wicket.markup.html.panel.Panel;
import org.openengsb.core.common.taskbox.model.Task;
/**
* WebTask extends a normal Task by adding graphical functionality so it can be used and displayed in Wicket web
* application. It holds a generic wicket panel to display all containing properties. This panel can easily be
* overwritten by a custom panel.
*/
public class WebTask extends Task {
public WebTask() {
super();
// addOrReplaceProperty("panelClass", DefaultWebTaskPanel.class);
}
public WebTask(String processId, String context, String user) {
super(processId, context, user);
// addOrReplaceProperty("panelClass", DefaultWebTaskPanel.class);
}
public WebTask(String taskType) {
super(taskType);
// addOrReplaceProperty("panelClass", DefaultWebTaskPanel.class);
}
public WebTask(String taskType, String processId, String context, String user) {
super(taskType, processId, context, user);
// addOrReplaceProperty("panelClass", DefaultWebTaskPanel.class);
}
/**
* returns the according Wicket panel class for the task
*/
@SuppressWarnings("unchecked")
public Class extends Panel> getPanelClass() {
return (Class extends Panel>) getProperty("panelClass");
}
/**
* sets the according Wicket panel class for the task
*/
public void setPanelClass(Class extends Panel> panelClass) {
addOrReplaceProperty("panelClass", panelClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy