Fixed a few constant references to their values.

This commit is contained in:
grail%cafebabe.org 1999-03-01 07:12:55 +00:00
Родитель e03330c847
Коммит dfd35aeb54
2 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -70,7 +70,6 @@ public class XMLMenuBuilder extends XMLWidgetBuilder {
static final String group_attr = "group";
static final String accel_attr = "accel";
static final String type_attr = "type";
static final int ELEMENT_TYPE = 1;
Hashtable button_group;
Hashtable actions;
@ -184,7 +183,7 @@ public class XMLMenuBuilder extends XMLWidgetBuilder {
JComponent container = null;
JComponent item = null;
if (node.getNodeType() != ELEMENT_TYPE) return; // can't process it
if (node.getNodeType() != Node.ELEMENT_NODE) return; // can't process it
// things will recurse through here
item = buildComponent((Element)node, (JComponent)parent);

Просмотреть файл

@ -79,7 +79,6 @@ public class XMLPageBuilder extends XMLWidgetBuilder {
static final String panel_tag = "panel";
static final String input_tag = "input";
static final String layout_attr = "layout";
static final int ELEMENT_TYPE = 1;
PageUI component;
String title;
@ -189,7 +188,7 @@ public class XMLPageBuilder extends XMLWidgetBuilder {
boolean conditionMatch(Node node) {
boolean match = false;
if (node.getNodeType() == ELEMENT_TYPE) {
if (node.getNodeType() == Node.ELEMENT_NODE) {
Element current = (Element)node;
String id_str = current.getAttribute(attr);
@ -212,7 +211,7 @@ public class XMLPageBuilder extends XMLWidgetBuilder {
if (node == null) return;
if (node.getNodeType() != ELEMENT_TYPE) {
if (node.getNodeType() != Node.ELEMENT_NODE) {
processNode(node.getNextSibling(), parent);
return;
}