mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-26 22:55:02 +00:00
stuff
This commit is contained in:
58
app/bb/JTableExtensionUsingArrayList.java
Normal file
58
app/bb/JTableExtensionUsingArrayList.java
Normal file
@@ -0,0 +1,58 @@
|
||||
package bb;
|
||||
|
||||
import ae.AeInterfaceQuebec;
|
||||
import bH.ab;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.swing.JTable;
|
||||
|
||||
public class JTableExtensionUsingArrayList extends JTable {
|
||||
private ab b;
|
||||
|
||||
private ArrayList c = new ArrayList();
|
||||
|
||||
m a = new m(this);
|
||||
|
||||
public JTableExtensionUsingArrayList(ab paramab) {
|
||||
this.b = paramab;
|
||||
setModel(this.a);
|
||||
setSelectionMode(0);
|
||||
setRowSelectionAllowed(true);
|
||||
}
|
||||
|
||||
public void a(List paramList) {
|
||||
this.c.clear();
|
||||
this.c.addAll(paramList);
|
||||
a();
|
||||
}
|
||||
|
||||
public void a() {
|
||||
this.a.fireTableDataChanged();
|
||||
}
|
||||
|
||||
private String a(String paramString) {
|
||||
return (this.b != null) ? this.b.a(paramString) : paramString;
|
||||
}
|
||||
|
||||
public List b() {
|
||||
return this.c;
|
||||
}
|
||||
|
||||
public void a(int paramInt) {
|
||||
getSelectionModel().setSelectionInterval(paramInt, paramInt);
|
||||
}
|
||||
|
||||
public AeInterfaceQuebec c() {
|
||||
return (getSelectionModel().getMinSelectionIndex() >= 0) ? this.c.get(getSelectionModel().getMinSelectionIndex()) : null;
|
||||
}
|
||||
|
||||
public int d() {
|
||||
return this.c.size();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/bb/l.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
Reference in New Issue
Block a user