Package javax.swing

Examples of javax.swing.DefaultButtonModel


    setPreferredSize( d );
    setMinimumSize( d );
    setMaximumSize( d );
//    setContentAreaFilled( false );
    setFocusable( false );
    model          = new DefaultButtonModel();
    setModel( model );
   
    addMouseListener( this );
    addMouseMotionListener( this );
   
View Full Code Here


    {
        Document doc = itsNatDoc.getDocument();
        HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("imageButtonId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputImage input = (ItsNatHTMLInputImage)componentMgr.findItsNatComponent(inputElem);
        DefaultButtonModel dataModel = new DefaultButtonModel();
        input.setButtonModel(dataModel);

        input.setEventListenerParams("click",false,CommMode.XHR_SYNC,null,null,-1); // Es necesario que sea s�ncrono pues sino no funciona la llamada preventDefault()
        input.addEventListener("click",this);

        dataModel.addChangeListener(this);
        dataModel.addActionListener(this);
    }
View Full Code Here

        Document doc = itsNatDoc.getDocument();
        HTMLElement elem = (HTMLElement)doc.getElementById(id);
            ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        this.button = (ItsNatFreeButtonNormal)componentMgr.findItsNatComponent(elem);

        DefaultButtonModel dataModel = new DefaultButtonModel();
        button.setButtonModel(dataModel);

        button.addEventListener("click",this);

        dataModel.addChangeListener(this);
        dataModel.addActionListener(this);
    }
View Full Code Here

    {
        Document doc = itsNatDoc.getDocument();
        HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("submitButtonId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputSubmit input = (ItsNatHTMLInputSubmit)componentMgr.findItsNatComponent(inputElem);
        DefaultButtonModel dataModel = new DefaultButtonModel();
        input.setButtonModel(dataModel);

        input.setLabelValue("Submit Button");

        input.setEventListenerParams("click",false,CommMode.XHR_SYNC,null,null,-1); // Es necesario que sea s�ncrono pues sino no funciona la llamada preventDefault()
        input.addEventListener("click",this);

        dataModel.addChangeListener(this);
        dataModel.addActionListener(this);
    }
View Full Code Here

    {
        Document doc = itsNatDoc.getDocument();
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        HTMLAnchorElement elem = (HTMLAnchorElement)doc.getElementById(id);
        this.button = (ItsNatHTMLAnchor)componentMgr.findItsNatComponent(elem);
        DefaultButtonModel dataModel = new DefaultButtonModel();
        button.setButtonModel(dataModel);

        button.addEventListener("click",this);

        dataModel.addChangeListener(this);
        dataModel.addActionListener(this);
    }
View Full Code Here

    {
        Document doc = itsNatDoc.getDocument();
        HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("inputButtonId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputButton input = (ItsNatHTMLInputButton)componentMgr.findItsNatComponent(inputElem);
        DefaultButtonModel dataModel = new DefaultButtonModel();
        input.setButtonModel(dataModel);

        input.setLabelValue("Text Button");
        input.setEnabled(false); // Para testear la propagaci�n al DOM (getDisabled)
        TestUtil.checkError(inputElem.getDisabled());
        input.setEnabled(true);

        input.addEventListener("click",this);
        input.addEventListener("mousedown",this);
        input.addEventListener("mouseup",this);
        input.addEventListener("mouseover",this);
        input.addEventListener("mouseout",this);

        dataModel.addChangeListener(this);
        dataModel.addActionListener(this);
    }
View Full Code Here

    {
        Document doc = itsNatDoc.getDocument();
        HTMLInputElement inputElem = (HTMLInputElement)doc.getElementById("resetButtonId");
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        ItsNatHTMLInputReset input = (ItsNatHTMLInputReset)componentMgr.findItsNatComponent(inputElem);
        DefaultButtonModel dataModel = new DefaultButtonModel();
        input.setButtonModel(dataModel);

        input.setEventListenerParams("click",false,CommMode.XHR_SYNC,null,null,-1); // Es necesario que sea s�ncrono pues sino no funciona la llamada preventDefault()
        input.setLabelValue("Reset Button");

        input.addEventListener("click",this);

        dataModel.addChangeListener(this);
        dataModel.addActionListener(this);
    }
View Full Code Here

    {
        Document doc = itsNatDoc.getDocument();
        HTMLButtonElement elem = (HTMLButtonElement)doc.getElementById(id);
        ItsNatComponentManager componentMgr = itsNatDoc.getItsNatComponentManager();
        this.button = (ItsNatHTMLButton)componentMgr.findItsNatComponent(elem);
        DefaultButtonModel dataModel = new DefaultButtonModel();
        button.setButtonModel(dataModel);

        button.setEnabled(false); // Para testear la propagaci�n al DOM (getDisabled)
        TestUtil.checkError(elem.getDisabled());
        button.setEnabled(true);

        button.addEventListener("click",this);

        dataModel.addChangeListener(this);
        dataModel.addActionListener(this);
    }
View Full Code Here

        return createDefaultButtonModel();
    }

    public ButtonModel createDefaultButtonModel()
    {
        return new DefaultButtonModel();
    }
View Full Code Here

        return createDefaultButtonModel();
    }

    public ButtonModel createDefaultButtonModel()
    {
        return new DefaultButtonModel();
    }
View Full Code Here

TOP

Related Classes of javax.swing.DefaultButtonModel

Copyright © 2018 www.massapicom. 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.