Examples of SAction


Examples of com.sun.msv.schematron.grammar.SAction

               
                String test = startTag.getAttribute("test");
               
                if( test!=null ) {
                        try {
                                onActionReady(new SAction(
                    new XPath(test,null,new PrefixResolverImpl(this), XPath.SELECT),
                    document.toString().trim()
                ));
                        } catch( TransformerException e ) {
                                reader.reportError( SRELAXNGReader.ERR_INVALID_XPATH, test, e.getMessage() );
View Full Code Here

Examples of com.sun.msv.schematron.grammar.SAction

   
    String test = startTag.getAttribute("test");
   
    if( test!=null ) {
      try {
        onActionReady(new SAction(
                    new XPath(test,null,new PrefixResolverImpl(this), XPath.SELECT),
                    document.toString().trim()
                ));
      } catch( TransformerException e ) {
        reader.reportError( SRELAXNGReader.ERR_INVALID_XPATH, test, e.getMessage() );
View Full Code Here

Examples of org.joshy.sketch.actions.SAction

        items = new ArrayList<SelectMoveTool.ActionItem>();
        setModel(mdl);
        setCallback(new Callback<ChangedEvent>() {
            public void call(ChangedEvent event) throws Exception {
                int i = ((Integer)event.getValue());
                SAction action = getAction(i);
                action.execute();
            }
        });

    }
View Full Code Here

Examples of org.joshy.sketch.actions.SAction

        if(listView.getModel().size() <= listView.getSelectedIndex()) return;
       
        final SNode shape = listView.getModel().get(listView.getSelectedIndex());
        contextMenu = new ContextMenu();
        contextMenu.addActions(
            new SAction(){
                @Override public String getDisplayName() { return "Delete"; }
                @Override
                public void execute() {
                    symbolManager.remove(shape);
                }
            },
            new SAction(){
                @Override public String getDisplayName() { return "Rename"; }
                @Override
                public void execute() {
                    u.p("renaming");
                    String name = shape.getStringProperty("symbolName");
View Full Code Here

Examples of org.joshy.sketch.actions.SAction

            if(mode.isAlpha()) {
                name = "[ALPHA] " + name;
            }
            grid.addControl(new Button(name).onClicked(new Callback<ActionEvent>() {
                public void call(ActionEvent event) throws Exception {
                    SAction action = mode.getNewDocAction(main);
                    action.execute();
                    stage.hide();
                }
            }).addCSSClass("newdocbutton"));
            count++;
            if(count%2==0) {
View Full Code Here

Examples of org.joshy.sketch.actions.SAction

        fontItalicButton = new Togglebutton("I");
        fontItalicButton.onClicked(fontItalicCallback);
        fontProperties.add(fontItalicButton);

        fontAlignLeft = new TIB("cr22-action-text_left.png", new SAction(){
            @Override
            public void execute() throws Exception {
                if(manager.propMan.isClassAvailable(SText.class)) {
                    manager.propMan.getProperty("halign").setValue(SText.HAlign.Left);
                }
            }
        });
        fontAlignHCenter = new TIB("cr22-action-text_center.png", new SAction(){
            @Override
            public void execute() throws Exception {
                if(manager.propMan.isClassAvailable(SText.class)) {
                    manager.propMan.getProperty("halign").setValue(SText.HAlign.Center);
                }
            }
        });
        fontAlignRight = new TIB("cr22-action-text_right.png", new SAction(){
            @Override
            public void execute() throws Exception {
                if(manager.propMan.isClassAvailable(SText.class)) {
                    manager.propMan.getProperty("halign").setValue(SText.HAlign.Right);
                }
View Full Code Here

Examples of org.scopemvc.view.swing.SAction

        SRadioButton procedureSelect = new SRadioButton(
                QueryTypeController.PROCEDURE_QUERY_CONTROL,
                QueryTypeModel.PROCEDURE_QUERY_SELECTOR);
        buttonGroup.add(procedureSelect);

        SButton saveButton = new SButton(new SAction(QueryTypeController.CREATE_CONTROL));
        saveButton.setEnabled(true);

        SButton cancelButton = new SButton(
                new SAction(QueryTypeController.CANCEL_CONTROL));
        cancelButton.setEnabled(true);

        // assemble
        CellConstraints cc = new CellConstraints();
        FormLayout layout = new FormLayout(
View Full Code Here

Examples of org.scopemvc.view.swing.SAction

    }

    protected void init() {
        // create widgets
        SButton saveButton =
            new SButton(new SAction(ObjRelationshipInfoController.SAVE_CONTROL));
        saveButton.setEnabled(true);

        SButton cancelButton =
            new SButton(new SAction(ObjRelationshipInfoController.CANCEL_CONTROL));
        cancelButton.setEnabled(true);

        SButton newToOneButton =
            new SButton(new SAction(ObjRelationshipInfoController.NEW_TOONE_CONTROL));
        newToOneButton.setEnabled(true);
        SButton newToManyButton =
            new SButton(new SAction(ObjRelationshipInfoController.NEW_TOMANY_CONTROL));
        newToManyButton.setEnabled(true);

        STextField relationshipName = new STextField(25);
        relationshipName.setSelector(ObjRelationshipInfoModel.RELATIONSHIP_NAME_SELECTOR);
View Full Code Here

Examples of org.scopemvc.view.swing.SAction

        buttonGroup.add(objectSelect);
        buttonGroup.add(sqlSelect);
        buttonGroup.add(procedureSelect);
        buttonGroup.add(ejbqlSelect);
      
        SButton saveButton = new SButton(new SAction(QueryTypeController.CREATE_CONTROL));
        saveButton.setEnabled(true);

        SButton cancelButton = new SButton(
                new SAction(QueryTypeController.CANCEL_CONTROL));
        cancelButton.setEnabled(true);
        // assemble
        CellConstraints cc = new CellConstraints();
        FormLayout layout = new FormLayout(
View Full Code Here

Examples of org.scopemvc.view.swing.SAction

        init(source1, source2);
    }
   
    protected void init(DbEntity source1, DbEntity source2) {
        // create widgets
        SButton saveButton = new SButton(new SAction(
                DbRelationshipTargetController.CONTINUE_CONTROL));
        saveButton.setEnabled(true);

        SButton cancelButton = new SButton(new SAction(
                DbRelationshipTargetController.CANCEL_CONTROL));
        cancelButton.setEnabled(true);
       
        SComboBox targetCombo = new SComboBox();
        targetCombo.setSelector(DbRelationshipTargetModel.TARGETS_SELECTOR);
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.