CloneSet484


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
121416
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeClob.java
221428
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeString.java
Next
Last
Clone Instance
1
Line Count
21
Source Line
416
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeClob.java

/*
 * Return a JTextArea usable in the CellPopupDialog
 * and fill in the value.
 */
public JTextArea getJTextArea(Object value) {
  _textComponent = new RestorableJTextArea();
  // value is a simple string representation of the data,
  // but NOT the same one used in the Text and in-cell operations.
  // The in-cell version may replace newline chars with "\n" while this version
  // does not.  In other respects it is the same as the in-cell version because both
  // use the _renderer object to do the rendering.
  ((RestorableJTextArea) _textComponent).setText((String) _renderer.renderObject(value));
  // special handling of operations while editing this data type
  ((RestorableJTextArea) _textComponent).addKeyListener(new KeyTextHandler());
  return (RestorableJTextArea) _textComponent;
}

/**
 * Validating and converting in Popup is identical to cell-related operation.
 */
public Object validateAndConvertInPopup(String value, Object originalValue, StringBuffer messageBuffer) {
  return validateAndConvert(value, originalValue, messageBuffer);
}


First
Previous
Clone Instance
2
Line Count
21
Source Line
428
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeString.java

/*
         * Return a JTextArea usable in the CellPopupDialog.
         */
public JTextArea getJTextArea(Object value) {
  _textComponent = new RestorableJTextArea();
  // value is a simple string representation of the data,
  // but NOT the same one used in the Text and in-cell operations.
  // The in-cell version may replace newline chars with "\n" while this version
  // does not.  In other respects it is the same as the in-cell version because both
  // use the _renderer object to do the rendering.
  ((RestorableJTextArea) _textComponent).setText((String) _renderer.renderObject(value));
  // special handling of operations while editing this data type
  ((RestorableJTextArea) _textComponent).addKeyListener(new KeyTextHandler());
  return (RestorableJTextArea) _textComponent;
}

/**
 * Validating and converting in Popup is identical to cell-related operation.
 */
public Object validateAndConvertInPopup(String value, Object originalValue, StringBuffer messageBuffer) {
  return validateAndConvert(value, originalValue, messageBuffer);
}


Clone AbstractionParameter Count: 0Parameter Bindings

/*
                 * Return a JTextArea usable in the CellPopupDialog.
                 */
/*
         * Return a JTextArea usable in the CellPopupDialog
         * and fill in the value.
         */
public JTextArea getJTextArea(Object value) {
  _textComponent = new RestorableJTextArea();
  // value is a simple string representation of the data,
  // but NOT the same one used in the Text and in-cell operations.
  // The in-cell version may replace newline chars with "\n" while this version
  // does not.  In other respects it is the same as the in-cell version because both
  // use the _renderer object to do the rendering.
  ((RestorableJTextArea) _textComponent).setText((String) _renderer.renderObject(value));
  // special handling of operations while editing this data type
  ((RestorableJTextArea) _textComponent).addKeyListener(new KeyTextHandler());
  return (RestorableJTextArea) _textComponent;
}

/**
         * Validating and converting in Popup is identical to cell-related operation.
         */
public Object validateAndConvertInPopup(String value, Object originalValue, StringBuffer messageBuffer) {
  return validateAndConvert(value, originalValue, messageBuffer);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None