All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dwcj.controls.panels.PanelAccessorImpl Maven / Gradle / Ivy

Go to download

Program that allows implementation of an API layer enabling the developer to build application software for the BBj ecosystem by using Java or other JVM languages like Kotlin instead of the BBj Business Basic syntax built into the BBj product.

The newest version!
package org.dwcj.controls.panels;

import com.basis.bbj.proxies.sysgui.BBjWindow;
import org.dwcj.App;
import org.dwcj.bridge.PanelAccessor;

/**
 * This class implements the accessor to BBj specifics in the AbstractDwcjPanel-derived set of panel class
 * Pattern see Tulach, p.75ff
 */
final class PanelAccessorImpl extends PanelAccessor {

    @Override
    public BBjWindow getBBjWindow(AbstractDwcjPanel panel) throws IllegalAccessException {

        StackTraceElement[] stack = Thread.currentThread().getStackTrace();
        String caller = stack[2].getClassName();
        if (caller.startsWith("org.dwcj.")

        ) return panel.getBBjWindow();
        App.consoleLog(caller + ": You're not allowed to access this method!");
        throw new IllegalAccessException(caller + ": You're not allowed to access this method!");

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy