CloneSet6


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
371710.980class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
137206
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBigDecimal.java
237177
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBinary.java
345256
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBlob.java
440134
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBoolean.java
537144
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeByte.java
645296
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeClob.java
737274
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.java
837188
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java
937192
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java
1037145
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeInteger.java
1137198
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeJavaObject.java
1237144
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeLong.java
1337196
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeOther.java
1437145
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeShort.java
1537253
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTime.java
1637280
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.java
1737196
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeUnknown.java
Next
Last
Clone Instance
1
Line Count
37
Source Line
206
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBigDecimal.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeBigDecimal.this._textComponent, evt, DataTypeBigDecimal.this._table);
                                                                 CellDataPopup.showDialog(DataTypeBigDecimal.this._table, DataTypeBigDecimal.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
2
Line Count
37
Source Line
177
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBinary.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeBinary.this._textComponent, evt, DataTypeBinary.this._table);
                                                                 CellDataPopup.showDialog(DataTypeBinary.this._table, DataTypeBinary.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
3
Line Count
45
Source Line
256
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBlob.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // BLOBs are different from normal data types in that what is actually
  // read from the DB is a descriptor pointing to the data rather than the
  // data itself.  During the initial load of the table, the values read from the
  // descriptor may have been limited, but the descriptor itself has been
  // completely read,  Therefore we do not need to re-read the datum
  // from the Database because we know that we have the entire
  // descriptor.  If the contents of the BLOB have been limited during
  // the initial table load, that will be discovered when we check if
  // the cell is editable and the full data will be read at that time using
  // this descriptor.
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeBlob.this._textComponent, evt, DataTypeBlob.this._table);
                                                                 CellDataPopup.showDialog(DataTypeBlob.this._table, DataTypeBlob.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
4
Line Count
40
Source Line
134
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeBoolean.java

/**
 * See if a value in a column has been limited in some way and needs to be re-read before being used for
 * editing. For read-only tables this may actually return true since we want to be able to view the entire
 * contents of the cell even if it was not completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeBoolean.this._textComponent, evt, DataTypeBoolean.this._table);
                                                                 CellDataPopup.showDialog(DataTypeBoolean.this._table, DataTypeBoolean.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
5
Line Count
37
Source Line
144
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeByte.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeByte.this._textComponent, evt, DataTypeByte.this._table);
                                                                 CellDataPopup.showDialog(DataTypeByte.this._table, DataTypeByte.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
6
Line Count
45
Source Line
296
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeClob.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // CLOBs are different from normal data types in that what is actually
  // read from the DB is a descriptor pointing to the data rather than the
  // data itself. During the initial load of the table, the values read from the
  // descriptor may have been limited, but the descriptor itself has been
  // completely read, Therefore we do not need to re-read the datum
  // from the Database because we know that we have the entire
  // descriptor. If the contents of the CLOB have been limited during
  // the initial table load, that will be discovered when we check if
  // the cell is editable and the full data will be read at that time using
  // this descriptor.
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeClob.this._textComponent, evt, DataTypeClob.this._table);
                                                                 CellDataPopup.showDialog(DataTypeClob.this._table, DataTypeClob.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
7
Line Count
37
Source Line
274
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDate.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeDate.this._textComponent, evt, DataTypeDate.this._table);
                                                                 CellDataPopup.showDialog(DataTypeDate.this._table, DataTypeDate.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
8
Line Count
37
Source Line
188
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeDouble.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeDouble.this._textComponent, evt, DataTypeDouble.this._table);
                                                                 CellDataPopup.showDialog(DataTypeDouble.this._table, DataTypeDouble.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
9
Line Count
37
Source Line
192
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeFloat.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeFloat.this._textComponent, evt, DataTypeFloat.this._table);
                                                                 CellDataPopup.showDialog(DataTypeFloat.this._table, DataTypeFloat.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
10
Line Count
37
Source Line
145
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeInteger.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeInteger.this._textComponent, evt, DataTypeInteger.this._table);
                                                                 CellDataPopup.showDialog(DataTypeInteger.this._table, DataTypeInteger.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
11
Line Count
37
Source Line
198
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeJavaObject.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeJavaObject.this._textComponent, evt, DataTypeJavaObject.this._table);
                                                                 CellDataPopup.showDialog(DataTypeJavaObject.this._table, DataTypeJavaObject.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
12
Line Count
37
Source Line
144
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeLong.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeLong.this._textComponent, evt, DataTypeLong.this._table);
                                                                 CellDataPopup.showDialog(DataTypeLong.this._table, DataTypeLong.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
13
Line Count
37
Source Line
196
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeOther.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeOther.this._textComponent, evt, DataTypeOther.this._table);
                                                                 CellDataPopup.showDialog(DataTypeOther.this._table, DataTypeOther.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
14
Line Count
37
Source Line
145
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeShort.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeShort.this._textComponent, evt, DataTypeShort.this._table);
                                                                 CellDataPopup.showDialog(DataTypeShort.this._table, DataTypeShort.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
15
Line Count
37
Source Line
253
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTime.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeTime.this._textComponent, evt, DataTypeTime.this._table);
                                                                 CellDataPopup.showDialog(DataTypeTime.this._table, DataTypeTime.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Next
Previous
Clone Instance
16
Line Count
37
Source Line
280
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeTimestamp.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeTimestamp.this._textComponent, evt, DataTypeTimestamp.this._table);
                                                                 CellDataPopup.showDialog(DataTypeTimestamp.this._table, DataTypeTimestamp.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


First
Previous
Clone Instance
17
Line Count
37
Source Line
196
Source File
E:/TSE/Projects-CloneDR/sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/cellcomponent/DataTypeUnknown.java

/**
 * See if a value in a column has been limited in some way and
 * needs to be re-read before being used for editing.
 * For read-only tables this may actually return true since we want
 * to be able to view the entire contents of the cell even if it was not
 * completely loaded during the initial table setup.
 */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  return false;
}

/**
 * Return a JTextField usable in a CellEditor.
 */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField) DataTypeUnknown.this._textComponent, evt, DataTypeUnknown.this._table);
                                                                 CellDataPopup.showDialog(DataTypeUnknown.this._table, DataTypeUnknown.this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
    * See if a value in a column has been limited in some way and
    * needs to be re-read before being used for editing.
    * For read-only tables this may actually return true since we want
    * to be able to view the entire contents of the cell even if it was not
    * completely loaded during the initial table setup.
    */
/**
         * See if a value in a column has been limited in some way and
         * needs to be re-read before being used for editing.
         * For read-only tables this may actually return true since we want
         * to be able to view the entire contents of the cell even if it was not
         * completely loaded during the initial table setup.
         */
/**
         * See if a value in a column has been limited in some way and needs to be re-read before being used for
         * editing. For read-only tables this may actually return true since we want to be able to view the entire
         * contents of the cell even if it was not completely loaded during the initial table setup.
         */
public boolean needToReRead(Object originalValue) {
  // this DataType does not limit the data read during the initial load of the table,
  // so there is no need to re-read the complete data later
  // BLOBs are different from normal data types in that what is actually
  // CLOBs are different from normal data types in that what is actually
  // read from the DB is a descriptor pointing to the data rather than the
  // data itself.  During the initial load of the table, the values read from the
  // data itself. During the initial load of the table, the values read from the
  // descriptor may have been limited, but the descriptor itself has been
  // completely read,  Therefore we do not need to re-read the datum
  // completely read, Therefore we do not need to re-read the datum
  // from the Database because we know that we have the entire
  // descriptor.  If the contents of the BLOB have been limited during
  // descriptor. If the contents of the CLOB have been limited during
  // the initial table load, that will be discovered when we check if
  // the cell is editable and the full data will be read at that time using
  // this descriptor.
  return false;
}

/**
    * Return a JTextField usable in a CellEditor.
    */
/**
         * Return a JTextField usable in a CellEditor.
         */
public JTextField getJTextField() {
  _textComponent = new RestorableJTextField();
  // special handling of operations while editing this data type
  ((RestorableJTextField) _textComponent).addKeyListener(new KeyTextHandler());
  //
  // handle mouse events for double-click creation of popup dialog.
  // This happens only in the JTextField, not the JTextArea, so we can
  // make this an inner class within this method rather than a separate
  // inner class as is done with the KeyTextHandler class.
  //
  ((RestorableJTextField) _textComponent).addMouseListener(new MouseAdapter() {
                                                             public void mousePressed(MouseEvent evt) {
                                                               if (evt.getClickCount() == 2) {
                                                                 MouseEvent tableEvt = SwingUtilities.convertMouseEvent((RestorableJTextField)  [[#variable18e12800]].this._textComponent, evt,  [[#variable18e12800]].this._table);
                                                                 CellDataPopup.showDialog( [[#variable18e12800]].this._table,  [[#variable18e12800]].this._colDef, tableEvt, true);
                                                               }
                                                             }
                                                           } ); // end of mouse listener
  return (JTextField) _textComponent;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18e12800]]
DataTypeBigDecimal 
12[[#18e12800]]
DataTypeBinary 
13[[#18e12800]]
DataTypeBlob 
14[[#18e12800]]
DataTypeBoolean 
15[[#18e12800]]
DataTypeByte 
16[[#18e12800]]
DataTypeClob 
17[[#18e12800]]
DataTypeDate 
18[[#18e12800]]
DataTypeDouble 
19[[#18e12800]]
DataTypeFloat 
110[[#18e12800]]
DataTypeInteger 
111[[#18e12800]]
DataTypeJavaObject 
112[[#18e12800]]
DataTypeLong 
113[[#18e12800]]
DataTypeOther 
114[[#18e12800]]
DataTypeShort 
115[[#18e12800]]
DataTypeTime 
116[[#18e12800]]
DataTypeTimestamp 
117[[#18e12800]]
DataTypeUnknown