001    // GraphLab Project: http://graphlab.sharif.edu
002    // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
003    // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/
004    package graphlab.ui.xml;
005    
006    import org.xml.sax.Attributes;
007    import org.xml.sax.SAXException;
008    
009    public interface UIHandler {
010    
011        /**
012         * An empty element event handling method.
013         *
014         * @param data value or null
015         */
016        public void handle_sidebar(final Attributes meta) throws SAXException;
017    
018        /**
019         * An empty element event handling method.
020         *
021         * @param data value or null
022         */
023        public void handle_action(final Attributes meta) throws SAXException;
024    
025        /**
026         * A container element start event handling method.
027         *
028         * @param meta attributes
029         */
030        public void start_submenu(final Attributes meta) throws SAXException;
031    
032        /**
033         * A container element end event handling method.
034         */
035        public void end_submenu() throws SAXException;
036    
037        /**
038         * An empty element event handling method.
039         *
040         * @param data value or null
041         */
042        public void handle_bar(final Attributes meta) throws SAXException;
043    
044        /**
045         * A container element start event handling method.
046         *
047         * @param meta attributes
048         */
049        public void start_toolbar(final Attributes meta) throws SAXException;
050    
051        /**
052         * A container element end event handling method.
053         */
054        public void end_toolbar() throws SAXException;
055    
056        /**
057         * A container element start event handling method.
058         *
059         * @param meta attributes
060         */
061        public void start_toolbars(final Attributes meta) throws SAXException;
062    
063        /**
064         * A container element end event handling method.
065         */
066        public void end_toolbars() throws SAXException;
067    
068        /**
069         * An empty element event handling method.
070         *
071         * @param data value or null
072         */
073        public void handle_tool(final Attributes meta) throws SAXException;
074    
075        /**
076         * An empty element event handling method.
077         *
078         * @param data value or null
079         */
080        public void handle_menu(final Attributes meta) throws SAXException;
081    
082        /**
083         * A container element start event handling method.
084         *
085         * @param meta attributes
086         */
087        public void start_menues(final Attributes meta) throws SAXException;
088    
089        /**
090         * A container element end event handling method.
091         */
092        public void end_menues() throws SAXException;
093    
094        /**
095         * An empty element event handling method.
096         *
097         * @param data value or null
098         */
099        public void handle_body(final Attributes meta) throws SAXException;
100    }