bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected void unresolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].unresolve(); } }
protected void unresolve() throws PluginException { for (int i = 0; i < libraries.length; i++) { libraries[i].unresolve(); } }
9,205
private boolean evaluateImpl(Node context, int pos, int len) { Object left = lhs.evaluate(context, pos, len); Object right = rhs.evaluate(context, pos, len); /* * If both objects to be compared are node-sets, then the comparison * will be true if and only if there is a node in the first node-set and * a node in the second node-set such that the result of performing the * comparison on the string-values of the two nodes is true. */ boolean flns = left instanceof Collection; boolean frns = right instanceof Collection; if (flns && frns) { Collection lns = (Collection) left; Collection rns = (Collection) right; boolean all = true; for (Iterator i = lns.iterator(); i.hasNext(); ) { Node ltest = (Node) i.next(); for (Iterator j = rns.iterator(); j.hasNext(); ) { Node rtest = (Node) j.next(); if (ltest == rtest || ltest.equals(rtest)) { // much shorter if (!invert) { return true; } } else if (stringValue(ltest).equals(stringValue(rtest))) { if (!invert) { return true; } } else { all = false; } } } return false; } /* * If one object to be compared is a node-set and the other is a number, * then the comparison will be true if and only if there is a node in * the node-set such that the result of performing the comparison on the * number to be compared and on the result of converting the * string-value of that node to a number using the number function is * true. */ boolean fln = left instanceof Double; boolean frn = right instanceof Double; if ((flns && frn) || (frns && fln)) { Collection ns = flns ? (Collection) left : (Collection) right; double n = fln ? ((Double) left).doubleValue() : ((Double) right).doubleValue(); boolean all = true; for (Iterator i = ns.iterator(); i.hasNext(); ) { Node test = (Node) i.next(); double nn = _number(context, stringValue(test)); if (nn == n) { if (!invert) { return true; } } else { all = false; } } return invert ? all : false; } /* * If one object to be compared is a node-set and the other is a * string, then the comparison will be true if and only if there is a * node in the node-set such that the result of performing the * comparison on the string-value of the node and the other string is * true. */ boolean fls = left instanceof String; boolean frs = right instanceof String; if ((flns && frs) || (frns && fls)) { Collection ns = flns ? (Collection) left : (Collection) right; String s = fls ? (String) left : (String) right; boolean all = true; for (Iterator i = ns.iterator(); i.hasNext(); ) { Node test = (Node) i.next(); if (stringValue(test).equals(s)) { if (!invert) { return true; } } else { all = false; } } return invert ? all : false; } /* * If one object to be compared is a node-set and the other is a * boolean, then the comparison will be true if and only if the result * of performing the comparison on the boolean and on the result of * converting the node-set to a boolean using the boolean function is * true. */ boolean flb = left instanceof Boolean; boolean frb = right instanceof Boolean; if ((flns && frb) || (frns && flb)) { Collection ns = flns ? (Collection) left : (Collection) right; boolean b = flb ? ((Boolean) left).booleanValue() : ((Boolean) right).booleanValue(); return _boolean(context, ns) == b; } /* * If at least one object to be compared is a boolean, then each object * to be compared is converted to a boolean as if by applying the * boolean function. */ if (flb || frb) { boolean lb = flb ? ((Boolean) left).booleanValue() : _boolean(context, left); boolean rb = frb ? ((Boolean) right).booleanValue() : _boolean(context, right); return lb == rb; } /* * Otherwise, if at least one object to be compared is * a number, then each object to be compared is converted to a number as * if by applying the number function. */ if (fln || frn) { double ln = fln ? ((Double) left).doubleValue() : _number(context, left); double rn = frn ? ((Double) right).doubleValue() : _number(context, right); return ln == rn; } /* * Otherwise, both objects to be * compared are converted to strings as if by applying the string * function. */ String ls = fls ? (String) left : _string(context, left); String rs = frs ? (String) right : _string(context, right); return ls.equals(rs); }
private boolean evaluateImpl(Node context, int pos, int len) { Object left = lhs.evaluate(context, pos, len); Object right = rhs.evaluate(context, pos, len); /* * If both objects to be compared are node-sets, then the comparison * will be true if and only if there is a node in the first node-set and * a node in the second node-set such that the result of performing the * comparison on the string-values of the two nodes is true. */ boolean flns = left instanceof Collection; boolean frns = right instanceof Collection; if (flns && frns) { Collection lns = (Collection) left; Collection rns = (Collection) right; boolean all = true; for (Iterator i = lns.iterator(); i.hasNext(); ) { Node ltest = (Node) i.next(); for (Iterator j = rns.iterator(); j.hasNext(); ) { Node rtest = (Node) j.next(); if (ltest == rtest || ltest.equals(rtest)) { // much shorter if (!invert) { return true; } } else if (stringValue(ltest).equals(stringValue(rtest))) { if (!invert) { return true; } } else { all = false; } } } return all; } /* * If one object to be compared is a node-set and the other is a number, * then the comparison will be true if and only if there is a node in * the node-set such that the result of performing the comparison on the * number to be compared and on the result of converting the * string-value of that node to a number using the number function is * true. */ boolean fln = left instanceof Double; boolean frn = right instanceof Double; if ((flns && frn) || (frns && fln)) { Collection ns = flns ? (Collection) left : (Collection) right; double n = fln ? ((Double) left).doubleValue() : ((Double) right).doubleValue(); boolean all = true; for (Iterator i = ns.iterator(); i.hasNext(); ) { Node test = (Node) i.next(); double nn = _number(context, stringValue(test)); if (nn == n) { if (!invert) { return true; } } else { all = false; } } return invert ? all : false; } /* * If one object to be compared is a node-set and the other is a * string, then the comparison will be true if and only if there is a * node in the node-set such that the result of performing the * comparison on the string-value of the node and the other string is * true. */ boolean fls = left instanceof String; boolean frs = right instanceof String; if ((flns && frs) || (frns && fls)) { Collection ns = flns ? (Collection) left : (Collection) right; String s = fls ? (String) left : (String) right; boolean all = true; for (Iterator i = ns.iterator(); i.hasNext(); ) { Node test = (Node) i.next(); if (stringValue(test).equals(s)) { if (!invert) { return true; } } else { all = false; } } return invert ? all : false; } /* * If one object to be compared is a node-set and the other is a * boolean, then the comparison will be true if and only if the result * of performing the comparison on the boolean and on the result of * converting the node-set to a boolean using the boolean function is * true. */ boolean flb = left instanceof Boolean; boolean frb = right instanceof Boolean; if ((flns && frb) || (frns && flb)) { Collection ns = flns ? (Collection) left : (Collection) right; boolean b = flb ? ((Boolean) left).booleanValue() : ((Boolean) right).booleanValue(); return _boolean(context, ns) == b; } /* * If at least one object to be compared is a boolean, then each object * to be compared is converted to a boolean as if by applying the * boolean function. */ if (flb || frb) { boolean lb = flb ? ((Boolean) left).booleanValue() : _boolean(context, left); boolean rb = frb ? ((Boolean) right).booleanValue() : _boolean(context, right); return lb == rb; } /* * Otherwise, if at least one object to be compared is * a number, then each object to be compared is converted to a number as * if by applying the number function. */ if (fln || frn) { double ln = fln ? ((Double) left).doubleValue() : _number(context, left); double rn = frn ? ((Double) right).doubleValue() : _number(context, right); return ln == rn; } /* * Otherwise, both objects to be * compared are converted to strings as if by applying the string * function. */ String ls = fls ? (String) left : _string(context, left); String rs = frs ? (String) right : _string(context, right); return ls.equals(rs); }
9,206
public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator();AxisInterface axis0 = (AxisInterface) CurrentArray.getAxisList().get(0); AxisInterface axis1 = (AxisInterface) CurrentArray.getAxisList().get(1); CurrentDataFormatIndex = 0; // boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ Log.errorln("FORMATTED DATA READ NOT SUPPORTED"); } else { // snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. addDataToCurrentArray(myLocator, (String) iter.next(), CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } }Log.errorln("Location:["+myLocator.getAxisLocation(axis0)+","+myLocator.getAxisLocation(axis1)+"]"); myLocator.next(); } } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator(); CurrentDataFormatIndex = 0; // boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ Log.errorln("FORMATTED DATA READ NOT SUPPORTED"); } else { // snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. addDataToCurrentArray(myLocator, (String) iter.next(), CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } }Log.errorln("Location:["+myLocator.getAxisLocation(axis0)+","+myLocator.getAxisLocation(axis1)+"]"); myLocator.next(); } } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
9,207
public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator();AxisInterface axis0 = (AxisInterface) CurrentArray.getAxisList().get(0); AxisInterface axis1 = (AxisInterface) CurrentArray.getAxisList().get(1); CurrentDataFormatIndex = 0; // boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ Log.errorln("FORMATTED DATA READ NOT SUPPORTED"); } else { // snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. addDataToCurrentArray(myLocator, (String) iter.next(), CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } }Log.errorln("Location:["+myLocator.getAxisLocation(axis0)+","+myLocator.getAxisLocation(axis1)+"]"); myLocator.next(); } } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
public void action () { // we stopped reading datanode, lower count by one DataNodeLevel--; // we might still be nested within a data node // if so, return now to accumulate more data within the DATABLOCK if(DataNodeLevel != 0) return; // now we are ready to read in untagged data (both delimited/formmatted styles) // from the DATABLOCK // Note: unfortunately we are reduced to using regex style matching // instead of a buffer read in formatted reads. Come back and // improve this later if possible. XMLDataIOStyle formatObj = CurrentArray.getXMLDataIOStyle(); if ( formatObj instanceof DelimitedXMLDataIOStyle || formatObj instanceof FormattedXMLDataIOStyle ) { // determine the size of the dataFormat (s) in our dataCube if (CurrentArray.hasFieldAxis()) { // if there is a field axis, then its set to the number of fields FieldAxis fieldAxis = CurrentArray.getFieldAxis(); MaxDataFormatIndex = (fieldAxis.getLength()-1); } else { // its homogeneous MaxDataFormatIndex = 0; } Locator myLocator = CurrentArray.createLocator();AxisInterface axis0 = (AxisInterface) CurrentArray.getAxisList().get(0); AxisInterface axis1 = (AxisInterface) CurrentArray.getAxisList().get(1); CurrentDataFormatIndex = 0; // boolean dataHasSpecialIntegers = false; // set up appropriate instructions for reading if ( formatObj instanceof FormattedXMLDataIOStyle ) {/* $template = $formatObj->_templateNotation(1); $recordSize = $formatObj->bytes(); $data_has_special_integers = $formatObj->hasSpecialIntegers;*/ Log.errorln("FORMATTED DATA READ NOT SUPPORTED"); } else { // snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects( DATABLOCK.toString(), ((DelimitedXMLDataIOStyle) formatObj).getDelimiter(), ((DelimitedXMLDataIOStyle) formatObj).getRepeatable(), ((DelimitedXMLDataIOStyle) formatObj).getRecordTerminator() ); // fire data into dataCube Iterator iter = strValueList.iterator(); while (iter.hasNext()) { DataFormat CurrentDataFormat = DataFormatList[CurrentDataFormatIndex]; // adding data based on what type.. addDataToCurrentArray(myLocator, (String) iter.next(), CurrentDataFormat); // bump up DataFormat appropriately if (MaxDataFormatIndex > 0) { int currentFastAxisCoordinate = myLocator.getAxisLocation(FastestAxis); if ( currentFastAxisCoordinate != LastFastAxisCoordinate ) { LastFastAxisCoordinate = currentFastAxisCoordinate; if (CurrentDataFormatIndex == MaxDataFormatIndex) CurrentDataFormatIndex = 0; else CurrentDataFormatIndex++; } } myLocator.next(); } } } else if ( formatObj instanceof TaggedXMLDataIOStyle ) { // Tagged case: do nothing } else { Log.errorln("ERROR: Completely unknown DATA IO style:"+formatObj.toString() +" aborting read!"); System.exit(-1); } }
9,208
public void action (AttributeList attrs) { Log.errorln("FOR Start handler not implemented yet."); }
public void action (AttributeList attrs) { for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if (name.equals("axisIdRef") ) { AxisReadOrder.add(AxisObj.get(attrs.getValue(i))); } else Log.warnln("Warning: got weird attribute:"+name+" on for node"); } }
9,209
public void action (AttributeList attrs) { // grab parent node name String gParentNodeName = getGrandParentNodeName(); // create new object appropriately Unit newunit = new Unit(); newunit.setXMLAttributes(attrs); // determine where this goes and then insert it if( gParentNodeName.equals(XDFNodeName.PARAMETER) ) { newunit = LastParameterObject.addUnit(newunit); } else if ( gParentNodeName.equals(XDFNodeName.FIELD) ) { newunit = LastFieldObject.addUnit(newunit); } else if ( gParentNodeName.equals(XDFNodeName.AXIS) ) { ArrayList axisList = (ArrayList) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); newunit = lastAxisObject.addUnit(newunit); } else if ( gParentNodeName.equals(XDFNodeName.ARRAY) ) { newunit = CurrentArray.addUnit(newunit); } else { Log.warnln("Unknown grandparent object, cant add unit, ignoring."); } LastUnitObject = newunit; }
public void action (AttributeList attrs) { // grab parent node name String gParentNodeName = getGrandParentNodeName(); // create new object appropriately Unit newunit = new Unit(); newunit.setXMLAttributes(attrs); // determine where this goes and then insert it if( gParentNodeName.equals(XDFNodeName.PARAMETER) ) { newunit = LastParameterObject.addUnit(newunit); } else if ( gParentNodeName.equals(XDFNodeName.FIELD) ) { newunit = LastFieldObject.addUnit(newunit); } else if ( gParentNodeName.equals(XDFNodeName.AXIS) ) { ArrayList axisList = (ArrayList) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); newunit = lastAxisObject.addUnit(newunit); } else if ( gParentNodeName.equals(XDFNodeName.ARRAY) ) { newunit = CurrentArray.addUnit(newunit); } else { Log.warnln("Unknown grandparent object, cant add unit, ignoring."); } LastUnitObject = newunit; }
9,211
public void action (char buf [], int offset, int len) { String valueListString = new String (buf, offset, len); // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } }
public void action (char buf [], int offset, int len) { String valueListString = new String (buf, offset, len); // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); // split up string into values based on declared delimiter String delimiter = (String) CurrentValueListParameter.get("delimiter"); String repeatable = (String) CurrentValueListParameter.get("repeatable"); // snag the string representation of the values ArrayList strValueList = splitStringIntoStringObjects(valueListString, delimiter, repeatable, null ); // now create value objects, add them to groups Iterator iter = strValueList.iterator(); while (iter.hasNext()) { String valueString = (String) iter.next(); // add the value to the axis Value newvalue = new Value(valueString); lastAxisObject.addAxisValue(newvalue); // add this object to all open value groups Iterator groupIter = CurrentValueGroupList.iterator(); while (groupIter.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) groupIter.next(); newvalue.addToGroup(nextValueGroupObj); } } }
9,212
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no values exist because they are stored // in PCDATA rather than as algorithm (treat in char data handler // in this case). if(values.size() > 0 ) { // algoritm case ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) { /* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup); */ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.errorln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } // add these new value objects to all open groups Iterator iter1 = CurrentValueGroupList.iterator(); Iterator iter2 = valueObjList.iterator(); while (iter1.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) iter1.next(); while (iter2.hasNext()) { Value nextValueObj = (Value) iter2.next(); nextValueObj.addToGroup(nextValueGroupObj); } // reset iter2 iter2 = valueObjList.iterator(); } } else { // PCDATA case String delimiter = DefaultValueListDelimiter; String repeatable = DefaultValueListRepeatable; // pickup overriding values from attribute list for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("delimiter") ) { delimiter = attrs.getValue(i); } else if ( name.equals("repeatable")) { repeatable = attrs.getValue(i); } } CurrentValueListParameter = new Hashtable(); // re-init CurrentValueListParameter.put("parentNode", parentNodeName); CurrentValueListParameter.put("delimiter", delimiter); CurrentValueListParameter.put("repeatable", repeatable); } }
CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); public CurrentValueListParameter = new Hashtable(); void CurrentValueListParameter = new Hashtable(); action CurrentValueListParameter = new Hashtable(); (AttributeList CurrentValueListParameter = new Hashtable(); attrs) CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); 1. CurrentValueListParameter = new Hashtable(); grab CurrentValueListParameter = new Hashtable(); parent CurrentValueListParameter = new Hashtable(); node CurrentValueListParameter = new Hashtable(); name CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); String CurrentValueListParameter = new Hashtable(); parentNodeName CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); getParentNodeName(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); 2. CurrentValueListParameter = new Hashtable(); try CurrentValueListParameter = new Hashtable(); to CurrentValueListParameter = new Hashtable(); determine CurrentValueListParameter = new Hashtable(); values CurrentValueListParameter = new Hashtable(); from CurrentValueListParameter = new Hashtable(); attributes CurrentValueListParameter = new Hashtable(); (e.g. CurrentValueListParameter = new Hashtable(); algorithm CurrentValueListParameter = new Hashtable(); method) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); ArrayList CurrentValueListParameter = new Hashtable(); values CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); getValueListNodeValues(attrs); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); 3. CurrentValueListParameter = new Hashtable(); IT CurrentValueListParameter = new Hashtable(); could CurrentValueListParameter = new Hashtable(); be CurrentValueListParameter = new Hashtable(); that CurrentValueListParameter = new Hashtable(); no CurrentValueListParameter = new Hashtable(); values CurrentValueListParameter = new Hashtable(); exist CurrentValueListParameter = new Hashtable(); because CurrentValueListParameter = new Hashtable(); they CurrentValueListParameter = new Hashtable(); are CurrentValueListParameter = new Hashtable(); stored CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); in CurrentValueListParameter = new Hashtable(); PCDATA CurrentValueListParameter = new Hashtable(); rather CurrentValueListParameter = new Hashtable(); than CurrentValueListParameter = new Hashtable(); as CurrentValueListParameter = new Hashtable(); algorithm CurrentValueListParameter = new Hashtable(); (treat CurrentValueListParameter = new Hashtable(); in CurrentValueListParameter = new Hashtable(); char CurrentValueListParameter = new Hashtable(); data CurrentValueListParameter = new Hashtable(); handler CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); in CurrentValueListParameter = new Hashtable(); this CurrentValueListParameter = new Hashtable(); case). CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); if(values.size() CurrentValueListParameter = new Hashtable(); > CurrentValueListParameter = new Hashtable(); 0 CurrentValueListParameter = new Hashtable(); ) CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); algoritm CurrentValueListParameter = new Hashtable(); case CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); ArrayList CurrentValueListParameter = new Hashtable(); valueObjList CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); new CurrentValueListParameter = new Hashtable(); ArrayList(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); if( CurrentValueListParameter = new Hashtable(); parentNodeName.equals(XDFNodeName.AXIS) CurrentValueListParameter = new Hashtable(); ) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); get CurrentValueListParameter = new Hashtable(); the CurrentValueListParameter = new Hashtable(); last CurrentValueListParameter = new Hashtable(); axis CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); List CurrentValueListParameter = new Hashtable(); axisList CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (List) CurrentValueListParameter = new Hashtable(); CurrentArray.getAxisList(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Axis CurrentValueListParameter = new Hashtable(); lastAxisObject CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (Axis) CurrentValueListParameter = new Hashtable(); axisList.get(axisList.size()-1); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Iterator CurrentValueListParameter = new Hashtable(); iter CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); values.iterator(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); while CurrentValueListParameter = new Hashtable(); (iter.hasNext()) CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); String CurrentValueListParameter = new Hashtable(); valuePCDATA CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (String) CurrentValueListParameter = new Hashtable(); iter.next(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Value CurrentValueListParameter = new Hashtable(); value CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); new CurrentValueListParameter = new Hashtable(); Value CurrentValueListParameter = new Hashtable(); (valuePCDATA); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); valueObjList.add(lastAxisObject.addAxisValue(value)); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); else CurrentValueListParameter = new Hashtable(); if CurrentValueListParameter = new Hashtable(); ( CurrentValueListParameter = new Hashtable(); parentNodeName.equals(XDFNodeName.VALUEGROUP) CurrentValueListParameter = new Hashtable(); ) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); /* CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); ValueGroup CurrentValueListParameter = new Hashtable(); lastValueGroup CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (ValueGroup) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueGroupList.get(CurrentValueGroupList.size()-1); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); newvalueGroup CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); lastValueGroup.addValueGroup(newvalueGroup); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); */ CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); if CurrentValueListParameter = new Hashtable(); ( CurrentValueListParameter = new Hashtable(); LastValueGroupParentObject CurrentValueListParameter = new Hashtable(); instanceof CurrentValueListParameter = new Hashtable(); Parameter CurrentValueListParameter = new Hashtable(); ) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Parameter CurrentValueListParameter = new Hashtable(); myParamObject CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (Parameter) CurrentValueListParameter = new Hashtable(); LastValueGroupParentObject; CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Iterator CurrentValueListParameter = new Hashtable(); iter CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); values.iterator(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); while CurrentValueListParameter = new Hashtable(); (iter.hasNext()) CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); String CurrentValueListParameter = new Hashtable(); valuePCDATA CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (String) CurrentValueListParameter = new Hashtable(); iter.next(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Value CurrentValueListParameter = new Hashtable(); value CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); new CurrentValueListParameter = new Hashtable(); Value CurrentValueListParameter = new Hashtable(); (valuePCDATA); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); valueObjList.add(myParamObject.addValue(value)); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); else CurrentValueListParameter = new Hashtable(); if CurrentValueListParameter = new Hashtable(); ( CurrentValueListParameter = new Hashtable(); LastValueGroupParentObject CurrentValueListParameter = new Hashtable(); instanceof CurrentValueListParameter = new Hashtable(); Axis CurrentValueListParameter = new Hashtable(); ) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); get CurrentValueListParameter = new Hashtable(); the CurrentValueListParameter = new Hashtable(); last CurrentValueListParameter = new Hashtable(); axis CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Axis CurrentValueListParameter = new Hashtable(); myAxisObject CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (Axis) CurrentValueListParameter = new Hashtable(); LastValueGroupParentObject; CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Iterator CurrentValueListParameter = new Hashtable(); iter CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); values.iterator(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); while CurrentValueListParameter = new Hashtable(); (iter.hasNext()) CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); String CurrentValueListParameter = new Hashtable(); valuePCDATA CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (String) CurrentValueListParameter = new Hashtable(); iter.next(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Value CurrentValueListParameter = new Hashtable(); value CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); new CurrentValueListParameter = new Hashtable(); Value CurrentValueListParameter = new Hashtable(); (valuePCDATA); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); valueObjList.add(myAxisObject.addAxisValue(value)); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); else CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Log.errorln("Error: CurrentValueListParameter = new Hashtable(); unknown CurrentValueListParameter = new Hashtable(); valueGroupParent CurrentValueListParameter = new Hashtable(); "+LastValueGroupParentObject+ CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); " CurrentValueListParameter = new Hashtable(); cant CurrentValueListParameter = new Hashtable(); treat CurrentValueListParameter = new Hashtable(); for CurrentValueListParameter = new Hashtable(); "+XDFNodeName.VALUELIST); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); System.exit(-1); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); fatal CurrentValueListParameter = new Hashtable(); error, CurrentValueListParameter = new Hashtable(); shut CurrentValueListParameter = new Hashtable(); down CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); else CurrentValueListParameter = new Hashtable(); if CurrentValueListParameter = new Hashtable(); ( CurrentValueListParameter = new Hashtable(); parentNodeName.equals(XDFNodeName.PARAMETER) CurrentValueListParameter = new Hashtable(); ) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Iterator CurrentValueListParameter = new Hashtable(); iter CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); values.iterator(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); while CurrentValueListParameter = new Hashtable(); (iter.hasNext()) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); String CurrentValueListParameter = new Hashtable(); valuePCDATA CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (String) CurrentValueListParameter = new Hashtable(); iter.next(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Value CurrentValueListParameter = new Hashtable(); value CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); new CurrentValueListParameter = new Hashtable(); Value CurrentValueListParameter = new Hashtable(); (valuePCDATA); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); valueObjList.add(LastParameterObject.addValue(value)); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); else CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Log.errorln("Error: CurrentValueListParameter = new Hashtable(); weird CurrentValueListParameter = new Hashtable(); parent CurrentValueListParameter = new Hashtable(); node CurrentValueListParameter = new Hashtable(); "+parentNodeName+" CurrentValueListParameter = new Hashtable(); for CurrentValueListParameter = new Hashtable(); "+XDFNodeName.VALUELIST); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); System.exit(-1); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); fatal CurrentValueListParameter = new Hashtable(); error, CurrentValueListParameter = new Hashtable(); shut CurrentValueListParameter = new Hashtable(); down CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); add CurrentValueListParameter = new Hashtable(); these CurrentValueListParameter = new Hashtable(); new CurrentValueListParameter = new Hashtable(); value CurrentValueListParameter = new Hashtable(); objects CurrentValueListParameter = new Hashtable(); to CurrentValueListParameter = new Hashtable(); all CurrentValueListParameter = new Hashtable(); open CurrentValueListParameter = new Hashtable(); groups CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Iterator CurrentValueListParameter = new Hashtable(); iter1 CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); CurrentValueGroupList.iterator(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Iterator CurrentValueListParameter = new Hashtable(); iter2 CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); valueObjList.iterator(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); while CurrentValueListParameter = new Hashtable(); (iter1.hasNext()) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); ValueGroup CurrentValueListParameter = new Hashtable(); nextValueGroupObj CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (ValueGroup) CurrentValueListParameter = new Hashtable(); iter1.next(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); while CurrentValueListParameter = new Hashtable(); (iter2.hasNext()) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); Value CurrentValueListParameter = new Hashtable(); nextValueObj CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); (Value) CurrentValueListParameter = new Hashtable(); iter2.next(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); nextValueObj.addToGroup(nextValueGroupObj); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); reset CurrentValueListParameter = new Hashtable(); iter2 CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); iter2 CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); valueObjList.iterator(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); else CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); PCDATA CurrentValueListParameter = new Hashtable(); case CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); String CurrentValueListParameter = new Hashtable(); delimiter CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); DefaultValueListDelimiter; CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); String CurrentValueListParameter = new Hashtable(); repeatable CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); DefaultValueListRepeatable; CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); pickup CurrentValueListParameter = new Hashtable(); overriding CurrentValueListParameter = new Hashtable(); values CurrentValueListParameter = new Hashtable(); from CurrentValueListParameter = new Hashtable(); attribute CurrentValueListParameter = new Hashtable(); list CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); for CurrentValueListParameter = new Hashtable(); (int CurrentValueListParameter = new Hashtable(); i CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); 0; CurrentValueListParameter = new Hashtable(); i CurrentValueListParameter = new Hashtable(); < CurrentValueListParameter = new Hashtable(); attrs.getLength(); CurrentValueListParameter = new Hashtable(); i++) CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); String CurrentValueListParameter = new Hashtable(); name CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); attrs.getName(i); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); if CurrentValueListParameter = new Hashtable(); ( CurrentValueListParameter = new Hashtable(); name.equals("delimiter") CurrentValueListParameter = new Hashtable(); ) CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); delimiter CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); attrs.getValue(i); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); else CurrentValueListParameter = new Hashtable(); if CurrentValueListParameter = new Hashtable(); ( CurrentValueListParameter = new Hashtable(); name.equals("repeatable")) CurrentValueListParameter = new Hashtable(); { CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); repeatable CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); attrs.getValue(i); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter CurrentValueListParameter = new Hashtable(); = CurrentValueListParameter = new Hashtable(); new CurrentValueListParameter = new Hashtable(); Hashtable(); CurrentValueListParameter = new Hashtable(); // CurrentValueListParameter = new Hashtable(); re-init CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter.put("parentNode", CurrentValueListParameter = new Hashtable(); parentNodeName); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter.put("delimiter", CurrentValueListParameter = new Hashtable(); delimiter); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter.put("repeatable", CurrentValueListParameter = new Hashtable(); repeatable); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); } CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); CurrentValueListParameter = new Hashtable(); }
9,214
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no values exist because they are stored // in PCDATA rather than as algorithm (treat in char data handler // in this case). if(values.size() > 0 ) { // algoritm case ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) { /* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup); */ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.errorln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } // add these new value objects to all open groups Iterator iter1 = CurrentValueGroupList.iterator(); Iterator iter2 = valueObjList.iterator(); while (iter1.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) iter1.next(); while (iter2.hasNext()) { Value nextValueObj = (Value) iter2.next(); nextValueObj.addToGroup(nextValueGroupObj); } // reset iter2 iter2 = valueObjList.iterator(); } } else { // PCDATA case String delimiter = DefaultValueListDelimiter; String repeatable = DefaultValueListRepeatable; // pickup overriding values from attribute list for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("delimiter") ) { delimiter = attrs.getValue(i); } else if ( name.equals("repeatable")) { repeatable = attrs.getValue(i); } } CurrentValueListParameter = new Hashtable(); // re-init CurrentValueListParameter.put("parentNode", parentNodeName); CurrentValueListParameter.put("delimiter", delimiter); CurrentValueListParameter.put("repeatable", repeatable); } }
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) for (int i = 0; i < attrs.getLength(); i++) { if (attrs.getValue(i) != null) CurrentValueListParameter.put(attrs.getName(i), attrs.getValue(i)); } CurrentValueListParameter.put("isDelimitedCase", "false"); // 3. IT could be that no values exist because they are stored // in PCDATA rather than as algorithm (treat in char data handler // in this case). if(values.size() > 0 ) { // algoritm case ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) { /* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup); */ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.errorln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } // add these new value objects to all open groups Iterator iter1 = CurrentValueGroupList.iterator(); Iterator iter2 = valueObjList.iterator(); while (iter1.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) iter1.next(); while (iter2.hasNext()) { Value nextValueObj = (Value) iter2.next(); nextValueObj.addToGroup(nextValueGroupObj); } // reset iter2 iter2 = valueObjList.iterator(); } } else { // PCDATA case String delimiter = DefaultValueListDelimiter; String repeatable = DefaultValueListRepeatable; // pickup overriding values from attribute list for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("delimiter") ) { delimiter = attrs.getValue(i); } else if ( name.equals("repeatable")) { repeatable = attrs.getValue(i); } } CurrentValueListParameter = new Hashtable(); // re-init CurrentValueListParameter.put("parentNode", parentNodeName); CurrentValueListParameter.put("delimiter", delimiter); CurrentValueListParameter.put("repeatable", repeatable); } }
9,215
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no values exist because they are stored // in PCDATA rather than as algorithm (treat in char data handler // in this case). if(values.size() > 0 ) { // algoritm case ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) { /* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup); */ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.errorln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } // add these new value objects to all open groups Iterator iter1 = CurrentValueGroupList.iterator(); Iterator iter2 = valueObjList.iterator(); while (iter1.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) iter1.next(); while (iter2.hasNext()) { Value nextValueObj = (Value) iter2.next(); nextValueObj.addToGroup(nextValueGroupObj); } // reset iter2 iter2 = valueObjList.iterator(); } } else { // PCDATA case String delimiter = DefaultValueListDelimiter; String repeatable = DefaultValueListRepeatable; // pickup overriding values from attribute list for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("delimiter") ) { delimiter = attrs.getValue(i); } else if ( name.equals("repeatable")) { repeatable = attrs.getValue(i); } } CurrentValueListParameter = new Hashtable(); // re-init CurrentValueListParameter.put("parentNode", parentNodeName); CurrentValueListParameter.put("delimiter", delimiter); CurrentValueListParameter.put("repeatable", repeatable); } }
public void action (AttributeList attrs) { // 1. grab parent node name String parentNodeName = getParentNodeName(); // 2. try to determine values from attributes (e.g. algorithm method) ArrayList values = getValueListNodeValues(attrs); // 3. IT could be that no values exist because they are stored // in PCDATA rather than as algorithm (treat in char data handler // in this case). if(values.size() > 0 ) { // algoritm case ArrayList valueObjList = new ArrayList(); if( parentNodeName.equals(XDFNodeName.AXIS) ) { // get the last axis List axisList = (List) CurrentArray.getAxisList(); Axis lastAxisObject = (Axis) axisList.get(axisList.size()-1); Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(lastAxisObject.addAxisValue(value)); } } else if ( parentNodeName.equals(XDFNodeName.VALUEGROUP) ) { /* ValueGroup lastValueGroup = (ValueGroup) CurrentValueGroupList.get(CurrentValueGroupList.size()-1); newvalueGroup = lastValueGroup.addValueGroup(newvalueGroup); */ if ( LastValueGroupParentObject instanceof Parameter ) { Parameter myParamObject = (Parameter) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myParamObject.addValue(value)); } } else if ( LastValueGroupParentObject instanceof Axis ) { // get the last axis Axis myAxisObject = (Axis) LastValueGroupParentObject; Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(myAxisObject.addAxisValue(value)); } } else { Log.errorln("Error: unknown valueGroupParent "+LastValueGroupParentObject+ " cant treat for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } } else if ( parentNodeName.equals(XDFNodeName.PARAMETER) ) { Iterator iter = values.iterator(); while (iter.hasNext()) { String valuePCDATA = (String) iter.next(); Value value = new Value (valuePCDATA); valueObjList.add(LastParameterObject.addValue(value)); } } else { Log.errorln("Error: weird parent node "+parentNodeName+" for "+XDFNodeName.VALUELIST); System.exit(-1); // fatal error, shut down } // add these new value objects to all open groups Iterator iter1 = CurrentValueGroupList.iterator(); Iterator iter2 = valueObjList.iterator(); while (iter1.hasNext()) { ValueGroup nextValueGroupObj = (ValueGroup) iter1.next(); while (iter2.hasNext()) { Value nextValueObj = (Value) iter2.next(); nextValueObj.addToGroup(nextValueGroupObj); } // reset iter2 iter2 = valueObjList.iterator(); } } else { // PCDATA case String delimiter = DefaultValueListDelimiter; String repeatable = DefaultValueListRepeatable; // pickup overriding values from attribute list for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("delimiter") ) { delimiter = attrs.getValue(i); } else if ( name.equals("repeatable")) { repeatable = attrs.getValue(i); } } CurrentValueListParameter = new Hashtable(); // re-init CurrentValueListParameter.put("parentNode", parentNodeName); CurrentValueListParameter.put("delimiter", delimiter); CurrentValueListParameter.put("repeatable", repeatable); } }
9,216
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) { // Note that we dont treat binary data at all try { Log.errorln("setData:["+thisString+"]["+dataLocator.getAxisLocation(FastestAxis)+"]"); if ( CurrentDataFormat instanceof StringDataFormat) { CurrentArray.setData(dataLocator, thisString); } else if ( CurrentDataFormat instanceof FixedDataFormat) { Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else if ( CurrentDataFormat instanceof IntegerDataFormat) { Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); } else if ( CurrentDataFormat instanceof ExponentialDataFormat) { // hurm.. this is a stop-gap. Exponential format needs to be // preserved better than this. -b.t. Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else { Log.warnln("The dataFormat:"+CurrentDataFormat.toString()+" is not allowed in tagged data."); Log.warnln("Unable to setData:["+thisString+"], ignoring request"); } } catch (SetDataException e) { // bizarre error. Cant add data (out of memory??) :P Log.errorln("Unable to setData:["+thisString+"], ignoring request"); Log.printStackTrace(e); } }
private void addDataToCurrentArray ( Locator dataLocator, String thisString, DataFormat CurrentDataFormat ) { // Note that we dont treat binary data at all try { if ( CurrentDataFormat instanceof StringDataFormat) { CurrentArray.setData(dataLocator, thisString); } else if ( CurrentDataFormat instanceof FixedDataFormat) { Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else if ( CurrentDataFormat instanceof IntegerDataFormat) { Integer number = new Integer (thisString); CurrentArray.setData(dataLocator, number.intValue()); } else if ( CurrentDataFormat instanceof ExponentialDataFormat) { // hurm.. this is a stop-gap. Exponential format needs to be // preserved better than this. -b.t. Double number = new Double (thisString); CurrentArray.setData(dataLocator, number.doubleValue()); } else { Log.warnln("The dataFormat:"+CurrentDataFormat.toString()+" is not allowed in tagged data."); Log.warnln("Unable to setData:["+thisString+"], ignoring request"); } } catch (SetDataException e) { // bizarre error. Cant add data (out of memory??) :P Log.errorln("Unable to setData:["+thisString+"], ignoring request"); Log.printStackTrace(e); } }
9,217
private ArrayList getValueListNodeValues (AttributeList attrs) { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attributes // into algorithm parameters for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("size") ) { Integer tmp = new Integer (attrs.getValue(i)); size = tmp.intValue(); } else if ( name.equals("step")) { Integer tmp = new Integer (attrs.getValue(i)); step = tmp.intValue(); } else if ( name.equals("start")) { Integer tmp = new Integer (attrs.getValue(i)); start = tmp.intValue(); } else if ( name.equals("delimiter")) { // IF delimiter is defined, then we ARENT using // an algorthm, and should exit here without further ado. return values; } } // do the algorithm to populate the values in the ArrayList int numberOfValues = 0; int currentValue = start; while (numberOfValues < size) { values.add(String.valueOf(currentValue)); currentValue += step; numberOfValues++; } return values; }
private ArrayList getValueListNodeValues () { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attributes // into algorithm parameters for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("size") ) { Integer tmp = new Integer (attrs.getValue(i)); size = tmp.intValue(); } else if ( name.equals("step")) { Integer tmp = new Integer (attrs.getValue(i)); step = tmp.intValue(); } else if ( name.equals("start")) { Integer tmp = new Integer (attrs.getValue(i)); start = tmp.intValue(); } else if ( name.equals("delimiter")) { // IF delimiter is defined, then we ARENT using // an algorthm, and should exit here without further ado. return values; } } // do the algorithm to populate the values in the ArrayList int numberOfValues = 0; int currentValue = start; while (numberOfValues < size) { values.add(String.valueOf(currentValue)); currentValue += step; numberOfValues++; } return values; }
9,218
private ArrayList getValueListNodeValues (AttributeList attrs) { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attributes // into algorithm parameters for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("size") ) { Integer tmp = new Integer (attrs.getValue(i)); size = tmp.intValue(); } else if ( name.equals("step")) { Integer tmp = new Integer (attrs.getValue(i)); step = tmp.intValue(); } else if ( name.equals("start")) { Integer tmp = new Integer (attrs.getValue(i)); start = tmp.intValue(); } else if ( name.equals("delimiter")) { // IF delimiter is defined, then we ARENT using // an algorthm, and should exit here without further ado. return values; } } // do the algorithm to populate the values in the ArrayList int numberOfValues = 0; int currentValue = start; while (numberOfValues < size) { values.add(String.valueOf(currentValue)); currentValue += step; numberOfValues++; } return values; }
private ArrayList getValueListNodeValues (AttributeList attrs) { ArrayList values = new ArrayList(); // parameters for the algorithm int size = DefaultValueListSize; int start = DefaultValueListStart; int step = DefaultValueListStep; // Capture any overridding Valuelist attributes // into algorithm parameters for (int i = 0; i < attrs.getLength(); i++) { String name = attrs.getName(i); if ( name.equals("size") ) { Integer tmp = new Integer (attrs.getValue(i)); size = tmp.intValue(); } else if ( name.equals("step")) { Integer tmp = new Integer (attrs.getValue(i)); step = tmp.intValue(); } else if ( name.equals("start")) { Integer tmp = new Integer (attrs.getValue(i)); start = tmp.intValue(); } else if ( name.equals("delimiter")) { // IF delimiter is defined, then we ARENT using // an algorthm, and should exit here without further ado. return values; } } // do the algorithm to populate the values in the ArrayList int numberOfValues = 0; int currentValue = start; while (numberOfValues < size) { values.add(String.valueOf(currentValue)); currentValue += step; numberOfValues++; } return values; }
9,219
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (changed) { damaged = true; fireStateChanged(); } }
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (changed) { damaged = true; fireStateChanged(); } }
9,222
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (changed) { damaged = true; fireStateChanged(); } }
public void reshape(int x, int y, int w, int h) { boolean changed = (x != getX()) || (y != getY()) || (w != getWidth()) || (h != getHeight()); if (w != getWidth() || h != getHeight()) sizeChanged = true; super.reshape(x, y, w, h); if (sizeChanged) { damaged = true; fireStateChanged(); } }
9,223
public void scrollRectToVisible(Rectangle contentRect) { Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); // FIXME: should validate the view if it is not valid, however // this may cause excessive validation when the containment // hierarchy is being created. // if contentRect is larger than the portBounds, center the view if (contentRect.height > portBounds.height || contentRect.width > portBounds.width) { setViewPosition(new Point(contentRect.x, contentRect.y)); return; } // Y-DIRECTION if (contentRect.y < -viewBounds.y) setViewPosition(new Point(pos.x, contentRect.y)); else if (contentRect.y + contentRect.height > -viewBounds.y + portBounds.height) setViewPosition (new Point(pos.x, contentRect.y - (portBounds.height - contentRect.height))); // X-DIRECTION pos = getViewPosition(); if (contentRect.x < -viewBounds.x) setViewPosition(new Point(contentRect.x, pos.y)); else if (contentRect.x + contentRect.width > -viewBounds.x + portBounds.width) setViewPosition (new Point(contentRect.x - (portBounds.width - contentRect.width), pos.y)); }
public void scrollRectToVisible(Rectangle contentRect) {if (isShowing()) getView().validate(); Point pos = getViewPosition();if (isShowing()) getView().validate(); Rectangle viewBounds = getView().getBounds();if (isShowing()) getView().validate(); Rectangle portBounds = getBounds();if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); // FIXME: should validate the view if it is not valid, howeverif (isShowing()) getView().validate(); // this may cause excessive validation when the containmentif (isShowing()) getView().validate(); // hierarchy is being created.if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); // if contentRect is larger than the portBounds, center the viewif (isShowing()) getView().validate(); if (contentRect.height > portBounds.height ||if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); contentRect.width > portBounds.width)if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); {if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); setViewPosition(new Point(contentRect.x, contentRect.y));if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); return;if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); }if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); // Y-DIRECTIONif (isShowing()) getView().validate(); if (contentRect.y < -viewBounds.y)if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); setViewPosition(new Point(pos.x, contentRect.y));if (isShowing()) getView().validate(); else if (contentRect.y + contentRect.height >if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); -viewBounds.y + portBounds.height)if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); setViewPosition (new Point(pos.x, contentRect.y -if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); (portBounds.height - contentRect.height)));if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); // X-DIRECTIONif (isShowing()) getView().validate(); pos = getViewPosition();if (isShowing()) getView().validate(); if (contentRect.x < -viewBounds.x)if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); setViewPosition(new Point(contentRect.x, pos.y));if (isShowing()) getView().validate(); else if (contentRect.x + contentRect.width >if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); -viewBounds.x + portBounds.width)if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); setViewPosition (new Point(contentRect.x -if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); if (isShowing()) getView().validate(); (portBounds.width - contentRect.width), pos.y)); }
9,224
public void scrollRectToVisible(Rectangle contentRect) { Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); // FIXME: should validate the view if it is not valid, however // this may cause excessive validation when the containment // hierarchy is being created. // if contentRect is larger than the portBounds, center the view if (contentRect.height > portBounds.height || contentRect.width > portBounds.width) { setViewPosition(new Point(contentRect.x, contentRect.y)); return; } // Y-DIRECTION if (contentRect.y < -viewBounds.y) setViewPosition(new Point(pos.x, contentRect.y)); else if (contentRect.y + contentRect.height > -viewBounds.y + portBounds.height) setViewPosition (new Point(pos.x, contentRect.y - (portBounds.height - contentRect.height))); // X-DIRECTION pos = getViewPosition(); if (contentRect.x < -viewBounds.x) setViewPosition(new Point(contentRect.x, pos.y)); else if (contentRect.x + contentRect.width > -viewBounds.x + portBounds.width) setViewPosition (new Point(contentRect.x - (portBounds.width - contentRect.width), pos.y)); }
public void scrollRectToVisible(Rectangle contentRect) { Point pos = getViewPosition(); Rectangle viewBounds = getView().getBounds(); Rectangle portBounds = getBounds(); // FIXME: should validate the view if it is not valid, however // this may cause excessive validation when the containment // hierarchy is being created. // if contentRect is larger than the portBounds, center the view if (contentRect.height > portBounds.height || contentRect.width > portBounds.width) { setViewPosition(new Point(contentRect.x, contentRect.y)); return; } // Y-DIRECTION if (contentRect.y < -viewBounds.y) setViewPosition(new Point(pos.x, contentRect.y)); else if (contentRect.y + contentRect.height > -viewBounds.y + portBounds.height) setViewPosition (new Point(pos.x, contentRect.y - (portBounds.height - contentRect.height))); // X-DIRECTION pos = getViewPosition(); if (contentRect.x < -viewBounds.x) setViewPosition(new Point(contentRect.x, pos.y)); else if (contentRect.x + contentRect.width > -viewBounds.x + portBounds.width) setViewPosition (new Point(contentRect.x - (portBounds.width - contentRect.width), pos.y)); }
9,225
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(viewListener); add(v); fireStateChanged(); } revalidate(); }
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(viewListener); add(v); fireStateChanged(); } revalidate(); }
9,226
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); } if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(viewListener); add(v); fireStateChanged(); } revalidate(); }
public void setView(Component v) { while (getComponentCount() > 0) { if (viewListener != null) getView().removeComponentListener(viewListener); //remove(0); if (v != null) { if (viewListener == null) viewListener = createViewListener(); v.addComponentListener(viewListener); add(v); fireStateChanged(); revalidate(); }
9,227
public DSSPublicKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y) { super(p, q, g); this.y = y; }
public DSSPublicKey(BigInteger p, BigInteger q, BigInteger g, BigInteger y) { super(p, q, g); this.y = y; }
9,229
public byte[] getEncoded(int format) { byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DSSKeyPairRawCodec().encodePublicKey(this); break; default: throw new IllegalArgumentException("format"); } return result; }
public byte[] getEncoded(int format) { byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DSSKeyPairRawCodec().encodePublicKey(this); break; default: throw new IllegalArgumentException("Unsupported encoding format: " + format); } return result; }
9,230
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheaper than instatiating a codec that will fail we test // the first byte before we carry on. if (k[0] == Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0]) { // it's likely to be in raw format. get a raw codec and hand it over IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPublicKey) codec.decodePublicKey(k); } else { throw new IllegalArgumentException("magic"); } }
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheaper than instatiating a codec that will fail we test // the first byte before we carry on. if (k[0] == Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0]) { // it's likely to be in raw format. get a raw codec and hand it over IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPublicKey) codec.decodePublicKey(k); } else { throw new IllegalArgumentException("magic"); } }
9,231
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheaper than instatiating a codec that will fail we test // the first byte before we carry on. if (k[0] == Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0]) { // it's likely to be in raw format. get a raw codec and hand it over IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPublicKey) codec.decodePublicKey(k); } else { throw new IllegalArgumentException("magic"); } }
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheaper than instatiating a codec that will fail we test // the first byte before we carry on. if (k[0] == Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0]) { // it's likely to be in raw format. get a raw codec and hand it over IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPublicKey) codec.decodePublicKey(k); } else { throw new IllegalArgumentException("magic"); } }
9,232
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheaper than instatiating a codec that will fail we test // the first byte before we carry on. if (k[0] == Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0]) { // it's likely to be in raw format. get a raw codec and hand it over IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPublicKey) codec.decodePublicKey(k); } else { throw new IllegalArgumentException("magic"); } }
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheaper than instatiating a codec that will fail we test // the first byte before we carry on. if (k[0] == Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0]) { // it's likely to be in raw format. get a raw codec and hand it over IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPublicKey) codec.decodePublicKey(k); } catch (IllegalArgumentException ignored) { throw new IllegalArgumentException("magic"); } }
9,233
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheaper than instatiating a codec that will fail we test // the first byte before we carry on. if (k[0] == Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0]) { // it's likely to be in raw format. get a raw codec and hand it over IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPublicKey) codec.decodePublicKey(k); } else { throw new IllegalArgumentException("magic"); } }
public static DSSPublicKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is cheaper than instatiating a codec that will fail we test // the first byte before we carry on. if (k[0] == Registry.MAGIC_RAW_DSS_PUBLIC_KEY[0]) { // it's likely to be in raw format. get a raw codec and hand it over IKeyPairCodec codec = new DSSKeyPairRawCodec(); return (DSSPublicKey) codec.decodePublicKey(k); } else { } }
9,234
protected void initKeys(Keys keys) { Key key; keys.setKey( 1,new Key(KeyEvent.VK_ESCAPE)); keys.setKey( 2,new Key('1' ,KeyEvent.VK_1,'+' ,KeyEvent.VK_ADD ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 3,new Key('2' ,KeyEvent.VK_2,'"' ,KeyEvent.VK_QUOTEDBL ,'@' ,KeyEvent.VK_AT)); keys.setKey( 4,new Key('3' ,KeyEvent.VK_3,'*' ,KeyEvent.VK_MULTIPLY ,'#' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 5,new Key('4' ,KeyEvent.VK_4,'' ,'')); keys.setKey( 6,new Key('5' ,KeyEvent.VK_5,'%' ,'')); keys.setKey( 7,new Key('6' ,KeyEvent.VK_6,'&' ,KeyEvent.VK_UNDEFINED ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 8,new Key('7' ,KeyEvent.VK_7,'/' ,KeyEvent.VK_SLASH ,'|' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 9,new Key('8' ,KeyEvent.VK_8,'(' ,KeyEvent.VK_LEFT_PARENTHESIS ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 10,new Key('9' ,KeyEvent.VK_9,')' ,KeyEvent.VK_RIGHT_PARENTHESIS)); keys.setKey( 11,new Key('0' ,KeyEvent.VK_0,'=' ,KeyEvent.VK_EQUALS)); keys.setKey( 12,new Key('\'',KeyEvent.VK_QUOTE ,'?' ,KeyEvent.VK_UNDEFINED , '', KeyEvent.VK_DEAD_ACUTE)); keys.setKey( 13,new Key('^',KeyEvent.VK_DEAD_CIRCUMFLEX ,'`',KeyEvent.VK_DEAD_GRAVE ,'~',KeyEvent.VK_UNDEFINED)); keys.setKey( 14,new Key('\b' ,KeyEvent.VK_BACK_SPACE)); keys.setKey( 15,new Key('\t' ,KeyEvent.VK_TAB)); keys.setKey( 16,new Key('q' ,'Q' ,KeyEvent.VK_Q)); keys.setKey( 17,new Key('w' ,'W' ,KeyEvent.VK_W)); keys.setKey( 18,new Key('e' ,'E' ,'' ,KeyEvent.VK_E)); keys.setKey( 19,new Key('r' ,'R' ,KeyEvent.VK_R)); keys.setKey( 20,new Key('t' ,'T' ,KeyEvent.VK_T)); keys.setKey( 21,new Key('z' ,'Z' ,KeyEvent.VK_Z)); keys.setKey( 22,new Key('u' ,'U' ,KeyEvent.VK_U)); key = keys.getKey(22); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'' ,''}); keys.setKey( 23,new Key('i' ,'I' ,KeyEvent.VK_I)); key = keys.getKey(23); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'' ,''}); keys.setKey( 24,new Key('o' ,'O' ,KeyEvent.VK_O)); key = keys.getKey(24); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'' ,''}); keys.setKey( 25,new Key('p' ,'P' ,KeyEvent.VK_P)); keys.setKey( 26,new Key('' ,'' ,'[' ,KeyEvent.VK_OPEN_BRACKET)); keys.setKey( 27,new Key('' ,KeyEvent.VK_DEAD_DIAERESIS, '!', KeyEvent.VK_EXCLAMATION_MARK,']' ,KeyEvent.VK_CLOSE_BRACKET)); keys.setKey( 28,new Key('\n' ,KeyEvent.VK_ENTER)); keys.setKey( 29,new Key(KeyEvent.VK_CONTROL )); keys.setKey( 30,new Key('a' ,'A' ,'a' ,KeyEvent.VK_A)); key = keys.getKey(30); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'' ,''}); keys.setKey( 31,new Key('s' ,'S' ,KeyEvent.VK_S)); keys.setKey( 32,new Key('d' ,'D' ,KeyEvent.VK_D)); keys.setKey( 33,new Key('f' ,'F' ,KeyEvent.VK_F)); keys.setKey( 34,new Key('g' ,'G' ,KeyEvent.VK_G)); keys.setKey( 35,new Key('h' ,'H' ,KeyEvent.VK_H)); keys.setKey( 36,new Key('j' ,'J' ,KeyEvent.VK_J)); keys.setKey( 37,new Key('k' ,'K' ,KeyEvent.VK_K)); keys.setKey( 38,new Key('l' ,'L' ,KeyEvent.VK_L)); keys.setKey( 39,new Key('' ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 40,new Key('' ,'' ,'{',KeyEvent.VK_BRACELEFT)); keys.setKey( 41,new Key('' ,'')); keys.setKey( 42,new Key(KeyEvent.VK_SHIFT)); keys.setKey( 43,new Key('$' ,KeyEvent.VK_DOLLAR, '' ,KeyEvent.VK_UNDEFINED, '}',KeyEvent.VK_BRACERIGHT)); keys.setKey( 44,new Key('y' ,'Y' ,KeyEvent.VK_Y)); keys.setKey( 45,new Key('x' ,'X' ,KeyEvent.VK_X)); keys.setKey( 46,new Key('c' ,'C' ,KeyEvent.VK_C)); keys.setKey( 47,new Key('v' ,'V' ,KeyEvent.VK_V)); keys.setKey( 48,new Key('b' ,'B' ,KeyEvent.VK_B)); keys.setKey( 49,new Key('n' ,'N' ,KeyEvent.VK_N)); keys.setKey( 50,new Key('m' ,'M' ,KeyEvent.VK_M)); keys.setKey( 51,new Key(',',KeyEvent.VK_COMMA,';',KeyEvent.VK_SEMICOLON)); keys.setKey( 52,new Key('.',KeyEvent.VK_PERIOD,':',KeyEvent.VK_COLON)); keys.setKey( 53,new Key('-',KeyEvent.VK_MINUS,'_',KeyEvent.VK_UNDERSCORE)); keys.setKey( 54,new Key(KeyEvent.VK_SHIFT)); keys.setKey( 55,new Key(KeyEvent.VK_CONTROL)); keys.setKey( 56,new Key(KeyEvent.VK_ALT)); keys.setKey( 57,new Key(' ',KeyEvent.VK_SPACE)); key = keys.getKey(57); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'^'}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'`'}); keys.setKey( 58,new Key(KeyEvent.VK_CAPS_LOCK)); keys.setKey( 59,new Key(KeyEvent.VK_F1)); keys.setKey( 60,new Key(KeyEvent.VK_F2)); keys.setKey( 61,new Key(KeyEvent.VK_F3)); keys.setKey( 62,new Key(KeyEvent.VK_F4)); keys.setKey( 63,new Key(KeyEvent.VK_F5)); keys.setKey( 64,new Key(KeyEvent.VK_F6)); keys.setKey( 65,new Key(KeyEvent.VK_F7)); keys.setKey( 66,new Key(KeyEvent.VK_F8)); keys.setKey( 67,new Key(KeyEvent.VK_F9)); keys.setKey( 68,new Key(KeyEvent.VK_F10)); keys.setKey( 69,new Key(KeyEvent.VK_NUM_LOCK)); keys.setKey( 70,new Key(KeyEvent.VK_SCROLL_LOCK)); keys.setKey( 71,new Key('7',KeyEvent.VK_NUMPAD7)); keys.setKey( 72,new Key('8',KeyEvent.VK_NUMPAD8)); keys.setKey( 73,new Key('9',KeyEvent.VK_NUMPAD9)); keys.setKey( 74,new Key('-',KeyEvent.VK_SUBTRACT)); keys.setKey( 75,new Key('4',KeyEvent.VK_NUMPAD4)); keys.setKey( 76,new Key('5',KeyEvent.VK_NUMPAD5)); keys.setKey( 77,new Key('6',KeyEvent.VK_NUMPAD6)); keys.setKey( 78,new Key('+',KeyEvent.VK_ADD)); keys.setKey( 79,new Key('1',KeyEvent.VK_NUMPAD1)); keys.setKey( 80,new Key('2',KeyEvent.VK_NUMPAD2)); keys.setKey( 81,new Key('3',KeyEvent.VK_NUMPAD3)); keys.setKey( 82,new Key('0',KeyEvent.VK_NUMPAD0)); keys.setKey( 83,new Key('.',KeyEvent.VK_DECIMAL)); keys.setKey( 86,new Key('<',KeyEvent.VK_LESS,'>',KeyEvent.VK_GREATER,'\\',KeyEvent.VK_BACK_SLASH)); keys.setKey( 87,new Key(KeyEvent.VK_F11)); keys.setKey( 88,new Key(KeyEvent.VK_F12)); keys.setKey( 96,new Key(KeyEvent.VK_INSERT)); keys.setKey( 97,new Key(KeyEvent.VK_HOME)); keys.setKey( 98,new Key(KeyEvent.VK_PAGE_UP)); keys.setKey( 99,new Key('/',KeyEvent.VK_DIVIDE)); keys.setKey(100,new Key(KeyEvent.VK_PRINTSCREEN)); keys.setKey(101,new Key(KeyEvent.VK_DELETE)); keys.setKey(102,new Key(KeyEvent.VK_END)); keys.setKey(103,new Key(KeyEvent.VK_PAGE_DOWN)); keys.setKey(104,new Key(KeyEvent.VK_UP)); keys.setKey(105,new Key(KeyEvent.VK_SEPARATOR)); keys.setKey(111,new Key('/',KeyEvent.VK_SLASH)); keys.setKey(112,new Key(KeyEvent.VK_CONTROL)); keys.setKey(113,new Key(KeyEvent.VK_LEFT)); keys.setKey(114,new Key(KeyEvent.VK_DOWN)); keys.setKey(115,new Key(KeyEvent.VK_RIGHT)); keys.setKey(116,new Key(KeyEvent.VK_PAUSE)); }
protected void initKeys(Keys keys) { Key key; keys.setKey( 1,new Key(KeyEvent.VK_ESCAPE)); keys.setKey( 2,new Key('1' ,KeyEvent.VK_1,'+' ,KeyEvent.VK_ADD ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 3,new Key('2' ,KeyEvent.VK_2,'"' ,KeyEvent.VK_QUOTEDBL ,'@' ,KeyEvent.VK_AT)); keys.setKey( 4,new Key('3' ,KeyEvent.VK_3,'*' ,KeyEvent.VK_MULTIPLY ,'#' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 5,new Key('4' ,KeyEvent.VK_4,'' ,'')); keys.setKey( 6,new Key('5' ,KeyEvent.VK_5,'%' ,'')); keys.setKey( 7,new Key('6' ,KeyEvent.VK_6,'&' ,KeyEvent.VK_UNDEFINED ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 8,new Key('7' ,KeyEvent.VK_7,'/' ,KeyEvent.VK_SLASH ,'|' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 9,new Key('8' ,KeyEvent.VK_8,'(' ,KeyEvent.VK_LEFT_PARENTHESIS ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 10,new Key('9' ,KeyEvent.VK_9,')' ,KeyEvent.VK_RIGHT_PARENTHESIS)); keys.setKey( 11,new Key('0' ,KeyEvent.VK_0,'=' ,KeyEvent.VK_EQUALS)); keys.setKey( 12,new Key('\'',KeyEvent.VK_QUOTE ,'?' ,KeyEvent.VK_UNDEFINED , '', KeyEvent.VK_DEAD_ACUTE)); keys.setKey( 13,new Key('^',KeyEvent.VK_DEAD_CIRCUMFLEX ,'`',KeyEvent.VK_DEAD_GRAVE ,'~',KeyEvent.VK_UNDEFINED)); keys.setKey( 14,new Key('\b' ,KeyEvent.VK_BACK_SPACE)); keys.setKey( 15,new Key('\t' ,KeyEvent.VK_TAB)); keys.setKey( 16,new Key('q' ,'Q' ,KeyEvent.VK_Q)); keys.setKey( 17,new Key('w' ,'W' ,KeyEvent.VK_W)); keys.setKey( 18,new Key('e' ,'E' ,'' ,KeyEvent.VK_E)); keys.setKey( 19,new Key('r' ,'R' ,KeyEvent.VK_R)); keys.setKey( 20,new Key('t' ,'T' ,KeyEvent.VK_T)); keys.setKey( 21,new Key('z' ,'Z' ,KeyEvent.VK_Z)); keys.setKey( 22,new Key('u' ,'U' ,KeyEvent.VK_U)); key = keys.getKey(22); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'' ,''}); keys.setKey( 23,new Key('i' ,'I' ,KeyEvent.VK_I)); key = keys.getKey(23); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'' ,''}); keys.setKey( 24,new Key('o' ,'O' ,KeyEvent.VK_O)); key = keys.getKey(24); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'' ,''}); keys.setKey( 25,new Key('p' ,'P' ,KeyEvent.VK_P)); keys.setKey( 26,new Key('' ,'' ,'[' ,KeyEvent.VK_OPEN_BRACKET)); keys.setKey( 27,new Key('' ,KeyEvent.VK_DEAD_DIAERESIS, '!', KeyEvent.VK_EXCLAMATION_MARK,']' ,KeyEvent.VK_CLOSE_BRACKET)); keys.setKey( 28,new Key('\n' ,KeyEvent.VK_ENTER)); keys.setKey( 29,new Key(KeyEvent.VK_CONTROL )); keys.setKey( 30,new Key('a' ,'A' ,'a' ,KeyEvent.VK_A)); key = keys.getKey(30); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{'' ,''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'' ,''}); keys.setKey( 31,new Key('s' ,'S' ,KeyEvent.VK_S)); keys.setKey( 32,new Key('d' ,'D' ,KeyEvent.VK_D)); keys.setKey( 33,new Key('f' ,'F' ,KeyEvent.VK_F)); keys.setKey( 34,new Key('g' ,'G' ,KeyEvent.VK_G)); keys.setKey( 35,new Key('h' ,'H' ,KeyEvent.VK_H)); keys.setKey( 36,new Key('j' ,'J' ,KeyEvent.VK_J)); keys.setKey( 37,new Key('k' ,'K' ,KeyEvent.VK_K)); keys.setKey( 38,new Key('l' ,'L' ,KeyEvent.VK_L)); keys.setKey( 39,new Key('' ,'' ,KeyEvent.VK_UNDEFINED)); keys.setKey( 40,new Key('' ,'' ,'{',KeyEvent.VK_BRACELEFT)); keys.setKey( 41,new Key('' ,'')); keys.setKey( 42,new Key(KeyEvent.VK_SHIFT)); keys.setKey( 43,new Key('$' ,KeyEvent.VK_DOLLAR, '' ,KeyEvent.VK_UNDEFINED, '}',KeyEvent.VK_BRACERIGHT)); keys.setKey( 44,new Key('y' ,'Y' ,KeyEvent.VK_Y)); keys.setKey( 45,new Key('x' ,'X' ,KeyEvent.VK_X)); keys.setKey( 46,new Key('c' ,'C' ,KeyEvent.VK_C)); keys.setKey( 47,new Key('v' ,'V' ,KeyEvent.VK_V)); keys.setKey( 48,new Key('b' ,'B' ,KeyEvent.VK_B)); keys.setKey( 49,new Key('n' ,'N' ,KeyEvent.VK_N)); keys.setKey( 50,new Key('m' ,'M' ,KeyEvent.VK_M)); keys.setKey( 51,new Key(',',KeyEvent.VK_COMMA,';',KeyEvent.VK_SEMICOLON)); keys.setKey( 52,new Key('.',KeyEvent.VK_PERIOD,':',KeyEvent.VK_COLON)); keys.setKey( 53,new Key('-',KeyEvent.VK_MINUS,'_',KeyEvent.VK_UNDERSCORE)); keys.setKey( 54,new Key(KeyEvent.VK_SHIFT)); keys.setKey( 55,new Key(KeyEvent.VK_CONTROL)); keys.setKey( 56,new Key(KeyEvent.VK_ALT)); keys.setKey( 57,new Key(' ',KeyEvent.VK_SPACE)); key = keys.getKey(57); key.addDeadKeyChar(KeyEvent.VK_DEAD_DIAERESIS ,new char[]{''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_CIRCUMFLEX,new char[]{'^'}); key.addDeadKeyChar(KeyEvent.VK_DEAD_ACUTE ,new char[]{''}); key.addDeadKeyChar(KeyEvent.VK_DEAD_GRAVE ,new char[]{'`'}); keys.setKey( 58,new Key(KeyEvent.VK_CAPS_LOCK)); keys.setKey( 59,new Key(KeyEvent.VK_F1)); keys.setKey( 60,new Key(KeyEvent.VK_F2)); keys.setKey( 61,new Key(KeyEvent.VK_F3)); keys.setKey( 62,new Key(KeyEvent.VK_F4)); keys.setKey( 63,new Key(KeyEvent.VK_F5)); keys.setKey( 64,new Key(KeyEvent.VK_F6)); keys.setKey( 65,new Key(KeyEvent.VK_F7)); keys.setKey( 66,new Key(KeyEvent.VK_F8)); keys.setKey( 67,new Key(KeyEvent.VK_F9)); keys.setKey( 68,new Key(KeyEvent.VK_F10)); keys.setKey( 69,new Key(KeyEvent.VK_NUM_LOCK)); keys.setKey( 70,new Key(KeyEvent.VK_SCROLL_LOCK)); keys.setKey( 71,new Key('7',KeyEvent.VK_NUMPAD7)); keys.setKey( 72,new Key('8',KeyEvent.VK_NUMPAD8)); keys.setKey( 73,new Key('9',KeyEvent.VK_NUMPAD9)); keys.setKey( 74,new Key('-',KeyEvent.VK_SUBTRACT)); keys.setKey( 75,new Key('4',KeyEvent.VK_NUMPAD4)); keys.setKey( 76,new Key('5',KeyEvent.VK_NUMPAD5)); keys.setKey( 77,new Key('6',KeyEvent.VK_NUMPAD6)); keys.setKey( 78,new Key('+',KeyEvent.VK_ADD)); keys.setKey( 79,new Key('1',KeyEvent.VK_NUMPAD1)); keys.setKey( 80,new Key('2',KeyEvent.VK_NUMPAD2)); keys.setKey( 81,new Key('3',KeyEvent.VK_NUMPAD3)); keys.setKey( 82,new Key('0',KeyEvent.VK_NUMPAD0)); keys.setKey( 83,new Key('.',KeyEvent.VK_DECIMAL)); keys.setKey( 86,new Key('<',KeyEvent.VK_LESS,'>',KeyEvent.VK_GREATER,'\\',KeyEvent.VK_BACK_SLASH)); keys.setKey( 87,new Key(KeyEvent.VK_F11)); keys.setKey( 88,new Key(KeyEvent.VK_F12)); keys.setKey( 96,new Key(KeyEvent.VK_INSERT)); keys.setKey( 97,new Key(KeyEvent.VK_HOME)); keys.setKey( 98,new Key(KeyEvent.VK_PAGE_UP)); keys.setKey( 99,new Key('/',KeyEvent.VK_DIVIDE)); keys.setKey(100,new Key(KeyEvent.VK_PRINTSCREEN)); keys.setKey(101,new Key(KeyEvent.VK_DELETE)); keys.setKey(102,new Key(KeyEvent.VK_END)); keys.setKey(103,new Key(KeyEvent.VK_PAGE_DOWN)); keys.setKey(104,new Key(KeyEvent.VK_UP)); keys.setKey(105,new Key(KeyEvent.VK_SEPARATOR)); keys.setKey(111,new Key('/',KeyEvent.VK_SLASH)); keys.setKey(112,new Key(KeyEvent.VK_CONTROL)); keys.setKey(113,new Key(KeyEvent.VK_LEFT)); keys.setKey(114,new Key(KeyEvent.VK_DOWN)); keys.setKey(115,new Key(KeyEvent.VK_RIGHT)); keys.setKey(116,new Key(KeyEvent.VK_PAUSE)); }
9,236
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sources should contain only Variable instances. first = first.simplifyCopy(); for (int i=1; i<n; i+=1) { Variable var = (Variable) sources.get(i); var = var.simplifyCopy(); AssignQuad assignQuad = var.getAssignQuad(); // This is more efficient than generating phi moves at the end // of the block. Basically all phi sources are merged into the // first. assignQuad.setLHS(first); // This might be in a loop, in which case this variable is live // at least until the end of the loop. This looks tricky, but I // think it's correct. IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1); } // This is bold assumption that the first phi source was assigned // before any others. I'm not sure if this is always true... return first; } }
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sources should contain only Variable instances. first = first.simplifyCopy(); for (int i=1; i<n; i+=1) { Variable var = (Variable) sources.get(i); var = var.simplifyCopy(); AssignQuad assignQuad = var.getAssignQuad(); // This is more efficient than generating phi moves at the end // of the block. Basically all phi sources are merged into the // first. assignQuad.setLHS(first); // This might be in a loop, in which case this variable is live // at least until the end of the loop. This looks tricky, but I // think it's correct. IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1); } // This is bold assumption that the first phi source was assigned // before any others. I'm not sure if this is always true... return first; } }
9,237
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sources should contain only Variable instances. first = first.simplifyCopy(); for (int i=1; i<n; i+=1) { Variable var = (Variable) sources.get(i); var = var.simplifyCopy(); AssignQuad assignQuad = var.getAssignQuad(); // This is more efficient than generating phi moves at the end // of the block. Basically all phi sources are merged into the // first. assignQuad.setLHS(first); // This might be in a loop, in which case this variable is live // at least until the end of the loop. This looks tricky, but I // think it's correct. IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1); } // This is bold assumption that the first phi source was assigned // before any others. I'm not sure if this is always true... return first; } }
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sources should contain only Variable instances. first = first.simplifyCopy(); for (int i=1; i<n; i+=1) { Variable var = (Variable) sources.get(i); var = var.simplifyCopy(); AssignQuad assignQuad = var.getAssignQuad(); // This is more efficient than generating phi moves at the end // of the block. Basically all phi sources are merged into the // first. assignQuad.setLHS(first); // This might be in a loop, in which case this variable is live // at least until the end of the loop. This looks tricky, but I // think it's correct. IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1); } // This is bold assumption that the first phi source was assigned // before any others. I'm not sure if this is always true... return first; } }
9,238
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sources should contain only Variable instances. first = first.simplifyCopy(); for (int i=1; i<n; i+=1) { Variable var = (Variable) sources.get(i); var = var.simplifyCopy(); AssignQuad assignQuad = var.getAssignQuad(); // This is more efficient than generating phi moves at the end // of the block. Basically all phi sources are merged into the // first. assignQuad.setLHS(first); // This might be in a loop, in which case this variable is live // at least until the end of the loop. This looks tricky, but I // think it's correct. IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1); } // This is bold assumption that the first phi source was assigned // before any others. I'm not sure if this is always true... return first; } }
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sources should contain only Variable instances. first = first.simplifyCopy(); for (int i=1; i<n; i+=1) { Variable var = (Variable) sources.get(i); var = var.simplifyCopy(); AssignQuad assignQuad = var.getAssignQuad(); // This is more efficient than generating phi moves at the end // of the block. Basically all phi sources are merged into the // first. assignQuad.setLHS(first); // This might be in a loop, in which case this variable is live // at least until the end of the loop. This looks tricky, but I // think it's correct. IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1); } // This is bold assumption that the first phi source was assigned // before any others. I'm not sure if this is always true... return first; } }
9,239
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sources should contain only Variable instances. first = first.simplifyCopy(); for (int i=1; i<n; i+=1) { Variable var = (Variable) sources.get(i); var = var.simplifyCopy(); AssignQuad assignQuad = var.getAssignQuad(); // This is more efficient than generating phi moves at the end // of the block. Basically all phi sources are merged into the // first. assignQuad.setLHS(first); // This might be in a loop, in which case this variable is live // at least until the end of the loop. This looks tricky, but I // think it's correct. IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1); } // This is bold assumption that the first phi source was assigned // before any others. I'm not sure if this is always true... return first; } }
public Operand simplify() { int n = sources.size(); if (n == 1) { Variable var = (Variable) sources.get(0); return var.simplify(); } else { Variable first = (Variable) sources.get(0); // We can't use var.simplify() here because the result might // be a constant, which complicates code generation. // sources should contain only Variable instances. first = first.simplifyCopy(); for (int i=1; i<n; i+=1) { Variable var = (Variable) sources.get(i); var = var.simplifyCopy(); AssignQuad assignQuad = var.getAssignQuad(); // This is more efficient than generating phi moves at the end // of the block. Basically all phi sources are merged into the // first. assignQuad.setLHS(first); // This might be in a loop, in which case this variable is live // at least until the end of the loop. This looks tricky, but I // think it's correct. IRBasicBlock block = assignQuad.getBasicBlock().getLastPredecessor(); first.setLastUseAddress(block.getEndPC()-1); } // This is bold assumption that the first phi source was assigned // before any others. I'm not sure if this is always true... return first; } }
9,240
public AccessibleJTextComponent() { super(); textComp.addCaretListener(this); }
public AccessibleJTextComponent() { super(); JTextComponent.this.addCaretListener(this); caretDot = getCaretPosition(); }
9,241
public void caretUpdate(CaretEvent e) throws NotImplementedException { // TODO: fire appropriate event. dot = e.getDot(); }
public void caretUpdate(CaretEvent e) { // TODO: fire appropriate event. dot = e.getDot(); }
9,242
public void caretUpdate(CaretEvent e) throws NotImplementedException { // TODO: fire appropriate event. dot = e.getDot(); }
public void caretUpdate(CaretEvent e) throws NotImplementedException { // TODO: fire appropriate event. int dot = e.getDot(); int mark = e.getMark(); if (caretDot != dot) { firePropertyChange(ACCESSIBLE_CARET_PROPERTY, new Integer(caretDot), new Integer(dot)); caretDot = dot; } if (mark != dot) { firePropertyChange(ACCESSIBLE_SELECTION_PROPERTY, null, getSelectedText()); } }
9,243
public void changedUpdate(DocumentEvent e) throws NotImplementedException { // TODO }
public void changedUpdate(DocumentEvent e) { // TODO }
9,244
public void changedUpdate(DocumentEvent e) throws NotImplementedException { // TODO }
firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); publicfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); voidfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); changedUpdate(DocumentEventfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); e)firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); throwsfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); NotImplementedExceptionfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); {firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); //firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); TODOfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); }
9,245
public void cut(int start, int end) { textComp.select(start, end); textComp.cut(); }
public void cut(int start, int end) { textComp.select(start, end); textComp.cut(); }
9,246
public boolean doAccessibleAction(int i) throws NotImplementedException { return false; // TODO }
public boolean doAccessibleAction(int i) { return false; // TODO }
9,247
public boolean doAccessibleAction(int i) throws NotImplementedException { return false; // TODO }
public boolean doAccessibleAction(int i) throws NotImplementedException { boolean ret = false; Action[] actions = getActions(); if (i >= 0 && i < actions.length) { ActionEvent ev = new ActionEvent(JTextComponent.this, ActionEvent.ACTION_PERFORMED, null); actions[i].actionPerformed(ev); ret = true; } return ret; // TODO }
9,248
public int getAccessibleActionCount() throws NotImplementedException { return 0; // TODO }
public int getAccessibleActionCount() { return 0; // TODO }
9,249
public int getAccessibleActionCount() throws NotImplementedException { return 0; // TODO }
public int getAccessibleActionCount() throws NotImplementedException { return getActions().length; // TODO }
9,250
public String getAccessibleActionDescription(int i) throws NotImplementedException { // TODO: Not implemented fully return super.getAccessibleDescription(); }
public String getAccessibleActionDescription(int i) { // TODO: Not implemented fully return super.getAccessibleDescription(); }
9,251
public String getAccessibleActionDescription(int i) throws NotImplementedException { // TODO: Not implemented fully return super.getAccessibleDescription(); }
public String getAccessibleActionDescription(int i) throws NotImplementedException { // TODO: Not implemented fully String desc = null; Action[] actions = getActions(); if (i >= 0 && i < actions.length) desc = (String) actions[i].getValue(Action.NAME); return desc; }
9,252
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; }
public AccessibleStateSet getAccessibleStateSet() { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; }
9,253
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { AccessibleStateSet state = super.getAccessibleStateSet(); // TODO: Figure out what state must be added here to the super's state. return state; }
if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); publicif (isEditable()) state.add(AccessibleState.EDITABLE); AccessibleStateSetif (isEditable()) state.add(AccessibleState.EDITABLE); getAccessibleStateSet()if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); throwsif (isEditable()) state.add(AccessibleState.EDITABLE); NotImplementedExceptionif (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); {if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); AccessibleStateSetif (isEditable()) state.add(AccessibleState.EDITABLE); stateif (isEditable()) state.add(AccessibleState.EDITABLE); =if (isEditable()) state.add(AccessibleState.EDITABLE); super.getAccessibleStateSet();if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); //if (isEditable()) state.add(AccessibleState.EDITABLE); TODO:if (isEditable()) state.add(AccessibleState.EDITABLE); Figureif (isEditable()) state.add(AccessibleState.EDITABLE); outif (isEditable()) state.add(AccessibleState.EDITABLE); whatif (isEditable()) state.add(AccessibleState.EDITABLE); stateif (isEditable()) state.add(AccessibleState.EDITABLE); mustif (isEditable()) state.add(AccessibleState.EDITABLE); beif (isEditable()) state.add(AccessibleState.EDITABLE); addedif (isEditable()) state.add(AccessibleState.EDITABLE); hereif (isEditable()) state.add(AccessibleState.EDITABLE); toif (isEditable()) state.add(AccessibleState.EDITABLE); theif (isEditable()) state.add(AccessibleState.EDITABLE); super'sif (isEditable()) state.add(AccessibleState.EDITABLE); state.if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); returnif (isEditable()) state.add(AccessibleState.EDITABLE); state;if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); if (isEditable()) state.add(AccessibleState.EDITABLE); }
9,254
public String getAfterIndex(int part, int index) throws NotImplementedException { return null; // TODO }
public String getAfterIndex(int part, int index) { return null; // TODO }
9,255
public String getAfterIndex(int part, int index) throws NotImplementedException { return null; // TODO }
public String getAfterIndex(int part, int index) throws NotImplementedException { return getAtIndexImpl(part, index, 1); // TODO }
9,256
public String getAtIndex(int part, int index) throws NotImplementedException { return null; // TODO }
public String getAtIndex(int part, int index) { return null; // TODO }
9,257
public String getAtIndex(int part, int index) throws NotImplementedException { return null; // TODO }
public String getAtIndex(int part, int index) throws NotImplementedException { return getAtIndexImpl(part, index, 0); // TODO }
9,258
public String getBeforeIndex(int part, int index) throws NotImplementedException { return null; // TODO }
public String getBeforeIndex(int part, int index) { return null; // TODO }
9,259
public String getBeforeIndex(int part, int index) throws NotImplementedException { return null; // TODO }
public String getBeforeIndex(int part, int index) throws NotImplementedException { return getAtIndexImpl(part, index, -1); // TODO }
9,260
public int getCaretPosition() { dot = textComp.getCaretPosition(); return dot; }
public int getCaretPosition() { dot = textComp.getCaretPosition(); return dot; }
9,261
public int getCharCount() { return textComp.getText().length(); }
public int getCharCount() { return JTextComponent.this.getText().length(); }
9,262
public AttributeSet getCharacterAttribute(int index) throws NotImplementedException { return null; // TODO }
public AttributeSet getCharacterAttribute(int index) { return null; // TODO }
9,263
public AttributeSet getCharacterAttribute(int index) throws NotImplementedException { return null; // TODO }
public AttributeSet getCharacterAttribute(int index) throws NotImplementedException { AttributeSet atts; if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readLock(); try { Element el = doc.getDefaultRootElement(); while (! el.isLeaf()) { int i = el.getElementIndex(index); el = el.getElement(i); } atts = el.getAttributes(); } finally { if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readUnlock(); } return atts; // TODO }
9,264
public Rectangle getCharacterBounds(int index) throws NotImplementedException { return null; // TODO }
public Rectangle getCharacterBounds(int index) { return null; // TODO }
9,265
public Rectangle getCharacterBounds(int index) throws NotImplementedException { return null; // TODO }
public Rectangle getCharacterBounds(int index) throws NotImplementedException { Rectangle bounds = null; if (index >= 0 && index < doc.getLength() - 1) { if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readLock(); try { TextUI ui = getUI(); if (ui != null) { Rectangle rect = new Rectangle(); Insets insets = getInsets(); rect.x = insets.left; rect.y = insets.top; rect.width = getWidth() - insets.left - insets.right; rect.height = getHeight() - insets.top - insets.bottom; View rootView = ui.getRootView(JTextComponent.this); if (rootView != null) { rootView.setSize(rect.width, rect.height); Shape s = rootView.modelToView(index, Position.Bias.Forward, index + 1, Position.Bias.Backward, rect); if (s != null) bounds = s.getBounds(); } } } catch (BadLocationException ex) { } finally { if (doc instanceof AbstractDocument) ((AbstractDocument) doc).readUnlock(); } } return bounds; // TODO }
9,266
public int getIndexAtPoint(Point p) throws NotImplementedException { return 0; // TODO }
public int getIndexAtPoint(Point p) { return 0; // TODO }
9,267
public int getIndexAtPoint(Point p) throws NotImplementedException { return 0; // TODO }
public int getIndexAtPoint(Point p) throws NotImplementedException { return viewToModel(p); // TODO }
9,268
public String getSelectedText() { return textComp.getSelectedText(); }
public String getSelectedText() { return JTextComponent.this.getSelectedText(); }
9,269
public int getSelectionEnd() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return textComp.getSelectionEnd(); }
public int getSelectionEnd() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return textComp.getSelectionEnd(); }
9,270
public int getSelectionStart() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return textComp.getSelectionStart(); }
public int getSelectionStart() { if (getSelectedText() == null || (JTextComponent.this.getText().equals(""))) return 0; return textComp.getSelectionStart(); }
9,271
public int getSelectionStart() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return textComp.getSelectionStart(); }
public int getSelectionStart() { if (getSelectedText() == null || (textComp.getText().equals(""))) return 0; return JTextComponent.this.getSelectionStart(); }
9,272
public String getTextRange(int start, int end) { try { return textComp.getText(start, end - start); } catch (BadLocationException ble) { return ""; } }
public String getTextRange(int start, int end) { try { return JTextComponent.this.getText(start, end - start); } catch (BadLocationException ble) { return ""; } }
9,273
public void insertTextAtIndex(int index, String s) throws NotImplementedException { replaceText(index, index, s); }
public void insertTextAtIndex(int index, String s) { replaceText(index, index, s); }
9,274
public void insertTextAtIndex(int index, String s) throws NotImplementedException { replaceText(index, index, s); }
public void insertTextAtIndex(int index, String s) throws NotImplementedException { try { doc.insertString(index, s, null); } catch (BadLocationException ex) { ex.printStackTrace(); } }
9,275
public void insertUpdate(DocumentEvent e) throws NotImplementedException { // TODO }
public void insertUpdate(DocumentEvent e) { // TODO }
9,276
public void insertUpdate(DocumentEvent e) throws NotImplementedException { // TODO }
firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); publicfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); voidfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); insertUpdate(DocumentEventfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); e)firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); throwsfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); NotImplementedExceptionfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); {firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); //firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); TODOfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); }
9,277
public void paste(int start) { textComp.setCaretPosition(start); textComp.paste(); }
public void paste(int start) { textComp.setCaretPosition(start); textComp.paste(); }
9,278
public void removeUpdate(DocumentEvent e) throws NotImplementedException { // TODO }
public void removeUpdate(DocumentEvent e) { // TODO }
9,279
public void removeUpdate(DocumentEvent e) throws NotImplementedException { // TODO }
firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); publicfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); voidfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); removeUpdate(DocumentEventfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); e)firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); throwsfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); NotImplementedExceptionfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); {firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); //firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); TODOfirePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); firePropertyChange(ACCESSIBLE_TEXT_PROPERTY, null, new Integer(e.getOffset())); }
9,280
public void replaceText(int start, int end, String s) { textComp.select(start, end); textComp.replaceSelection(s); }
public void replaceText(int start, int end, String s) { textComp.select(start, end); textComp.replaceSelection(s); }
9,281
public void selectText(int start, int end) { textComp.select(start, end); }
public void selectText(int start, int end) { JTextComponent.this.select(start, end); }
9,282
public void setAttributes(int start, int end, AttributeSet s) throws NotImplementedException { // TODO }
public void setAttributes(int start, int end, AttributeSet s) { // TODO }
9,283
public void setAttributes(int start, int end, AttributeSet s) throws NotImplementedException { // TODO }
if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } publicif (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } voidif (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } setAttributes(intif (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } start,if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } intif (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } end,if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } AttributeSetif (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } s)if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } throwsif (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } NotImplementedExceptionif (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } {if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } //if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } TODOif (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } if (doc instanceof StyledDocument) { StyledDocument sdoc = (StyledDocument) doc; sdoc.setCharacterAttributes(start, end - start, s, true); } }
9,284
public void setTextContents(String s) throws NotImplementedException { // TODO }
public void setTextContents(String s) { // TODO }
9,285
public void setTextContents(String s) throws NotImplementedException { // TODO }
setText(s); setText(s); setText(s); setText(s); publicsetText(s); voidsetText(s); setTextContents(StringsetText(s); s)setText(s); setText(s); setText(s); setText(s); setText(s); setText(s); throwssetText(s); NotImplementedExceptionsetText(s); setText(s); setText(s); setText(s); {setText(s); setText(s); setText(s); setText(s); setText(s); setText(s); //setText(s); TODOsetText(s); setText(s); setText(s); setText(s); }
9,286
public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return getParent().getWidth() > getPreferredSize().width; return false; }
public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return getParent().getWidth() > getPreferredSize().width; return false; }
9,287
public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return getParent().getWidth() > getPreferredSize().width; return false; }
public boolean getScrollableTracksViewportWidth() { if (getParent() instanceof JViewport) return getParent().getWidth() > getPreferredSize().width; return res; }
9,288
public void reset() { spoolName.setEnabled(false); spoolName.setText(""); //select.setSelected(false); all.setSelected(true); }
publicvoidreset(){spoolName.setEnabled(false);spoolName.setText("");//select.setSelected(false);all.setSelected(true);}
9,290
public final void hostPrint(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } screen52.setCursorOff(); screen52.setStatus(screen52.STATUS_SYSTEM,screen52.STATUS_VALUE_ON,null); // From client access ip capture // it seems to use an operation code of 3 and 4 // also note that the flag field that says reserved is being sent as well // with a value of 0x80 // // I have tried with not setting these flags and sending with 3 or 1 // there is no effect and I still get a host print screen. Go figure //0000: 000D 12A0 0000 0400 8003 1407 F6FFEF //0000: 000D 12A0 0000 0400 8001 110E F6FFEF // // Client sends header 000D12A0000004000003####F6FFEF // operation code 3 // row - first ## // column - second ## // F6 - Print Aid Key baosp.write(screen52.getCurrentRow()); baosp.write(screen52.getCurrentCol()); baosp.write(AID_PRINT); // aid key try { writeGDS(0, 3, baosp.toByteArray()); } catch (IOException ioe) { System.out.println(ioe.getMessage()); } baosp.reset(); }
public final void hostPrint(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } screen52.setCursorActive(false); screen52.setStatus(screen52.STATUS_SYSTEM,screen52.STATUS_VALUE_ON,null); // From client access ip capture // it seems to use an operation code of 3 and 4 // also note that the flag field that says reserved is being sent as well // with a value of 0x80 // // I have tried with not setting these flags and sending with 3 or 1 // there is no effect and I still get a host print screen. Go figure //0000: 000D 12A0 0000 0400 8003 1407 F6FFEF //0000: 000D 12A0 0000 0400 8001 110E F6FFEF // // Client sends header 000D12A0000004000003####F6FFEF // operation code 3 // row - first ## // column - second ## // F6 - Print Aid Key baosp.write(screen52.getCurrentRow()); baosp.write(screen52.getCurrentCol()); baosp.write(AID_PRINT); // aid key try { writeGDS(0, 3, baosp.toByteArray()); } catch (IOException ioe) { System.out.println(ioe.getMessage()); } baosp.reset(); }
9,291
private void parseIncoming() { boolean controlChars = false; byte control0; byte control1; boolean done = false; boolean error = false; try { while (bk.hasNext() && !done) { byte b = bk.getNextByte(); switch (b) { case 0: case 1: break; case CMD_SAVE_SCREEN: // 0x02 2 Save Screen case 3: // 0x03 3 Save Partial Screen// System.out.println("save screen partial"); saveScreen(); break; case ESC: // ESCAPE break; case 7: // audible bell Toolkit.getDefaultToolkit().beep(); bk.getNextByte(); bk.getNextByte(); break; case CMD_WRITE_TO_DISPLAY: // 0x11 17 write to display error = writeToDisplay(true); break; case CMD_RESTORE_SCREEN: // 0x12 18 Restore Screen case 13: // 0x13 19 Restore Partial Screen// System.out.println("restore screen partial"); restoreScreen(); break; case CMD_CLEAR_UNIT_ALTERNATE: // 0x20 32 clear unit alternate int param = bk.getNextByte(); if (param != 0) {// System.out.println(" clear unit alternate error " + Integer.toHexString(param)); sendNegResponse(NR_REQUEST_ERROR,03,01,05, " clear unit alternate not supported"); done = true; } else { if (screen52.getRows() != 27) screen52.setRowsCols(27,132); screen52.clearAll(); } break; case CMD_WRITE_ERROR_CODE: // 0x21 33 Write Error Code writeErrorCode(); error = writeToDisplay(false); break; case CMD_WRITE_ERROR_CODE_TO_WINDOW: // 0x22 34 // Write Error Code to window writeErrorCodeToWindow(); error = writeToDisplay(false); break; case CMD_READ_SCREEN_IMMEDIATE: // 0x62 98 case CMD_READ_SCREEN_TO_PRINT: // 0x66 102 read screen to print readScreen(); break; case CMD_CLEAR_UNIT: // 64 0x40 clear unit if (screen52.getRows() != 24) screen52.setRowsCols(24,80); screen52.clearAll(); break; case CMD_CLEAR_FORMAT_TABLE: // 80 0x50 Clear format table screen52.clearTable(); break; case CMD_READ_INPUT_FIELDS: //0x42 66 read input fields case CMD_READ_MDT_FIELDS: // 0x52 82 read MDT Fields bk.getNextByte(); bk.getNextByte(); readType = b; screen52.goHome();// screen52.setCursorOn(); waitingForInput = true; pendingUnlock = true;// screen52.setKeyboardLocked(false); break; case CMD_READ_MDT_IMMEDIATE_ALT: // 0x53 83 readType = b;// screen52.goHome();// waitingForInput = true;// screen52.setKeyboardLocked(false); readImmediate(readType); break; case CMD_WRITE_STRUCTURED_FIELD: // 243 0xF3 -13 Write structured field writeStructuredField(); break; default: done = true; sendNegResponse(NR_REQUEST_ERROR,03,01,01,"parseIncoming"); break; } if (error) done = true; } } catch (Exception exc) {System.out.println("incoming " + exc.getMessage());}; }
private void parseIncoming() { boolean controlChars = false; byte control0; byte control1; boolean done = false; boolean error = false; try { while (bk.hasNext() && !done) { byte b = bk.getNextByte(); switch (b) { case 0: case 1: break; case CMD_SAVE_SCREEN: // 0x02 2 Save Screen case 3: // 0x03 3 Save Partial Screen// System.out.println("save screen partial"); saveScreen(); break; case ESC: // ESCAPE break; case 7: // audible bell Toolkit.getDefaultToolkit().beep(); bk.getNextByte(); bk.getNextByte(); break; case CMD_WRITE_TO_DISPLAY: // 0x11 17 write to display error = writeToDisplay(true); break; case CMD_RESTORE_SCREEN: // 0x12 18 Restore Screen case 13: // 0x13 19 Restore Partial Screen// System.out.println("restore screen partial"); restoreScreen(); break; case CMD_CLEAR_UNIT_ALTERNATE: // 0x20 32 clear unit alternate int param = bk.getNextByte(); if (param != 0) {// System.out.println(" clear unit alternate error " + Integer.toHexString(param)); sendNegResponse(NR_REQUEST_ERROR,03,01,05, " clear unit alternate not supported"); done = true; } else { if (screen52.getRows() != 27) screen52.setRowsCols(27,132); screen52.clearAll(); } break; case CMD_WRITE_ERROR_CODE: // 0x21 33 Write Error Code writeErrorCode(); error = writeToDisplay(false); break; case CMD_WRITE_ERROR_CODE_TO_WINDOW: // 0x22 34 // Write Error Code to window writeErrorCodeToWindow(); error = writeToDisplay(false); break; case CMD_READ_SCREEN_IMMEDIATE: // 0x62 98 case CMD_READ_SCREEN_TO_PRINT: // 0x66 102 read screen to print readScreen(); break; case CMD_CLEAR_UNIT: // 64 0x40 clear unit if (screen52.getRows() != 24) screen52.setRowsCols(24,80); screen52.clearAll(); break; case CMD_CLEAR_FORMAT_TABLE: // 80 0x50 Clear format table screen52.clearTable(); break; case CMD_READ_INPUT_FIELDS: //0x42 66 read input fields case CMD_READ_MDT_FIELDS: // 0x52 82 read MDT Fields bk.getNextByte(); bk.getNextByte(); readType = b; screen52.goHome();// screen52.setCursorOn(); waitingForInput = true; pendingUnlock = true;// screen52.setKeyboardLocked(false); break; case CMD_READ_MDT_IMMEDIATE_ALT: // 0x53 83 readType = b;// screen52.goHome();// waitingForInput = true;// screen52.setKeyboardLocked(false); readImmediate(readType); break; case CMD_WRITE_STRUCTURED_FIELD: // 243 0xF3 -13 Write structured field writeStructuredField(); break; default: done = true; sendNegResponse(NR_REQUEST_ERROR,03,01,01,"parseIncoming"); break; } if (error) done = true; } } catch (Exception exc) {System.out.println("incoming " + exc.getMessage());}; }
9,292
private final void readImmediate(int readType) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorOff(); } screen52.setStatus(screen52.STATUS_SYSTEM,screen52.STATUS_VALUE_ON,null); screen52.setKeyboardLocked(true); pendingUnlock = false; invited = false; screen52.getScreenFields().readFormatTable(baosp,readType,codePage); try { writeGDS(0, 3, baosp.toByteArray()); } catch (IOException ioe) { System.out.println(ioe.getMessage()); baosp.reset(); } baosp.reset(); }
private final void readImmediate(int readType) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorActive(false); } screen52.setStatus(screen52.STATUS_SYSTEM,screen52.STATUS_VALUE_ON,null); screen52.setKeyboardLocked(true); pendingUnlock = false; invited = false; screen52.getScreenFields().readFormatTable(baosp,readType,codePage); try { writeGDS(0, 3, baosp.toByteArray()); } catch (IOException ioe) { System.out.println(ioe.getMessage()); baosp.reset(); } baosp.reset(); }
9,293
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming();// screen52.setKeyboardLocked(false); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); if (!firstScreen) { firstScreen = true; controller.fireSessionChanged(TN5250jConstants.STATE_CONNECTED); signOnSave = screen52.getScreenAsChars(); System.out.println("Signon saved"); } break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorOn(); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorOn(); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try {// SwingUtilities.invokeAndWait(// new Runnable () {// public void run() {// screen52.updateDirty();// }// }// ); screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); exd.printStackTrace(); } if (pendingUnlock && !screen52.isStatusErrorCode()) { screen52.setKeyboardLocked(false); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorOn(); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming();// screen52.setKeyboardLocked(false); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); if (!firstScreen) { firstScreen = true; controller.fireSessionChanged(TN5250jConstants.STATE_CONNECTED); signOnSave = screen52.getScreenAsChars(); System.out.println("Signon saved"); } break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorOn(); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorOn(); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try {// SwingUtilities.invokeAndWait(// new Runnable () {// public void run() {// screen52.updateDirty();// }// }// ); screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); exd.printStackTrace(); } if (pendingUnlock && !screen52.isStatusErrorCode()) { screen52.setKeyboardLocked(false); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorOn(); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
9,294
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming();// screen52.setKeyboardLocked(false); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); if (!firstScreen) { firstScreen = true; controller.fireSessionChanged(TN5250jConstants.STATE_CONNECTED); signOnSave = screen52.getScreenAsChars(); System.out.println("Signon saved"); } break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorOn(); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorOn(); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try {// SwingUtilities.invokeAndWait(// new Runnable () {// public void run() {// screen52.updateDirty();// }// }// ); screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); exd.printStackTrace(); } if (pendingUnlock && !screen52.isStatusErrorCode()) { screen52.setKeyboardLocked(false); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorOn(); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming();// screen52.setKeyboardLocked(false); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); if (!firstScreen) { firstScreen = true; controller.fireSessionChanged(TN5250jConstants.STATE_CONNECTED); signOnSave = screen52.getScreenAsChars(); System.out.println("Signon saved"); } break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorActive(true); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorActive(true); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try {// SwingUtilities.invokeAndWait(// new Runnable () {// public void run() {// screen52.updateDirty();// }// }// ); screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); exd.printStackTrace(); } if (pendingUnlock && !screen52.isStatusErrorCode()) { screen52.setKeyboardLocked(false); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorActive(true); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
9,295
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming();// screen52.setKeyboardLocked(false); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); if (!firstScreen) { firstScreen = true; controller.fireSessionChanged(TN5250jConstants.STATE_CONNECTED); signOnSave = screen52.getScreenAsChars(); System.out.println("Signon saved"); } break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorOn(); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorOn(); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try {// SwingUtilities.invokeAndWait(// new Runnable () {// public void run() {// screen52.updateDirty();// }// }// ); screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); exd.printStackTrace(); } if (pendingUnlock && !screen52.isStatusErrorCode()) { screen52.setKeyboardLocked(false); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorOn(); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming();// screen52.setKeyboardLocked(false); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); if (!firstScreen) { firstScreen = true; controller.fireSessionChanged(TN5250jConstants.STATE_CONNECTED); signOnSave = screen52.getScreenAsChars(); System.out.println("Signon saved"); } break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorActive(true); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorActive(true); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try {// SwingUtilities.invokeAndWait(// new Runnable () {// public void run() {// screen52.updateDirty();// }// }// ); screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); exd.printStackTrace(); } if (pendingUnlock && !screen52.isStatusErrorCode()) { screen52.setKeyboardLocked(false); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorActive(true); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
9,296
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming();// screen52.setKeyboardLocked(false); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); if (!firstScreen) { firstScreen = true; controller.fireSessionChanged(TN5250jConstants.STATE_CONNECTED); signOnSave = screen52.getScreenAsChars(); System.out.println("Signon saved"); } break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorOn(); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorOn(); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try {// SwingUtilities.invokeAndWait(// new Runnable () {// public void run() {// screen52.updateDirty();// }// }// ); screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); exd.printStackTrace(); } if (pendingUnlock && !screen52.isStatusErrorCode()) { screen52.setKeyboardLocked(false); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorOn(); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
public void run () { while (keepTrucking) { try { bk = (Stream5250)dsq.get(); } catch (InterruptedException ie) { System.out.println(" vt thread interrupted and stopping "); keepTrucking = false; continue; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); invited = false; screen52.setCursorOff();// System.out.println("operation code: " + bk.getOpCode()); if (bk == null) continue; switch (bk.getOpCode()) { case 00:// System.out.println("No operation"); break; case 1:// System.out.println("Invite Operation"); parseIncoming();// screen52.setKeyboardLocked(false); pendingUnlock = true; cursorOn = true; setInvited(); break; case 2:// System.out.println("Output Only"); parseIncoming();// System.out.println(screen52.dirty); screen52.updateDirty(); // invited = true; break; case 3:// System.out.println("Put/Get Operation"); parseIncoming();// inviteIt =true; setInvited(); if (!firstScreen) { firstScreen = true; controller.fireSessionChanged(TN5250jConstants.STATE_CONNECTED); signOnSave = screen52.getScreenAsChars(); System.out.println("Signon saved"); } break; case 4:// System.out.println("Save Screen Operation"); parseIncoming(); break; case 5:// System.out.println("Restore Screen Operation"); parseIncoming(); break; case 6:// System.out.println("Read Immediate"); sendAidKey(0); break; case 7:// System.out.println("Reserved"); break; case 8:// System.out.println("Read Screen Operation"); try { readScreen(); } catch (IOException ex) { } break; case 9:// System.out.println("Reserved"); break; case 10:// System.out.println("Cancel Invite Operation"); cancelInvite(); break; case 11:// System.out.println("Turn on message light"); screen52.setMessageLightOn(); screen52.setCursorActive(true); break; case 12:// System.out.println("Turn off Message light"); screen52.setMessageLightOff(); screen52.setCursorActive(true); break; default: break; } if (screen52.isUsingGuiInterface()) screen52.drawFields();// if (screen52.screen[0][1].getChar() == '#' &&// screen52.screen[0][2].getChar() == '!')// execCmd();// else { if (screen52.isHotSpots()) { screen52.checkHotSpots(); } try {// SwingUtilities.invokeAndWait(// new Runnable () {// public void run() {// screen52.updateDirty();// }// }// ); screen52.updateDirty(); } catch (Exception exd ) { System.out.println(" tnvt.run: " + exd.getMessage()); exd.printStackTrace(); } if (pendingUnlock && !screen52.isStatusErrorCode()) { screen52.setKeyboardLocked(false); } if (cursorOn && !screen52.isKeyboardLocked()) { screen52.setCursorActive(true); cursorOn = false; } // lets play nicely with the others on the playground// me.yield(); pthread.yield(); } }
9,297
public final boolean sendAidKey(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorOff(); } screen52.setStatus(screen52.STATUS_SYSTEM,screen52.STATUS_VALUE_ON,null); screen52.setKeyboardLocked(true); pendingUnlock = false; invited = false; baosp.write(screen52.getCurrentRow()); baosp.write(screen52.getCurrentCol()); baosp.write(aid); if (dataIncluded(aid)) screen52.getScreenFields().readFormatTable(baosp,readType,codePage); try { writeGDS(0, 3, baosp.toByteArray()); } catch (IOException ioe) { System.out.println(ioe.getMessage()); baosp.reset(); return false; } baosp.reset(); return true; }
public final boolean sendAidKey(int aid) { if (screen52.isStatusErrorCode()) { screen52.restoreErrorLine(); screen52.setStatus(screen52.STATUS_ERROR_CODE,screen52.STATUS_VALUE_OFF,null); } if (!enhanced) { screen52.setCursorActive(false); } screen52.setStatus(screen52.STATUS_SYSTEM,screen52.STATUS_VALUE_ON,null); screen52.setKeyboardLocked(true); pendingUnlock = false; invited = false; baosp.write(screen52.getCurrentRow()); baosp.write(screen52.getCurrentCol()); baosp.write(aid); if (dataIncluded(aid)) screen52.getScreenFields().readFormatTable(baosp,readType,codePage); try { writeGDS(0, 3, baosp.toByteArray()); } catch (IOException ioe) { System.out.println(ioe.getMessage()); baosp.reset(); return false; } baosp.reset(); return true; }
9,298
Item(int kind, int offsetToFP) { assertCondition(kind > 0, "Invalid kind"); this.kind = kind; this.offsetToFP = offsetToFP; }
Item(int kind, int offsetToFP) { assertCondition(kind > 0, "Invalid kind"); this.kind = kind; this.offsetToFP = offsetToFP; }
9,299
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); put(w, "memsize", String.valueOf(memorySize)); put(w, "MemAllowAutoScaleDown", "FALSE"); put(w, "ide0:0.present", "TRUE"); put(w, "ide0:0.fileName", new File(isoFile).getName()); put(w, "ide0:0.deviceType", "cdrom-image"); put(w, "ide1:0.present", "FALSE"); put(w, "floppy0.present", "FALSE"); put(w, "usb.present", "TRUE"); put(w, "sound.present", "FALSE"); put(w, "sound.virtualDev", "es1371"); put(w, "displayName", "JNode"); put(w, "guestOS", "dos"); put(w, "nvram", "JNode.nvram"); put(w, "MemTrimRate", "-1"); put(w, "ide0:0.redo", ""); put(w, "ethernet0.present", "TRUE"); put(w, "ethernet0.connectionType", "bridged"); put(w, "ethernet0.addressType", "generated"); put(w, "ethernet0.generatedAddress", "00:0c:29:2a:96:30"); put(w, "ethernet0.generatedAddressOffset", "0"); put(w, "ethernet0.vnet", "/dev/vmnet1"); put(w, "ethernet0.startConnected", "TRUE"); put(w, "uuid.location", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); put(w, "uuid.bios", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); if((logFile != null) && (logFile.trim().length() != 0)) { put(w, "serial0.present", "TRUE"); put(w, "serial0.fileType", "file"); put(w, "serial0.fileName", logFile); } put(w, "tools.syncTime", "TRUE"); put(w, "ide1:0.startConnected", "TRUE"); put(w, "uuid.action", "create"); put(w, "checkpoint.vmState", ""); } finally { out.close(); } } catch (IOException ex) { throw new BuildException(ex); } }
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); put(w, "memsize", String.valueOf(memorySize)); put(w, "MemAllowAutoScaleDown", "FALSE"); put(w, "ide0:0.present", "TRUE"); put(w, "ide0:0.fileName", new File(isoFile).getName()); put(w, "ide0:0.deviceType", "cdrom-image"); put(w, "ide1:0.present", "FALSE"); put(w, "floppy0.present", "FALSE"); put(w, "usb.present", "TRUE"); put(w, "sound.present", "FALSE"); put(w, "sound.virtualDev", "es1371"); put(w, "displayName", "JNode"); put(w, "guestOS", "dos"); put(w, "nvram", "JNode.nvram"); put(w, "MemTrimRate", "-1"); put(w, "ide0:0.redo", ""); put(w, "ethernet0.present", "TRUE"); put(w, "ethernet0.connectionType", "bridged"); put(w, "ethernet0.addressType", "generated"); put(w, "ethernet0.generatedAddress", "00:0c:29:2a:96:30"); put(w, "ethernet0.generatedAddressOffset", "0"); put(w, "ethernet0.vnet", "/dev/vmnet1"); put(w, "ethernet0.startConnected", "TRUE"); put(w, "uuid.location", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); put(w, "uuid.bios", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); if((logFile != null) && (logFile.trim().length() != 0)) { put(w, "serial0.present", "TRUE"); put(w, "serial0.fileType", "file"); put(w, "serial0.fileName", logFile); } put(w, "tools.syncTime", "TRUE"); put(w, "ide1:0.startConnected", "TRUE"); put(w, "uuid.action", "create"); put(w, "checkpoint.vmState", ""); } finally { out.close(); } } catch (IOException ex) { throw new BuildException(ex); } }
9,302
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); put(w, "memsize", String.valueOf(memorySize)); put(w, "MemAllowAutoScaleDown", "FALSE"); put(w, "ide0:0.present", "TRUE"); put(w, "ide0:0.fileName", new File(isoFile).getName()); put(w, "ide0:0.deviceType", "cdrom-image"); put(w, "ide1:0.present", "FALSE"); put(w, "floppy0.present", "FALSE"); put(w, "usb.present", "TRUE"); put(w, "sound.present", "FALSE"); put(w, "sound.virtualDev", "es1371"); put(w, "displayName", "JNode"); put(w, "guestOS", "dos"); put(w, "nvram", "JNode.nvram"); put(w, "MemTrimRate", "-1"); put(w, "ide0:0.redo", ""); put(w, "ethernet0.present", "TRUE"); put(w, "ethernet0.connectionType", "bridged"); put(w, "ethernet0.addressType", "generated"); put(w, "ethernet0.generatedAddress", "00:0c:29:2a:96:30"); put(w, "ethernet0.generatedAddressOffset", "0"); put(w, "ethernet0.vnet", "/dev/vmnet1"); put(w, "ethernet0.startConnected", "TRUE"); put(w, "uuid.location", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); put(w, "uuid.bios", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); if((logFile != null) && (logFile.trim().length() != 0)) { put(w, "serial0.present", "TRUE"); put(w, "serial0.fileType", "file"); put(w, "serial0.fileName", logFile); } put(w, "tools.syncTime", "TRUE"); put(w, "ide1:0.startConnected", "TRUE"); put(w, "uuid.action", "create"); put(w, "checkpoint.vmState", ""); } finally { out.close(); } } catch (IOException ex) { throw new BuildException(ex); } }
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); put(w, "memsize", String.valueOf(memorySize)); put(w, "MemAllowAutoScaleDown", "FALSE"); put(w, "ide0:0.present", "TRUE"); put(w, "ide0:0.fileName", new File(isoFile).getName()); put(w, "ide0:0.deviceType", "cdrom-image"); put(w, "ide1:0.present", "FALSE"); put(w, "floppy0.present", "FALSE"); put(w, "usb.present", "TRUE"); put(w, "sound.present", "FALSE"); put(w, "sound.virtualDev", "es1371"); put(w, "displayName", "JNode"); put(w, "guestOS", "dos"); put(w, "nvram", "JNode.nvram"); put(w, "MemTrimRate", "-1"); put(w, "ide0:0.redo", ""); put(w, "ethernet0.present", "TRUE"); put(w, "ethernet0.connectionType", "bridged"); put(w, "ethernet0.addressType", "generated"); put(w, "ethernet0.generatedAddress", "00:0c:29:2a:96:30"); put(w, "ethernet0.generatedAddressOffset", "0"); put(w, "ethernet0.present", "TRUE"); put(w, "ethernet0.startConnected", "TRUE"); put(w, "uuid.location", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); put(w, "uuid.bios", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); if((logFile != null) && (logFile.trim().length() != 0)) { put(w, "serial0.present", "TRUE"); put(w, "serial0.fileType", "file"); put(w, "serial0.fileName", logFile); } put(w, "tools.syncTime", "TRUE"); put(w, "ide1:0.startConnected", "TRUE"); put(w, "uuid.action", "create"); put(w, "checkpoint.vmState", ""); } finally { out.close(); } } catch (IOException ex) { throw new BuildException(ex); } }
9,303
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); put(w, "memsize", String.valueOf(memorySize)); put(w, "MemAllowAutoScaleDown", "FALSE"); put(w, "ide0:0.present", "TRUE"); put(w, "ide0:0.fileName", new File(isoFile).getName()); put(w, "ide0:0.deviceType", "cdrom-image"); put(w, "ide1:0.present", "FALSE"); put(w, "floppy0.present", "FALSE"); put(w, "usb.present", "TRUE"); put(w, "sound.present", "FALSE"); put(w, "sound.virtualDev", "es1371"); put(w, "displayName", "JNode"); put(w, "guestOS", "dos"); put(w, "nvram", "JNode.nvram"); put(w, "MemTrimRate", "-1"); put(w, "ide0:0.redo", ""); put(w, "ethernet0.present", "TRUE"); put(w, "ethernet0.connectionType", "bridged"); put(w, "ethernet0.addressType", "generated"); put(w, "ethernet0.generatedAddress", "00:0c:29:2a:96:30"); put(w, "ethernet0.generatedAddressOffset", "0"); put(w, "ethernet0.vnet", "/dev/vmnet1"); put(w, "ethernet0.startConnected", "TRUE"); put(w, "uuid.location", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); put(w, "uuid.bios", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); if((logFile != null) && (logFile.trim().length() != 0)) { put(w, "serial0.present", "TRUE"); put(w, "serial0.fileType", "file"); put(w, "serial0.fileName", logFile); } put(w, "tools.syncTime", "TRUE"); put(w, "ide1:0.startConnected", "TRUE"); put(w, "uuid.action", "create"); put(w, "checkpoint.vmState", ""); } finally { out.close(); } } catch (IOException ex) { throw new BuildException(ex); } }
public void execute() throws BuildException { try { FileWriter out = new FileWriter(new File(isoFile + ".vmx")); try { PrintWriter w = new PrintWriter(out); put(w, "config.version", "8"); put(w, "virtualHW.version", "4"); put(w, "memsize", String.valueOf(memorySize)); put(w, "MemAllowAutoScaleDown", "FALSE"); put(w, "ide0:0.present", "TRUE"); put(w, "ide0:0.fileName", new File(isoFile).getName()); put(w, "ide0:0.deviceType", "cdrom-image"); put(w, "ide1:0.present", "FALSE"); put(w, "floppy0.present", "FALSE"); put(w, "usb.present", "TRUE"); put(w, "sound.present", "FALSE"); put(w, "sound.virtualDev", "es1371"); put(w, "displayName", "JNode"); put(w, "guestOS", "dos"); put(w, "nvram", "JNode.nvram"); put(w, "MemTrimRate", "-1"); put(w, "ide0:0.redo", ""); put(w, "ethernet0.present", "TRUE"); put(w, "ethernet0.connectionType", "bridged"); put(w, "ethernet0.addressType", "generated"); put(w, "ethernet0.generatedAddress", "00:0c:29:2a:96:30"); put(w, "ethernet0.generatedAddressOffset", "0"); put(w, "ethernet0.vnet", "/dev/vmnet1"); put(w, "ethernet0.startConnected", "TRUE"); put(w, "uuid.location", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); put(w, "uuid.bios", "56 4d 94 59 c9 96 80 88-6c 3a 37 80 04 68 c9 b2"); if((logFile != null) && (logFile.trim().length() != 0)) { put(w, "serial0.present", "TRUE"); put(w, "serial0.fileType", "file"); put(w, "serial0.fileName", logFile); } put(w, "tools.syncTime", "TRUE"); put(w, "ide1:0.startConnected", "TRUE"); put(w, "uuid.action", "create"); put(w, "checkpoint.vmState", ""); } finally { out.close(); } } catch (IOException ex) { throw new BuildException(ex); } }
9,304
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExpandControl(path, click.x, click.y); boolean isLeaf = isLeaf(row); if (isLeaf) bounds.width += rightChildIndent + gap; else if (hasControlIcons()) bounds.width += getCurrentControlIcon(path).getIconWidth() + gap; boolean inBounds = bounds.contains(click.x, click.y); if ((inBounds || cntlClick) && tree.isVisible(path)) { selectPath(tree, path); if (inBounds && e.getClickCount() == 2 && !isLeaf(row)) toggleExpandState(path); if (cntlClick) { handleExpandControlClick(path, click.x, click.y); if (cellEditor != null) cellEditor.cancelCellEditing(); } else if (tree.isEditable()) startEditing(path, e); } } }
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExpandControl(path, click.x, click.y); boolean isLeaf = isLeaf(row); if (isLeaf) bounds.width += rightChildIndent + gap; else if (hasControlIcons()) bounds.width += getCurrentControlIcon(path).getIconWidth() + gap; boolean inBounds = bounds.contains(click.x, click.y); if ((inBounds || cntlClick) && tree.isVisible(path)) { selectPath(tree, path); if (inBounds && e.getClickCount() == 2 && !isLeaf(row)) toggleExpandState(path); if (cntlClick) { handleExpandControlClick(path, click.x, click.y); if (cellEditor != null) cellEditor.cancelCellEditing(); } else if (tree.isEditable()) startEditing(path, e); } } }
9,328
public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionListener(); mouseInputListener = new MouseInputHandler(null, null, null); keyListener = createKeyListener(); selectionModelPropertyChangeListener = createSelectionModelPropertyChangeListener(); componentListener = createComponentListener(); cellEditorListener = createCellEditorListener(); treeExpansionListener = createTreeExpansionListener(); treeModelListener = createTreeModelListener(); editingRow = -1; lastSelectedRow = -1; leafIcon = UIManager.getIcon("Tree.leafIcon"); }
public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionListener(); mouseListener = createMouseListener(); keyListener = createKeyListener(); selectionModelPropertyChangeListener = createSelectionModelPropertyChangeListener(); componentListener = createComponentListener(); cellEditorListener = createCellEditorListener(); treeExpansionListener = createTreeExpansionListener(); treeModelListener = createTreeModelListener(); editingRow = -1; lastSelectedRow = -1; leafIcon = UIManager.getIcon("Tree.leafIcon"); }
9,359
public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionListener(); mouseInputListener = new MouseInputHandler(null, null, null); keyListener = createKeyListener(); selectionModelPropertyChangeListener = createSelectionModelPropertyChangeListener(); componentListener = createComponentListener(); cellEditorListener = createCellEditorListener(); treeExpansionListener = createTreeExpansionListener(); treeModelListener = createTreeModelListener(); editingRow = -1; lastSelectedRow = -1; leafIcon = UIManager.getIcon("Tree.leafIcon"); }
public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionListener(); mouseInputListener = new MouseInputHandler(null, null, null); keyListener = createKeyListener(); selectionModelPropertyChangeListener = createSelectionModelPropertyChangeListener(); componentListener = createComponentListener(); cellEditorListener = createCellEditorListener(); treeExpansionListener = createTreeExpansionListener(); treeModelListener = createTreeModelListener(); editingRow = -1; lastSelectedRow = -1; }
9,360
Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(f); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s) + gap, fm.getHeight()); } return new Rectangle(x, y, 0, 0); }
Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(f); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(fm, s), fm.getHeight()); } return new Rectangle(x, y, 0, 0); }
9,363
Icon getCurrentControlIcon(TreePath path) { if (tree.isExpanded(path)) return UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon"); return UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon"); }
Icon getCurrentControlIcon(TreePath path) { if (tree.isExpanded(path)) return UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon"); return UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon"); }
9,364
boolean hasControlIcons() { if (UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon") != null || UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon") != null) return true; return false; }
boolean hasControlIcons() { if (UIManager.getLookAndFeelDefaults().getIcon("Tree.expandedIcon") != null || UIManager.getLookAndFeelDefaults().getIcon("Tree.collapsedIcon") != null) return true; return false; }
9,365
protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent"); setRowHeight(UIManager.getInt("Tree.rowHeight")); tree.requestFocusInWindow(false); tree.setScrollsOnExpand(UIManager.getBoolean("Tree.scrollsOnExpand")); setExpandedIcon(UIManager.getIcon("Tree.openIcon")); setCollapsedIcon(UIManager.getIcon("Tree.closedIcon")); }
protected void installDefaults() { LookAndFeel.installColorsAndFont(tree, "Tree.background", "Tree.foreground", "Tree.font"); tree.setOpaque(true); rightChildIndent = UIManager.getInt("Tree.rightChildIndent"); leftChildIndent = UIManager.getInt("Tree.leftChildIndent"); setRowHeight(UIManager.getInt("Tree.rowHeight")); tree.requestFocusInWindow(false); tree.setScrollsOnExpand(UIManager.getBoolean("Tree.scrollsOnExpand")); setExpandedIcon(UIManager.getIcon("Tree.openIcon")); setCollapsedIcon(UIManager.getIcon("Tree.closedIcon")); }
9,366
protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropertyChangeListener); tree.addComponentListener(componentListener); tree.addTreeExpansionListener(treeExpansionListener); if (treeModel != null) treeModel.addTreeModelListener(treeModelListener); }
protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropertyChangeListener); tree.addComponentListener(componentListener); tree.addTreeExpansionListener(treeExpansionListener); if (treeModel != null) treeModel.addTreeModelListener(treeModelListener); }
9,367
public void installUI(JComponent c) { tree = (JTree) c; prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeModel mod = tree.getModel(); setModel(mod); if (mod != null) { TreePath path = new TreePath(mod.getRoot()); if (!tree.isExpanded(path)) toggleExpandState(path); } treeSelectionModel = tree.getSelectionModel(); installKeyboardActions(); installListeners(); completeUIInstall(); }
public void installUI(JComponent c) { tree = (JTree) c; prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; TreeModel mod = tree.getModel(); setModel(mod); if (mod != null) { TreePath path = new TreePath(mod.getRoot()); if (!tree.isExpanded(path)) toggleExpandState(path); } treeSelectionModel = tree.getSelectionModel(); installKeyboardActions(); installListeners(); completeUIInstall(); }
9,368