
nz.co.senanque.bundle2.AppFactoryImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of madura-perspectives-name Show documentation
Show all versions of madura-perspectives-name Show documentation
This is a bundle that is used to demo the Perspectives Manager. It asks for a name and uses the blackboard to loosely interact with other bundles.
The newest version!
/*******************************************************************************
* Copyright (c)2011 Prometheus Consulting
*
* 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 nz.co.senanque.bundle2;
import nz.co.senanque.perspectiveslibrary.App;
import nz.co.senanque.perspectiveslibrary.AppFactory;
import nz.co.senanque.perspectiveslibrary.Blackboard;
/**
* This is a simple app factory. It creates a layout and tells the blackboard about it.
* It does not add any extra menu options.
*
* @author Roger Parkinson
*
*/
public class AppFactoryImpl implements AppFactory {
@Override
public App createApp(Blackboard blackboard)
{
App ret = new App();
final Layout layout = new Layout();
layout.setBlackboard(blackboard);
ret.setComponentContainer(layout);
return ret;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy