⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 object.java

📁 Java写的ERP系统
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
        return(this);

    }



    /**

        Suggested horizontal gutter.

        @param hspace suggested horizontal gutter.

    */

    public object setHSpace(double hspace)

    {

        addAttribute("hspace",Double.toString(hspace));

        return(this);

    }



    /**

        Suggested vertical gutter.

        @param hspace suggested vertical gutter.

    */

    public object setVSpace(String vspace)

    {

        addAttribute("vspace",vspace);

        return(this);

    }



    /**

        Suggested vertical gutter.

        @param hspace suggested vertical gutter.

    */

    public object setVSpace(int vspace)

    {

        addAttribute("vspace",Integer.toString(vspace));

        return(this);

    }



    /**

        Suggested vertical gutter.

        @param hspace suggested vertical gutter.

    */

    public object setVSpace(double vspace)

    {

        addAttribute("vspace",Double.toString(vspace));

        return(this);

    }



    /**

        Set the horizontal or vertical alignment of this object.<br>

        Convience variables are in the AlignTypes interface.

        @param alignment Set the horizontal or vertical alignment of this object.<br>

        Convience variables are in the AlignTypes interface.

    */

    public object setAlign(String alignment)

    {

        addAttribute("align",alignment);

        return(this);

    }



    /**

        Location of image map to use.

        @param url location of image map to use.

    */

    public object setUseMap(String url)

    {

        addAttribute("usemap",url);

        return(this);

    }



    /**

        Object has shaped hypertext links.

        @param shape    does the object have shaped hypertext links?

    */

    public object setShapes(boolean shape)

    {

        if(shape)

            addAttribute("shapes","shapes");

        else

            removeAttribute("shapes");

        return(this);

    }



    /**

        Set the name of this object.

        @param name set the name of this object.

    */

    public object setName(String name)

    {

        addAttribute("name",name);

        return(this);

    }



    /**

        Set the elements position in the tabbing order.

        @param number set the elements position in the tabbing order.

    */

    public object setTabIndex(int number)

    {

        addAttribute("tabindex",Integer.toString(number));

        return(this);

    }



    /**

        Set the elements position in the tabbing order.

        @param number set the elements position in the tabbing order.

    */

    public object setTabIndex(String number)

    {

        addAttribute("tabindex",number);

        return(this);

    }



    /**

        Sets the lang="" and xml:lang="" attributes

        @param   lang  the lang="" and xml:lang="" attributes

    */

    public Element setLang(String lang)

    {

        addAttribute("lang",lang);

        addAttribute("xml:lang",lang);

        return this;

    }



    /**

        Adds an Element to the element.

        @param  hashcode name of element for hash table

        @param  element Adds an Element to the element.

     */

    public object addElement(String hashcode,Element element)

    {

        addElementToRegistry(hashcode,element);

        return(this);

    }



    /**

        Adds an Element to the element.

        @param  hashcode name of element for hash table

        @param  element Adds an Element to the element.

     */

    public object addElement(String hashcode,String element)

    {

        addElementToRegistry(hashcode,element);

        return(this);

    }



    /**

        Add an element to the element

        @param element a string representation of the element

    */

    public object addElement(String element)

    {

        addElementToRegistry(element);

        return(this);

    }



    /**

        Add an element to the element

        @param element  an element to add

    */

    public object addElement(Element element)

    {

        addElementToRegistry(element);

        return(this);

    }

    /**

        Removes an Element from the element.

        @param hashcode the name of the element to be removed.

    */

    public object removeElement(String hashcode)

    {

        removeElementFromRegistry(hashcode);

        return(this);

    }



    /**

        The onclick event occurs when the pointing device button is clicked

        over an element. This attribute may be used with most elements.

        

        @param The script

    */

    public void setOnClick(String script)

    {

        addAttribute ( "onclick", script );

    }

    /**

        The ondblclick event occurs when the pointing device button is double

        clicked over an element. This attribute may be used with most elements.



        @param The script

    */

    public void setOnDblClick(String script)

    {

        addAttribute ( "ondblclick", script );

    }

    /**

        The onmousedown event occurs when the pointing device button is pressed

        over an element. This attribute may be used with most elements.



        @param The script

    */

    public void setOnMouseDown(String script)

    {

        addAttribute ( "onmousedown", script );

    }

    /**

        The onmouseup event occurs when the pointing device button is released

        over an element. This attribute may be used with most elements.



        @param The script

    */

    public void setOnMouseUp(String script)

    {

        addAttribute ( "onmouseup", script );

    }

    /**

        The onmouseover event occurs when the pointing device is moved onto an

        element. This attribute may be used with most elements.



        @param The script

    */

    public void setOnMouseOver(String script)

    {

        addAttribute ( "onmouseover", script );

    }

    /**

        The onmousemove event occurs when the pointing device is moved while it

        is over an element. This attribute may be used with most elements.



        @param The script

    */

    public void setOnMouseMove(String script)

    {

        addAttribute ( "onmousemove", script );

    }

    /**

        The onmouseout event occurs when the pointing device is moved away from

        an element. This attribute may be used with most elements.



        @param The script

    */

    public void setOnMouseOut(String script)

    {

        addAttribute ( "onmouseout", script );

    }



    /**

        The onkeypress event occurs when a key is pressed and released over an

        element. This attribute may be used with most elements.

        

        @param The script

    */

    public void setOnKeyPress(String script)

    {

        addAttribute ( "onkeypress", script );

    }



    /**

        The onkeydown event occurs when a key is pressed down over an element.

        This attribute may be used with most elements.

        

        @param The script

    */

    public void setOnKeyDown(String script)

    {

        addAttribute ( "onkeydown", script );

    }



    /**

        The onkeyup event occurs when a key is released over an element. This

        attribute may be used with most elements.

        

        @param The script

    */

    public void setOnKeyUp(String script)

    {

        addAttribute ( "onkeyup", script );

    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -