use of com.ramussoft.pb.Stream in project ramus by Vitaliy-Yakovchuk.
the class SectorRowsEditor method getStream.
public Stream getStream() {
if (!sectorNameEditor.jTextField.getText().equals("")) {
final Stream r = sectorNameEditor.findStreamByName(sectorNameEditor.jTextField.getText());
if (r != null && !r.equals(stream)) {
rows = r.getAdded();
rowsModel.refresh();
return r;
}
}
if (stream == null) {
if (!sectorNameEditor.jTextField.getText().equals("")) {
final Stream r = sectorNameEditor.findStreamByName(sectorNameEditor.jTextField.getText());
if (r != null) {
stream = r;
return stream;
}
stream = (Stream) dataPlugin.createRow(dataPlugin.getBaseStream(), true);
stream.setRows(rows);
// if(!stream.getTitle().equals(jTextField.getText()))
stream.setName(sectorNameEditor.jTextField.getText());
}
}
return stream;
}
Aggregations