private static void readNodeButtons(org.w3c.dom.Node moduleNode,
			FreeNode twaverNode, ActionListener action) {
		NodeList buttons = moduleNode.getChildNodes();
		if (buttons != null)
			for (int i = 0; i < buttons.getLength(); i++) {
				org.w3c.dom.Node buttonNode = buttons.item(i);
				if (buttonNode.getNodeType() == 1) {
					boolean isButton1 = buttonNode.getNodeName()
							.equalsIgnoreCase("button1");
					boolean isButton2 = buttonNode.getNodeName()
							.equalsIgnoreCase("button2");
					boolean isButton3 = buttonNode.getNodeName()
							.equalsIgnoreCase("button3");
					if ((isButton1) || (isButton2) || (isButton3)) {
						String tooltip = getStringAttribute(buttonNode,
								"tooltip");
						String iconURL = getStringAttribute(buttonNode, "icon");
						String command = getStringAttribute(buttonNode,
								"action");

						if (isButton1) {
							twaverNode.setButtonTooltip1(tooltip);
							twaverNode.setButtonIcon1(iconURL);
							twaverNode.setActionCommand1(command);
							twaverNode.setButtonAction1(action);
						}
						if (isButton2) {
							twaverNode.setButtonTooltip2(tooltip);
							twaverNode.setButtonIcon2(iconURL);
							twaverNode.setActionCommand2(command);
							twaverNode.setButtonAction2(action);
						}
						if (isButton3) {
							twaverNode.setButtonTooltip3(tooltip);
							twaverNode.setButtonIcon3(iconURL);
							twaverNode.setActionCommand3(command);
							twaverNode.setButtonAction3(action);
						}
					}
				}
			}
	}