Examples of WindowReference


Examples of net.cakenet.jsaton.nativedef.WindowReference

        public void actionPerformed(ActionEvent e) {
            String date = new SimpleDateFormat("yyyy-MM-dd HH-mm-ss").format(new Date());
            File f = FileManager.getUserFile("screenshots", date + ".png");
            try {
                WindowReference ref = currentEditor == null ? WindowManager.getDesktop() :
                        currentEditor.script.getTarget();
                BufferedImage img = ref.captureImage().toImage();
                ImageIO.write(img, "PNG", f);
                System.out.println("Screenshot saved as file://" + f.getAbsolutePath());
            } catch (Exception e1) {
                System.out.println("Failed to capture screenshot: " + e1.getLocalizedMessage());
            }
View Full Code Here

Examples of net.cakenet.jsaton.nativedef.WindowReference

    public WindowReference getTarget() {
        return target;
    }

    public void setTarget(WindowReference target) {
        WindowReference oldTarget = this.target;
        this.target = target;
        firePropertyChange("target", oldTarget, target);
    }
View Full Code Here

Examples of org.drools.core.rule.WindowReference

     * @see org.kie.reteoo.builder.ReteooComponentBuilder#build(org.kie.reteoo.builder.BuildContext, org.kie.reteoo.builder.BuildUtils, org.kie.rule.RuleConditionElement)
     */
    public void build(BuildContext context,
                      BuildUtils utils,
                      RuleConditionElement rce) {
        final WindowReference window = (WindowReference) rce;
        final WindowNode node = context.getKnowledgeBase().getReteooBuilder().getWindowNode( window.getName() );
       
        context.setObjectSource( node );
        context.setCurrentEntryPoint( node.getEntryPoint() );
     }
View Full Code Here

Examples of org.drools.core.rule.WindowReference

     * @see org.kie.reteoo.builder.ReteooComponentBuilder#build(org.kie.reteoo.builder.BuildContext, org.kie.reteoo.builder.BuildUtils, org.kie.rule.RuleConditionElement)
     */
    public void build(BuildContext context,
                      BuildUtils utils,
                      RuleConditionElement rce) {
        final WindowReference window = (WindowReference) rce;
        final WindowNode node = context.getRuleBase().getReteooBuilder().getWindowNode( window.getName() );
       
        context.setObjectSource( node );
        context.setCurrentEntryPoint( node.getEntryPoint() );
     }
View Full Code Here

Examples of org.drools.core.rule.WindowReference

    public RuleConditionElement build(RuleBuildContext context,
                                      BaseDescr descr,
                                      Pattern prefixPattern) {
        final WindowReferenceDescr window = (WindowReferenceDescr) descr;

        return new WindowReference( window.getName() );
    }
View Full Code Here

Examples of org.drools.rule.WindowReference

     * @see org.kie.reteoo.builder.ReteooComponentBuilder#build(org.kie.reteoo.builder.BuildContext, org.kie.reteoo.builder.BuildUtils, org.kie.rule.RuleConditionElement)
     */
    public void build(BuildContext context,
                      BuildUtils utils,
                      RuleConditionElement rce) {
        final WindowReference window = (WindowReference) rce;
        final WindowNode node = context.getRuleBase().getReteooBuilder().getWindowNode( window.getName() );
       
        context.setObjectSource( node );
        context.setCurrentEntryPoint( node.getEntryPoint() );
     }
View Full Code Here

Examples of org.drools.rule.WindowReference

    public RuleConditionElement build(RuleBuildContext context,
                                      BaseDescr descr,
                                      Pattern prefixPattern) {
        final WindowReferenceDescr window = (WindowReferenceDescr) descr;

        return new WindowReference( window.getName() );
    }
View Full Code Here

Examples of org.drools.rule.WindowReference

     * @see org.drools.reteoo.builder.ReteooComponentBuilder#build(org.drools.reteoo.builder.BuildContext, org.drools.reteoo.builder.BuildUtils, org.drools.rule.RuleConditionElement)
     */
    public void build(BuildContext context,
                      BuildUtils utils,
                      RuleConditionElement rce) {
        final WindowReference window = (WindowReference) rce;
        final WindowNode node = context.getRuleBase().getReteooBuilder().getWindowNode( window.getName() );
       
        context.setObjectSource( node );
        context.setCurrentEntryPoint( node.getEntryPoint() );
     }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.