Examples of ItsNatHTMLInputCheckBox


Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

        return null;
    }

    public ItsNatHTMLInputCheckBox createItsNatHTMLInputCheckBox(HTMLInputElement element,NameValue[] artifacts,boolean execCreateFilters,ItsNatStfulDocComponentManagerImpl compMgr)
    {
        ItsNatHTMLInputCheckBox comp = null;
        boolean doFilters = hasBeforeAfterCreateItsNatComponentListener(execCreateFilters,compMgr);
        if (doFilters) comp = (ItsNatHTMLInputCheckBox)processBeforeCreateItsNatComponentListener(element,getCompType(),null,artifacts,compMgr);
        if (comp == null)
            comp = new ItsNatHTMLInputCheckBoxImpl(element,artifacts,compMgr);
        if (doFilters) comp = (ItsNatHTMLInputCheckBox)processAfterCreateItsNatComponentListener(comp,compMgr);
View Full Code Here

Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

        return (ItsNatHTMLInputCheckBox)compEditor;
    }

    public Object getCellEditorValue()
    {
        ItsNatHTMLInputCheckBox compEditor = getItsNatHTMLInputCheckBox();
        return Boolean.valueOf(compEditor.isSelected());
    }
View Full Code Here

Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

        if (value instanceof Boolean)
            selected = ((Boolean)value).booleanValue();
        else
            selected = value.toString().equals("true"); // Se incluye as� String, StringBuilder y objetos del usuario

        ItsNatHTMLInputCheckBox compEditor = getItsNatHTMLInputCheckBox();
        compEditor.setSelected(selected);
    }
View Full Code Here

Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

    public static void methodEventUsingBrowser(final TreePath path,final FeatureTreeNode feature,final int panel)
    {
        FeatureShowcaseDocument featShowDoc = feature.getFeatureShowcaseDocument();
        final ItsNatFreeTree tree = featShowDoc.getItsNatFreeTree();
        final ItsNatDocument itsNatDoc = feature.getItsNatDocument();
        final ItsNatHTMLInputCheckBox joystickCB = featShowDoc.getJoystickModeCheckBox();

        Runnable dispCode = new Runnable()
        {
            public void run()
            {
                // Joystick mode temporally disabled, because on load time and fast load,
                // event listeners in the component are not added until the load event is fired.

                boolean useJoystick = joystickCB.isSelected();
                if (useJoystick) joystickCB.setSelected(false);

                Element featureElem;
                MouseEvent event1;
                synchronized(itsNatDoc)
                {
                    featureElem = tree.getItsNatTreeUI().getParentElementFromTreePath(path);
                    event1 = createMouseEvent(itsNatDoc);
                }
                ((EventTarget)featureElem).dispatchEvent(event1); // Select feature

                if (panel == feature.getFirstPanel())
                    return;

                for( ; ; )
                {
                    synchronized(itsNatDoc)
                    {
                        if (tree.getTreeSelectionModel().isPathSelected(path))
                            break;
                    }
                    try{ Thread.sleep(200); }catch(InterruptedException ex) { throw new RuntimeException(ex); }
                }

                Element tabElem;
                MouseEvent event2;
                synchronized(itsNatDoc)
                {
                    tabElem = feature.getTabElement(panel);
                    event2 = createMouseEvent(itsNatDoc);
                }

                ((EventTarget)tabElem).dispatchEvent(event2); // Select tab

                if (useJoystick) joystickCB.setSelected(true);
            }
        };
        ClientDocument client = itsNatDoc.getClientDocumentOwner();
        client.startEventDispatcherThread(dispCode);
    }
View Full Code Here

Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

        // panel is not the "example" panel because the example panel is loaded and discarded.

        FeatureShowcaseDocument featShowDoc = feature.getFeatureShowcaseDocument();
        ItsNatFreeTree tree = featShowDoc.getItsNatFreeTree();
        ItsNatDocument itsNatDoc = feature.getItsNatDocument();
        ItsNatHTMLInputCheckBox joystickCB = featShowDoc.getJoystickModeCheckBox();

        // Joystick mode temporally disabled, because on load time and fast load,
        // event listeners in the component are not added until the load event is fired.
        boolean useJoystick = joystickCB.isSelected();
        if (useJoystick) joystickCB.setSelected(false);
           
        Element featureElem = tree.getItsNatTreeUI().getParentElementFromTreePath(path);
        MouseEvent event1 = createMouseEvent(itsNatDoc);
        ((EventTarget)featureElem).dispatchEvent(event1); // Select feature

        if (panel == feature.getFirstPanel())
            return;

        Element tabElem = feature.getTabElement(panel);
        MouseEvent event2 = createMouseEvent(itsNatDoc);
        ((EventTarget)tabElem).dispatchEvent(event2); // Select tab

        if (useJoystick) joystickCB.setSelected(true);
    }
View Full Code Here

Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

        final HTMLTextAreaElement textArea = (HTMLTextAreaElement)elem.getElementsByTagName("textarea").item(0);
        final ItsNatHTMLTextArea textAreaComp = (ItsNatHTMLTextArea)compMgr.createItsNatComponent(textArea);
        textAreaComp.setText("Hello");

        final HTMLInputElement inputCheck = (HTMLInputElement)inputList.item(1);
        final ItsNatHTMLInputCheckBox inputCheckComp = (ItsNatHTMLInputCheckBox)compMgr.createItsNatComponent(inputCheck);
        inputCheckComp.setSelected(false);

        final HTMLInputElement inputRadio1 = (HTMLInputElement)inputList.item(2);
        final ItsNatHTMLInputRadio inputRadioComp1 = (ItsNatHTMLInputRadio)compMgr.createItsNatComponent(inputRadio1);
        inputRadioComp1.setSelected(false);

        final HTMLInputElement inputRadio2 = (HTMLInputElement)inputList.item(3);
        final ItsNatHTMLInputRadio inputRadioComp2 = (ItsNatHTMLInputRadio)compMgr.createItsNatComponent(inputRadio2);
        inputRadioComp2.setSelected(false);

        EventListener listenerExit = new EventListenerSerial()
        {
            public void handleEvent(Event evt)
            {
                selectComp.dispose();
                inputTextComp.dispose();
                textAreaComp.dispose();
                inputCheckComp.dispose();
                inputRadioComp1.dispose();
                inputRadioComp2.dispose();

                ((EventTarget)linkCheckServ).removeEventListener("click",listenerNothing,false);
                //((EventTarget)elem).removeEventListener("click",this,false);
View Full Code Here

Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

            ItsNatHTMLInputText textInput = compMgr.createItsNatHTMLInputText(null,null);
            shared(0,comp,textInput);

            comp = (ItsNatFreeLabel)compMgr.createItsNatComponentById("labelId2","freeLabel",null);
            comp.setValue(Boolean.TRUE);
            ItsNatHTMLInputCheckBox checkBox = compMgr.createItsNatHTMLInputCheckBox(null,null);
            shared(1,comp,checkBox);

            comp = (ItsNatFreeLabel)compMgr.createItsNatComponentById("labelId3","freeLabel",null);
            comp.setValue(new Integer(3));
            ItsNatHTMLSelectComboBox comboBox = compMgr.createItsNatHTMLSelectComboBox(null,null);
View Full Code Here

Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

    public void label2(String id) throws PropertyVetoException
    {
        ItsNatLabel label = getItsNatLabel(id);
        label.setValue(Boolean.TRUE);
        ItsNatHTMLInputCheckBox checkBox = getComponentMgr().createItsNatHTMLInputCheckBox(null,null);
        labelShared(2,label,checkBox);
    }
View Full Code Here

Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

            ItsNatHTMLInputText textInput = compMgr.createItsNatHTMLInputText(null,null);
            shared(0,comp,textInput);

            comp = (ItsNatHTMLLabel)compMgr.createItsNatComponentById("labelId2");
            comp.setValue(Boolean.TRUE);
            ItsNatHTMLInputCheckBox checkBox = compMgr.createItsNatHTMLInputCheckBox(null,null);
            checkBox.getElement().setAttribute("style","width:20px;height:20px;");
            shared(1,comp,checkBox);

            comp = (ItsNatHTMLLabel)compMgr.createItsNatComponentById("labelId3");
            comp.setValue(new Integer(3));
            ItsNatHTMLSelectComboBox comboBox = compMgr.createItsNatHTMLSelectComboBox(null,null);
View Full Code Here

Examples of org.itsnat.comp.button.toggle.ItsNatHTMLInputCheckBox

    public void initCheckBox()
    {
        Document doc = itsNatDoc.getDocument();
        HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("checkboxId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputCheckBox input = (ItsNatHTMLInputCheckBox)componentMgr.findItsNatComponent(inputElem);
        ToggleButtonModel dataModel = new ToggleButtonModel();
        input.setButtonModel(dataModel);

        input.addEventListener("click",this);
        // Los dem�s tipos de eventos ya est�n testeados con el tipo de bot�n normal (default)

        dataModel.addChangeListener(this);
    }
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.