mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-24 21:55:12 +00:00
stuff
This commit is contained in:
73
app/bt/NumericTextField.java
Normal file
73
app/bt/NumericTextField.java
Normal file
@@ -0,0 +1,73 @@
|
||||
package bt;
|
||||
|
||||
import com.efiAnalytics.ui.do;
|
||||
import java.awt.Dimension;
|
||||
import java.util.ArrayList;
|
||||
import javax.swing.BorderFactory;
|
||||
|
||||
public class NumericTextField extends do {
|
||||
ArrayList a = new ArrayList();
|
||||
|
||||
private int b = 60;
|
||||
|
||||
public A() {
|
||||
this("");
|
||||
}
|
||||
|
||||
public A(String paramString) {
|
||||
super(paramString);
|
||||
addFocusListener(new B(this));
|
||||
addKeyListener(new C(this));
|
||||
setBorder(BorderFactory.createLoweredBevelBorder());
|
||||
}
|
||||
|
||||
public Dimension getPreferredSize() {
|
||||
Dimension dimension = super.getPreferredSize();
|
||||
if (dimension.width < this.b)
|
||||
dimension.setSize(this.b, dimension.height);
|
||||
return dimension;
|
||||
}
|
||||
|
||||
public Dimension getMinimumSize() {
|
||||
Dimension dimension = super.getMinimumSize();
|
||||
if (dimension.width < this.b)
|
||||
dimension.setSize(this.b, dimension.height);
|
||||
return dimension;
|
||||
}
|
||||
|
||||
public void setEnabled(boolean paramBoolean) {
|
||||
super.setEnabled(paramBoolean);
|
||||
if (paramBoolean) {
|
||||
setBorder(BorderFactory.createLoweredBevelBorder());
|
||||
} else {
|
||||
setBorder(BorderFactory.createEmptyBorder());
|
||||
}
|
||||
}
|
||||
|
||||
public double a() {
|
||||
return f() ? Integer.parseInt(getText(), 16) : Double.parseDouble(getText());
|
||||
}
|
||||
|
||||
public void a(bZ parambZ) {
|
||||
this.a.add(parambZ);
|
||||
}
|
||||
|
||||
public void b(bZ parambZ) {
|
||||
this.a.remove(parambZ);
|
||||
}
|
||||
|
||||
private void b() {
|
||||
for (bZ bZ : this.a)
|
||||
bZ.b(getText());
|
||||
}
|
||||
|
||||
public void a(int paramInt) {
|
||||
this.b = paramInt;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Location: /home/rewrich/Downloads/TunerStudioMS/TunerStudioMS/!/bt/A.class
|
||||
* Java compiler version: 8 (52.0)
|
||||
* JD-Core Version: 1.1.3
|
||||
*/
|
||||
Reference in New Issue
Block a user