public void startElement(String uri, String localName, String qName, Attributes attributes){
        if(qName.equals("objects")){
            uiElements = new LinkedList<UIElement>();
        }
        else if(qName.equals("label")){
            element = new Label();
            element.setType("label");
        }
        else if(qName.equals("button")){
            button = new Button();
            element = button;
            element.setType("button");
        }
        else if(qName.equals("input")){
            input = new Input();
            button = input;
            element = button;
            element.setType("input");
        }
        else {
            buffer = new StringBuffer();
        }
    }