Перенос.
This commit is contained in:
14
src/ProjectData/Messages/Notes/MessageNote.java
Normal file
14
src/ProjectData/Messages/Notes/MessageNote.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package ProjectData.Messages.Notes;
|
||||
import ProjectData.Messages.Message;
|
||||
public class MessageNote extends Message {
|
||||
public MessageNote(String file_in, int line_in, String value_in, int group_in) throws Exception {
|
||||
super(file_in, line_in, value_in, group_in);
|
||||
}
|
||||
public MessageNote() {
|
||||
}
|
||||
public static String filterValue = "";
|
||||
@Override
|
||||
public boolean isVisible() {
|
||||
return super.isVisible()&&value.contains(filterValue);
|
||||
}
|
||||
}
|
||||
25
src/ProjectData/Messages/Notes/NotesDBTable.java
Normal file
25
src/ProjectData/Messages/Notes/NotesDBTable.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package ProjectData.Messages.Notes;
|
||||
import Common.Current;
|
||||
import ProjectData.Messages.MessagesDBTable;
|
||||
public class NotesDBTable extends MessagesDBTable<MessageNote> {
|
||||
public NotesDBTable() {
|
||||
super(MessageNote.class);
|
||||
// setUIContent(UI.getMainWindow().notesPanel);
|
||||
}
|
||||
@Override
|
||||
public String getSingleDescription() {
|
||||
return "примечание";
|
||||
}
|
||||
@Override
|
||||
public Current CurrentName() {
|
||||
return Current.Notes;
|
||||
}
|
||||
public void changeColumnFilterValue(int columnIndex, String text) {
|
||||
if (columnIndex == 3)
|
||||
MessageNote.filterValue = text;
|
||||
}
|
||||
public Object getColumnFilterValue(int columnIndex) {
|
||||
return MessageNote.filterValue;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user