query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
TODO Autogenerated method stub TODO Autogenerated method stub | @Override
public void onClick(View v) {
// TODO Auto-generated method stub
itemClickListener.Callback(itemInfo);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n protected void prot() {\n }",
"public void Tyre() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"public void mo21793R() {\n }",
"public void mo3376r() {\n }",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"protected void mo6255a() {\n }",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}"
] | [
"0.6920791",
"0.68173707",
"0.6607644",
"0.6577876",
"0.65306735",
"0.6521787",
"0.6462614",
"0.64545435",
"0.6421128",
"0.6421128",
"0.6415552",
"0.6409599",
"0.6408078",
"0.6375725",
"0.6349249",
"0.6349047",
"0.63432825",
"0.6289923",
"0.62812114",
"0.62387294",
"0.62108314",
"0.62106705",
"0.62106705",
"0.6128735",
"0.6127494",
"0.61041534",
"0.6095602",
"0.6090764",
"0.60644096",
"0.6057671",
"0.60486996",
"0.60444975",
"0.60379803",
"0.6012254",
"0.60021245",
"0.59792584",
"0.5970818",
"0.59651583",
"0.59651583",
"0.59563655",
"0.5938826",
"0.5935722",
"0.5932809",
"0.59321225",
"0.5921228",
"0.59121317",
"0.59095764",
"0.59095764",
"0.59095764",
"0.59095764",
"0.59095764",
"0.59095764",
"0.59095764",
"0.59087276",
"0.59056926",
"0.59056926",
"0.59056926",
"0.59056926",
"0.59056926",
"0.5903028",
"0.59007955",
"0.58840597",
"0.5883977",
"0.5876936",
"0.58766556",
"0.5871241",
"0.58693373",
"0.58664876",
"0.5862949",
"0.5862949",
"0.5862949",
"0.58559954",
"0.58559954",
"0.58559954",
"0.58536226",
"0.5850724",
"0.58445364",
"0.5831514",
"0.58312815",
"0.5827307",
"0.5822326",
"0.5822301",
"0.58185375",
"0.5817803",
"0.5809121",
"0.57984537",
"0.57922363",
"0.57914335",
"0.57914335",
"0.5790475",
"0.5783262",
"0.5781418",
"0.5781418",
"0.5781418",
"0.5781418",
"0.5781418",
"0.5781418",
"0.5780464",
"0.57779515",
"0.5775159",
"0.5775159"
] | 0.0 | -1 |
whatever I do to calculate the circle area | @Override
public double calculateArea() {
double area = 0;
return area;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getCircleArea();",
"public double area() { return Math.PI * radius * radius; }",
"public double calculateArea()\n {\n return (Math.PI * radius) * (Math.PI * radius);\n }",
"public double calculateArea() {\r\n return PI * radius * radius;\r\n }",
"public double findArea() {\r\n return Math.PI * radius * radius; \r\n }",
"public double getArea(){\n return radius * radius * Math.PI;\n }",
"@Override\r\n public double getArea() {\r\n return radius * radius * Math.PI;\r\n }",
"public double findArea() {\n return radius * radius * Math.PI;\n }",
"public double getArea(){\n\t\treturn radius*radius*Math.PI;\n\t}",
"public double getArea(){\n return 3.14 * radius * radius;\n }",
"@Override\n\tpublic double area() {\n\t\treturn Shape.PI*radius*radius;\n\t}",
"@Override\n\tpublic double calculateArea() {\n\t\treturn Shape.PI * r*r;\n\t}",
"public double getArea() {\n return radius*radius*Math.PI;\n }",
"public double area() {\r\n\t\treturn radius * radius * PI;\r\n\t}",
"private double calculaArea(){\r\n double area;\r\n area= (double) (Math.pow((cir.getY()-cir.getX()), 2)*Math.PI);\r\n return area;\r\n \r\n }",
"@Override\n public double getArea() {\n return (int) this.radiusX * (int) this.radiusY * Math.PI;\n }",
"public double area() {\n return 2 * Math.PI * radius;\n }",
"public double getArea() {\n return radius * radius * Math.PI;\n }",
"public double getArea() {\n return radius * radius * Math.PI;\n }",
"@Override\n\tpublic double area() {\n\t\t\n\t\tdouble area = (Math.PI * Math.pow(radius, 2));\n\t\treturn area;\n\t\t\n\t}",
"public double getArea() {\n return ((radius * radius) * Math.PI);\n }",
"public double areaCircle(double r){\r\n\t\tdouble area=13.14*(r*r);\r\n\t\treturn (area);\r\n\t}",
"@Override\n\tpublic double getArea()\n\t{\n\t\tdouble area = (radius*radius)*pi;\n\t\treturn area;\n\t}",
"double calculatearea (int radius){\n\tdouble area = address.square(radius)*pi ;\t\n\treturn area ;\n\t}",
"public double getArea() {\n return Math.PI * Math.pow(radius, 2.0);\n }",
"double area() {\r\n\t\treturn Math.PI*r*r;\r\n\t\t//return (int)((Math.PI*r*r + 0.005) * 100) / 100.0;\r\n\t}",
"public double getArea()\n\t{\n\t\t//Pi R^2\n\t\treturn (Math.PI * radius * radius);\n\t}",
"public static double area_circle(double radius){\n\t\t// A = pi * r * r\n\t\tdouble area;\n\t\tarea = Math.PI * radius * radius;\n\t\treturn area;\n\t}",
"public double getArea() {\n\t\treturn this.radius * this.radius * Math.PI;\n\t}",
"public double circleArea(double radius) {\r\n double answer = Math.PI * radius * radius;\r\n // Return the answer\r\n return answer;\r\n }",
"public double getArea() {\n\t\treturn 4.0 * Math.PI * this.radius * this.radius;\n\t}",
"public double getArea()\n\t{\n\t\tdouble area = Math.PI * Math.pow(radius, 2); \n\t\treturn area;\n\t}",
"public double areaOfCircle(int r) {\r\n\t\tdouble result = 3.14 * r * r;\r\n\t\treturn result;\r\n\t}",
"double area();",
"public static double circleArea(double r) {\n return Math.PI * Math.pow(r,2);\n }",
"public double getArea(){\r\n\t\t\r\n\t\tdouble povrsina = PI * this.radius * this.radius; \r\n\t\t\r\n\t\treturn povrsina;\r\n\t}",
"public double area() {\n return Math.PI * r * r;\n }",
"public double getArea()\r\n\t{\r\n\t\tdouble area = Math.PI*(Math.pow(radius, 2));\r\n\t\treturn area;\r\n\t}",
"public static double circleArea(double r)\n {\n return Math.PI * square(r);\n }",
"public double areaOfCircle(double radious) {\r\n\t\treturn 3.14*radious*radious;\r\n\t}",
"double calculateArea();",
"public static double areaCircle(double radius) {\n return radius * radius;\n }",
"public static double circleArea(double radius) {\r\n //find what r squared is then calculate the area using that to return an answer\r\n double rSquared = Math.pow(radius, 2);\r\n double area = Math.PI * rSquared;\r\n return area;\r\n }",
"public double area() {\n\t\treturn Math.PI*r*r;\n\t}",
"public double area();",
"@Override\r\n public double getArea() {\n double area = Math.PI * (radius*radius);\r\n DecimalFormat df2 = new DecimalFormat(\"0.00\");\r\n return Double.parseDouble(df2.format(area));\r\n }",
"@Override\r\n\tpublic double area() {\n\t\treturn pi*this.radi*this.radi;\r\n\t}",
"public void claShapeArea(){\r\n\t\tshape.calArea();\r\n\t}",
"double getArea();",
"double getArea();",
"@Override\n public double getArea() {\n double s = (a + b + c) / 2;\n return Math.sqrt(s * (s - a) * (s - b) * (s - c));\n }",
"public double area()\r\n {\r\n double area;\r\n \r\n area = mRadius * mRadius * 3.14159;\r\n \r\n return area;\r\n }",
"public abstract float calArea();",
"public void calcArea(){\n double p=(side1+side2+side3)/2;\n area=p*(p-side1)*(p-side2)*(p-side3);\n area=Math.sqrt(area);\n\n\n }",
"@Override\n\tpublic void area() {\n\t\t\n\t\tSystem.out.printf(\"Area of Circle (PI * R * R) %.2f\\n\",\n\t\t\t\t(3.14 * radius * radius));\n\t}",
"private void getArea() {\n\t\tdouble a = 0;\n\t\tint n = points.length;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\ta += (points[i-1].x + points[i].x) * (points[i-1].y - points[i].y);\n\t\t}\n\t\t// process last segment if ring is not closed\n\t\tif (!points[0].equals(points[n-1])) {\n\t\t\ta += (points[n-1].x + points[0].x) * (points[n-1].y - points[0].y);\n\t\t}\n\t\tarea = Math.abs(a / 2);\n\t}",
"abstract double area();",
"abstract double area();",
"abstract double area();",
"abstract double area();",
"public abstract double getBoundingCircleRadius();",
"@Test\n public void testCircleGetArea()\n {\n Circle c = new Circle(5.678, new Point(2, 3), Color.BLACK);\n\n assertEquals(101.2839543, c.getArea(), DELTA);\n }",
"@Override\n\tpublic float surfaceArea() {\n\t\treturn (float) (4* Math.PI * Math.pow(radius, 2));\n\t}",
"public abstract float area();",
"static Double computeArea() {\n // Area is height x width\n Double area = height * width;\n return area;\n }",
"public double cicleArea(double radius)\n\t{\n\t\t\treturn (3.14*radius*radius);\n\t}",
"@Override\n\tpublic double calPerimeter() {\n\t\treturn 2*Math.PI*radius;\n\t}",
"public float area(){\r\n return (float)Math.PI*(float)Math.pow(radio, 2);\r\n }",
"public double getCircleRadius();",
"public void getArea() {\n\t\ts = (double) (a + b + c) / 2;\n\t\tarea = Math.sqrt(s * (s - a) * (s - b) * (s - c));\n\t\tSystem.out.println(\"Area: \" + area);\n\t}",
"public static double area(double radius) {\n return Math.PI * radius * radius;\n }",
"@Override\n\tpublic void area(double x,double y) {\n\t\tdouble a = 2*y*x*x;\n\t\tSystem.out.println(\"The circle's area is \"+a);\n\t}",
"public static double area (double radius) {\n\n if (radius < 0) return -1.0;\n return (radius * radius * Math.PI);\n }",
"public double getArea() { return Math.sqrt(s * (s - d12) * (s - d23) * (s - d31)); }",
"public double calculatePerimeter()\n {\n return 2 * Math.PI * radius;\n }",
"@Override\n\tpublic double getArea() {\n\t\treturn Math.pow(getSide(), 2) * this.N / 4 * (Math.tan(Math.toRadians(180 / this.N)));\n\t}",
"public double getArea();",
"public double getArea();",
"public double getArea();",
"public double area() \n {\n double area = 0;\n for (Line2D line : lines) \n {\n area += line.getP1().getX() * line.getP2().getY();\n area -= line.getP2().getX() * line.getP1().getY();\n }\n area /= 2.0;\n return Math.abs(area);\n }",
"double getArea(){\n return height*width;\n }",
"public void testArea() {\n\t CircleArc2D whole = new CircleArc2D(-10, -10, 5, 0, 4*PI);\r\n\t double expectedAreaWhile = PI*25; // \\pi * 5^2\r\n\r\n\t assertEquals(expectedAreaWhile, whole.getArea());\r\n\r\n\t // TODO: Pull in JCheck to supercharge this.\r\n\t Random r = new Random();\r\n\t double sweepExtent = r.nextDouble();\r\n\t CircleArc2D partial = new CircleArc2D(-10, -10, 5, 45, (4*PI)/sweepExtent);\r\n\t double expectedAreaParial = expectedAreaWhile / sweepExtent;\r\n\r\n\t assertEquals(expectedAreaParial, partial.getArea(), 0.0001);\r\n\t }",
"public double baseArea()\r\n {\r\n double baseArea = Math.pow(radius, 2) * Math.PI;\r\n return baseArea;\r\n }",
"@Override\n public float calculaArea() {\n double numerador = numeroDeLados * Math.pow(radio, 2)\n * Math.sin((2 * Math.PI) / numeroDeLados);\n double denominador = 2;\n return (float) ((float) numerador / denominador);\n }",
"@Override\r\n\tpublic void calcArea() {\n\t\t\r\n\t}",
"protected double getArea()\r\n {\r\n return ( side * side ) / 2;\r\n }",
"public int area() {\n \tarea = width()*height();\n }",
"long getRadius();",
"public abstract double calculateArea();",
"public abstract double calculateArea();",
"public double calculatePerimeter() {\r\n return 2 * PI * radius;\r\n }",
"double getRadius();",
"public double getCircunference(){\n return 2.0 * radius * Math.PI; \n }",
"public double getArea(int r) {\n return Math.PI*r*r;\n }",
"public double calculateArea(){\r\n\t\treturn this.getSide()*this.getSide();\r\n}",
"public double findArea(){\n\t\tdouble area= (0.5*(length * width));\n\t\treturn area;\n\t}",
"public void calArea()\n {\n //Start of the formula\n for(int i = 0; i < sides-1; i++)\n {\n area += (poly[i].getX()*poly[i+1].getY())-(poly[i].getY()*poly[i+1].getX());\n }\n\n //half the total calculation\n area = area/2;\n\n //if area is negative times by -1\n if(area <= 0)\n {\n area = area*-1;\n }\n }",
"public abstract double computeArea();",
"public double area(){\n return (base*height) / 2;\n }",
"public double getArea(){\n double p = (side1 + side2 + side3) / 2;\n return Math.sqrt(p * (p - side1) * (p - side2) * (p - side3));\n }"
] | [
"0.87141806",
"0.8320489",
"0.8319632",
"0.8257429",
"0.8256862",
"0.8193466",
"0.81231546",
"0.8099697",
"0.8009283",
"0.795904",
"0.79518545",
"0.7906243",
"0.7905155",
"0.78958744",
"0.78824365",
"0.7871345",
"0.7853257",
"0.7801931",
"0.7801931",
"0.77588105",
"0.7749721",
"0.77374274",
"0.77161855",
"0.76739365",
"0.76708776",
"0.76441604",
"0.7619705",
"0.7602695",
"0.7601875",
"0.75933963",
"0.7592735",
"0.7581401",
"0.74998707",
"0.74930763",
"0.74915355",
"0.748692",
"0.74867207",
"0.7458342",
"0.7452472",
"0.74260604",
"0.74236274",
"0.7396055",
"0.73958147",
"0.7371901",
"0.73560995",
"0.73519707",
"0.73441494",
"0.7293616",
"0.7284242",
"0.7284242",
"0.7267767",
"0.7240286",
"0.72031206",
"0.7200166",
"0.7192616",
"0.7165801",
"0.71643347",
"0.71643347",
"0.71643347",
"0.71643347",
"0.7146142",
"0.71220094",
"0.7117268",
"0.71081114",
"0.7105729",
"0.7094051",
"0.70850945",
"0.7079366",
"0.70737",
"0.7052508",
"0.7046988",
"0.7040698",
"0.7034446",
"0.70330316",
"0.70235944",
"0.6987126",
"0.69778436",
"0.69778436",
"0.69778436",
"0.69742644",
"0.69630796",
"0.69537866",
"0.6951066",
"0.69403607",
"0.6936482",
"0.6935844",
"0.6931953",
"0.69308877",
"0.6927398",
"0.6927398",
"0.6919979",
"0.69184357",
"0.69090277",
"0.68991953",
"0.68891007",
"0.6883219",
"0.6882392",
"0.6874788",
"0.68703645",
"0.68696"
] | 0.6947063 | 83 |
Create contents of the shell. | protected void createContents() {
setText("Muokkaa asiakastietoja");
setSize(800, 550);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}",
"private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent e) {\r\n\t\t\t\tgetParent().setEnabled(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tshell.setImage(SWTResourceManager.getImage(LoginInfo.class, \"/javax/swing/plaf/metal/icons/ocean/warning.png\"));\r\n\r\n\t\tsetMidden(397, 197);\r\n\r\n\t\tshell.setText(this.windows_name);\r\n\t\tshell.setLayout(null);\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 11, SWT.NORMAL));\r\n\t\tlabel.setBounds(79, 45, 226, 30);\r\n\t\tlabel.setAlignment(SWT.CENTER);\r\n\t\tlabel.setText(this.label_show);\r\n\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(150, 107, 86, 30);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\r\n\t}",
"private void createContents() {\r\n\t\tshell = new Shell(getParent(), getStyle());\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(getText());\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite = new Composite(shell, SWT.NONE);\r\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tComposite composite_1 = new Composite(composite, SWT.NONE);\r\n\t\tRowLayout rl_composite_1 = new RowLayout(SWT.VERTICAL);\r\n\t\trl_composite_1.center = true;\r\n\t\trl_composite_1.fill = true;\r\n\t\tcomposite_1.setLayout(rl_composite_1);\r\n\t\t\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\t\r\n\t\tButton btnNewButton = new Button(composite_2, SWT.NONE);\r\n\t\tbtnNewButton.setText(\"New Button\");\r\n\t\t\r\n\t\tButton btnRadioButton = new Button(composite_2, SWT.RADIO);\r\n\t\tbtnRadioButton.setText(\"Radio Button\");\r\n\t\t\r\n\t\tButton btnCheckButton = new Button(composite_2, SWT.CHECK);\r\n\t\tbtnCheckButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCheckButton.setText(\"Check Button\");\r\n\r\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(764, 551);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.NONE);\n\t\tmntmFile.setText(\"File...\");\n\t\t\n\t\tMenuItem mntmEdit = new MenuItem(menu, SWT.NONE);\n\t\tmntmEdit.setText(\"Edit\");\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite.setLayout(null);\n\t\t\n\t\tGroup grpDirectorio = new Group(composite, SWT.NONE);\n\t\tgrpDirectorio.setText(\"Directorio\");\n\t\tgrpDirectorio.setBounds(10, 86, 261, 387);\n\t\t\n\t\tGroup grpListadoDeAccesos = new Group(composite, SWT.NONE);\n\t\tgrpListadoDeAccesos.setText(\"Listado de Accesos\");\n\t\tgrpListadoDeAccesos.setBounds(277, 86, 477, 387);\n\t\t\n\t\tLabel label = new Label(composite, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 479, 744, 2);\n\t\t\n\t\tButton btnNewButton = new Button(composite, SWT.NONE);\n\t\tbtnNewButton.setBounds(638, 491, 94, 28);\n\t\tbtnNewButton.setText(\"New Button\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(composite, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(538, 491, 94, 28);\n\t\tbtnNewButton_1.setText(\"New Button\");\n\t\t\n\t\tToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar.setBounds(10, 10, 744, 20);\n\t\t\n\t\tToolItem tltmAccion = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion.setText(\"Accion 1\");\n\t\t\n\t\tToolItem tltmAccion_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmAccion_1.setText(\"Accion 2\");\n\t\t\n\t\tToolItem tltmRadio = new ToolItem(toolBar, SWT.RADIO);\n\t\ttltmRadio.setText(\"Radio\");\n\t\t\n\t\tToolItem tltmItemDrop = new ToolItem(toolBar, SWT.DROP_DOWN);\n\t\ttltmItemDrop.setText(\"Item drop\");\n\t\t\n\t\tToolItem tltmCheckItem = new ToolItem(toolBar, SWT.CHECK);\n\t\ttltmCheckItem.setText(\"Check item\");\n\t\t\n\t\tCoolBar coolBar = new CoolBar(composite, SWT.FLAT);\n\t\tcoolBar.setBounds(10, 39, 744, 30);\n\t\t\n\t\tCoolItem coolItem_1 = new CoolItem(coolBar, SWT.NONE);\n\t\tcoolItem_1.setText(\"Accion 1\");\n\t\t\n\t\tCoolItem coolItem = new CoolItem(coolBar, SWT.NONE);\n\n\t}",
"@Override\n\tprotected void createShell() {\n\t\tString shellText = \"Add a New Pharmacy\";\n\t\tRectangle bounds = new Rectangle(25, 0, 800, 680);\n\t\tbuildShell(shellText, bounds);\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(41, 226, 75, 25);\n\t\tbtnNewButton.setText(\"Limpiar\");\n\t\t\n\t\tButton btnGuardar = new Button(shell, SWT.NONE);\n\t\tbtnGuardar.setBounds(257, 226, 75, 25);\n\t\tbtnGuardar.setText(\"Guardar\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(25, 181, 130, 21);\n\t\t\n\t\ttext_1 = new Text(shell, SWT.BORDER);\n\t\ttext_1.setBounds(230, 181, 130, 21);\n\t\t\n\t\ttext_2 = new Text(shell, SWT.BORDER);\n\t\ttext_2.setBounds(25, 134, 130, 21);\n\t\t\n\t\ttext_3 = new Text(shell, SWT.BORDER);\n\t\ttext_3.setBounds(25, 86, 130, 21);\n\t\t\n\t\ttext_4 = new Text(shell, SWT.BORDER);\n\t\ttext_4.setBounds(25, 42, 130, 21);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(227, 130, 75, 25);\n\t\tbtnNewButton_1.setText(\"Buscar\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setBounds(25, 21, 55, 15);\n\t\tlabel.setText(\"#\");\n\t\t\n\t\tLabel lblFechaYHora = new Label(shell, SWT.NONE);\n\t\tlblFechaYHora.setBounds(25, 69, 75, 15);\n\t\tlblFechaYHora.setText(\"Fecha y Hora\");\n\t\t\n\t\tLabel lblPlaca = new Label(shell, SWT.NONE);\n\t\tlblPlaca.setBounds(25, 113, 55, 15);\n\t\tlblPlaca.setText(\"Placa\");\n\t\t\n\t\tLabel lblMarca = new Label(shell, SWT.NONE);\n\t\tlblMarca.setBounds(25, 161, 55, 15);\n\t\tlblMarca.setText(\"Marca\");\n\t\t\n\t\tLabel lblColor = new Label(shell, SWT.NONE);\n\t\tlblColor.setBounds(230, 161, 55, 15);\n\t\tlblColor.setText(\"Color\");\n\n\t}",
"protected void createContents() {\r\n\t\tsetText(Messages.getString(\"HMS.PatientManagementShell.title\"));\r\n\t\tsetSize(900, 700);\r\n\r\n\t}",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}",
"private void createContents() {\r\n\t\tshlOProgramie = new Shell(getParent().getDisplay(), SWT.DIALOG_TRIM\r\n\t\t\t\t| SWT.RESIZE);\r\n\t\tshlOProgramie.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tshlOProgramie.setText(\"O programie\");\r\n\t\tshlOProgramie.setSize(386, 221);\r\n\t\tint x = 386;\r\n\t\tint y = 221;\r\n\t\t// Get the resolution\r\n\t\tRectangle pDisplayBounds = shlOProgramie.getDisplay().getBounds();\r\n\r\n\t\t// This formulae calculate the shell's Left ant Top\r\n\t\tint nLeft = (pDisplayBounds.width - x) / 2;\r\n\t\tint nTop = (pDisplayBounds.height - y) / 2;\r\n\r\n\t\t// Set shell bounds,\r\n\t\tshlOProgramie.setBounds(nLeft, nTop, x, y);\r\n\t\tsetText(\"O programie\");\r\n\r\n\t\tbtnZamknij = new Button(shlOProgramie, SWT.PUSH | SWT.BORDER_SOLID);\r\n\t\tbtnZamknij.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlOProgramie.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnZamknij.setBounds(298, 164, 68, 23);\r\n\t\tbtnZamknij.setText(\"Zamknij\");\r\n\r\n\t\tText link = new Text(shlOProgramie, SWT.READ_ONLY);\r\n\t\tlink.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlink.setBounds(121, 127, 178, 13);\r\n\t\tlink.setText(\"Kontakt: [email protected]\");\r\n\r\n\t\tCLabel lblNewLabel = new CLabel(shlOProgramie, SWT.BORDER\r\n\t\t\t\t| SWT.SHADOW_IN | SWT.SHADOW_OUT | SWT.SHADOW_NONE);\r\n\t\tlblNewLabel.setBackground(SWTResourceManager.getColor(230, 230, 250));\r\n\t\tlblNewLabel.setBounds(118, 20, 248, 138);\r\n\t\tlblNewLabel\r\n\t\t\t\t.setText(\" Kalkulator walut ver 0.0.2 \\r\\n -------------------------------\\r\\n Program umo\\u017Cliwiaj\\u0105cy pobieranie\\r\\n aktualnych kurs\\u00F3w walut ze strony nbp.pl\\r\\n\\r\\n Copyright by Wojciech Trocki.\\r\\n\");\r\n\r\n\t\tLabel lblNewLabel_1 = new Label(shlOProgramie, SWT.NONE);\r\n\t\tlblNewLabel_1.setBackground(SWTResourceManager.getColor(255, 255, 255));\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(\"images/about.gif\"));\r\n\t\tlblNewLabel_1.setBounds(10, 20, 100, 138);\r\n\t}",
"private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setLayout(new GridLayout(1, false));\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t{\r\n\t\t\tfinal Button btnShowTheFake = new Button(shell, SWT.TOGGLE);\r\n\t\t\tbtnShowTheFake.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\t\tif (btnShowTheFake.getSelection()) {\r\n\t\t\t\t\t\tRectangle bounds = btnShowTheFake.getBounds();\r\n\t\t\t\t\t\tPoint pos = shell.toDisplay(bounds.x + 5, bounds.y + bounds.height);\r\n\t\t\t\t\t\ttooltip = showTooltip(shell, pos.x, pos.y);\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Hide it\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (tooltip != null && !tooltip.isDisposed())\r\n\t\t\t\t\t\t\ttooltip.dispose();\r\n\t\t\t\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbtnShowTheFake.setText(\"Show The Fake Tooltip\");\r\n\t\t}\r\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellActivated(ShellEvent e) {\n\t\t\t\tloadSettings();\n\t\t\t}\n\t\t});\n\t\tshell.setSize(450, 160);\n\t\tshell.setText(\"Settings\");\n\t\t\n\t\ttextUsername = new Text(shell, SWT.BORDER);\n\t\ttextUsername.setBounds(118, 10, 306, 21);\n\t\t\n\t\ttextPassword = new Text(shell, SWT.BORDER | SWT.PASSWORD);\n\t\ttextPassword.setBounds(118, 38, 306, 21);\n\t\t\n\t\tCLabel lblLogin = new CLabel(shell, SWT.NONE);\n\t\tlblLogin.setBounds(10, 10, 61, 21);\n\t\tlblLogin.setText(\"Login\");\n\t\t\n\t\tCLabel lblPassword = new CLabel(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(10, 38, 61, 21);\n\t\t\n\t\tButton btnSave = new Button(shell, SWT.NONE);\n\t\tbtnSave.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tApplicationSettings as = new ApplicationSettings();\n\t\t as.savePassword(textPassword.getText());\n\t\t as.saveUsername(textUsername.getText());\n\t\t \n\t\t connectionOK = WSHandler.setAutoFillDailyReports(btnAutomaticDailyReport.getSelection());\n\t\t \n\t\t shell.close();\n\t\t if (!(parentDialog == null)) {\n\t\t \tparentDialog.reloadTable();\n\t\t }\n\t\t\t}\n\t\t});\n\t\tbtnSave.setBounds(10, 87, 414, 25);\n\t\tbtnSave.setText(\"Save\");\n\n\t}",
"protected void createContents(String value) {\n\t\tshlResult = new Shell(SWT.CLOSE | SWT.MIN | SWT.TITLE);\n\t\tshlResult.setSize(762, 532);\n\t\tshlResult.setText(title);\n\t\t\n\t\tComposite composite = new Composite(shlResult, SWT.NONE);\n\t\tcomposite.setBounds(0, 0, 746, 494);\n\t\t\n\t\ttext = new StyledText(composite, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext.setBounds(0, 0, 750, 500);\n\t\ttext.setText(value);\n\t\ttext.setKeyBinding('A'| SWT.CONTROL, ST.SELECT_ALL);\n\t\ttext.setKeyBinding('C' | SWT.CONTROL, ST.COPY);\n\t\ttext.setKeyBinding('V' | SWT.CONTROL, ST.PASTE);\n\t\ttext.setKeyBinding('X' | SWT.CONTROL, ST.CUT);\n\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"protected void createContents() {\n\t\tmainShell = new Shell();\n\t\tmainShell.addDisposeListener(new DisposeListener() {\n\t\t\tpublic void widgetDisposed(DisposeEvent arg0) {\n\t\t\t\tLastValueManager manager = LastValueManager.getInstance();\n\t\t\t\tmanager.setLastAppEngineDirectory(mGAELocation.getText());\n\t\t\t\tmanager.setLastProjectDirectory(mAppRootDir.getText());\n\t\t\t\tmanager.setLastPythonBinDirectory(txtPythonLocation.getText());\n\t\t\t\tmanager.save();\n\t\t\t}\n\t\t});\n\t\tmainShell.setSize(460, 397);\n\t\tmainShell.setText(\"Google App Engine Launcher\");\n\t\tmainShell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite mainComposite = new Composite(mainShell, SWT.NONE);\n\t\tmainComposite.setLayout(new GridLayout(1, false));\n\t\t\n\t\tComposite northComposite = new Composite(mainComposite, SWT.NONE);\n\t\tnorthComposite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 1, 1));\n\t\tGridLayout gl_northComposite = new GridLayout(1, false);\n\t\tgl_northComposite.verticalSpacing = 1;\n\t\tnorthComposite.setLayout(gl_northComposite);\n\t\t\n\t\tComposite pythonComposite = new Composite(northComposite, SWT.NONE);\n\t\tpythonComposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblPython = new Label(pythonComposite, SWT.NONE);\n\t\tlblPython.setText(\"Python : \");\n\t\t\n\t\ttxtPythonLocation = new Text(pythonComposite, SWT.BORDER);\n\t\ttxtPythonLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\ttxtPythonLocation.setText(\"/usr/bin/python2.7\");\n\t\t\n\t\tLabel lblGaeLocation = new Label(pythonComposite, SWT.NONE);\n\t\tlblGaeLocation.setText(\"GAE Location :\");\n\t\t\n\t\tmGAELocation = new Text(pythonComposite, SWT.BORDER);\n\t\tmGAELocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tmGAELocation.setText(\"/home/zelon/Programs/google_appengine\");\n\t\t\n\t\tLabel lblProject = new Label(pythonComposite, SWT.NONE);\n\t\tlblProject.setText(\"Project : \");\n\t\t\n\t\tmAppRootDir = new Text(pythonComposite, SWT.BORDER);\n\t\tmAppRootDir.setSize(322, 27);\n\t\tmAppRootDir.setText(\"/home/zelon/workspaceIndigo/box.wimy.com\");\n\t\t\n\t\tComposite ActionComposite = new Composite(northComposite, SWT.NONE);\n\t\tActionComposite.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tActionComposite.setLayout(new GridLayout(2, true));\n\t\t\n\t\tButton btnTestServer = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnTestServer = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnTestServer.widthHint = 100;\n\t\tbtnTestServer.setLayoutData(gd_btnTestServer);\n\t\tbtnTestServer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.startTestServer(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText(), 8080);\n\t\t\t}\n\t\t});\n\t\tbtnTestServer.setText(\"Test Server\");\n\t\t\n\t\tButton btnDeploy = new Button(ActionComposite, SWT.NONE);\n\t\tGridData gd_btnDeploy = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDeploy.widthHint = 100;\n\t\tbtnDeploy.setLayoutData(gd_btnDeploy);\n\t\tbtnDeploy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmExecuter.deploy(getPythonLocation(), mGAELocation.getText(), mAppRootDir.getText());\n\t\t\t}\n\t\t});\n\t\tbtnDeploy.setText(\"Deploy\");\n\t\tActionComposite.setTabList(new Control[]{btnTestServer, btnDeploy});\n\t\tnorthComposite.setTabList(new Control[]{ActionComposite, pythonComposite});\n\t\t\n\t\tComposite centerComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridData gd_centerComposite = new GridData(SWT.FILL, SWT.FILL, false, false, 1, 1);\n\t\tgd_centerComposite.heightHint = 200;\n\t\tcenterComposite.setLayoutData(gd_centerComposite);\n\t\tcenterComposite.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tlog = new StyledText(centerComposite, SWT.BORDER | SWT.V_SCROLL);\n\t\tlog.setAlignment(SWT.CENTER);\n\t}",
"protected void createContents() {\n\n\t}",
"private final void createContents() {\n\t\tthis.shell = new Shell(this.getParent(), getStyle());\n\t\tthis.shell.setSize(450, 140);\n\t\tthis.shell.addTraverseListener(new TraverseListener() {\n\t\t\t@Override\n\t\t\tpublic void keyTraversed(TraverseEvent e) {\n\t\t\t\tif(e.character == SWT.ESC) {\n\t\t\t\t\te.doit = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tthis.shell.setText(\"Rename file - \" + this.getParent().getText());\n\t\tthis.shell.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\te.doit = false;\n\t\t\t\tRenameFileDialog.this.result = Response.CLOSE;\n\t\t\t}\n\t\t});\n\t\tFunctions.centerShell2OnShell1(getParent(), this.shell);\n\t\tthis.shell.setImages(Main.getShellImages());\n\t\t\n\t\tLabel lblPleaseChooseA = new Label(this.shell, SWT.BORDER | SWT.WRAP);\n\t\tlblPleaseChooseA.setBounds(10, 10, 424, 40);\n\t\tlblPleaseChooseA.setText(\"Please choose a new name for the file \\\"\" + this.originalName + \"\\\":\");\n\t\t\n\t\tButton btnDone = new Button(this.shell, SWT.NONE);\n\t\tbtnDone.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.text.getText();\n\t\t\t\tRenameFileDialog.this.result = Response.DONE;\n\t\t\t}\n\t\t});\n\t\tbtnDone.setBounds(10, 81, 209, 23);\n\t\tbtnDone.setText(\"Done\");\n\t\t\n\t\tButton btnCancel = new Button(this.shell, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRenameFileDialog.this.renameTo = RenameFileDialog.this.originalName;\n\t\t\t\tRenameFileDialog.this.result = Response.CANCEL;\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(225, 81, 209, 23);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tthis.text = new Text(this.shell, SWT.BORDER);\n\t\tthis.text.setBounds(10, 56, 424, 19);\n\t\tthis.text.setText(this.originalName);\n\t\tthis.text.selectAll();\n\t}",
"protected void createContents(Display display) {\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setSize(539, 648);\n\t\tshell.setText(\"SiSi - Security-aware Event Log Generator\");\n\t\tshell.setImage(new Image(shell.getDisplay(), \"imgs/shell.png\"));\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmOpenFile = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenFile.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tFileDialog dialog = new FileDialog(shell, SWT.OPEN);\n\n\t\t\t\tString[] filterNames = new String[] { \"PNML\", \"All Files (*)\" };\n\t\t\t\tString[] filterExtensions = new String[] { \"*.pnml\", \"*\" };\n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user.dir\"));\n\n\t\t\t\tdialog.setFilterNames(filterNames);\n\t\t\t\tdialog.setFilterExtensions(filterExtensions);\n\n\t\t\t\tString path = dialog.open();\n\t\t\t\tif( path != null ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(path);\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load File.\", exception);\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmOpenFile.setImage(new Image(shell.getDisplay(), \"imgs/open.png\"));\n\t\tmntmOpenFile.setText(\"Open File...\");\n\t\t\n\t\tMenuItem mntmOpenExample = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmOpenExample.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgenerateConfigCompositeFor(\"examples/kbv.pnml\");\n\t\t\t\t\t} catch (ParserConfigurationException | SAXException | IOException exception) {\n\t\t\t\t\t\terrorMessageBox(\"Could not load Example.\", exception);\n\t\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmOpenExample.setImage(new Image(shell.getDisplay(), \"imgs/example.png\"));\n\t\tmntmOpenExample.setText(\"Open Example\");\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.SEPARATOR);\n\t\tmntmNewItem.setText(\"Separator1\");\n\t\t\n\t\tMenuItem mntmExit = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmExit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.getDisplay().dispose();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tmntmExit.setImage(new Image(shell.getDisplay(), \"imgs/exit.png\"));\n\t\tmntmExit.setText(\"Exit\");\n\t\t\n\t\tmainComposite = new ScrolledComposite(shell, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tmainComposite.setExpandHorizontal(true);\n\t\tmainComposite.setExpandVertical(true);\n\t\t\n\t\tactiveComposite = new Composite(mainComposite, SWT.NONE);\n\t\tGridLayout gl_activeComposite = new GridLayout(1, true);\n\t\tgl_activeComposite.marginWidth = 10;\n\t\tgl_activeComposite.marginHeight = 10;\n\t\tactiveComposite.setLayout(gl_activeComposite);\n\t\t\n\t\tLabel lblWelcomeToSisi = new Label(activeComposite, SWT.NONE);\n\t\tlblWelcomeToSisi.setFont(SWTResourceManager.getFont(\"Segoe UI\", 30, SWT.BOLD));\n\t\tGridData gd_lblWelcomeToSisi = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblWelcomeToSisi.verticalIndent = 50;\n\t\tlblWelcomeToSisi.setLayoutData(gd_lblWelcomeToSisi);\n\t\tlblWelcomeToSisi.setText(\"Welcome to SiSi!\");\n\t\t\n\t\tLabel lblSecurityawareEvent = new Label(activeComposite, SWT.NONE);\n\t\tlblSecurityawareEvent.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tlblSecurityawareEvent.setText(\"- A security-aware Event Log Generator -\");\n\t\t\n\t\tLabel lblToGetStarted = new Label(activeComposite, SWT.NONE);\n\t\tlblToGetStarted.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.ITALIC));\n\t\tGridData gd_lblToGetStarted = new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1);\n\t\tgd_lblToGetStarted.verticalIndent = 150;\n\t\tlblToGetStarted.setLayoutData(gd_lblToGetStarted);\n\t\tlblToGetStarted.setText(\"To get started load a file or an example\");\n\t\t\n\t\tmainComposite.setContent(activeComposite);\n\t\tmainComposite.setMinSize(activeComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\t}",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 395);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tnachname = new Text(shell, SWT.BORDER);\r\n\t\tnachname.setBounds(32, 27, 76, 21);\r\n\t\t\r\n\t\tvorname = new Text(shell, SWT.BORDER);\r\n\t\tvorname.setBounds(32, 66, 76, 21);\r\n\t\t\r\n\t\tLabel lblNachname = new Label(shell, SWT.NONE);\r\n\t\tlblNachname.setBounds(135, 33, 55, 15);\r\n\t\tlblNachname.setText(\"Nachname\");\r\n\t\t\r\n\t\tLabel lblVorname = new Label(shell, SWT.NONE);\r\n\t\tlblVorname.setBounds(135, 66, 55, 15);\r\n\t\tlblVorname.setText(\"Vorname\");\r\n\t\t\r\n\t\tButton btnFgeListeHinzu = new Button(shell, SWT.NONE);\r\n\t\tbtnFgeListeHinzu.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//\r\n\t\t\t\tPerson p = new Person();\r\n\t\t\t\tp.setNachname(getNachname().getText());\r\n\t\t\t\tp.setVorname(getVorname().getText());\r\n\t\t\t\t//\r\n\t\t\t\tPerson.getPersonenListe().add(p);\r\n\t\t\t\tgetGuiListe().add(p.toString());\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFgeListeHinzu.setBounds(43, 127, 147, 25);\r\n\t\tbtnFgeListeHinzu.setText(\"f\\u00FCge liste hinzu\");\r\n\t\t\r\n\t\tButton btnWriteJson = new Button(shell, SWT.NONE);\r\n\t\tbtnWriteJson.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPerson.write2JSON();\r\n\t\t\t\t\t//\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_INFORMATION | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"JSON geschrieben\");\r\n\t\t\t\t\tmb.setMessage(Person.getPersonenListe().size() + \" Einträge erfolgreich geschrieben\");\r\n\t\t\t\t\tmb.open();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tMessageBox mb = new MessageBox(shell, SWT.ICON_ERROR | SWT.OK);\r\n\t\t\t\t\tmb.setText(\"Fehler bei JSON\");\r\n\t\t\t\t\tmb.setMessage(e1.getMessage());\r\n\t\t\t\t\tmb.open();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnWriteJson.setBounds(54, 171, 75, 25);\r\n\t\tbtnWriteJson.setText(\"write 2 json\");\r\n\t\t\r\n\t\tguiListe = new List(shell, SWT.BORDER);\r\n\t\tguiListe.setBounds(43, 221, 261, 125);\r\n\r\n\t}",
"private void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tshell.setSize(500, 400);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FormLayout());\r\n\t\t\r\n\t\tSERVER_COUNTRY locale = SERVER_COUNTRY.DE;\r\n\t\tString username = JOptionPane.showInputDialog(\"Username\");\r\n\t\tString password = JOptionPane.showInputDialog(\"Password\");\r\n\t\tBot bot = new Bot(username, password, locale);\r\n\t\t\r\n\t\tGroup grpActions = new Group(shell, SWT.NONE);\r\n\t\tgrpActions.setText(\"Actions\");\r\n\t\tgrpActions.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\r\n\t\tgrpActions.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tgrpActions.setLayout(new GridLayout(5, false));\r\n\t\tFormData fd_grpActions = new FormData();\r\n\t\tfd_grpActions.left = new FormAttachment(0, 203);\r\n\t\tfd_grpActions.right = new FormAttachment(100, -10);\r\n\t\tfd_grpActions.top = new FormAttachment(0, 10);\r\n\t\tfd_grpActions.bottom = new FormAttachment(0, 152);\r\n\t\tgrpActions.setLayoutData(fd_grpActions);\r\n\t\t\r\n\t\tConsole = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tFormData fd_Console = new FormData();\r\n\t\tfd_Console.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tfd_Console.right = new FormAttachment(100, -10);\r\n\t\tConsole.setLayoutData(fd_Console);\r\n\r\n\t\t\r\n\t\tButton Feed = new Button(grpActions, SWT.CHECK);\r\n\t\tFeed.setSelection(true);\r\n\t\tFeed.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tfeed = !feed;\r\n\t\t\t\tConsole.append(\"\\nTest\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tFeed.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tFeed.setText(\"Feed\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Drink = new Button(grpActions, SWT.CHECK);\r\n\t\tDrink.setSelection(true);\r\n\t\tDrink.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tdrink = !drink;\r\n\t\t\t}\r\n\t\t});\r\n\t\tDrink.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tDrink.setText(\"Drink\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Stroke = new Button(grpActions, SWT.CHECK);\r\n\t\tStroke.setSelection(true);\r\n\t\tStroke.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tstroke = !stroke;\r\n\t\t\t}\r\n\t\t});\r\n\t\tStroke.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tStroke.setText(\"Stroke\");\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_0 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_0.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tlblNewLabel_0.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/feed.png\"));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_1 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/drink.png\"));\r\n\t\tlblNewLabel_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\t\r\n\t\tGroup grpBreeds = new Group(shell, SWT.NONE);\r\n\t\tgrpBreeds.setText(\"Breeds\");\r\n\t\tgrpBreeds.setLayout(new GridLayout(1, false));\r\n\t\t\r\n\t\tFormData fd_grpBreeds = new FormData();\r\n\t\tfd_grpBreeds.top = new FormAttachment(0, 10);\r\n\t\tfd_grpBreeds.bottom = new FormAttachment(100, -10);\r\n\t\tfd_grpBreeds.right = new FormAttachment(0, 180);\r\n\t\tfd_grpBreeds.left = new FormAttachment(0, 10);\r\n\t\tgrpBreeds.setLayoutData(fd_grpBreeds);\r\n\t\t\r\n\t\tButton Defaults = new Button(grpBreeds, SWT.RADIO);\r\n\t\tDefaults.setText(\"Defaults\");\r\n\t\t//END STATIC\r\n\t\t\r\n\t\tbot.account.api.requests.setTimeout(200);\r\n\t\tbot.logger.printlevel = 1;\t\r\n\t\t\r\n\t\tReturn<HashMap<Integer,Breed>> b = bot.getBreeds();\t\t\r\n\t\tif(!b.sucess) {\r\n\t\t\tConsole.append(\"\\nERROR!\");\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\tIterator<Breed> iterator = b.data.values().iterator();\r\n\t\tHashMap<String, java.awt.Button> buttons = new HashMap<String, Button>();\r\n\t\t\r\n\t\twhile(iterator.hasNext()) {\r\n\t\t\tBreed breed = iterator.next();\r\n\t\t\t\r\n\t\t\tString name = breed.name;\r\n\t\t\t\r\n\t\t\tButton btn = new Button(grpBreeds, SWT.RADIO);\r\n\t\t\tbtn.setText(name);\r\n\t\t\t\r\n\t\t\tbuttons.put(name, btn);\r\n\t\t\t\r\n\t\t\t//\tTODO - Für jeden Breed wird ein Button erstellt:\r\n\t\t\t//\tButton [HIER DER BREED NAME] = new Button(grpBreeds, SWT.RADIO); <-- Dass geht nicht so wirklich so\r\n\t\t\t//\tDefaults.setText(\"[BREED NAME]\");\r\n\t\t}\r\n\t\t\r\n\t\t// um ein button mit name <name> zu bekommen: Button whatever = buttons.get(<name>);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tButton btnStartBot = new Button(shell, SWT.NONE);\r\n\t\tfd_Console.top = new FormAttachment(0, 221);\r\n\t\tbtnStartBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.setText(\"Starting bot... \");\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t/*TODO\r\n\t\t\t\tBreed[] breeds = new Breed[b.data.size()];\r\n\t\t\t\t\r\n\t\t\t\tIterator<Breed> br = b.data.values().iterator();\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 0; i < b.data.size(); i++) {\r\n\t\t\t\t\tbreeds[i] = br.next();\r\n\t\t\t\t};\r\n\t\t\t\tBreed s = (Breed) JOptionPane.showInputDialog(null, \"Choose breed\", \"breed selector\", JOptionPane.PLAIN_MESSAGE, null, breeds, \"default\");\r\n\t\t\t\tEND TODO*/\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Breed breed, boolean drink, boolean stroke, boolean groom, boolean carrot, boolean mash, boolean suckle, boolean feed, boolean sleep, boolean centreMission, long timeout, Bot bot, Runnable onEnd\r\n\t\t\t\tReturn<BasicBreedTasksAsync> ret = bot.basicBreedTasks(0, drink, stroke, groom, carrot, mash, suckle, feed, sleep, mission, 500, new Runnable() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"FINISHED!\", \"Bot\", JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tbot.logout();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t\tif(!ret.sucess) {\r\n\t\t\t\t\tConsole.append(\"ERROR\");\r\n\t\t\t\t\tSystem.exit(-1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tret.data.start();\r\n\t\t\t\t\r\n\t\t\t\t//TODO\r\n\t\t\t\twhile(ret.data.running()) {\r\n\t\t\t\t\tSleeper.sleep(5000);\r\n\t\t\t\t\tif(ret.data.getProgress() == 1)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tConsole.append(\"progress: \" + (ret.data.getProgress() * 100) + \"%\");\r\n\t\t\t\t\tConsole.append(\"ETA: \" + (ret.data.getEta() / 1000) + \"sec.\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStartBot = new FormData();\r\n\t\tfd_btnStartBot.left = new FormAttachment(grpActions, 0, SWT.LEFT);\r\n\t\tbtnStartBot.setLayoutData(fd_btnStartBot);\r\n\t\tbtnStartBot.setText(\"Start Bot\");\r\n\t\t\r\n\t\tButton btnStopBot = new Button(shell, SWT.NONE);\r\n\t\tfd_btnStartBot.top = new FormAttachment(btnStopBot, 0, SWT.TOP);\r\n\t\tbtnStopBot.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tConsole.append(\"Stopping bot...\");\r\n\t\t\t\tbot.logout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tFormData fd_btnStopBot = new FormData();\r\n\t\tfd_btnStopBot.right = new FormAttachment(grpActions, 0, SWT.RIGHT);\r\n\t\tbtnStopBot.setLayoutData(fd_btnStopBot);\r\n\t\tbtnStopBot.setText(\"Stop Bot\");\r\n\t\t\t\r\n\t\t\r\n\t\tProgressBar progressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tfd_Console.bottom = new FormAttachment(progressBar, -6);\r\n\t\tfd_btnStopBot.bottom = new FormAttachment(progressBar, -119);\r\n\t\t\r\n\t\tFormData fd_progressBar = new FormData();\r\n\t\tfd_progressBar.left = new FormAttachment(grpBreeds, 23);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//STATIC\r\n\t\tLabel lblNewLabel_2 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_2.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/stroke.png\"));\r\n\t\tlblNewLabel_2.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton Groom = new Button(grpActions, SWT.CHECK);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.setSelection(true);\r\n\t\tGroom.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tgroom = !groom;\r\n\t\t\t}\r\n\t\t});\r\n\t\tGroom.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tGroom.setText(\"Groom\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Treat = new Button(grpActions, SWT.CHECK);\r\n\t\tTreat.setSelection(true);\r\n\t\tTreat.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcarrot = !carrot;\r\n\t\t\t}\r\n\t\t});\r\n\t\tTreat.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tTreat.setText(\"Treat\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton Mash = new Button(grpActions, SWT.CHECK);\r\n\t\tMash.setSelection(true);\r\n\t\tMash.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmash = !mash;\r\n\t\t\t}\r\n\t\t});\r\n\t\tMash.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tMash.setText(\"Mash\");\r\n\t\t\r\n\t\tLabel lblNewLabel_3 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_3.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/groom.png\"));\r\n\t\tlblNewLabel_3.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_4 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_4.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/carotte.png\"));\r\n\t\tlblNewLabel_4.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tLabel lblNewLabel_5 = new Label(grpActions, SWT.NONE);\r\n\t\tlblNewLabel_5.setImage(SWTResourceManager.getImage(MainWindow.class, \"/PNGs/mash.png\"));\r\n\t\tlblNewLabel_5.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\t\r\n\t\tButton btnSleep = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnSleep.setSelection(true);\r\n\t\tbtnSleep.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tsleep = !sleep;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSleep.setText(\"Sleep\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\t\r\n\t\tButton btnMission = new Button(grpActions, SWT.CHECK);\r\n\t\tbtnMission.setSelection(true);\r\n\t\tbtnMission.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tmission = !mission;\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnMission.setText(\"Mission\");\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\t\tnew Label(grpActions, SWT.NONE);\r\n\r\n\t}",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(44, 47, 90, 24);\r\n\t\tlabel.setText(\"充值金额:\");\r\n\t\t\r\n\t\ttext_balance = new Text(shell, SWT.BORDER);\r\n\t\ttext_balance.setBounds(156, 47, 198, 30);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\t//确认充值\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tString balance=text_balance.getText().trim();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tint i=dao.add(balance);\r\n\t\t\t\t\tif(i>0){\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"成功提示\", \"充值成功\");\r\n\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tswtUtil.showMessage(shell, \"错误提示\", \"所充值不能为零\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(140, 131, 114, 34);\r\n\t\tbutton.setText(\"确认充值\");\r\n\r\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(new Point(500, 360));\n\t\tshell.setMinimumSize(new Point(500, 360));\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel label = new Label(shell, SWT.NONE);\n\t\tlabel.setText(\"欢迎 \"+user.getName()+\" 同学使用学生成绩管理系统\");\n\t\tnew Label(shell, SWT.NONE);\n\t\t\n\t\tComposite compositeStdData = new Composite(shell, SWT.NONE);\n\t\tcompositeStdData.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdData = new GridLayout(2, false);\n\t\tgl_compositeStdData.verticalSpacing = 15;\n\t\tcompositeStdData.setLayout(gl_compositeStdData);\n\t\t\n\t\tLabel labelStdData = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdData.setAlignment(SWT.CENTER);\n\t\tlabelStdData.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdData.setText(\"成绩数据\");\n\t\t\n\t\tLabel labelStdDataNum = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataNum.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataNum.setText(\"学号:\");\n\t\t\n\t\ttextStdDataNum = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataNum.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelStdDataName.setText(\"姓名:\");\n\t\t\n\t\ttextStdDataName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextStdDataName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataLine = new Label(compositeStdData, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabelStdDataLine.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 2, 1));\n\t\tlabelStdDataLine.setText(\"New Label\");\n\t\t\n\t\tLabel labelCourseName = new Label(compositeStdData, SWT.NONE);\n\t\tlabelCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelCourseName.setText(\"课程名\");\n\t\t\n\t\tLabel labelScore = new Label(compositeStdData, SWT.NONE);\n\t\tlabelScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlabelScore.setText(\"成绩\");\n\t\t\n\t\ttextCourseName = new Text(compositeStdData, SWT.BORDER);\n\t\ttextCourseName.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\ttextScore = new Text(compositeStdData, SWT.BORDER);\n\t\ttextScore.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\t\n\t\tLabel labelStdDataFill = new Label(compositeStdData, SWT.NONE);\n\t\tlabelStdDataFill.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tnew Label(compositeStdData, SWT.NONE);\n\t\t\n\t\tComposite compositeStdOp = new Composite(shell, SWT.NONE);\n\t\tcompositeStdOp.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, true, 1, 1));\n\t\tGridLayout gl_compositeStdOp = new GridLayout(1, false);\n\t\tgl_compositeStdOp.verticalSpacing = 15;\n\t\tcompositeStdOp.setLayout(gl_compositeStdOp);\n\t\t\n\t\tLabel labelStdOP = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOP.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, true, 1, 1));\n\t\tlabelStdOP.setAlignment(SWT.CENTER);\n\t\tlabelStdOP.setText(\"操作菜单\");\n\t\t\n\t\tButton buttonStdOPFirst = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPFirst.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPFirst.setText(\"第一门课程\");\n\t\t\n\t\tButton buttonStdOPNext = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPNext.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPNext.setText(\"下一门课程\");\n\t\t\n\t\tButton buttonStdOPPrev = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPPrev.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPPrev.setText(\"上一门课程\");\n\t\t\n\t\tButton buttonStdOPLast = new Button(compositeStdOp, SWT.NONE);\n\t\tbuttonStdOPLast.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tbuttonStdOPLast.setText(\"最后一门课程\");\n\t\t\n\t\tCombo comboStdOPSele = new Combo(compositeStdOp, SWT.NONE);\n\t\tcomboStdOPSele.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\t\tcomboStdOPSele.setText(\"课程名?\");\n\t\t\n\t\tLabel labelStdOPFill = new Label(compositeStdOp, SWT.NONE);\n\t\tlabelStdOPFill.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t}",
"protected void createContents() {\n\t\tshell = new Shell(SWT.CLOSE | SWT.MIN);// 取消最大化与拖拽放大功能\n\t\tshell.setImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/MC.ico\"));\n\t\tshell.setBackgroundImage(SWTResourceManager.getImage(WelcomPart.class, \"/images/back.jpg\"));\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tshell.setSize(1157, 720);\n\t\tshell.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tshell.setLocation(Display.getCurrent().getClientArea().width / 2 - shell.getShell().getSize().x / 2,\n\t\t\t\tDisplay.getCurrent().getClientArea().height / 2 - shell.getSize().y / 2);\n\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/base.png\"));\n\t\tmenuItem.setText(\"\\u7A0B\\u5E8F\");\n\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\n\t\tMenuItem menuI_main = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuI_main.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmenuI_main.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_BookShow window = new Admin_BookShow();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI_main.setText(\"\\u4E3B\\u9875\");\n\n\t\tMenuItem menu_exit = new MenuItem(menu_1, SWT.NONE);\n\t\tmenu_exit.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/reset.png\"));\n\t\tmenu_exit.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tWelcomPart window = new WelcomPart();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu_exit.setText(\"\\u9000\\u51FA\");\n\n\t\tMenuItem menubook = new MenuItem(menu, SWT.CASCADE);\n\t\tmenubook.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookTypeManager.png\"));\n\t\tmenubook.setText(\"\\u56FE\\u4E66\\u7BA1\\u7406\");\n\n\t\tMenu menu_2 = new Menu(menubook);\n\t\tmenubook.setMenu(menu_2);\n\n\t\tMenuItem menu1_add = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu1_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_add window = new Book_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_add.setText(\"\\u6DFB\\u52A0\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_select = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_select.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu1_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t// 图书查询\n\t\t\t\tshell.close();\n\t\t\t\tBook_select window = new Book_select();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_select.setText(\"\\u67E5\\u8BE2\\u56FE\\u4E66\");\n\n\t\tMenuItem menu1_alter = new MenuItem(menu_2, SWT.NONE);\n\t\tmenu1_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu1_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_alter window = new Book_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu1_alter.setText(\"\\u4FEE\\u6539\\u56FE\\u4E66\");\n\n\t\tMenuItem menuI1_delete = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuI1_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenuI1_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBook_del window = new Book_del();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenuI1_delete.setText(\"\\u5220\\u9664\\u56FE\\u4E66\");\n\n\t\tMenuItem menutype = new MenuItem(menu, SWT.CASCADE);\n\t\tmenutype.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/bookManager.png\"));\n\t\tmenutype.setText(\"\\u4E66\\u7C7B\\u7BA1\\u7406\");\n\n\t\tMenu menu_3 = new Menu(menutype);\n\t\tmenutype.setMenu(menu_3);\n\n\t\tMenuItem menu2_add = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_add.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/add.png\"));\n\t\tmenu2_add.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_add window = new Booktype_add();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_add.setText(\"\\u6DFB\\u52A0\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_alter = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_alter.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/modify.png\"));\n\t\tmenu2_alter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_alter window = new Booktype_alter();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_alter.setText(\"\\u4FEE\\u6539\\u4E66\\u7C7B\");\n\n\t\tMenuItem menu2_delete = new MenuItem(menu_3, SWT.NONE);\n\t\tmenu2_delete.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/exit.png\"));\n\t\tmenu2_delete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tBooktype_delete window = new Booktype_delete();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu2_delete.setText(\"\\u5220\\u9664\\u4E66\\u7C7B\");\n\n\t\tMenuItem menumark = new MenuItem(menu, SWT.CASCADE);\n\t\tmenumark.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/student.png\"));\n\t\tmenumark.setText(\"\\u501F\\u8FD8\\u8BB0\\u5F55\");\n\n\t\tMenu menu_4 = new Menu(menumark);\n\t\tmenumark.setMenu(menu_4);\n\n\t\tMenuItem menu3_borrow = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_borrow.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/edit.png\"));\n\t\tmenu3_borrow.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_borrowmark window = new Admin_borrowmark();\n\t\t\t\twindow.open();// 借书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_borrow.setText(\"\\u501F\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem menu3_return = new MenuItem(menu_4, SWT.NONE);\n\t\tmenu3_return.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/search.png\"));\n\t\tmenu3_return.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_returnmark window = new Admin_returnmark();\n\t\t\t\twindow.open();// 还书记录\n\t\t\t}\n\t\t});\n\t\tmenu3_return.setText(\"\\u8FD8\\u4E66\\u8BB0\\u5F55\");\n\n\t\tMenuItem mntmhelp = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmhelp.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/about.png\"));\n\t\tmntmhelp.setText(\"\\u5173\\u4E8E\");\n\n\t\tMenu menu_5 = new Menu(mntmhelp);\n\t\tmntmhelp.setMenu(menu_5);\n\n\t\tMenuItem menu4_Info = new MenuItem(menu_5, SWT.NONE);\n\t\tmenu4_Info.setImage(SWTResourceManager.getImage(Admin_BookShow.class, \"/images/me.png\"));\n\t\tmenu4_Info.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t\tAdmin_Info window = new Admin_Info();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmenu4_Info.setText(\"\\u8F6F\\u4EF6\\u4FE1\\u606F\");\n\n\t\ttable = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable.setFont(SWTResourceManager.getFont(\"黑体\", 10, SWT.NORMAL));\n\t\ttable.setLinesVisible(true);\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setBounds(10, 191, 1119, 447);\n\n\t\tTableColumn tableColumn = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn.setWidth(29);\n\n\t\tTableColumn tableColumn_id = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_id.setWidth(110);\n\t\ttableColumn_id.setText(\"\\u56FE\\u4E66\\u7F16\\u53F7\");\n\n\t\tTableColumn tableColumn_name = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_name.setWidth(216);\n\t\ttableColumn_name.setText(\"\\u56FE\\u4E66\\u540D\\u79F0\");\n\n\t\tTableColumn tableColumn_author = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_author.setWidth(117);\n\t\ttableColumn_author.setText(\"\\u56FE\\u4E66\\u79CD\\u7C7B\");\n\n\t\tTableColumn tableColumn_pub = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_pub.setWidth(148);\n\t\ttableColumn_pub.setText(\"\\u4F5C\\u8005\");\n\n\t\tTableColumn tableColumn_stock = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_stock.setWidth(167);\n\t\ttableColumn_stock.setText(\"\\u51FA\\u7248\\u793E\");\n\n\t\tTableColumn tableColumn_sortid = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_sortid.setWidth(79);\n\t\ttableColumn_sortid.setText(\"\\u5E93\\u5B58\");\n\n\t\tTableColumn tableColumn_record = new TableColumn(table, SWT.CENTER);\n\t\ttableColumn_record.setWidth(247);\n\t\ttableColumn_record.setText(\"\\u767B\\u8BB0\\u65F6\\u95F4\");\n\n\t\tCombo combo_way = new Combo(shell, SWT.NONE);\n\t\tcombo_way.add(\"图书编号\");\n\t\tcombo_way.add(\"图书名称\");\n\t\tcombo_way.add(\"图书作者\");\n\t\tcombo_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tcombo_way.setBounds(314, 157, 131, 28);\n\n\t\t// 遍历查询book表\n\t\tButton btnButton_select = new Button(shell, SWT.NONE);\n\t\tbtnButton_select.setImage(SWTResourceManager.getImage(Book_select.class, \"/images/search.png\"));\n\t\tbtnButton_select.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tbtnButton_select.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tBook book = new Book();\n\t\t\t\tSelectbook selectbook = new Selectbook();\n\t\t\t\ttable.removeAll();\n\t\t\t\tif (combo_way.getText().equals(\"图书编号\")) {\n\t\t\t\t\tbook.setBook_id(text_select.getText().trim());\n\t\t\t\t\tString str[][] = selectbook.ShowAidBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书名称\")) {\n\t\t\t\t\tbook.setBook_name(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAnameBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().equals(\"图书作者\")) {\n\t\t\t\t\tbook.setBook_author(\"%\" + text_select.getText().trim() + \"%\");\n\t\t\t\t\tString str[][] = selectbook.ShowAauthorBook(book);\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (combo_way.getText().length() == 0) {\n\t\t\t\t\tString str[][] = selectbook.ShowAllBook();\n\t\t\t\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\t\t\t\tTableItem item = new TableItem(table, SWT.NONE);\n\t\t\t\t\t\titem.setText(i + \".\");\n\t\t\t\t\t\titem.setText(str[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnButton_select.setBounds(664, 155, 98, 30);\n\t\tbtnButton_select.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tbtnButton_select.setText(\"查询\");\n\n\t\ttext_select = new Text(shell, SWT.BORDER);\n\t\ttext_select.setBounds(472, 155, 186, 30);\n\n\t\tLabel lblNewLabel_way = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_way.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel_way.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel_way.setBounds(314, 128, 107, 30);\n\t\tlblNewLabel_way.setText(\"\\u67E5\\u8BE2\\u65B9\\u5F0F\\uFF1A\");\n\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setText(\"\\u56FE\\u4E66\\u67E5\\u8BE2\");\n\t\tlblNewLabel_1.setForeground(SWTResourceManager.getColor(255, 255, 255));\n\t\tlblNewLabel_1.setFont(SWTResourceManager.getFont(\"黑体\", 25, SWT.BOLD));\n\t\tlblNewLabel_1.setAlignment(SWT.CENTER);\n\t\tlblNewLabel_1.setBounds(392, 54, 266, 48);\n\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setText(\"\\u8F93\\u5165\\uFF1A\");\n\t\tlblNewLabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"黑体\", 12, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(472, 129, 76, 20);\n\n\t}",
"protected void createContents() {\n\t\tshell = new Shell(SWT.TITLE | SWT.CLOSE | SWT.BORDER);\n\t\tshell.setSize(713, 226);\n\t\tshell.setText(\"ALT Planner\");\n\t\t\n\t\tCalendarPop calendarComp = new CalendarPop(shell, SWT.NONE);\n\t\tcalendarComp.setBounds(5, 5, 139, 148);\n\t\t\n\t\tComposite composite = new PlannerInterface(shell, SWT.NONE, calendarComp);\n\t\tcomposite.setBounds(0, 0, 713, 200);\n\t\t\n\t\tMenu menu = new Menu(shell, SWT.BAR);\n\t\tshell.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmFile = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmFile.setText(\"File\");\n\t\t\n\t\tMenu menu_1 = new Menu(mntmFile);\n\t\tmntmFile.setMenu(menu_1);\n\t\t\n\t\tMenuItem mntmSettings = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmSettings.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSettings settings = new Settings(Display.getDefault());\n\t\t\t\tsettings.open();\n\t\t\t}\n\t\t});\n\t\tmntmSettings.setText(\"Settings\");\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(1200, 1100);\n\t\tshell.setText(\"Zagreb Montaža d.o.o\");\n\n\t\tfinal Composite cmpMenu = new Composite(shell, SWT.NONE);\n\t\tcmpMenu.setBackground(SWTResourceManager.getColor(119, 136, 153));\n\t\tcmpMenu.setBounds(0, 0, 359, 1061);\n\t\t\n\t\tFormToolkit formToolkit = new FormToolkit(Display.getDefault());\n\t\tfinal Section sctnCalculator = formToolkit.createSection(cmpMenu, Section.TWISTIE | Section.TITLE_BAR);\n\t\tsctnCalculator.setExpanded(false);\n\t\tsctnCalculator.setBounds(10, 160, 339, 23);\n\t\tformToolkit.paintBordersFor(sctnCalculator);\n\t\tsctnCalculator.setText(\"Kalkulator temperature preddgrijavanja\");\n\n\t\tfinal Section sctn10112ce = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112ce.setBounds(45, 189, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112ce);\n\t\tsctn10112ce.setText(\"1011-2 CE\");\n\t\tsctn10112ce.setVisible(false);\n\n\t\tfinal Section sctn10112cet = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctn10112cet.setBounds(45, 218, 304, 23);\n\t\tformToolkit.paintBordersFor(sctn10112cet);\n\t\tsctn10112cet.setText(\"1011-2 CET\");\n\t\tsctn10112cet.setVisible(false);\n\n\t\tfinal Section sctnAws = formToolkit.createSection(cmpMenu, Section.TREE_NODE | Section.TITLE_BAR);\n\t\tsctnAws.setBounds(45, 247, 304, 23);\n\t\tformToolkit.paintBordersFor(sctnAws);\n\t\tsctnAws.setText(\"AWS\");\n\t\tsctnAws.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112ce = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112ce.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112ce.setVisible(false);\n\t\t\n\t\tfinal Composite composite10112cet = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcomposite10112cet.setBounds(365, 0, 829, 1061);\n\t\tcomposite10112cet.setVisible(false);\n\t\t\n\t\tfinal Composite compositeAws = new Composite(shell, SWT.COLOR_DARK_GRAY);\n\t\t//composite10112ce.setBackground(SWTResourceManager.getColor(255, 255, 255));\n\t\tcompositeAws.setBounds(365, 0, 829, 1061);\n\t\tcompositeAws.setVisible(false);\n\t\t\n\t\tsctnCalculator.addExpansionListener(new IExpansionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\n\t\t\t\tif (sctnCalculator.isExpanded() == false) {\n\t\t\t\t\tsctn10112ce.setVisible(true);\n\t\t\t\t\tsctn10112cet.setVisible(true);\n\t\t\t\t\tsctnAws.setVisible(true);\n\n\t\t\t\t} else {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tsctnAws.setVisible(false);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\tsctn10112ce.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112ce.isExpanded() == true) {\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112ce(composite10112ce, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctn10112cet.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctn10112cet.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t\t\tnew F10112cet(composite10112cet, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcomposite10112ce.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tsctnAws.addExpansionListener(new IExpansionListener() {\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanging(ExpansionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void expansionStateChanged(ExpansionEvent arg0) {\n\t\t\t\tif (sctnAws.isExpanded() == true) {\n\t\t\t\t\tsctn10112ce.setVisible(false);\n\t\t\t\t\tsctn10112cet.setVisible(false);\n\t\t\t\t\tnew FAws(compositeAws, cmpMenu.getStyle());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcompositeAws.setVisible(false);\n\t\t\t}\n\t\t});\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}",
"private void createContents() {\r\n\t\tshlEventBlocker = new Shell(getParent(), getStyle());\r\n\t\tshlEventBlocker.setSize(167, 135);\r\n\t\tshlEventBlocker.setText(\"Event Blocker\");\r\n\t\t\r\n\t\tLabel lblRunningEvent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblRunningEvent.setBounds(10, 10, 100, 15);\r\n\t\tlblRunningEvent.setText(\"Running Event:\");\r\n\t\t\r\n\t\tLabel lblevent = new Label(shlEventBlocker, SWT.NONE);\r\n\t\tlblevent.setFont(SWTResourceManager.getFont(\"Segoe UI\", 15, SWT.BOLD));\r\n\t\tlblevent.setBounds(20, 31, 129, 35);\r\n\t\tlblevent.setText(eventName);\r\n\t\t\r\n\t\tButton btnFinish = new Button(shlEventBlocker, SWT.NONE);\r\n\t\tbtnFinish.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\tshlEventBlocker.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFinish.setBounds(10, 72, 75, 25);\r\n\t\tbtnFinish.setText(\"Finish\");\r\n\r\n\t}",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tLabel lblUsername = new Label(shell, SWT.NONE);\n\t\tlblUsername.setBounds(73, 30, 55, 15);\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\tLabel lblPassword = new Label(shell, SWT.NONE);\n\t\tlblPassword.setText(\"Password\");\n\t\tlblPassword.setBounds(73, 78, 55, 15);\n\t\t\n\t\ttxtUsername = new Text(shell, SWT.BORDER);\n\t\ttxtUsername.setText(\"lisa\");\n\t\ttxtUsername.setBounds(139, 24, 209, 21);\n\t\t\n\t\ttxtPassword = new Text(shell, SWT.BORDER);\n\t\ttxtPassword.setText(\"password1\");\n\t\ttxtPassword.setBounds(139, 72, 209, 21);\n\t\t\n\t\tButton btnLogin = new Button(shell, SWT.NONE);\n\t\tbtnLogin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLogin.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tString usrname = txtUsername.getText();\n\t\t\t\tString usrpass = txtPassword.getText();\n\t\t\t\t\n\t\t\t\t// Call authenticate user credentials through authentication RMI server\n\t\t\t\tLoginInterface login;\n\t\t\t\ttry{\n\t\t\t\t\tlogin = (LoginInterface)Naming.lookup(\"rmi://localhost/login\");\n\t\t\t\t\t\n\t\t\t\t\tboolean authenticated = login.authenticate(usrname, usrpass);\n\t\t\t\t\tif(authenticated){\n\t\t\t\t\t\tSystem.out.println(\"User authenticated.\");\n\t\t\t\t\t\tclose();\n\n\t\t\t\t\t\tevaluator.EvaluatorClient.main(null);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t\tlblMsgOut.setText(\"Username or password was incorrect. Please try again.\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}catch(Exception e2){\n\t\t\t\t\tSystem.out.println(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t\tlblMsgOut.setText(\"LoginClient authentication exception: \" + e2);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(272, 118, 75, 25);\n\t\tbtnLogin.setText(\"Login\");\n\t\t\n\t\tlblMsgOut = new Label(shell, SWT.BORDER | SWT.WRAP);\n\t\tlblMsgOut.setBounds(10, 174, 414, 77);\n\t\tlblMsgOut.setText(\"Output:\");\n\n\t}",
"@Override\n\tprotected void createShell() {\n\t\tRectangle bounds = new Rectangle(100, 50, 600, 510);\n\t\tString shellTxt = \"Cohorts Report\";\n\t\tbuildShell(shellTxt, bounds);\n\t\t// create the composites\n\t\tcreateMyGroups();\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tnum1 = new Text(shell, SWT.BORDER);\n\t\tnum1.setBounds(32, 51, 112, 19);\n\t\t\n\t\tnum2 = new Text(shell, SWT.BORDER);\n\t\tnum2.setBounds(32, 120, 112, 19);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.NONE);\n\t\tlblNewLabel.setBounds(32, 31, 92, 14);\n\t\tlblNewLabel.setText(\"First Number:\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(shell, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(32, 100, 112, 14);\n\t\tlblNewLabel_1.setText(\"Second Number: \");\n\t\t\n\t\tfinal Label answer = new Label(shell, SWT.NONE);\n\t\tanswer.setBounds(35, 204, 60, 14);\n\t\tanswer.setText(\"Answer:\");\n\t\t\n\t\tButton plusButton = new Button(shell, SWT.NONE);\n\t\tplusButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tint number1, number2;\n\t\t\t\ttry {\n\t\t\t\t\tnumber1 = Integer.parseInt(num1.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tnumber2 = Integer.parseInt(num2.getText());\n\t\t\t\t}\n\t\t\t\tcatch (Exception exc) {\n\t\t\t\t\tMessageDialog.openError(shell, \"Error\", \"Bad number\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint ans = number1 + number2;\n\t\t\t\tanswer.setText(\"Answer: \" + ans);\n\t\t\t}\n\t\t});\n\t\tplusButton.setBounds(29, 158, 56, 28);\n\t\tplusButton.setText(\"+\");\n\t\t\n\t\t\n\n\t}",
"protected void createContents() {\n\t\tshlFaststone = new Shell();\n\t\tshlFaststone.setImage(SWTResourceManager.getImage(Edit.class, \"/image/all1.png\"));\n\t\tshlFaststone.setToolTipText(\"\");\n\t\tshlFaststone.setSize(944, 479);\n\t\tshlFaststone.setText(\"kaca\");\n\t\tshlFaststone.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tComposite composite = new Composite(shlFaststone, SWT.NONE);\n\t\tcomposite.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm = new SashForm(composite, SWT.VERTICAL);\n\t\t//\n\t\tMenu menu = new Menu(shlFaststone, SWT.BAR);\n\t\tshlFaststone.setMenuBar(menu);\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem.setSelection(true);\n\t\tmenuItem.setText(\"\\u6587\\u4EF6\");\n\t\t\n\t\tMenu menu_1 = new Menu(menuItem);\n\t\tmenuItem.setMenu(menu_1);\n\t\t\n\t\tfinal Canvas down=new Canvas(shlFaststone,SWT.NONE|SWT.BORDER|SWT.DOUBLE_BUFFERED);\n\t\t\n\t\tComposite composite_4 = new Composite(sashForm, SWT.BORDER);\n\t\tcomposite_4.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_3 = new SashForm(composite_4, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_3);\n\t\tformToolkit.paintBordersFor(sashForm_3);\n\t\t\n\t\tToolBar toolBar = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.WRAP | SWT.RIGHT);\n\t\ttoolBar.setToolTipText(\"\");\n\t\t\n\t\tToolItem toolItem_6 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_6.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_2.notifyListeners(SWT.Selection,event1);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6253\\u5F00.jpg\"));\n\t\ttoolItem_6.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t\n\t\ttltmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttltmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\ttltmNewItem.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t//关闭\n\t\tToolItem tltmNewItem_4 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\ttltmNewItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttltmNewItem_4.setText(\"\\u5173\\u95ED\");\n\t\t\n\t\t\n\t\t\n\t\tToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);\n\t\ttltmNewItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//缩放\n\t\t\n\t\t\n\t\ttltmNewItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u653E\\u5927.jpg\"));\n\t\t\n\t\t//工具栏:放大\n\t\t\n\t\ttltmNewItem_1.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);\n\t\t\n\t\t//工具栏:缩小\n\t\ttltmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\ttltmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F29\\u5C0F.jpg\"));\n\t\ttltmNewItem_2.setText(\"\\u7F29\\u5C0F\");\n\t\tToolItem toolItem_5 = new ToolItem(toolBar, SWT.NONE);\n\t\ttoolItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmntmNewItem_5.notifyListeners(SWT.Selection, event2);\n\n\t\t\t}\n\t\t});\n\t\ttoolItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7ED3\\u675F.jpg\"));\n\t\ttoolItem_5.setText(\"\\u9000\\u51FA\");\n\t\t\n\t\tToolBar toolBar_1 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\tformToolkit.adapt(toolBar_1);\n\t\tformToolkit.paintBordersFor(toolBar_1);\n\t\t\n\t\tToolItem toolItem_7 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:标题\n\t\ttoolItem_7.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_7.setText(\"\\u6807\\u9898\");\n\t\ttoolItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6807\\u9898.jpg\"));\n\t\t\n\t\tToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);\n\t\t\n\t\t//工具栏:调整大小\n\t\ttoolItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_1.setText(\"\\u8C03\\u6574\\u5927\\u5C0F\");\n\t\ttoolItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u8C03\\u6574\\u5927\\u5C0F.jpg\"));\n\t\t\n\t\tToolBar toolBar_2 = new ToolBar(sashForm_3, SWT.BORDER | SWT.FLAT | SWT.RIGHT);\n\t\ttoolBar_2.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tformToolkit.adapt(toolBar_2);\n\t\tformToolkit.paintBordersFor(toolBar_2);\n\t\t\n\t\tToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:裁剪\n\t\ttoolItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_2.setText(\"\\u88C1\\u526A\");\n\t\ttoolItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u88C1\\u526A.jpg\"));\n\t\t\n\t\tToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\t\t//工具栏:剪切\n\t\ttoolItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\t//\n\t\t\n\t\ttoolItem_3.setText(\"\\u526A\\u5207\");\n\t\ttoolItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u526A\\u5207.jpg\"));\n\t\t\n\t\tToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);\n\t\t\n\n\t\t//工具栏:粘贴\n\t\ttoolItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tcomposite_3.layout();\n\t\t\t\tFile f=new File(\"src/picture/beauty.jpg\");\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tButton lblNewLabel_3 = null;\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcomposite_3.layout();\n\t\t\t}\n\t\t});\n\t\t//omposite;\n\t\t//\n\t\t\n\t\ttoolItem_4.setText(\"\\u590D\\u5236\");\n\t\ttoolItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u590D\\u5236.jpg\"));\n\t\t\n\t\tToolItem tltmNewItem_3 = new ToolItem(toolBar_2, SWT.NONE);\n\t\ttltmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\ttltmNewItem_3.setText(\"\\u7C98\\u8D34\");\n\t\tsashForm_3.setWeights(new int[] {486, 165, 267});\n\t\t\n\t\tComposite composite_1 = new Composite(sashForm, SWT.NONE);\n\t\tformToolkit.adapt(composite_1);\n\t\tformToolkit.paintBordersFor(composite_1);\n\t\tcomposite_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_1 = new SashForm(composite_1, SWT.VERTICAL);\n\t\tformToolkit.adapt(sashForm_1);\n\t\tformToolkit.paintBordersFor(sashForm_1);\n\t\t\n\t\tComposite composite_2 = new Composite(sashForm_1, SWT.NONE);\n\t\tformToolkit.adapt(composite_2);\n\t\tformToolkit.paintBordersFor(composite_2);\n\t\tcomposite_2.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(composite_2, SWT.NONE);\n\t\ttabFolder.setTouchEnabled(true);\n\t\tformToolkit.adapt(tabFolder);\n\t\tformToolkit.paintBordersFor(tabFolder);\n\t\t\n\t\tTabItem tbtmNewItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem.setText(\"\\u65B0\\u5EFA\\u4E00\");\n\t\t\n\t\tTabItem tbtmNewItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_1.setText(\"\\u65B0\\u5EFA\\u4E8C\");\n\t\t\n\t\tTabItem tbtmNewItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttbtmNewItem_2.setText(\"\\u65B0\\u5EFA\\u4E09\");\n\t\t\n\t\tButton button = new Button(tabFolder, SWT.CHECK);\n\t\tbutton.setText(\"Check Button\");\n\t\t\n\t\tcomposite_3 = new Composite(sashForm_1, SWT.H_SCROLL | SWT.V_SCROLL);\n\t\t\n\t\tformToolkit.adapt(composite_3);\n\t\tformToolkit.paintBordersFor(composite_3);\n\t\tcomposite_3.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tLabel lblNewLabel_3 = new Label(composite_3, SWT.NONE);\n\t\tformToolkit.adapt(lblNewLabel_3, true, true);\n\t\tlblNewLabel_3.setText(\"\");\n\t\tsashForm_1.setWeights(new int[] {19, 323});\n\t\t\n\t\tComposite composite_5 = new Composite(sashForm, SWT.NONE);\n\t\tcomposite_5.setToolTipText(\"\");\n\t\tcomposite_5.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\t\n\t\tSashForm sashForm_2 = new SashForm(composite_5, SWT.NONE);\n\t\tformToolkit.adapt(sashForm_2);\n\t\tformToolkit.paintBordersFor(sashForm_2);\n\t\t\n\t\tLabel lblNewLabel = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel, true, true);\n\t\tlblNewLabel.setText(\"1/1\");\n\t\t\n\t\tLabel lblNewLabel_2 = new Label(sashForm_2, SWT.BORDER | SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_2, true, true);\n\t\tlblNewLabel_2.setText(\"\\u5927\\u5C0F\\uFF1A1366*728\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(sashForm_2, SWT.CENTER);\n\t\tformToolkit.adapt(lblNewLabel_1, true, true);\n\t\tlblNewLabel_1.setText(\"\\u7F29\\u653E\\uFF1A100%\");\n\t\t\n\t\tLabel label = new Label(sashForm_2, SWT.NONE);\n\t\tlabel.setAlignment(SWT.RIGHT);\n\t\tformToolkit.adapt(label, true, true);\n\t\tlabel.setText(\"\\u5494\\u5693\\u5DE5\\u4F5C\\u5BA4\\u7248\\u6743\\u6240\\u6709\");\n\t\tsashForm_2.setWeights(new int[] {127, 141, 161, 490});\n\t\tsashForm.setWeights(new int[] {50, 346, 22});\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMenuItem mntmNewItem = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u65B0\\u5EFA.jpg\"));\n\t\tmntmNewItem.setText(\"\\u65B0\\u5EFA\");\n\t\t\n\t\tmntmNewItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t//Label lblNewLabel_3 = new Label(composite_1, SWT.NONE);\n\t\t\t\t//Canvas c=new Canvas(shlFaststone,SWT.BALLOON);\n\t\t\t\t\n\t\t\t\tFileDialog dialog = new FileDialog(shlFaststone,SWT.OPEN); \n\t\t\t\tdialog.setFilterPath(System.getProperty(\"user_home\"));//设置初始路径\n\t\t\t\tdialog.setFilterNames(new String[] {\"文本文档(*txt)\",\"所有文档\"}); \n\t\t\t\tdialog.setFilterExtensions(new String[]{\"*.exe\",\"*.xls\",\"*.*\"});\n\t\t\t\tString path=dialog.open();\n\t\t\t\tString s=null;\n\t\t\t\tFile f=null;\n\t\t\t\tif(path==null||\"\".equals(path)) {\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t f=new File(path);\n\t\t\t\tbyte[] bs=Fileutil.readFile(f);\n\t\t\t s=new String(bs,\"UTF-8\");\n\t\t\t\t}catch (Exception e1) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tMessageDialog.openError(shlFaststone, \"出错了\", \"打开\"+path+\"出错了\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t \n\t\t\t\ttext = new Text(composite_4, SWT.BORDER | SWT.WRAP\n\t\t\t\t\t\t| SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL\n\t\t\t\t\t\t| SWT.MULTI);\n\t\t\t\ttext.setText(s);\n\t\t\t\tcomposite_1.layout();\n\t\t\t\tshlFaststone.setText(shlFaststone.getText()+\"\\t\"+f.getName());\n\t\t\t\t\t\n\t\t\t\tFile f1=new File(path);\n\t\t\t\tImageData imageData;\n\t\t\t\ttry {\n\t\t\t\t\timageData = new ImageData( new FileInputStream( f1));\n\t\t\t\t\tImage image=new Image(shlFaststone.getDisplay(),imageData);\n\t\t\t\t\tlblNewLabel_3.setImage(image);\n\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_2.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u6253\\u5F00.jpg\"));\n\t\tmntmNewItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem mntmNewItem_1 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_1.setText(\"\\u4ECE\\u526A\\u8D34\\u677F\\u5BFC\\u5165\");\n\t\t\n\t\tMenuItem mntmNewItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_3.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u53E6\\u5B58\\u4E3A.jpg\"));\n\t\tmntmNewItem_3.setText(\"\\u53E6\\u5B58\\u4E3A\");\n\t\t\n\t\t mntmNewItem_5 = new MenuItem(menu_1, SWT.NONE);\n\t\tmntmNewItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t boolean result=MessageDialog.openConfirm(shlFaststone,\"退出\",\"是否确认退出\");\n\t\t\t\t if(result) {\n\t\t\t\t\t System.exit(0);\n\t\t\t\t }\n\n\t\t\t}\n\t\t});\n\t\tmntmNewItem_5.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6587\\u4EF6\\u5B50\\u56FE\\u6807/\\u6587\\u4EF6.\\u4FDD\\u5B58.jpg\"));\n\t\tmntmNewItem_5.setText(\"\\u5173\\u95ED\");\n\t\tevent2=new Event();\n\t\tevent2.widget=mntmNewItem_5;\n\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u6355\\u6349\");\n\t\t\n\t\tMenu menu_2 = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(menu_2);\n\t\t\n\t\tMenuItem mntmNewItem_6 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_6.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_6.setText(\"\\u6355\\u6349\\u6D3B\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_7 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_7.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6355\\u6349\\u7A97\\u53E3\\u6216\\u5BF9\\u8C61.jpg\"));\n\t\tmntmNewItem_7.setText(\"\\u6355\\u6349\\u7A97\\u53E3\\u5BF9\\u8C61\");\n\t\t\n\t\tMenuItem mntmNewItem_8 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_8.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.jpg\"));\n\t\tmntmNewItem_8.setText(\"\\u6355\\u6349\\u77E9\\u5F62\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_9 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_9.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u624B\\u7ED8\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_9.setText(\"\\u6355\\u6349\\u624B\\u7ED8\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem mntmNewItem_10 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_10.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u6574\\u4E2A\\u5C4F\\u5E55.jpg\"));\n\t\tmntmNewItem_10.setText(\"\\u6355\\u6349\\u6574\\u4E2A\\u5C4F\\u5E55\");\n\t\t\n\t\tMenuItem mntmNewItem_11 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_11.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3.jpg\"));\n\t\tmntmNewItem_11.setText(\"\\u6355\\u6349\\u6EDA\\u52A8\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_12 = new MenuItem(menu_2, SWT.NONE);\n\t\tmntmNewItem_12.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF.jpg\"));\n\t\tmntmNewItem_12.setText(\"\\u6355\\u6349\\u56FA\\u5B9A\\u5927\\u5C0F\\u533A\\u57DF\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_1.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u6355\\u6349/\\u6355\\u6349.\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349.jpg\"));\n\t\tmenuItem_1.setText(\"\\u91CD\\u590D\\u4E0A\\u6B21\\u6355\\u6349\");\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_2.setText(\"\\u7F16\\u8F91\");\n\t\t\n\t\tMenu menu_3 = new Menu(menuItem_2);\n\t\tmenuItem_2.setMenu(menu_3);\n\t\t\n\t\tMenuItem mntmNewItem_14 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_14.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_14.setText(\"\\u64A4\\u9500\");\n\t\t\n\t\tMenuItem mntmNewItem_13 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_13.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\t\tmntmNewItem_13.setText(\"\\u91CD\\u505A\");\n\t\t\n\t\tMenuItem mntmNewItem_15 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_15.setText(\"\\u9009\\u62E9\\u5168\\u90E8\");\n\t\t\n\t\tMenuItem mntmNewItem_16 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_16.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7F16\\u8F91.\\u88C1\\u526A.jpg\"));\n\t\tmntmNewItem_16.setText(\"\\u88C1\\u526A\");\n\t\t\n\t\tMenuItem mntmNewItem_17 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_17.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u526A\\u5207.jpg\"));\n\t\tmntmNewItem_17.setText(\"\\u526A\\u5207\");\n\t\t\n\t\tMenuItem mntmNewItem_18 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_18.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u590D\\u5236.jpg\"));\n\t\tmntmNewItem_18.setText(\"\\u590D\\u5236\");\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_3, SWT.NONE);\n\t\tmenuItem_4.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u7C98\\u8D34.jpg\"));\n\t\tmenuItem_4.setText(\"\\u7C98\\u8D34\");\n\t\t\n\t\tMenuItem mntmNewItem_19 = new MenuItem(menu_3, SWT.NONE);\n\t\tmntmNewItem_19.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_3.setText(\"\\u7279\\u6548\");\n\t\t\n\t\tMenu menu_4 = new Menu(menuItem_3);\n\t\tmenuItem_3.setMenu(menu_4);\n\t\t\n\t\tMenuItem mntmNewItem_20 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_20.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6C34\\u5370.jpg\"));\n\t\tmntmNewItem_20.setText(\"\\u6C34\\u5370\");\n\t\t\n\t\tPanelPic ppn = new PanelPic();\n\t\tMenuItem mntmNewItem_21 = new MenuItem(menu_4, SWT.NONE);\n\t\tmntmNewItem_21.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tflag[0]=true;\n\t\t\t\tflag[1]=false;\n\n\t\t\t}\n\n\t\t});\n\t\t\n\t\tdown.addMouseListener(new MouseAdapter(){\n\t\t\tpublic void mouseDown(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=true;\n\t\t\t\tpt=new Point(e.x,e.y);\n\t\t\t\tif(flag[1])\n\t\t\t\t{\n\t\t\t\t\trect=new Composite(down,SWT.BORDER);\n\t\t\t\t\trect.setLocation(e.x, e.y);\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent e)\n\t\t\t{\n\t\t\t\tmouseDown=false;\n\t\t\t\tif(flag[1]&&dirty)\n\t\t\t\t{\n\t\t\t\t\trexx[n-1]=rect.getBounds();\n\t\t\t\t\trect.dispose();\n\t\t\t\t\tdown.redraw();\n\t\t\t\t\tdirty=false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdown.addMouseMoveListener(new MouseMoveListener(){\n\t\t\t@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n if(mouseDown)\n {\n \t dirty=true;\n\t\t\t\tif(flag[0])\n\t\t\t {\n \t GC gc=new GC(down);\n gc.drawLine(pt.x, pt.y, e.x, e.y);\n list.add(new int[]{pt.x,pt.y,e.x,e.y});\n pt.x=e.x;pt.y=e.y;\n\t\t\t }\n else if(flag[1])\n {\n \t if(rect!=null)\n \t rect.setSize(rect.getSize().x+e.x-pt.x, rect.getSize().y+e.y-pt.y);\n// \t down.redraw();\n \t pt.x=e.x;pt.y=e.y;\n }\n }\n\t\t\t}\n\t\t\t\n\t\t});\n\t\tdown.addPaintListener(new PaintListener(){\n\t\t\t@Override\n\t\t\tpublic void paintControl(PaintEvent e) {\n\t\t\t\tfor(int i=0;i<list.size();i++)\n\t\t\t\t{\n\t\t\t\t\tint a[]=list.get(i);\n\t\t\t\t\te.gc.drawLine(a[0], a[1], a[2], a[3]);\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\t{\n\t\t\t\t\tif(rexx[i]!=null)\n\t\t\t\t\t\te.gc.drawRectangle(rexx[i]);\n\t\t\t\t}\n\t\t\t}});\n\n\t\t\n\t\tmntmNewItem_21.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7279\\u6548.\\u6587\\u5B57.jpg\"));\n\t\tmntmNewItem_21.setText(\"\\u753B\\u7B14\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_1 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_1.setText(\"\\u67E5\\u770B\");\n\t\t\n\t\tMenu menu_5 = new Menu(mntmNewSubmenu_1);\n\t\tmntmNewSubmenu_1.setMenu(menu_5);\n\t\t\n\t\tMenuItem mntmNewItem_24 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_24.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u653E\\u5927.jpg\"));\n\t\tmntmNewItem_24.setText(\"\\u653E\\u5927\");\n\t\t\n\t\tMenuItem mntmNewItem_25 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_25.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u67E5\\u770B.\\u7F29\\u5C0F.jpg\"));\n\t\tmntmNewItem_25.setText(\"\\u7F29\\u5C0F\");\n\t\t\n\t\tMenuItem mntmNewItem_26 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_26.setText(\"\\u5B9E\\u9645\\u5C3A\\u5BF8\\uFF08100%\\uFF09\");\n\t\t\n\t\tMenuItem mntmNewItem_27 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_27.setText(\"\\u9002\\u5408\\u7A97\\u53E3\");\n\t\t\n\t\tMenuItem mntmNewItem_28 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_28.setText(\"100%\");\n\t\t\n\t\tMenuItem mntmNewItem_29 = new MenuItem(menu_5, SWT.NONE);\n\t\tmntmNewItem_29.setText(\"200%\");\n\t\t\n\t\tMenuItem mntmNewSubmenu_2 = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu_2.setText(\"\\u8BBE\\u7F6E\");\n\t\t\n\t\tMenu menu_6 = new Menu(mntmNewSubmenu_2);\n\t\tmntmNewSubmenu_2.setMenu(menu_6);\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu, SWT.CASCADE);\n\t\tmenuItem_5.setText(\"\\u5E2E\\u52A9\");\n\t\t\n\t\tMenu menu_7 = new Menu(menuItem_5);\n\t\tmenuItem_5.setMenu(menu_7);\n\t\t\n\t\tMenuItem menuItem_6 = new MenuItem(menu_7, SWT.NONE);\n\t\tmenuItem_6.setText(\"\\u7248\\u672C\");\n\t\t\n\t\tMenuItem mntmNewItem_23 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_23.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u5DE6\\u64A4\\u9500.jpg\"));\n\t\t\n\t\tMenuItem mntmNewItem_30 = new MenuItem(menu, SWT.NONE);\n\t\tmntmNewItem_30.setImage(SWTResourceManager.getImage(Edit.class, \"/\\u622A\\u56FE\\u5DE5\\u5177/\\u56FE\\u7247\\u8D44\\u6E90/\\u7F16\\u8F91\\u5B50\\u56FE\\u6807/\\u53F3\\u64A4\\u9500.jpg\"));\n\n\t}",
"public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(447, 310);\n\t\tshell.setText(\"Verisure ASCII Node\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tTabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n\t\t\n\t\tTabItem basicItem = new TabItem(tabFolder, SWT.NONE);\n\t\tbasicItem.setText(\"Basic\");\n\t\t\n\t\tComposite basicComposite = new Composite(tabFolder, SWT.NONE);\n\t\tbasicItem.setControl(basicComposite);\n\t\tbasicComposite.setLayout(null);\n\t\t\n\t\tButton btnDelMeasurments = new Button(basicComposite, SWT.NONE);\n\t\t\n\t\tbtnDelMeasurments.setToolTipText(\"Delete the measurements from the device.\");\n\t\tbtnDelMeasurments.setBounds(269, 192, 159, 33);\n\t\tbtnDelMeasurments.setText(\"Delete measurements\");\n\t\t\n\t\tButton btnGetMeasurement = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetMeasurement.setToolTipText(\"Get the latest measurement from the device.\");\n\t\t\n\t\tbtnGetMeasurement.setBounds(0, 36, 159, 33);\n\t\tbtnGetMeasurement.setText(\"Get new bloodvalue\");\n\t\t\n\t\tfinal StyledText receiveArea = new StyledText(basicComposite, SWT.BORDER | SWT.WRAP);\n\t\treceiveArea.setLocation(167, 30);\n\t\treceiveArea.setSize(259, 92);\n\t\treceiveArea.setToolTipText(\"This is where the measurement will be displayd.\");\n\t\t\n\t\tButton btnBase64 = new Button(basicComposite, SWT.RADIO);\n\t\tbtnBase64.setToolTipText(\"Show the latest blood value (base64 encoded).\");\n\t\tbtnBase64.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\t\n\t\tbtnDelMeasurments.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Deleting measurements, please wait...\");\n\n\t\t\t}\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"DEL\";\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\tSystem.out.println(\"Sov i tre sekunder.\");\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\treceiveArea.setText(\"Deleted measurements from device.\");\n\t\t\t}\n\t\t});\n\t\tbtnBase64.setSelection(true);\n\t\tbtnBase64.setBounds(137, 130, 74, 25);\n\t\tbtnBase64.setText(\"base64\");\n\t\t\n\t\tButton btnHex = new Button(basicComposite, SWT.RADIO);\n\t\tbtnHex.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t\t\t\ttype = 2;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\tbtnHex.setToolTipText(\"Show the measurement in hex.\");\n\t\tbtnHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnHex.setBounds(217, 130, 50, 25);\n\t\tbtnHex.setText(\"hex\");\n\t\t\n\t\tButton btnAscii = new Button(basicComposite, SWT.RADIO);\n\t\t\n\t\tbtnAscii.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 1;\n\t\t\t\tSystem.out.println(\"Bytte type till: \"+type);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\t/*\n\t\t * Return that the value should be represented as base64.\n\t\t * \n\t\t */\n\t\t\n\t\tbtnBase64.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\ttype = 0;\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnAscii.setToolTipText(\"Show the measurement in ascii.\");\n\t\tbtnAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tbtnAscii.setBounds(269, 130, 53, 25);\n\t\tbtnAscii.setText(\"ascii\");\n\t\t\n\t\tLabel label = new Label(basicComposite, SWT.NONE);\n\t\tlabel.setText(\"A master thesis project by Pétur and David\");\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlabel.setBounds(10, 204, 192, 21);\n\t\t\n\t\tButton btnGetDbValue = new Button(basicComposite, SWT.NONE);\n\t\tbtnGetDbValue.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting latest measurements from db, please wait...\");\n\t\t\t}\n\t\t});\n\t\tbtnGetDbValue.setBounds(0, 71, 159, 33);\n\t\tbtnGetDbValue.setText(\"Get latest bloodvalue\");\n\t\t\n\t\t/*\n\t\t *Get measurement from device event handler \n\t\t *\n\t\t *@param The Mouse Adapter\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\tbtnGetMeasurement.addMouseListener(new MouseAdapter() {\n\t\t\t\n\t\t\tpublic void MouseDown(MouseEvent arg0){\n\t\t\t\treceiveArea.setText(\"Getting measurement from device, please wait...\");\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tString theText = \"LOG\";\n\t\t\t\t\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//System.out.println(\"Hej\");\n\n\t\t\t\t\t\t//rest.doPut(\"lol\");\n\t\t\t\t\t\trest.doPut(theText);\n\t\t\t\t\t\t\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile (!db.getAck(theText, rest));\n\t\t\t\ttry{\n\t\t\t\t\tThread.sleep(2000);\n\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\treceiveArea.setText(db.getNodeFaults(type));\n\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\treceiveArea.setText(\"Getting measurements from device, please wait...\");\n\t\t\t}\n\t\t});\n\n\t\t\n\t\t/*\n\t\t * The advanced tab section\n\t\t */\n\t\t\n\t\tTabItem advancedItem = new TabItem(tabFolder, SWT.NONE);\n\t\tadvancedItem.setText(\"Advanced\");\n\t\t\n\t\tComposite advComposite = new Composite(tabFolder, SWT.NONE);\n\t\tadvancedItem.setControl(advComposite);\n\t\tadvComposite.setLayout(null);\n\t\t\n\t\tButton advSendButton = new Button(advComposite, SWT.NONE);\n\t\t\n\t\n\t\tadvSendButton.setToolTipText(\"Send arbitary data to the device.\");\n\t\n\t\tadvSendButton.setBounds(307, 31, 121, 33);\n\t\tadvSendButton.setText(\"Send Data\");\n\t\t\n\t\tLabel lblNewLabel = new Label(advComposite, SWT.NONE);\n\t\tlblNewLabel.setFont(SWTResourceManager.getFont(\"Cantarell\", 7, SWT.NORMAL));\n\t\tlblNewLabel.setBounds(10, 204, 192, 21);\n\t\tlblNewLabel.setText(\"A master thesis project by Pétur and David\");\n\t\t\n\t\tfinal StyledText advSendArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvSendArea.setToolTipText(\"This is where you type your arbitary data to send to the device.\");\n\t\tadvSendArea.setBounds(10, 31, 291, 33);\n\t\t\n\t\tButton advReceiveButton = new Button(advComposite, SWT.NONE);\n\t\t\n\n\t\t\n\t\tadvReceiveButton.setToolTipText(\"Receive data from the database.\");\n\t\tadvReceiveButton.setBounds(10, 70, 99, 33);\n\t\tadvReceiveButton.setText(\"Receive Data\");\n\t\t\n\t\tfinal StyledText advReceiveArea = new StyledText(advComposite, SWT.BORDER | SWT.WRAP);\n\t\tadvReceiveArea.setToolTipText(\"This is where the receive data will be presented.\");\n\t\tadvReceiveArea.setBounds(115, 67, 313, 70);\n\t\t\n\t\tButton advAscii = new Button(advComposite, SWT.RADIO);\n\t\tadvAscii.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 1;\n\t\t\t}\n\t\t});\n\t\t\n\t\tadvReceiveButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receiving the data, please wait...\");\n\t\t\t\tXBNConnection xbn = new XBNConnection();\n\t\t\t\tString text = xbn.getNodeFaults(advType);\n\t\t\t\tadvReceiveArea.setText(text);\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvReceiveArea.setText(\"Receivng data from device, please wait\");\n\t\t\t}\n\t\t});\n\t\tadvAscii.setSelection(true);\n\t\tadvAscii.setToolTipText(\"Show the database results as ascii.\");\n\t\tadvAscii.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvAscii.setBounds(10, 109, 54, 25);\n\t\tadvAscii.setText(\"ascii\");\n\t\t\n\t\tButton advHex = new Button(advComposite, SWT.RADIO);\n\t\tadvHex.setToolTipText(\"Show the database results as hex.\");\n\t\tadvHex.setFont(SWTResourceManager.getFont(\"Cantarell\", 9, SWT.NORMAL));\n\t\tadvHex.setBounds(66, 109, 43, 25);\n\t\tadvHex.setText(\"hex\");\n\t\tadvHex.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\t\t\t\tadvType = 2;\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnDeleteDatabase = new Button(advComposite, SWT.NONE);\n\t\tbtnDeleteDatabase.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tdb.deleteMessages();\n\t\t\t\tadvReceiveArea.setText(\"Deleted data from database\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnDeleteDatabase.setToolTipText(\"Delete entries in the database.\");\n\t\tbtnDeleteDatabase.setText(\"Delete database\");\n\t\tbtnDeleteDatabase.setBounds(269, 192, 159, 33);\n\t\t\n\t\n\t\t\n\n\t\t/*\n\t\t * This is the advanced send button. Can send arbitary text to the device.\n\t\t */\n\t\t\n\t\tadvSendButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t\t//advSendArea.setText(\"Sending: '\"+advSendArea.getText()+\"' to the device, please wait...\");\n\t\t\t\tString theText = advSendArea.getText();\n\t\t\t\tSystem.out.println(\"Texten som ska skickas är: \" + theText);\n\t\t\t\t\n\t\t\t\tRest rest = new Rest();\n\t\t\t\tString chunkText = \"\";\n\t\t\t\tXBNConnection db = new XBNConnection();\n\t\t\t\tStringBuilder sb = new StringBuilder(theText);\n\t\t\t\t// Add and @ to be sure that there will never be two strings that are\n\t\t\t\t// the same in a row.\n\t\t\t\t// for (int i = 3; i < sb.toString().length(); i += 6) {\n\t\t\t\t// sb.insert(i, \"@\");\n\t\t\t\t// }\n\t\t\t\t// theText = sb.toString();\n\t\t\t\tSystem.out.println(theText);\n\n\t\t\t\tdo {\n\t\t\t\t\t// System.out.println(\"Längded på theText i restCallImpl \"+theText.length()\n\t\t\t\t\t// +\" och det står \" +theText);\n\n\t\t\t\t\tif (theText.length() < 3) {\n\t\t\t\t\t\tchunkText = theText.substring(0, theText.length());\n\t\t\t\t\t\tint pad = theText.length() % 3;\n\t\t\t\t\t\tif (pad == 1) {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchunkText = chunkText + \" \";\n\t\t\t\t\t\t\ttheText = theText + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tchunkText = theText.substring(0, 3);\n\t\t\t\t\t}\n\n\t\t\t\t\ttheText = theText.substring(3);\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\trest.doPut(chunkText);\n\t\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\twhile (theText.length() > 0 && db.getAck(chunkText, rest));\n\t\t\t\tadvSendArea.setText(\"Data sent to the device.\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t\t\n\t\t});\n\n\t}",
"protected void createContents() {\n\t\tshell = new Shell(shell,SWT.SHELL_TRIM|SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\chaogushenqi.png\"));\n\t\tshell.setSize(467, 398);\n\t\tshell.setText(\"\\u5356\\u7A7A\");\n\t\t\n\t\ttext_code = new Text(shell, SWT.BORDER);\n\t\ttext_code.setBounds(225, 88, 73, 23);\n\t\t\n\t\ttext_uprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_uprice.setBounds(225, 117, 73, 23);\n\t\t\n\t\ttext_downprice = new Text(shell, SWT.BORDER | SWT.READ_ONLY);\n\t\ttext_downprice.setBounds(225, 146, 73, 23);\n\t\t\n\t\ttext_price = new Text(shell, SWT.BORDER);\n\t\ttext_price.setBounds(225, 178, 73, 23);\n\t\t\n\t\ttext_num = new Text(shell, SWT.BORDER);\n\t\ttext_num.setBounds(225, 207, 73, 23);\n\t\t\n\t\t//下单,取消按钮\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tpaceoder();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(116, 284, 58, 27);\n\t\tbtnNewButton.setText(\"\\u4E0B\\u5355\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(225, 284, 58, 27);\n\t\tbtnNewButton_1.setText(\"\\u53D6\\u6D88\");\n\t\t\n\t\tLabel lbl_code = new Label(shell, SWT.NONE);\n\t\tlbl_code.setBounds(116, 91, 60, 17);\n\t\tlbl_code.setText(\"股票代码:\");\n\t\t\n\t\tLabel lbl_upprice = new Label(shell, SWT.NONE);\n\t\tlbl_upprice.setBounds(116, 120, 60, 17);\n\t\tlbl_upprice.setText(\"涨停价格:\");\n\t\t\n\t\tLabel lbl_downprice = new Label(shell, SWT.NONE);\n\t\tlbl_downprice.setBounds(116, 152, 60, 17);\n\t\tlbl_downprice.setText(\"跌停价格:\");\n\t\t\n\t\tLabel lbl_price = new Label(shell, SWT.NONE);\n\t\tlbl_price.setBounds(116, 181, 60, 17);\n\t\tlbl_price.setText(\"委托价格:\");\n\t\t\n\t\tLabel lbl_num = new Label(shell, SWT.NONE);\n\t\tlbl_num.setBounds(116, 210, 60, 17);\n\t\tlbl_num.setText(\"委托数量:\");\n\t\t\n\t\tLabel lbl_date = new Label(shell, SWT.NONE);\n\t\tlbl_date.setBounds(116, 243, 61, 17);\n\t\tlbl_date.setText(\"日 期:\");\n\t\t\n\t\ttext_dateTime = new DateTime(shell, SWT.BORDER);\n\t\ttext_dateTime.setBounds(225, 237, 88, 24);\n\t\t\n\t\tlbl_notice = new Label(shell, SWT.BORDER);\n\t\tlbl_notice.setBounds(316, 333, 125, 17);\n\t\t\n\t\tif (information == null) {\n\n\t\t\tfinal Label lbl_search = new Label(shell, SWT.NONE);\n\t\t\tlbl_search.addMouseListener(new MouseAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t\t\tlbl_searchEvent();\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search.addMouseTrackListener(new MouseTrackAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEnter(MouseEvent e) {\n\t\t\t\t\tlbl_search.setBackground(Display.getCurrent()\n\t\t\t\t\t\t\t.getSystemColor(SWT.COLOR_GREEN));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExit(MouseEvent e) {\n\t\t\t\t\tlbl_search\n\t\t\t\t\t\t\t.setBackground(Display\n\t\t\t\t\t\t\t\t\t.getCurrent()\n\t\t\t\t\t\t\t\t\t.getSystemColor(\n\t\t\t\t\t\t\t\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\t\t\t}\n\t\t\t});\n\t\t\tlbl_search\n\t\t\t\t\t.setImage(SWTResourceManager\n\t\t\t\t\t\t\t.getImage(\"C:\\\\Users\\\\Administrator\\\\Desktop\\\\GupiaoNo4\\\\Project\\\\GupiaoNo4\\\\data\\\\检查.png\"));\n\t\t\tlbl_search.setBounds(354, 91, 18, 18);\n\n\t\t\ttext_place = new Text(shell, SWT.BORDER);\n\t\t\ttext_place.setBounds(304, 88, 32, 23);\n\n\t\t} else {\n\t\t\ttrade_shortsell();// 显示文本框内容\n\t\t}\n\t\t\n\t}",
"private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}",
"protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}",
"private void createSShell(Display display) {\r\n\t\tsShell = new Shell(display, SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);\r\n\t\t//sShell = new Shell();\r\n\t\tsShell.setText(\"Read\");\r\n\t\tsShell.setLayout(null);\r\n\t\tsShell.setSize(new Point(240, 188));\r\n\t\tlabelTagId = new Label(sShell, SWT.WRAP);\r\n\t\tlabelTagId.setText(\"Tag ID (Hex)\");\r\n\t\tlabelTagId.setFont(new Font(Display.getDefault(), \"Tahoma\", 7, SWT.NORMAL));\r\n\t\tlabelTagId.setBounds(new Rectangle(6, 2, 46, 23));\r\n\t\ttextTagId = new Text(sShell, SWT.BORDER);\r\n\t\ttextTagId.setBounds(new Rectangle(54, 1, 175, 21));\r\n\t\ttextTagId.addModifyListener(new org.eclipse.swt.events.ModifyListener() {\r\n\t\t\tpublic void modifyText(org.eclipse.swt.events.ModifyEvent e) {\r\n\t\t if (textTagId.getText().length() == 0)\r\n\t\t buttonAccessFilter.setEnabled(true);\r\n\t\t else\r\n\t\t buttonAccessFilter.setEnabled(false);\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tlabelPassWord = new Label(sShell, SWT.WRAP);\r\n\t\tlabelPassWord.setBounds(new Rectangle(5, 26, 47, 26));\r\n\t\tlabelPassWord.setFont(new Font(Display.getDefault(), \"Tahoma\", 7, SWT.NORMAL));\r\n\t\tlabelPassWord.setText(\"Password (Hex)\");\r\n\t\ttextPassword = new Text(sShell, SWT.BORDER);\r\n\t\ttextPassword.setBounds(new Rectangle(54, 29, 175, 19));\r\n\t\tlabelMemBank = new Label(sShell, SWT.WRAP);\r\n\t\tlabelMemBank.setBounds(new Rectangle(5, 54, 38, 24));\r\n\t\tlabelMemBank.setText(\"Memory Bank\");\r\n\t\tlabelMemBank.setFont(new Font(Display.getDefault(), \"Tahoma\", 7, SWT.NORMAL));\r\n\t\tcreateComboMemBank();\r\n\t\tlabelOffset = new Label(sShell, SWT.WRAP);\r\n\t\tlabelOffset.setBounds(new Rectangle(6, 82, 35, 24));\r\n\t\tlabelOffset.setText(\"Offset (bytes)\");\r\n\t\tlabelOffset.setFont(new Font(Display.getDefault(), \"Tahoma\", 7, SWT.NORMAL));\r\n\t\ttextOffSet = new Text(sShell, SWT.BORDER);\r\n\t\ttextOffSet.setBounds(new Rectangle(54, 82, 61, 19));\r\n\t\tlabelLength = new Label(sShell, SWT.WRAP);\r\n\t\tlabelLength.setBounds(new Rectangle(124, 82, 40, 23));\r\n\t\tlabelLength.setText(\"Length (bytes)\");\r\n\t\tlabelLength.setFont(new Font(Display.getDefault(), \"Tahoma\", 7, SWT.NORMAL));\r\n\t\ttextLength = new Text(sShell, SWT.BORDER);\r\n\t\ttextLength.setBounds(new Rectangle(169, 82, 57, 19));\r\n\t\tlabelDataRead = new Label(sShell, SWT.WRAP);\r\n\t\tlabelDataRead.setBounds(new Rectangle(6, 106, 58, 11));\r\n\t\tlabelDataRead.setText(\"Data Read\");\r\n\t\tlabelDataRead.setFont(new Font(Display.getDefault(), \"Tahoma\", 7, SWT.NORMAL));\r\n\t\ttextDataRead = new Text(sShell, SWT.BORDER | SWT.MULTI | SWT.READ_ONLY | SWT.V_SCROLL);\r\n\t\ttextDataRead.setBounds(new Rectangle(6, 118, 219, 27));\r\n\t\tbuttonAccessFilter = new Button(sShell, SWT.NONE);\r\n\t\tbuttonAccessFilter.setBounds(new Rectangle(7, 146, 66, 16));\r\n\t\tbuttonAccessFilter.setText(\"Access Filter\");\r\n\t\tbuttonRead = new Button(sShell, SWT.NONE);\r\n\t\tbuttonRead.setBounds(new Rectangle(154, 146, 72, 16));\r\n\t\tbuttonRead.setText(\"Read\");\r\n\t\t\r\n\t\tbuttonRead.addSelectionListener(new org.eclipse.swt.events.SelectionListener() { \r\n\t\t\tpublic void widgetSelected(org.eclipse.swt.events.SelectionEvent e) { \r\n\t\t try {\r\n\t\t TagAccess tagAccess = new TagAccess();\r\n\t\t TagAccess.ReadAccessParams readAccessParams = tagAccess.new ReadAccessParams();\r\n\t\t MEMORY_BANK memBank = MEMORY_BANK.MEMORY_BANK_EPC;\r\n\t\t switch (comboMemBank.getSelectionIndex()) {\r\n\t\t case 0:\r\n\t\t memBank = MEMORY_BANK.MEMORY_BANK_RESERVED;\r\n\t\t break;\r\n\t\t case 1:\r\n\t\t memBank = MEMORY_BANK.MEMORY_BANK_EPC;\r\n\t\t break;\r\n\t\t case 2:\r\n\t\t memBank = MEMORY_BANK.MEMORY_BANK_TID;\r\n\t\t break;\r\n\t\t case 3:\r\n\t\t memBank = MEMORY_BANK.MEMORY_BANK_USER;\r\n\t\t break;\r\n\t\t }\r\n\t\t readAccessParams.setMemoryBank(memBank);\r\n\t\t readAccessParams.setByteCount(Integer.parseInt(textLength.getText()));\r\n\t\t readAccessParams.setByteOffset(Integer.parseInt(textOffSet.getText()));\r\n\t\t readAccessParams.setAccessPassword(Long.parseLong(textPassword.getText(), 16));\r\n\r\n\t\t if (textTagId.getText().length() > 0) {\r\n\t\t TagData readTagData = RFIDMainDlg.rfidBase.getMyReader().Actions.TagAccess.readWait(tagID, readAccessParams,\r\n\t\t RFIDMainDlg.rfidBase.antennaInfo.getAntennaID() != null ? RFIDMainDlg.rfidBase.antennaInfo : null);\r\n\t\t textDataRead.setText(readTagData.getMemoryBankData());\r\n\t\t } else {\r\n\t\t \r\n\t\t RFIDMainDlg.rfidBase.getMyReader().Actions.TagAccess.readEvent(readAccessParams, RFIDMainDlg.rfidBase.isAccessFilterSet ? RFIDMainDlg.rfidBase.accessFilter : null,\r\n\t\t RFIDMainDlg.rfidBase.antennaInfo.getAntennaID() != null ? RFIDMainDlg.rfidBase.antennaInfo : null);\r\n\t\t \r\n\r\n\t\t }\r\n\r\n\t\t RFIDMainDlg.rfidBase.postStatusNotification(RFIDBase.API_SUCCESS, null);\r\n\r\n\t\t } catch (InvalidUsageException ex) {\r\n\t\t RFIDMainDlg.rfidBase.postStatusNotification(RFIDBase.PARAM_ERROR, ex.getVendorMessage());\r\n\t\t } catch (OperationFailureException ex) {\r\n\t\t RFIDMainDlg.rfidBase.postStatusNotification(ex.getStatusDescription(), ex.getVendorMessage());\r\n\t\t }\r\n\r\n\t\t\t}\r\n\t\t\r\n\t\t\tpublic void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) {\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}",
"public void createSShell() {\r\n\t\tGridData gridData = new GridData();\r\n\t\tgridData.widthHint = 500;\r\n\t\tgridData.horizontalAlignment = org.eclipse.swt.layout.GridData.CENTER;\r\n\t\tgridData.grabExcessHorizontalSpace = true;\r\n\t\tgridData.heightHint = 80;\r\n\t\tsShell = new Shell();\r\n\t\tsShell.setText(\"系统管理\");\r\n\t\tsShell.setSize(new Point(703, 656));\r\n\t\tsShell.setLayout(new GridLayout());\r\n\t\tcLabel = new CLabel(sShell, SWT.CENTER);\r\n\t\tcLabel.setImage(new Image(Display.getCurrent(), getClass().getResourceAsStream(\"/images/news.png\")));\r\n\t\tcLabel.setFont(new Font(Display.getDefault(), \"微软雅黑\", 18, SWT.NORMAL));\r\n\t\tcLabel.setLayoutData(gridData);\r\n\t\tcLabel.setText(\"系统管理\");\r\n\t\tcreateTabFolder();\r\n\t\tif(SystemMainShell.userType.equals(\"管理员\")){\r\n\t\t\tbuttonAddRoom.setEnabled(true);\r\n\t\t\tbuttonDeleteRoom.setEnabled(true);\r\n\t\t//\tbuttonAddGoods.setEnabled(true);\r\n\t\t//\tbuttonDeleteGoods.setEnabled(true);\r\n\t\t\tbuttonAddStaff.setEnabled(true);\r\n\t\t\tbuttonDeleteStaff.setEnabled(true);\r\n\t\t\tbuttonAddUser.setEnabled(true);\r\n\t\t\tbuttonDeleteUser.setEnabled(true);\r\n\t\t}else if(SystemMainShell.userType.equals(\"操作员\")){\r\n\t\t\tbuttonAddRoom.setEnabled(false);\r\n\t\t\tbuttonDeleteRoom.setEnabled(false);\r\n\t\t//\tbuttonAddGoods.setEnabled(false);\r\n\t\t//\tbuttonDeleteGoods.setEnabled(false);\r\n\t\t\tbuttonAddStaff.setEnabled(false);\r\n\t\t\tbuttonDeleteStaff.setEnabled(false);\r\n\t\t\tbuttonAddUser.setEnabled(false);\r\n\t\t\tbuttonDeleteUser.setEnabled(false);\r\n\t\t}\r\n\t}",
"protected void createContents() {\n\t\tshlCarbAndRemainder = new Shell(Display.getDefault(), SWT.TITLE|SWT.CLOSE|SWT.BORDER);\n\t\tshlCarbAndRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tshlCarbAndRemainder.setSize(323, 262);\n\t\tshlCarbAndRemainder.setText(\"CARB and Remainder\");\n\t\t\n\t\tGroup grpCarbSetting = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpCarbSetting.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpCarbSetting.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpCarbSetting.setText(\"CARB Setting\");\n\t\t\n\t\tgrpCarbSetting.setBounds(10, 0, 295, 106);\n\t\t\n\t\tLabel lblCARBValue = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblCARBValue.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblCARBValue.setBounds(10, 32, 149, 22);\n\t\tlblCARBValue.setText(\"CARB Value\");\n\t\t\n\t\tLabel lblAuthenticationPIN = new Label(grpCarbSetting, SWT.NONE);\n\t\tlblAuthenticationPIN.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlblAuthenticationPIN.setBounds(10, 68, 149, 22);\n\t\tlblAuthenticationPIN.setText(\"Authentication PIN\");\n\t\t\n\t\tSpinner spinnerCARBValue = new Spinner(grpCarbSetting, SWT.BORDER);\n\t\tspinnerCARBValue.setBounds(206, 29, 72, 22);\n\t\t\n\t\ttextAuthenticationPIN = new Text(grpCarbSetting, SWT.BORDER|SWT.PASSWORD);\n\t\ttextAuthenticationPIN.setBounds(206, 65, 72, 21);\n\t\t\t\t\n\t\tGroup grpRemainder = new Group(shlCarbAndRemainder, SWT.NONE);\n\t\tgrpRemainder.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tgrpRemainder.setFont(SWTResourceManager.getFont(\"Calibri\", 12, SWT.BOLD));\n\t\tgrpRemainder.setText(\"Remainder\");\n\t\tgrpRemainder.setBounds(10, 112, 296, 106);\n\t\t\n\t\tButton btnInjectBolus = new Button(grpRemainder, SWT.NONE);\n\t\tbtnInjectBolus.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnInjectBolus.setBounds(183, 38, 103, 41);\n\t\tbtnInjectBolus.setText(\"INJECT BOLUS\");\n\t\t\n\t\tButton btnCancel = new Button(grpRemainder, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshlCarbAndRemainder.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(10, 38, 80, 41);\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnSnooze = new Button(grpRemainder, SWT.NONE);\n\t\tbtnSnooze.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnSnooze.setBounds(96, 38, 81, 41);\n\t\tbtnSnooze.setText(\"Snooze\");\n\n\t}",
"private void createContents() {\n\t\tshlEditionRussie = new Shell(getParent(), getStyle());\n\t\tshlEditionRussie.setSize(470, 262);\n\t\tshlEditionRussie.setText(\"Edition r\\u00E9ussie\");\n\t\t\n\t\tLabel lblLeFilm = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblLeFilm.setBounds(153, 68, 36, 15);\n\t\tlblLeFilm.setText(\"Le film\");\n\t\t\n\t\tLabel lblXx = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblXx.setBounds(195, 68, 21, 15);\n\t\tlblXx.setText(\"\" + getViewModel());\n\t\t\n\t\tLabel lblABient = new Label(shlEditionRussie, SWT.NONE);\n\t\tlblABient.setText(\"a bien \\u00E9t\\u00E9 modifi\\u00E9\");\n\t\tlblABient.setBounds(222, 68, 100, 15);\n\t\t\n\t\tButton btnRevenirLa = new Button(shlEditionRussie, SWT.NONE);\n\t\tbtnRevenirLa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tm_Infrastructure.runController(shlEditionRussie, ListMoviesController.class);\n\t\t\t}\n\t\t});\n\t\tbtnRevenirLa.setBounds(153, 105, 149, 25);\n\t\tbtnRevenirLa.setText(\"Revenir \\u00E0 la liste des films\");\n\n\t}",
"protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setModified(true);\n\t\tshell.setSize(512, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\tshell.setLayout(null);\n\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.VERTICAL);\n\t\tlabel.setBounds(253, 26, 2, 225);\n\n\t\tcomboCarBrandBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_1.setText(\"Selected\");\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandBuy.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandBuy.setBounds(87, 33, 123, 23);\n\t\tcomboCarBrandBuy.setText(\"--select--\");\n\n\t\tLabel lblCarBrand = new Label(shell, SWT.NONE);\n\t\tlblCarBrand.setAlignment(SWT.RIGHT);\n\t\tlblCarBrand.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarBrand.setBounds(12, 38, 71, 15);\n\t\tlblCarBrand.setText(\"Car Brand :\");\n\n\t\ttextCarNameBuy = new Text(shell, SWT.BORDER);\n\t\ttextCarNameBuy.setBounds(87, 67, 123, 21);\n\n\t\tLabel lblCarName = new Label(shell, SWT.NONE);\n\t\tlblCarName.setAlignment(SWT.RIGHT);\n\t\tlblCarName.setText(\"Car Name :\");\n\t\tlblCarName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblCarName.setBounds(12, 70, 71, 15);\n\n\t\tcomboCarModelBuy = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelBuy.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelBuy.setBounds(87, 99, 91, 23);\n\t\tcomboCarModelBuy.setText(\"--select--\");\n\n\t\tLabel lblModelYear = new Label(shell, SWT.NONE);\n\t\tlblModelYear.setAlignment(SWT.RIGHT);\n\t\tlblModelYear.setText(\"Model :\");\n\t\tlblModelYear.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlblModelYear.setBounds(12, 105, 71, 15);\n\n\t\tButton buttonBuy = new Button(shell, SWT.NONE);\n\t\tbuttonBuy.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carName = textCarNameBuy.getText();\n\t\t\t\tString carModel = comboCarModelBuy.getText();\n\n\t\t\t\tif(comboCarBrandBuy.getText().equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tmarutiMap.put(carName, carModel);\n\t\t\t\t}\n\n\t\t\t\tlabel_1.setText(\"Added to Inventory\");\n\t\t\t\tSystem.out.println(marutiMap);\n\t\t\t}\n\t\t});\n\t\tbuttonBuy.setBounds(87, 138, 63, 25);\n\t\tbuttonBuy.setText(\"BUY\");\n\n\t\tlabel_1 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_1.setBounds(73, 198, 137, 19);\n\n\t\tLabel lblStatus = new Label(shell, SWT.NONE);\n\t\tlblStatus.setBounds(22, 198, 45, 15);\n\t\tlblStatus.setText(\"Status :\");\n\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\n\t\tlabel_2.setText(\"Car Brand :\");\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_2.setAlignment(SWT.RIGHT);\n\t\tlabel_2.setBounds(280, 38, 71, 15);\n\n\t\tcomboCarBrandSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarBrandSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tString carBrand = comboCarBrandSell.getText();\n\t\t\t\tcomboCarNameSell.clearSelection();\n\t\t\t\t\n\t\t\t\tif(carBrand.equalsIgnoreCase(\"maruti\")){\n\t\t\t\t\tSet<String> keyList = marutiMap.keySet();\n\t\t\t\t\tint i=0;\n\t\t\t\t\tfor(String key : keyList){\n\t\t\t\t\t\tcarNames.add(key);\n\t\t\t\t\t\t//comboCarNameSell.setItem(i, key);\n\t\t\t\t\t\t//i++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tString[] strArray = (String[]) carNames.toArray(new String[0]);\n\t\t\t\tSystem.out.println();\n\t\t\t\tcomboCarNameSell.setItems(strArray);\n\n\t\t\t}\n\t\t});\n\t\tcomboCarBrandSell.setItems(new String[] {\"Maruti\", \"Fiat\", \"Tata\", \"Ford\", \"Honda\", \"Hyundai\"});\n\t\tcomboCarBrandSell.setBounds(355, 33, 123, 23);\n\t\tcomboCarBrandSell.setText(\"--select--\");\n\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\n\t\tlabel_3.setText(\"Car Name :\");\n\t\tlabel_3.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_3.setAlignment(SWT.RIGHT);\n\t\tlabel_3.setBounds(280, 70, 71, 15);\n\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\n\t\tlabel_4.setText(\"Model :\");\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlabel_4.setAlignment(SWT.RIGHT);\n\t\tlabel_4.setBounds(280, 105, 71, 15);\n\n\t\tCombo comboCarModelSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarModelSell.setItems(new String[] {\"2015\", \"2014\", \"2013\", \"2012\", \"2011\", \"2010\", \"2009\", \"2008\", \"2007\", \"2006\", \"2005\", \"2004\", \"2003\", \"2002\", \"2001\", \"2000\"});\n\t\tcomboCarModelSell.setBounds(355, 99, 91, 23);\n\t\tcomboCarModelSell.setText(\"--select--\");\n\n\t\tButton buttonSell = new Button(shell, SWT.NONE);\n\t\tbuttonSell.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tlabel_5.setText(\"Sold Successfully\");\n\t\t\t}\n\t\t});\n\t\tbuttonSell.setText(\"SELL\");\n\t\tbuttonSell.setBounds(355, 138, 63, 25);\n\n\t\tlabel_5 = new Label(shell, SWT.BORDER | SWT.HORIZONTAL | SWT.CENTER);\n\t\tlabel_5.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_5.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\tlabel_5.setBounds(341, 198, 137, 19);\n\n\t\tLabel label_6 = new Label(shell, SWT.NONE);\n\t\tlabel_6.setText(\"Status :\");\n\t\tlabel_6.setBounds(290, 198, 45, 15);\n\n\t\tcomboCarNameSell = new Combo(shell, SWT.READ_ONLY);\n\t\tcomboCarNameSell.setItems(new String[] {});\n\t\tcomboCarNameSell.setBounds(355, 65, 123, 23);\n\t\tcomboCarNameSell.setText(\"--select--\");\n\n\t}",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setImage(SWTResourceManager.getImage(mainFrame.class, \"/imgCompand/main/logo.png\"));\r\n\t\tshell.setSize(935, 650);\r\n\t\tshell.setMinimumSize(920, 650);\r\n\t\tcenter(shell);\r\n\t\tshell.setText(\"三合一\");\r\n\t\tshell.setLayout(new GridLayout(8, false));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setText(\"面单图片:\");\r\n\t\t\r\n\t\ttext_mdtp = new Text(shell, SWT.BORDER);\r\n\t\ttext_mdtp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存面单图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString mdtp=dd.open();\r\n\t\t\t\tif(mdtp!=null){\r\n\t\t\t\t\ttext_mdtp.setText(mdtp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton.widthHint = 95;\r\n\t\tbtnNewButton.setLayoutData(gd_btnNewButton);\r\n\t\tbtnNewButton.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel = new Label(shell, SWT.NONE);\r\n\t\tGridData gd_lblNewLabel = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblNewLabel.widthHint = 87;\r\n\t\tlblNewLabel.setLayoutData(gd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"身份证图片:\");\r\n\t\t\r\n\t\ttext_sfztp = new Text(shell, SWT.BORDER);\r\n\t\ttext_sfztp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_1 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setMessage(\"setMessage\"); \r\n\t\t\t\tdd.setText(\"选择保存身份证图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString sfztp=dd.open();\r\n\t\t\t\tif(sfztp!=null){\r\n\t\t\t\t\ttext_sfztp.setText(sfztp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_btnNewButton_1.widthHint = 95;\r\n\t\tbtnNewButton_1.setLayoutData(gd_btnNewButton_1);\r\n\t\tbtnNewButton_1.setText(\"浏览\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setText(\"小票图片:\");\r\n\t\t\r\n\t\ttext_xptp = new Text(shell, SWT.BORDER);\r\n\t\ttext_xptp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择保存小票图片的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString xptp=dd.open();\r\n\t\t\t\tif(xptp!=null){\r\n\t\t\t\t\ttext_xptp.setText(xptp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_button = new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1);\r\n\t\tgd_button.widthHint = 95;\r\n\t\tbutton.setLayoutData(gd_button);\r\n\t\tbutton.setText(\"浏览\");\r\n\t\t\r\n\t\tlabel_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlblNewLabel_1 = new Label(shell, SWT.NONE);\r\n\t\tlblNewLabel_1.setText(\" \");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_5 = new Label(shell, SWT.NONE);\r\n\t\tlabel_5.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlabel_5.setText(\"三合一导入模板下载,请点击........\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbutton_1 = new Button(shell, SWT.NONE);\r\n\t\tGridData gd_button_1 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_button_1.widthHint = 95;\r\n\t\tbutton_1.setLayoutData(gd_button_1);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\t\tdd.setText(\"请选择文件保存的位置\"); \r\n\t\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\t\tString saveFile=dd.open(); \r\n\t\t\t\t\tif(saveFile!=null){\r\n\t\t\t\t\t\tboolean flg = FileUtil.downloadLocal(saveFile, \"/template.xls\", \"三合一导入模板.xls\");\r\n\t\t\t\t\t\tif(flg){\r\n\t\t\t\t\t\t\tMessageDialog.openInformation(shell, \"系统提示\", \"模板下载成功!保存路径为:\"+saveFile+\"/三合一导入模板.xls\");\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tMessageDialog.openError(shell, \"系统提示\", \"模板下载失败!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t }catch(Exception ex){\r\n\t\t\t\t\t System.out.print(\"创建失败\");\r\n\t\t\t\t } \r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setText(\"导入模板\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setText(\"合成信息:\");\r\n\t\t\r\n\t\ttext = new Text(shell, SWT.BORDER);\r\n\t\ttext.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnexecl = new Button(shell, SWT.NONE);\r\n\t\tbtnexecl.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tFileDialog filedia = new FileDialog(shell, SWT.SINGLE);\r\n\t\t\t\tString filepath = filedia.open()+\"\";\r\n\t\t\t\ttext.setText(filepath.replace(\"null\",\"\"));\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnexecl = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnexecl.widthHint = 95;\r\n\t\tbtnexecl.setLayoutData(gd_btnexecl);\r\n\t\tbtnexecl.setText(\"导入execl\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setText(\"合成图片:\");\r\n\t\t\r\n\t\ttext_hctp = new Text(shell, SWT.BORDER);\r\n\t\ttext_hctp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtnNewButton_2 = new Button(shell, SWT.NONE);\r\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tDirectoryDialog dd=new DirectoryDialog(shell); \r\n\t\t\t\tdd.setText(\"选择合成图片将要保存的文件夹\"); \r\n\t\t\t\tdd.setFilterPath(\"C://\"); \r\n\t\t\t\tString hctp=dd.open();\r\n\t\t\t\tif(hctp!=null){\r\n\t\t\t\t\ttext_hctp.setText(hctp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btnNewButton_2 = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btnNewButton_2.widthHint = 95;\r\n\t\tbtnNewButton_2.setLayoutData(gd_btnNewButton_2);\r\n\t\tbtnNewButton_2.setText(\"保存位置\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tlabel_6 = new Label(shell, SWT.NONE);\r\n\t\tlabel_6.setText(\"进度:\");\r\n\t\t\r\n\t\tprogressBar = new ProgressBar(shell, SWT.NONE);\r\n\t\tGridData gd_progressBar = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_progressBar.widthHint = 524;\r\n\t\tprogressBar.setMinimum(0);\r\n\t\tprogressBar.setMaximum(100);\r\n\t\tprogressBar.setLayoutData(gd_progressBar);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\tbtn_doCompImg = new Button(shell, SWT.NONE);\r\n\t\tbtn_doCompImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t//导入信息\r\n\t\t\t\tdrxx = text.getText();\r\n\t\t\t\t//保存路径\r\n\t\t\t\thctp = text_hctp.getText();\r\n\t\t\t\t//面单图片路径\r\n\t\t\t\tmdtp = text_mdtp.getText();\r\n\t\t\t\t//身份证图片路径\r\n\t\t\t\tsfztp = text_sfztp.getText();\r\n\t\t\t\t//小票图片路径\r\n\t\t\t\txptp = text_xptp.getText();\r\n\t\t\t\t//清空信息框\r\n\t\t\t\ttext_info.setText(\"\");\r\n\t\t\t\tif(!drxx.equals(\"\")&&!hctp.equals(\"\")&&!mdtp.equals(\"\")&&!sfztp.equals(\"\")&&!xptp.equals(\"\")){\r\n\t\t\t\t\t(new IncresingOperator()).start();\r\n\t\t\t\t}else{\r\n\t\t\t\t\tMessageDialog.openWarning(shell, \"系统提示\",\"各路径选项不能为空!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tGridData gd_btn_doCompImg = new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_btn_doCompImg.widthHint = 95;\r\n\t\tbtn_doCompImg.setLayoutData(gd_btn_doCompImg);\r\n\t\tbtn_doCompImg.setText(\"立即合成\");\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\t\r\n\t\ttext_info = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tGridData gd_text_info = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n\t\tgd_text_info.heightHint = 217;\r\n\t\ttext_info.setLayoutData(gd_text_info);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\t\tnew Label(shell, SWT.NONE);\r\n\r\n\t}",
"private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM | SWT.BORDER | SWT.PRIMARY_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/list-2x.png\"));\n\t\tshell.setSize(610, 340);\n\t\tshell.setText(\"Thuoc List View\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\tshell.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.ESC){\n\t\t\t\t\tobjThuoc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n \n Composite compositeInShellThuoc = new Composite(shell, SWT.NONE);\n\t\tcompositeInShellThuoc.setLayout(new BorderLayout(0, 0));\n\t\tcompositeInShellThuoc.setLayoutData(BorderLayout.CENTER);\n \n\t\tComposite compositeHeaderThuoc = new Composite(compositeInShellThuoc, SWT.NONE);\n\t\tcompositeHeaderThuoc.setLayoutData(BorderLayout.NORTH);\n\t\tcompositeHeaderThuoc.setLayout(new GridLayout(5, false));\n\n\t\ttextSearchThuoc = new Text(compositeHeaderThuoc, SWT.BORDER);\n\t\ttextSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttextSearchThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==13){\n\t\t\t\t\treloadTableThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnNewButtonSearchThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonSearchThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/media-play-2x.png\"));\n\t\tbtnNewButtonSearchThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\n\t\tbtnNewButtonSearchThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\treloadTableThuoc();\n\t\t\t}\n\t\t});\n\t\tButton btnNewButtonExportExcelThuoc = new Button(compositeHeaderThuoc, SWT.NONE);\n\t\tbtnNewButtonExportExcelThuoc.setText(\"Export Excel\");\n\t\tbtnNewButtonExportExcelThuoc.setImage(SWTResourceManager.getImage(KhamBenhListDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tbtnNewButtonExportExcelThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\tbtnNewButtonExportExcelThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tGridData gd_btnNewButtonThuoc = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNewButtonThuoc.widthHint = 87;\n\t\tbtnNewButtonSearchThuoc.setLayoutData(gd_btnNewButtonThuoc);\n\t\tbtnNewButtonSearchThuoc.setText(\"Search\");\n \n\t\ttableViewerThuoc = new TableViewer(compositeInShellThuoc, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttableThuoc = tableViewerThuoc.getTable();\n\t\ttableThuoc.setFont(SWTResourceManager.getFont(\"Tahoma\", 10, SWT.NORMAL));\n\t\ttableThuoc.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tif(e.keyCode==SWT.F5){\n\t\t\t\t\treloadTableThuoc();\n }\n if(e.keyCode==SWT.F4){\n\t\t\t\t\teditTableThuoc();\n }\n\t\t\t\telse if(e.keyCode==13){\n\t\t\t\t\tselectTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.DEL){\n\t\t\t\t\tdeleteTableThuoc();\n\t\t\t\t}\n else if(e.keyCode==SWT.F7){\n\t\t\t\t\tnewItemThuoc();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n tableThuoc.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tselectTableThuoc();\n\t\t\t}\n\t\t});\n \n\t\ttableThuoc.setLinesVisible(true);\n\t\ttableThuoc.setHeaderVisible(true);\n\t\ttableThuoc.setLayoutData(BorderLayout.CENTER);\n\n\t\tTableColumn tbTableColumnThuocMA_HOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocMA_HOAT_CHAT.setText(\"MA_HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocMA_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_AX.setText(\"MA_AX\");\n\n\t\tTableColumn tbTableColumnThuocHOAT_CHAT = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOAT_CHAT.setWidth(100);\n\t\ttbTableColumnThuocHOAT_CHAT.setText(\"HOAT_CHAT\");\n\n\t\tTableColumn tbTableColumnThuocHOATCHAT_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHOATCHAT_AX.setWidth(100);\n\t\ttbTableColumnThuocHOATCHAT_AX.setText(\"HOATCHAT_AX\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONG_DUNG.setText(\"MA_DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocMA_DUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocMA_DUONGDUNG_AX.setText(\"MA_DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocDUONG_DUNG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONG_DUNG.setWidth(100);\n\t\ttbTableColumnThuocDUONG_DUNG.setText(\"DUONG_DUNG\");\n\n\t\tTableColumn tbTableColumnThuocDUONGDUNG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setWidth(100);\n\t\ttbTableColumnThuocDUONGDUNG_AX.setText(\"DUONGDUNG_AX\");\n\n\t\tTableColumn tbTableColumnThuocHAM_LUONG = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAM_LUONG.setWidth(100);\n\t\ttbTableColumnThuocHAM_LUONG.setText(\"HAM_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocHAMLUONG_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHAMLUONG_AX.setWidth(100);\n\t\ttbTableColumnThuocHAMLUONG_AX.setText(\"HAMLUONG_AX\");\n\n\t\tTableColumn tbTableColumnThuocTEN_THUOC = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTEN_THUOC.setWidth(100);\n\t\ttbTableColumnThuocTEN_THUOC.setText(\"TEN_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocTENTHUOC_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocTENTHUOC_AX.setWidth(100);\n\t\ttbTableColumnThuocTENTHUOC_AX.setText(\"TENTHUOC_AX\");\n\n\t\tTableColumn tbTableColumnThuocSO_DANG_KY = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSO_DANG_KY.setWidth(100);\n\t\ttbTableColumnThuocSO_DANG_KY.setText(\"SO_DANG_KY\");\n\n\t\tTableColumn tbTableColumnThuocSODANGKY_AX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocSODANGKY_AX.setWidth(100);\n\t\ttbTableColumnThuocSODANGKY_AX.setText(\"SODANGKY_AX\");\n\n\t\tTableColumn tbTableColumnThuocDONG_GOI = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDONG_GOI.setWidth(100);\n\t\ttbTableColumnThuocDONG_GOI.setText(\"DONG_GOI\");\n\n\t\tTableColumn tbTableColumnThuocDON_VI_TINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocDON_VI_TINH.setWidth(100);\n\t\ttbTableColumnThuocDON_VI_TINH.setText(\"DON_VI_TINH\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA.setText(\"DON_GIA\");\n\n\n\t\tTableColumn tbTableColumnThuocDON_GIA_TT = new TableColumn(tableThuoc, SWT.NONE);\n\t\ttbTableColumnThuocDON_GIA_TT.setWidth(100);\n\t\ttbTableColumnThuocDON_GIA_TT.setText(\"DON_GIA_TT\");\n\n\t\tTableColumn tbTableColumnThuocSO_LUONG = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocSO_LUONG.setWidth(100);\n\t\ttbTableColumnThuocSO_LUONG.setText(\"SO_LUONG\");\n\n\t\tTableColumn tbTableColumnThuocMA_CSKCB = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_CSKCB.setWidth(100);\n\t\ttbTableColumnThuocMA_CSKCB.setText(\"MA_CSKCB\");\n\n\t\tTableColumn tbTableColumnThuocHANG_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocHANG_SX.setWidth(100);\n\t\ttbTableColumnThuocHANG_SX.setText(\"HANG_SX\");\n\n\t\tTableColumn tbTableColumnThuocNUOC_SX = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNUOC_SX.setWidth(100);\n\t\ttbTableColumnThuocNUOC_SX.setText(\"NUOC_SX\");\n\n\t\tTableColumn tbTableColumnThuocNHA_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHA_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHA_THAU.setText(\"NHA_THAU\");\n\n\t\tTableColumn tbTableColumnThuocQUYET_DINH = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocQUYET_DINH.setWidth(100);\n\t\ttbTableColumnThuocQUYET_DINH.setText(\"QUYET_DINH\");\n\n\t\tTableColumn tbTableColumnThuocCONG_BO = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocCONG_BO.setWidth(100);\n\t\ttbTableColumnThuocCONG_BO.setText(\"CONG_BO\");\n\n\t\tTableColumn tbTableColumnThuocMA_THUOC_BV = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocMA_THUOC_BV.setWidth(100);\n\t\ttbTableColumnThuocMA_THUOC_BV.setText(\"MA_THUOC_BV\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THUOC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THUOC.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THUOC.setText(\"LOAI_THUOC\");\n\n\t\tTableColumn tbTableColumnThuocLOAI_THAU = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocLOAI_THAU.setWidth(100);\n\t\ttbTableColumnThuocLOAI_THAU.setText(\"LOAI_THAU\");\n\n\t\tTableColumn tbTableColumnThuocNHOM_THAU = new TableColumn(tableThuoc, SWT.LEFT);\n\t\ttbTableColumnThuocNHOM_THAU.setWidth(100);\n\t\ttbTableColumnThuocNHOM_THAU.setText(\"NHOM_THAU\");\n\n\t\tTableColumn tbTableColumnThuocMANHOM_9324 = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocMANHOM_9324.setWidth(100);\n\t\ttbTableColumnThuocMANHOM_9324.setText(\"MANHOM_9324\");\n\n\t\tTableColumn tbTableColumnThuocHIEULUC = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocHIEULUC.setWidth(100);\n\t\ttbTableColumnThuocHIEULUC.setText(\"HIEULUC\");\n\n\t\tTableColumn tbTableColumnThuocKETQUA = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocKETQUA.setWidth(100);\n\t\ttbTableColumnThuocKETQUA.setText(\"KETQUA\");\n\n\t\tTableColumn tbTableColumnThuocTYP = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTYP.setWidth(100);\n\t\ttbTableColumnThuocTYP.setText(\"TYP\");\n\n\t\tTableColumn tbTableColumnThuocTHUOC_RANK = new TableColumn(tableThuoc, SWT.RIGHT);\n\t\ttbTableColumnThuocTHUOC_RANK.setWidth(100);\n\t\ttbTableColumnThuocTHUOC_RANK.setText(\"THUOC_RANK\");\n\n Menu menuThuoc = new Menu(tableThuoc);\n\t\ttableThuoc.setMenu(menuThuoc);\n\t\t\n\t\tMenuItem mntmNewItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmNewItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tnewItemThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmNewItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/arrow-circle-top-2x.png\"));\n\t\tmntmNewItemThuoc.setText(\"New\");\n\t\t\n\t\tMenuItem mntmEditItemThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmEditItemThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/wrench-2x.png\"));\n\t\tmntmEditItemThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\teditTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmEditItemThuoc.setText(\"Edit\");\n\t\t\n\t\tMenuItem mntmDeleteThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmDeleteThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/circle-x-2x.png\"));\n\t\tmntmDeleteThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdeleteTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmDeleteThuoc.setText(\"Delete\");\n\t\t\n\t\tMenuItem mntmExportThuoc = new MenuItem(menuThuoc, SWT.NONE);\n\t\tmntmExportThuoc.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\texportExcelTableThuoc();\n\t\t\t}\n\t\t});\n\t\tmntmExportThuoc.setImage(SWTResourceManager.getImage(ThuocDlg.class, \"/png/spreadsheet-2x.png\"));\n\t\tmntmExportThuoc.setText(\"Export Excel\");\n\t\t\n\t\ttableViewerThuoc.setLabelProvider(new TableLabelProviderThuoc());\n\t\ttableViewerThuoc.setContentProvider(new ContentProviderThuoc());\n\t\ttableViewerThuoc.setInput(listDataThuoc);\n //\n //\n\t\tloadDataThuoc();\n\t\t//\n reloadTableThuoc();\n\t}",
"private void createContents() {\r\n\t\tshlAboutGoko = new Shell(getParent(), getStyle());\r\n\t\tshlAboutGoko.setSize(376, 248);\r\n\t\tshlAboutGoko.setText(\"About Goko\");\r\n\t\tshlAboutGoko.setLayout(new GridLayout(1, false));\r\n\r\n\t\tComposite composite_1 = new Composite(shlAboutGoko, SWT.NONE);\r\n\t\tcomposite_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\r\n\t\tcomposite_1.setLayout(new GridLayout(1, false));\r\n\r\n\t\tLabel lblGokoIsA = new Label(composite_1, SWT.WRAP);\r\n\t\tGridData gd_lblGokoIsA = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblGokoIsA.widthHint = 350;\r\n\t\tlblGokoIsA.setLayoutData(gd_lblGokoIsA);\r\n\t\tlblGokoIsA.setText(\"Goko is an open source desktop application for CNC control and operation\");\r\n\r\n\t\tComposite composite_2 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblAlphaVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblAlphaVersion.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblAlphaVersion.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblAlphaVersion.setText(\"Version\");\r\n\r\n\t\tLabel lblVersion = new Label(composite_2, SWT.NONE);\r\n\t\tlblVersion.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\r\n\t\tnew Label(composite_1, SWT.NONE);\r\n\r\n\t\tLabel lblDate = new Label(composite_2, SWT.NONE);\r\n\t\tlblDate.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\r\n\t\tlblDate.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.ITALIC));\r\n\t\tlblDate.setText(\"Build\");\r\n\t\t\r\n\t\tLabel lblBuild = new Label(composite_2, SWT.NONE);\r\n\t\tlblBuild.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\r\n\t\t\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader(); \r\n\t\tInputStream stream = loader.getResourceAsStream(\"/version.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(stream);\r\n\t\t\tString version = prop.getProperty(\"goko.version\");\r\n\t\t\tString build = prop.getProperty(\"goko.build.timestamp\");\r\n\t\t\tlblVersion.setText(version);\r\n\t\t\tlblBuild.setText(build);\t\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tLOG.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tComposite composite = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tLabel lblMoreInformationOn = new Label(composite, SWT.NONE);\r\n\t\tGridData gd_lblMoreInformationOn = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblMoreInformationOn.widthHint = 60;\r\n\t\tlblMoreInformationOn.setLayoutData(gd_lblMoreInformationOn);\r\n\t\tlblMoreInformationOn.setText(\"Website :\");\r\n\r\n\t\tLink link = new Link(composite, SWT.NONE);\r\n\t\tlink.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://www.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tlink.setText(\"<a>http://www.goko.fr</a>\");\r\n\t\t\r\n\t\tComposite composite_3 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_3.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblForum = new Label(composite_3, SWT.NONE);\r\n\t\tGridData gd_lblForum = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblForum.widthHint = 60;\r\n\t\tlblForum.setLayoutData(gd_lblForum);\r\n\t\tlblForum.setText(\"Forum :\");\r\n\t\t\r\n\t\tLink link_1 = new Link(composite_3, 0);\r\n\t\tlink_1.setText(\"<a>http://discuss.goko.fr</a>\");\r\n\t\tlink_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent event) {\r\n\t\t\t\tif (event.button == 1) { // Left button pressed & released\r\n\t\t Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\r\n\t\t if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\r\n\t\t try {\r\n\t\t desktop.browse(URI.create(\"http://discuss.goko.fr\"));\r\n\t\t } catch (Exception e) {\r\n\t\t LOG.error(e);\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tComposite composite_4 = new Composite(composite_1, SWT.NONE);\r\n\t\tcomposite_4.setLayout(new GridLayout(2, false));\r\n\t\t\r\n\t\tLabel lblContact = new Label(composite_4, SWT.NONE);\r\n\t\tGridData gd_lblContact = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\r\n\t\tgd_lblContact.widthHint = 60;\r\n\t\tlblContact.setLayoutData(gd_lblContact);\r\n\t\tlblContact.setText(\"Contact :\");\r\n\t\t\t \r\n\t\tLink link_2 = new Link(composite_4, 0);\r\n\t\tlink_2.setText(\"<a>\"+toAscii(\"636f6e7461637440676f6b6f2e6672\")+\"</a>\");\r\n\r\n\t}",
"protected void createContents() {\n shell = new Shell();\n shell.setSize(1024, 650);\n shell.setText(\"GMToolsTD\");\n shell.setLayout(new GridLayout());\n\n\n /* Création du menu principal */\n Menu menuPrincipal = new Menu(shell, SWT.BAR);\n shell.setMenuBar(menuPrincipal);\n\n MenuItem mntmModule = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmModule.setText(\"Module\");\n\n Menu menuModule = new Menu(mntmModule);\n mntmModule.setMenu(menuModule);\n\n mntmSpoolUsage = new MenuItem(menuModule, SWT.NONE);\n mntmSpoolUsage.setText(\"Spool Usage\");\n\n mntmUser = new MenuItem(menuModule, SWT.NONE);\n mntmUser.setText(\"User Information\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmConfig = new MenuItem(menuModule, SWT.NONE);\n mntmConfig.setText(\"Configuration\");\n\n new MenuItem(menuModule, SWT.SEPARATOR);\n\n mntmExit = new MenuItem(menuModule, SWT.NONE);\n mntmExit.setText(\"Exit\");\n\n MenuItem mntmHelp = new MenuItem(menuPrincipal, SWT.CASCADE);\n mntmHelp.setText(\"Help\");\n\n Menu menuAbout = new Menu(mntmHelp);\n mntmHelp.setMenu(menuAbout);\n\n mntmAbout = new MenuItem(menuAbout, SWT.NONE);\n mntmAbout.setText(\"About\");\n\n\n /* Creation main screen elements */\n pageComposite = new Composite(shell, SWT.NONE);\n pageComposite.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n pageComposite.setLayoutData(gridData);\n\n\n grpConnexion = new Group(pageComposite, SWT.NONE );\n grpConnexion.setText(\"Connection\");\n grpConnexion.setLayout(new GridLayout(2,false));\n gridData = new GridData();\n gridData.heightHint = 110;\n grpConnexion.setLayoutData(gridData);\n\n\n Label lblServer = new Label(grpConnexion, SWT.NONE);\n lblServer.setText(\"Server :\");\n\n textServer = new Text(grpConnexion, SWT.NONE);\n textServer.setLayoutData(new GridData(110,20));\n\n Label lblUsername = new Label(grpConnexion, SWT.NONE);\n lblUsername.setSize(65, 20);\n lblUsername.setText(\"Username :\");\n\n textUsername = new Text(grpConnexion,SWT.NONE);\n textUsername.setLayoutData(new GridData(110,20));\n\n Label lblPassword = new Label(grpConnexion, SWT.NONE);\n lblPassword.setSize(65, 20);\n lblPassword.setText(\"Password :\");\n\n textPassword = new Text(grpConnexion, SWT.PASSWORD);\n textPassword.setLayoutData(new GridData(110,20));\n\n btnConnect = new Button(grpConnexion, SWT.NONE);\n btnConnect.setLayoutData(new GridData(SWT.RIGHT,SWT.CENTER, false, false));\n btnConnect.setText(\"Connect\");\n\n btnDisconnect = new Button(grpConnexion, SWT.NONE);\n btnDisconnect.setEnabled(false);\n btnDisconnect.setText(\"Disconnect\");\n\n\n\n groupInfo = new Group(pageComposite, SWT.NONE);\n groupInfo.setText(\"Information\");\n groupInfo.setLayout(new GridLayout(1, false));\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.heightHint = 110;\n groupInfo.setLayoutData(gridData);\n\n textInformation = new Text(groupInfo, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);\n gridData = new GridData();\n gridData.horizontalAlignment = SWT.FILL;\n gridData.grabExcessHorizontalSpace = true;\n gridData.verticalAlignment = SWT.FILL;\n gridData.grabExcessVerticalSpace = true;\n textInformation.setLayoutData(gridData);\n\n\n // renseignement des informations provenant de config\n textServer.setText(conf.getValueConf(conf.SERVER_TD));\n textUsername.setText(conf.getValueConf(conf.USERNAME_TD));\n textPassword.setText(\"\");\n\n\n mntmSpoolUsage.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n majAffichage(AFFICHE_SPOOL);\n }\n });\n\n\n mntmUser.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_USER);\n }\n });\n\n mntmConfig.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n majAffichage(AFFICHE_CONFIG);\n }\n });\n\n mntmAbout.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n MessageBox messageBox = new MessageBox(shell, SWT.ICON_INFORMATION);\n messageBox.setText(\"About...\");\n messageBox.setMessage(\"Not implemented yet ...\");\n messageBox.open();\n }\n });\n\n mntmExit.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent selectionEvent) {\n // afficher un message box avec du blabla\n shell.close();\n\n }\n });\n\n btnConnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n // connexion Teradata\n btnConnect.setEnabled(false);\n entryServer = textServer.getText();\n entryUsername = textUsername.getText();\n entryPassword = textPassword.getText();\n\n new Thread(new Runnable() {\n public void run() {\n try {\n\n tdConnect = new TDConnexion(entryServer, entryUsername, entryPassword, conf);\n majInformation(MESSAGE_INFORMATION,nomModuleConnexion,\"Connexion OK\");\n connexionStatut = true;\n } catch ( SQLException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Connexion KO : \"+err.getMessage());\n connexionStatut = false;\n } catch (ClassNotFoundException err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Error ClassNotFoundException : \"+err.getMessage());\n connexionStatut = false;\n }\n if (connexionStatut) {\n try {\n nbrAMP = tdConnect.requestNumberAMP();\n } catch (Exception err) {\n majInformation(MESSAGE_ERROR,nomModuleConnexion,\"Calculation of AMPs KO : \"+err.getMessage());\n connexionStatut = false;\n tdConnect.deconnexion();\n }\n }\n\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n\n if (connexionStatut) {\n activationON();\n\n textServer.setEnabled(false);\n textUsername.setEnabled(false);\n textPassword.setEnabled(false);\n\n btnConnect.setEnabled(false);\n btnDisconnect.setEnabled(true);\n } else {\n btnConnect.setEnabled(true);\n }\n }\n });\n }\n }).start();\n\n\n\n\n }\n });\n\n\n btnDisconnect.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n manageDisconnection();\n }\n });\n\n\n //creating secondary screen\n ecranUser = new EcranUser(this);\n ecranSpool = new EcranSpool(this);\n ecranConfig = new EcranConfig(this);\n\n\n // update of the information message (log)\n new Thread(new Runnable() {\n public void run() {\n try {\n while (true) {\n if (!listMessageInfo.isEmpty()) {\n Display.getDefault().asyncExec(new Runnable() {\n public void run() {\n refreshInformation();\n }\n });\n }\n try {\n Thread.sleep(500);\n } catch (Exception e) {\n //nothing to do\n }\n }\n } catch (Exception e) {\n //What to do when the while send an error ?\n }\n }\n }).start();\n\n }",
"private void createContents(final Shell shell) {\r\n GridData data;\r\n\r\n final int colCount = 5;\r\n\r\n shell.setLayout(new GridLayout(colCount, true));\r\n\r\n // \"refresh\" button\r\n Button refresh = new Button(shell, SWT.PUSH);\r\n refresh.setText(\"Refresh\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n refresh.setLayoutData(data);\r\n refresh.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n\r\n // \"rotate\" button\r\n Button rotate = new Button(shell, SWT.PUSH);\r\n rotate.setText(\"Rotate\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n rotate.setLayoutData(data);\r\n rotate.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n if (mRawImage != null) {\r\n mRawImage = mRawImage.getRotated();\r\n updateImageDisplay(shell);\r\n \r\n mRotateCount++;\r\n if (mRotateCount >= 4) mRotateCount = 0;\r\n }\r\n }\r\n });\r\n\r\n // \"done\" button\r\n Button done = new Button(shell, SWT.PUSH);\r\n done.setText(\"Done\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.widthHint = 80;\r\n done.setLayoutData(data);\r\n done.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n shell.close();\r\n }\r\n });\r\n\r\n // title/\"capturing\" label\r\n mBusyLabel = new Label(shell, SWT.NONE);\r\n mBusyLabel.setText(\"Preparing...\");\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);\r\n data.horizontalSpan = colCount;\r\n mBusyLabel.setLayoutData(data);\r\n\r\n // space for the image\r\n mImageLabel = new Label(shell, SWT.BORDER);\r\n data = new GridData(GridData.HORIZONTAL_ALIGN_CENTER);\r\n data.horizontalSpan = colCount;\r\n mImageLabel.setLayoutData(data);\r\n Display display = shell.getDisplay();\r\n mImageLabel.setImage(createPlaceHolderArt(\r\n display, 50, 50, display.getSystemColor(SWT.COLOR_BLUE)));\r\n TouchController tc = new TouchController(mDevice, mScaled);\r\n tc.setTouchListener(new TouchListener() {\r\n public void onClick() {\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException e) {\r\n }\r\n updateDeviceImage(shell);\r\n }\r\n });\r\n mImageLabel.addMouseListener(tc);\r\n mImageLabel.addMouseMoveListener(tc);\r\n\r\n\r\n shell.setDefaultButton(done);\r\n }",
"protected void createContents() {\n\t\t\n\t\tshlMailview = new Shell();\n\t\tshlMailview.addShellListener(new ShellAdapter() {\n\t\t\t@Override\n\t\t\tpublic void shellClosed(ShellEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tshlMailview.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\tshlMailview.setSize(1124, 800);\n\t\tshlMailview.setText(\"MailView\");\n\t\tshlMailview.setLayout(new BorderLayout(0, 0));\t\t\n\t\t\n\t\tMenu menu = new Menu(shlMailview, SWT.BAR);\n\t\tshlMailview.setMenuBar(menu);\n\t\t\n\t\tMenuItem mntmNewSubmenu = new MenuItem(menu, SWT.CASCADE);\n\t\tmntmNewSubmenu.setText(\"\\u0413\\u043B\\u0430\\u0432\\u043D\\u0430\\u044F\");\n\t\t\n\t\tMenu mainMenu = new Menu(mntmNewSubmenu);\n\t\tmntmNewSubmenu.setMenu(mainMenu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(mainMenu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tMenuItem exitMenu = new MenuItem(mainMenu, SWT.NONE);\n\t\texitMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\t\t\t\n\t\t\t\tshlMailview.close();\n\t\t\t}\n\t\t});\n\t\texitMenu.setText(\"\\u0412\\u044B\\u0445\\u043E\\u0434\");\n\t\t\n\t\tMenuItem filtrMenu = new MenuItem(menu, SWT.NONE);\n\t\tfiltrMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfilterDialog fd = new filterDialog(shlMailview, 0);\n\t\t\t\tfd.open();\n\t\t\t}\n\t\t});\n\t\tfiltrMenu.setText(\"\\u0424\\u0438\\u043B\\u044C\\u0442\\u0440\");\n\t\t\n\t\tMenuItem settingsMenu = new MenuItem(menu, SWT.NONE);\n\t\tsettingsMenu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tsettingDialog sd = new settingDialog(shlMailview, 0);\n\t\t\t\tsd.open();\n\t\t\t}\n\t\t});\n\t\tsettingsMenu.setText(\"\\u041D\\u0430\\u0441\\u0442\\u0440\\u043E\\u0439\\u043A\\u0438\");\n\t\t\n\t\tfinal TabFolder tabFolder = new TabFolder(shlMailview, SWT.NONE);\n\t\ttabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(tabFolder.getSelectionIndex() == 1)\n\t\t\t\t{\n\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttabFolder.setBackground(SWTResourceManager.getColor(SWT.COLOR_GRAY));\n\t\t\n\t\tTabItem lettersTab = new TabItem(tabFolder, SWT.NONE);\n\t\tlettersTab.setText(\"\\u041F\\u0438\\u0441\\u044C\\u043C\\u0430\");\n\t\t\n\t\tComposite composite_2 = new Composite(tabFolder, SWT.NONE);\n\t\tlettersTab.setControl(composite_2);\n\t\tcomposite_2.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite_4 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_4 = new FormData();\n\t\tfd_composite_4.bottom = new FormAttachment(0, 81);\n\t\tfd_composite_4.top = new FormAttachment(0);\n\t\tfd_composite_4.left = new FormAttachment(0);\n\t\tfd_composite_4.right = new FormAttachment(0, 1100);\n\t\tcomposite_4.setLayoutData(fd_composite_4);\n\t\t\n\t\tComposite composite_5 = new Composite(composite_2, SWT.NONE);\n\t\tcomposite_5.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_composite_5 = new FormData();\n\t\tfd_composite_5.bottom = new FormAttachment(composite_4, 281, SWT.BOTTOM);\n\t\tfd_composite_5.left = new FormAttachment(composite_4, 0, SWT.LEFT);\n\t\tfd_composite_5.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\tfd_composite_5.top = new FormAttachment(composite_4, 6);\n\t\tcomposite_5.setLayoutData(fd_composite_5);\n\t\t\n\t\tComposite composite_10 = new Composite(composite_2, SWT.NONE);\n\t\tFormData fd_composite_10 = new FormData();\n\t\tfd_composite_10.top = new FormAttachment(composite_5, 6);\n\t\tfd_composite_10.bottom = new FormAttachment(100, -10);\n\t\t\n\t\tlettersTable = new Table(composite_5, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tlettersTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\titem.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.NONE));\n\t\t\t\t\tbox.Preview(Integer.parseInt(item.getText(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlettersTable.setLinesVisible(true);\n\t\tlettersTable.setHeaderVisible(true);\n\t\tTableColumn msgId = new TableColumn(lettersTable, SWT.NONE);\n\t\tmsgId.setResizable(false);\n\t\tmsgId.setText(\"ID\");\n\t\t\n\t\tTableColumn from = new TableColumn(lettersTable, SWT.NONE);\n\t\tfrom.setWidth(105);\n\t\tfrom.setText(\"\\u041E\\u0442\");\n\t\tfrom.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn to = new TableColumn(lettersTable, SWT.NONE);\n\t\tto.setWidth(111);\n\t\tto.setText(\"\\u041A\\u043E\\u043C\\u0443\");\n\t\tto.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn subject = new TableColumn(lettersTable, SWT.NONE);\n\t\tsubject.setWidth(406);\n\t\tsubject.setText(\"\\u0422\\u0435\\u043C\\u0430\");\n\t\tsubject.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.STRING_COMPARATOR));\n\t\t\n\t\tTableColumn created = new TableColumn(lettersTable, SWT.NONE);\n\t\tcreated.setWidth(176);\n\t\tcreated.setText(\"\\u0421\\u043E\\u0437\\u0434\\u0430\\u043D\\u043E\");\n\t\tcreated.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\n\t\t\n\t\tTableColumn received = new TableColumn(lettersTable, SWT.NONE);\n\t\treceived.setWidth(194);\n\t\treceived.setText(\"\\u041F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E\");\n\t\treceived.addListener(SWT.Selection, SortListenerFactory.getListener(SortListenerFactory.DATE_COMPARATOR));\t\t\n\t\t\n\t\tMenu popupMenuLetter = new Menu(lettersTable);\n\t\tlettersTable.setMenu(popupMenuLetter);\n\t\t\n\t\tMenuItem miUpdate = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiUpdate.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tmyThready.stop();// interrupt();\n\t\t\t\tmyThready = new Thread(timer);\n\t\t\t\tmyThready.setDaemon(true);\n\t\t\t\tmyThready.start();\n\t\t\t}\n\t\t});\n\t\tmiUpdate.setText(\"\\u041E\\u0431\\u043D\\u043E\\u0432\\u0438\\u0442\\u044C\");\n\t\t\n\t\tfinal MenuItem miDelete = new MenuItem(popupMenuLetter, SWT.NONE);\n\t\tmiDelete.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\tfd_composite_10.right = new FormAttachment(composite_4, 0, SWT.RIGHT);\n\t\t\n\t\tfinal Button btnInbox = new Button(composite_4, SWT.NONE);\n\t\tfinal Button btnTrash = new Button(composite_4, SWT.NONE);\n\t\t\n\t\tbtnInbox.setBounds(10, 10, 146, 39);\n\t\tbtnInbox.setEnabled(false);\n\t\tbtnInbox.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(false);\t\t\t\t\n\t\t\t\tbtnInbox.setEnabled(false);\n\t\t\t\tmiDelete.setText(\"\\u0412 \\u043A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0443\");\n\t\t\t\tbtnTrash.setEnabled(true);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnInbox.setText(\"\\u0412\\u0445\\u043E\\u0434\\u044F\\u0449\\u0438\\u0435\");\n\t\tbtnTrash.setLocation(170, 10);\n\t\tbtnTrash.setSize(146, 39);\n\t\tbtnTrash.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tSetting.Instance().SetTab(true);\n\t\t\t\tbtnInbox.setEnabled(true);\n\t\t\t\tmiDelete.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\tbtnTrash.setEnabled(false);\n\t\t\t\tbox.rePaint();\n\t\t\t}\n\t\t});\n\t\tbtnTrash.setText(\"\\u041A\\u043E\\u0440\\u0437\\u0438\\u043D\\u0430\");\n\t\t\n\t\tButton deleteLetter = new Button(composite_4, SWT.NONE);\n\t\tdeleteLetter.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif(lettersTable.getItems().length>0)\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tTableItem item = lettersTable.getSelection()[0];\n\t\t\t\t\tbox.deleteMessage(Integer.parseInt(item.getText(0)), lettersTable.getSelectionIndex());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tdeleteLetter.setLocation(327, 11);\n\t\tdeleteLetter.setSize(146, 37);\n\t\tdeleteLetter.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tdeleteLetter.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\n\t\tLabel label = new Label(composite_4, SWT.NONE);\n\t\tlabel.setLocation(501, 17);\n\t\tlabel.setSize(74, 27);\n\t\tlabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlabel.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\n\t\tCombo listAccounts = new Combo(composite_4, SWT.NONE);\n\t\tlistAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.NORMAL));\n\t\tlistAccounts.setLocation(583, 19);\n\t\tlistAccounts.setSize(180, 23);\n\t\tlistAccounts.setItems(new String[] {\"\\u0412\\u0441\\u0435\"});\n\t\tlistAccounts.select(0);\n\t\t\n\t\tprogressBar = new ProgressBar(composite_4, SWT.NONE);\n\t\tprogressBar.setBounds(10, 64, 263, 17);\n\t\tfd_composite_10.left = new FormAttachment(0);\n\t\tcomposite_10.setLayoutData(fd_composite_10);\n\t\t\n\t\theaderMessage = new Text(composite_10, SWT.BORDER);\n\t\theaderMessage.setFont(SWTResourceManager.getFont(\"Segoe UI\", 14, SWT.NORMAL));\n\t\theaderMessage.setBounds(0, 0, 1100, 79);\n\t\t\n\t\tsc = new ScrolledComposite(composite_10, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tsc.setBounds(0, 85, 1100, 230);\n\t\tsc.setExpandHorizontal(true);\n\t\tsc.setExpandVertical(true);\t\t\n\t\t\n\t\tTabItem accountsTab = new TabItem(tabFolder, SWT.NONE);\n\t\taccountsTab.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u044B\");\n\t\t\n\t\tComposite accountComposite = new Composite(tabFolder, SWT.NONE);\n\t\taccountsTab.setControl(accountComposite);\n\t\taccountComposite.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\n\t\t\tLabel labelListAccounts = new Label(accountComposite, SWT.NONE);\n\t\t\tlabelListAccounts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));\n\t\t\tlabelListAccounts.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\tlabelListAccounts.setBounds(10, 37, 148, 31);\n\t\t\tlabelListAccounts.setText(\"\\u0421\\u043F\\u0438\\u0441\\u043E\\u043A \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u043E\\u0432\");\n\t\t\t\n\t\t\tComposite Actions = new Composite(accountComposite, SWT.NONE);\n\t\t\tActions.setBounds(412, 71, 163, 234);\n\t\t\t\n\t\t\tButton addAccount = new Button(Actions, SWT.NONE);\n\t\t\taddAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, true);\n\t\t\t\t\tad.open();\n\t\t\t\t}\n\t\t\t});\n\t\t\taddAccount.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\t\taddAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\taddAccount.setBounds(10, 68, 141, 47);\n\t\t\taddAccount.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton editAccount = new Button(Actions, SWT.NONE);\n\t\t\teditAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\tAccountDialog ad = new AccountDialog(shlMailview, accountsTable, false);\n\t\t\t\t\tad.open();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\teditAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\teditAccount.setBounds(10, 121, 141, 47);\n\t\t\teditAccount.setText(\"\\u0418\\u0437\\u043C\\u0435\\u043D\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tButton deleteAccount = new Button(Actions, SWT.NONE);\n\t\t\tdeleteAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tif(MessageDialog.openConfirm(shlMailview, \"Удаление\", \"Вы хотите удалить учетную запись \" + item.getText(1)+\"?\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tservice.DeleteAccount(item.getText(0));\n\t\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tdeleteAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\t\t\t\n\t\t\tdeleteAccount.setBounds(10, 174, 141, 47);\n\t\t\tdeleteAccount.setText(\"\\u0423\\u0434\\u0430\\u043B\\u0438\\u0442\\u044C\");\n\t\t\t\n\t\t\tfinal Button Include = new Button(Actions, SWT.NONE);\n\t\t\tInclude.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getItems().length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tTableItem item = accountsTable.getSelection()[0];\n\t\t\t\t\t\tservice.toogleIncludeAccount(item.getText(0));\n\t\t\t\t\t\tservice.RepaintAccount(accountsTable);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\tInclude.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\t\tInclude.setBounds(10, 10, 141, 47);\n\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\n\t\t\taccountsTable = new Table(accountComposite, SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);\n\t\t\taccountsTable.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tif(accountsTable.getSelection()[0].getText(2)==\"Включен\")\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u044B\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tInclude.setText(\"\\u0412\\u043A\\u043B\\u044E\\u0447\\u0438\\u0442\\u044C\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t\taccountsTable.setBounds(10, 74, 396, 296);\n\t\t\taccountsTable.setHeaderVisible(true);\n\t\t\taccountsTable.setLinesVisible(true);\n\t\t\t\n\t\t\tTableColumn tblclmnId = new TableColumn(accountsTable, SWT.NONE);\n\t\t\ttblclmnId.setWidth(35);\n\t\t\ttblclmnId.setText(\"ID\");\n\t\t\t//accountsTable.setRedraw(false);\n\t\t\t\n\t\t\tTableColumn columnLogin = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnLogin.setWidth(244);\n\t\t\tcolumnLogin.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\t\t\n\t\t\tTableColumn columnState = new TableColumn(accountsTable, SWT.LEFT);\n\t\t\tcolumnState.setWidth(100);\n\t\t\tcolumnState.setText(\"\\u0421\\u043E\\u0441\\u0442\\u043E\\u044F\\u043D\\u0438\\u0435\");\n\t}",
"private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(250, 150);\n\t\tshell.setText(getText());\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(BorderLayout.SOUTH);\n\t\tcomposite.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.CENTER);\n\t\tcomposite_1.setLayout(new GridLayout(4, false));\n\t\tnew Label(composite_1, SWT.NONE);\n\t\t\n\t\tLabel lblHour = new Label(composite_1, SWT.NONE);\n\t\tlblHour.setSize(0, 0);\n\t\tlblHour.setText(\"Hour\");\n\t\t\n\t\tLabel lblMin = new Label(composite_1, SWT.NONE);\n\t\tlblMin.setSize(0, 0);\n\t\tlblMin.setText(\"Min\");\n\t\t\n\t\tButton btnAm = new Button(composite_1, SWT.RADIO);\n\t\tbtnAm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tampm=0;\n\t\t\t}\n\t\t});\n\t\tbtnAm.setSize(0, 0);\n\t\tbtnAm.setText(\"AM\");\n\t\t\n\t\tLabel lblStartTime = new Label(composite_1, SWT.NONE);\n\t\tlblStartTime.setSize(0, 0);\n\t\tlblStartTime.setText(\"Start Time:\");\n\t\t\n\t\tfinal Spinner hourSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\thourSpinner.setSize(0, 0);\n\t\thourSpinner.setMaximum(12);\n\t\thourSpinner.setMinimum(1);\n\t\t\n\t\tfinal Spinner minSpinner = new Spinner(composite_1, SWT.BORDER);\n\t\tminSpinner.setSize(0, 0);\n\t\tminSpinner.setMaximum(59);\n\t\tminSpinner.setMinimum(0);\n\t\t\n\t\t\n\t\tButton btnPm = new Button(composite_1, SWT.RADIO);\n\t\tbtnPm.setSize(0, 0);\n\t\tbtnPm.setText(\"PM\");\n\t\t\n\t\tButton btnCancel = new Button(composite, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setText(\"Cancel\");\n\t\t\n\t\tButton btnOk = new Button(composite, SWT.NONE);\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\thour = Integer.valueOf(hourSpinner.getText());\n\t\t\t\tminute = Integer.valueOf(minSpinner.getText());\n\t\t\t\tparent.setHour(hour);\n\t\t\t\tSystem.out.println(\"print hour-->\"+hour+\". print parent.hour-->\"+parent.hour);\n\t\t\t\tSystem.out.println(parent.hour);\n\t\t\t\tparent.setMinute(minute);\n\t\t\t\tparent.setAmpm(ampm);\n\t\t\t\tshell.close();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnOk.setText(\"OK\");\n\t\t\n\t\t\n\n\t}",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tshell.setSize(599, 779);\r\n\t\tshell.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tButton logoBtn = new Button(shell, SWT.NONE);\r\n\t\tlogoBtn.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tMainMenuKaff mm = new MainMenuKaff();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tmm.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tlogoBtn.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\logo for header button.png\"));\r\n\t\tlogoBtn.setBounds(497, 0, 64, 50);\r\n\r\n\t\tLabel headerLabel = new Label(shell, SWT.NONE);\r\n\t\theaderLabel.setImage(SWTResourceManager\r\n\t\t\t\t.getImage(\"C:\\\\Users\\\\al5an\\\\git\\\\KaffPlatform\\\\KaffPlatformProject\\\\img\\\\KaffPlatformheader.jpg\"));\r\n\t\theaderLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\theaderLabel.setBounds(0, 0, 607, 50);\r\n\r\n\t\tLabel bookInfoLabel = new Label(shell, SWT.NONE);\r\n\t\tbookInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\tbookInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\tbookInfoLabel.setAlignment(SWT.CENTER);\r\n\t\tbookInfoLabel.setBounds(177, 130, 192, 28);\r\n\t\tbookInfoLabel.setText(\"معلومات الكتاب\");\r\n\r\n\t\tLabel bookTitleLabel = new Label(shell, SWT.NONE);\r\n\t\tbookTitleLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookTitleLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookTitleLabel.setBounds(415, 203, 119, 28);\r\n\t\tbookTitleLabel.setText(\"عنوان الكتاب\");\r\n\r\n\t\tBookTitleTxt = new Text(shell, SWT.BORDER);\r\n\t\tBookTitleTxt.setBounds(56, 206, 334, 24);\r\n\r\n\t\tLabel bookIDLabel = new Label(shell, SWT.NONE);\r\n\t\tbookIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tbookIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbookIDLabel.setBounds(415, 170, 119, 32);\r\n\t\tbookIDLabel.setText(\"رمز الكتاب\");\r\n\r\n\t\tLabel editionLabel = new Label(shell, SWT.NONE);\r\n\t\teditionLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\teditionLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\teditionLabel.setBounds(415, 235, 119, 28);\r\n\t\teditionLabel.setText(\"إصدار الكتاب\");\r\n\r\n\t\teditionTxt = new Text(shell, SWT.BORDER);\r\n\t\teditionTxt.setBounds(271, 240, 119, 24);\r\n\r\n\t\tLabel lvlLabel = new Label(shell, SWT.NONE);\r\n\t\tlvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tlvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tlvlLabel.setText(\"المستوى\");\r\n\t\tlvlLabel.setBounds(415, 269, 119, 27);\r\n\r\n\t\tCombo lvlBookCombo = new Combo(shell, SWT.NONE);\r\n\t\tlvlBookCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\tlvlBookCombo.setBounds(326, 272, 64, 25);\r\n\t\tlvlBookCombo.select(0);\r\n\r\n\t\tLabel priceLabel = new Label(shell, SWT.NONE);\r\n\t\tpriceLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tpriceLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tpriceLabel.setText(\"السعر\");\r\n\t\tpriceLabel.setBounds(415, 351, 119, 28);\r\n\r\n\t\tGroup groupType = new Group(shell, SWT.NONE);\r\n\t\tgroupType.setBounds(56, 320, 334, 24);\r\n\r\n\t\tButton button = new Button(groupType, SWT.RADIO);\r\n\t\tbutton.setSelection(true);\r\n\t\tbutton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton.setBounds(21, 0, 73, 21);\r\n\t\tbutton.setText(\"مجاناً\");\r\n\r\n\t\tButton button_1 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_1.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_1.setBounds(130, 0, 73, 21);\r\n\t\tbutton_1.setText(\"إعارة\");\r\n\r\n\t\tButton button_2 = new Button(groupType, SWT.RADIO);\r\n\t\tbutton_2.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbutton_2.setBounds(233, 0, 80, 21);\r\n\t\tbutton_2.setText(\"للبيع\");\r\n\r\n\t\tpriceTxtValue = new Text(shell, SWT.BORDER);\r\n\t\tpriceTxtValue.setBounds(326, 355, 64, 24);\r\n\r\n\t\tLabel ownerInfoLabel = new Label(shell, SWT.NONE);\r\n\t\townerInfoLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerInfoLabel.setForeground(SWTResourceManager.getColor(210, 105, 30));\r\n\t\townerInfoLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.BOLD));\r\n\t\townerInfoLabel.setText(\"معلومات صاحبة الكتاب\");\r\n\t\townerInfoLabel.setAlignment(SWT.CENTER);\r\n\t\townerInfoLabel.setBounds(147, 400, 242, 28);\r\n\r\n\t\tLabel ownerIDLabel = new Label(shell, SWT.NONE);\r\n\t\townerIDLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerIDLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerIDLabel.setBounds(415, 441, 119, 34);\r\n\t\townerIDLabel.setText(\"الرقم الأكاديمي\");\r\n\r\n\t\townerIDValue = new Text(shell, SWT.BORDER);\r\n\t\townerIDValue.setBounds(204, 444, 186, 24);\r\n\t\t// need to check if the owner is already in the database...\r\n\r\n\t\tLabel nameLabel = new Label(shell, SWT.NONE);\r\n\t\tnameLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tnameLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tnameLabel.setBounds(415, 481, 119, 28);\r\n\t\tnameLabel.setText(\"الاسم الثلاثي\");\r\n\r\n\t\tnameTxt = new Text(shell, SWT.BORDER);\r\n\t\tnameTxt.setBounds(56, 485, 334, 24);\r\n\r\n\t\tLabel phoneLabel = new Label(shell, SWT.NONE);\r\n\t\tphoneLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\tphoneLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tphoneLabel.setText(\"رقم الجوال\");\r\n\t\tphoneLabel.setBounds(415, 515, 119, 27);\r\n\r\n\t\tphoneTxt = new Text(shell, SWT.BORDER);\r\n\t\tphoneTxt.setBounds(204, 521, 186, 24);\r\n\r\n\t\tLabel ownerLvlLabel = new Label(shell, SWT.NONE);\r\n\t\townerLvlLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\townerLvlLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\townerLvlLabel.setBounds(415, 548, 119, 31);\r\n\t\townerLvlLabel.setText(\"المستوى\");\r\n\r\n\t\tCombo owneLvlCombo = new Combo(shell, SWT.NONE);\r\n\t\towneLvlCombo.setItems(new String[] { \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\" });\r\n\t\towneLvlCombo.setBounds(326, 554, 64, 25);\r\n\t\towneLvlCombo.select(0);\r\n\r\n\t\tLabel emailLabel = new Label(shell, SWT.NONE);\r\n\t\temailLabel.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\r\n\t\temailLabel.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\temailLabel.setBounds(415, 583, 119, 38);\r\n\t\temailLabel.setText(\"البريد الإلكتروني\");\r\n\r\n\t\temailTxt = new Text(shell, SWT.BORDER);\r\n\t\temailTxt.setBounds(56, 586, 334, 24);\r\n\r\n\t\tButton addButton = new Button(shell, SWT.NONE);\r\n\t\taddButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString bookQuery = \"INSERT INTO kaff.BOOK(bookID, bookTitle, price, level,available, type) VALUES (?, ?, ?, ?, ?, ?, ?)\";\r\n\t\t\t\t\tString bookEdition = \"INSERT INTO kaff.bookEdition(bookID, edition, year) VALUES (?, ?, ?)\";\r\n\t\t\t\t\tString ownerQuery = \"INSERT INTO kaff.user(userID, fname, mname, lastname, phone, level, personalEmail, email) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\r\n\t\t\t\t\tString bookID = bookIDTxt.getText();\r\n\t\t\t\t\tString bookTitle = BookTitleTxt.getText();\r\n\t\t\t\t\tint bookLevel = lvlBookCombo.getSelectionIndex();\r\n\t\t\t\t\tString type = groupType.getText();\r\n\t\t\t\t\tdouble price = Double.parseDouble(priceTxtValue.getText());\r\n\t\t\t\t\tboolean available = true;\r\n\r\n\t\t\t\t\t// must error handle\r\n\t\t\t\t\tString[] ed = editionTxt.getText().split(\" \");\r\n\t\t\t\t\tString edition = ed[0];\r\n\t\t\t\t\tString year = ed[1];\r\n\r\n\t\t\t\t\tString ownerID = ownerIDValue.getText();\r\n\r\n\t\t\t\t\t// error handle if the user enters two names or just first name\r\n\t\t\t\t\tString[] name = nameTxt.getText().split(\" \");\r\n\t\t\t\t\tString fname = \"\", mname = \"\", lname = \"\";\r\n\t\t\t\t\tSystem.out.println(\"name array\" + name);\r\n\t\t\t\t\tif (name.length > 2) {\r\n\t\t\t\t\t\tfname = name[0];\r\n\t\t\t\t\t\tmname = name[1];\r\n\t\t\t\t\t\tlname = name[2];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString phone = phoneTxt.getText();\r\n\t\t\t\t\tint userLevel = owneLvlCombo.getSelectionIndex();\r\n\t\t\t\t\tString email = emailTxt.getText();\r\n\r\n\t\t\t\t\tDatabase.openConnection();\r\n\t\t\t\t\tPreparedStatement bookStatement = Database.getConnection().prepareStatement(bookQuery);\r\n\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, bookTitle);\r\n\t\t\t\t\tbookStatement.setInt(3, bookLevel);\r\n\t\t\t\t\tbookStatement.setString(4, type);\r\n\t\t\t\t\tbookStatement.setDouble(5, price);\r\n\t\t\t\t\tbookStatement.setBoolean(6, available);\r\n\r\n\t\t\t\t\tint bookre = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tbookStatement = Database.getConnection().prepareStatement(bookEdition);\r\n\t\t\t\t\tbookStatement.setString(1, bookID);\r\n\t\t\t\t\tbookStatement.setString(2, edition);\r\n\t\t\t\t\tbookStatement.setString(3, year);\r\n\r\n\t\t\t\t\tint edResult = bookStatement.executeUpdate();\r\n\r\n\t\t\t\t\tPreparedStatement ownerStatement = Database.getConnection().prepareStatement(ownerQuery);\r\n\t\t\t\t\townerStatement.setString(1, ownerID);\r\n\t\t\t\t\townerStatement.setString(2, fname);\r\n\t\t\t\t\townerStatement.setString(3, mname);\r\n\t\t\t\t\townerStatement.setString(4, lname);\r\n\t\t\t\t\townerStatement.setString(5, phone);\r\n\t\t\t\t\townerStatement.setInt(6, userLevel);\r\n\t\t\t\t\townerStatement.setString(7, ownerID + \"iau.edu.sa\");\r\n\t\t\t\t\townerStatement.setString(8, email);\r\n\t\t\t\t\tint ownRes = ownerStatement.executeUpdate();\r\n\r\n\t\t\t\t\tSystem.out.println(\"results: \" + ownRes + \" \" + edResult + \" bookre\");\r\n\t\t\t\t\t// test result of excute Update\r\n\t\t\t\t\tif (ownRes != 0 && edResult != 0 && bookre != 0) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is updated\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Data is not updated\");\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDatabase.closeConnection();\r\n\t\t\t\t} catch (SQLException sql) {\r\n\t\t\t\t\tSystem.out.println(sql);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\taddButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\taddButton.setBounds(54, 666, 85, 26);\r\n\t\taddButton.setText(\"إضافة\");\r\n\r\n\t\tButton backButton = new Button(shell, SWT.NONE);\r\n\t\tbackButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tAdminMenu am = new AdminMenu();\r\n\t\t\t\tshell.close();\r\n\t\t\t\tam.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbackButton.setFont(SWTResourceManager.getFont(\"B Badr\", 12, SWT.NORMAL));\r\n\t\tbackButton.setBounds(150, 666, 85, 26);\r\n\t\tbackButton.setText(\"رجوع\");\r\n\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(177, 72, 192, 21);\r\n\t\tlabel.setText(\"إضافة كتاب جديد\");\r\n\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(22, 103, 167, 21);\r\n\t\t// get user name here to display\r\n\t\tString name = getUserName();\r\n\t\tlabel_1.setText(\"مرحباً ...\" + name);\r\n\r\n\t\tbookIDTxt = new Text(shell, SWT.BORDER);\r\n\t\tbookIDTxt.setBounds(271, 170, 119, 24);\r\n\r\n\t}",
"private void createContents() {\n shell = new Shell(getParent(), getStyle());\n shell.setSize(540, 297);\n shell.setLayout(new GridLayout(1, false));\n\n Composite cmpTop = new Composite(shell, SWT.NONE);\n cmpTop.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n GridLayout gl_cmpTop = new GridLayout(4, false);\n gl_cmpTop.verticalSpacing = 0;\n cmpTop.setLayout(gl_cmpTop);\n\n Label lblBankAccountNumber = new Label(cmpTop, SWT.CENTER);\n lblBankAccountNumber.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBankAccountNumber.setBounds(0, 0, 59, 14);\n lblBankAccountNumber.setText(\"Bank Account\");\n Label lblBranch = new Label(cmpTop, SWT.CENTER);\n lblBranch.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBranch.setBounds(0, 0, 59, 14);\n lblBranch.setText(\"Branch\");\n\n Label lblBank = new Label(cmpTop, SWT.CENTER);\n lblBank.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n lblBank.setText(\"Bank\");\n new Label(cmpTop, SWT.NONE);\n\n txtBankAccountNumber = new Text(cmpTop, SWT.BORDER);\n txtBankAccountNumber.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n txtBankAccountNumber.setBounds(0, 0, 64, 19);\n\n txtBranch = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBranch = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBranch.widthHint = 50;\n txtBranch.setLayoutData(gd_txtBranch);\n txtBranch.setBounds(0, 0, 64, 19);\n\n txtBank = new Text(cmpTop, SWT.BORDER);\n GridData gd_txtBank = new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1);\n gd_txtBank.widthHint = 50;\n txtBank.setLayoutData(gd_txtBank);\n btnSearch = new Button(cmpTop, SWT.NONE);\n btnSearch.setAlignment(SWT.RIGHT);\n btnSearch.setText(\"Search\");\n btnSearch.setEnabled(false);\n\n Composite cmpResults = new Composite(shell, SWT.NONE);\n cmpResults.setLayout(new GridLayout(1, false));\n GridData gd_cmpResults = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_cmpResults.heightHint = 129;\n cmpResults.setLayoutData(gd_cmpResults);\n\n tblAccounts = new Table(cmpResults, SWT.BORDER);\n GridData gd_tblAccounts = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n gd_tblAccounts.heightHint = 71;\n tblAccounts.setLayoutData(gd_tblAccounts);\n tblAccounts.setHeaderVisible(true);\n tblAccounts.setLinesVisible(true);\n\n TableColumn tblclmnAccountNumber = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnAccountNumber.setWidth(120);\n tblclmnAccountNumber.setText(\"Player Account\");\n\n TableColumn tblclmsFirstName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmsFirstName.setWidth(100);\n tblclmsFirstName.setText(\"First Name\");\n\n TableColumn tblclmnLastName = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnLastName.setWidth(100);\n tblclmnLastName.setText(\"Last Name\");\n\n TableColumn tblclmnActivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnActivated.setWidth(95);\n tblclmnActivated.setText(\"From\");\n\n TableColumn tblclmnDeactivated = new TableColumn(tblAccounts, SWT.NONE);\n tblclmnDeactivated.setWidth(100);\n tblclmnDeactivated.setText(\"To\");\n\n Composite cmpFooter = new Composite(shell, SWT.NONE);\n cmpFooter.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n cmpFooter.setLayout(new GridLayout(2, false));\n\n lblResultsMessage = new Label(cmpFooter, SWT.NONE);\n lblResultsMessage.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n\n Composite cmpButtons = new Composite(cmpFooter, SWT.NONE);\n cmpButtons.setLayout(new GridLayout(3, false));\n cmpButtons.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false, 1, 1));\n\n btnLoad = new Button(cmpButtons, SWT.NONE);\n btnLoad.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnLoad.setText(\"Load Account\");\n btnLoad.setEnabled(false);\n\n btnCancel = new Button(cmpButtons, SWT.NONE);\n btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n btnCancel.setText(\"Cancel\");\n new Label(cmpButtons, SWT.NONE);\n }",
"private void createContents() {\r\n shell = new Shell(getParent(), getStyle());\r\n shell.setSize(650, 300);\r\n shell.setText(getText());\r\n\r\n shell.setLayout(new FormLayout());\r\n\r\n lblSOName = new Label(shell, SWT.CENTER);\r\n lblSOName.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_lblSOName = new FormData();\r\n fd_lblSOName.bottom = new FormAttachment(0, 20);\r\n fd_lblSOName.right = new FormAttachment(100, -2);\r\n fd_lblSOName.top = new FormAttachment(0, 2);\r\n fd_lblSOName.left = new FormAttachment(0, 2);\r\n lblSOName.setLayoutData(fd_lblSOName);\r\n lblSOName.setText(soName);\r\n\r\n tableParams = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);\r\n tableParams.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_tableParams = new FormData();\r\n fd_tableParams.bottom = new FormAttachment(100, -40);\r\n fd_tableParams.right = new FormAttachment(100, -2);\r\n fd_tableParams.top = new FormAttachment(0, 22);\r\n fd_tableParams.left = new FormAttachment(0, 2);\r\n tableParams.setLayoutData(fd_tableParams);\r\n tableParams.setHeaderVisible(true);\r\n tableParams.setLinesVisible(true);\r\n fillInTable(tableParams);\r\n tableParams.addControlListener(new ControlAdapter() {\r\n\r\n @Override\r\n public void controlResized(ControlEvent e) {\r\n Table table = (Table)e.getSource();\r\n table.getColumn(0).setWidth((int)(table.getClientArea().width*nameSpace));\r\n table.getColumn(1).setWidth((int)(table.getClientArea().width*valueSpace));\r\n table.getColumn(2).setWidth((int)(table.getClientArea().width*hintSpace));\r\n }\r\n });\r\n tableParams.pack();\r\n //paramName.pack();\r\n //paramValue.pack();\r\n\r\n final TableEditor editor = new TableEditor(tableParams);\r\n //The editor must have the same size as the cell and must\r\n //not be any smaller than 50 pixels.\r\n editor.horizontalAlignment = SWT.LEFT;\r\n editor.grabHorizontal = true;\r\n editor.minimumWidth = 50;\r\n // editing the second column\r\n tableParams.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n // Identify the selected row\r\n TableItem item = (TableItem) e.item;\r\n if (item == null) {\r\n return;\r\n }\r\n\r\n // The control that will be the editor must be a child of the Table\r\n IReplaceableParam<?> editedParam = (IReplaceableParam<?>)item.getData(DATA_VALUE_PARAM);\r\n if (editedParam != null) {\r\n // Clean up any previous editor control\r\n Control oldEditor = editor.getEditor();\r\n if (oldEditor != null) {\r\n oldEditor.dispose();\r\n }\r\n\r\n Control editControl = null;\r\n String cellText = item.getText(columnValueIndex);\r\n switch (editedParam.getType()) {\r\n case BOOLEAN:\r\n Combo cmb = new Combo(tableParams, SWT.READ_ONLY);\r\n String[] booleanItems = {Boolean.toString(true), Boolean.toString(false)};\r\n cmb.setItems(booleanItems);\r\n cmb.select(1);\r\n if (Boolean.parseBoolean(cellText)) {\r\n cmb.select(0);\r\n }\r\n editControl = cmb;\r\n cmb.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n Combo text = (Combo) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n break;\r\n case DATE:\r\n IReplaceableParam<LocalDateTime> calParam = (IReplaceableParam<LocalDateTime>)editedParam;\r\n LocalDateTime calToUse = calParam.getValue();\r\n Composite dateAndTime = new Composite(tableParams, SWT.NONE);\r\n RowLayout rl = new RowLayout();\r\n rl.wrap = false;\r\n dateAndTime.setLayout(rl);\r\n //Date cellDt;\r\n try {\r\n LocalDateTime locDT = LocalDateTime.parse(cellText, dtFmt);\r\n if (locDT != null) {\r\n calToUse = locDT;\r\n }\r\n /*cellDt = dateFmt.parse(cellText);\r\n if (cellDt != null) {\r\n calToUse.setTime(cellDt);\r\n }*/\r\n } catch (DateTimeParseException e1) {\r\n log.error(\"widgetSelected \", e1);\r\n }\r\n\r\n DateTime datePicker = new DateTime(dateAndTime, SWT.DATE | SWT.MEDIUM | SWT.DROP_DOWN);\r\n datePicker.setData(DATA_VALUE_PARAM, calParam);\r\n DateTime timePicker = new DateTime(dateAndTime, SWT.TIME | SWT.LONG);\r\n timePicker.setData(DATA_VALUE_PARAM, calParam);\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n datePicker.setDate(calToUse.getYear(), calToUse.getMonthValue() - 1,\r\n calToUse.getDayOfMonth());\r\n timePicker.setTime(calToUse.getHour(), calToUse.getMinute(),\r\n calToUse.getSecond());\r\n\r\n datePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n // for the date picker the months are zero-based, the first month is 0 the last is 11\r\n // for LocalDateTime the months range 1-12\r\n calParam1.setValue(currDt.withYear(source.getYear()).withMonth(source.getMonth() + 1).withDayOfMonth(source.getDay()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n timePicker.addSelectionListener(new SelectionAdapter() {\r\n\r\n @Override\r\n public void widgetSelected(SelectionEvent se) {\r\n DateTime source = (DateTime)se.getSource();\r\n IReplaceableParam<LocalDateTime> calParam1 = (IReplaceableParam<LocalDateTime>)source.getData(DATA_VALUE_PARAM);\r\n if (calParam1 != null) {\r\n LocalDateTime currDt = calParam1.getValue();\r\n calParam1.setValue(currDt.withHour(source.getHours()).withMinute(source.getMinutes()).withSecond(source.getSeconds()));\r\n String resultText = dtFmt.format(calParam1.getValue());\r\n log.debug(\"Result Text \" + resultText);\r\n editor.getItem().setText(columnValueIndex, resultText);\r\n } else {\r\n log.warn(\"widgetSelected param is null\");\r\n }\r\n }\r\n\r\n });\r\n dateAndTime.layout();\r\n editControl = dateAndTime;\r\n break;\r\n case INTEGER:\r\n Text intEditor = new Text(tableParams, SWT.NONE);\r\n intEditor.setText(item.getText(columnValueIndex));\r\n intEditor.selectAll();\r\n intEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n Integer resultInt = null;\r\n try {\r\n resultInt = Integer.parseInt(text.getText());\r\n } catch (NumberFormatException nfe) {\r\n log.error(\"NFE \", nfe);\r\n }\r\n if (resultInt != null) {\r\n editor.getItem().setText(columnValueIndex, resultInt.toString());\r\n }\r\n }\r\n });\r\n editControl = intEditor;\r\n break;\r\n case STRING:\r\n default:\r\n Text newEditor = new Text(tableParams, SWT.NONE);\r\n newEditor.setText(item.getText(columnValueIndex));\r\n newEditor.setFont(tableParams.getFont());\r\n newEditor.selectAll();\r\n newEditor.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent se) {\r\n Text text = (Text) editor.getEditor();\r\n editor.getItem().setText(columnValueIndex, text.getText());\r\n }\r\n });\r\n editControl = newEditor;\r\n break;\r\n }\r\n\r\n editControl.setFont(tableParams.getFont());\r\n editControl.setFocus();\r\n editor.setEditor(editControl, item, columnValueIndex);\r\n }\r\n }\r\n });\r\n\r\n\r\n btnOK = new Button(shell, SWT.NONE);\r\n btnOK.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnOK = new FormData();\r\n fd_btnOK.bottom = new FormAttachment(100, -7);\r\n fd_btnOK.right = new FormAttachment(40, 2);\r\n fd_btnOK.top = new FormAttachment(100, -35);\r\n fd_btnOK.left = new FormAttachment(15, 2);\r\n btnOK.setLayoutData(fd_btnOK);\r\n btnOK.setText(\"OK\");\r\n btnOK.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.OK, getParamMap());\r\n shell.close();\r\n }\r\n\r\n });\r\n shell.setDefaultButton(btnOK);\r\n\r\n btnCancel = new Button(shell, SWT.NONE);\r\n btnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 11, SWT.NORMAL));\r\n FormData fd_btnCancel = new FormData();\r\n fd_btnCancel.bottom = new FormAttachment(100, -7);\r\n fd_btnCancel.left = new FormAttachment(60, -2);\r\n fd_btnCancel.top = new FormAttachment(100, -35);\r\n fd_btnCancel.right = new FormAttachment(85, -2);\r\n btnCancel.setLayoutData(fd_btnCancel);\r\n btnCancel.setText(\"Cancel\");\r\n btnCancel.addSelectionListener(new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(SelectionEvent e) {\r\n result = new DialogResult<>(SWT.CANCEL, null);\r\n shell.close();\r\n }\r\n\r\n });\r\n tableParams.redraw();\r\n }",
"private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(720, 480);\n\t\tshell.setText(\"1FN Normalization\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tcomposite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));\n\t\tcomposite.setLayout(new GridLayout(5, false));\n\t\tlblSeparators = new Label(composite, SWT.NONE);\n\t\tlblSeparators.setText(\"Separators:\");\n\t\tcomposite_1 = new Composite(composite, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(5, false));\n\t\tcomposite_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));\n\t\tchk1 = new Button(composite_1, SWT.CHECK);\n\t\tchk1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk1widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk1.setSelection(true);\n\t\tchk1.setText(\";\");\n\t\tchk2 = new Button(composite_1, SWT.CHECK);\n\t\tchk2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk2widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk2.setSelection(true);\n\t\tchk2.setText(\"cr\");\n\t\tchk3 = new Button(composite_1, SWT.CHECK);\n\t\tchk3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk3widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk3.setText(\",\");\n\t\tchk4 = new Button(composite_1, SWT.CHECK);\n\t\tchk4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk4widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk4.setText(\"space\");\n\t\tchk5 = new Button(composite_1, SWT.CHECK);\n\t\tchk5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk5widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk5.setText(\".\");\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\t\tlblColumn = new Label(composite, SWT.NONE);\n\t\tlblColumn.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));\n\t\tlblColumn.setText(\"Column:\");\n\t\tlstColumn = new List(composite, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\n\t\tlstColumn.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdolstColumnwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tGridData gd_lstColumn = new GridData(SWT.LEFT, SWT.FILL, false, true, 4, 1);\n\t\tgd_lstColumn.widthHint = 150;\n\t\tgd_lstColumn.heightHint = 80;\n\t\tlstColumn.setLayoutData(gd_lstColumn);\n\t\tlblMethod = new Label(composite, SWT.NONE);\n\t\tlblMethod.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblMethod.setText(\"Method:\");\n\t\tcheckSingle = new Button(composite, SWT.RADIO);\n\t\tcheckSingle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdocheckSinglewidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tcheckSingle.setText(\"Single Table (Recommended)\");\n\t\tchkMulti = new Button(composite, SWT.RADIO);\n\t\tchkMulti.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochkMultiwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchkMulti.setText(\"Multi table\");\n\t\tlblNewTableName = new Label(composite, SWT.NONE);\n\t\tlblNewTableName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblNewTableName.setText(\"New table name: \");\n\t\ttxtNewTableName = new Text(composite, SWT.BORDER);\n\t\ttxtNewTableName.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tdotxtNewTableNamemodifyText(arg0);\n\t\t\t}\n\t\t});\n\t\ttxtNewTableName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tlblActual = new Label(shell, SWT.NONE);\n\t\tlblActual.setText(\"Actual\");\n\t\tlblRefatored = new Label(shell, SWT.NONE);\n\t\tlblRefatored.setText(\"Refator\");\n\t\tmodelEditor1 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tGridData gd_modelEditor1 = new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1);\n\t\tgd_modelEditor1.widthHint = 250;\n\t\tmodelEditor1.setLayoutData(gd_modelEditor1);\n\t\tmodelEditor2 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tmodelEditor2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tbtnConfirm = new Button(shell, SWT.NONE);\n\t\tbtnConfirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdobtnConfirmwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tbtnConfirm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 2, 1));\n\t\tbtnConfirm.setText(\"Confirm\");\n\t\ttxtNewTableName.setEnabled(false);\n\t}",
"private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.RESIZE | SWT.TITLE);\r\n\t\tshell.setSize(690, 436);\r\n\t\t\r\n\t\tDimension scrSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tint w = 690;\r\n\t\tint h = 436;\r\n\t\tshell.setBounds((int)(scrSize.width-w)/2,(int)(scrSize.height-h)/2,w, h);\r\n\t\tshell.setText(getText());\r\n\r\n\t\t\r\n\t\tloadData();\r\n\t\t\r\n\t\tviewer = new TableViewer(shell,SWT.FULL_SELECTION |SWT.MULTI |SWT.BORDER);\r\n\t\t\r\n\t\tfinal Table table = viewer.getTable();\r\n\t\ttable.setBounds(23, 53, 638, 285);\r\n\t\ttable.setLinesVisible(true);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setRedraw(true);\r\n\t\t\r\n\t\tTableColumn tbCol_Time = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Time.setWidth(69);\r\n\t\ttbCol_Time.setText(\"序号\");\t\t\r\n\t\t\r\n\t\tTableColumn tbCol_Path = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Path.setWidth(127);\r\n\t\ttbCol_Path.setText(\"进程\");\t\r\n\t\t\r\n\t\tTableColumn tbCol_Info = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Info.setWidth(123);\r\n\t\ttbCol_Info.setText(\"Hash值\");\r\n\t\t\r\n\t\tTableColumn tbCol_Type = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Type.setWidth(92);\r\n\t\ttbCol_Type.setText(\"类型\");\r\n\t\t\r\n\t\tTableColumn tbCol_Hash = new TableColumn(table, SWT.NONE);\r\n\t\ttbCol_Hash.setWidth(196);\r\n\t\ttbCol_Hash.setText(\"描述信息\");\r\n\t\t\r\n\t\tviewer.setContentProvider(new TableViewerContentProvider());\r\n\t\tviewer.setLabelProvider(new TableViewerLabelProvider());\r\n\t\tviewer.setInput(white_list);\t\t\t\t//===== 设置数据源 ======\r\n\t\t\r\n\t\trefresh();\r\n\t\t\r\n\t\tlbl_ItemCount = new Label(shell, SWT.NONE);\r\n\t\tlbl_ItemCount.setBounds(43, 355, 194, 21);\r\n\t\tlbl_ItemCount.setText(\"未通过验证进程: \"+ table.getItemCount() +\"个\");\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.setBounds(309, 344, 88, 25);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tcount--;\r\n\t\t\t\tshell.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setText(\"确定\");\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setFont(SWTResourceManager.getFont(\"楷体_GB2312\", 16, SWT.BOLD));\r\n\t\tlabel.setBounds(301, 10, 118, 21);\r\n\t\tlabel.setText(\"详细信息\");\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\r\n\t\tlabel_1.setBounds(10, 45, 664, 2);\r\n\r\n\t\t\r\n\t\t//添加窗体鼠标事件\r\n\t\tshell.addMouseListener(new MouseListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDown(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\tx=e.x;\r\n\t\t\t\ty=e.y;\t\t\t\t\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tx=y=-1;\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//鼠标移动事件\r\n\t\tshell.addMouseMoveListener(new MouseMoveListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMove(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(x>0)\r\n\t\t\t\t{\r\n\t\t\t\t\tshell.setLocation(e.x-x + shell.getLocation().x,\r\n\t\t\t\t\t\te.y-y + shell.getLocation().y);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}",
"public static void createRecipe(Recipe r, final Shell shell)\r\n {\n final Shell newShell = new Shell(shell.getDisplay());\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.numColumns = 1;\r\n newShell.setLayout(gridLayout);\r\n newShell.setSize(800, 600);\r\n newShell.addShellListener(new ShellListener()\r\n {\r\n\r\n public void shellActivated(ShellEvent shellevent)\r\n {\r\n }\r\n\r\n public void shellClosed(ShellEvent shellevent)\r\n {\r\n shell.setEnabled(true);\r\n }\r\n\r\n public void shellDeactivated(ShellEvent shellevent)\r\n {\r\n }\r\n\r\n public void shellDeiconified(ShellEvent shellevent)\r\n {\r\n }\r\n\r\n public void shellIconified(ShellEvent shellevent)\r\n {\r\n }\r\n });\r\n shell.setEnabled(false);\r\n\r\n // Construct edit window\r\n createEditWin(r, newShell);\r\n newShell.open();\r\n }",
"private void createContents(Shell shell) \r\n\t{\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\t// Create the StyledText\r\n\t\tfinal StyledText styledText = new StyledText(shell, SWT.BORDER);\r\n\r\n\t\t// Add the syntax coloring handler\r\n\t\tstyledText.addExtendedModifyListener(new ExtendedModifyListener() \r\n\t\t{\r\n\t\t\tpublic void modifyText(ExtendedModifyEvent event) \r\n\t\t\t{\r\n\t\t\t\t// Determine the ending offset\r\n\t\t\t\tint end = event.start + event.length - 1;\r\n\r\n\t\t\t\t// If they typed something, get it\r\n\t\t\t\tif (event.start <= end) \r\n\t\t\t\t{\r\n\t\t\t\t\t// Get the text\r\n\t\t\t\t\tString text = styledText.getText(event.start, end);\r\n\r\n\t\t\t\t\t// Create a collection to hold the StyleRanges\r\n\t\t\t\t\tjava.util.List ranges = new java.util.ArrayList();\r\n\r\n\t\t\t\t\t// Turn any punctuation red\r\n\t\t\t\t\tfor (int i = 0, n = text.length(); i < n; i++) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (PUNCTUATION.indexOf(text.charAt(i)) > -1) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tranges.add(new StyleRange(event.start + i, 1, red, null, SWT.BOLD));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// If we have any ranges to set, set them\r\n\t\t\t\t\tif (!ranges.isEmpty()) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstyledText.replaceStyleRanges(event.start, event.length,(StyleRange[]) ranges.toArray(new StyleRange[0]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }",
"protected void createContents() throws UnknownHostException, IOException, InterruptedException {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tshlUser = new Shell();\r\n\t\tshlUser.setSize(450, 464);\r\n\t\tshlUser.setText(\"QQ聊天室\\r\\n\");\r\n\t\t\r\n\t\ttext = new Text(shlUser, SWT.BORDER);\r\n\t\ttext.setEnabled(false);\r\n\t\ttext.setBounds(0, 52, 424, 187);\r\n\t\t\r\n\t\t\r\n\t\ttext_1 = new Text(shlUser, SWT.BORDER);\t\t\r\n\t\ttext_1.setBounds(23, 263, 274, 23);\r\n\t\t\r\n\t\tButton button = new Button(shlUser, SWT.CENTER);\r\n\t\tbutton.setText(\"发送\");\r\n\t\tbutton.setBounds(321, 257, 80, 27);\r\n\t\t\r\n\t\ttext_2 = new Text(shlUser, SWT.BORDER);\r\n\t\ttext_2.setText(\"abc\");\r\n\t\ttext_2.setBounds(61, 7, 91, 23);\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(shlUser, SWT.NONE);\r\n\t\tlblNewLabel.setBounds(0, 10, 51, 17);\r\n\t\tlblNewLabel.setText(\"昵称:\");\r\n\t\t\r\n\t\tButton btnNewButton = new Button(shlUser, SWT.NONE);\r\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tnew Thread() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t// 连接服务器\r\n\t\t\t\t\t\t\t\tsocket = new Socket(\"127.0.0.1\", 8888);\r\n\t\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\t\t// 如果连不上服务器,说明服务器未启动,则启动服务器\r\n\t\t\t\t\t\t\t\tserver = new ServerSocket(8888);\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"服务器启动完成,监听端口:8888\");\r\n\t\t\t\t\t\t\t\tsocket = server.accept();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t\t * 注意:所有在自定义线程中修改图形控件属性,\r\n\t\t\t\t\t\t\t * 都必须使用 shell.getDisplay().asyncExec() 方法\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tMessageBox mb = new MessageBox(shlUser,SWT.OK);\r\n\t\t\t\t\t\t\t\t\tmb.setText(\"系统提示\");\r\n\t\t\t\t\t\t\t\t\tmb.setMessage(\"连接成功!现在你可以开始聊天了!\");\r\n\t\t\t\t\t\t\t\t\tmb.open();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\ttalker = new Talker(socket, new MsgListener() {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onMessage(String msg) {\r\n\t\t\t\t\t\t\t\t\t// 收到消息时,将消息更新到多行文本框\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onConnect(InetAddress addr) {\r\n\t\t\t\t\t\t\t\t\t// 连接成功时,显示对方IP\r\n\t\t\t\t\t\t\t\t\tshlUser.getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\tlblNewLabel.setText(\"好友IP:\" + addr.getHostAddress());\r\n\t\t\t\t\t\t\t\t\t\t\ttext.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttMsg = new Text(shlUser, SWT.BORDER);\r\n\t\ttMsg.setEnabled(false);\r\n\t\ttMsg.setBounds(10, 364, 414, 26);\r\n\r\n\t\t\r\n\t\tbtnNewButton.setBounds(324, 7, 80, 27);\r\n\t\tbtnNewButton.setText(\"连接服务器\");\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (tMsg.getText().trim().isEmpty() == false) {\r\n\t\t\t\t\t\tString msg = talker.send(text_2.getText(), tMsg.getText());\r\n\t\t\t\t\t\ttext.setText(text.getText() + msg + \"\\r\\n\");\r\n\t\t\t\t\t\ttMsg.setText(\"\");\r\n\t\t\t\t\t\t// 设置焦点\r\n\t\t\t\t\t\ttMsg.setFocus();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t}",
"private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }",
"private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}",
"protected void createContents() {\r\n\t\tshell = new Shell(SWT.APPLICATION_MODAL|SWT.CLOSE);\r\n\t\tshell.setSize(800, 600);\r\n\t\tshell.setText(\"租借/归还车辆\");\r\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\r\n\r\n\t\t/**换肤功能已经实现*/\r\n\t\tString bgpath = ChangeSkin.getCurrSkin();\r\n\t\tInputStream bg = this.getClass().getResourceAsStream(bgpath);\r\n\t\t\r\n\t\tInputStream reimg = this.getClass().getResourceAsStream(\"/Img/icon1.png\");\r\n\t\tshell.setBackgroundImage(new Image(display,bg));\r\n\t\tshell.setImage(new Image(display, reimg));\r\n\t\t\r\n\t\t\r\n\t\tLabel label = new Label(shell, SWT.NONE);\r\n\t\tlabel.setBounds(52, 48, 168, 20);\r\n\t\tlabel.setText(\"\\u8BF7\\u60A8\\u8BA4\\u771F\\u586B\\u5199\\u79DF\\u8D41\\u4FE1\\u606F:\");\r\n\t\t\r\n\t\tLabel lblid = new Label(shell, SWT.NONE);\r\n\t\tlblid.setBounds(158, 180, 61, 20);\r\n\t\tlblid.setText(\"\\u8F66\\u8F86ID\");\r\n\t\t\r\n\t\tui_car_id = new Text(shell, SWT.BORDER);\r\n\t\tui_car_id.setBounds(225, 177, 129, 26);\r\n\t\t\r\n\t\tui_renter = new Text(shell, SWT.BORDER);\r\n\t\tui_renter.setBounds(225, 228, 129, 26);\r\n\t\t\r\n\t\tLabel label_1 = new Label(shell, SWT.NONE);\r\n\t\tlabel_1.setBounds(159, 231, 61, 20);\r\n\t\tlabel_1.setText(\"\\u79DF\\u8D41\\u4EBA\");\r\n\t\t\r\n\t\tDateTime ui_start = new DateTime(shell, SWT.BORDER);\r\n\t\tui_start.setBounds(225, 271, 129, 28);\r\n\t\t\r\n\t\tLabel label_2 = new Label(shell, SWT.NONE);\r\n\t\tlabel_2.setBounds(144, 271, 76, 20);\r\n\t\tlabel_2.setText(\"\\u5F00\\u59CB\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_3 = new Label(shell, SWT.NONE);\r\n\t\tlabel_3.setBounds(144, 326, 76, 20);\r\n\t\tlabel_3.setText(\"\\u7ED3\\u675F\\u65F6\\u95F4\");\r\n\t\t\r\n\t\tLabel label_4 = new Label(shell, SWT.NONE);\r\n\t\tlabel_4.setBounds(559, 97, 76, 20);\r\n\t\tlabel_4.setText(\"\\u5F53\\u524D\\u8D39\\u7528:\");\r\n\t\t\r\n\t\tLabel ui_count_price = new Label(shell, SWT.BORDER | SWT.CENTER);\r\n\t\tui_count_price.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 16, SWT.NORMAL));\r\n\t\tui_count_price.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\r\n\t\tui_count_price.setBounds(539, 205, 156, 77);\r\n\t\tui_count_price.setText(\"0.00\");\r\n\t\t\r\n\t\tDateTime ui_end = new DateTime(shell, SWT.BORDER);\r\n\t\tui_end.setBounds(225, 318, 129, 28);\r\n\t\t\r\n\t\tButton button = new Button(shell, SWT.NONE);\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentser = new RentService();\r\n\t\t\t\tdouble day_pri = rentser.rentPrice(ui_car_id.getText());\r\n\t\t\t\t/*当前仅能计算一个月以内的租用情况\r\n\t\t\t\t * @Time 10/09/15.03\r\n\t\t\t\t * \r\n\t\t\t\t * **/\r\n\t\t\t\t//不管当月几天,都按照30天计算\r\n\t\t\t\tint month = ui_end.getMonth()-ui_start.getMonth();\r\n\t\t\t\tint day = (ui_end.getDay() - ui_start.getDay()) +\r\n\t\t\t\t\t\tmonth * 30\r\n\t\t\t\t\t\t;\r\n\t\t\t\tif(day_pri > 0) {\r\n\t\t\t\t\tui_count_price.setText(String.valueOf(day*day_pri));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"数据非法\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(122, 393, 141, 30);\r\n\t\tbutton.setText(\"\\u4F30\\u7B97\\u5F53\\u524D\\u79DF\\u8D41\\u4EF7\\u683C\");\r\n\t\t\r\n\t\tButton button_1 = new Button(shell, SWT.NONE);\r\n\t\tbutton_1.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tRentService rentService = new RentService();\r\n\t\t\t\tString sdate = ui_start.getDay()+\"-\"+ui_start.getMonth()+\"月-\"+ui_start.getYear();\r\n\t\t\t\tString edate = ui_end.getDay()+\"-\"+ui_end.getMonth()+\"月-\"+ui_end.getYear();\r\n\t\t\t\t/**这个地方可能有问题*/\r\n\t\t\t\tboolean rentCar = rentService.rentCar(ui_car_id.getText(),sdate , edate, ui_count_price.getText());\r\n\t\t\t\tif(rentCar) {\r\n\t\t\t\t\tui_count_price.setText(\"租借成功!\");\r\n\t\t\t\t\t/**租借成功,就该让信息表中的数据减1**/\r\n\t\t\t\t\tCarService cars = new CarService();\r\n\t\t\t\t\tcars.minusCar(ui_car_id.getText());\r\n\t\t\t\t}else {\r\n\t\t\t\t\tui_count_price.setText(\"租借失败!\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(292, 393, 98, 30);\r\n\t\tbutton_1.setText(\"\\u79DF\\u501F\");\r\n\t\t\r\n\t\r\n\r\n\t}",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(550, 400);\n\t\tshell.setText(\"Source A Antenna 1 Data\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnNewButton_1.setBounds(116, 10, 98, 30);\n\t\tbtnNewButton_1.setText(\"pol 1\");\n\t\t\n\t\tButton btnPol = new Button(shell, SWT.NONE);\n\t\tbtnPol.setText(\"pol 2\");\n\t\tbtnPol.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol.setBounds(220, 10, 98, 30);\n\t\t\n\t\tButton btnPol_1 = new Button(shell, SWT.NONE);\n\t\tbtnPol_1.setText(\"pol 3\");\n\t\tbtnPol_1.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_1.setBounds(324, 10, 98, 30);\n\t\t\n\t\tButton btnPol_2 = new Button(shell, SWT.NONE);\n\t\tbtnPol_2.setText(\"pol 4\");\n\t\tbtnPol_2.setFont(SWTResourceManager.getFont(\"Ubuntu\", 11, SWT.BOLD));\n\t\tbtnPol_2.setBounds(428, 10, 98, 30);\n\t\t\n\t\tButton button_3 = new Button(shell, SWT.NONE);\n\t\tbutton_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tPlot_graph nw = new Plot_graph();\n\t\t\t\tnw.GraphScreen();\n\t\t\t}\n\t\t});\n\t\tbutton_3.setBounds(116, 46, 98, 30);\n\t\t\n\t\tButton button_4 = new Button(shell, SWT.NONE);\n\t\tbutton_4.setBounds(116, 83, 98, 30);\n\t\t\n\t\tButton button_5 = new Button(shell, SWT.NONE);\n\t\tbutton_5.setBounds(116, 119, 98, 30);\n\t\t\n\t\tButton button_6 = new Button(shell, SWT.NONE);\n\t\tbutton_6.setBounds(116, 155, 98, 30);\n\t\t\n\t\tButton button_7 = new Button(shell, SWT.NONE);\n\t\tbutton_7.setBounds(220, 155, 98, 30);\n\t\t\n\t\tButton button_8 = new Button(shell, SWT.NONE);\n\t\tbutton_8.setBounds(220, 119, 98, 30);\n\t\t\n\t\tButton button_9 = new Button(shell, SWT.NONE);\n\t\tbutton_9.setBounds(220, 83, 98, 30);\n\t\t\n\t\tButton button_10 = new Button(shell, SWT.NONE);\n\t\tbutton_10.setBounds(220, 46, 98, 30);\n\t\t\n\t\tButton button_11 = new Button(shell, SWT.NONE);\n\t\tbutton_11.setBounds(428, 155, 98, 30);\n\t\t\n\t\tButton button_12 = new Button(shell, SWT.NONE);\n\t\tbutton_12.setBounds(428, 119, 98, 30);\n\t\t\n\t\tButton button_13 = new Button(shell, SWT.NONE);\n\t\tbutton_13.setBounds(428, 83, 98, 30);\n\t\t\n\t\tButton button_14 = new Button(shell, SWT.NONE);\n\t\tbutton_14.setBounds(428, 46, 98, 30);\n\t\t\n\t\tButton button_15 = new Button(shell, SWT.NONE);\n\t\tbutton_15.setBounds(324, 46, 98, 30);\n\t\t\n\t\tButton button_16 = new Button(shell, SWT.NONE);\n\t\tbutton_16.setBounds(324, 83, 98, 30);\n\t\t\n\t\tButton button_17 = new Button(shell, SWT.NONE);\n\t\tbutton_17.setBounds(324, 119, 98, 30);\n\t\t\n\t\tButton button_18 = new Button(shell, SWT.NONE);\n\t\tbutton_18.setBounds(324, 155, 98, 30);\n\n\t}",
"protected void createContents() {\n\t\tDelAllShell = new Shell(SWT.CLOSE | SWT.MIN);\n\t\tfinal int WIDTH=java.awt.Toolkit.getDefaultToolkit().getScreenSize().width;\n\t\tfinal int HEIGHT=java.awt.Toolkit.getDefaultToolkit().getScreenSize().height;\n\t\t\n\t\tDelAllShell.setBounds((WIDTH-441)/2,(HEIGHT-300)/2,441, 177);\n\t\tDelAllShell.setText(\"清空\");\n\t\t\n\t\tLabel messgLabel_1 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_1.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_1.setBounds(10, 10, 405, 23);\n\t\tmessgLabel_1.setText(\"您所选择的分组为通讯录列表,确认删除时\");\n\t\t\n\t\tLabel messgLabel_2 = new Label(DelAllShell, SWT.CENTER);\n\t\tmessgLabel_2.setFont(SWTResourceManager.getFont(\"微软雅黑\", 13, SWT.NORMAL));\n\t\tmessgLabel_2.setBounds(62, 39, 272, 23);\n\t\tmessgLabel_2.setText(\"清空所有内容!\");\n\t\t\n\t\tButton yesButton = new Button(DelAllShell, SWT.NONE);\n\t\tyesButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\tTreeItem[] treeItem=mainTreeItem.getItems();\n\t\t\t\t\tfor(int i=0;i<treeItem.length;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ttreeItem[i].dispose();\n\t\t\t\t\t}\n\t\t\t\tGroups.getGroupList().clear();\n\t\t\t\tUsers.getUserList().clear();\n\t\t\t\tGroups.updateToFile();\n\t\t\t\tUsers.updateToFile();\n\t\t\t\t}catch(Exception ex){\n\t\t\t\t\tSystem.out.println(\"清空文件失败\");\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tDelAllShell.close();\n\t\t\t\t//final Group mainTreeItem = new Group(tree, SWT.NONE);\n\t\t\t\t//mainTreeItem.setText(\"通讯录列表\");\n\t\t\t\t//mainShell.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tyesButton.setBounds(86, 102, 80, 27);\n\t\tyesButton.setText(\"确定\");\n\t\t\n\t\tButton noButton = new Button(DelAllShell, SWT.NONE);\n\t\tnoButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e)\n\t\t\t{\n\t\t\t\tDelAllShell.close();\n\t\t\t}\n\t\t});\n\t\tnoButton.setText(\"取消\");\n\t\tnoButton.setBounds(254, 102, 80, 27);\n\n\t}",
"private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}",
"private Shell() { }",
"protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}",
"public void createContents(Composite parent) {\n\t\tparent.setLayout(new FillLayout());\n\t\tfMainSection = fToolkit.createSection(parent, Section.TITLE_BAR);\n\n\t\tComposite mainComposite = fToolkit.createComposite(fMainSection, SWT.NONE);\n\t\tfToolkit.paintBordersFor(mainComposite);\n\t\tfMainSection.setClient(mainComposite);\n\t\tmainComposite.setLayout(new GridLayout(1, true));\n\t\t\n\t\tcreateClassListViewer(mainComposite);\n\t\tcreateBottomButtons(mainComposite);\n\t\tcreateTextClientComposite(fMainSection);\n\t}",
"protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}",
"protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}",
"protected void createContents() {\n\n\t\tfinal FileServeApplicationWindow appWindow = this;\n\n\t\tthis.shlFileServe = new Shell();\n\t\tthis.shlFileServe.setSize(450, 300);\n\t\tthis.shlFileServe.setText(\"File Serve - Server\");\n\t\tthis.shlFileServe.setLayout(new BorderLayout(0, 0));\n\n\t\tthis.composite = new Composite(this.shlFileServe, SWT.NONE);\n\t\tthis.composite.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tthis.composite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.composite.setLayout(new FormLayout());\n\n\t\tthis.lblServerTcpPort = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerTcpPort = new FormData();\n\t\tfd_lblServerTcpPort.top = new FormAttachment(0, 10);\n\t\tfd_lblServerTcpPort.left = new FormAttachment(0, 10);\n\t\tthis.lblServerTcpPort.setLayoutData(fd_lblServerTcpPort);\n\t\tthis.lblServerTcpPort.setText(\"Server TCP Port:\");\n\n\t\tthis.serverTCPPortField = new Text(this.composite, SWT.BORDER);\n\t\tthis.serverTCPPortField.setTextLimit(5);\n\t\tthis.serverTCPPortField.addVerifyListener(new VerifyListener() {\n\t\t\t@Override\n\t\t\tpublic void verifyText(VerifyEvent e) {\n\t\t\t\te.doit = true;\n\t\t\t\tfor(int i = 0; i < e.text.length(); i++) {\n\n\t\t\t\t\tchar c = e.text.charAt(i);\n\n\t\t\t\t\tboolean b = false;\n\n\t\t\t\t\tif(c >= '0' && c <= '9') {b = true;}\n\t\t\t\t\telse if(c == SWT.BS) {b = true;}\n\t\t\t\t\telse if(c == SWT.DEL) {b = true;}\n\n\t\t\t\t\tif(b == false) {\n\t\t\t\t\t\te.doit = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tFormData fd_serverTCPPortField = new FormData();\n\t\tfd_serverTCPPortField.top = new FormAttachment(0, 7);\n\t\tfd_serverTCPPortField.right = new FormAttachment(100, -54);\n\t\tfd_serverTCPPortField.left = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tthis.serverTCPPortField.setLayoutData(fd_serverTCPPortField);\n\n\t\tthis.btnStartServer = new Button(this.composite, SWT.NONE);\n\t\tFormData fd_btnStartServer = new FormData();\n\t\tfd_btnStartServer.bottom = new FormAttachment(100, -10);\n\t\tfd_btnStartServer.right = new FormAttachment(100, -10);\n\t\tthis.btnStartServer.setLayoutData(fd_btnStartServer);\n\t\tthis.btnStartServer.setText(\"Start Server\");\n\n\t\tthis.lblServerStatus = new Label(this.composite, SWT.NONE);\n\t\tFormData fd_lblServerStatus = new FormData();\n\t\tfd_lblServerStatus.right = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_lblServerStatus.top = new FormAttachment(this.btnStartServer, 5, SWT.TOP);\n\t\tfd_lblServerStatus.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblServerStatus.setLayoutData(fd_lblServerStatus);\n\t\tthis.lblServerStatus.setText(\"Server Status: Stopped\");\n\n\t\tthis.text = new Text(this.composite, SWT.BORDER);\n\t\tFormData fd_text = new FormData();\n\t\tfd_text.top = new FormAttachment(this.serverTCPPortField, 6);\n\t\tthis.text.setLayoutData(fd_text);\n\n\t\tthis.lblHighestDirectory = new Label(this.composite, SWT.NONE);\n\t\tfd_text.left = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tFormData fd_lblHighestDirectory = new FormData();\n\t\tfd_lblHighestDirectory.top = new FormAttachment(this.lblServerTcpPort, 12);\n\t\tfd_lblHighestDirectory.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.lblHighestDirectory.setLayoutData(fd_lblHighestDirectory);\n\t\tthis.lblHighestDirectory.setText(\"Highest Directory:\");\n\n\t\tthis.button = new Button(this.composite, SWT.NONE);\n\n\t\tfd_text.right = new FormAttachment(100, -54);\n\t\tFormData fd_button = new FormData();\n\t\tfd_button.left = new FormAttachment(this.text, 6);\n\t\tthis.button.setLayoutData(fd_button);\n\t\tthis.button.setText(\"...\");\n\n\t\tthis.grpConnectionInformation = new Group(this.composite, SWT.NONE);\n\t\tfd_button.bottom = new FormAttachment(this.grpConnectionInformation, -1);\n\t\tthis.grpConnectionInformation.setText(\"Connection Information:\");\n\t\tthis.grpConnectionInformation.setLayout(new BorderLayout(0, 0));\n\t\tFormData fd_grpConnectionInformation = new FormData();\n\t\tfd_grpConnectionInformation.bottom = new FormAttachment(this.btnStartServer, -6);\n\t\tfd_grpConnectionInformation.right = new FormAttachment(this.btnStartServer, 0, SWT.RIGHT);\n\t\tfd_grpConnectionInformation.top = new FormAttachment(this.lblHighestDirectory, 6);\n\t\tfd_grpConnectionInformation.left = new FormAttachment(this.lblServerTcpPort, 0, SWT.LEFT);\n\t\tthis.grpConnectionInformation.setLayoutData(fd_grpConnectionInformation);\n\n\t\tthis.scrolledComposite = new ScrolledComposite(this.grpConnectionInformation, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\n\t\tthis.scrolledComposite.setLayoutData(BorderLayout.CENTER);\n\t\tthis.scrolledComposite.setExpandHorizontal(true);\n\t\tthis.scrolledComposite.setExpandVertical(true);\n\n\t\tthis.table = new Table(this.scrolledComposite, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tthis.table.setLinesVisible(true);\n\t\tthis.table.setHeaderVisible(true);\n\t\tthis.scrolledComposite.setContent(this.table);\n\t\tthis.scrolledComposite.setMinSize(this.table.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}",
"private void createContents() throws SQLException {\n\t\tshell = new Shell(getParent(), SWT.SHELL_TRIM);\n\t\tshell.setImage(user.getIcondata().BaoduongIcon);\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tsetText(\"Tạo Công việc (Đợt Bảo dưỡng)\");\n\t\tshell.setSize(777, 480);\n\t\tnew FormTemplate().setCenterScreen(shell);\n\n\t\tFill_ItemData fi = new Fill_ItemData();\n\n\t\tSashForm sashForm = new SashForm(shell, SWT.NONE);\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));\n\n\t\tSashForm sashForm_3 = new SashForm(sashForm, SWT.VERTICAL);\n\n\t\tSashForm sashForm_2 = new SashForm(sashForm_3, SWT.NONE);\n\t\tComposite composite = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setText(\"Tên đợt Bảo dưỡng*:\");\n\n\t\ttext_Tendot_Baoduong = new Text(composite, SWT.BORDER);\n\t\ttext_Tendot_Baoduong.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\n\t\tLabel label_3 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_3 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_3.verticalIndent = 3;\n\t\tlabel_3.setLayoutData(gd_label_3);\n\t\tlabel_3.setText(\"Loại phương tiện:\");\n\n\t\tcombo_Loaiphuongtien = new Combo(composite, SWT.READ_ONLY);\n\t\tcombo_Loaiphuongtien.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\tFill_ItemData f = new Fill_ItemData();\n\t\t\t\t\tif ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Xemay()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Xemay());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t} else if ((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText()) == f.getInt_Oto()) {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setLOAI_PHUONG_TIEN(f.getInt_Oto());\n\t\t\t\t\t\ttree_PTTS.removeAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcombo_Loaiphuongtien.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 1, 1));\n\t\tfi.setComboBox_LOAIPHUONGTIEN_Phuongtien_Giaothong(combo_Loaiphuongtien, 0);\n\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tGridData gd_label_4 = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_label_4.verticalIndent = 3;\n\t\tlabel_4.setLayoutData(gd_label_4);\n\t\tlabel_4.setText(\"Mô tả:\");\n\n\t\ttext_Mota = new Text(composite, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\n\t\ttext_Mota.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tbtnNgunSaCha = new Button(composite, SWT.NONE);\n\t\tGridData gd_btnNgunSaCha = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnNgunSaCha.widthHint = 85;\n\t\tbtnNgunSaCha.setLayoutData(gd_btnNgunSaCha);\n\t\tbtnNgunSaCha.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tChonNguonSuachua_Baoduong cnsb = new ChonNguonSuachua_Baoduong(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\tcnsb.open();\n\t\t\t\t\tnsb = cnsb.getResult();\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null) {\n\t\t\t\t\t\tfillNguonSuachuaBaoduong(nsb);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (nsb == null) {\n\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO | SWT.CLOSE);\n\t\t\t\t\t\tm.setText(\"Xóa dữ liệu cũ?\");\n\t\t\t\t\t\tm.setMessage(\"Bạn muốn xóa dữ liệu cũ?\");\n\t\t\t\t\t\tint rc = m.open();\n\t\t\t\t\t\tswitch (rc) {\n\t\t\t\t\t\tcase SWT.CANCEL:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(-1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tViewAndEdit_MODE_dsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t}\n\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG(ViewAndEdit_MODE_dsb);\n\t\t\t\t\tfillNguonSuachuaBaoduong(ViewAndEdit_MODE_dsb);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnNgunSaCha.setText(\"Liên hệ\");\n\t\tbtnNgunSaCha.setImage(user.getIcondata().PhoneIcon);\n\n\t\tComposite composite_1 = new Composite(sashForm_2, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblSXut = new Label(composite_1, SWT.NONE);\n\t\tlblSXut.setText(\"Số đề xuất: \");\n\n\t\ttext_Sodexuat = new Text(composite_1, SWT.NONE);\n\t\ttext_Sodexuat.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Sodexuat.setEditable(false);\n\t\ttext_Sodexuat.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyThng = new Label(composite_1, SWT.NONE);\n\t\tlblNgyThng.setText(\"Ngày tháng: \");\n\n\t\ttext_NgaythangVanban = new Text(composite_1, SWT.NONE);\n\t\ttext_NgaythangVanban.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_NgaythangVanban.setEditable(false);\n\t\ttext_NgaythangVanban.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblnV = new Label(composite_1, SWT.NONE);\n\t\tlblnV.setText(\"Đơn vị: \");\n\n\t\ttext_Donvi = new Text(composite_1, SWT.NONE);\n\t\ttext_Donvi.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Donvi.setEditable(false);\n\t\ttext_Donvi.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyXL = new Label(composite_1, SWT.NONE);\n\t\tlblNgyXL.setText(\"Ngày xử lý:\");\n\n\t\ttext_Ngaytiepnhan = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaytiepnhan.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaytiepnhan.setEditable(false);\n\t\ttext_Ngaytiepnhan.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblNgyGiao = new Label(composite_1, SWT.NONE);\n\t\tlblNgyGiao.setText(\"Ngày giao:\");\n\n\t\ttext_Ngaygiao = new Text(composite_1, SWT.NONE);\n\t\ttext_Ngaygiao.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Ngaygiao.setEditable(false);\n\t\ttext_Ngaygiao.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblTrchYu = new Label(composite_1, SWT.NONE);\n\t\tGridData gd_lblTrchYu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblTrchYu.verticalIndent = 3;\n\t\tlblTrchYu.setLayoutData(gd_lblTrchYu);\n\t\tlblTrchYu.setText(\"Ghi chú: \");\n\n\t\ttext_Trichyeu = new Text(composite_1, SWT.NONE);\n\t\ttext_Trichyeu.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW));\n\t\ttext_Trichyeu.setEditable(false);\n\t\tGridData gd_text_Trichyeu = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n\t\tgd_text_Trichyeu.heightHint = 27;\n\t\ttext_Trichyeu.setLayoutData(gd_text_Trichyeu);\n\t\tnew Label(composite_1, SWT.NONE);\n\n\t\tbtnThemDexuat = new Button(composite_1, SWT.NONE);\n\t\tbtnThemDexuat.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tInsert_dx = null;\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null\n\t\t\t\t\t\t\t&& ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() > 0) {\n\t\t\t\t\t\tInsert_dx = controler.getControl_DEXUAT().get_DEXUAT(ViewAndEdit_MODE_dsb);\n\t\t\t\t\t}\n\t\t\t\t\tif (Insert_dx != null) {\n\t\t\t\t\t\tTAPHOSO ths = controler.getControl_TAPHOSO().get_TAP_HO_SO(Insert_dx.getMA_TAPHOSO());\n\t\t\t\t\t\tTaphoso_View thsv = new Taphoso_View(shell, SWT.DIALOG_TRIM, user, ths, false);\n\t\t\t\t\t\tthsv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNhapDeXuat ndx = new NhapDeXuat(shell, SWT.DIALOG_TRIM, user);\n\t\t\t\t\t\tndx.open();\n\t\t\t\t\t\tInsert_dx = ndx.result;\n\t\t\t\t\t\tif (Insert_dx == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb == null)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tif (ViewAndEdit_MODE_dsb.getMA_DOT_THUCHIEN_SUACHUA_BAODUONG() <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien <= 0)\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\tboolean ict = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(\n\t\t\t\t\t\t\t\t\t\tViewAndEdit_MODE_dsb, Ma_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tif (ict) {\n\t\t\t\t\t\t\tMessageBox m = new MessageBox(shell, SWT.ICON_WORKING);\n\t\t\t\t\t\t\tm.setText(\"Hoàn tất\");\n\t\t\t\t\t\t\tm.setMessage(\"Thêm Đề xuất Hoàn tất\");\n\t\t\t\t\t\t\tm.open();\n\t\t\t\t\t\t\tfillDexuat(Insert_dx);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (NullPointerException | SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnThemDexuat.setImage(user.getIcondata().DexuatIcon);\n\t\tbtnThemDexuat.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, false, false, 1, 1));\n\t\tbtnThemDexuat.setText(\"Thêm Hồ sơ\");\n\t\tsashForm_2.setWeights(new int[] { 1000, 618 });\n\n\t\tSashForm sashForm_1 = new SashForm(sashForm_3, SWT.NONE);\n\t\ttree_PTTS = new Tree(sashForm_1, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);\n\t\ttree_PTTS.setLinesVisible(true);\n\t\ttree_PTTS.setHeaderVisible(true);\n\t\ttree_PTTS.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event arg0) {\n\t\t\t\tTreeItem[] til = tree_PTTS.getSelection();\n\t\t\t\tif (til.length > 0) {\n\t\t\t\t\tRow_PTTSthamgia_Baoduong pttg = (Row_PTTSthamgia_Baoduong) til[0].getData();\n\t\t\t\t\tsetHinhthuc_Baoduong(pttg.getHtbd());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttree_PTTS.addListener(SWT.SetData, new Listener() {\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tif (tree_PTTS.getItems().length > 0) {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\tcombo_Loaiphuongtien.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tTreeColumn trclmnStt = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnStt.setWidth(50);\n\t\ttrclmnStt.setText(\"Stt\");\n\n\t\tTreeColumn trclmnTnMT = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnTnMT.setWidth(100);\n\t\ttrclmnTnMT.setText(\"Tên, mô tả\");\n\n\t\tTreeColumn trclmnHngSnXut = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnHngSnXut.setWidth(100);\n\t\ttrclmnHngSnXut.setText(\"Hãng sản xuất\");\n\n\t\tTreeColumn trclmnDngXe = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnDngXe.setWidth(100);\n\t\ttrclmnDngXe.setText(\"Dòng xe\");\n\n\t\tTreeColumn trclmnBinS = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBinS.setWidth(100);\n\t\ttrclmnBinS.setText(\"Biển số\");\n\n\t\tTreeColumn trclmnNgySDng = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnNgySDng.setWidth(100);\n\t\ttrclmnNgySDng.setText(\"Ngày sử dụng\");\n\n\t\tTreeColumn trclmnMPhngTin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnMPhngTin.setWidth(90);\n\t\ttrclmnMPhngTin.setText(\"Mã PTTS\");\n\n\t\tMenu menu = new Menu(tree_PTTS);\n\t\ttree_PTTS.setMenu(menu);\n\n\t\tMenuItem mntmThmPhngTin = new MenuItem(menu, SWT.NONE);\n\t\tmntmThmPhngTin.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tThem_PTGT();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmntmThmPhngTin.setText(\"Thêm phương tiện tài sản\");\n\n\t\tMenuItem mntmXoa = new MenuItem(menu, SWT.NONE);\n\t\tmntmXoa.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tdelete();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t\tmntmXoa.setText(\"Xóa\");\n\n\t\tTreeColumn trclmnThayNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayNht.setWidth(70);\n\t\ttrclmnThayNht.setText(\"Thay nhớt\");\n\n\t\tTreeColumn trclmnThayLcNht = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNht.setWidth(100);\n\t\ttrclmnThayLcNht.setText(\"Thay lọc nhớt\");\n\n\t\tTreeColumn trclmnThayLcGi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcGi.setWidth(100);\n\t\ttrclmnThayLcGi.setText(\"Thay lọc gió\");\n\n\t\tTreeColumn trclmnThayLcNhin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayLcNhin.setWidth(100);\n\t\ttrclmnThayLcNhin.setText(\"Thay lọc nhiên liệu\");\n\n\t\tTreeColumn trclmnThayDuPhanh = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuPhanh.setWidth(100);\n\t\ttrclmnThayDuPhanh.setText(\"Thay Dầu phanh - ly hợp\");\n\n\t\tTreeColumn trclmnThayDuHp = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuHp.setWidth(100);\n\t\ttrclmnThayDuHp.setText(\"Thay Dầu hộp số\");\n\n\t\tTreeColumn trclmnThayDuVi = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuVi.setWidth(100);\n\t\ttrclmnThayDuVi.setText(\"Thay Dầu vi sai\");\n\n\t\tTreeColumn trclmnLcGiGin = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnLcGiGin.setWidth(100);\n\t\ttrclmnLcGiGin.setText(\"Lọc gió giàn lạnh\");\n\n\t\tTreeColumn trclmnThayDuTr = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnThayDuTr.setWidth(100);\n\t\ttrclmnThayDuTr.setText(\"Thay dầu trợ lực lái\");\n\n\t\tTreeColumn trclmnBoDngKhcs = new TreeColumn(tree_PTTS, SWT.NONE);\n\t\ttrclmnBoDngKhcs.setWidth(100);\n\t\ttrclmnBoDngKhcs.setText(\"Bảo dưỡng khác\");\n\n\t\tExpandBar expandBar = new ExpandBar(sashForm_1, SWT.V_SCROLL);\n\t\texpandBar.setForeground(SWTResourceManager.getColor(SWT.COLOR_LIST_FOREGROUND));\n\n\t\tExpandItem xpndtmLoiHnhBo = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setText(\"Loại hình bảo dưỡng\");\n\n\t\tComposite grpHnhThcBo = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLoiHnhBo.setControl(grpHnhThcBo);\n\t\tgrpHnhThcBo.setLayout(new GridLayout(1, false));\n\n\t\tbtnDaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDaudongco.setText(\"Dầu động cơ\");\n\n\t\tbtnLocdaudongco = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocdaudongco.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocdaudongco.setText(\"Lọc dầu động cơ\");\n\n\t\tbtnLocgio = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgio.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgio.setText(\"Lọc gió\");\n\n\t\tbtnLocnhienlieu = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocnhienlieu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocnhienlieu.setText(\"Lọc nhiên liệu\");\n\n\t\tbtnDauphanh_lyhop = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauphanh_lyhop.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauphanh_lyhop.setText(\"Dầu phanh và dầu ly hợp\");\n\n\t\tbtnDauhopso = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauhopso.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauhopso.setText(\"Dầu hộp số\");\n\n\t\tbtnDauvisai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDauvisai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDauvisai.setText(\"Dầu vi sai\");\n\n\t\tbtnLocgiogianlanh = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnLocgiogianlanh.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnLocgiogianlanh.setText(\"Lọc gió giàn lạnh\");\n\n\t\tbtnDautroluclai = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnDautroluclai.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnDautroluclai.setText(\"Dầu trợ lực lái\");\n\n\t\tbtnBaoduongkhac = new Button(grpHnhThcBo, SWT.CHECK);\n\t\tbtnBaoduongkhac.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tupdateSelectedList();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBaoduongkhac.setText(\"Bảo dưỡng khác\");\n\t\txpndtmLoiHnhBo.setHeight(xpndtmLoiHnhBo.getControl().computeSize(SWT.DEFAULT, SWT.DEFAULT).y);\n\n\t\tExpandItem xpndtmLinH = new ExpandItem(expandBar, SWT.NONE);\n\t\txpndtmLinH.setText(\"Liên hệ\");\n\n\t\tComposite composite_2 = new Composite(expandBar, SWT.NONE);\n\t\txpndtmLinH.setControl(composite_2);\n\t\tcomposite_2.setLayout(new GridLayout(2, false));\n\n\t\tLabel lblTnLinH = new Label(composite_2, SWT.NONE);\n\t\tlblTnLinH.setText(\"Tên liên hệ: \");\n\n\t\ttext_Tenlienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Tenlienhe.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\n\t\tLabel lblGiiThiu = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblGiiThiu = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblGiiThiu.verticalIndent = 3;\n\t\tlblGiiThiu.setLayoutData(gd_lblGiiThiu);\n\t\tlblGiiThiu.setText(\"Giới thiệu: \");\n\n\t\ttext_Gioithieu = new Text(composite_2, SWT.BORDER);\n\t\ttext_Gioithieu.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\n\t\tLabel lblLinH = new Label(composite_2, SWT.NONE);\n\t\tGridData gd_lblLinH = new GridData(SWT.LEFT, SWT.TOP, false, false, 1, 1);\n\t\tgd_lblLinH.verticalIndent = 3;\n\t\tlblLinH.setLayoutData(gd_lblLinH);\n\t\tlblLinH.setText(\"Liên hệ: \");\n\n\t\ttext_Lienhe = new Text(composite_2, SWT.BORDER);\n\t\ttext_Lienhe.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\txpndtmLinH.setHeight(120);\n\t\tsashForm_1.setWeights(new int[] { 543, 205 });\n\t\tsashForm_3.setWeights(new int[] { 170, 228 });\n\t\tsashForm.setWeights(new int[] { 1000 });\n\n\t\tbtnLuu = new Button(shell, SWT.NONE);\n\t\tbtnLuu.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dataCreate != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTaoMoi_DotSuachua_Baoduong();\n\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate void TaoMoi_DotSuachua_Baoduong() throws SQLException {\n\t\t\t\tif (checkTextNotNULL()) {\n\t\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = getDOT_SUACHUA_BAODUONG();\n\t\t\t\t\tint key = controler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t.InsertDOT_THUCHIEN_SUACHUA_BAODUONG(dsb, null, null);\n\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\tif (key >= 0) {\n\t\t\t\t\t\tif (nsb != null)\n\t\t\t\t\t\t\tdsb.setMA_NGUONSUACHUA_BAODUONG(nsb.getMA_NGUONSUACHUA_BAODUONG());\n\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG().update_DOT_THUCHIEN_SUACHUA_BAODUONG(dsb);\n\t\t\t\t\t\tint Ma_Quatrinh_Dexuat_thuchien = getMaQuantrinhDexuatThuchien(Insert_dx);\n\t\t\t\t\t\tif (Ma_Quatrinh_Dexuat_thuchien > 0)\n\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG()\n\t\t\t\t\t\t\t\t\t.update_DOT_THUCHIEN_SUACHUA_BAODUONG_Update_QUATRINH_DEXUAT_THUCHIEN(dsb,\n\t\t\t\t\t\t\t\t\t\t\tMa_Quatrinh_Dexuat_thuchien);\n\t\t\t\t\t\tTreeItem[] til = tree_PTTS.getItems();\n\t\t\t\t\t\tif (til.length > 0) {\n\t\t\t\t\t\t\tfor (TreeItem ti : til) {\n\t\t\t\t\t\t\t\tdsb.setMA_DOT_THUCHIEN_SUACHUA_BAODUONG(key);\n\t\t\t\t\t\t\t\tRow_PTTSthamgia_Baoduong rp = (Row_PTTSthamgia_Baoduong) ti.getData();\n\t\t\t\t\t\t\t\tcontroler.getControl_DOT_THUCHIEN_SUACHUA_BAODUONG_TAISAN()\n\t\t\t\t\t\t\t\t\t\t.set_DOT_THUCHIEN_SUACHUA_TAISAN(dsb, rp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tshowMessage_Succes();\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tGiaoViec gv = new GiaoViec(user);\n\t\t\t\t\t\tgv.open();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowMessage_Fail();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tshowMessage_FillText();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tprivate DOT_THUCHIEN_SUACHUA_BAODUONG getDOT_SUACHUA_BAODUONG() {\n\t\t\t\tDOT_THUCHIEN_SUACHUA_BAODUONG dsb = new DOT_THUCHIEN_SUACHUA_BAODUONG();\n\t\t\t\tdsb.setTEN_DOT_THUCHIEN_SUACHUA_BAODUONG(text_Tendot_Baoduong.getText());\n\t\t\t\tdsb.setLOAI_PHUONG_TIEN(\n\t\t\t\t\t\tInteger.valueOf((int) combo_Loaiphuongtien.getData(combo_Loaiphuongtien.getText())));\n\t\t\t\tdsb.setSUACHUA_BAODUONG(fi.getInt_Baoduong());\n\t\t\t\tdsb.setMO_TA(text_Mota.getText());\n\t\t\t\treturn dsb;\n\t\t\t}\n\n\t\t});\n\t\tGridData gd_btnLu = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);\n\t\tgd_btnLu.widthHint = 75;\n\t\tbtnLuu.setLayoutData(gd_btnLu);\n\t\tbtnLuu.setText(\"Xong\");\n\n\t\tbtnDong = new Button(shell, SWT.NONE);\n\t\tbtnDong.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tif (ViewAndEdit_MODE_dsb != null) {\n\t\t\t\t\t\tupdateField();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// if (Insert_dx != null)\n\t\t\t\t\t\t// controler.getControl_DEXUAT().delete_DEXUAT(Insert_dx);\n\t\t\t\t\t}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tlog.error(e1.getMessage());\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tGridData gd_btnDong = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\n\t\tgd_btnDong.widthHint = 75;\n\t\tbtnDong.setLayoutData(gd_btnDong);\n\t\tbtnDong.setText(\"Đóng\");\n\t\tinit_loadMODE();\n\t\tinit_CreateMode();\n\t}",
"public void open() {\n display = Display.getDefault();\n createContents();\n shell.open();\n shell.layout();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n }\n\n // programme stop with exit 0\n System.exit(0);\n\n }",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"带进度条的表\");\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\tTable table = new Table(shell, SWT.BORDER);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n//\t\t两列\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tnew TableColumn(table, SWT.NONE);\r\n\t\t}\r\n\t\ttable.getColumn(0).setText(\"Task\");\r\n\t\ttable.getColumn(1).setText(\"Progress\");\r\n\r\n//\t\t四十行\r\n\t\tfor (int i = 0; i < 40; i++) {\r\n\t\t\tTableItem item = new TableItem(table, SWT.NONE);\r\n\t\t\titem.setText(\"Task \" + i);\r\n//\t\t\t行数为5的倍数时添加进度条\r\n\t\t\tif (i % 5 == 0) {\r\n\t\t\t\tProgressBar bar = new ProgressBar(table, SWT.NONE);\r\n\t\t\t\tbar.setSelection(i); // 进度条显示的百分比\r\n\t\t\t\tTableEditor editor = new TableEditor(table);\r\n\t\t\t\teditor.grabHorizontal = editor.grabVertical = true; // 宽度高度同表格\r\n\t\t\t\teditor.setEditor(bar, item, 1); // 在表格上方显示进度条\r\n\t\t\t}\r\n\t\t}\r\n\t\ttable.getColumn(0).pack();\r\n\t\ttable.getColumn(1).setWidth(128);\r\n\r\n\t\tshell.pack();\r\n\t}",
"public Content createContent();",
"public static void main(String[] args) {\n Shell mainShell = new Shell();\n // Continue to keep the shell opened as long as the user does not close\n // it\n while (mainShell.getStatus()) {\n mainShell.display();\n }\n\n }",
"Commands createCommands();",
"public interface Shell extends DirectoryOperations {\n void run(); // init and run the shell\n void terminate();\n void saveFileEntity(FileSystemEntity newDir);\n void executeCommand(CommandType commandType, List<String> params) throws IllegalOperationException, NoSuchCommandException, WriteFailureException;\n String getEnvironmentVar(String environmentKey);\n void setEnvironmentVar(String key, String val) throws WriteFailureException;\n}",
"public Node makeInputPanel() {\r\n VBox result = new VBox();\r\n myCommandLine = makeInputArea(350, 250);\r\n Button clearButton = makeButton(\"Clear\", event -> clear());\r\n Button runButton = makeButton(\"Run\", event -> {\r\n try {\r\n runInput(\"script\");\r\n updateModelWithInput( scriptFilePath + \"script.txt\");\r\n } catch (IOException e) {\r\n showError(e.getMessage());\r\n return;\r\n }\r\n });\r\n result.getChildren().addAll(myCommandLine, runButton, clearButton);\r\n result.setAlignment(Pos.CENTER);\r\n result.setSpacing(20);\r\n result.setMargin(myCommandLine, new Insets(0, 20, 0, 10));\r\n return result;\r\n }",
"protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}",
"protected void createContents() throws Exception\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(755, 592);\n\t\tshell.setText(\"Impresor - Documentos v1.2\");\n\t\t\n\t\tthis.commClass.centrarVentana(shell);\n\t\t\n\t\tlistComandos = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.COLOR_WHITE);\n\t\tlistComandos.setBounds(72, 22, 628, 498);\n\t\tlistComandos.setVisible(false);\n\n//Boton que carga los documentos\t\t\n\t\tButton btnLoaddocs = new Button(shell, SWT.NONE);\n\t\tbtnLoaddocs.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent arg0) {\n\t\t\t\tloadDocs(false, false);\n\t\t\t}\n\t\t});\n\t\tbtnLoaddocs.setBounds(10, 20, 200, 26);\n\t\tbtnLoaddocs.setText(\"Cargar documentos a imprimir\");\n\t\t\n//Browser donde se muestra el documento descargado\n\t\tbrowser = new Browser(shell, SWT.BORDER);\n\t\tbrowser.setBounds(10, 289, 726, 231);\n\t\tbrowser.addProgressListener(new ProgressListener() \n\t\t{\n\t\t\tpublic void changed(ProgressEvent event) {\n\t\t\t\t// Cuando cambia.\t\n\t\t\t}\n\t\t\tpublic void completed(ProgressEvent event) {\n\t\t\t\t/* Cuando se completo \n\t\t\t\t Se usa para parsear el documento una vez cargado, el documento\n\t\t\t\t puede ser un doc xml que contiene un mensaje de error\n\t\t\t\t o un doc html que dara error de parseo Xml,es decir,\n\t\t\t\t ante este error entendemos que se cargo bien el doc HTML.\n\t\t\t\t Paradojico verdad? */\n\t\t\t\tleerDocumentoCargado();\n\t\t\t}\n\t\t });\n\n///Boton para iniciar impresion\t\t\n\t\tButton btnIniPrintW = new Button(shell, SWT.NONE);\n\t\tbtnIniPrintW.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\ttry {\n\t\t\t\t\tiniciarImpresion(null);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnIniPrintW.setBounds(337, 532, 144, 26);\n\t\tbtnIniPrintW.setText(\"Iniciar impresion\");\n\t\t\n\t\tLabel label = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel.setBounds(10, 52, 885, 2);\n\t\t\n\t\tButton btnSalir = new Button(shell, SWT.NONE);\n\t\tbtnSalir.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tshell.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnSalir.setBounds(659, 532, 77, 26);\n\t\tbtnSalir.setText(\"Salir\");\n\t\t\n\t\tthreadLabel = new Label(shell, SWT.BORDER);\n\t\tthreadLabel.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t//mostrar / ocultar el historial de mensajes\n\t\t\t\tMOCmsgHist();\n\t\t\t}\n\t\t});\n\t\tthreadLabel.setAlignment(SWT.CENTER);\n\t\tthreadLabel.setBackground(new Color(display, 255,255,255));\n\t\tthreadLabel.setBounds(10, 0, 891, 18);\n\t\tthreadLabel.setText(\"\");\n\t\t\n\t\tLabel label_1 = new Label(shell, SWT.SEPARATOR | SWT.HORIZONTAL);\n\t\tlabel_1.setBounds(10, 281, 726, 2);\n\n\t\ttablaDocs = new Table(shell, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttablaDocs.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\ttablaDocs.setBounds(10, 52, 726, 215);\n\t\ttablaDocs.setHeaderVisible(true);\n\t\ttablaDocs.setLinesVisible(true);\n\t\tcrearColumnas(tablaDocs);\n\t\t\n//Label que muestra los mensajes\n\t\tmensajeTxt = new Label(shell, SWT.NONE);\n\t\tmensajeTxt.setAlignment(SWT.CENTER);\n\t\tmensajeTxt.setBounds(251, 146, 200, 26);\n\t\tmensajeTxt.setText(\"Espere...\");\n\t\t\n//Listado donde se muestran los documentos cargados\n\t\tlistaDocumentos = new List(shell, SWT.BORDER);\n\t\tlistaDocumentos.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t//PabloGo, 12 de julio de 2013\n\t\t\t\t//verifUltDocSelected(e);\n\t\t\t\tseleccionarItemMouse(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tseleccionarItem(e);\n\t\t\t}\n\t\t});\n\t\tlistaDocumentos.setBounds(10, 82, 726, 77);\n\t\t\n\t\tButton btnShowPreview = new Button(shell, SWT.CHECK);\n\t\tbtnShowPreview.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tmostrarPreview = true;\n\t\t\t\t}else{\n\t\t\t\t\tmostrarPreview = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnShowPreview.setBounds(215, 28, 118, 18);\n\t\tbtnShowPreview.setText(\"Mostrar preview\");\n\t\t\n\t\tButton btnAutoRefresh = new Button(shell, SWT.CHECK);\n\t\tbtnAutoRefresh.addMouseListener(new MouseAdapter() {\n\t\t\tpublic void mouseUp(MouseEvent e) {\n\t\t\t\tif (((Button)e.getSource()).getSelection()){\n\t\t\t\t\tautoRefresh = true;\n\t\t\t\t\tbeginTarea();\n\t\t\t\t}else{\n\t\t\t\t\tautoRefresh = false;\n\t\t\t\t\tponerMsg(\"Carga automática desactivada\");\n\t\t\t\t\tfinishTarea();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAutoRefresh.setBounds(353, 28, 128, 18);\n\t\tbtnAutoRefresh.setText(\"Recarga Automática\");\n\t\t\n\t\ttareaBack(this, autoRefresh).start();\n\t\tloadDocs(false, false);\n\t}",
"protected void createContents(Composite parent) {\n\t\tComposite nameGroup = new Composite(parent, SWT.NONE);\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 2;\n\t\tnameGroup.setLayout(layout);\n\t\tGridData gridData = new GridData(GridData.FILL_HORIZONTAL);\n\t\tgridData.horizontalSpan = 3;\n\t\tnameGroup.setLayoutData(gridData);\n\t\tLabel label = new Label(nameGroup, SWT.NONE);\n\t\tlabel.setText(Messages.RemoteZendServerCompositeFragment_Server_name);\n\t\tGridData data = new GridData();\n\t\tlabel.setLayoutData(data);\n\t\tnameText = new Text(nameGroup, SWT.BORDER);\n\t\tdata = new GridData(GridData.FILL_HORIZONTAL);\n\t\tnameText.setLayoutData(data);\n\t\tnameText.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tname = nameText.getText();\n\t\t\t\tvalidate();\n\t\t\t}\n\t\t});\n\t\tnameText.forceFocus();\n\t\t\n\t\tcreateURLGroup(parent);\n\t}",
"public void spawnShell(Interpreter interpreter, String[] args) {\r\n\t\tif (args.length == 1 && args[0].endsWith(\".rut\")) {\r\n\r\n\t\t\tinterpreter.setSuppressOutputSignal(true);\r\n\t\t\tthis.runScriptShell(interpreter, args[0]);\r\n\r\n\t\t}\r\n\t\t\r\n\t\t/* Read from command line argument / stdin */\r\n\t\telse if (args.length > 0 && !args[0].equals(\"debug\")) {\r\n\r\n\t\t\tthis.runArgumentShell(interpreter, args);\r\n\r\n\t\t}\r\n\t\t\r\n\t\t/* Read from interactive shell with debugging output */\r\n\t\telse if (args.length == 1 && args[0].equals(\"debug\")) {\r\n\t\t\t\r\n\t\t\tthis.runInteractiveShell(interpreter, \"debug\");\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/* Read from interactive shell */\r\n\t\telse {\r\n\r\n\t\t\tthis.runInteractiveShell(interpreter);\r\n\r\n\t\t}\r\n\r\n\t}",
"private void createContents() {\r\n\t\tshlFilter = new Shell(getParent(), getStyle());\r\n\t\tshlFilter.setSize(450, 246);\r\n\t\tshlFilter.setText(\"Filter\");\r\n\t\t\r\n\t\tTabFolder tabFolder = new TabFolder(shlFilter, SWT.NONE);\r\n\t\ttabFolder.setBounds(10, 10, 424, 158);\r\n\t\t\r\n\t\tTabItem tbtmByDate = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttbtmByDate.setText(\"by Date\");\r\n\t\t\r\n\t\tGroup group = new Group(tabFolder, SWT.NONE);\r\n\t\ttbtmByDate.setControl(group);\r\n\t\t\r\n\t\tLabel dateLableDayOfMonth = new Label(group, SWT.NONE);\r\n\t\tdateLableDayOfMonth.setBounds(89, 28, 82, 15);\r\n\t\tdateLableDayOfMonth.setText(\"Day of Month\");\r\n\t\t\r\n\t\tdayOfMonthSelector = new Spinner(group, SWT.BORDER);\r\n\t\tdayOfMonthSelector.setEnabled(false);\r\n\t\tdayOfMonthSelector.setMaximum(31);\r\n\t\tdayOfMonthSelector.setMinimum(1);\r\n\t\tdayOfMonthSelector.setBounds(299, 28, 47, 22);\r\n\t\t\r\n\t\tdateEnabler = new Button(group, SWT.CHECK);\r\n\t\tdateEnabler.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tboolean val = dateEnabler.getSelection();\r\n\t\t\t\tdayOfMonthSelector.setEnabled(val);\r\n\t\t\t}\r\n\t\t});\r\n\t\tdateEnabler.setBounds(20, 30, 63, 16);\r\n\t\tdateEnabler.setText(\"Enable\");\r\n\t\t\r\n\t\tdateSearchMode = new CCombo(group, SWT.BORDER);\r\n\t\tdateSearchMode.setText(\"equals\");\r\n\t\tdateSearchMode.setItems(new String[] {\"equals\", \"contains\", \"not equals\", \"not contains\"});\r\n\t\tdateSearchMode.setEnabled(false);\r\n\t\tdateSearchMode.setBounds(177, 28, 116, 21);\r\n\t\t\r\n\t\tTabItem tbtmByName = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttbtmByName.setText(\"by Name\");\r\n\t\t\r\n\t\tGroup group_1 = new Group(tabFolder, SWT.NONE);\r\n\t\ttbtmByName.setControl(group_1);\r\n\t\t\r\n\t\tnameEnabler = new Button(group_1, SWT.CHECK);\r\n\t\tnameEnabler.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tboolean val = nameEnabler.getSelection();\r\n\t\t\t\tnameSearchMode.setEnabled(val);\r\n\t\t\t\tnameSearchText.setEnabled(val);\r\n\t\t\t}\r\n\t\t});\r\n\t\tnameEnabler.setBounds(10, 25, 68, 16);\r\n\t\tnameEnabler.setText(\"Enabled\");\r\n\t\t\r\n\t\tnameSearchMode = new CCombo(group_1, SWT.BORDER);\r\n\t\tnameSearchMode.setEnabled(false);\r\n\t\tnameSearchMode.setText(\"equals\");\r\n\t\tnameSearchMode.setItems(new String[] {\"equals\", \"contains\", \"not equals\", \"not contains\"});\r\n\t\tnameSearchMode.setBounds(84, 25, 116, 21);\r\n\t\t\r\n\t\tnameSearchText = new Text(group_1, SWT.BORDER);\r\n\t\tnameSearchText.setEnabled(false);\r\n\t\tnameSearchText.setBounds(206, 25, 200, 21);\r\n\t\t\r\n\t\tButton btnOk = new Button(shlFilter, SWT.NONE);\r\n\t\tbtnOk.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseUp(MouseEvent e) {\r\n//\t\t\t\tif (dateEnabler.getSelection()){\r\n//\t\t\t\t\tString selection = nameSearchMode.getText();\r\n//\t\t\t\t\tomega1001.task_spector_analyzer.gui.filter.impl.DateFilter.Criteria criterium = null;\r\n//\t\t\t\t\tif (selection.equals(\"equals\"))\r\n//\t\t\t\t\t\tcriterium = Criteria.EQUALS;\r\n//\t\t\t\t\telse if (selection.equals(\"contains\"))\r\n//\t\t\t\t\t\tcriterium = Criteria.CONTAINS;\r\n//\t\t\t\t\telse if (selection.equals(\"not equals\"))\r\n//\t\t\t\t\t\tcriterium = Criteria.NOT_EQUALS;\r\n//\t\t\t\t\telse if (selection.equals(\"not contains\"))\r\n//\t\t\t\t\t\tcriterium = Criteria.NOT_CONTAINS;\r\n//\t\t\t\t\telse\r\n//\t\t\t\t\t\tcriterium = Criteria.EQUALS;\r\n//\t\t\t\t\tresult.add(new DateFilter(dayOfMonthSelector.getSelection(),criterium));\r\n//\t\t\t\t}\r\n\t\t\t\tif (nameEnabler.getSelection()){\r\n\t\t\t\t\tString selection = nameSearchMode.getText();\r\n\t\t\t\t\tCriteria criterium = null;\r\n\t\t\t\t\tif (selection.equals(\"equals\"))\r\n\t\t\t\t\t\tcriterium = Criteria.EQUALS;\r\n\t\t\t\t\telse if (selection.equals(\"contains\"))\r\n\t\t\t\t\t\tcriterium = Criteria.CONTAINS;\r\n\t\t\t\t\telse if (selection.equals(\"not equals\"))\r\n\t\t\t\t\t\tcriterium = Criteria.NOT_EQUALS;\r\n\t\t\t\t\telse if (selection.equals(\"not contains\"))\r\n\t\t\t\t\t\tcriterium = Criteria.NOT_CONTAINS;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcriterium = Criteria.EQUALS;\r\n\t\t\t\t\tresult.add(new NameFilter(criterium, nameSearchText.getText()));\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t\tshlFilter.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(10, 183, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\r\n\t}",
"Subprocess createSubprocess();",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcmdEClass = createEClass(CMD);\n\t\tcreateEAttribute(cmdEClass, CMD__PRIORITY);\n\t\tcreateEAttribute(cmdEClass, CMD__STAMP);\n\n\t\tcompoundCmdEClass = createEClass(COMPOUND_CMD);\n\t\tcreateEReference(compoundCmdEClass, COMPOUND_CMD__CHILDREN);\n\n\t\txCmdEClass = createEClass(XCMD);\n\t\tcreateEAttribute(xCmdEClass, XCMD__OBJ);\n\n\t\tbyteCmdEClass = createEClass(BYTE_CMD);\n\t\tcreateEAttribute(byteCmdEClass, BYTE_CMD__MESSAGE);\n\n\t\t// Create enums\n\t\tpriorityEEnum = createEEnum(PRIORITY);\n\t}",
"protected void createContents() {\n cmd.setBean(nodeProperties);\n cmd.setNode(node);\n shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\n shell.setLayout(new FormLayout());\n shell.setSize(800, 500);\n shell.setText(\"详细信息属性\");\n\n final Composite composite_3 = new Composite(shell, SWT.NONE);\n final FormData fd_composite_3 = new FormData();\n fd_composite_3.top = new FormAttachment(0, 1);\n fd_composite_3.left = new FormAttachment(0, 5);\n fd_composite_3.height = 100;\n fd_composite_3.right = new FormAttachment(100, -5);\n composite_3.setLayoutData(fd_composite_3);\n composite_3.setLayout(new FormLayout());\n\n final Group basicGroup = new Group(composite_3, SWT.NONE);\n basicGroup.setLayout(new FormLayout());\n final FormData fd_basicGroup = new FormData();\n fd_basicGroup.bottom = new FormAttachment(100, -1);\n fd_basicGroup.top = new FormAttachment(0, -6);\n fd_basicGroup.right = new FormAttachment(100, 0);\n fd_basicGroup.left = new FormAttachment(0, 0);\n basicGroup.setLayoutData(fd_basicGroup);\n\n final Label label = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label = new FormData();\n fd_label.top = new FormAttachment(0, 0);\n fd_label.right = new FormAttachment(15, 0);\n fd_label.left = new FormAttachment(0, 0);\n label.setLayoutData(fd_label);\n label.setText(\"节点名称:\");\n\n txtName = new Text(basicGroup, SWT.BORDER);\n final FormData fd_txtName = new FormData();\n fd_txtName.top = new FormAttachment(0, 0);\n fd_txtName.right = new FormAttachment(40, 0);\n fd_txtName.left = new FormAttachment(label, 0);\n txtName.setLayoutData(fd_txtName);\n txtName.setEditable(true);\n\n final Label label_1 = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_label_1 = new FormData();\n fd_label_1.top = new FormAttachment(0, 0);\n fd_label_1.right = new FormAttachment(55, 0);\n fd_label_1.left = new FormAttachment(txtName, 0);\n label_1.setLayoutData(fd_label_1);\n label_1.setText(\"数据表名:\");\n\n txtTableName = new Text(basicGroup, SWT.BORDER);\n txtTableName.setEditable(false);\n final FormData fd_txtTableName = new FormData();\n fd_txtTableName.top = new FormAttachment(0, 0);\n fd_txtTableName.right = new FormAttachment(90, 0);\n fd_txtTableName.left = new FormAttachment(label_1, 0);\n txtTableName.setLayoutData(fd_txtTableName);\n\n final Button btnSelectTable = new Button(basicGroup, SWT.NONE);\n final FormData fd_btnSelectTable = new FormData();\n fd_btnSelectTable.top = new FormAttachment(0, 0);\n fd_btnSelectTable.right = new FormAttachment(100, -1);\n fd_btnSelectTable.left = new FormAttachment(txtTableName, 0);\n fd_btnSelectTable.height = 23;\n btnSelectTable.setLayoutData(fd_btnSelectTable);\n btnSelectTable.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataTableDialog dataSoruceDlg = new DataTableDialog(shell);\n DataTable dt = dataSoruceDlg.open();\n if (dt != null) {\n txtTableName.setText(dt.getCnName());\n nodeProperties.setTableName(dt.getCnName());\n nodeProperties.setName(dt.getName());\n loadFieldsInfo(dt);\n nodeProperties.setDataTable(dt);\n int res = MessageUtil.comfirm(shell, \"导入\", \"是否导入字段信息?\\r\\n注意:已有字段信息将被覆盖!\");\n if (res == SWT.YES) {\n dataFieldList.clear();\n for (DataField df : dt.getFields()) {\n dataFieldList.add(df);\n }\n tvDataField.refresh();\n }\n }\n }\n });\n btnSelectTable.setText(\"选择表\");\n\n final Label lblDescription = new Label(basicGroup, SWT.RIGHT);\n final FormData fd_lblDescription = new FormData();\n fd_lblDescription.top = new FormAttachment(label, 10);\n fd_lblDescription.bottom = new FormAttachment(100, -2);\n fd_lblDescription.left = new FormAttachment(0, 0);\n fd_lblDescription.right = new FormAttachment(15, 0);\n lblDescription.setLayoutData(fd_lblDescription);\n lblDescription.setText(\"说明:\");\n\n txtDes = new StyledText(basicGroup, SWT.BORDER);\n final FormData fd_txtDes = new FormData();\n fd_txtDes.top = new FormAttachment(txtName, 5);\n fd_txtDes.left = new FormAttachment(15, 0);\n fd_txtDes.right = new FormAttachment(100, -2);\n fd_txtDes.bottom = new FormAttachment(100, -2);\n txtDes.setLayoutData(fd_txtDes);\n\n final Button btnOk = new Button(shell, SWT.NONE);\n btnOk.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/tick.png\"));\n final FormData fd_btnOk = new FormData();\n fd_btnOk.height = 28;\n fd_btnOk.width = 80;\n fd_btnOk.bottom = new FormAttachment(100, -5);\n fd_btnOk.right = new FormAttachment(50, -10);\n btnOk.setLayoutData(fd_btnOk);\n btnOk.setText(\"确定(&O)\");\n btnOk.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n save();\n result = 1;\n close();\n }\n });\n\n final Button btnCancel = new Button(shell, SWT.NONE);\n btnCancel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/cross.png\"));\n final FormData fd_btnCancel = new FormData();\n fd_btnCancel.height = 28;\n fd_btnCancel.width = 80;\n fd_btnCancel.bottom = new FormAttachment(100, -5);\n fd_btnCancel.left = new FormAttachment(50, 10);\n btnCancel.setLayoutData(fd_btnCancel);\n btnCancel.setText(\"取消(&C)\");\n btnCancel.addListener(SWT.Selection, new Listener() {\n public void handleEvent(Event e) {\n close();\n }\n });\n\n final TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TabItem ti = (TabItem) e.item;\n if (ti.getText().startsWith(\"SQL\")) {\n DataNodeProperties d = new DataNodeProperties();\n d.setAdditionSql(txtOtherCondition.getText());\n // d.setTableName(nodeProperties.getTableName());\n d.setName(nodeProperties.getName());\n d.setFields(dataFieldList);\n d.setFilters(filterList);\n txtSQL.setText(d.getSQL(null));\n }\n else if (ti.getText().startsWith(\"过滤\")) {\n String[] fNames = null;\n if (dataFieldList != null && dataFieldList.size() > 0) {\n fNames = new String[dataFieldList.size()];\n for (int i = 0; i < dataFieldList.size(); i++) {\n fNames[i] = dataFieldList.get(i).getAliasName();\n }\n }\n else fNames = new String[] { \"\" };\n // filtersCellModifier.setAliasNames(fNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, fNames));\n tvFilter.getCellEditors()[0] = new ComboBoxCellEditor(tblFilter, fNames, SWT.READ_ONLY);\n }\n else if (ti.getText().startsWith(\"列表配置\")) {\n \tif (dataFieldList.size() > configList.size()) {\n \t\tint configLength = configList.size();\n \t\t//添加\n \tfor (int i = 0 ;i<dataFieldList.size();i++ ) {\n \t\tDataField dataField = dataFieldList.get(i);\n \t\tString cnName = dataField.getCnName();\n String aliasName = dataField.getAliasName();\n if (!\"\".equals(cnName) && !\"\".equals(aliasName)) {\n \tboolean haveFlg = false;\n \tfor (int j = 0 ;j< configLength;j++) {\n \t\tFieldConfig filedCfig = configList.get(j);\n \t\tif (!(filedCfig.getCnName().equals(cnName) &&filedCfig.getName().equals(aliasName))) {\n \t\t\tcontinue;\n \t\t} else {\n \t\t\thaveFlg = true;\n \t\t\tbreak;\n \t\t}\n \t}\n \tif (!haveFlg) {//原列表不存在此记录\n FieldConfig newFieldCfig = new FieldConfig();\n \t\t\tnewFieldCfig.setCnName(cnName);\n \t\t\tnewFieldCfig.setName(aliasName);\n \t\t\tconfigList.add(newFieldCfig);\n \t}\n }\n \t}\n \t//\n// \tfor (int k = 0;k< configLength;k++) {\n// \t\tFieldConfig filedCfig = configList.get(k);\n// \t\tString cnName = filedCfig.getCnName();\n// String aliasName = filedCfig.getName();\n// boolean haveFiledFlg = false;\n// for (int i = 0 ;i<dataFieldList.size();i++ ) {\n// \tDataField dataField = dataFieldList.get(i);\n// \tif (!(dataField.getAliasName().equals(aliasName) && dataField.getCnName().equals(cnName))) {\n// \t\tcontinue;\n// \t} else {\n// \t\thaveFiledFlg = true;\n// \t\tbreak;\n// \t}\n// }\n// if (!haveFiledFlg) {\n// \tconfigList.remove(k);\n// }\n// \n// \t}\n \t//刷新列表\n \ttvShowConfig.refresh();\n \t}\n }\n }\n });\n final FormData fd_tabFolder = new FormData();\n fd_tabFolder.bottom = new FormAttachment(100, -40);\n fd_tabFolder.top = new FormAttachment(composite_3, 3, SWT.BOTTOM);\n fd_tabFolder.right = new FormAttachment(100, -5);\n fd_tabFolder.left = new FormAttachment(0, 5);\n tabFolder.setLayoutData(fd_tabFolder);\n\n final TabItem tabFields = new TabItem(tabFolder, SWT.NONE);\n tabFields.setText(\"查询字段\");\n\n final Composite composite_1 = new Composite(tabFolder, SWT.NONE);\n composite_1.setLayout(new FormLayout());\n tabFields.setControl(composite_1);\n\n final Group group_1 = new Group(composite_1, SWT.NONE);\n final FormData fd_group_1 = new FormData();\n fd_group_1.left = new FormAttachment(0, 0);\n fd_group_1.bottom = new FormAttachment(100, 0);\n fd_group_1.right = new FormAttachment(100, 0);\n fd_group_1.top = new FormAttachment(0, -6);\n group_1.setLayoutData(fd_group_1);\n group_1.setLayout(new FormLayout());\n // tabFields.setControl(group_1);\n\n tvDataField = new TableViewer(group_1, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvDataField.setContentProvider(new ViewContentProvider());\n tvDataField.setLabelProvider(new DataFieldsLabelProvider0());\n tvDataField.setColumnProperties(DATAFIELDS0);\n tblDataField = tvDataField.getTable();\n\n CellEditor[] cellEditor = new CellEditor[7];\n cellEditor[0] = new TextCellEditor(tblDataField);\n cellEditor[1] = new TextCellEditor(tblDataField);\n cellEditor[2] = new TextCellEditor(tblDataField);\n cellEditor[3] = new ComboBoxCellEditor(tblDataField, Consts.DATATYPE_LABEL, SWT.READ_ONLY);\n cellEditor[4] = new TextCellEditor(tblDataField);\n cellEditor[5] = new ComboBoxCellEditor(tblDataField, Consts.SORTDIRECT_LABEL, SWT.READ_ONLY);\n// cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.AGGREGATE_LABEL, SWT.READ_ONLY);\n// cellEditor[7] = new TextCellEditor(tblDataField);\n cellEditor[6] = new ComboBoxCellEditor(tblDataField, Consts.YESNO_LABEL, SWT.READ_ONLY);\n Text text1 = (Text) cellEditor[4].getControl();\n text1.addVerifyListener(new VerifyListener() {\n public void verifyText(VerifyEvent e) {\n String str = e.text;\n if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n }\n });\n// Text text2 = (Text) cellEditor[7].getControl();\n// text2.addVerifyListener(new VerifyListener() {\n// public void verifyText(VerifyEvent e) {\n// String str = e.text;\n// if (str != null && str.length() > 0) e.doit = StringUtil.isInteger(str);\n// }\n// });\n\n tvDataField.setCellEditors(cellEditor);\n tvDataField.setCellModifier(new DataFieldsCellModifier2(tvDataField));\n\n final FormData fd_table_1 = new FormData();\n fd_table_1.bottom = new FormAttachment(100, -22);\n fd_table_1.top = new FormAttachment(0, -6);\n fd_table_1.right = new FormAttachment(100, 0);\n fd_table_1.left = new FormAttachment(0, 0);\n tblDataField.setLayoutData(fd_table_1);\n tblDataField.setLinesVisible(true);\n tblDataField.setHeaderVisible(true);\n\n final TableColumn colCnName = new TableColumn(tblDataField, SWT.NONE);\n colCnName.setWidth(100);\n colCnName.setText(\"中文名\");\n\n final TableColumn colFieldName = new TableColumn(tblDataField, SWT.NONE);\n colFieldName.setWidth(100);\n colFieldName.setText(\"字段名\");\n\n final TableColumn colAliasName = new TableColumn(tblDataField, SWT.NONE);\n colAliasName.setWidth(100);\n colAliasName.setText(\"别名\");\n\n final TableColumn colDataType = new TableColumn(tblDataField, SWT.NONE);\n colDataType.setWidth(80);\n colDataType.setText(\"数据类型\");\n\n final TableColumn colSortNo = new TableColumn(tblDataField, SWT.NONE);\n colSortNo.setWidth(60);\n colSortNo.setText(\"排序顺序\");\n\n final TableColumn colSortDirect = new TableColumn(tblDataField, SWT.NONE);\n colSortDirect.setWidth(80);\n colSortDirect.setText(\"排序方向\");\n\n final TableColumn colOutput = new TableColumn(tblDataField, SWT.NONE);\n colOutput.setWidth(80);\n colOutput.setText(\"是否输出\");\n\n final TabItem tabFilter = new TabItem(tabFolder, SWT.NONE);\n tabFilter.setText(\"过滤条件\");\n\n final Composite composite = new Composite(tabFolder, SWT.NONE);\n composite.setLayout(new FormLayout());\n tabFilter.setControl(composite);\n\n final Group group_2 = new Group(composite, SWT.NO_RADIO_GROUP);\n final FormData fd_group_2 = new FormData();\n fd_group_2.left = new FormAttachment(0, 0);\n fd_group_2.right = new FormAttachment(100, 0);\n fd_group_2.top = new FormAttachment(0, -6);\n fd_group_2.bottom = new FormAttachment(100, -80);\n group_2.setLayoutData(fd_group_2);\n group_2.setLayout(new FormLayout());\n\n tvFilter = new TableViewer(group_2, SWT.FULL_SELECTION | SWT.BORDER);\n tvFilter.setLabelProvider(new FiltersLabelProvider());\n tvFilter.setContentProvider(new ViewContentProvider());\n tvFilter.setColumnProperties(FiltersLabelProvider.DATAFIELDS);\n tblFilter = tvFilter.getTable();\n CellEditor[] cellEditor1 = new CellEditor[3];\n cellEditor1[0] = new TextCellEditor(tblFilter);\n String[] aliasNames = new String[] { \"\" };\n cellEditor1[0] = new ComboBoxCellEditor(tblFilter, aliasNames, SWT.READ_ONLY);\n cellEditor1[1] = new ComboBoxCellEditor(tblFilter, Consts.OPERATOR_LABEL, SWT.READ_ONLY);\n cellEditor1[2] = new TextCellEditor(tblFilter);\n tvFilter.setCellEditors(cellEditor1);\n // filtersCellModifier = new FiltersCellModifier(tvFilter, aliasNames);\n tvFilter.setCellModifier(new FiltersCellModifier(tvFilter, aliasNames));\n\n final FormData fd_table_2 = new FormData();\n fd_table_2.bottom = new FormAttachment(100, -21);\n fd_table_2.top = new FormAttachment(0, -5);\n fd_table_2.right = new FormAttachment(100, -1);\n fd_table_2.left = new FormAttachment(0, 1);\n tblFilter.setLayoutData(fd_table_2);\n tblFilter.setLinesVisible(true);\n tblFilter.setHeaderVisible(true);\n\n final TableColumn colFilterFieldName = new TableColumn(tblFilter, SWT.NONE);\n colFilterFieldName.setWidth(120);\n colFilterFieldName.setText(\"字段名称\");\n\n final TableColumn colOper = new TableColumn(tblFilter, SWT.NONE);\n colOper.setWidth(120);\n colOper.setText(\"操作符\");\n\n final TableColumn colFilterData = new TableColumn(tblFilter, SWT.NONE);\n colFilterData.setWidth(500);\n colFilterData.setText(\"操作数据\");\n\n final Button btnFilterAdd = new Button(group_2, SWT.NONE);\n btnFilterAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n Filter df = new Filter();\n df.setField(\"\");\n df.setOperator(\"=\");\n df.setExpression(\"\");\n filterList.add(df);\n tvFilter.refresh();\n }\n });\n btnFilterAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFilterAdd = new FormData();\n fd_btnFilterAdd.bottom = new FormAttachment(100, -1);\n fd_btnFilterAdd.left = new FormAttachment(0, 1);\n fd_btnFilterAdd.height = 20;\n fd_btnFilterAdd.width = 20;\n btnFilterAdd.setLayoutData(fd_btnFilterAdd);\n\n final Button btnFilterDel = new Button(group_2, SWT.NONE);\n btnFilterDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblFilter.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n Filter o = (Filter) ti.getData();\n filterList.remove(o);\n }\n tvFilter.refresh();\n }\n }\n });\n btnFilterDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFilterDel = new FormData();\n fd_btnFilterDel.bottom = new FormAttachment(100, -1);\n fd_btnFilterDel.left = new FormAttachment(btnFilterAdd, 1, SWT.DEFAULT);\n fd_btnFilterDel.height = 20;\n fd_btnFilterDel.width = 20;\n btnFilterDel.setLayoutData(fd_btnFilterDel);\n\n final Button btnFilterUp = new Button(group_2, SWT.NONE);\n btnFilterUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnFilterUp = new FormData();\n fd_btnFilterUp.bottom = new FormAttachment(100, -1);\n fd_btnFilterUp.left = new FormAttachment(btnFilterDel, 1, SWT.DEFAULT);\n fd_btnFilterUp.height = 20;\n fd_btnFilterUp.width = 20;\n btnFilterUp.setLayoutData(fd_btnFilterUp);\n btnFilterUp.setVisible(false);\n\n final Button btnFilterDown = new Button(group_2, SWT.NONE);\n btnFilterDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnFilterDown = new FormData();\n fd_btnFilterDown.bottom = new FormAttachment(100, -1);\n fd_btnFilterDown.left = new FormAttachment(btnFilterUp, 1, SWT.DEFAULT);\n fd_btnFilterDown.height = 20;\n fd_btnFilterDown.width = 20;\n btnFilterDown.setLayoutData(fd_btnFilterDown);\n btnFilterDown.setVisible(false);\n\n final Label label_2 = new Label(composite, SWT.NONE);\n final FormData fd_label_2 = new FormData();\n fd_label_2.bottom = new FormAttachment(100, -60);\n fd_label_2.top = new FormAttachment(group_2, 1);\n fd_label_2.width = 70;\n fd_label_2.left = new FormAttachment(0, 0);\n label_2.setLayoutData(fd_label_2);\n label_2.setText(\"其他条件:\");\n\n txtOtherCondition = new StyledText(composite, SWT.BORDER);\n final FormData fd_txtOtherCondition = new FormData();\n fd_txtOtherCondition.bottom = new FormAttachment(100, -1);\n fd_txtOtherCondition.top = new FormAttachment(label_2, 1);\n fd_txtOtherCondition.right = new FormAttachment(100, -1);\n fd_txtOtherCondition.left = new FormAttachment(0, 1);\n txtOtherCondition.setLayoutData(fd_txtOtherCondition);\n\n final Button btnFieldAdd = new Button(group_1, SWT.NONE);\n btnFieldAdd.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n DataField df = new DataField();\n df.setOutput(Consts.YES);\n df.setSortDirect(\"\");\n df.setSortNo(\"\");\n df.setAggregate(\"\");\n dataFieldList.add(df);\n tvDataField.refresh();\n }\n });\n btnFieldAdd.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/plus.png\"));\n final FormData fd_btnFieldAdd = new FormData();\n fd_btnFieldAdd.bottom = new FormAttachment(100, 0);\n fd_btnFieldAdd.left = new FormAttachment(0, 0);\n fd_btnFieldAdd.height = 20;\n fd_btnFieldAdd.width = 20;\n btnFieldAdd.setLayoutData(fd_btnFieldAdd);\n\n final Button btnFieldDel = new Button(group_1, SWT.NONE);\n btnFieldDel.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n TableItem[] selectItems = tblDataField.getSelection();\n if (selectItems != null && selectItems.length > 0) {\n for (TableItem ti : selectItems) {\n DataField o = (DataField) ti.getData();\n //\n String cnName = o.getCnName();\n String aliasName = o.getAliasName();\n for (int i = 0;i< configList.size();i++) {\n \tFieldConfig cfig = configList.get(i);\n \tif (cnName.equals(cfig.getCnName()) && aliasName.equals(cfig.getName())) {\n \t\tconfigList.remove(i);\n \t\tbreak;\n \t}\n }\n \n dataFieldList.remove(o);\n }\n tvDataField.refresh();\n tvShowConfig.refresh();\n }\n }\n });\n btnFieldDel.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/minus.png\"));\n final FormData fd_btnFieldDel = new FormData();\n fd_btnFieldDel.bottom = new FormAttachment(100, 0);\n fd_btnFieldDel.left = new FormAttachment(0, 21);\n fd_btnFieldDel.height = 20;\n fd_btnFieldDel.width = 20;\n btnFieldDel.setLayoutData(fd_btnFieldDel);\n\n final TabItem tabSQL = new TabItem(tabFolder, SWT.NONE);\n tabSQL.setText(\"SQL语句\");\n\n final Composite composite_2 = new Composite(tabFolder, SWT.NONE);\n composite_2.setLayout(new FormLayout());\n tabSQL.setControl(composite_2);\n\n final Group group = new Group(composite_2, SWT.NONE);\n final FormData fd_group = new FormData();\n fd_group.top = new FormAttachment(0, -6);\n fd_group.right = new FormAttachment(100, 0);\n fd_group.left = new FormAttachment(0, 0);\n fd_group.bottom = new FormAttachment(100, 0);\n group.setLayoutData(fd_group);\n group.setLayout(new FormLayout());\n\n txtSQL = new StyledText(group, SWT.BORDER|SWT.WRAP|SWT.MULTI|SWT.V_SCROLL|SWT.H_SCROLL);\n final FormData fd_txtSQL = new FormData();\n fd_txtSQL.bottom = new FormAttachment(100, 0);\n fd_txtSQL.top = new FormAttachment(0, -6);\n fd_txtSQL.right = new FormAttachment(100, 0);\n fd_txtSQL.left = new FormAttachment(0, 0);\n txtSQL.setLayoutData(fd_txtSQL);\n txtSQL.setWordWrap(true);\n txtSQL.setFont(SWTResourceManager.getFont(\"Fixedsys\", 10, SWT.NONE));\n txtSQL.setEditable(false);\n\n final TabItem tabItem = new TabItem(tabFolder, SWT.NONE);\n tabItem.setText(\"列表配置\");\n\n final Composite composite_1_1 = new Composite(tabFolder, SWT.NONE);\n composite_1_1.setLayout(new FormLayout());\n tabItem.setControl(composite_1_1);\n\n final Group group_3 = new Group(composite_1_1, SWT.NONE);\n group_3.setLayout(new FormLayout());\n final FormData fd_group_3 = new FormData();\n fd_group_3.left = new FormAttachment(0, 0);\n fd_group_3.bottom = new FormAttachment(100, 0);\n fd_group_3.right = new FormAttachment(100, 0);\n fd_group_3.top = new FormAttachment(0, -6);\n group_3.setLayoutData(fd_group_3);\n\n tvShowConfig = new TableViewer(group_3, SWT.MULTI | SWT.FULL_SELECTION | SWT.BORDER);\n tvShowConfig.setContentProvider(new ViewContentProvider());\n tvShowConfig.setLabelProvider(new ShowConfigLabelProvider());\n tvShowConfig.setColumnProperties(DATAFIELDS);\n tblShowConfig = tvShowConfig.getTable();\n\n CellEditor[] cfigCellEditor = new CellEditor[8];\n cfigCellEditor[0] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[1] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[2] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[3] = new ComboBoxCellEditor(tblShowConfig, Consts.ALIGN_LABEL, SWT.READ_ONLY);\n cfigCellEditor[4] = new TextCellEditor(tblShowConfig);\n cfigCellEditor[5] = new ComboBoxCellEditor(tblShowConfig, Consts.YESNO_LABEL, SWT.READ_ONLY);\n cfigCellEditor[6] = new ComboBoxCellEditor(tblShowConfig, codeSetNames, SWT.READ_ONLY);\n// cellEditor[7] = new DetailLinkCellEditor(tblShowConfig, configList, diagram.getNodes());\n Text text10 = (Text) cfigCellEditor[4].getControl();\n text10.addVerifyListener(new NumberVerifier());\n\n tvShowConfig.setCellEditors(cfigCellEditor);\n tvShowConfig.setCellModifier(new ShowConfigCellModifier(tvShowConfig));\n \n final FormData fd_table_1_1 = new FormData();\n fd_table_1_1.bottom = new FormAttachment(100, -21);\n fd_table_1_1.top = new FormAttachment(0, 1);\n fd_table_1_1.right = new FormAttachment(100, -1);\n fd_table_1_1.left = new FormAttachment(0, 0);\n tblShowConfig.setLayoutData(fd_table_1_1);\n tblShowConfig.setLinesVisible(true);\n tblShowConfig.setHeaderVisible(true);\n\n final TableColumn colCnName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colCnName_1.setWidth(120);\n colCnName_1.setText(\"中文名\");\n\n final TableColumn colFieldName_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colFieldName_1.setWidth(120);\n colFieldName_1.setText(\"列名\");\n\n final TableColumn colDataType_1 = new TableColumn(tblShowConfig, SWT.NONE);\n colDataType_1.setWidth(60);\n colDataType_1.setText(\"数据格式\");\n\n final TableColumn colAlign = new TableColumn(tblShowConfig, SWT.NONE);\n colAlign.setWidth(70);\n colAlign.setText(\"对齐方式\");\n\n final TableColumn colWidth = new TableColumn(tblShowConfig, SWT.NONE);\n colWidth.setWidth(40);\n colWidth.setText(\"宽度\");\n\n final TableColumn colVisible = new TableColumn(tblShowConfig, SWT.NONE);\n colVisible.setWidth(70);\n colVisible.setText(\"是否显示\");\n\n final TableColumn colCodeSet = new TableColumn(tblShowConfig, SWT.NONE);\n colCodeSet.setWidth(100);\n colCodeSet.setText(\"代码集\");\n\n final Button btnUp = new Button(group_3, SWT.NONE);\n btnUp.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx > 0) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx - 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnUp.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-090.png\"));\n final FormData fd_btnUp = new FormData();\n fd_btnUp.left = new FormAttachment(0,1);\n fd_btnUp.top = new FormAttachment(tblShowConfig, 1);\n fd_btnUp.width = 20;\n fd_btnUp.height = 20;\n btnUp.setLayoutData(fd_btnUp);\n btnUp.setText(\"button\");\n\n final Button btnDown = new Button(group_3, SWT.NONE);\n btnDown.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(final SelectionEvent e) {\n if (tblShowConfig.getSelectionCount() == 1) {\n int idx = tblShowConfig.getSelectionIndex();\n if (idx < tblShowConfig.getItemCount()) {\n FieldConfig o = (FieldConfig) tblShowConfig.getSelection()[0].getData();\n configList.remove(o);\n configList.add(idx + 1, o);\n tvShowConfig.refresh();\n }\n }\n }\n });\n btnDown.setImage(ResourceManager.getPluginImage(Activator.getDefault(), \"icons/arrow-270.png\"));\n final FormData fd_btnDown = new FormData();\n fd_btnDown.top = new FormAttachment(tblShowConfig, 1);\n fd_btnDown.width = 20;\n fd_btnDown.height = 20;\n fd_btnDown.left = new FormAttachment(btnUp, 1);\n btnDown.setLayoutData(fd_btnDown);\n btnDown.setText(\"button\");\n\n //\n init();\n }",
"private void createContents(ArrayList<String> content) {\r\n\t\t// create ne whell for dialog window\r\n\t\tshell = new Shell(getParent(), SWT.APPLICATION_MODAL);\r\n\t\tshell.setSize(367, 348);\r\n\t\tshell.setText(getText());\r\n\t\t\r\n\t\tcenterDialog(shell);\r\n\r\n\t\t// create List component inside dialog window\r\n\t\tfinal List list = new List(shell, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);\r\n\t\tlist.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// fill list with documentation infElements\r\n\t\tfor (int i=0; i<content.size(); i++)\r\n\t\t\tlist.add(content.get(i));\r\n\t\t\r\n\t\t// set default selection\r\n\t\tlist.setSelection(0);\r\n\t\t\r\n\t\t// set position of List component\r\n\t\tlist.setBounds(10, 31, 341, 270);\r\n\t\t\r\n\t\t// create Label for the List component\r\n\t\tLabel lblSelectDocumentationTopic = new Label(shell, SWT.NONE);\r\n\t\tlblSelectDocumentationTopic.setBounds(10, 10, 173, 15);\r\n\t\tlblSelectDocumentationTopic.setText(\"Select Documentation Topic\");\r\n\r\n\t\t// create Cancel button\r\n\t\tButton btnCancel = new Button(shell, SWT.NONE);\r\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = \"\";\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCancel.setBounds(276, 307, 75, 25);\r\n\t\tbtnCancel.setText(\"Cancel\");\r\n\t\t\r\n\t\t// Create OK button\r\n\t\tButton btnOk = new Button(shell, SWT.NONE);\r\n\t\tbtnOk.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedTopic = list.getSelection()[0];\r\n\t\t\t\tshell.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnOk.setBounds(183, 307, 75, 25);\r\n\t\tbtnOk.setText(\"OK\");\r\n\t\t\r\n\t}",
"private void createContents() {\r\n\t\tshlAjouterNouvelleEquation = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);\r\n\t\tshlAjouterNouvelleEquation.setSize(363, 334);\r\n\t\tif(modification)\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Modifier Equation\");\r\n\t\telse\r\n\t\t\tshlAjouterNouvelleEquation.setText(\"Ajouter Nouvelle Equation\");\r\n\t\tshlAjouterNouvelleEquation.setLayout(new FormLayout());\r\n\r\n\r\n\t\tLabel lblContenuEquation = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblContenuEquation = new FormData();\r\n\t\tfd_lblContenuEquation.top = new FormAttachment(0, 5);\r\n\t\tfd_lblContenuEquation.left = new FormAttachment(0, 5);\r\n\t\tlblContenuEquation.setLayoutData(fd_lblContenuEquation);\r\n\t\tlblContenuEquation.setText(\"Contenu Equation\");\r\n\r\n\r\n\t\tcontrainteButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnContrainte = new FormData();\r\n\t\tfd_btnContrainte.top = new FormAttachment(0, 27);\r\n\t\tfd_btnContrainte.right = new FormAttachment(100, -10);\r\n\t\tcontrainteButton.setLayoutData(fd_btnContrainte);\r\n\t\tcontrainteButton.setText(\"Contrainte\");\r\n\r\n\t\torientationButton = new Button(shlAjouterNouvelleEquation, SWT.CHECK);\r\n\t\tFormData fd_btnOrinet = new FormData();\r\n\t\tfd_btnOrinet.top = new FormAttachment(0, 27);\r\n\t\tfd_btnOrinet.right = new FormAttachment(contrainteButton, -10);\r\n\r\n\t\torientationButton.setLayoutData(fd_btnOrinet);\r\n\t\t\r\n\t\torientationButton.setText(\"Orient\\u00E9\");\r\n\r\n\t\tcontenuEquation = new Text(shlAjouterNouvelleEquation, SWT.BORDER|SWT.SINGLE);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.right = new FormAttachment(orientationButton, -10, SWT.LEFT);\r\n\t\tfd_text.top = new FormAttachment(0, 25);\r\n\t\tfd_text.left = new FormAttachment(0, 5);\r\n\t\tcontenuEquation.setLayoutData(fd_text);\r\n\r\n\t\tcontenuEquation.addListener(SWT.FocusOut, out->{\r\n\t\t\tSystem.out.println(\"Making list...\");\r\n\t\t\ttry {\r\n\t\t\t\tequation.getListeDeParametresEqn_DYNAMIC();\r\n\t\t\t\tif(!btnTerminer.isDisposed()){\r\n\t\t\t\t\tif(!btnTerminer.getEnabled())\r\n\t\t\t\t\t\t btnTerminer.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\tthis.showError(shlAjouterNouvelleEquation, e1.toString());\r\n\t\t\t\t btnTerminer.setEnabled(false);\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\t\r\n\t\t});\r\n\r\n\t\tLabel lblNewLabel = new Label(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tfd_lblNewLabel.top = new FormAttachment(0, 51);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 5);\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Param\\u00E8tre de Sortie\");\r\n\r\n\t\tparametreDeSortieCombo = new Combo(shlAjouterNouvelleEquation, SWT.DROP_DOWN |SWT.READ_ONLY);\r\n\t\tparametreDeSortieCombo.setEnabled(false);\r\n\r\n\t\tFormData fd_combo = new FormData();\r\n\t\tfd_combo.top = new FormAttachment(0, 71);\r\n\t\tfd_combo.left = new FormAttachment(0, 5);\r\n\t\tparametreDeSortieCombo.setLayoutData(fd_combo);\r\n\t\tparametreDeSortieCombo.addListener(SWT.FocusIn, in->{\r\n\t\t\tparametreDeSortieCombo.setItems(makeItems.apply(equation.getListeDeParametresEqn()));\r\n\t\t\tparametreDeSortieCombo.pack();\r\n\t\t\tparametreDeSortieCombo.update();\r\n\t\t});\r\n\r\n\t\tSashForm sashForm = new SashForm(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tFormData fd_sashForm = new FormData();\r\n\t\tfd_sashForm.top = new FormAttachment(parametreDeSortieCombo, 6);\r\n\t\tfd_sashForm.bottom = new FormAttachment(100, -50);\r\n\t\tfd_sashForm.right = new FormAttachment(100);\r\n\t\tfd_sashForm.left = new FormAttachment(0, 5);\r\n\t\tsashForm.setLayoutData(fd_sashForm);\r\n\r\n\r\n\r\n\r\n\t\tGroup propertiesGroup = new Group(sashForm, SWT.NONE);\r\n\t\tpropertiesGroup.setLayout(new FormLayout());\r\n\r\n\t\tpropertiesGroup.setText(\"Propri\\u00E9t\\u00E9s\");\r\n\t\tFormData fd_propertiesGroup = new FormData();\r\n\t\tfd_propertiesGroup.top = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.left = new FormAttachment(0);\r\n\t\tfd_propertiesGroup.bottom = new FormAttachment(100, 0);\r\n\t\tfd_propertiesGroup.right = new FormAttachment(100, 0);\r\n\t\tpropertiesGroup.setLayoutData(fd_propertiesGroup);\r\n\r\n\r\n\r\n\r\n\r\n\t\tproperties = new Text(propertiesGroup, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tFormData fd_grouptext = new FormData();\r\n\t\tfd_grouptext.top = new FormAttachment(0,0);\r\n\t\tfd_grouptext.left = new FormAttachment(0, 0);\r\n\t\tfd_grouptext.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grouptext.right = new FormAttachment(100, 0);\r\n\t\tproperties.setLayoutData(fd_grouptext);\r\n\r\n\r\n\r\n\t\tGroup grpDescription = new Group(sashForm, SWT.NONE);\r\n\t\tgrpDescription.setText(\"Description\");\r\n\t\tgrpDescription.setLayout(new FormLayout());\r\n\t\tFormData fd_grpDescription = new FormData();\r\n\t\tfd_grpDescription.bottom = new FormAttachment(100, 0);\r\n\t\tfd_grpDescription.right = new FormAttachment(100,0);\r\n\t\tfd_grpDescription.top = new FormAttachment(0);\r\n\t\tfd_grpDescription.left = new FormAttachment(0);\r\n\t\tgrpDescription.setLayoutData(fd_grpDescription);\r\n\r\n\t\tdescription = new Text(grpDescription, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.MULTI);\r\n\t\tdescription.setParent(grpDescription);\r\n\r\n\t\tFormData fd_description = new FormData();\r\n\t\tfd_description.top = new FormAttachment(0,0);\r\n\t\tfd_description.left = new FormAttachment(0, 0);\r\n\t\tfd_description.bottom = new FormAttachment(100, 0);\r\n\t\tfd_description.right = new FormAttachment(100, 0);\r\n\r\n\t\tdescription.setLayoutData(fd_description);\r\n\r\n\r\n\t\tsashForm.setWeights(new int[] {50,50});\r\n\r\n\t\tbtnTerminer = new Button(shlAjouterNouvelleEquation, SWT.NONE);\r\n\t\tbtnTerminer.setEnabled(false);\r\n\t\tFormData fd_btnTerminer = new FormData();\r\n\t\tfd_btnTerminer.top = new FormAttachment(sashForm, 6);\r\n\t\tfd_btnTerminer.left = new FormAttachment(sashForm,0, SWT.CENTER);\r\n\t\tbtnTerminer.setLayoutData(fd_btnTerminer);\r\n\t\tbtnTerminer.setText(\"Terminer\");\r\n\t\tbtnTerminer.addListener(SWT.Selection, e->{\r\n\t\t\t\r\n\t\t\tboolean go = true;\r\n\t\t\tresult = null;\r\n\t\t\tif (status.equals(ValidationStatus.ok())) {\r\n\t\t\t\t//perform all the neccessary tests before validating the equation\t\t\t\t\t\r\n\t\t\t\tif(equation.isOriented()){\r\n\t\t\t\t\tif(!equation.getListeDeParametresEqn().contains(equation.getParametreDeSortie()) || equation.getParametreDeSortie() == null){\t\t\t\t\t\t\r\n\t\t\t\t\t\tString error = \"Erreur sur l'équation \"+equation.getContenuEqn();\r\n\t\t\t\t\t\tgo = false;\r\n\t\t\t\t\t\tshowError(shlAjouterNouvelleEquation, error);\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (go) {\r\n\t\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tequation.setParametreDeSortie(null);\r\n\t\t\t\t\tresult = Boolean.TRUE;\r\n\t\t\t\t\t//Just some cleanup\r\n\t\t\t\t\tfor (Parametre par : equation.getListeDeParametresEqn()) {\r\n\t\t\t\t\t\tif (par.getTypeP().equals(TypeParametre.OUTPUT)) {\t\t\t\t\t\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpar.setTypeP(TypeParametre.UNDETERMINED);\r\n\t\t\t\t\t\t\t\tpar.setSousTypeP(SousTypeParametre.FREE);\r\n\t\t\t\t\t\t\t} catch (Exception e1) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tshlAjouterNouvelleEquation.dispose();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t//\tSystem.out.println(equation.getContenuEqn() +\"\\n\"+equation.isConstraint()+\"\\n\"+equation.isOriented()+\"\\n\"+equation.getParametreDeSortie());\r\n\t\t});\r\n\r\n\t\t//In this sub routine I bind the values to the respective controls in order to observe changes \r\n\t\t//and verify the data insertion\r\n\t\tbindValues();\r\n\t}",
"Process createProcess();",
"protected void createContents() throws Exception {\n\t\tshlGecco = new Shell();\n\t\tshlGecco.setImage(SWTResourceManager.getImage(jdView.class, \"/images/yc.ico\"));\n\t\tshlGecco.setSize(1366, 736);\n\t\tshlGecco.setText(\"gecco爬取京东信息\");\n\t\tshlGecco.setLocation(0, 0);\n\t\tshlGecco.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tSashForm sashForm = new SashForm(shlGecco, SWT.NONE);\n\t\tsashForm.setOrientation(SWT.VERTICAL);\n\n\t\tGroup group = new Group(sashForm, SWT.NONE);\n\t\tgroup.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup.setText(\"爬取查询条件\");\n\t\tgroup.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_2 = new SashForm(group, SWT.NONE);\n\n\t\tGroup group_2 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_2.setText(\"爬取条件\");\n\n\t\tLabel lblip = new Label(group_2, SWT.NONE);\n\t\tlblip.setLocation(34, 27);\n\t\tlblip.setSize(113, 21);\n\t\tlblip.setText(\"输入开始爬取地址:\");\n\n\t\ttxtSearchUrl = new Text(group_2, SWT.BORDER);\n\t\ttxtSearchUrl.setLocation(153, 23);\n\t\ttxtSearchUrl.setSize(243, 23);\n\t\ttxtSearchUrl.setText(\"https://www.jd.com/allSort.aspx\");\n\n\t\tbtnSearch = new Button(group_2, SWT.NONE);\n\t\tbtnSearch.setLocation(408, 23);\n\t\tbtnSearch.setSize(82, 25);\n\n\t\tbtnSearch.setEnabled(false);\n\t\tbtnSearch.setText(\"开始爬取\");\n\n\t\tGroup group_3 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_3.setText(\"查询条件\");\n\n\t\tLabel label_2 = new Label(group_3, SWT.NONE);\n\t\tlabel_2.setLocation(77, 25);\n\t\tlabel_2.setSize(86, 25);\n\t\tlabel_2.setText(\"选择查询条件:\");\n\n\t\tcombo = new Combo(group_3, SWT.NONE);\n\t\tcombo.setLocation(169, 23);\n\t\tcombo.setSize(140, 23);\n\t\tcombo.setItems(new String[] { \"全部\", \"商品总类别\", \"子类别名\", \"类别链接\" });\n\t\t// combo.setText(\"全部\");\n\n\t\tbutton = new Button(group_3, SWT.NONE);\n\t\tbutton.setLocation(524, 23);\n\t\tbutton.setSize(80, 25);\n\t\tbutton.setText(\"点击查询\");\n\t\tbutton.setEnabled(false);\n\n\t\tcombo_1 = new Combo(group_3, SWT.NONE);\n\t\tcombo_1.setEnabled(false);\n\t\tcombo_1.setLocation(332, 23);\n\t\tcombo_1.setSize(170, 23);\n\t\t// combo_1.setItems(new String[] { \"全部\" });\n\t\t// combo_1.setText(\"全部\");\n\t\tsashForm_2.setWeights(new int[] { 562, 779 });\n\t\tGroup group_1 = new Group(sashForm, SWT.NONE);\n\t\tgroup_1.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup_1.setText(\"爬取结果\");\n\t\tgroup_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_1 = new SashForm(group_1, SWT.NONE);\n\n\t\tGroup group_Categorys = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_Categorys.setText(\"商品分组\");\n\t\tgroup_Categorys.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tcategorys = new Table(group_Categorys, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tcategorys.setHeaderVisible(true);\n\t\tcategorys.setLinesVisible(true);\n\n\t\tTableColumn ParentName = new TableColumn(categorys, SWT.NONE);\n\t\tParentName.setWidth(87);\n\t\tParentName.setText(\"商品总类别\");\n\n\t\tTableColumn Title = new TableColumn(categorys, SWT.NONE);\n\t\tTitle.setWidth(87);\n\t\tTitle.setText(\"子类别名\");\n\n\t\tTableColumn Ip = new TableColumn(categorys, SWT.NONE);\n\t\tIp.setWidth(152);\n\t\tIp.setText(\"类别链接\");\n\n\t\tGroup group_ProductBrief = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductBrief.setText(\"商品简要信息列表\");\n\t\tgroup_ProductBrief.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tproductBrief = new Table(group_ProductBrief, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tproductBrief.setLinesVisible(true);\n\t\tproductBrief.setHeaderVisible(true);\n\n\t\tTableColumn Code = new TableColumn(productBrief, SWT.NONE);\n\t\tCode.setWidth(80);\n\t\tCode.setText(\"商品编号\");\n\n\t\tTableColumn Detailurl = new TableColumn(productBrief, SWT.NONE);\n\t\tDetailurl.setWidth(162);\n\t\tDetailurl.setText(\"商品详情链接\");\n\n\t\tTableColumn Preview = new TableColumn(productBrief, SWT.NONE);\n\t\tPreview.setWidth(170);\n\t\tPreview.setText(\"商品图片链接\");\n\n\t\tTableColumn Dtitle = new TableColumn(productBrief, SWT.NONE);\n\t\tDtitle.setWidth(150);\n\t\tDtitle.setText(\"商品标题\");\n\n\t\tGroup group_ProductDetail = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductDetail.setText(\"商品详细信息\");\n\t\tgroup_ProductDetail.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tComposite composite = new Composite(group_ProductDetail, SWT.NONE);\n\n\t\tPDetail = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tPDetail.setLocation(55, 339);\n\t\tPDetail.setSize(360, 220);\n\n\t\tLabel Id = new Label(composite, SWT.NONE);\n\t\tId.setBounds(31, 28, 61, 15);\n\t\tId.setText(\"商品编号:\");\n\n\t\tLabel detail = new Label(composite, SWT.NONE);\n\t\tdetail.setText(\"商品详情:\");\n\t\tdetail.setBounds(31, 311, 61, 15);\n\n\t\tLabel title = new Label(composite, SWT.NONE);\n\t\ttitle.setText(\"商品标题:\");\n\t\ttitle.setBounds(31, 64, 61, 15);\n\n\t\tLabel jdAd = new Label(composite, SWT.NONE);\n\t\tjdAd.setText(\"商品广告:\");\n\t\tjdAd.setBounds(31, 201, 61, 15);\n\n\t\tLabel price = new Label(composite, SWT.NONE);\n\t\tprice.setBounds(31, 108, 61, 15);\n\t\tprice.setText(\"价格:\");\n\n\t\tdcode = new Text(composite, SWT.BORDER);\n\t\tdcode.setEditable(false);\n\t\tdcode.setBounds(98, 25, 217, 21);\n\n\t\tLabel jdprice = new Label(composite, SWT.NONE);\n\t\tjdprice.setBounds(75, 127, 48, 15);\n\t\tjdprice.setText(\"京东价:\");\n\n\t\tLabel srcPrice = new Label(composite, SWT.NONE);\n\t\tsrcPrice.setBounds(75, 166, 48, 15);\n\t\tsrcPrice.setText(\"原售价:\");\n\n\t\tdprice = new Text(composite, SWT.BORDER);\n\t\tdprice.setEditable(false);\n\t\tdprice.setBounds(128, 127, 187, 21);\n\n\t\tdsrcPrice = new Text(composite, SWT.BORDER);\n\t\tdsrcPrice.setEditable(false);\n\t\tdsrcPrice.setBounds(128, 166, 187, 21);\n\n\t\tdtitle = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tdtitle.setBounds(98, 62, 217, 42);\n\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setText(\"广告标题:\");\n\t\tlabel.setBounds(62, 233, 61, 15);\n\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setText(\"广告链接:\");\n\t\tlabel_1.setBounds(62, 272, 61, 15);\n\n\t\tadtitle = new Text(composite, SWT.BORDER);\n\t\tadtitle.setEditable(false);\n\t\tadtitle.setBounds(128, 231, 187, 21);\n\n\t\tadUrl = new Text(composite, SWT.BORDER);\n\t\tadUrl.setEditable(false);\n\t\tadUrl.setBounds(128, 270, 187, 21);\n\t\tsashForm_1.setWeights(new int[] { 335, 573, 430 });\n\t\tsashForm.setWeights(new int[] { 85, 586 });\n\n\t\tdoEvent();// 组件的事件操作\n\n\t}",
"private void createContents() {\n // シェル\n super.createContents(this.parent, SWT.CLOSE | SWT.TITLE, false);\n this.getShell().setText(\"つぶやく\");\n this.shell = this.getShell();\n\n // レイアウト\n GridLayout glShell = new GridLayout(3, false);\n // glShell.horizontalSpacing = 1;\n glShell.marginHeight = 10;\n glShell.marginWidth = 10;\n // glShell.verticalSpacing = 1;\n this.shell.setLayout(glShell);\n\n Label thumnail = new Label(this.shell, SWT.NONE);\n GridData gdThumnail = new GridData(SWT.CENTER, SWT.CENTER, false, false, 3, 1);\n thumnail.setLayoutData(gdThumnail);\n try {\n Image orig = SwtUtils.makeImage(this.imageFile);\n thumnail.setImage(SwtUtils.scaleToFit(orig, 400, 300));\n orig.dispose();\n } catch (IOException e2) {\n SwtUtils.errorDialog(e2, TweetDialog.this.shell);\n }\n\n final Text text = new Text(this.shell, SWT.MULTI | SWT.BORDER | SWT.WRAP);\n GridData gdText = new GridData(SWT.FILL, SWT.FILL, true, true, 3, 1);\n gdText.widthHint = SwtUtils.DPIAwareWidth(300);\n gdText.heightHint = SwtUtils.DPIAwareHeight(80);\n text.setLayoutData(gdText);\n\n Label userName = new Label(this.shell, SWT.NONE);\n userName.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));\n try {\n userName.setText(TwitterClient.getInstance().getUser().getScreenName());\n } catch (TwitterException e1) {\n SwtUtils.errorDialog(e1, TweetDialog.this.shell);\n }\n\n final Label remainChars = new Label(this.shell, SWT.NONE);\n remainChars.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n text.addModifyListener(new ModifyListener() {\n\n @Override\n public void modifyText(ModifyEvent e) {\n int remain = 117 - text.getText().length();\n remainChars.setText(String.valueOf(remain));\n }\n });\n text.setText(\"\");\n\n Button tweet = new Button(this.shell, SWT.NONE);\n GridData gdTweet = new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1);\n gdTweet.widthHint = SwtUtils.DPIAwareWidth(100);\n tweet.setLayoutData(gdTweet);\n tweet.setText(\"つぶやく\");\n tweet.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n try {\n TwitterClient.getInstance().tweet(\n TweetDialog.this, text.getText(), TweetDialog.this.imageFile);\n TweetDialog.this.shell.close();\n ApplicationMain.logPrint(\"つぶやきました\");\n } catch (TwitterException e1) {\n SwtUtils.errorDialog(e1, TweetDialog.this.shell);\n }\n }\n });\n\n this.shell.pack();\n }",
"protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }",
"private boolean createContents(Widget parent, String xliffFileName)\n\t{\n\t\t// Change the color used to paint the sashes\n\t\tint iGridData = GridData.GRAB_VERTICAL | GridData.VERTICAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL | GridData.FILL_HORIZONTAL;\n\n\t\tthis.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WHITE));\n\n\t\tSashForm toolsHolder = new SashForm(this, SWT.NONE);\n\t\ttoolsHolder.setOrientation(SWT.HORIZONTAL);\n\t\tGridLayout toolsLayout = new GridLayout(1, true);\n\t\ttoolsLayout.marginWidth = 1;\n\t\ttoolsLayout.marginHeight = 1;\n\t\ttoolsLayout.horizontalSpacing = 0;\n\t\ttoolsHolder.setLayout(toolsLayout);\n\t\ttoolsHolder.setLayoutData(new GridData(iGridData));\n\n\t\t// SashForm dataSourceForms = createDataSourceForm(toolsHolder);\n\t\t// setDataSourceHolders(dataSourceForms);\n\n\t\txliffFileHolder = createXliffEditorWithToolBar(toolsHolder);\n\n\t\t// 1 : 5 | | | changed to one sash now and moved the\n\t\t// createXliffEditorWithToolBar(toolsHolder); to the inner form\n\t\ttoolsHolder.setWeights(new int[] { 1\n\t\t/* , 5 */\n\t\t});\n\n\t\tthis.layout();\n\n\t\tboolean bSuccess = loadXliffFile(xliffFileName);\n\n\t\tif (bSuccess)\n\t\t\txliffEditorObserver.update(null, null);\n\n\t\treturn bSuccess;\n\t}",
"@Override\n public void command(String path) {\n StringBuilder html = new StringBuilder();\n html.append(\"<!doctype html>\\n\");\n html.append(\"<html lang='en'>\\n\");\n\n html.append(\"<head>\\n\");\n html.append(\"<meta charset='utf-8'>\\n\");\n html.append(\"<title>optional.Catalog</title>\\n\");\n html.append(\"</head>\\n\\n\");\n\n html.append(\"<body>\\n\");\n html.append(\"<h1>optional.Catalog</h1>\\n\");\n html.append(\"<p>Nume catalog:\" + c.getName() + \"</p>\\n\");\n html.append(\"<p>Path catalog:\" + c.getPath() + \"</p>\\n\");\n html.append(\"<p>Documents: </p>\\n\");\n html.append(\"<ul>\\n\");\n for (Document document : c.getDocuments()) {\n System.out.println(document);\n html.append(\"<li>\" + document + \"</li>\\n\");\n }\n html.append(\"</ul>\\n\");\n html.append(\"</body>\\n\\n\");\n\n html.append(\"</html>\");\n try (FileWriter fout = new FileWriter(path)){\n String htmlString = html.toString();\n fout.write(htmlString);\n Desktop desktop = Desktop.getDesktop();\n desktop.open(new File(path));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected Composite createContent(Composite parent) {\n\t\tComposite c = new Composite(parent, SWT.NONE);\n\t\tc.setLayout(new FillLayout());\n\t\treturn c;\n\t}",
"@Override\n\tprotected Shell getShell() {\n\t\treturn super.getShell();\n\t}"
] | [
"0.728651",
"0.69232035",
"0.673589",
"0.664354",
"0.66357344",
"0.653829",
"0.65372425",
"0.6447823",
"0.6435758",
"0.64308214",
"0.6393441",
"0.6372602",
"0.63481575",
"0.6334303",
"0.6303444",
"0.6293957",
"0.62853587",
"0.62844884",
"0.6266547",
"0.62443006",
"0.6225034",
"0.6219259",
"0.61921036",
"0.615947",
"0.6129292",
"0.6125939",
"0.6120091",
"0.61186093",
"0.61163163",
"0.6105364",
"0.6102604",
"0.60811746",
"0.6080745",
"0.6075475",
"0.60267645",
"0.5991278",
"0.5990636",
"0.5962587",
"0.595476",
"0.5951175",
"0.59507877",
"0.5932392",
"0.5916459",
"0.59068054",
"0.5906389",
"0.5872556",
"0.5861234",
"0.58209175",
"0.5794955",
"0.5766589",
"0.5732987",
"0.57143027",
"0.5707276",
"0.57026494",
"0.5701986",
"0.5674443",
"0.56531507",
"0.5627646",
"0.5615619",
"0.56125903",
"0.5600748",
"0.55907893",
"0.5576139",
"0.5573804",
"0.54876447",
"0.54821664",
"0.5479399",
"0.5473743",
"0.54571706",
"0.5449843",
"0.5385341",
"0.53501135",
"0.5344314",
"0.5317395",
"0.5303294",
"0.5302881",
"0.5289089",
"0.52606964",
"0.52586824",
"0.51537657",
"0.5130036",
"0.5114834",
"0.50862885",
"0.508013",
"0.50740284",
"0.506462",
"0.5062187",
"0.50574017",
"0.5045513",
"0.50432533",
"0.5040586",
"0.50193775",
"0.5008364",
"0.5007026",
"0.4995903",
"0.49789888",
"0.4973929",
"0.4970058",
"0.49698",
"0.4928433"
] | 0.54041266 | 70 |
Disable the check that prevents subclassing of SWT components | @Override
protected void checkSubclass() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\npublic boolean delegateSelectionToWidgetShell() {\n\treturn false;\n}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"public void disable() {\n parent.setDefaultEnabled(false);\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n\tpublic boolean hasCustomUI() {\n\t\treturn false;\n\t}",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"public boolean isEnabled () {\r\n\tcheckWidget();\r\n\treturn getEnabled () && parent.isEnabled ();\r\n}",
"private void disableComponents() {\r\n maintainSponsorHierarchyBaseWindow.btnChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setSelected(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setSelected(false);\r\n }",
"@Override\npublic boolean isEnabled() {\n\treturn false;\n}",
"@Override\n protected void setInitiallyEnabled(boolean forConstruction)\n {\n super.setInitiallyEnabled(forConstruction);\n\n setEnabled(CogToolLID.NewWidget,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.NewWidgetJustWarn,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.AddDesignDevices,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomToFit,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomNormal,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomIn,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.ZoomOut,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SetBackgroundImage,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SetWidgetColor,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n setEnabled(CogToolLID.SkinNone,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinWireFrame,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinWinXP,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinMacOSX,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.SkinPalm,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n setEnabled(CogToolLID.RenderAll,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n setEnabled(CogToolLID.UnRender,\n ListenerIdentifierMap.ALL,\n MenuUtil.ENABLED);\n\n boolean enable = (frame.getBackgroundImage() == null)\n ? MenuUtil.DISABLED\n : MenuUtil.ENABLED;\n\n setEnabled(CogToolLID.RemoveBackgroundImage,\n ListenerIdentifierMap.ALL,\n enable);\n\n view.setIsBackgroundAvailable(enable);\n\n setViewEnabledState(selection, ListenerIdentifierMap.NORMAL);\n }",
"@Override\n protected void ignoreUi(UiWatcher watcher) {\n Logger.debug(\"Ignoring to the checkbox\");\n watcher.ignore(theCheckBox);\n }",
"@Override\n public boolean isEnabled() {\n return false;\n }",
"@Override\n public boolean isEnabled() {\n return false;\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"private void disableButtons()\r\n {\r\n }",
"@Override\n public boolean onCheckIsTextEditor() {\n return false;\n }",
"@Override\n\tpublic boolean requiresToggleButton() {\n\t\treturn false;\n\t}",
"@Override\n public void disabledInit(){\n\n }",
"@Override\npublic boolean delegateOpenToWidgetShell() {\n\treturn false;\n}",
"protected boolean shouldAddControlListener() {\n return true;\n }",
"public FXMLPropertiesDisabler() {\n this(OS.get());\n }",
"@Override\n protected boolean canHighlight(Component component,\n ComponentAdapter adapter) {\n return component instanceof JComponent;\n }",
"@Override\n public void onDisabled() {\n }",
"public boolean superSelectable() { return getClass()==RMParentShape.class; }",
"@Override\n public boolean isFocusable() {\n return false;\n }",
"@Override\n public void disabledInit()\n {\n }",
"public void disableComponent(String name);",
"@Override\n public void disabledInit() {\n }",
"@Override\n public void disabledInit() {\n }",
"@Override\n public void disabledInit() {\n }",
"@Override\n public void disabledInit() {}",
"@Override\n public void disabledInit()\n {\n \n }",
"static int checkStyle (int style) {\r\n\treturn style & ~(SWT.H_SCROLL | SWT.V_SCROLL);\r\n}",
"@Override\n public void dispose() {\n if (parent != null) {\n parent.setEnabled(true);\n }\n super.dispose();\n }",
"private void disableMixedArticleDropdown(){\n\t\tcbCCC.setEnabled(false);\n\t\tcbDCC.setEnabled(false);\n\t\tcbIEC.setEnabled(false);\n\t\tcbLoadingCharge.setEnabled(false);\n\t\tcbDDC.setEnabled(false);\n\t\ttxtDDC_minPerLR.setEnabled(false);\n\t}",
"@Override\n public void onDisabled(Context context) {\n // Enter relevant functionality for when the last widget is disabled\n }",
"@Override public boolean isEnabled() {\n return true;\n }",
"private void setupComponentBehavior() {\n\t\tfileTextField.setEditable(false);\n\t\tprocessButton.setEnabled(false);\n\n summaryTextArea.setEditable(false);\n summaryTextArea.setLineWrap(true);\n summaryTextArea.setWrapStyleWord(true);\n\n\t\tfileBrowseButton.addActionListener(this);\n\t\tprocessButton.addActionListener(this);\n\t}",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean isEnabled() {\n\t\treturn false;\r\n\t}",
"@Override\n public void disabledInit() {\n }",
"@Override\n\tpublic void disabledInit() {\n\t\t\n\t}",
"@Override\n\tpublic void disabledInit() {\n\t\t\n\t}",
"@Override\n\tpublic void disabledInit() {\n\t}",
"B disableTextInput();",
"@Override\n public void checkEditing() {\n }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void onDisabled(Context context) \n\t{\n\t\tPackageManager pm = context.getPackageManager();\n\t\tpm.setComponentEnabledSetting(\n\t\t\t\tnew ComponentName(\"de.fhe\", \"MyAppWidgetProvider\"),\n\t\t\t\tPackageManager.COMPONENT_ENABLED_STATE_DISABLED, \n\t\t\t\tPackageManager.DONT_KILL_APP );\n\t}",
"protected Component getControlOwner() {\r\n return null;\r\n }",
"@Override\npublic boolean isEnabled() {\n\treturn true;\n}",
"@Override\n public boolean shouldPaint() {\n return false;\n }",
"public void disableInputs();",
"@Override\n\tpublic void disabledInit() {\n\n\t}",
"@Override\n\tpublic void disabledInit() {\n\n\t}",
"void disableAgentSelectionControl();",
"@Override\n public void onDisable() {\n }",
"@Override\r\npublic boolean isOnScreen() {\nreturn false;\r\n}",
"public void disableChoice() {\n\t\t// Disable the buttons, dimming them\n\t\trock.setEnabled(false);\n\t\tpaper.setEnabled(false);\n\t\tscissors.setEnabled(false);\n\t}",
"@Override\n\tpublic void disabledInit() \n\t{\n\n\t}",
"public Widget() {\n\t\tenabled = true;\n\t}",
"private void disableCheck(){\n Button check = (Button) findViewById(R.id.check);\n check.setText(\"Check\");\n check.setClickable(false);\n check.setBackgroundColor(Color.parseColor(\"#e2e2e2\"));\n check.setTextColor(Color.parseColor(\"#a9a9a9\"));\n }",
"@Override\n\tpublic void disabledInit() {\n\t\t\n\n\t}"
] | [
"0.65418386",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6424288",
"0.6386372",
"0.6385444",
"0.63815945",
"0.63815945",
"0.63815945",
"0.6372198",
"0.6369765",
"0.6369765",
"0.6369765",
"0.6327747",
"0.613954",
"0.61354",
"0.613143",
"0.6130422",
"0.60497934",
"0.60497934",
"0.59810406",
"0.59810406",
"0.59810406",
"0.5949095",
"0.5919159",
"0.5892835",
"0.58628756",
"0.5840121",
"0.57722384",
"0.57628536",
"0.5755989",
"0.5742321",
"0.5704667",
"0.57024294",
"0.5691352",
"0.56789166",
"0.5672601",
"0.5671401",
"0.5671401",
"0.5671401",
"0.5660053",
"0.5656492",
"0.56486976",
"0.5647985",
"0.56022424",
"0.5600222",
"0.55756736",
"0.5570683",
"0.55705935",
"0.55705935",
"0.5569825",
"0.5554861",
"0.5554861",
"0.5547352",
"0.554408",
"0.55440325",
"0.5539831",
"0.5539831",
"0.553639",
"0.55272925",
"0.5508766",
"0.5504862",
"0.54941386",
"0.54905754",
"0.54905754",
"0.5474116",
"0.5465791",
"0.54638034",
"0.54607904",
"0.54533094",
"0.5445137",
"0.54384804",
"0.5429907"
] | 0.6381638 | 33 |
Test of convertToWords method, of class WoordenController. | @Test
public void testConvertToWords()
{
System.out.println("convertToWords");
WoordenController instance = new WoordenController();
String[] expResult =
{
"een", "twee", "drie", "vier", "hoedje", "van", "hoedje", "van", "een", "twee", "drie", "vier",
"hoedje", "van", "papier"
};
String[] result = instance.convertToWords();
assertArrayEquals(expResult, result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test \n\tpublic void generateWordsTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// select 'words' radio button \n\t\thomePage.selectContentType(\"words\");\n\n\t\t// enter '100' in the count field \n\t\thomePage.inputCount(\"1000\");\n\n\t\t// click \"Generate Lorum Ipsum\" button\n\t\thomePage.generateLorumIpsum();\n\t\tGeneratedPage generatedPage = new GeneratedPage(driver);\n\n\t\t// validate the number of words generated \n\t\tint wordCount = generatedPage.getActualGeneratedCount(\"words\");\n\t\tAssert.assertTrue(wordCount == 1000);\n\n\t\t// validate the report text // ex: \"Generated 10 paragraphs, 1106 words, 7426 bytes of Lorem Ipsum\" \n\t\tAssert.assertEquals(\"Generated \" + generatedPage.getReport(\"paragraphs\") + \n\t\t\t\t\" paragraphs, \" + generatedPage.getReport(\"words\") + \n\t\t\t\t\" words, \" + generatedPage.getReport(\"bytes\") + \n\t\t\t\t\" bytes of Lorem Ipsum\", generatedPage.getCompleteReport());\n\n\t}",
"@Test\n public void testGetWordsAsString() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"2523.04\");\n String expResult = \"Two thousand five hundred twenty-three and 04/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsNoFraction() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"458\");\n String expResult = \"Four hundred fifty-eight and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testConvertToLines()\n {\n System.out.println(\"convertToLines\");\n WoordenController instance = new WoordenController();\n String[] expResult =\n {\n \"een twee drie vier\", \"hoedje van hoedje van\", \"een twee drie vier\", \"hoedje van papier\"\n };\n String[] result = instance.convertToLines();\n assertArrayEquals(expResult, result);\n }",
"@Test\n public void testGetWordsEmpty() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"\");\n String expResult = \"Zero and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"public static void main(String[] args) {\n System.out.println(\"*******\");\n numberToWords(-100);\n System.out.println(\"*******\");\n numberToWords(1010);\n System.out.println(\"*******\");\n numberToWords(1000);\n System.out.println(\"*******\");\n numberToWords(1234567890);\n System.out.println(\"*******\");\n\n\n\n\n\n\n\n }",
"@Test\n public void testGetWordsHundreds() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"46.00\");\n String expResult = \"Forty-six and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsZeroDot() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"0.\");\n String expResult = \"Zero and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsThousands() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"428030.16\");\n String expResult = \"Four hundred twenty-eight thousand thirty and 16/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsAsDouble() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(2523.04);\n String expResult = \"Two thousand five hundred twenty-three and 04/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result); \n }",
"@Test\n public void testGetWordsBillionMilTeens() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"1018000000.05\");\n String expResult = \"One billion eighteen million and 05/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n void generate25Words() {\n // given\n Board board = new Board();\n board.generateWords(WordsReader.read(\"words.json\"));\n List<Word> words;\n // when\n words = board.getWordList();\n // then\n assertEquals(25, words.size());\n assertNotNull(words.get(0));\n assertNotNull(words.get(1));\n assertNotNull(words.get(2));\n assertNotNull(words.get(24));\n }",
"@Test\n public void testGetWordsJustDecimal() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\".\");\n String expResult = \"Zero and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsDotZero() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\".0\");\n String expResult = \"Zero and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsNull() {\n System.out.println(\"getWords\");\n String input=null;\n DollarsToWords instance = new DollarsToWords(input);\n String expResult = \"Zero and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsZero() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"0\");\n String expResult = \"Zero and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsOverBillion() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"2123456789123\");\n String expResult = \"Zero and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsOverBillionDecimal() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(2e24);\n String expResult = \"Zero and 00/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test \r\n\tpublic void testConvertForTokenization()\r\n\t{\r\n\t\tArrayList<String> testArrayList = new ArrayList<String>();\r\n\t\ttestArrayList.add(\"This\");\r\n\t\ttestArrayList.add(\"is\");\r\n\t\ttestArrayList.add(\"a\");\r\n\t\ttestArrayList.add(\"test\");\r\n\t\t\r\n\t\tString testSentence = UtilService.convertForTokenization(testArrayList);\r\n\t\t\r\n\t\tassertNotNull(testSentence);\r\n\t\t//note the method adds a space after each word\r\n\t\tassertEquals(\"This is a test \", testSentence.toString());\r\n\t}",
"@Test\n public void findEvenLengthWords() {\n List<String> output = null; // TODO\n\n assertEquals(Arrays.asList(\"in\", \"computer\", \"be\", \"solved\", \"by\", \"adding\", \"of\",\n \"except\", \"many\", \"levels\", \"of\"), output);\n }",
"@Test \n\tpublic void generateWordsTest_NegativeTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// select 'words' radio button \n\t\thomePage.selectContentType(\"words\");\n\n\t\t// enter 'abcd' in the count field \n\t\thomePage.inputCount(\"abcd\");\n\n\t\t// click \"Generate Lorum Ipsum\" button\n\t\thomePage.generateLorumIpsum();\n\t\tGeneratedPage generatedPage = new GeneratedPage(driver);\n\n\t\t// validate the number of words generated \n\t\tint wordCount = generatedPage.getActualGeneratedCount(\"words\");\n\t\tAssert.assertTrue(\"Incorrect reported words count with abcd input\", wordCount == 0);\n\t}",
"@Test\n public void printAllWords() {\n // TODO\n }",
"public ArrayList<String> playWord(){\n\t\tSystem.out.println(myField.getNewWords());\n\t\tArrayList<String> words;\n\t\tif(myField.getNewWords().size() != 0){\n\t\t\t words = myWC.checkWords(myPC.createWords(myField.getTiles(), myField.getNewWords()), myField.getNewWords(), myField.getTiles(), getfirstWord());\n\t\t}\n\t\telse{\n\t\t\twords = new ArrayList<String>();\n\t\t\twords.add(\"You have not placed any stones\");\n\t\t\treturn words;\n\t\t}\n\t\tSystem.out.println(words);\n\t\t\n\t\tif(words.size() == 0){\n\t\t\t\n\t\t\tplayDB();\n\t\t\treturn null;\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tmyField.updateField(id);\n\t\t\treturn words;\n\t\t}\n\t\t\n\t}",
"public WordsToGuess(String w)\n\t{\n\t\tword = w;\n\t}",
"private void createDocWords() {\n\t\tArrayList<DocWords> docList=new ArrayList<>();\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\docWords.txt\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\" \");\n\t\t\t\tDocWords docWords=new DocWords();\n\t\t\t\tdocWords.setDocName(parts[0].replace(\".txt\", \"\"));\n\t\t\t\tdocWords.setCount(Float.parseFloat(parts[1]));\n\t\t\t\tdocList.add(docWords);\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertDocWords(docList);\n\t}",
"@Test\n public void testGetWordsMillions() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"5000000.05\");\n String expResult = \"Five million and 05/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\n public void testGetWordsBillion() {\n System.out.println(\"getWords\");\n DollarsToWords instance = new DollarsToWords(\"1233444253.04\");\n String expResult = \"One billion two hundred thirty-three million four hundred forty-four thousand two hundred fifty-three and 04/100 dollars\";\n String result = instance.getWords();\n assertEquals(expResult, result);\n }",
"@Test\r\n public void testGetCandidateWords() throws IOException {\r\n System.out.println(\"getCandidateWords\");\r\n String word = \"idabetes\";\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n Map<String, Double> result = sc.getCandidateWords(word);\r\n for (String key : result.keySet()) {\r\n System.out.println(key + \", \" + result.get(key));\r\n }\r\n\r\n /*assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");*/\r\n }",
"@Test\n\tpublic void testGetWords() throws MalformedURLException, IOException, BadLocationException {\n\t\t\n\t\t// Setup\n\t\tArticle a = new Article(new File(\"test/res/sample_article.html\").toURI().toURL());\n\t\ta.read();\n\t\t\n\t\t// Exercise\n\t\tList<String> words = a.getWords();\n\t\t\n\t\t// Verify\t\t\n\t\tAssert.assertNotNull(words);\n\t\tAssert.assertTrue(words.size() > 0);\n\t}",
"public void computeWords(){\n\n loadDictionary();\n\n CharacterGrid characterGrid = readCharacterGrid();\n\n Set<String> wordSet = characterGrid.findWordMatchingDictionary(dictionary);\n\n System.out.println(wordSet.size());\n for (String word : wordSet) {\n\t System.out.println(word);\n }\n\n // System.out.println(\"Finish scanning character grid in \" + (System.currentTimeMillis() - startTime) + \" ms\");\n }",
"private void initialiseWordsToSpell(){\n\t\t//normal quiz\n\t\tif(quiz_type==PanelID.Quiz){\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Quiz);\n\t\t} else { //review quiz\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Review);\n\t\t}\t\n\t}",
"public boolean writeWordFile() throws Exception {\n\n InputStream is = null;\n FileOutputStream fos = null;\n\n // 1 Cannot find source file, return false\n File inputFile = new File(this.inputPath);\n if (!inputFile.exists()) {\n return false;\n }\n\n File outputFile = new File(this.outputPath);\n // 2 If the target path does not exist, create a new path\n if (!outputFile.getParentFile().exists()) {\n outputFile.getParentFile().mkdirs();\n }\n\n try {\n\n // 3 Write html file content to doc file\n is = new FileInputStream(inputFile);\n POIFSFileSystem poifs = new POIFSFileSystem();\n DirectoryEntry directory = poifs.getRoot();\n directory.createDocument(\n \"WordDocument\", is);\n\n fos = new FileOutputStream(this.outputPath);\n poifs.writeFilesystem(fos);\n\n System.out.println(\"Conversion of word files is complete!\");\n\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fos != null) {\n fos.close();\n }\n if (is != null) {\n is.close();\n }\n }\n\n return false;\n }",
"public static void main(String[] args) {\n numberToWords(1230);\n }",
"static void doWords(String words, MorseAction action) throws InterruptedException{\n if (firstPass){\n action.doAction(MorseAction.morseAction.SILENCE);\n Thread.sleep(500);\n firstPass=false;\n }\n for (byte b: words.getBytes()){\n if (stop)\n return;\n if (b==blanc) {// word separator\n Thread.sleep(betweenWordDelay);\n continue;\n }\n doLetter(b, action);\n Thread.sleep(betweenLetterDelay);\n }\n Thread.sleep(betweenWordDelay);\n }",
"@Override\r\n public String wordsOriginal(char[] arrayOfword) {\n String origalWord = \"\";//define a String for save the word orignal\r\n try {\r\n for (int i = 0; i < arrayOfword.length; i++) {\r\n origalWord += arrayOfword[i];//each charater put in the string origalWord\r\n }\r\n } catch (Exception e) {\r\n JOptionPane.showMessageDialog(null, \"An error has occured!\");\r\n }\r\n return origalWord;\r\n }",
"@Test\r\n\tpublic void testCapitalizeAllWords() throws Exception{\r\n\t\tAssert.assertEquals(\"Hello World\", Capitalizer.capitalizeAllWords(\"hello woRLd\"));\r\n\t}",
"private static void splitWord() {\n\t\tint i = 1;\r\n\t\tfor(String doc : DocsTest) {\r\n\t\t\tArrayList<String> wordAll = new ArrayList<String>();\r\n\t\t\tfor (String word : doc.split(\"[,.() ; % : / \\t -]\")) {\r\n\t\t\t\tword = word.toLowerCase();\r\n\t\t\t\tif(word.length()>1 && !mathMethod.isNumeric(word)) {\r\n\t\t\t\t\twordAll.add(word);\r\n\t\t\t\t\tif(!wordList.contains(word)) {\r\n\t\t\t\t\t\twordList.add(word);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twordAll.removeAll(stopword);\r\n\t\t\tDoclist.put(i, wordAll);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\twordList.removeAll(stopword);\r\n\t}",
"@Test\n public void testSpinTwoWords() {\n final String actualResult = kata4.spinWord(\"Hey fellow warriors\");\n final String expectedResult = \"Hey wollef sroirraw\";\n assertEquals(expectedResult, actualResult);\n }",
"@Test\r\n\tvoid testwordLengthsTallyHandout1() {\n\t\tString input = Main.TEXT_1;\r\n\t\tString expected[] = {\"Star\",\"Wars:\",\"Episode\",\"VII\",\"The\",\"Force\",\"Awakens\"};\r\n\t\t\r\n\t\t// Use assertEquals to compare arrays\r\n\t\tassertArrayEquals(expected, Main.splitString(input) );\r\n\r\n\t}",
"private void addWords(){\n wordList.add(\"EGE\");\n wordList.add(\"ABBAS\");\n wordList.add(\"KAZIM\");\n }",
"@Test\n\tpublic void forWinnerchecker() {\n\t\tString stringOfTestingWord = (\"aword\");\n\t\tboolean ExpectedResult;\n\t\tExpectedResult = true;\n\t\tboolean MethodResult = object1.Winnerchecker(stringOfTestingWord);\n\t\tassertEquals(ExpectedResult, MethodResult);\n\t}",
"public static void fetchWords() {\n wordList = new ArrayList<String>();\n try {\n //problems with reading into method\n WordFetcher.readInto(wordList); \n } catch(Exception e) {\n System.out.println(e);\n }\n }",
"private void convertWord(String word, int n) {\n\t\t\n\t\tStringBuilder convertedWord;\t\t// A StringBuilder object is used to substitute specific characters at locations\n\t\t\n\t\tfor (int i = n; i < word.length(); i++) {\t\t// Loops through the entire word to make substitutions\n\t\t\tswitch (word.charAt(i)) {\n\t\t\t\tcase 'a':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\t\t// Creates a new StringBuilder string\n\t\t\t\t\tconvertedWord.setCharAt(i, '4');\t\t\t\t// Substitutes 'a' with '4'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\t\t// Adds the converted word to the trie\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\t\t\t\t\t// Adds the converted word to my_dictionary.txt\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\t\t\t\t// Checks this converted word for more substitutions\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'e':\t\t\t\t\t// These cases all follow the same format; they only differ in the letter that is substituted\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '3');\t\t\t\t// Substitutes 'e' with '3'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'i':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '1');\t\t\t\t// Substitutes 'i' with '1'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'l':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '1');\t\t\t\t// Substitutes 'l' with 'i'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'o':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '0');\t\t\t\t// Substitutes 'o' with '0'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 's':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '$');\t\t\t\t// Substitutes 's' with '$'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 't':\n\t\t\t\t\tconvertedWord = new StringBuilder(word);\n\t\t\t\t\tconvertedWord.setCharAt(i, '7');\t\t\t\t// Substitutes 't' with '7'\n\t\t\t\t\tDLBTCharMethods.addWord(trie, convertedWord.toString());\n\t\t\t\t\tmyDictionary.println(convertedWord.toString());\n\t\t\t\t\tconvertWord(convertedWord.toString(), i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public int allWordsHorizontal(Board board, Dictionary dictionary, Scrabble game, int moves){\n // Initializes variables\n testBoard = board;\n String topHWord = \"\";\n int topHScore = 0;\n int topHRow=0;\n int topHCol=0;\n boolean theWay = true;\n boolean found = false;\n ArrayList<Piece> piecesOfTopWord = new ArrayList<Piece>();\n\n // Goes through ever point on the board\n for (int row = 0; row < 15; row++){\n for (int col = 0; col < 15; col++) {\n if (game.numOfMoves()==0){\n row = 7;\n col = 7;\n }\n \n // The word to make at that point\n mustUse=new ArrayList<Character>();\n mustUseVert=new ArrayList<Character>(); \n int retHorz = anagramAtSquare(row,col,col,0,false, moves);\n int retVert = anagramAtSquareVert(row,col,row,0,false, moves);\n \n // Puts the word on the board and checks to make sure valid word, and if it is top word it stores information about the word for horizontal words\n ArrayList<String> allAnagrams = null;\n if (retHorz!=-1){\n allAnagrams = allWords(retHorz, mustUse);\n for (int inde = 0; inde < allAnagrams.size(); inde++){\n ArrayList<String> test = dictionary.anagram(allAnagrams.get(inde).toLowerCase());\n if(test != null){\n for (int all = 0; all < test.size(); all++) {\n if (addToBoardHor(col, row, all, test, board)) {\n if (game.isValidMove()||moves==0) {\n ArrayList<ArrayList<Piece>> words = new ArrayList<ArrayList<Piece>>();\n words.addAll(board.words());\n if (game.isValidWord(words)){\n int trackScore=0;\n trackScore=board.scoreAI(words);\n if (board.numNonPinned() == 7)\n trackScore+=50;\n if (trackScore>topHScore && game.getStrength()){\n wordsToDisplay = new ArrayList<String>();\n for (int index = 0; index < words.size(); index++)\n {\n ArrayList<Piece> word = new ArrayList<Piece>();\n word = words.get(index);\n String wordToCheck = \"\";\n for (int indexInner = 0; indexInner < word.size(); indexInner++)\n wordToCheck += word.get(indexInner).theLetter();\n\n if (wordToCheck.length() > 1)\n wordsToDisplay.add(wordToCheck);\n }\n\n topHWord = test.get(all);\n topHScore = trackScore;\n topHRow=row;\n topHCol=col;\n theWay= true;\n found = true;\n piecesOfTopWord = words.get(0);\n } else if (trackScore>topHScore && trackScore<15){\n wordsToDisplay = new ArrayList<String>();\n for (int index = 0; index < words.size(); index++)\n {\n ArrayList<Piece> word = new ArrayList<Piece>();\n word = words.get(index);\n String wordToCheck = \"\";\n for (int indexInner = 0; indexInner < word.size(); indexInner++)\n wordToCheck += word.get(indexInner).theLetter();\n\n if (wordToCheck.length() > 1)\n wordsToDisplay.add(wordToCheck);\n }\n\n topHWord = test.get(all);\n topHScore = trackScore;\n topHRow=row;\n topHCol=col;\n theWay= true;\n found = true;\n piecesOfTopWord = words.get(0);\n }\n }\n \n board.clearNonPinned();\n } else {\n board.clearNonPinned();\n }\n }\n }\n }\n }\n }\n \n // Puts the word on the board and checks to make sure valid word, and if it is top word it stores information about the word for Vertical words\n allAnagrams = null;\n if (retVert!=-1){\n allAnagrams = allWords(retVert, mustUse);\n for (int inde = 0; inde < allAnagrams.size(); inde++){\n ArrayList<String> test = dictionary.anagram(allAnagrams.get(inde).toLowerCase());\n if(test != null){\n for (int all = 0; all < test.size(); all++) {\n if (addToBoardVer(col, row, all, test, board)) {\n if (game.isValidMove()||moves==0) {\n ArrayList<ArrayList<Piece>> words = new ArrayList<ArrayList<Piece>>();\n words.addAll(board.words());\n if (game.isValidWord(words)){\n int trackScore=0;\n trackScore=board.scoreAI(words);\n if (board.numNonPinned() == 7)\n trackScore+=50;\n if (trackScore>topHScore && game.getStrength()){\n wordsToDisplay = new ArrayList<String>();\n for (int index = 0; index < words.size(); index++)\n {\n ArrayList<Piece> word = new ArrayList<Piece>();\n word = words.get(index);\n String wordToCheck = \"\";\n for (int indexInner = 0; indexInner < word.size(); indexInner++)\n wordToCheck += word.get(indexInner).theLetter();\n\n if (wordToCheck.length() > 1)\n wordsToDisplay.add(wordToCheck);\n }\n \n topHWord = test.get(all);\n topHScore = trackScore;\n topHRow=row;\n topHCol=col;\n theWay=false;\n found = true;\n piecesOfTopWord = words.get(0);\n } else if (trackScore>topHScore && trackScore<15){\n wordsToDisplay = new ArrayList<String>();\n for (int index = 0; index < words.size(); index++)\n {\n ArrayList<Piece> word = new ArrayList<Piece>();\n word = words.get(index);\n String wordToCheck = \"\";\n for (int indexInner = 0; indexInner < word.size(); indexInner++)\n wordToCheck += word.get(indexInner).theLetter();\n\n if (wordToCheck.length() > 1)\n wordsToDisplay.add(wordToCheck);\n }\n \n topHWord = test.get(all);\n topHScore = trackScore;\n topHRow=row;\n topHCol=col;\n theWay=false;\n found = true;\n piecesOfTopWord = words.get(0);\n }\n }\n \n board.clearNonPinned();\n } else {\n board.clearNonPinned();\n }\n }\n }\n }\n }\n }\n \n if (game.numOfMoves()==0){\n row = 15;\n col = 15;\n }\n \n }\n }\n \n System.out.println(\"Top Word: \" + topHWord + \" Score: \" + topHScore + \" Row: \" + topHRow + \" Col: \" + topHCol+ \" HorOrVert: \" + theWay);\n for (int i = 0; i < piecesOfTopWord.size(); i++) {\n System.out.print(piecesOfTopWord.get(i).theLetter());\n }\n System.out.println();\n \n for (int i = 0; i < playersPieces.size(); i++) {\n System.out.print(playersPieces.get(i).theLetter());\n }\n System.out.println();\n \n // Returns what move to make\n if (found){\n putOnBoard(topHRow, topHCol, theWay,topHWord, piecesOfTopWord, board);\n return 1;\n }\n else if (!game.isBagEmpty()){\n return 2;\n }else\n return 3;\n }",
"public void highLightWords(){\n }",
"private void addCustomWords() {\r\n\r\n }",
"@Test\n public void testAddWordsToList() throws Exception {\n System.out.println(\"addWordsToList\");\n String permalink = testList.getPermalink();\n\n WordListApi.addWordsToList(token, permalink, testWordList);\n }",
"SList evenWords();",
"private void getWordsList(final States.difficulty diff) {\n \t\tString file;\n \t\tif (diff == States.difficulty.EASY) {\n \t\t\tfile = \"4words.txt\";\n \t\t} else if (diff == States.difficulty.MEDIUM) {\n \t\t\tfile = \"5words.txt\";\n \t\t} else {\n \t\t\tfile = \"6words.txt\";\n \t\t}\n \n \t\t// read entire file as string, parsed into array by new line\n \t\ttry {\n \t\t\tInputStream stream = am.open(file);\n \t\t\tString contents = IOUtils.toString(stream, \"UTF-8\");\n \t\t\twordsList = contents.split(System.getProperty(\"line.separator\"));\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \n \t\t// Shuffle the elements in the array\n \t\tCollections.shuffle(Arrays.asList(wordsList));\n \t}",
"@SuppressWarnings({ \"deprecation\", \"unchecked\", \"rawtypes\" })\n\tpublic String generateWordlists(Corpus co) {\n\t\tlong startTime = System.currentTimeMillis();\n\t\t// Set up weka word vector\n\t\tFastVector attributes;\n\t\tInstances dataSet;\n\t\tattributes = new FastVector();\n\n\t\tattributes.addElement(new Attribute(\"aspect_id\", (FastVector) null));\n\t\tattributes.addElement(new Attribute(\"tokens\", (FastVector) null));\n\n\t\tdataSet = new Instances(\"BeerAspects\", attributes, 0);\n\n\t\tCorpus topReviews;\n\t\tCorpus lowReviews;\n\n\t\t// Do top and low for all aspects\n\t\tfor (Aspect aspect : Aspect.values()) {\n\n\t\t\t// Only for actual aspects\n\t\t\tif (aspect.equals(Aspect.NONE) || aspect.equals(Aspect.OVERALL))\n\t\t\t\tcontinue;\n\n\t\t\ttopReviews = co.getTopReviews(aspect);\n\t\t\ttopReviews.analyze();\n\t\t\tString tokens = topReviews.getTokenConcatenation(aspect);\n\n\t\t\tInstance instance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_TOP\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\n\t\t\tlowReviews = co.getLowReviews(aspect);\n\t\t\tlowReviews.analyze();\n\t\t\ttokens = lowReviews.getTokenConcatenation(aspect);\n\t\t\t// System.out.println(tokens);\n\n\t\t\tinstance = new SparseInstance(2);\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(0), aspect.name() + \"_LOW\");\n\t\t\tinstance.setValue((Attribute) attributes.elementAt(1), tokens);\n\n\t\t\tdataSet.add(instance);\n\t\t}\n\n\t\t// System.out.println(dataSet.toString());\n\t\tInstances dataFiltered = transformToWordVector(dataSet, co.getProps());\n\n\t\t// System.out.println(dataFiltered.toString());\n\t\tString pathsToLists = writeWordlists(dataFiltered);\n\n\t\twriteArffFile(dataFiltered, this.outputDir+\"wordvector.arff\");\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\t\tSystem.out.println(\"Generated wordlists in: \" + elapsedTime / 1000 + \" s\");\n\t\treturn pathsToLists;\n\t}",
"@org.junit.Test\n public void casing()\n {\n assertEquals(\"simple\", \"Just A Test\",\n Encodings.toWordUpperCase(\"just a test\"));\n assertEquals(\"spaces\", \" Just A TeST \",\n Encodings.toWordUpperCase(\" just A teST \"));\n assertEquals(\"start\", \"Start With Lower. Case\",\n Encodings.toWordUpperCase(\"start with lower. case\"));\n assertEquals(\"word\", \"Test\", Encodings.toWordUpperCase(\"test\"));\n assertEquals(\"word\", \"Test\", Encodings.toWordUpperCase(\"Test\"));\n // Does not work on the server\n //assertEquals(\"word\", \"Faer��n\",\n //Encodings.toWordUpperCase(\"faer��n\"));\n assertEquals(\"brackets\", \"Test (Test)\",\n Encodings.toWordUpperCase(\"test (test)\"));\n assertEquals(\"empty\", \"\", Encodings.toWordUpperCase(\"\"));\n }",
"WordDtoImpl convertFromDomainImpl(Word word);",
"void addWordsToDoc(int doc,List<VocabWord> words);",
"public String toWords(int value) {\n if (value < 0) {\n throw new IllegalArgumentException(\"Only positive numbers can be converted\");\n }\n\n logger.trace(\"Converting integer {} to words\", value);\n if (NUMBER_DEFINITIONS.containsKey(value)) {\n if (logger.isTraceEnabled()) {\n logger.trace(\"number definition defined: {}\", NUMBER_DEFINITIONS.get(value));\n }\n return NUMBER_DEFINITIONS.get(value);\n } else if (isNumberInTheTens(value)) {\n return tensToWords(value);\n } else if (isNumberInTheHundreds(value)) {\n return hundredsToWords(value);\n }\n\n throw new IllegalArgumentException(\"Can only convert integers less than 1000\");\n }",
"public String numberToWords(int num) {\n String words = \"\";\n if (num == 0) {\n return \"Zero\";\n } else if (num < 100) {\n words = toLessHundred(num);\n } else if (num < 1000) {\n words = toLessThousand(num);\n } else if (num < 1000000) {\n words = toLessMillon(num);\n } else if (num < 1000000000) {\n words = toLessBillon(num);\n } else if (num < Math.pow(2, 31)) {\n words = toLessMax(num);\n }\n return words.trim();\n }",
"public TestAbestiakniveltres(String Wording,String Correct){\r\n wording=Wording;\r\n correct=Correct;\r\n\r\n }",
"@Test\n void cleanText02() {\n String responseCasing = \"CAPS\";\n String[] responseCasingClean = {\"caps\"};\n List<String> cleaned = preprocessor.cleanText(responseCasing);\n assertArrayEquals(responseCasingClean, cleaned.toArray());\n }",
"public static Words toWords(String cs){\n Words r = new Words();\n String s = \"\";\n int l = cs.length();\n int i = 0;\n char current;\n while(i<l){\n current = cs.charAt(i);\n if(!Char.isAlfaNumericPoint(current)){\n if(s.length()>0){\n r.add(s);\n s = \"\";\n }\n }\n else{\n s += current;\n }\n i++;\n }\n if(s.length()>0){\n r.add(s);\n }\n return r;\n }",
"public static void wordsToGuess(String [] myWords){\n myWords[0] = \"tesseract\";\n myWords[1] = \"vibranium\";\n myWords[2] = \"mjolnir\";\n myWords[3] = \"jarvis\";\n myWords[4] = \"avengers\";\n myWords[5] = \"wakanda\";\n myWords[6] = \"mixtape\";\n myWords[7] = \"assemble\";\n myWords[8] = \"queens\";\n myWords[9] = \"inevitable\";\n }",
"public static void main(String[] args) {\r\n int argc = args.length;\r\n\r\n // Given only the words file\r\n if(argc == 2 && args[0].charAt(0) == '-' && args[0].charAt(1) == 'i'){\r\n String fileName = args[1];\r\n int size = 1;\r\n ArrayList<String> wordList = new ArrayList<String>();\r\n\r\n // Get data from file\r\n ArrayList<String> dataList = new ArrayList<String>();\t\r\n try {\r\n File myObj = new File(fileName);\r\n Scanner myReader = new Scanner(myObj);\r\n while (myReader.hasNextLine()) {\r\n String data = myReader.nextLine(); \r\n dataList.add(data);\r\n }\r\n myReader.close();\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"An error occurred.\");\r\n e.printStackTrace();\r\n }\r\n\r\n // Get words from data \r\n for(int s = 0 ; s < dataList.size() ; s++) {\r\n String[] arrOfStr = dataList.get(s).split(\"[,\\\\;\\\\ ]\");\t// check same line words\r\n for(int i = 0 ; i < arrOfStr.length ; i++) {\r\n if(arrOfStr[i].equals(arrOfStr[i].toUpperCase())){\r\n System.out.println(\"Words not only in lowercase or mixed\");\r\n //termina o programa\r\n return;\r\n }\r\n if(!(arrOfStr[i].matches(\"[a-zA-Z]+\"))){\r\n System.out.println(\"Words have non alpha values\");\r\n //termina o programa\r\n return;\r\n }\r\n if(arrOfStr[i].length() > size) size = arrOfStr[i].length();\r\n wordList.add(arrOfStr[i].toUpperCase());\t// add words discovered and turn upper case\r\n }\r\n }\r\n if(wordList.size() > size) size = wordList.size();\r\n char[][] wordSoup = wsGen( wordList, size + 2);\r\n saveData(dataList,wordSoup);\r\n return;\r\n }\r\n\r\n // Given all args\r\n if(argc == 4 && args[0].charAt(0) == '-' && args[0].charAt(1) == 'i' && args[2].charAt(0) == '-' && args[2].charAt(1) == 's'){\r\n String fileName = args[1];\r\n int size = Integer.parseInt(args[3]);\r\n // Check max size\r\n if(size > 40){\r\n System.out.print(\"Max size 40\");\r\n return;\r\n }\r\n\r\n ArrayList<String> wordList = new ArrayList<String>();\r\n\r\n // Get data from file\r\n ArrayList<String> dataList = new ArrayList<String>();\t\r\n try {\r\n File myObj = new File(fileName);\r\n Scanner myReader = new Scanner(myObj);\r\n while (myReader.hasNextLine()) {\r\n String data = myReader.nextLine(); \r\n dataList.add(data);\r\n }\r\n myReader.close();\r\n } catch (FileNotFoundException e) {\r\n System.out.println(\"An error occurred.\");\r\n e.printStackTrace();\r\n }\r\n\r\n // Get words from data \r\n for(int s = 0 ; s < dataList.size() ; s++) {\r\n String[] arrOfStr = dataList.get(s).split(\"[,\\\\;\\\\ ]\");\t// check same line words\r\n for(int i = 0 ; i < arrOfStr.length ; i++) {\r\n if(arrOfStr[i].equals(arrOfStr[i].toUpperCase())){\r\n System.out.println(\"Words not only in lowercase or mixed\");\r\n //termina o programa\r\n return;\r\n }\r\n if(!(arrOfStr[i].matches(\"[a-zA-Z]+\"))){\r\n System.out.println(\"Words have non alpha values\");\r\n //termina o programa\r\n return;\r\n }\r\n if(arrOfStr[i].length() > size){\r\n System.out.println(\"At least one word given doesn't fit in the size provided.\");\r\n return;\r\n }\r\n wordList.add(arrOfStr[i].toUpperCase());\t// add words discovered and turn upper case\r\n }\r\n }\r\n char[][] wordSoup = wsGen( wordList, size);\r\n saveData(dataList,wordSoup);\r\n return;\r\n }\r\n // Help message\r\n System.out.println(\"usage: -i file # gives file with word soup words\");\r\n System.out.println(\" -s size # gives size for the word soup\");\r\n return;\r\n }",
"SList oddWords();",
"@Test\n public void testGetWordList() throws Exception {\n System.out.println(\"getWordList\");\n String permalink = testList.getPermalink();\n WordList expResult = null;\n WordList result = WordListApi.getWordList(token, permalink);\n\n assertNotNull(result);\n assertEquals(username, result.getUsername());\n assertEquals(token.getUserId(), result.getUserId());\n assertEquals(testListName, result.getName());\n assertEquals(testListDescription, result.getDescription());\n }",
"public static void testWordCount(Configuration conf, DataStore<String,WebPage> inStore, DataStore<String,\n TokenDatum> outStore) throws Exception {\n ((DataStoreBase<String,WebPage>)inStore).setConf(conf);\n ((DataStoreBase<String,TokenDatum>)outStore).setConf(conf);\n \n //create input\n WebPageDataCreator.createWebPageData(inStore);\n \n //run the job\n WordCount wordCount = new WordCount(conf);\n wordCount.wordCount(inStore, outStore);\n \n //assert results\n HashMap<String, Integer> actualCounts = new HashMap<>();\n for(String content : WebPageDataCreator.CONTENTS) {\n if (content != null) {\n for(String token:content.split(\" \")) {\n Integer count = actualCounts.get(token);\n if(count == null) \n count = 0;\n actualCounts.put(token, ++count);\n }\n }\n }\n for(Map.Entry<String, Integer> entry:actualCounts.entrySet()) {\n assertTokenCount(outStore, entry.getKey(), entry.getValue()); \n }\n }",
"@Test \n\tpublic void CheckConvertionsTest1() throws Exception {\n\t\t\n\t\t/** these are non-defined conversions **/\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"kilocalories\", 1.0),0.01);\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"bamba\", 1.0),0.01);\n\n\t\t/** these are defined conversions **/\n\t\tassertEquals((double)28.3495, PortionSearchEngine.CheckConvertions(\"ounce\", 1.0),0.01);\n\t\tassertEquals((double)28.3495, PortionSearchEngine.CheckConvertions(\"ounces\", 1.0),0.01);\n\t\tassertEquals((double)3.7854, PortionSearchEngine.CheckConvertions(\"gallon\", 1.0),0.01);\n\t\t\n\t\t/** these suppose to return -1 as these are trivial conversions **/\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"grams\", 1.0),0.01);\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"kilograms\", 1.0),0.01);\n\t\tassertEquals((double)-1, PortionSearchEngine.CheckConvertions(\"milligrams\", 1.0),0.01);\n\t\t\n\t\t\n\t}",
"@Test\n void step() {\n Fb2ConverterStateMachine state = new Fb2ConverterStateMachine();\n StringBuilder sb = new StringBuilder();\n WordsTokenizer wt = new WordsTokenizer(getOriginalText());\n while (wt.hasMoreTokens()) {\n String word = wt.nextToken();\n if (state.step(word)) {\n sb.append(word).append(\" \");\n }\n }\n assertEquals(\"test 1 . text- 2 text 0 text 6111 222 \", sb.toString());\n }",
"@Override\n public void replaceMoreWords(String[] fromWords, String[] toWords) {\n int randomNum;\n if (fromWords.length > 2) {\n randomNum = ThreadLocalRandom.current().nextInt(1, fromWords.length - 1);\n }\n else {\n randomNum = 0;\n }\n int index = 0;\n String[] result;\n result = new String[wordsArray.length+10000];\n if (fromWords.length>0) {\n for (int i = 0; i < wordsArray.length; i++) {\n if ((wordsArray[i].equals(fromWords[0]) && (i + fromWords.length - 1 < wordsArray.length))) {\n if (wordsArray[i + fromWords.length - 1].equals(fromWords[fromWords.length - 1]) && wordsArray[i + randomNum].equals(fromWords[randomNum])) {\n for (int j = 0; j < toWords.length; j++) {\n result[index] = toWords[j];\n index++;\n }\n i += fromWords.length - 1;\n } else {\n result[index] = wordsArray[i];\n index++;\n }\n } else {\n result[index] = wordsArray[i];\n index++;\n }\n }\n wordsArray = new String[index];\n for (int i = 0; i < result.length; i++) {\n if (result[i]!=null){\n wordsArray[i]=result[i];\n }else {\n break;\n }\n\n }\n }\n }",
"public abstract void overallWords(long ms, int n);",
"private StopWords() {\r\n\t\tPath source = Paths.get(\"./dat/zaustavne_rijeci.txt\");\r\n\t\ttry {\r\n\t\t\tbody = new String(Files.readAllBytes(source),\r\n\t\t\t\t\tStandardCharsets.UTF_8);\r\n\t\t} catch (IOException ignorable) {\r\n\t\t}\r\n\t\twords = new LinkedHashSet<>();\r\n\t\tfillSet();\r\n\t}",
"@Test\r\n public void testToBeOrNotToBe() throws IOException {\r\n System.out.println(\"testing 'To be or not to be' variations\");\r\n String[] sentences = new String[]{\r\n \"to be or not to be\", // correct sentence\r\n \"to ben or not to be\",\r\n \"ro be ot not to be\",\r\n \"to be or nod to bee\"};\r\n\r\n CorpusReader cr = new CorpusReader();\r\n ConfusionMatrixReader cmr = new ConfusionMatrixReader();\r\n SpellCorrector sc = new SpellCorrector(cr, cmr);\r\n for (String s : sentences) {\r\n String output = sc.correctPhrase(s);\r\n System.out.println(String.format(\"Input \\\"%0$s\\\" returned \\\"%1$s\\\"\", s, output));\r\n collector.checkThat(\"input sentence: \" + s + \". \", \"to be or not to be\", IsEqual.equalTo(output));\r\n }\r\n }",
"public static void numberToWords(int number) {\n if(number < 0) {\r\n System.out.println(\"Invalid Value\");\r\n }\r\n int workingNumber = 0;\r\n int reverseNumber = reverse(number);\r\n if(number == 0) {\r\n System.out.println(\"Zero\");\r\n }\r\n while(reverseNumber > 0) {\r\n int switchNumber = reverseNumber % 10;\r\n switch(switchNumber) {\r\n case 0:\r\n System.out.println(\"Zero\");\r\n break;\r\n case 1:\r\n System.out.println(\"One\");\r\n break;\r\n case 2:\r\n System.out.println(\"Two\");\r\n break;\r\n case 3:\r\n System.out.println(\"Three\");\r\n break;\r\n case 4:\r\n System.out.println(\"Four\");\r\n break;\r\n case 5:\r\n System.out.println(\"Five\");\r\n break;\r\n case 6:\r\n System.out.println(\"Six\");\r\n break;\r\n case 7:\r\n System.out.println(\"Seven\");\r\n break;\r\n case 8:\r\n System.out.println(\"Eight\");\r\n break;\r\n case 9:\r\n System.out.println(\"Nine\");\r\n break;\r\n\r\n default:\r\n System.out.println(\"OTHER\");\r\n\r\n }\r\n reverseNumber /= 10;\r\n }\r\n\r\n for(int i = getDigitCount(reverse(number)); i < getDigitCount(number); i++) {\r\n System.out.println(\"Zero\");\r\n }\r\n }",
"@Test\n\tpublic void castWordNumbersFollowedByMultipleDots() {\n\t\tString input = \"Alice has one... not two or three apples..\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"Alice has 1... not 2 or 3 apples..\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}",
"List<T> getWord();",
"private static void insertCebuanoWords1(Context context)\n {\n WordRepository.create(context,\"i\", \"ako\",2);\n WordRepository.create(context,\"you\", \"ikaw\",2);\n WordRepository.create(context,\"mine\", \"akoa\",2);\n WordRepository.create(context,\"ours\", \"kita\",2);\n WordRepository.create(context,\"there's\", \"adunay\",2);\n WordRepository.create(context,\"your's\", \"imong\",2);\n WordRepository.create(context,\"eat\", \"kaon\",2);\n WordRepository.create(context,\"sleep\", \"pagkatulog\",2);\n WordRepository.create(context,\"run\", \"pagdagan\",2);\n WordRepository.create(context,\"enter\", \"pagsulod\",2);\n WordRepository.create(context,\"in love\", \"sa gugma\",2);\n WordRepository.create(context,\"walk\", \"lakaw\",2);\n WordRepository.create(context,\"push\", \"pagduso\",2);\n WordRepository.create(context,\"old\", \"tigulang na\",2);\n WordRepository.create(context,\"generous\", \"manggihatagon\",2);\n WordRepository.create(context,\"brave\", \"maisog\",2);\n WordRepository.create(context,\"funny\", \"kataw-anan\",2);\n WordRepository.create(context,\"evil\", \"daotan\",2);\n WordRepository.create(context,\"rich\", \"dato\",2);\n WordRepository.create(context,\"poor\", \"kabus\",2);\n WordRepository.create(context,\"shy\", \"maulaw\",2);\n WordRepository.create(context,\"ugly\", \"pangit\",2);\n WordRepository.create(context,\"dirty\", \"hugaw\",2);\n WordRepository.create(context,\"clean\", \"limpyo\",2);\n WordRepository.create(context,\"handsome\", \"gwapo\",2);\n WordRepository.create(context,\"smiling\", \"nagpahiyom\",2);\n WordRepository.create(context,\"beautiful\", \"matahum\",2);\n WordRepository.create(context,\"slouch\", \"pahuway\",2);\n WordRepository.create(context,\"tense\", \"labi\",2);\n WordRepository.create(context,\"short\", \"mubo\",2);\n WordRepository.create(context,\"tall\", \"taas\",2);\n WordRepository.create(context,\"big\", \"dako\",2);\n WordRepository.create(context,\"skinny\", \"panit\",2);\n WordRepository.create(context,\"small\", \"gamay\",2);\n WordRepository.create(context,\"deep\", \"lawom\",2);\n WordRepository.create(context,\"wide\", \"sa gilapdon\",2);\n WordRepository.create(context,\"roud\", \"makusog\",2);\n WordRepository.create(context,\"straight\", \"tul-id\",2);\n WordRepository.create(context,\"spicy\", \"maanindot\",2);\n WordRepository.create(context,\"salty\", \"asin\",2);\n WordRepository.create(context,\"sweet\", \"matam-is\",2);\n WordRepository.create(context,\"bitter\", \"pait\",2);\n WordRepository.create(context,\"harug\", \"harug\",2);\n WordRepository.create(context,\"cold\", \"kabugnaw\",2);\n WordRepository.create(context,\"hot\", \"init\",2);\n WordRepository.create(context,\"soft\", \"humok\",2);\n WordRepository.create(context,\"hard\", \"lisud\",2);\n WordRepository.create(context,\"dry\", \"uga nga\",2);\n WordRepository.create(context,\"smooth\", \"hamis nga\",2);\n WordRepository.create(context,\"rought\", \"gihunahuna\",2);\n WordRepository.create(context,\"wet\", \"basa\",2);\n WordRepository.create(context,\"silent\", \"hilom\",2);\n WordRepository.create(context,\"loud\", \"kusog\",2);\n WordRepository.create(context,\"noisy\", \"lanog\",2);\n WordRepository.create(context,\"awful\", \"makalilisang\",2);\n WordRepository.create(context,\"tingog\", \"kinabuhi\",2);\n WordRepository.create(context,\"whisper\", \"paghunghong\",2);\n WordRepository.create(context,\"few\", \"diyutay\",2);\n WordRepository.create(context,\"some\", \"pipila\",2);\n WordRepository.create(context,\"multiple\", \"daghang\",2);\n WordRepository.create(context,\"plenty\", \"daghan\",2);\n WordRepository.create(context,\"many\", \"daghan\",2);\n WordRepository.create(context,\"one\", \"sa usa ka\",2);\n WordRepository.create(context,\"several\", \"ubay-ubay\",2);\n WordRepository.create(context,\"each\", \"matag usa\",2);\n WordRepository.create(context,\"all\", \"tanan\",2);\n WordRepository.create(context,\"nasty\", \"dili maayo\",2);\n WordRepository.create(context,\"waiting\", \"naghulat\",2);\n WordRepository.create(context,\"horrible\", \"makalilisang\",2);\n WordRepository.create(context,\"artisimple\", \"artipisyal\",2);\n WordRepository.create(context,\"doubtfully\", \"pagduhaduha\",2);\n WordRepository.create(context,\"rainy\", \"ulan,\",2);\n WordRepository.create(context,\"dangerous\", \"delikado\",2);\n WordRepository.create(context,\"angry\", \"nasuko\",2);\n WordRepository.create(context,\"hurt\", \"nasakitan\",2);\n WordRepository.create(context,\"selfish\", \"hakog\",2);\n WordRepository.create(context,\"scary\", \"makahadlok\",2);\n WordRepository.create(context,\"confused\", \"naglibog\",2);\n WordRepository.create(context,\"tired\", \"gikapoy\",2);\n WordRepository.create(context,\"embarass\", \"panghimaraot\",2);\n WordRepository.create(context,\"afraid\", \"nahadlok\",2);\n WordRepository.create(context,\"lazy\", \"tapolan\",2);\n }",
"@Test\n // Test that the preprocessor removes the relevant stop words\n void removeStopWords01() {\n List<String> stop_words = new ArrayList<>();\n List<String> words = new ArrayList<>(stop_words);\n words.add(\"vigtig\");\n assertEquals(\"vigtig\", preprocessor.removeStopWords(words).get(0));\n }",
"private static String toStartCase(String words) {\n String[] tokens = words.split(\"\\\\s+\");\n StringBuilder builder = new StringBuilder();\n for (String token : tokens) {\n builder.append(capitaliseSingleWord(token)).append(\" \");\n }\n return builder.toString().stripTrailing();\n }",
"@Test\n\tpublic void testValidWord() {\n\t\tAssert.assertTrue(new DictionaryImpl().isValidWord(\"set\"));\n\t}",
"private double checkWordsFromList(List<String> list, String review, int nonStopWordsFromReview) {\n int contor = 0;\n for (String l : list) {\n if (l.endsWith(\"*\")) {\n l = l.substring(0,l.length()-1);\n boolean contains = review.matches(\".*\\\\b\" + l + \".*\");\n if (contains) {\n contor ++;\n }\n } else {\n boolean contains = review.matches(\".*\\\\b\" + l + \"\\\\b.*\");\n if (contains) {\n contor ++;\n }\n }\n }\n double result = 0;\n //System.out.println(\"In review se gasesc \" + contor + \" cuvinte din lista\");\n result = (double)(100*contor)/nonStopWordsFromReview;\n\n DecimalFormat newFormat = new DecimalFormat(\"#.###\");\n double threeDecimal = Double.valueOf(newFormat.format(result));\n\n return threeDecimal;\n }",
"public String normalize(String word);",
"java.lang.String getWord();",
"@Test\n public void testSanitizeText() {\n assertEquals(text.length() - 9, WordUtil.sanitizeText(text).length());\n }",
"@RequestMapping(value = \"/word/\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)\r\n public ResponseEntity<Void> createWord(@RequestBody Word word, UriComponentsBuilder ucBuilder) {\r\n System.out.println(\"Creating Word \" + word.getWordInEnglish());\r\n \r\n if (WordService.isWordExist(word)) {\r\n System.out.println(\"A Word with name \" + word.getWordInEnglish() + \" already exist\");\r\n return new ResponseEntity<Void>(HttpStatus.CONFLICT);\r\n }\r\n \r\n WordService.saveWord(word);\r\n \r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setLocation(ucBuilder.path(\"/word/{language}\").buildAndExpand(word.getWordInEnglish()).toUri());\r\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\r\n }",
"private void displayWords() {\r\n\t\tList<String> words = results.getSortedResults();\r\n\t\tif (words.size() == 0) {\r\n\t\t\tSystem.out.println(\"NO results to display.\");\r\n\t\t} else {\r\n\t\t\tfor (String word : words) {\r\n\t\t\t\tSystem.out.println(word);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void splitWord(String wordField) {\n wordsArray = new String[wordField.length()];\n wordsArray = wordField.split(\", *\");\n System.out.println(\"chk1: wordsArray: \" + Arrays.toString(wordsArray));\n //wordMap(words);\n for (int i = 0; i < wordsArray.length; i++) {\n wordsArray[i] = wordsArray[i].toUpperCase();\n wordMap.put(\"word\" + i, new Word(wordsArray[i]));//convert each word to upperCase and add it to wordMap\n }\n\n }",
"@Test\n\tpublic void stringIsUnmodifiedIfNoWordNumbersAreFound() {\n\t\tString input = \"I have 3 apples and 2 bananas.\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"I have 3 apples and 2 bananas.\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}",
"int totalWords();",
"public void listCorrectWords() {\r\n\t\tif (readDocumentNoDuplicates != null) {\r\n\t\t\t// Add all of the words from the read document that are also in the dictionary to the\r\n\t\t\t// correctWords collection.\r\n\t\t\tcorrectWords = readDocumentNoDuplicates.intersection(dictionary);\r\n\t\r\n\t\t\tif (correctWords.size() > 0) {\r\n\t\t\t\t// List correct words from the read document.\r\n\t\t\t\tSystem.out.println(\"Correctly spelled words:\");\r\n\t\t\t\tObject[] correctWordsArray = correctWords.toArray();\r\n\t\t\t\tfor (int i = 0; i < correctWordsArray.length; i++) {\r\n\t\t\t\t\tSystem.out.println(correctWordsArray[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"There were no correctly spelled words.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"You have not read in a document to be spell checked. Please indicate file name\"\r\n\t\t\t\t\t+ \" before using this feature.\");\r\n\t\t}\r\n\t}",
"@Override\n public int getNumberOfWords() {\n return 0;\n }",
"public void setNumberOfWords(long numberOfWords) {\n this.numberOfWords = numberOfWords;\n }",
"private void updateWordsDisplayed() {\n \t\tcurrFirstLetters.remove(wordsList[wordsDisplayed[currWordIndex]].charAt(0));\n \t\twhile (currFirstLetters.contains(wordsList[nextWordIndex].charAt(0))) {\n \t\t\tnextWordIndex++;\n \t\t\tif (nextWordIndex >= wordsList.length) {\n \t\t\t\tnextWordIndex = 0;\n \t\t\t}\n \t\t}\n \t\tcurrFirstLetters.add(wordsList[nextWordIndex].charAt(0));\n \t\twordsDisplayed[currWordIndex] = nextWordIndex;\n \t\tnextWordIndex++;\n \t\tif (nextWordIndex >= wordsList.length) {\n \t\t\tnextWordIndex = 0;\n \t\t}\n \t\tsetChanged();\n \t\tnotifyObservers(States.update.FINISHED_WORD);\n \t}",
"public List<? extends HasWord> defaultTestSentence()\n/* */ {\n/* 472 */ return Sentence.toSentence(new String[] { \"w\", \"lm\", \"tfd\", \"mElwmAt\", \"En\", \"ADrAr\", \"Aw\", \"DHAyA\", \"HtY\", \"AlAn\", \".\" });\n/* */ }",
"public void getWord() {\n\t\t\n\t}",
"WordCounter(){\r\n }",
"public interface IWord2Spell {\r\n String word2spell();\r\n}",
"private void setWords() {\r\n words = new ArrayList<>();\r\n\r\n String line = null;\r\n try {\r\n // FileReader reads text files in the default encoding.\r\n FileReader fileReader = new FileReader(\"words.txt\");\r\n\r\n // Always wrap FileReader in BufferedReader.\r\n BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n\r\n while((line = bufferedReader.readLine()) != null)\r\n words.add(line);\r\n\r\n // Always close files.\r\n bufferedReader.close();\r\n }\r\n catch(Exception ex) {\r\n ex.printStackTrace();\r\n System.out.println(\"Unable to open file '\");\r\n }\r\n }",
"public boolean check(String s, int start, Map<String, Integer> words, int wn, int wl) {\n words = new HashMap<>(words);\n for(int i=0; i<wn; i++) {\n String cur = s.substring(start + i*wl, start + i*wl + wl);\n if(!words.containsKey(cur) || words.get(cur) <= 0) return false;\n words.put(cur, words.get(cur) - 1);\n }\n return true;\n }",
"public static String[] validateAllWords(char[][] boggleBoardChars, int lang) throws FileNotFoundException { \r\n\t\t// load dictionary\r\n\t\tFile wordList = null;\r\n\t\tif(lang == 0) {\r\n\t\t\twordList = new File(dictionaryEng);\r\n\t\t} else if(lang==1) {\r\n\t\t\twordList = new File(dictionarySpan);\r\n\t\t}\r\n\t\tScanner scan = new Scanner(wordList);\r\n\t\t// create trie to store dictionary words for later lookup and insert words\r\n\t\tTrie trie = new Trie(); \r\n\r\n\t\twhile(scan.hasNextLine()) {\r\n\t\t\ttrie.insert(scan.nextLine()); \r\n\t\t}\r\n\t\t//\r\n\t\tfindWords(boggleBoardChars, trie ,allValidWords);\r\n\t\t\r\n\t\t//close scanner and return\r\n\t\tscan.close();\r\n\t\treturn allValidWords;\r\n\t}",
"@RepeatedTest(20)\n void transformtoTStringTest(){\n assertEquals(st.transformtoString(),new TString(hello));\n assertEquals(bot.transformtoString(),new TString(bot.toString()));\n assertEquals(bof.transformtoString(),new TString(bof.toString()));\n assertEquals(f.transformtoString(),new TString(f.toString()));\n assertEquals(i.transformtoString(),new TString(i.toString()));\n assertEquals(bi.transformtoString(),new TString(bi.toString()));\n assertEquals(Null.transformtoString(), Null);\n }",
"public Iterable<String> getAllValidWords(BoggleBoard board) {\n int rows = board.rows();\n int cols = board.cols();\n ArrayList<String> all = new ArrayList<String>();\n // 1. enumerate all strings that can be composed by adj dice\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++)\n depthFirstSearch(board, i, j, all);\n }\n\n // 2. for each string, check the longest prefix\n // 2. store the word\n wordsSoFar = all;\n return wordsSoFar;\n }",
"private static String convert(String word) {\n\n char[] charArray = word.toCharArray();\n\n for (int letter = 0; letter < word.length(); letter++) {\n // Finding the first letter of a word.\n if (letter == 0 && charArray[letter] != ' ' || charArray[letter] != ' ' && charArray[letter - 1] == ' ') {\n // Checking if the first letter is lower case.\n if (charArray[letter] >= 'a' && charArray[letter] <= 'z') {\n // Converting first letter to upper case\n charArray[letter] = (char)(charArray[letter] - 'a' + 'A');\n }\n }\n // Checking if the letters other than the first letter are capital\n else if (charArray[letter] >= 'A' && charArray[letter] <= 'Z')\n // Converting uppercase other letters to lower case.\n charArray[letter] = (char)(charArray[letter] + 'a' - 'A');\n }\n // Returning a Title cased String.\n return new String(charArray);\n }",
"public void countWord() {\n\t\tiniStorage();\n\t\tWordTokenizer token = new WordTokenizer(\"models/jvnsensegmenter\",\n\t\t\t\t\"data\", true);\n\t\t// String example =\n\t\t// \"Nếu bạn đang tìm kiếm một chiếc điện thoại Android? Đây là, những smartphone đáng để bạn cân nhắc nhất. Thử linh tinh!\";\n\t\t// token.setString(example);\n\t\t// System.out.println(token.getString());\n\n\t\tSet<Map.Entry<String, String>> crawlData = getCrawlData().entrySet();\n\t\tIterator<Map.Entry<String, String>> i = crawlData.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry<String, String> pageContent = i.next();\n\t\t\tSystem.out.println(pageContent.getKey());\n\t\t\tPageData pageData = gson.fromJson(pageContent.getValue(),\n\t\t\t\t\tPageData.class);\n\t\t\ttoken.setString(pageData.getContent().toUpperCase());\n\t\t\tString wordSegment = token.getString();\n\t\t\tString[] listWord = wordSegment.split(\" \");\n\t\t\tfor (String word : listWord) {\n\t\t\t\taddToDictionary(word, 1);\n\t\t\t\tDate date;\n\t\t\t\ttry {\n\t\t\t\t\tdate = simpleDateFormat.parse(pageData.getTime().substring(\n\t\t\t\t\t\t\t0, 10));\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\taddToStatByDay(date, word, 1);\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.6488201",
"0.6475178",
"0.6226965",
"0.6216077",
"0.61997336",
"0.61759675",
"0.61486846",
"0.61356735",
"0.61349416",
"0.60931903",
"0.60741633",
"0.6044978",
"0.60448617",
"0.60248905",
"0.60089624",
"0.5981732",
"0.5965154",
"0.58585256",
"0.58361506",
"0.5816381",
"0.5805045",
"0.57642156",
"0.5741353",
"0.57339597",
"0.5731721",
"0.57094646",
"0.5709437",
"0.5704786",
"0.56704885",
"0.5653029",
"0.5569109",
"0.5545862",
"0.55254453",
"0.55242616",
"0.5492283",
"0.54749054",
"0.547345",
"0.54471725",
"0.544266",
"0.5439658",
"0.5371047",
"0.5362374",
"0.53559554",
"0.5330119",
"0.53286374",
"0.53277284",
"0.5324026",
"0.52987576",
"0.5289028",
"0.52824914",
"0.5281748",
"0.5279692",
"0.5271088",
"0.52666754",
"0.5264713",
"0.5258517",
"0.52563936",
"0.5254667",
"0.52541536",
"0.5229235",
"0.5224913",
"0.5219165",
"0.52001476",
"0.51933956",
"0.5190512",
"0.51762426",
"0.51734674",
"0.51699376",
"0.51692146",
"0.5168104",
"0.51539487",
"0.512742",
"0.5117045",
"0.51085126",
"0.5092434",
"0.5086647",
"0.5082253",
"0.50801665",
"0.50767636",
"0.50632286",
"0.50570244",
"0.5053448",
"0.50530094",
"0.5049946",
"0.5047227",
"0.50466985",
"0.50433624",
"0.50428796",
"0.50372225",
"0.5036634",
"0.50196946",
"0.5016683",
"0.5016452",
"0.5010054",
"0.5009359",
"0.50030965",
"0.5001356",
"0.49997428",
"0.49972865",
"0.49960837"
] | 0.88537055 | 0 |
Test of convertToLines method, of class WoordenController. | @Test
public void testConvertToLines()
{
System.out.println("convertToLines");
WoordenController instance = new WoordenController();
String[] expResult =
{
"een twee drie vier", "hoedje van hoedje van", "een twee drie vier", "hoedje van papier"
};
String[] result = instance.convertToLines();
assertArrayEquals(expResult, result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testConvertToWords()\n {\n System.out.println(\"convertToWords\");\n WoordenController instance = new WoordenController();\n String[] expResult =\n {\n \"een\", \"twee\", \"drie\", \"vier\", \"hoedje\", \"van\", \"hoedje\", \"van\", \"een\", \"twee\", \"drie\", \"vier\",\n \"hoedje\", \"van\", \"papier\"\n };\n String[] result = instance.convertToWords();\n assertArrayEquals(expResult, result);\n }",
"@Test\n public void testParserLineas() throws Exception {\n //Obtenemos el InputStream para el json almacenado en la carpeta raw del proyecto\n InputStream is = InstrumentationRegistry.getTargetContext().getResources().openRawResource(R.raw.lineas_test);\n\n List<Linea> listaLineas = ParserJSON.readArrayLineasBus(is);\n\n Assert.assertEquals(listaLineas.get(0).getNumero(),\"20\");\n Assert.assertEquals(listaLineas.get(0).getName(),\"ESTACIONES-BARRIO LA TORRE\");\n Assert.assertEquals(listaLineas.get(0).getIdentifier(),20);\n\n Assert.assertEquals(listaLineas.get(1).getNumero(),\"19\");\n Assert.assertEquals(listaLineas.get(1).getName(),\"ESTACIONES-RICARDO L. ARANDA\");\n Assert.assertEquals(listaLineas.get(1).getIdentifier(),19);\n\n }",
"public Line voToLine() {\n Line line = new Line();\n if (this.getLineId() != null) {\n line.setLineId(this.getLineId());\n }\n line.setAppmodelId(this.getAppmodelId());\n line.setDriverName(this.getDriverName());\n line.setDriverPhone(this.getDriverPhone());\n line.setLineName(this.getLineName());\n line.setProvinceId(this.provinceId);\n line.setCityId(this.cityId);\n line.setAreaId(this.areaId);\n return line;\n }",
"List<Line> getLines();",
"private <T extends Object> void appendAsSeparatedLines(final StringBuilder sb, final List<T> lines, final Function<T, String> stringConverter, final boolean separateConvertedStrings) {\n boolean _isEmpty = lines.isEmpty();\n if (_isEmpty) {\n return;\n }\n if (((sb.length() > 0) && (!sb.toString().endsWith(\"\\n\\n\")))) {\n boolean _endsWith = sb.toString().endsWith(\"\\n\");\n if (_endsWith) {\n sb.append(\"\\n\");\n } else {\n sb.append(\"\\n\\n\");\n }\n }\n String _xifexpression = null;\n if (separateConvertedStrings) {\n _xifexpression = \"\\n\\n\";\n } else {\n _xifexpression = \"\\n\";\n }\n final String stringSeparator = _xifexpression;\n final Function1<T, String> _function = (T it) -> {\n return stringConverter.apply(it);\n };\n final String stringLines = IterableExtensions.join(ListExtensions.<T, String>map(lines, _function), stringSeparator);\n sb.append(stringLines);\n }",
"public void Converter(String lines, StringBuilder cLines)\r\n {\r\n if(Character.isDigit(cLines.charAt(0)))//seperate if for the character at the 0 position\r\n {\r\n switch(cLines.charAt(0))\r\n {\r\n case '0': cLines.replace(0,1,\"Zero\"); //sets the first character to the correct string and uppercases the first letter\r\n break;\r\n case '1': cLines.replace(0,1,\"One\");\r\n break;\r\n case '2': cLines.replace(0,1,\"Two\");\r\n break;\r\n case '3': cLines.replace(0,1,\"Three\");\r\n break;\r\n case '4': cLines.replace(0,1,\"Four\");\r\n break;\r\n case '5': cLines.replace(0,1,\"Five\");\r\n break;\r\n case '6': cLines.replace(0,1,\"Six\");\r\n break;\r\n case '7': cLines.replace(0,1,\"Seven\");\r\n break;\r\n case '8': cLines.replace(0,1,\"Eight\");\r\n break;\r\n case '9': cLines.replace(0,1,\"Nine\");\r\n break;\r\n \r\n \r\n }\r\n \r\n \r\n }\r\n \r\n for(int i = 1 ; i < lines.length() ; i++)// this for is used to check the remaining characters after the first character\r\n {\r\n if(Character.isDigit(cLines.charAt(i)))\r\n { \r\n if(Character.isSpaceChar(cLines.charAt(i+1))&& Character.isSpaceChar(cLines.charAt(i-1)))//if statement to make sure its not a double digit\r\n {\r\n switch(cLines.charAt(i))\r\n {\r\n case '0': cLines.replace(i,i+1,\"zero\");//statements for switch to change digits to strings lowercase\r\n break;\r\n case '1': cLines.replace(i,i+1,\"one\");\r\n break;\r\n case '2': cLines.replace(i,i+1,\"two\");\r\n break;\r\n case '3': cLines.replace(i,i+1,\"three\");\r\n break;\r\n case '4': cLines.replace(i,i+1,\"four\");\r\n break;\r\n case '5': cLines.replace(i,i+1,\"five\");\r\n break;\r\n case '6': cLines.replace(i,i+1,\"six\");\r\n break;\r\n case '7': cLines.replace(i,i+1,\"seven\");\r\n break;\r\n case '8': cLines.replace(i,i+1,\"eight\");\r\n break;\r\n case '9': cLines.replace(i,i+1,\"nine\");\r\n break;\r\n \r\n \r\n }\r\n }\r\n }\r\n } \r\n \r\n stbrLines = cLines;\r\n stringLines = lines;\r\n }",
"@Test\n public void testLineExport(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecCommandStack.push(VecCommandFactory.GetShapeCommand(VecCommandType.LINE, fakeCoord));\n String print = VecCommandStack.peek().PrintToFile();\n assertEquals(\"LINE 0.1 0.2 \\n\", print);\n }",
"@Test\n public void testCSesionAgregarLiena6() throws Exception {\n System.out.println(\"testCSesionAgregarLiena 2 lineas iguales\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n instance.agregaLinea(1, 2);\n }",
"@Test\r\npublic void separadorNuevaLinea() {\r\n try {\r\n assertEquals(Calculadora.add(\"2,4\\n6\"), 12);\r\n assertEquals(Calculadora.add(\"2\\n4,6\"), 12);\r\n assertEquals(Calculadora.add(\"2\\n4\\n6\"), 12);\r\n assertEquals(Calculadora.add(\"2\\n4\"), 6);\r\n assertEquals(Calculadora.add(\"2\\n4\\n6\\n8\\n10\"), 30);\r\n assertEquals(Calculadora.add(\"2\\n4\\n6\\n8\\n10,12\"), 42);\r\n } catch (Exception ex) {\r\n fail(\"Error probando la calculadora con separador(es) de nueva línea\");\r\n }\r\n}",
"@Test\n\tpublic void findAllOrderLines() {\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllOrderLines \n\t\tInteger startResult = 0;\n\t\tInteger maxRows = 0;\n\t\tList<OrderLine> response = null;\n\t\tresponse = service.findAllOrderLines(startResult, maxRows);\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllOrderLines\n\t}",
"private static void convertLeadLines(String... params) {\n // Set menu for the new Opportunity creation\n if (params.length == 0) {\n setMenuLines(\"\", 1, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21);\n setMenuLines(HIGHLIGHT_COLOR + \"Create New Opportunity\" + HIGHLIGHT_COLOR, 4);\n setMenuLines(\"Product: \", 6);\n setMenuLines(\"Quantity: \", 8);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert Product type [HYBRID, FLATBED or BOX]: \" + HIGHLIGHT_COLOR, 20);\n // Update the menu for the lead conversion\n } else if (params.length == 2) {\n switch (params[0].toLowerCase()) {\n case \"product\":\n setMenuLines(getMenuLine(6) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 6);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert Quantity: \" + HIGHLIGHT_COLOR, 20);\n break;\n case \"industry\":\n setMenuLines(getMenuLine(6) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 6);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert Employee Count: \" + HIGHLIGHT_COLOR, 20);\n break;\n case \"employees\":\n setMenuLines(getMenuLine(8) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 8);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert City: \" + HIGHLIGHT_COLOR, 20);\n break;\n case \"city\":\n setMenuLines(getMenuLine(10) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 10);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert Country: \" + HIGHLIGHT_COLOR, 20);\n break;\n case \"country\":\n setMenuLines(getMenuLine(12) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 12);\n setMenuLines(HIGHLIGHT_COLOR + \"ENTER \" + ANSI_RESET + \"- delete Lead and create Contact, Opportunity and Account | \" +\n HIGHLIGHT_COLOR + \"back \" + ANSI_RESET + \"- cancel Lead conversion\", 20);\n break;\n }\n } else if (params.length == 3 && params[0].toLowerCase().equals(\"quantity and contact\")) {\n setMenuLines(getMenuLine(8) + INSERT_HIGHLIGHT_COLOR + params[1] + ANSI_RESET, 8);\n setMenuLines(\"Contact Name: \" + INSERT_HIGHLIGHT_COLOR + params[2] + ANSI_RESET, 10);\n setMenuLines(\"Status: \" + INSERT_HIGHLIGHT_COLOR + Status.OPEN + ANSI_RESET, 12);\n setMenuLines(HIGHLIGHT_COLOR + \"ENTER \" + ANSI_RESET + \"- confirm Opportunity information | \" + HIGHLIGHT_COLOR + \"back \" + ANSI_RESET + \"- return to the main menu\", 20);\n //Set menu for the new Account creation\n } else if (params.length == 1 && params[0].toLowerCase().equals(\"account\")) {\n setMenuLines(\"\", 1, 7, 9, 11, 13, 14, 15, 16, 17, 18, 19, 21);\n setMenuLines(HIGHLIGHT_COLOR + \"Create New Account\" + HIGHLIGHT_COLOR, 4);\n setMenuLines(\"Industry: \", 6);\n setMenuLines(\"Number of Employees: \", 8);\n setMenuLines(\"City: \", 10);\n setMenuLines(\"Country: \", 12);\n setMenuLines(HIGHLIGHT_COLOR + \"Insert Industry [PRODUCE, ECOMMERCE, MANUFACTURING, MEDICAL, or OTHER]: \" + HIGHLIGHT_COLOR, 20);\n }\n }",
"@Test\n public void testGetChatLines() {\n System.out.println(\"getChatLines\");\n ChatLog instance = new ChatLog();\n ArrayList<String> expResult = new ArrayList<String>();\n ArrayList<String> result = instance.getChatLines();\n assertEquals(expResult, result);\n }",
"@Test\n\tpublic void loadOrderLines() {\n\t\tSet<OrderLine> response = null;\n\t\tresponse = service.loadOrderLines();\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: loadOrderLines\n\t}",
"public void createMoveAbles(List<String> lines){\n int regelNr = 0;\n int aantalSpelers = Integer.parseInt(lines.get(regelNr));\n while(regelNr<aantalSpelers){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n this.sp = new Speler(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n\n regelNr += (2);\n int aantalDozen = Integer.parseInt(lines.get(regelNr));\n while(regelNr<(aantalSpelers+aantalDozen+2)){\n String[] crds = lines.get(regelNr+1).split(\",\");\n int xCoord = Integer.parseInt(crds[0]);\n int yCoord = Integer.parseInt(crds[1]);\n new Doos(new Coordinaat(xCoord,yCoord),this);\n regelNr++;\n }\n }",
"public List<ConvertedLine> convert(final String line) {\n if (line.length() > 400) {\n return null;\n }\n\n Matcher match = linePattern.matcher(line);\n\n if (match.matches()) {\n String file = null;\n int lineno = -1;\n\n if (fileGroup >= 0) {\n file = match.group(fileGroup);\n // Make some adjustments - easier to do here than in the regular expression\n // (See 109721 and 109724 for example)\n if (file.startsWith(\"\\\"\")) { // NOI18N\n file = file.substring(1);\n }\n if (file.startsWith(\"./\")) { // NOI18N\n file = file.substring(2);\n }\n if (filePattern != null && !filePattern.matcher(file).matches()) {\n return null;\n }\n }\n\n if (lineGroup >= 0) {\n String linenoStr = match.group(lineGroup);\n\n try {\n lineno = Integer.parseInt(linenoStr);\n } catch (NumberFormatException nfe) {\n LOGGER.log(Level.INFO, null, nfe);\n lineno = 0;\n }\n }\n\n return Collections.<ConvertedLine>singletonList(\n ConvertedLine.forText(line,\n new FileListener(file, lineno, locator, handler)));\n }\n\n return null;\n }",
"private List<List<positionTicTacToe>> initializeWinningLines()\n\t{\n\t\tList<List<positionTicTacToe>> winningLines = new ArrayList<List<positionTicTacToe>>();\n\t\t\n\t\t//48 straight winning lines\n\t\t//z axis winning lines\n\t\tfor(int i = 0; i<4; i++)\n\t\t\tfor(int j = 0; j<4;j++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,0,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,j,3,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//y axis winning lines\n\t\tfor(int i = 0; i<4; i++)\n\t\t\tfor(int j = 0; j<4;j++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,0,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,1,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,2,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,3,j,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//x axis winning lines\n\t\tfor(int i = 0; i<4; i++)\n\t\t\tfor(int j = 0; j<4;j++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,i,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,i,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,i,j,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,i,j,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t\n\t\t//12 main diagonal winning lines\n\t\t//xz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,i,0,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,i,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,i,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,i,3,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//yz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,0,0,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,1,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,2,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,3,3,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//xy plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,0,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,1,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,2,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,3,i,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t\n\t\t//12 anti diagonal winning lines\n\t\t//xz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,i,3,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,i,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,i,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,i,0,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//yz plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,0,3,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,1,2,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,2,1,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(i,3,0,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t//xy plane-4\n\t\tfor(int i = 0; i<4; i++)\n\t\t\t{\n\t\t\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(0,3,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(1,2,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(2,1,i,-1));\n\t\t\t\toneWinCondtion.add(new positionTicTacToe(3,0,i,-1));\n\t\t\t\twinningLines.add(oneWinCondtion);\n\t\t\t}\n\t\t\n\t\t//4 additional diagonal winning lines\n\t\tList<positionTicTacToe> oneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(0,0,0,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,1,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,2,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(3,3,3,-1));\n\t\twinningLines.add(oneWinCondtion);\n\t\t\n\t\toneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(0,0,3,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,1,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,2,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(3,3,0,-1));\n\t\twinningLines.add(oneWinCondtion);\n\t\t\n\t\toneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(3,0,0,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,1,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,2,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(0,3,3,-1));\n\t\twinningLines.add(oneWinCondtion);\n\t\t\n\t\toneWinCondtion = new ArrayList<positionTicTacToe>();\n\t\toneWinCondtion.add(new positionTicTacToe(0,3,0,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(1,2,1,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(2,1,2,-1));\n\t\toneWinCondtion.add(new positionTicTacToe(3,0,3,-1));\n\t\twinningLines.add(oneWinCondtion);\t\n\t\t\n\t\treturn winningLines;\n\t\t\n\t}",
"public void tetraederzeichnen(double ax,double ay,double bx,double by,double cx,double cy,double dx,double dy){\n double[][] arr_koordinaten_2d ={{ax,ay},{bx,by},{cx,cy},{dx,dy}};\n /**\n * Aufruf der Methode gestricheltodernicht\n *\n * Überprüft, welche Strecken von Punkt D sichtbar sind oder nicht.\n */\n\n boolean[] strichelnodernicht = cls_berechnen.gestricheltodernicht(arr_koordinaten_2d);\n\n /**Skaliert die Koordinaten zum Pixelformat mit Koordinatenursprung\n * ca in der Mitte der Zeichenfläche*/\n int sw=9; //skalierungswert\n ax= (sw+ax)*50;\n ay=(sw-ay)*50;\n bx= (sw+bx)*50;\n by=(sw-by)*50;\n cx= (sw+cx)*50;\n cy=(sw-cy)*50;\n dx= (sw+dx)*50;\n dy=(sw-dy)*50;\n\n /**\n * Erstellt Linienobjekte für die Kanten des Tetraeder Objekts...\n */\n Line line1 = new Line();\n Line line2 = new Line();\n Line line3 = new Line();\n Line line4 = new Line();\n Line line5 = new Line();\n Line line6 = new Line();\n\n /**\n * ... weißt ihnen die Koordinaten zu...\n */\n line1.setStartX(ax);\n line1.setStartY(ay);\n line1.setEndX(bx);\n line1.setEndY(by);\n\n line2.setStartX(ax);\n line2.setStartY(ay);\n line2.setEndX(cx);\n line2.setEndY(cy);\n\n line3.setStartX(bx);\n line3.setStartY(by);\n line3.setEndX(cx);\n line3.setEndY(cy);\n \n line4.setStartX(dx);\n line4.setStartY(dy);\n line4.setEndX(ax);\n line4.setEndY(ay);\n\n line5.setStartX(dx);\n line5.setStartY(dy);\n line5.setEndX(bx);\n line5.setEndY(by);\n\n line6.setStartX(dx);\n line6.setStartY(dy);\n line6.setEndX(cx);\n line6.setEndY(cy);\n \n if(!strichelnodernicht[0]){\n line4.getStrokeDashArray().addAll(5d,5d);}\n\n if(!strichelnodernicht[1]){\n line5.getStrokeDashArray().addAll(5d,5d);}\n\n if(!strichelnodernicht[2]){\n line6.getStrokeDashArray().addAll(5d,5d);}\n\n /**\n * ... und fügt die Linien Objekte der Zeichenfläche hinzu\n */\n canvaspane.getChildren().add(line1);\n canvaspane.getChildren().add(line2);\n canvaspane.getChildren().add(line3);\n canvaspane.getChildren().add(line4);\n canvaspane.getChildren().add(line5);\n canvaspane.getChildren().add(line6);\n\n //zeichnet den Koordinatenursprung neu\n canvaspane.getChildren().add(l1);\n canvaspane.getChildren().add(l2);\n }",
"private void writeTestLines() {\n for (String L : testLines) {\n pages.write(L);\n }\n }",
"private void printLines() {\n for (String L: testLines) {\n print.write(L);\n }\n }",
"@PostMapping(\"/invoice-lines\")\n public ResponseEntity<InvoiceLinesDTO> createInvoiceLines(@Valid @RequestBody InvoiceLinesDTO invoiceLinesDTO) throws URISyntaxException {\n log.debug(\"REST request to save InvoiceLines : {}\", invoiceLinesDTO);\n if (invoiceLinesDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new invoiceLines cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n InvoiceLinesDTO result = invoiceLinesService.save(invoiceLinesDTO);\n return ResponseEntity.created(new URI(\"/api/invoice-lines/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"private ListStore<Line> createLines() {\n\t\tStyleInjectorHelper.ensureInjected(CommonGanttResources.resources.css(), true);\n\n\t\tLineProperties lineProps = GWT.create(LineProperties.class);\n\t\tListStore<Line> store = new ListStore<Line>(lineProps.key());\n\t\tString customCssStyle = CommonGanttResources.resources.css().todayLineMain();\n\t\tLine line = new Line(new Date(), \"Текушая дата :\" + new Date().toString(), customCssStyle);\n\t\tstore.add(line);\n\t\treturn store;\n\t}",
"public static void writeLine(Model model, int x1, int y1, int x2, int y2, char colour) {\n int xLength = model.getWidth();\n int yLength = model.getHeight();\n\n if (x1 > xLength || x2 > xLength || y1 > yLength || y2 > yLength) {\n System.out.println(String.format(\"Couldn't create line inside current simpleCanvas width: %d, height: %d\", xLength, yLength));\n return;\n }\n\n // Simple optimization if the line are orthogonal x or y.\n if (x1 == x2 || y1 == y2) {\n for (int i = Math.min(x1, x2); i <= Math.max(x1, x2); i++)\n for (int j = Math.min(y1, y2); j <= Math.max(y1, y2); j++)\n model.set(i, j, colour);\n } else {\n // try to draw line from left to write\n // To do this we should find min x coordinate\n int startx, starty, endx, endy;\n if (x1 < x2) {\n startx = x1;\n starty = y1;\n endx = x2;\n endy = y2;\n } else {\n startx = x2;\n starty = y2;\n endx = x1;\n endy = y1;\n }\n\n model.set(startx, starty, colour);\n model.set(endx, endy, colour);\n\n if (y1 < y2) {\n // Find line equation of the line\n // (y - y1)/(y2-y1) = (x - x1)/(x2 - x1)\n // y - y1 = (x - x1)(y2-y1)/(x2 - x1)\n // y = y1 + (x - x1)(y2-y1)/(x2 - x1)\n int newX = startx;\n int newY = starty;\n while (newX < endx && newY <= endy) {\n //TODO optimize coefficient\n double newYcompare = findY(newX + 1, startx, starty, endx, endy);\n\n if (newYcompare == newY + 1) {\n newY++;\n newX++;\n model.set(newX, newY, colour);\n model.set(newX, newY - 1, colour);\n } else if (newYcompare < newY + 1) {\n newX++;\n model.set(newX, newY, colour);\n } else {\n newY++;\n model.set(newX, newY, colour);\n }\n }\n } else {\n // Find line equation of the line\n // (x - x1)/(x2 - x1) = (y - y1)/(y2-y1)\n // (x - x1) = (y - y1)(x2 - x1)/(y2-y1)\n // x = x1 + (y - y1)(x2 - x1)/(y2-y1)\n int newX = startx;\n int newY = starty;\n while (newX <= endx && newY > endy) {\n //TODO optimize coefficient\n double newXcompare = findX(newY - 1, startx, starty, endx, endy);\n\n if (newXcompare == newX + 1) {\n newY--;\n newX++;\n model.set(newX, newY, colour);\n // array[newX - 2][newY - 1] = colour;\n model.set(newX, newY + 1, colour);\n } else if (newXcompare < newX + 1) {\n newY--;\n model.set(newX, newY, colour);\n } else {\n newX++;\n model.set(newX, newY, colour);\n }\n }\n }\n }\n }",
"public abstract void lineTo(double x, double y);",
"@Test\n\tpublic void countOrderLines() {\n\t\tInteger response = null;\n\t\tresponse = service.countOrderLines();\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countOrderLines\n\t}",
"public interface LineWriter {\r\n\r\n\t/**\r\n\t * <p> \r\n\t *\t<jdl:section>\r\n\t * \t\t<jdl:text lang='it'>Va a capo.</jdl:text>\r\n\t * \t\t<jdl:text lang='en'>Carriage return.</jdl:text> \r\n\t *\t</jdl:section>\r\n\t * </p> \r\n\t *\r\n\t */\r\n public void println();\r\n \r\n /**\r\n * <p> \r\n *\t<jdl:section>\r\n * \t\t<jdl:text lang='it'>Stampa una pagina senza andare a capo.</jdl:text>\r\n * \t\t<jdl:text lang='en'>Write a line without carriage return.</jdl:text> \r\n *\t</jdl:section>\r\n * </p> \r\n * \r\n * @param line\t<jdl:section>\r\n * \t\t\t\t\t<jdl:text lang='it'>La linea di testo da stampare.</jdl:text>\r\n * \t\t\t\t\t<jdl:text lang='en'>The line of text to print.</jdl:text> \r\n *\t\t\t\t</jdl:section>\r\n */\r\n public void print(String line);\r\n \r\n /**\r\n * <p> \r\n *\t<jdl:section>\r\n * \t\t<jdl:text lang='it'>Stampa una pagina e va a capo.</jdl:text>\r\n * \t\t<jdl:text lang='en'>Write a line with carriage return.</jdl:text> \r\n *\t</jdl:section>\r\n * </p> \r\n * \r\n * @param line\t<jdl:section>\r\n * \t\t\t\t\t<jdl:text lang='it'>La linea di testo da stampare.</jdl:text>\r\n * \t\t\t\t\t<jdl:text lang='en'>The line of text to print.</jdl:text> \r\n *\t\t\t\t</jdl:section>\r\n */\r\n public void println(String line);\r\n \r\n /**\r\n * <p> \r\n *\t<jdl:section>\r\n * \t\t<jdl:text lang='it'>Chiude il LineWriter.</jdl:text>\r\n * \t\t<jdl:text lang='en'>Close the LineWriter.</jdl:text> \r\n *\t</jdl:section>\r\n * </p> \r\n * \r\n\t * @throws IOException\t<jdl:section>\r\n\t * \t\t\t\t\t\t\t<jdl:text lang='it'>Se qualcosa va male durante l'elaborazione.</jdl:text>\r\n\t * \t\t\t\t\t\t\t<jdl:text lang='en'>If something goes wrong during elaboration.</jdl:text> \r\n\t *\t\t\t\t\t\t</jdl:section>\r\n */\r\n public void close() throws IOException;\r\n \r\n}",
"@Test\n\tpublic void saveOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLine \n\t\tOrderLine orderline_1 = new ecom.domain.OrderLine();\n\t\tservice.saveOrderLine(orderline_1);\n\t}",
"@Test\n public void kaasunKonstruktoriToimiiOikeinTest() {\n assertEquals(rikkihappo.toString(),\"Rikkihappo Moolimassa: 0.098079\\n tiheys: 1800.0\\n lämpötila: 298.15\\n diffuusiotilavuus: 50.17\\npitoisuus: 1.0E12\");\n }",
"@Test\n public void testDiagonalMoveSignalsInOutput2() {\n this.readable = new StringReader(\"6 5 4 4 q\");\n Appendable output = new StringBuilder(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\\n\"\n + \"Invalid move. Play again. The move cannot be diagonal\\n\"\n + \"Game quit!\\n\"\n + \"State of game when quit:\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\");\n\n this.gameController = new MarbleSolitaireControllerImpl(this.readable, this.appendable);\n\n this.gameController.playGame(this.model1);\n\n assertEquals(this.appendable.toString(), output.toString());\n }",
"@Test\n public void testDiagonalMoveSignalsInOutput() {\n this.readable = new StringReader(\"3 3 4 4 q\");\n Appendable output = new StringBuilder(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\\n\"\n + \"Invalid move. Play again. The move cannot be diagonal\\n\"\n + \"Game quit!\\n\"\n + \"State of game when quit:\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\");\n\n this.gameController = new MarbleSolitaireControllerImpl(this.readable, this.appendable);\n\n this.gameController.playGame(this.model1);\n\n assertEquals(this.appendable.toString(), output.toString());\n }",
"@Test(timeout=100)\r\n\tpublic void testLongLines() {\r\n\t\tString message = \"Write-readable-software\";\r\n\t\tint length = message.length();\r\n\t\tRandom rand = new Random();\r\n\t\tint count = 100;\r\n\t\tString [] r1 = new String[count];\r\n\t\tfor(int k=0; k<count; k++) r1[k] = message.substring(rand.nextInt(length)+1);\r\n\t\tcount = 200;\r\n\t\tString [] r2 = new String[count];\r\n\t\tmessage = \"abcdefghij\";\r\n\t\tr2[0] = Character.toString(message.charAt(0));\r\n\t\tfor(int k=1; k<count; k++) r2[k] = r2[k-1]+message.charAt(k%10);\r\n\t\twriteArrayToLine(r1);\r\n\t\twriteArrayToLine(r2);\r\n\t\tout.close();\r\n\t\t\r\n\t\tCSVReader csv = new CSVReader(getInstream());\r\n\t\tassertTrue( csv.hasNext() );\r\n\t\tString [] next = csv.next();\r\n\t\tassertEquals( r1.length, next.length );\r\n\t\tassertArrayEquals( r1, next );\r\n\t\tassertTrue( csv.hasNext() );\r\n\t\tassertArrayEquals( r2, csv.next() );\r\n\r\n\t\tassertFalse( csv.hasNext() );\r\n\t}",
"@Test\n\tpublic void testisValidYesLinesAddedAndRemoved() {\n\t\t// Setup\n\t\tString added = \"1\";\n\t\tString removed = \"2\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tboolean valid = line.isValid(types);\n\n\t\t// Verify\n\t\tassertTrue(valid);\n\t}",
"@Test\r\n\tpublic void testGetTraineeUpToWeekLineChart() throws Exception {\r\n\t\tlog.debug(\"GetTraineeUpToWeekLineChart Test\");\r\n\t\t\r\n\t\tgiven().spec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON)\r\n\t\t.when().get(baseUrl + \"all/reports/batch/{batchId}/week\"\r\n\t\t\t\t+ \"/{week}/trainee/{traineeId}/line-trainee-up-to-week\", \r\n\t\t\t\ttraineeValue[0], traineeValue[2], traineeValue[1])\r\n\r\n\t\t.then().assertThat().statusCode(200);\r\n\t}",
"private void makeLines(LayoutContext lc) {\n //String s = new String(text);\n boolean isLastLine = false;\n int tries = 0;\n int curWidth, wordWidth, lineStart, wordEnd, wordStart, newWidth, textLen, beg, maxM2, spaceW;\n curWidth = lineStart = wordEnd = beg = 0;\n char[] text = this.text;\n textLen = text.length;\n maxM2 = textLen - 2;\n spaceW = fm.charWidth(' ');\n boolean glue = false;\n\n do {\n beg = wordEnd;\n\n // find next word\n for (wordStart = beg;; wordStart++) {\n if (wordStart >= textLen) // trailing blanks?\n {\n if (tries > 0) // guich@tc114_81\n {\n lc.disjoin();\n addLine(lineStart, wordEnd, false, lc, false);\n tries = 0;\n }\n wordEnd = wordStart;\n isLastLine = true;\n break;\n }\n if (text[wordStart] != ' ') // is this the first non-space char?\n {\n wordEnd = wordStart;\n do {\n if (++wordEnd >= textLen) {\n isLastLine = true;\n break;\n }\n } while (text[wordEnd] != ' ' && text[wordEnd] != '/'); // loop until the next space/slash char\n // use slashes as word delimiters (useful for URL addresses).\n if (maxM2 > wordEnd && text[wordEnd] == '/' && text[wordEnd + 1] != '/') {\n wordEnd++;\n }\n break;\n }\n }\n if (!lc.atStart() && wordStart > 0 && text[wordStart - 1] == ' ') {\n wordStart--;\n }\n wordWidth = fm.stringWidth(text, wordStart, wordEnd - wordStart);\n if (curWidth == 0) {\n lineStart = beg = wordStart; // no spaces at start of a line\n newWidth = wordWidth;\n } else {\n newWidth = curWidth + wordWidth;\n }\n\n if (lc.x + newWidth <= lc.maxWidth) {\n curWidth = newWidth + spaceW;\n } else // split: line length now exceeds the maximum allowed\n {\n //if (text[wordStart] == ' ') {wordStart++; wordWidth -= spaceW;}\n if (curWidth > 0) {\n // At here, wordStart and wordEnd refer to the word that overflows. So, we have to stop at the previous word\n wordEnd = wordStart;\n if (text[wordEnd - 1] == ' ') {\n wordEnd--;\n }\n if (DEBUG) {\n Vm.debug(\"1. \\\"\" + new String(text, lineStart, wordEnd - lineStart) + \"\\\": \" + curWidth + \" \" + isLastLine);\n }\n addLine(lineStart, wordEnd, true, lc, glue);\n curWidth = 0;\n isLastLine = false; // must recompute the last line, since there's at least a word left.\n } else if (!lc.atStart()) // case of \"this is a text at the end <b>oftheline</b>\" -> oftheline will overflow the screen\n {\n if (++tries == 2) {\n break;\n }\n if (DEBUG) {\n Vm.debug(\"2 \" + isLastLine);\n }\n // Nothing was gathered in, but the current line has characters left by a previous TextSpan. This occurs only once.\n addLine(0, 0, false, lc, glue);\n curWidth = 0;\n isLastLine = false; // must recompute the last line, since there's at least a word left.\n } else {\n // Rare case where we both have nothing gathered in, and the physical line is empty. Had this not been made, then we\n // woud have generated an extra-line at the top of the block.\n if (DEBUG) {\n Vm.debug(\"3. \\\"\" + new String(text, lineStart, wordEnd - lineStart) + '\"');\n }\n if (lineStart != wordEnd) {\n addLine(lineStart, wordEnd, true, lc, glue);\n }\n }\n glue = true;\n }\n } while (!isLastLine);\n\n if (wordEnd != lineStart) {\n //curWidth = fm.stringWidth(text, lineStart, wordEnd-lineStart);\n boolean split = lc.x + curWidth > lc.maxWidth && style.hasInitialValues() && style.isDisjoint;\n if (DEBUG) {\n Vm.debug(\"4. \\\"\" + new String(text, lineStart, wordEnd - lineStart) + \"\\\" \" + split);\n }\n addLine(lineStart, wordEnd, split, lc, glue);\n }\n }",
"public static final String[] WRAP_LINES(final int length, Object obj){\n\t\tif(obj==null || obj.toString()==null){\n\t\t\treturn null;\n\t\t}\n\t\tif(\"\".equals(obj)){\n\t\t\treturn new String[]{};\n\t\t}\n\t\treturn StringUtils.split(WordUtils.wrap(obj.toString(), length, \"\\n\", true), \"\\n\");\n\t}",
"int getFixedLines();",
"private void makeTestLines(int n) {\n testLines = new ArrayList<>();\n for (int i = 0; i < n; i += 1) {\n testLines.add(\"Line \" + i);\n }\n }",
"@Test\n public void testLisaa33() { // Oluet: 33\n Oluet oluet = new Oluet(); \n Olut karjala1 = new Olut(), karjala2 = new Olut(); \n assertEquals(\"From: Oluet line: 36\", 0, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 37\", 1, oluet.getLkm()); \n oluet.lisaa(karjala2); assertEquals(\"From: Oluet line: 38\", 2, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 39\", 2, oluet.getAlkiot()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 40\", 3, oluet.getLkm()); \n assertEquals(\"From: Oluet line: 41\", 4, oluet.getAlkiot()); \n assertEquals(\"From: Oluet line: 42\", karjala1, oluet.tuoOlut(0)); \n assertEquals(\"From: Oluet line: 43\", karjala2, oluet.tuoOlut(1)); \n assertEquals(\"From: Oluet line: 44\", karjala1, oluet.tuoOlut(2)); \n assertEquals(\"From: Oluet line: 45\", false, oluet.tuoOlut(1) == karjala1); \n assertEquals(\"From: Oluet line: 46\", true, oluet.tuoOlut(1) == karjala2); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 47\", 4, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 48\", 5, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 49\", 6, oluet.getLkm()); \n oluet.lisaa(karjala1); assertEquals(\"From: Oluet line: 50\", 7, oluet.getLkm()); \n }",
"private List<LotteryTicketLine> createTicketLines(int lines, LotteryTicket ticket) {\n\t\tList<LotteryTicketLine> linesList = new ArrayList<>();\n\n\t\t// Iterate the lines\n\t\tfor (int linesItr = 1; linesItr <= lines; linesItr++) {\n\t\t\t// Generate appropriate parameters and add in list object\n\t\t\tint first = generateRandomNumber();\n\t\t\tint second = generateRandomNumber();\n\t\t\tint third = generateRandomNumber();\n\t\t\tLotteryTicketLine line = new LotteryTicketLine(first, second, third, getOutcome(first, second, third),\n\t\t\t\t\tticket);\n\t\t\tlinesList.add(line);\n\t\t}\n\t\treturn linesList;\n\t}",
"@Test\n\tpublic void testisValidYesNothingAddedButLinesRemoved() {\n\t\t// Setup\n\t\tString added = \"-\";\n\t\tString removed = \"2\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tboolean valid = line.isValid(types);\n\n\t\t// Verify\n\t\tassertTrue(valid);\n\t}",
"private static int getWrappedLines(JTextArea textArea) {\n AttributedString text = new AttributedString(textArea.getText());\n text.addAttribute(TextAttribute.FONT, textArea.getFont());\n FontRenderContext frc = textArea.getFontMetrics(textArea.getFont()).getFontRenderContext();\n AttributedCharacterIterator charIt = text.getIterator();\n LineBreakMeasurer lineMeasurer = new LineBreakMeasurer(charIt, frc);\n float formatWidth = SideBarPanel.SIDEBAR_WIDTH - 30;\n lineMeasurer.setPosition(charIt.getBeginIndex());\n\n int noLines = 0;\n while (lineMeasurer.getPosition() < charIt.getEndIndex()) {\n lineMeasurer.nextLayout(formatWidth);\n noLines++;\n }\n return noLines;\n\n }",
"List<String> getLines();",
"protected abstract void lineTo(final float x, final float y);",
"@Override\n public Line[] getLines(){\n Line[] arrayOfLines = new Line[]{topLine, rightLine, bottomLine, leftLine}; //stores the array of lines that form the rectangle\n return arrayOfLines;\n }",
"Line createLine();",
"@Test\n\tpublic void testisValidYesLinesAddedButNoneRemoved() {\n\t\t// Setup\n\t\tString added = \"3\";\n\t\tString removed = \"-\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tboolean valid = line.isValid(types);\n\n\t\t// Verify\n\t\tassertTrue(valid);\n\t}",
"public String readLines() {\n\n String fileAsString;\n fileAsString = read();\n StringBuilder newString = new StringBuilder();\n if (fileAsString != null) {\n if (fromLine == toLine) {\n\n newString = new StringBuilder(fileAsString.split(\"\\n\")[fromLine - 1]);\n return newString.toString();\n } else {\n if (toLine > fileAsString.split(\"\\n\").length) {\n toLine = fileAsString.split(\"\\n\").length;\n }\n ;\n for (int i = fromLine - 1; i < toLine; i++) {\n\n newString.append(fileAsString.split(\"\\n\")[i]).append(\"\\n\");\n\n\n }\n }\n\n }\n\n\n return newString.toString();\n }",
"public UBA<Line> _toLineSegments()\n {\n UBA<Line> output = new UBA<Line>();\n\n int len = _points.size();\n for(int i = 0; i < len - 1; i++)\n {\n Line line = new Line(i, i + 1, _points);\n output.push(line);\n }\n\n // Add the last point.\n if(_isClosed)\n {\n Line line = new Line(len - 1, 0, _points);\n output.push(line);\n }\n\n return output;\n }",
"@Test\n\tpublic void testGetSourceDifference() {\n\t\t\n\t\t// Setup\n\t\tString added = \"1\";\n\t\tString removed = \"1\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\t\t\n\t\t// Exercise\n\t\tint diff = line.getSourceDifference(types);\n\n\t\t// Verify\n\t\tassertEquals(2, diff);\n\n\t\tint test = line.getTestDiff(types);\n\t\tassertEquals(0, test);\n\t}",
"@Test\n\tpublic void testisValidNoNothingAddedorRmoved() {\n\t\t// Setup\n\t\tString added = \"-\";\n\t\tString removed = \"-\";\n\t\tLine line = new Line(added, removed, \"dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tboolean valid = line.isValid(types);\n\n\t\t// Verify\n\t\tassertFalse(valid);\n\t}",
"int getBrokenLines();",
"@RequestMapping(value = \"/Productlines\", method = RequestMethod.POST)\n\tpublic Productlines newProductlines(@ModelAttribute Productlines productlines) {\n\t\tproductlinesService.saveProductlines(productlines);\n\t\treturn productlinesDAO.findProductlinesByPrimaryKey(productlines.getProductLine());\n\t}",
"@Override\n protected void setUp() throws Exception { // creating method setUp for initialize data\n route = new ArrayList<>(); // initialize List route\n\n Line line1 = new Line(1, \"Первая\"); // creating line1\n Line line2 = new Line(2, \"Вторая\"); // creating line2\n route.add(new Station(\"Петровская\", line1)); // add new station to the array\n route.add(new Station(\"Арбузная\", line1));\n route.add(new Station(\"Морковная\", line2));\n route.add(new Station(\"Яблочная\", line2));\n\n }",
"@Test\n\tpublic void lineGetDistanceTest() {\n\t\tDouble distanceOfFirstLine = Math.sqrt((10 - 0) * (10 - 0) + (10 - 0) * (10 - 0));\n\n\t\tassertEquals(distanceOfFirstLine, firstLine.getDistance(), .0001d);\n\t\tassertNotEquals(Math.sqrt(2 * distanceOfFirstLine),\n\t\t\t\tfirstLine.getDistance(), .0001d);\n\t}",
"@Test\n\tpublic void testFieldIndexConverter() {\n\n\t\tAssert.assertTrue(1 == Board.lineFromIndex((byte) 0));\n\t\tAssert.assertTrue(8 == Board.lineFromIndex((byte) 7));\n\t\tAssert.assertTrue(7 == Board.lineFromIndex((byte) 14));\n\t\tAssert.assertTrue(1 == Board.lineFromIndex((byte) 16));\n\n\t\tAssert.assertTrue(1 == Board.rowFromIndex((byte) 0));\n\t\tAssert.assertTrue(1 == Board.rowFromIndex((byte) 7));\n\t\tAssert.assertTrue(2 == Board.rowFromIndex((byte) 8));\n\t\tAssert.assertTrue(8 == Board.rowFromIndex((byte) 63));\n\t\t\n\t\t\n\t\t\n\t\t//49=B7\n\t\tAssert.assertTrue(2 == Board.lineFromIndex((byte) 49));\n\t\tAssert.assertTrue(7 == Board.rowFromIndex((byte) 49));\n\t\t\n\n\t}",
"public static void LineCreate(WebDriver driver) throws Exception\n\t\n\t{\n\t\ttry {\n\t\t\tLine_Page_Objects.Left_Menu_Line(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.Site_Selection(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickPartialLinkText(driver, ExcelUtils.getCellData(1, 6));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Add_Line(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.DirectoryNum_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 0));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Route_Partition_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 1));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Description_Txt(driver).sendKeys(ExcelUtils.getCellData(1, 2));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Calling_Search_Space_Name_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 3));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.VoiceMail_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 4));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Auto_Answer_Drop(driver).click();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.ClickLinkText(driver, ExcelUtils.getCellData(1, 5));\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.waitFor1000();\n\t\t\tLine_Page_Objects.Save_Button(driver).click();\n\t\t\tLine_Page_Objects.waitFor2000();\n\t\t\tLine_Page_Objects.SaveSuccessMsg(driver).getText().equalsIgnoreCase(\"Line create request submitted successfully\");\n\t\t\tLine_Page_Objects.waitFor3000();\n\t\t\tReporter.reportStep(\"Line Create Passed\", \"PASS\");\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\tReporter.reportStep(\"Line Create Failed\", \"FAIL\");\n\t\t}\n\t}",
"@Test\n\tpublic void lineGetSlopeTest() {\n\n\t\tassertEquals(1.0d, firstLine.getSlope(), .0001d);\n\t\tassertNotEquals(2.0d, firstLine.getSlope(), .0001d);\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Test\n public void testDownloadLineDataList() {\n\t\n\tClientUpdateDataPack client2 = new ClientUpdateDataPack();\n\tclient2.setOrgCode(\"W011304060906\");\n\tDate d = new Date();\n\td = DateUtils.addDays(d, -1);\n\tclient2.setLastUpdateTime(d);\n\tList<ClientUpdateDataPack> lista = new ArrayList<ClientUpdateDataPack>();\n//\tlista.add(client);\n\tlista.add(client2);\n\n\tDataBundle db = baseInfoDownloadService.downloadLineData(lista);\n\tList<LineEntity> list = (List<LineEntity>) (db.getObject());\n\tfor (LineEntity entity : list) {\n\t Assert.assertNotNull(entity.getId());\n\t}\n }",
"@Test\n\tpublic void fortheLine() {\n\t\tString stringOfTestingWord = (\"aword\");\n\t\tStringBuilder MethodResult = object1.theLine(stringOfTestingWord);\n\t\tStringBuilder ExpectedResult = new StringBuilder();\n\t\tfor (int i = 0; i < stringOfTestingWord.length(); i++) {\n\t\t\tExpectedResult.append(\"-\");\n\t\t}\n\t\tassertEquals(ExpectedResult.toString(), MethodResult.toString());\n\n\t}",
"@Test\n\tpublic void secodFortheLine() {\n\t\tString stringOfTestingWord = (\"newword\");\n\t\tStringBuilder MethodResult = object1.theLine(stringOfTestingWord);\n\t\tStringBuilder ExpectedResult = new StringBuilder();\n\t\tfor (int i = 0; i < stringOfTestingWord.length(); i++) {\n\t\t\tExpectedResult.append(\"-\");\n\t\t}\n\t\tassertEquals(ExpectedResult.toString(), MethodResult.toString());\n\t}",
"private OrderLine insertOrderLine(Order order,\n SalesOrderLineInformation salesOrderLineInformation, Organization org, Warehouse warehouse,\n long lineNo) throws Exception {\n OrderLine orderLine = null;\n JsonToDataConverter fromJsonToData = new JsonToDataConverter();\n try {\n orderLine = (OrderLine) fromJsonToData.toBaseOBObject(salesOrderLineInformation\n .getOrderLineJSON());\n orderLine.setCreatedBy(order.getCreatedBy());\n orderLine.setCreationDate(new Date());\n orderLine.setUpdatedBy(order.getCreatedBy());\n orderLine.setUpdated(new Date());\n orderLine.setOrganization(org);\n if (warehouse.getIbdoWarehousetype().equals(\"FACST_External\")) {\n orderLine.setOrganization(order.getOrganization());\n }\n orderLine.setSalesOrder(order);\n orderLine.setPartnerAddress(null);\n orderLine.setWarehouse(warehouse);\n orderLine.setNewOBObject(true);\n orderLine.setProduct(salesOrderLineInformation.getProduct());\n orderLine.setCreateReservation(SOConstants.StockReservationAutomatic);\n orderLine.setOrderedQuantity(salesOrderLineInformation.getQuantity());\n orderLine.setWarehouseRule(salesOrderLineInformation.getWarehouseRule());\n orderLine.setLineNo(lineNo);\n orderLine.setIbdoPoid(salesOrderLineInformation.getOrderLineJSON().getString(\"id\"));\n } catch (JSONException e) {\n LOG.error(e.getMessage(), e);\n } catch (Exception e) {\n LOG.error(e.getMessage(), e);\n throw new Exception(e.toString());\n }\n OBDal.getInstance().save(orderLine);\n return orderLine;\n }",
"@RequestMapping(value = \"/Productlines\", method = RequestMethod.PUT)\n\tpublic Productlines saveProductlines(@ModelAttribute Productlines productlines) {\n\t\tproductlinesService.saveProductlines(productlines);\n\t\treturn productlinesDAO.findProductlinesByPrimaryKey(productlines.getProductLine());\n\t}",
"public static void LeerFicheroLinea(File rutaLeer, File rutaEscribir)\n throws IOException {\n\n BufferedReader lector = new BufferedReader(new FileReader(rutaLeer));\n BufferedWriter escritor = new BufferedWriter(new FileWriter(rutaEscribir));\n\n escritor.write(\"--------------------------------------\\n\"\n + \" Cartelera de CineFBMoll\\n\"\n + \"--------------------------------------\\n\\n\");\n\n int contador = 0;\n int datosNum = 0;\n escritor.newLine();\n while (lector.ready() != false) { // eof de BufferedReader\n String lineaLeida = lector.readLine();\n\n lineaLeida = lineaLeida.replace('#', '\\n');\n lineaLeida = lineaLeida.replace('{', '\\n');\n //la lineaLeida lo paso a un array, la división lo hace por un '\\n' \n String[] texto = lineaLeida.split(\"\\n\");\n for (int i = 0; i < texto.length; i++) {\n if (datosNum <= datos.length) {\n System.out.println(texto[i]);\n }\n datosNum++;\n contador++;\n if (contador == datos.length) {\n datosNum = 0;\n }\n }\n }\n lector.close();\n escritor.close();\n }",
"@Test\n public void testControllerForOtherModelConstructor1() {\n this.readable = new StringReader(\"3 3 3 5 q\");\n this.gameController = new MarbleSolitaireControllerImpl(this.readable, this.appendable);\n\n this.gameController.playGame(this.model2);\n\n Appendable output = new StringBuilder(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O _ O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"O O _ _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 31\\n\"\n + \"Game quit!\\n\"\n + \"State of game when quit:\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"O O _ _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 31\");\n\n assertEquals(this.appendable.toString(), output.toString());\n }",
"@Test\n public void testTrain() {\n System.out.println(\"train\");\n TokenizedLine tokenizedLine = null;\n ArrayList<Words> expResult = null;\n ArrayList<Words> result = Training.train(tokenizedLine);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }",
"protected abstract MS_LineBuilder prepareContent(MS_LineBuilder lb);",
"@Override\n protected void createLines() {\n\n Line[] lines = new GraphicalLine[(2 * columns * rows) + columns + rows];\n int lineIndex = 0;\n\n int boxCounter = 0;\n int x = settings.dotStartX() + settings.dotWidth();\n int y = settings.dotStartY() + settings.lineOffset();\n boolean isTop = true;\n boolean isFirstRow = true;\n\n /* horizontal lines */\n /* for every row + 1 */\n for (int i = 0; i < rows + 1; i++) {\n\n /* for every column */\n for (int j = 0; j < columns; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineWidth(), settings.lineHeight());\n line.addBox(boxes[boxCounter]);\n if (isTop) {\n boxes[boxCounter].setTopLine(line);\n } else {\n boxes[boxCounter].setBottomLine(line);\n /* if there is a next row */\n if (i + 1 < rows + 1) {\n line.addBox(boxes[boxCounter + columns]);\n boxes[boxCounter + columns].setTopLine(line);\n }\n }\n boxCounter++;\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n boxCounter = isTop ? boxCounter - columns : boxCounter;\n if (isFirstRow) {\n isTop = false;\n isFirstRow = false;\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.dotWidth();\n }\n\n boxCounter = 0;\n x = settings.dotStartX() + settings.lineOffset();\n y = settings.dotStartY() + settings.dotWidth();\n\n /* vertical lines */\n /* for every row */\n for (int i = 0; i < rows; i++) {\n\n /* for every column + 1 */\n for (int j = 0; j < columns + 1; j++) {\n\n Line line = new GraphicalLine(x, y, settings.lineHeight(), settings.lineWidth());\n /* if there is a previous vertical line */\n if (j > 0) {\n boxes[boxCounter - 1].setRightLine(line);\n line.addBox(boxes[boxCounter - 1]);\n }\n /* if there is a next column */\n if (j + 1 < columns + 1) {\n boxes[boxCounter].setLeftLine(line);\n line.addBox(boxes[boxCounter]);\n boxCounter++;\n }\n lines[lineIndex++] = line;\n x += settings.dotSeparatorLength();\n }\n y += settings.dotSeparatorLength();\n x = settings.dotStartX() + settings.lineOffset();\n }\n\n this.lines = lines;\n }",
"private static List<StudentRecord> convert(List<String> lines) {\n\t\tList<StudentRecord> records = new ArrayList<>();\n\n\t\tfor (String line : lines) {\n\t\t\tif(line.isEmpty()) continue;\n\t\t\t\n\t\t\trecords.add(StudentRecord.fromLine(line));\n\t\t}\n\n\t\treturn records;\n\t}",
"int translateEOL(Object dstArray, int dstStart,\n Object srcArray, int srcStart,\n IntPtr dstLenPtr, IntPtr srcLenPtr) {\n final boolean debug = false;\n\n // Figure out if the srcArray and dstArray buffers\n // are byte or char arrays.\n boolean isCharType;\n char[] srcArrayChar, dstArrayChar;\n byte[] srcArrayByte, dstArrayByte;\n\n if ((srcArray instanceof char[]) && (dstArray instanceof char[])) {\n isCharType = true;\n srcArrayChar = (char[]) srcArray;\n dstArrayChar = (char[]) dstArray;\n srcArrayByte = null;\n dstArrayByte = null;\n } else if ((srcArray instanceof byte[]) && (dstArray instanceof byte[])) {\n isCharType = false;\n srcArrayChar = null;\n dstArrayChar = null;\n srcArrayByte = (byte[]) srcArray;\n dstArrayByte = (byte[]) dstArray;\n } else {\n throw new TclRuntimeError(\"unknown array argument types\");\n }\n\n int dstLen, srcLen, inEofChar, index;\n int eof;\n\n dstLen = dstLenPtr.i;\n\n eof = -1;\n inEofChar = eofChar;\n if (inEofChar != '\\0') {\n // Find EOF in translated buffer then compress out the EOL. The\n // source buffer may be much longer than the destination buffer\n // we only want to return EOF if the EOF has been copied to the\n // destination buffer.\n\n int src, srcMax;\n\n srcMax = srcStart + srcLenPtr.i;\n for (src = srcStart; src < srcMax; src++) {\n if (isCharType) {\n index = srcArrayChar[src];\n } else {\n index = srcArrayByte[src];\n }\n if (index == inEofChar) {\n eof = src;\n srcLen = src - srcStart;\n if (srcLen < dstLen) {\n dstLen = srcLen;\n }\n srcLenPtr.i = srcLen;\n break;\n }\n }\n }\n switch (translation) {\n case TclIO.TRANS_LF: {\n if ((dstArray != srcArray) || ((dstArray == srcArray) && (dstStart != srcStart))) {\n System.arraycopy(srcArray, srcStart, dstArray, dstStart, dstLen);\n }\n srcLen = dstLen;\n break;\n }\n case TclIO.TRANS_CR: {\n int dst, dstEnd;\n\t \n if ((dstArray != srcArray) || ((dstArray == srcArray) && (dstStart != srcStart))) {\n System.arraycopy(srcArray, srcStart, dstArray, dstStart, dstLen);\n }\n dstEnd = dstStart + dstLen;\n if (isCharType) {\n for (dst = dstStart; dst < dstEnd; dst++) {\n if (dstArrayChar[dst] == '\\r') {\n dstArrayChar[dst] = '\\n';\n }\n }\n } else {\n for (dst = dstStart; dst < dstEnd; dst++) {\n if (dstArrayByte[dst] == '\\r') {\n dstArrayByte[dst] = (byte) '\\n';\n }\n }\n }\n srcLen = dstLen;\n break;\n }\n case TclIO.TRANS_CRLF: {\n int dst;\n int src, srcEnd, srcMax;\n\n dst = dstStart;\n src = srcStart;\n srcEnd = srcStart + dstLen;\n srcMax = srcStart + srcLenPtr.i;\n\n if (isCharType) {\n for ( ; src < srcEnd; ) {\n if (srcArrayChar[src] == '\\r') {\n src++;\n if (src >= srcMax) {\n needNL = true;\n } else if (srcArrayChar[src] == '\\n') {\n dstArrayChar[dst++] = srcArrayChar[src++];\n } else {\n dstArrayChar[dst++] = '\\r';\n }\n } else {\n dstArrayChar[dst++] = srcArrayChar[src++];\n }\n }\n } else {\n for ( ; src < srcEnd; ) {\n if (srcArrayByte[src] == '\\r') {\n src++;\n if (src >= srcMax) {\n needNL = true;\n } else if (srcArrayByte[src] == '\\n') {\n dstArrayByte[dst++] = srcArrayByte[src++];\n } else {\n dstArrayByte[dst++] = (byte) '\\r';\n }\n } else {\n dstArrayByte[dst++] = srcArrayByte[src++];\n }\n }\n }\n\n srcLen = src - srcStart;\n dstLen = dst - dstStart;\n break;\n }\n case TclIO.TRANS_AUTO: {\n int dst;\n int src, srcEnd, srcMax;\n\n dst = dstStart;\n src = srcStart;\n srcEnd = srcStart + dstLen;\n srcMax = srcStart + srcLenPtr.i;\n\n if (sawCR && (src < srcMax)) {\n if (isCharType) {\n index = srcArrayChar[src];\n } else {\n index = srcArrayByte[src];\n }\n if (index == '\\n') {\n src++;\n }\n sawCR = false;\n }\n if (isCharType) {\n for ( ; src < srcEnd; ) {\n if (srcArrayChar[src] == '\\r') {\n src++;\n if (src >= srcMax) {\n sawCR = true;\n } else if (srcArrayChar[src] == '\\n') {\n if (srcEnd < srcMax) {\n srcEnd++;\n }\n src++;\n }\n dstArrayChar[dst++] = '\\n';\n } else {\n dstArrayChar[dst++] = srcArrayChar[src++];\n }\n }\n } else {\n for ( ; src < srcEnd; ) {\n if (srcArrayByte[src] == '\\r') {\n src++;\n if (src >= srcMax) {\n sawCR = true;\n } else if (srcArrayByte[src] == '\\n') {\n if (srcEnd < srcMax) {\n srcEnd++;\n }\n src++;\n }\n dstArrayByte[dst++] = (byte) '\\n';\n } else {\n dstArrayByte[dst++] = srcArrayByte[src++];\n }\n }\n } \n srcLen = src - srcStart;\n dstLen = dst - dstStart;\n break;\n }\n default: {\n throw new TclRuntimeError(\"invalid translation\");\n }\n }\n dstLenPtr.i = dstLen;\n\n if ((eof != -1) && (srcStart + srcLen >= eof)) {\n // EOF character was seen in EOL translated range. Leave current\n // file position pointing at the EOF character, but don't store the\n // EOF character in the output string.\n\n eofCond = true;\n stickyEofCond = true;\n encodingEnd = true;\n sawCR = false;\n needNL = false;\n return 1;\n }\n\n srcLenPtr.i = srcLen;\n return 0;\n }",
"@Test\n public void testCSesionAgregarLiena4() throws Exception {\n System.out.println(\"testCSesionAgregarLiena normal\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n }",
"public static void testPatchLineOfCredit() throws MambuApiException{\n\t\tString methodName = new Object() {}.getClass().getEnclosingMethod().getName();\n\t\tSystem.out.println(\"\\nIn \" + methodName);\n\t\t\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\n\t\tfinal String clientId = DemoUtil.getDemoClient().getId();\n\t\t// Get Lines of Credit for a client\n\t\tList<LineOfCredit> clientLoCs = linesOfCreditService.getClientLinesOfCredit(clientId, 0, 5);\n\t\tSystem.out.println(clientLoCs.size() + \" lines of credit for Client \" + clientId);\n\t\t\n\t\tif(clientLoCs.isEmpty() || clientLoCs.get(0) == null){\n\t\t\tSystem.out.println(\"WARNING: \" + methodName + \" could not be tested because there are no LoCs to be patched\");\n\t\t}else{\n\t\t\tLineOfCredit lineOfCredit = clientLoCs.get(0);\n\t\t\t\n\t\t\t//change some values on the allowed patch fields\n\t\t\tCalendar patchDate = Calendar.getInstance();\n\t\t\t\n\t\t\tlineOfCredit.setId(\"LOC\" + System.currentTimeMillis());\n\t\t\tpatchDate.add(Calendar.DAY_OF_MONTH, 1);\n\t\t\tlineOfCredit.setStartDate(patchDate.getTime());\n\t\t\t\n\t\t\tpatchDate.add(Calendar.YEAR, 2);\n\t\t\tlineOfCredit.setExpiryDate(patchDate.getTime());\n\t\t\t\n\t\t\tlineOfCredit.setAmount(lineOfCredit.getAmount().add(new Money(\"5000\")));\n\t\t\tlineOfCredit.setNotes(\"Note updated through APIs today \" + new Date());\n\n\t\t\tboolean patchResult = linesOfCreditService.patchLinesOfCredit(lineOfCredit);\n\t\t\tSystem.out.println(\"PATCH LoC result is = \" + patchResult);\n\t\t\t\n\t\t\t// retrieve PATCHed line of credit\n\t\t\tlineOfCredit = linesOfCreditService.getLineOfCredit(lineOfCredit.getEncodedKey());\n\t\t\t\n\t\t\t// log details of the PATCHed line of credit\n\t\t\tlogLineOfCreditDetails(lineOfCredit);\n\t\t}\n\t\t\n\t}",
"@Test\r\n\tpublic void testgetTraineeOverallLineChart(){\r\n\t\tlog.debug(\"testgetTraineeOverallLineChart Test\");\r\n\t\t//The arrays are set up so the nth elemnt in batchId matches the nth element in traineeId\r\n\t\tInteger[] batchId = new Integer[]{2200,2050,2150};\r\n\t\tInteger[] traineeId = new Integer[]{5503,5350,5467};\r\n\t\tint random = ThreadLocalRandom.current().nextInt(0, 3);\r\n\t\t//Gets the maps from the service\r\n\t\tMap<Integer, Double[]> theMap = service.getTraineeOverallLineChart(batchId[random],traineeId[random]);\r\n\t\t//Maps the double array values to an ArrayList\r\n\t\tArrayList<Double[]> targetList = new ArrayList<>(theMap.values());\r\n\t\t//Stores the array body as a string \r\n\t\tResponse response = given().spec(requestSpec).header(AUTH, accessToken).contentType(ContentType.JSON)\r\n\t\t.when().get(baseUrl+\"all/reports/batch/{batchId}/overall/trainee/{traineeId}/line-trainee-overall\",batchId[random],traineeId[random]);\r\n\t\tJSONObject responseJson = new JSONObject(response.getBody().asString());;\r\n\t\t//For the length of the body finds the double array and compares the 1st and second values of the double array\r\n\t\tfor(int i =1; i <= responseJson.length(); i++){\r\n\t\t\tJSONArray values = responseJson.getJSONArray(Integer.toString(i));\r\n\t\t\tfor(int j = 0; j < values.length(); j++) {\r\n\t\t\t\tdouble value = values.getDouble(j);\r\n\t\t\t\tassertEquals(Math.round(value*1000d)/1000d, Math.round(targetList.get(i-1)[j]*1000d)/1000d,0.0001);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void assertEqualLines(String expected, String actual) {\n assertEquals(expected.replace(\"\\n\", System.getProperty(\"line.separator\")), actual);\n }",
"@Test\n\tpublic void testGetTestDifference() {\n\t\t// Setup\n\t\tString added = \"1\";\n\t\tString removed = \"1\";\n\t\tLine line = new Line(added, removed, \"test/dank.java\");\n\t\tList<String> types = new ArrayList<String>();\n\t\ttypes.add(\"java\");\n\n\t\t// Exercise\n\t\tint diff = line.getSourceDifference(types);\n\n\t\t// Verify\n\t\tassertEquals(0, diff);\n\n\t\tint test = line.getTestDiff(types);\n\t\tassertEquals(2, test);\n\t}",
"private static String[] bodySquare(SquareLM squareLM){\n String[] bodyLines = new String[ROWS_BODY_SQUARE];\n if(squareLM == null){ //if it is empty\n for(int i=0; i < bodyLines.length; i++){\n bodyLines[i] = EMPTY_LINE_INSIDE_SQUARE;\n }\n }\n else{ //if it is not empty\n //first line: players on the square\n bodyLines[0] = playersToDrawOnSquare(squareLM);\n //second line: nothing (empty space)\n bodyLines[1] = EMPTY_LINE_INSIDE_SQUARE;\n //third and fourth lines:\n String [] otherInfoSquare;\n if(squareLM.getSquareType() == SquareType.AMMO_POINT){\n otherInfoSquare = specificInfoAmmoPointToDraw((AmmoPointLM) squareLM);\n bodyLines[2] = otherInfoSquare[0];\n bodyLines[3] = otherInfoSquare[1];\n }\n //SPAWN POINT\n if(squareLM.getSquareType() == SquareType.SPAWNING_POINT){\n otherInfoSquare = specificInfoSpawnPointToDraw((SpawnPointLM)squareLM);\n bodyLines[2] = otherInfoSquare[0];\n bodyLines[3] = otherInfoSquare[1];\n }\n }\n return bodyLines;\n }",
"@Test\n\tpublic void saveOrderLineSalesOrder() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLineSalesOrder \n\t\tInteger id_2 = 0;\n\t\tSalesOrder related_salesorder = new ecom.domain.SalesOrder();\n\t\tOrderLine response = null;\n\t\tresponse = service.saveOrderLineSalesOrder(id_2, related_salesorder);\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveOrderLineSalesOrder\n\t}",
"@Test\n public void RegistroC380Test() throws ParseException {\n RegistroC380 reg = new RegistroC380();\n LineModel line = reg.createModel();\n SimpleDateFormat sdf = new SimpleDateFormat(\"ddMMyyyy\");\n Date data = sdf.parse(\"17121986\");\n \n //02\n line.setFieldValue(RegistroC380.COD_MOD, \"02\");\n //03\n line.setFieldValue(RegistroC380.DT_DOC_INI, data);\n //04\n line.setFieldValue(RegistroC380.DT_DOC_FIN, data);\n //05\n line.setFieldValue(RegistroC380.NUM_DOC_INI, 123456L);\n //06\n line.setFieldValue(RegistroC380.NUM_DOC_FIN, 123456L);\n //07\n line.setFieldValue(RegistroC380.VL_DOC, 78911.11);\n //08\n line.setFieldValue(RegistroC380.VL_DOC_CANC, 78911.11);\n\n StringBuffer sb = line.getRepresentation();\n System.out.print(sb);\n// String expected = \"|C380|02|17121986|17121986|123456|123456|78911,11|78911,11|\";\n// assertEquals (expected, sb.toString());\n }",
"org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine getExternalOrderLineArray(int i);",
"public Line[] rockLines() {\n\t\treturn outLine;\n\t}",
"public void lineTo(double x, double y)\n {\n\tPoint2D pos = transformedPoint(x,y);\n\tdouble tx = pos.getX();\n\tdouble ty = pos.getY();\n\t\n\tLine line = new Line(_currentx, _currenty, tx, ty);\n\n\tSystem.out.println(\"+Line: \" + line.toString());\n\t_currentPath.add(line);\n\t_currentx = tx;\n\t_currenty = ty;\n }",
"public List<String> getLines()\n\t{\n\t\treturn lines;\n\t}",
"@Test\n public void StuckInLine() {\n\n int[] line = {2,5,3,4,5};\n int position = 2;\n Assert.assertEquals(12,Computation.getNeededTickets(line,position));\n\n int[] line2 = {5,5,2,3};\n position = 3;\n Assert.assertEquals(11,Computation.getNeededTickets(line2,position));\n\n int[] line3 = {1,1,1,1};\n position = 0;\n Assert.assertEquals(1,Computation.getNeededTickets(line3,position));\n\n\n }",
"public T caseNewLineLine(NewLineLine object)\n\t{\n\t\treturn null;\n\t}",
"public static void writeLines(@Nullable final Collection<?> lines, String lineEnding, final OutputStream output,\n final Charset encoding) throws IOException {\n if (lines == null) {\n return;\n }\n if (lineEnding == null) {\n lineEnding = LINE_SEPARATOR;\n }\n for (final Object line : lines) {\n if (line != null) {\n output.write(line.toString().getBytes(encoding));\n }\n output.write(lineEnding.getBytes(encoding));\n }\n }",
"public static void writeLines(@Nullable final Collection<?> lines, String lineEnding,\n final Writer writer) throws IOException {\n if (lines == null) {\n return;\n }\n if (lineEnding == null) {\n lineEnding = LINE_SEPARATOR;\n }\n for (final Object line : lines) {\n if (line != null) {\n writer.write(line.toString());\n }\n writer.write(lineEnding);\n }\n }",
"public static ArrayList getLines() {\n return lines;\n }",
"@Test\n public void testConvertir() {\n System.out.println(\"convertir\");\n Conversion result = d1.convertir(taux, d2, 10000);\n assertEquals(result.getMontantArrivee(), 4564.883, 0);\n assertEquals(result.getMontantDepart(), 10000, 0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Override\r\n\tpublic boolean reverseCorrectIt() {\n\t\t\r\n\tMClient client = new MClient(Env.getCtx(), getAD_Client_ID(), get_TrxName());\r\n\t\t\r\n\t\tMCHesLine hline = null;\r\n\t\tfor (int i=0; i < getLines().length; i++){\r\n\t\t\thline = m_lines[i];\r\n\t\t\tMCPreInvoiceLineG lg = new MCPreInvoiceLineG (Env.getCtx(), hline.getC_PreInvoiceLineG_ID(),get_TrxName());\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (getC_Currency_ID()==client.getC_Currency_ID()) \r\n\t\t\t\tlg.setQtyHes_Veb(lg.getQtyHes_Veb().subtract(hline.getQty()));\r\n\t\t\telse \r\n\t\t\t\tlg.setQtyHes_Usd(lg.getQtyHes_Usd().subtract(hline.getQty()));\r\n\t\t\t\r\n\t\t\tlg.save();\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Test\n public void testFromPositionOutOfBoundsInFourCornersSignalsInOutput() {\n this.readable = new StringReader(\"1 2 3 2 q\");\n Appendable output = new StringBuilder(\" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\\n\"\n + \"Invalid move. Play again. The from position is out of bounds\\n\"\n + \"Game quit!\\n\"\n + \"State of game when quit:\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"O O O O O O O\\n\"\n + \"O O O _ O O O\\n\"\n + \"O O O O O O O\\n\"\n + \" O O O\\n\"\n + \" O O O\\n\"\n + \"Score: 32\");\n\n this.gameController = new MarbleSolitaireControllerImpl(this.readable, this.appendable);\n\n this.gameController.playGame(this.model1);\n\n assertEquals(this.appendable.toString(), output.toString());\n }",
"@GetMapping(\"/invoice-lines/{id}\")\n public ResponseEntity<InvoiceLinesDTO> getInvoiceLines(@PathVariable Long id) {\n log.debug(\"REST request to get InvoiceLines : {}\", id);\n Optional<InvoiceLinesDTO> invoiceLinesDTO = invoiceLinesService.findOne(id);\n return ResponseUtil.wrapOrNotFound(invoiceLinesDTO);\n }",
"@Test\n\t//Normal Test Case of pasteSerial\n\tpublic void pasteUseSerialTestOne() {\n\t\t\t\n\t\tString serialLines = \"Get Your Crayons\\nOne Of a Kind\\nCrazy Go\\n\";\n\t\tString []input = serialLines.split(\"\\n\");\n\t\tpasteTool = new PASTETool();\n\t\t\n\t\tString actual = pasteTool.pasteSerial(input);\n\t\tString expected = \"Get Your Crayons\\tOne Of a Kind\\tCrazy Go\";\n\t\t\n\t\tassertEquals(expected,actual);\n\t}",
"public static void testGetLinesOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetLinesOfCredit\");\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tInteger offset = 0;\n\t\tInteger limit = 5;\n\n\t\t// Test getting all lines of credit\n\t\tList<LineOfCredit> linesOfCredit = linesOfCreditService.getAllLinesOfCredit(offset, limit);\n\t\tSystem.out.println(\"Total Lines of Credit=\" + linesOfCredit.size());\n\t\tif (linesOfCredit.size() == 0) {\n\t\t\tSystem.out.println(\"*** No Lines of Credit to test ***\");\n\t\t\treturn;\n\t\t}\n\t\tfor (LineOfCredit loc : linesOfCredit) {\n\t\t\tSystem.out.println(\"\\tID=\" + loc.getId() + \"\\tAmount=\" + loc.getAmount() + \"\\tAvailable Credit Amount=\"\n\t\t\t\t\t+ loc.getAvailableCreditAmount());\n\t\t}\n\t\t// Test get Line Of Credit details\n\t\tString lineofcreditId = linesOfCredit.get(0).getId();\n\t\tSystem.out.println(\"Getting details for Line of Credit ID=\" + lineofcreditId);\n\t\tLineOfCredit lineOfCredit = linesOfCreditService.getLineOfCredit(lineofcreditId);\n\t\t// Log returned LoC\n\t\tSystem.out.println(\"Line of Credit. ID=\" + lineOfCredit.getId() + \"\\tAmount=\" + lineOfCredit.getAmount()\n\t\t\t\t+ \"\\tOwnerType=\" + lineOfCredit.getOwnerType() + \"\\tHolderKey=\"\n\t\t\t\t+ lineOfCredit.getAccountHolder().getAccountHolderKey());\n\t\t\n\t}",
"@Test\r\n void findRouteDifferentLine() {\r\n List<Station> route = model.findRoute(9, 60);\r\n assertNotNull(route);\r\n assertEquals(10, route.size());\r\n assertEquals(\"SuffolkDowns\", route.get(0).getName());\r\n assertEquals(\"Broadway\", route.get(9).getName());\r\n }",
"public static void testGetCustomerLinesOfCredit() throws MambuApiException {\n\n\t\tSystem.out.println(\"\\nIn testGetCustomerLinesOfCredit\");\n\n\t\tLinesOfCreditService linesOfCreditService = MambuAPIFactory.getLineOfCreditService();\n\t\tInteger offset = 0;\n\t\tInteger limit = 30;\n\t\t// Test Get line of credit for a Client\n\t\t// Get Demo Client ID first\n\n\t\tfinal String clientId = DemoUtil.getDemoClient().getId();\n\t\t// Get Lines of Credit for a client\n\t\tList<LineOfCredit> clientLoCs = linesOfCreditService.getClientLinesOfCredit(clientId, offset, limit);\n\t\tSystem.out.println(clientLoCs.size() + \" lines of credit for Client \" + clientId);\n\n\t\t// Test Get line of credit for a Group\n\t\t// Get Demo Group ID first\n\t\tfinal String groupId = DemoUtil.getDemoGroup().getId();\n\t\t// Get Lines of Credit for a group\n\t\tList<LineOfCredit> groupLoCs = linesOfCreditService.getGroupLinesOfCredit(groupId, offset, limit);\n\t\tSystem.out.println(groupLoCs.size() + \" lines of credit for Group \" + groupId);\n\n\t}",
"void showNewLine(String lineNumber, String directionId);",
"@GetMapping(value = \"/lines\")\n public Set<Line> lines(@RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.TIME) LocalTime timestamp, @RequestParam int x,\n @RequestParam int y) {\n LOGGER.info(\"GET lines - params: timestamp={}, x={}, y={}\", timestamp, x, y);\n return lineService.getLines(timestamp, x, y);\n }",
"@Test\n\tpublic void lineParallelToTest() {\n\t\tassertTrue(firstLine.parallelTo(secondLine));\n\t\tassertFalse(firstLine.parallelTo(thirdLine));\n\t}",
"@Test\n\tpublic void testSetLinePoints() {\n\t\tPathwayModel p = new PathwayModel();\n\t\tGraphicalLine i1 = new GraphicalLine();\n\t\tLinePoint pt1 = i1.getLinePoints().get(0);\n\t\tLinePoint pt2 = i1.getLinePoints().get(1);\n\n\t\t// checks\n\t\tassertNull(i1.getPathwayModel());\n\t\tassertNull(pt1.getPathwayModel());\n\t\tassertNull(pt2.getPathwayModel());\n\n\t\t// checks\n\t\tassertFalse(p.hasPathwayObject(i1));\n\t\tassertFalse(p.getGraphicalLines().contains(i1));\n\t\tassertNull(i1.getPathwayModel());\n\t\tassertFalse(p.hasPathwayObject(pt1));\n\t\tassertFalse(p.hasPathwayObject(pt2));\n\n\t\t// set new points\n\t\tList<LinePoint> points = new ArrayList<LinePoint>();\n\t\tpt3 = i1.new LinePoint(10, 18);\n\t\tpt4 = i1.new LinePoint(20, 18);\n\t\tpoints.add(pt3);\n\t\tpoints.add(pt4);\n\t\ti1.setLinePoints(points);\n\n\t\tp.addGraphicalLine(i1);\n\n\t\t// checks\n\t\tassertTrue(p.hasPathwayObject(i1));\n\t\tassertTrue(p.getGraphicalLines().contains(i1));\n\t\tassertEquals(i1.getPathwayModel(), p);\n\t\tassertFalse(p.hasPathwayObject(pt1));\n\t\tassertFalse(p.hasPathwayObject(pt2));\n\t\tassertNull(pt1.getPathwayModel());\n\t\tassertNull(pt2.getPathwayModel());\n\t\tassertTrue(p.hasPathwayObject(pt3));\n\t\tassertTrue(p.hasPathwayObject(pt4));\n\t\tassertEquals(pt3.getPathwayModel(), p);\n\t\tassertEquals(pt4.getPathwayModel(), p);\n\t}",
"@Override\n public List<String> to_list_of_lines(String note, Integer debugLevel) {\n List<String> lst = super.to_list_of_lines(note, debugLevel);\n Glob.append_last_line(lst, String.format(\"activatioN\", _activation_));\n\n return lst;\n }",
"private void updateReportLines(JSONArray lines, int _template_id, String _type) throws Exception {\r\n\t\tthis.rfd.removeReportLines(_template_id, _type);\r\n\t\tfor (int i = 0; i < lines.length(); i++) {\r\n\t\t\tthis.rfd.addReportLine(_template_id, lines.getJSONArray(i).toString(), _type);\r\n\t\t}\r\n\t}",
"@Test\n public void testCrazyCalculator() {\n CrazyCalculator calculator = new CrazyCalculator();\n List<String> lines = new ArrayList<>();\n lines.add(\"1\");\n lines.add(\"\");\n lines.add(\"+@1L\");\n lines.add(\"-+3R\");\n lines.add(\"*-2R\");\n lines.add(\"//2R\");\n lines.add(\"1@1\");\n lines.add(\"5@5+4\");\n lines.add(\"2@3-12/6/5+3\");\n lines.add(\"-1+3\");\n lines.add(\"-1--3\");\n calculator.setLines(lines);\n calculator.processLines();\n List<String> results = calculator.getResults();\n assertEquals(\"should be 5\", 5, results.size());\n assertEquals(\"should be 2\", 2, Integer.parseInt(results.get(0)));\n assertEquals(\"should be 6\", 6, Integer.parseInt(results.get(1)));\n assertEquals(\"should be 14\", 14, Integer.parseInt(results.get(2)));\n assertEquals(\"should be -4\", -4, Integer.parseInt(results.get(3)));\n assertEquals(\"should be 3\", 3, Integer.parseInt(results.get(4)));\n }"
] | [
"0.5666391",
"0.56612873",
"0.56341684",
"0.53185415",
"0.53109765",
"0.5284734",
"0.52646846",
"0.5220729",
"0.5203854",
"0.5197542",
"0.51958054",
"0.5182841",
"0.5180998",
"0.5166635",
"0.514953",
"0.5147218",
"0.51382023",
"0.51183647",
"0.51028717",
"0.5022383",
"0.50223434",
"0.50214684",
"0.49996674",
"0.49859658",
"0.49554774",
"0.4943943",
"0.49232537",
"0.49223933",
"0.49170357",
"0.49154103",
"0.4912793",
"0.49054813",
"0.48915973",
"0.48685455",
"0.48551276",
"0.48510274",
"0.484709",
"0.48424882",
"0.48399556",
"0.48358348",
"0.48230037",
"0.48140442",
"0.48066866",
"0.47891876",
"0.47752044",
"0.47632545",
"0.476286",
"0.47618082",
"0.47532383",
"0.47516504",
"0.47451997",
"0.47435442",
"0.47337413",
"0.47299522",
"0.4726457",
"0.47183004",
"0.4716493",
"0.47141412",
"0.47132325",
"0.47111174",
"0.47055498",
"0.4691012",
"0.4688959",
"0.4682757",
"0.46776554",
"0.46757308",
"0.4674873",
"0.46696007",
"0.46600094",
"0.46517414",
"0.46494243",
"0.46411353",
"0.46409923",
"0.46344292",
"0.46341285",
"0.46309656",
"0.46274927",
"0.46261713",
"0.46241727",
"0.46170768",
"0.46126845",
"0.4609484",
"0.4603741",
"0.46023834",
"0.46016794",
"0.45999894",
"0.4598278",
"0.45968902",
"0.45966607",
"0.45899743",
"0.4587748",
"0.45872375",
"0.45864338",
"0.45843264",
"0.45833862",
"0.45791173",
"0.4572383",
"0.45704636",
"0.45697555",
"0.45695597"
] | 0.85903716 | 0 |
All the tests. In one long function, because starting up the embedded postgres takes so long and fills the log. | @Test
public void tests(TestContext context) {
async = context.async();
logger.info("Codex mock Test starting");
// Simple GET request to see the module is running and we can talk to it.
given()
.get("/admin/health")
.then()
.log().all()
.statusCode(200);
// Simple GET request without a tenant
given()
.get("/codex-instances")
.then()
.log().ifValidationFails()
.statusCode(400)
.body(containsString("Tenant"));
// Simple GET request before the tenant init
given()
.header(TEN)
.get("/codex-instances")
.then()
.log().ifValidationFails()
.statusCode(400)
.body(containsString("supertenant_mod_codex_mock.codex_mock_data"));
// Call the tenant interface to initialize the database
String tenants = "{\"module_to\":\"" + moduleId + "\"}";
logger.info("About to call the tenant interface " + tenants);
given()
.header(TEN).header(JSON)
.body(tenants)
.post("/_/tenant")
.then()
.log().ifValidationFails()
.statusCode(201);
// get all
given()
.header(TEN)
.get("/codex-instances")
.then()
.log().all() // .ifValidationFails()
.body(containsString("\"totalRecords\" : 4"))
.body(containsString("resultInfo"))
.statusCode(200);
// get one
given()
.header(TEN)
.get("/codex-instances/11111111-1111-1111-1111-111111111111")
.then()
.log().ifValidationFails()
.statusCode(200)
.body(containsString("alt title for 111111111111"))
.body(containsString("unitTest"));
// unknown id
given()
.header(TEN)
.get("/codex-instances/99999999-9999-9999-9999-987654321111")
.then()
.log().ifValidationFails()
.statusCode(404);
// query
given()
.header(TEN)
.get("/codex-instances?query=title=000000000001")
.then()
.log().ifValidationFails()
.body(containsString("Title of 000000000001"))
.statusCode(200);
given()
.header(TEN)
.get("/codex-instances?query=publisher=beta")
.then()
.log().ifValidationFails()
.body(containsString("Title of 111111111112"))
.body(containsString("unitTest"))
.statusCode(200);
given()
.header(TEN)
.get("/codex-instances?query=contributor=Contributor of 111111111111")
.then()
.log().ifValidationFails()
.body(containsString("Title of 111111111111"))
.statusCode(200);
given()
.header(TEN)
.get("/codex-instances?query=contributor=*111111111111*")
.then()
.log().ifValidationFails()
.body(containsString("Title of 111111111111"))
.statusCode(200);
// ServerChoice
given()
.header(TEN)
.get("/codex-instances?query=Title")
.then()
.log().ifValidationFails()
.statusCode(200);
// bad query - the query validation ought to catch this
// But it does not. Logs the "unable to load schema" message, and accepts all...
given()
.header(TEN)
.get("/codex-instances?query=UNKNOWNFIELD=foo")
.then()
.log().ifValidationFails()
.statusCode(200);
//.statusCode(422);
// limit
given()
.header(TEN)
.get("/codex-instances?offset=1&limit=2")
.then()
.log().ifValidationFails()
.body(containsString("111111111111"))
.body(containsString("111111111112"))
.statusCode(200);
// sort
given()
.header(TEN)
.get("/codex-instances?offset=0&limit=1&query=publisher=for sortBy publisher")
.then()
.log().ifValidationFails()
.body(containsString("alpha publisher"))
.statusCode(200);
// Query manipulations: resourceType -> type
given()
.header(TEN)
.get("/codex-instances?query=resourceType=books")
.then()
.log().ifValidationFails()
.body(containsString("\"totalRecords\" : 4"))
.statusCode(200);
// Query manipulations: isbn
given()
.header(TEN)
.get("/codex-instances?query=identifier/type=isbn=1111111111")
.then()
.log().ifValidationFails()
.body(containsString("\"totalRecords\" : 1"))
.body(containsString("111111111112"))
.statusCode(200);
// Query manipulations: issn
given()
.header(TEN)
.get("/codex-instances?query=identifier /type=issn = 1111111111")
.then()
.log().ifValidationFails()
.body(containsString("\"totalRecords\" : 1"))
.body(containsString("000000000001"))
.statusCode(200);
// All done
logger.info("codex Mock Test done");
async.complete();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Before\n public void setupDatabase() {\n graphDb = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder().newGraphDatabase();\n registerShutdownHook(graphDb);\n \n// server = new WrappingNeoServerBootstrapper((GraphDatabaseAPI) graphDb);\n// server.start();\n \n ProcessEngineConfiguration processEngineConfiguration = new ProcessEngineConfiguration();\n processEngineConfiguration.setGraphDatabaseService(graphDb);\n processEngine = processEngineConfiguration.buildProcessEngine();\n }",
"@BeforeEach\n public void setUp() throws ManagedProcessException, SQLException {\n // See https://github.com/vorburger/MariaDB4j\n DBConfigurationBuilder configBuilder = DBConfigurationBuilder.newBuilder();\n configBuilder.setPort(0); // Setting port to 0 to let configBuilder choose a free open port.\n db = DB.newEmbeddedDB(configBuilder.build());\n db.start();\n db.source(\"database.sql\");\n connection = DriverManager.getConnection(db.getConfiguration().getURL(\"test\"));\n mysqlDatabase = new MysqlDatabase(connection);\n }",
"@BeforeClass\n public static void setUpAll() throws SQLException, IOException {\n new P6TestFramework(\"blank\") {\n };\n }",
"@Before\n public void setUp() throws Exception {\n dataSource1 = createDataSource(\"jdbc:hsqldb:mem:foodb\");\n createTableWithTestData(dataSource1);\n\n dataSource2 = createDataSource(\"jdbc:hsqldb:mem:bardb\");\n createTableWithTestData(dataSource2);\n }",
"public void setup() throws DatabaseTestException;",
"@Before\n public void initTests() {\n\n // Always start from known state\n jdbcTemplate.execute(\"DELETE FROM assessment_rubric;\" +\n \"DELETE FROM user_group;\" +\n \"DELETE FROM learning_process;\" +\n \"DELETE FROM learning_supervisor;\" +\n \"DELETE FROM learning_process_status;\" +\n \"DELETE FROM rubric_type;\" +\n \"DELETE FROM learning_student;\");\n\n jdbcTemplate.execute(\n \"INSERT INTO learning_process_status(id,name,description) values (0,'CEPTE Process Created',' Initial status for a peer evaluation process');\\n\" +\n \"INSERT INTO learning_process_status(id,name,description) values (1,'CEPTE Process Available','The Learning process can be accessed by students');\\n\" +\n \"INSERT INTO learning_process_status(id,name,description) values (2,'CEPTE Process Finished','The Learning process is finished');\\n\" +\n \"INSERT INTO learning_process_status(id,name,description) values (3,'CEPTE Process results available','The Learning process is finished and results are published');\");\n\n jdbcTemplate.execute(\"INSERT INTO rubric_type(id,type) values (\"+sRubricTypeTestId+\",'Assessment of Contents');\\n\" +\n \"INSERT INTO rubric_type(id,type) values (2,'Assessment of Assessments');\\n\" +\n \"INSERT INTO rubric_type(id,type) values (3,'Group based Assessment');\\n\" +\n \"INSERT INTO rubric_type(id,type) values (4,'Group members Assessment');\");\n\n jdbcTemplate.execute(\"INSERT INTO learning_student(username, first_name, last_name) VALUES ('usernameStudent1', 'studentName1', 'studentName1');\\n\" +\n \"INSERT INTO learning_student(username, first_name, last_name) VALUES ('usernameStudent2', 'studentName2', 'studentName2')\");\n\n jdbcTemplate.execute(\"INSERT INTO learning_supervisor(username, first_name, last_name) VALUES ('user', 'supervisorName', 'supervisorLastName')\");\n\n jdbcTemplate.execute(\"INSERT INTO learning_process(id,description, end_date_time, is_cal1_available, is_cal2_available, is_cal3_available, is_calf_available, limit_cal1, limit_cal2, limit_rev1, limit_rev2, \" +\n \"name, starting_date_time, weight_param_a, weight_param_b, weight_param_c, weight_param_d, weight_param_e, status_id, supervisor_id)\\n\" +\n \" VALUES (\"+sLearningProcessTestId+\",'description', current_timestamp, false, false, false, false, 0, 0, 0, 0, 'test', current_timestamp, 20, 20, 20, 20, 20, 1, 'user');\");\n\n\n }",
"@BeforeAll\n public static void setupDataSource() {\n dataSource = new SingleConnectionDataSource();\n dataSource.setUrl(\"jdbc:postgresql://localhost:5432/integral-project-test\");\n dataSource.setUsername(\"postgres\");\n dataSource.setPassword(\"postgres1\");\n dataSource.setAutoCommit(false);\n }",
"@BeforeAll\n public void init() throws SQLException, IOException {\n dataSource = DBCPDataSource.getDataSource();\n\n DatabaseUtil databaseUtil = new DatabaseUtil(dataSource);\n databaseUtil.dropTables();\n\n String initUsersTable = \"create table users (id serial primary key, email varchar not null, password varchar not null, birthday date);\";\n String initPostsTable = \"create table posts (id serial primary key, image varchar not null, caption varchar, likes integer not null default 0, userId integer not null references users(id));\";\n\n try (Connection connection = dataSource.getConnection()) {\n Statement statement = connection.createStatement();\n\n statement.execute(initUsersTable);\n statement.execute(initPostsTable);\n\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2000, 01, 01));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2001, 02, 01));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2000, 05, 06));\n addUser(\"[email protected]\", \"HASHED_PASSWORD\", new Date(2001, 07, 24));\n }\n\n loggerUtil = new LoggerUtil();\n logFilePath = Paths.get(logDirectory, name + \".log\");\n logger = loggerUtil.initFileLogger(logFilePath.toAbsolutePath().toString(), name);\n\n Migrate migrate = new Migrate(dataSource);\n migrate.up(name);\n }",
"public void createIntegrationTestDatabase() throws SQLException {\n\n final Connection connection = DriverManager.getConnection(url + \"postgres\", databaseProperties);\n\n connection.prepareStatement(\"DROP DATABASE IF EXISTS test_disassembly\").execute();\n connection.prepareStatement(\"DROP DATABASE IF EXISTS test_import\").execute();\n connection.prepareStatement(\"DROP DATABASE IF EXISTS test_empty\").execute();\n\n connection.prepareStatement(\"CREATE DATABASE test_disassembly\").execute();\n connection.prepareStatement(\"CREATE DATABASE test_import\").execute();\n connection.prepareStatement(\"CREATE DATABASE test_empty\").execute();\n\n connection.close();\n\n createDatabase(TEST_IMPORT);\n createDatabase(TEST_DISASSEMBLY);\n }",
"public void startTesting() {\n\n\t\t//The following loop will be done nstest.MAX_ITERATIONS times after which we exit the thread\n\t\t// Note that the connection is frequently opened & closed. Autocommit is left on, so\n\t\t// per connection, we make MAX_OPERATIONS_PER_CONN number of transaction batches\n\t\t// Each transaction batch works over MAX_LOW_STRESS_ROWS number of rows, with each row working\n\t\t// as one transaction (since autocommit is on)\n\t\tfor (int i = 0; i < NsTest.MAX_ITERATIONS; i++) {\n\n\t\t\t//the connection will now open. It closes at the end of the loop\n\t\t\tconnex = getConnection();\n\t\t\tif (connex == null) {\n\t\t\t\tNsTest.logger.println(\"FAIL: \" + getThread_id()\n\t\t\t\t\t\t+ \" could not get database connection\");\n\t\t\t\treturn; //quit\n\t\t\t}\n\n\t\t\t//set autocommit to false to keep transaction control in your hand\n\t\t\t//Too many deadlocks amd locking issues if this is not commented out\n\t\t\ttry {\n\t\t\t\tconnex.setAutoCommit(false);\n\t\t\t} catch (Exception e) {\n\t\t\t\tNsTest.logger.println(\"FAIL: \" + getThread_id()\n\t\t\t\t\t\t+ \"'s setAutoCommit() failed:\");\n\t\t\t\tprintException(\"setting AutoCommit in Tester2\", e);\n \n // if you can't change the autocommit state, the connection is unusable.\n // get out of here.\n return;\n\t\t\t}\n\n\t\t\t//also set isolation level to Connection.TRANSACTION_READ_UNCOMMITTED to reduce number of\n\t\t\t// deadlocks\n\t\t\tsetIsolationLevel(Connection.TRANSACTION_READ_UNCOMMITTED);\n\n\t\t\t//Now do MAX_OPERATIONS_PER_CONN transaction batches within this connection\n\t\t\tfor (int numOp = 1; numOp < NsTest.MAX_OPERATIONS_PER_CONN; numOp++) {\n\n\t\t\t\t//Now loop through nstest.MAX_LOW_STRESS_ROWS number of times/rows\n\t\t\t\t// Here, we do randomly do either insert/update/delete operations or one select\n\t\t\t\tint rnum = (int) (Math.random() * 100) % 4; //returns 0, 1, 2, 3\n\n\t\t\t\tswitch (rnum) {\n\t\t\t\tcase 0: //do a select operation\n\t\t\t\t\ttry {\n\t\t\t\t\t\tint numSelected = doSelectOperation(NsTest.MAX_LOW_STRESS_ROWS);\n\t\t\t\t\t\tNsTest.logger.println(getThread_id() + \" selected \"\n\t\t\t\t\t\t\t\t+ numSelected + \" rows\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tNsTest.logger.println(\"doSelect in thread \" + getThread_id()\n\t\t\t\t\t\t\t\t+ \" threw \");\n\t\t\t\t\t\tprintException(\"doSelectOperation() in Tester2\", e);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 1: //do Insert/Update/Delete operations\n\t\t\t\tcase 2: //do Insert/Update/Delete operations\n\t\t\t\tcase 3: //do Insert/Update/Delete operations\n\t\t\t\t\tfor (int j = 0; j < NsTest.MAX_LOW_STRESS_ROWS; j++) {\n\t\t\t\t\t\tdoIUDOperation();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//Letting this be even though autocommit is on so that if later on if we decide to turn\n\t\t\t\t// autocommit off, this automatically takes effect.\n\t\t\t\t//commit\n\t\t\t\ttry {\n\t\t\t\t\tconnex.commit();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tNsTest.logger.println(\"FAIL: \" + getThread_id()\n\t\t\t\t\t\t\t+ \"'s commit() failed:\");\n\t\t\t\t\tprintException(\"committing Xn in Tester2\", e);\n \n // if you can't commit, the connection is unusable.\n // get out of here.\n return;\n\t\t\t\t}\n\t\t\t}//end of for(int numOp=1...)\n\n\t\t\t//close the connection for the next iteration\n\t\t\tcloseConnection();\n\n\t\t}//end of for (int i=0;...)\n\n\t\tNsTest.logger.println(\"Thread \" + getThread_id() + \" is now terminating\");\n\n\t}",
"@Before\n public void setUp() {\n DB.sql2o = new Sql2o(\"jdbc:postgresql://localhost:5432/hair_salon_test\", \"alexander\", \"1234\");\n }",
"@BeforeClass(groups = {\"multi-master\"}, timeOut = SETUP_TIMEOUT)\n public void beforeClass() {\n\n client = this.clientBuilder().build();\n database = createDatabase(client, databaseId);\n }",
"@Before\n public void setUp() {\n start(fakeApplication(inMemoryDatabase(), fakeGlobal()));\n }",
"private void setupDBs()\n {\n\t mSetupDBTask = new SetupDBTask(this);\n\t\tmSetupDBTask.execute((Void[])null);\n }",
"private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }",
"@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao(Event.class);\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tDatabaseProvider.setInstance(new DerbyDatabase());\n\t\tdb = DatabaseProvider.getInstance();\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\r\n\r\n\t\ttry {\r\n\t\t\tDatabaseManager.setPatternNumber(1);\r\n\t\t\tDatabaseManager.getSingleton().openConnection();\r\n\r\n\t\t\tSingleTableCreator.dropAllTables();\r\n\t\t\tSingleTableCreator.createTables();\r\n\t\t\tSingleTableCreator.addTestRows();\r\n\r\n\t\t\tTestEVERYTHING.testRunAllTheTests();\r\n\r\n\t\t\tSystem.out.println(\"ya done diddly did it\");\r\n\r\n\t\t\tDatabaseManager.getSingleton().closeConnection();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tDatabaseException.detectError(e, \"Runnable - Single\");\r\n\t\t}\r\n\t}",
"@BeforeClass\n public static void setup() {\n getDatabase(\"mandarin\");\n }",
"@Before\r\n\tpublic void setUp() throws SQLException {\n\t\tconn = DBManager.getInstance().getConnection();\r\n\t}",
"protected void setUp() throws Exception {\r\n super.setUp();\r\n target = new JPADigitalRunTrackStatusDAO();\r\n target.setUnitName(\"persistence_unit\");\r\n target.setSessionContext(context);\r\n }",
"@Test(timeout = 100)\n public void testAccessToDB() {\n System.out.println(\"Starting DB access test\");\n }",
"protected void setUp() throws Exception {\r\n super.setUp();\r\n UnitTestHelper.addConfig(CONFIG_FILE);\r\n\r\n defaultDBUserRetrieval = new MockDBUserRetrieval(NAMESPACE);\r\n defaultDBProjectRetrieval = new MockDBProjectRetrieval(NAMESPACE);\r\n\r\n // Retrieves DBConnectionFactory.\r\n defaultConnection = ((MockDBUserRetrieval) defaultDBUserRetrieval).getConnection();\r\n\r\n cleanupDatabase();\r\n\r\n // Inserts.\r\n UnitTestHelper.insertIntoComponentCataLog(defaultConnection);\r\n UnitTestHelper.insertIntoComponentVersions(defaultConnection);\r\n UnitTestHelper.insertIntoCompForumXref(defaultConnection);\r\n UnitTestHelper.insertIntoTechnologyTypes(defaultConnection);\r\n UnitTestHelper.associateComponentTechnologies(defaultConnection);\r\n\r\n UnitTestHelper.insertIntoEmail(defaultConnection);\r\n UnitTestHelper.insertIntoUser(defaultConnection);\r\n UnitTestHelper.insertIntoUserRating(defaultConnection);\r\n UnitTestHelper.insertIntoUserReliability(defaultConnection);\r\n }",
"@Before\n public void prepare() {\n MetaStore metadb = prepareTestDB();\n testObj = new SdbSchemeRewriter(metadb.getAllDBs().get(0));\n }",
"@BeforeEach\n void setUp() {\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n noteDao = new GenericDao(Note.class);\n }",
"public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }",
"@BeforeEach\n void setUp() {\n dao = new GenericDao(User.class);\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n }",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/campground\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\n\t}",
"@Before\n\tpublic void setUp() {\n\t\tgateInfoDatabase = new GateInfoDatabase();\t\t\n\t}",
"private void execHsqlTest(Configuration config) throws Exception\n {\n Evaluator eval = new Evaluator(config);\n long startTime = System.currentTimeMillis();\n eval.run();\n long runTime = System.currentTimeMillis() - startTime;\n assertTrue(runTime > 10000);\n conn = eval.getConnection();\n checkCount(\"tbl1\", 100);\n checkCount(\"tbl2\", 100);\n checkCount(\"tbl3\", 10000);\n int count = 0;\n for (Iterator i = eval.getThreads().iterator(); i.hasNext();)\n {\n count++;\n EvaluatorThread t = (EvaluatorThread)i.next();\n assertFalse(t.isAlive());\n }\n assertEquals(15, count);\n count = 0;\n for (Iterator i = eval.getStats(); i.hasNext(); )\n {\n Statistics s = (Statistics)i.next();\n count++;\n assertEquals(0, s.getDeletes());\n assertEquals(0, s.getUpdates());\n assertEquals(0, s.getInserts());\n if (count < 6)\n {\n assertEquals(1, (int)s.getInterval());\n }\n }\n assertEquals(6, count);\n }",
"public static void main(String[] args) {\n boolean test1 = false;\n boolean test2 = false;\n Connection conn = null;\n String username = \"postgres\";\n String password = \"CSCI112ONLINE\"; //Update this if you used a different password\n\n /**\n * Test 1: Connecting to a database that doesn't exist\n */\n try {\n conn = DriverManager.getConnection(\"jdbc:postgresql://localhost/abcd\", username, password); //Create connection to database server\n System.out.println(\"Connected to database.\");\n }\n catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n System.out.println(\"This is expected. We didn't make an 'abcd' database.\");\n System.out.println(\"Test 1 Passed.\");\n test1 = true;\n }\n finally {\n try {\n conn.close(); //Try to close connection\n System.out.println(\"Connection to 'abcd' closed.\");\n }\n catch(Exception e) {\n //Connection wasn't opened; Do nothing.\n System.out.println(\"Can't close connection to 'abcd'. (This is OK because the connection was never opened.)\");\n }\n }\n\n System.out.println();\n\n /**\n * Test 2: Connecting to a database that does/should exist\n */\n try {\n conn = DriverManager.getConnection(\"jdbc:postgresql://localhost/Module8\", username, password); //Create connection to database server\n System.out.println(\"Connected to 'CSCI112' database.\");\n }\n catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n System.out.println(\"This should NOT happen. Check that Postgres is running (start pgAdmin), check spelling of database name in URL, and check username/password.\");\n }\n finally {\n try {\n conn.close(); //Try to close connection\n System.out.println(\"Connection to 'CSCI112' closed.\");\n System.out.println(\"Test 2 Passed.\");\n test2 = true;\n }\n catch(Exception e) {\n //Connection wasn't opened; Do nothing.\n System.out.println(\"Can't close connection to 'CSCI112'. (This shouldn't be printed.)\");\n }\n }\n\n /**\n * How'd it go?\n */\n if(test1 && test2) {\n System.out.println(\"\\nEverything is working correctly!\");\n }\n else {\n System.out.println(\"\\nTest was unsuccessful. Check the database server is running and that the URL and database names are correct.\");\n }\n\n }",
"@BeforeClass\n public static void beforeClass()\n {\n DatabaseDescriptor.daemonInitialization();\n }",
"@BeforeEach\n void setUp(){\n DatabaseTwo database = DatabaseTwo.getInstance();\n database.runSQL(\"cleanAll.sql\");\n\n genericDao = new GenericDao(CompositionInstrument.class);\n }",
"@Before\n public void prepare() throws Exception {\n Operation operation =\n sequenceOf(InitializeOperations.DELETE_ALL);\n DbSetup dbSetup = new DbSetup(new DataSourceDestination(dataSource), operation);\n dbSetup.launch();\n }",
"@Before\n public void testSetup(){\n \tjdbcTemplate.batchUpdate(new String[]{\n \t\t\t\"INSERT INTO taxon (id,uninomial,binomial,author,statusid,rankid,referenceid) VALUES\"\n \t\t\t+ \"(9470,'Verbena','×perriana','Moldenke',1,14,105),\"\n \t\t\t+ \"(9460,'Hybrid','Parent 1','Schkuhr ex Willdenow',1,14,105),\"\n \t\t\t+ \"(9466,'Hybrid','Parent 2','Marshall',1,14,105)\",\n \t\t\t\"INSERT INTO taxonomy (parentid,childid) VALUES (73,9470)\",\n \t\t\t\"INSERT INTO taxonomy (parentid,childid) VALUES (9466,1)\",\n \t\t\t\"INSERT INTO taxonhybridparent (id,childid,parentid) VALUES (729,9470,9460),(730,9470,9466)\",\n \t\t\t\"INSERT INTO taxonhabit (id,taxonid,habitid) VALUES (730,9470,1)\"});\n }",
"private void test() throws Exception {\r\n session.execute(new Set(Prop.SERIALIZE, true));\r\n // loop through all databases\r\n for(int d = 0; d < databases.size(); d++) {\r\n // open database and loop through all queries\r\n session.execute(new Open(databases.get(d)));\r\n for(int q = 0; q < queries.size(); q++) {\r\n results[q] = addSortedServer(results[q], query(d, q));\r\n }\r\n session.execute(new Close());\r\n }\r\n }",
"@Before\n\tpublic void setup() {\n\t\tdatabase = new DatabaseLogic();\n\t}",
"@Test\n public void test1() throws SQLException {\n EmbeddedDatabase db = new EmbeddedDatabaseBuilder()\n .generateUniqueName(true)\n .setType(EmbeddedDatabaseType.H2)\n .setScriptEncoding(\"UTF-8\")\n .ignoreFailedDrops(true)\n .addScript(\"schema.sql\")\n .addScripts(\"data.sql\")\n .build();\n\n JdbcTemplate jdbcTemplate = new JdbcTemplate(db);\n jdbcTemplate.execute(\"insert into user (userName, password) values ('xxx1', 'zzz')\");\n jdbcTemplate.execute(\"insert into user (userName, password) values ('xxx2', 'zzz')\");\n ResultSet resultSet = db.getConnection().createStatement().executeQuery(\"select * from user\");\n DBTablePrinter.printResultSet(resultSet);\n\n Connection connection = db.getConnection();\n DBTablePrinter.printTable(connection, \"user\");\n\n // perform actions against the db (EmbeddedDatabase extends javax.sql.DataSource)\n\n db.shutdown();\n }",
"public void test_prepare() throws Throwable {\r\n\t\tSET_LONG_NAME(\"system.cli.simple\");\r\n\t DECLARE(TEST_PING);\r\n\t DECLARE(TEST_PROCESSLIST);\r\n\t DECLARE(TEST_PROCESSLIST_LOG);\r\n\t}",
"@Test\n\tpublic void populatedDB() throws URISyntaxException{\n\t\tString pass;\n\t\t LoginController controller = new LoginController();\n\t\t \n\t\tpass = controller.gimmeSalt(\"PASSWORD\");\n pass = controller.hashBrowns(pass);\n\t\tdb.insertUser(\"TESTER\", pass, \"EMAIL\",666);\n\t\t\n\t\tdb.insertBusiness(\"Test1\",\"Somewhere\",7);\n\t\tdb.insertBusiness(\"Test2\",\"Somewhere\",8);\n\t\tdb.insertBusiness(\"Test3\",\"Somewhere\",9);\n\t\tlong start=12418*1000*60;\n\t\tlong end=912518*1000*60;\n\t\tdb.insertEvent(\"t1\",\"This is a tester\",start,end,\"Test1\",\"Somewhere\",1231);\n\t\t start=124118*1000*60;\n\t\tend=912518*1000*60;\n\t\tdb.insertEvent(\"t2\",\"This is a tester\",start,end,\"Test1\",\"Somewhere\",674754);\n\t\t start=412418*1000*60;\n\t\tend=912518*1000*60;\n\t\tdb.insertEvent(\"t3\",\"This is a tester\",start,end,\"Test2\",\"Somewhere\",241254);\n\t\tdb.insertEvent(\"t4\",\"This is a tester\",start,end,\"Test2\",\"Somewhere\",5432);\n\t\t start=1924218*1000*60;\n\t\t end=912518*1000*60;\n\t\tdb.insertEvent(\"t5\",\"This is a tester\",start,end,\"Test3\",\"Somewhere\",12);\n\t\t start=124318*1000*60;\n\t\t end=912518*1000*60;\n\t\tdb.insertEvent(\"t6\",\"This is a tester\",start,end,\"Test3\",\"Somewhere\",1241);\n\t\t\n\t\tdb.insertRelation(\"TESTER\",\"Test1\");\n\t\tdb.insertRelation( \"TESTER\",\"Test2\" );\n\t\tdb.insertRelation(\"TESTER\",\"Test3\");\n\t}",
"@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/nationalpark\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\t}",
"private void runTest(final Node me) {\n if (!initialized) {\n initStressTest();\n }\n\n List<Row> runs = engine.getSqlTemplate().query(selectControlSql);\n\n for (Row run : runs) {\n int runId = run.getInt(\"RUN_ID\");\n int payloadColumns = run.getInt(\"PAYLOAD_COLUMNS\");\n int initialSeedSize = run.getInt(\"INITIAL_SEED_SIZE\");\n long duration = run.getLong(\"DURATION_MINUTES\");\n\n String status = engine.getSqlTemplate().queryForString(selectStatusSql, runId, me.getNodeId());\n\n if (isMasterNode(me) && StringUtils.isBlank(status)) {\n initStressTestRowOutgoing(payloadColumns, runId, initialSeedSize);\n initStressTestRowIncoming(payloadColumns);\n long commitRows = run.getLong(\"SERVER_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"SERVER_COMMIT_SLEEP_MS\");\n\n engine.getSqlTemplate().update(insertStatusSql, runId, me.getNodeId(), \"RUNNING\");\n for (Node client : engine.getNodeService().findTargetNodesFor(NodeGroupLinkAction.W)) {\n engine.getSqlTemplate().update(insertStatusSql, runId, client.getNodeId(), \"RUNNING\");\n }\n\n fillOutgoing(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n\n } else if (!isMasterNode(me) && !StringUtils.isBlank(status) && status.equals(\"RUNNING\")) {\n long commitRows = run.getLong(\"CLIENT_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"CLIENT_COMMIT_SLEEP_MS\");\n\n fillIncoming(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n }\n }\n }",
"@Before\n public void initDb() {\n mDatabase = Room.inMemoryDatabaseBuilder(InstrumentationRegistry.getContext(),\n ToDoDatabase.class).build();\n }",
"public AbstractDatabaseMigrationTest() throws Exception {\n super();\n this.flyway = new Flyway ();\n this.flyway.setDataSource(\"jdbc:postgresql:testdb\", \"postgres\", \"postgres\");\n this.flyway.setCallbacks ( new DatabaseMigrationDataLoader ( getDataLocation () ) );\n }",
"public void setUp() {\n deleteTheDatabase();\n }",
"public void setUp() {\n deleteTheDatabase();\n }",
"protected void setUp() throws Exception {\n super.setUp();\n FailureTestHelper.loadConfig();\n FailureTestHelper.loadData();\n dao = new SQLServerGameDataDAO(\"com.orpheus.game.persistence.SQLServerGameDataDAO\");\n }",
"public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }",
"@BeforeEach\n public void setUp() throws Exception {\n\n helper = new DatabaseConfigurationTestHelper();\n helper.setUp();\n }",
"@Before\r\n public void initDb() throws Exception {\n mDatabase = Room.inMemoryDatabaseBuilder(ApplicationProvider.getApplicationContext(),\r\n MyDatabase.class)\r\n // allowing main thread queries, just for testing\r\n .allowMainThreadQueries()\r\n .build();\r\n\r\n mTemplateDao = mDatabase.templateDao();\r\n }",
"@Before\r\n\tpublic void setup() throws Exception {\n\t\tinitializeInMemoryDatabase();\r\n\r\n\t\t// Created from org.openmrs.test.CreateInitialDataSet\r\n\t\t// without line for \"concept_synonym\" table (not exist)\r\n\t\t// using 1.4.4-createdb-from-scratch-with-demo-data.sql\r\n\t\t// Removed all empty short_name=\"\" from concepts\r\n\t\t// Added missing description to relationship_type\r\n\t\t// Removed all patients and related patient/person info (id 2-500)\r\n\t\t// Removed all concepts except those in sqldiff\r\n\t\texecuteDataSet(\"initial-openmrs-dataset.xml\");\r\n\r\n\t\t// Includes Motech data added in sqldiff\r\n\t\texecuteDataSet(\"motech-dataset.xml\");\r\n\t\t\r\n\t\t// Add example Location, Facility and Community\r\n\t\texecuteDataSet(\"facility-community-dataset.xml\");\r\n\r\n\t\tauthenticate();\r\n\r\n\t\tactivator.startup();\r\n\t}",
"@Test\n void migrate() {\n }",
"public static void main(String[] args) {\n\t\t\n\t\ttestQuery();\n\t\t//testInsert();\n\t\t\n\t}",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\r\n\t\tpd = new PreparedData();\r\n\r\n\t}",
"@Before\n public void seedDatabase() {\n final String seedDataScript = loadAsString(\"pacmabooks.sql\");\n\n try (Connection connection = ds.getConnection()) {\n for (String statement : splitStatements(new StringReader(\n seedDataScript), \";\")) {\n connection.prepareStatement(statement).execute();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n System.out.println(\"--------------------------------------------------- Seeding DID NOT WOKK\");\n e.printStackTrace();\n throw new RuntimeException(\"Failed seeding database\", e);\n }\n System.out.println(\"Seeding works\");\n\n }",
"@BeforeEach\n void setUp() {\n\n\n // repopulate the table I'm testing\n com.lukebusch.test.util.Database database = com.lukebusch.test.util.Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao( User.class );\n\n }",
"public void testHsqlSample_Heavy() throws Exception\n {\n execHsqlTest(new Configuration(\"config/evaluator/hsql_sample.xml\"));\n }",
"protected void setUp() throws Exception {\n super.setUp();\n\n TestHelper.loadConfigurations();\n TestHelper.executeDBScript(TestHelper.SCRIPT_FILL);\n\n generator = IDGeneratorFactory.getIDGenerator(\"phase_id_seq\");\n\n persistence =\n new InformixPhasePersistence(\n new DBConnectionFactoryImpl(TestHelper.CONNECTION_FACTORY_NAMESPACE), \"informix\", generator);\n persistence.setUserManualCommit(true);\n }",
"@Test\n public void shouldExecuteTransactions() {\n try (\n // creatingMongoDBContainer {\n final MongoDBContainer mongoDBContainer = new MongoDBContainer(DockerImageName.parse(\"mongo:4.0.10\"))\n // }\n ) {\n // startingMongoDBContainer {\n mongoDBContainer.start();\n // }\n executeTx(mongoDBContainer);\n }\n }",
"@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void setUp() throws IOException\r\n\t{\r\n\r\n\t\tgraphDb = new GraphDatabaseFactory().newEmbeddedDatabase( dbPath );\r\n\t\tSystem.out.println(\"Connecting to the database...\"); \r\n\t\tSystem.out.println(\"Done!\");\r\n\r\n\t}",
"@Before\n public void setUp() throws Exception {\n HashMap<String, String> prop = PropertyReader.getProperties(ORACLEPROP);\n if (prop.get(\"schema\") != null && !prop.get(\"schema\").isEmpty())\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"), prop.get(\"schema\"));\n else\n databaseTester = new JdbcDatabaseTester(prop.get(\"dbClass\"), prop.get(\"dbURL\"), prop.get(\"user\"), prop.get(\"pass\"));\n\n // initialize your dataset here\n IDataSet dataSet = getDataSet();\n\n databaseTester.setDataSet(dataSet);\n // will call default setUpOperation\n databaseTester.onSetup();\n }",
"@Override\n protected void setUp() throws Exception {\n super.setUp();\n events = new ArrayList<>();\n accounts = new ArrayList<>();\n attending = new ArrayList<>();\n\n for (int i = 0; i < NUM; i++) {\n Event e = makeRandomEvent();\n DBManager.addEvent(e);\n Event e2 = DBManager.getEventById(e.eid);\n assertTrue(e.equals(e2));\n events.add(e);\n\n Account a = makeRandomAccount();\n DBManager.addAccount(a);\n Account a2 = DBManager.getAccountById(a.getUid());\n assertTrue(a.equals(a2));\n accounts.add(a);\n }\n }",
"@BeforeClass\n public void setUp() throws Exception {\n HiveConf conf = new HiveConf();\n conf.set(\"hive.exec.post.hooks\", \"\");\n conf.set(\"hive.metastore.event.listeners\", \"\");\n\n SessionState ss = new SessionState(conf);\n ss = SessionState.start(ss);\n SessionState.setCurrentSessionState(ss);\n\n // Initialize 'driverWithNoHook' with HS2 hook disabled and HMS hook disabled.\n driverWithNoHook = new Driver(conf);\n\n super.setUp();\n }",
"@Before\n public void setUp() throws Exception {\n String connectionString = \"jdbc:h2:mem:testing;INIT=RUNSCRIPT from 'classpath:db/create.sql'\";\n Sql2o sql2o = new Sql2o(connectionString, \"\", \"\");\n departmentDao = new Sql2oDepartmentDao(sql2o); //ignore me for now\n conn = sql2o.open(); //keep connection open through entire test so it does not get erased\n }",
"@BeforeEach\n void testDataSource() throws SQLException {\n jdbcds = new JdbcDataSource();\n jdbcds.setUrl(\"jdbc:h2:mem:dbmembers;DB_CLOSE_DELAY=-1\");\n Flyway.configure().dataSource(jdbcds).load().migrate();\n }",
"public void setUp() {\n deleteAllRecords();\n }",
"private void insertTestUsers() {\n\t\tinitDb();\n\t\tinsertUser(\"aaa\", \"11\");\n\t\tinsertUser(\"bbb\", \"22\");\n\t\tinsertUser(\"ccc\", \"33\");\n\t}",
"@After\n public void tearDown() throws Exception {\n databaseTester.onTearDown();\n }",
"@BeforeClass\n\tpublic static void setUp() throws RemoteException {\n\t\tSystem.out.println(\n\t\t\t\t\"----------------------------------------Test Recovery Setting up----------------------------------------\");\n\t\tSimpleDB.init(\"simpleDB\");\n\t\t// create a registry specific for the server on the default port\n\t\treg = LocateRegistry.createRegistry(DEFAULT_PORT);\n\t\t// and post the server entry in it\n\t\treg.rebind(BINDING_NAME, new RemoteDriverImpl());\n\t\tSystem.out.println(\n\t\t\t\t\"----------------------------------------Test Recovery Set Up done----------------------------------------\");\n\t}",
"private void initStressTest() {\n\n createChannels();\n\n engine.getDatabasePlatform().getDdlBuilder().setDelimitedIdentifierModeOn(false);\n\n createStressTestControlTable();\n if (!engine.getTriggerRouterService().doesTriggerExistForTable(STRESS_TEST_CONTROL)) {\n addStressTestControlTriggers();\n }\n\n createStressTestStatusTable();\n if (!engine.getTriggerRouterService().doesTriggerExistForTable(STRESS_TEST_STATUS)) {\n addStressTestStatusTriggers();\n }\n\n engine.syncTriggers();\n\n initialized = true;\n }",
"@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleanDb.sql\");\n\n\n genericDao = new GenericDao(UserRoles.class);\n }",
"protected void setUp() throws Exception {\r\n\t\tmodelDS = new ServiceModelDS(\"dbtest\",\"pizzeria_service\");\r\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost/dbtest\", \"root\", \"\");\r\n\t\tconnection.setAutoCommit(false);\r\n\t}",
"@BeforeAll\n public void prepare() {\n }",
"@Before\n\tpublic void onSetUp() {\n\t\tSystem.out.println(\"Attempting to drop old table\");\n\n\t\t// 1. drop function\n\t\ttry {\n\t\t\tqueryService.updateBySQL(\"DROP FUNCTION FUNC_RETURN_NUM\",\n\t\t\t\t\tnew String[] {}, new Object[] {});\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Fail to DROP Function.\");\n\t\t}\n\n\t\t// 2. drop procedure\n\t\ttry {\n\t\t\tqueryService.updateBySQL(\"DROP PROCEDURE PROC_TOCHAR_SYSDATE\",\n\t\t\t\t\tnew String[] {}, new Object[] {});\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Fail to DROP Procedure.\");\n\t\t}\n\n\t\t// 3. drop package\n\t\ttry {\n\t\t\tqueryService.updateBySQL(\"DROP PACKAGE PKG_REFCURSOR_TEST\",\n\t\t\t\t\tnew String[] {}, new Object[] {});\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Fail to DROP Package.\");\n\t\t}\n\n\t\t// 4. create function for test\n\t\tqueryService\n\t\t\t\t.updateBySQL(\n\t\t\t\t\t\t\"create FUNCTION FUNC_RETURN_NUM (v_in1 IN number) RETURN number IS BEGIN return 1; END;\",\n\t\t\t\t\t\tnew String[] {}, new Object[] {});\n\n\t\t// 5. create procedure for test\n\t\tqueryService\n\t\t\t\t.updateBySQL(\n\t\t\t\t\t\t\"CREATE OR REPLACE PROCEDURE PROC_TOCHAR_SYSDATE ( \"\n\t\t\t\t\t\t\t\t+ \" OUT_RESULT OUT VARCHAR2, \"\n\t\t\t\t\t\t\t\t+ \" IN_CONDITION IN DATE \"\n\t\t\t\t\t\t\t\t+ \" ) \"\n\t\t\t\t\t\t\t\t+ \" AS \"\n\t\t\t\t\t\t\t\t+ \" BEGIN \"\n\t\t\t\t\t\t\t\t+ \" SELECT \"\n\t\t\t\t\t\t\t\t+ \" to_char(IN_CONDITION, 'YYYYMMDD') as today into OUT_RESULT \"\n\t\t\t\t\t\t\t\t+ \" FROM dual; \"\n\t\t\t\t\t\t\t\t+ \" EXCEPTION \"\n\t\t\t\t\t\t\t\t+ \" WHEN OTHERS THEN \"\n\t\t\t\t\t\t\t\t+ \" DBMS_OUTPUT.PUT_LINE( TO_CHAR(SQLCODE) || ' : ' || SQLERRM ); \"\n\t\t\t\t\t\t\t\t+ \" END;\", new String[] {}, new Object[] {});\n\n\t\t// 6. create package for test\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\"CREATE OR REPLACE PACKAGE PKG_REFCURSOR_TEST AS \");\n\t\tsql.append(\"TYPE dReport IS REF CURSOR; \");\n\t\tsql.append(\"PROCEDURE PROC_RECORD_SET( \");\n\t\tsql.append(\"I_NAME IN VARCHAR2, \");\n\t\tsql.append(\"p_RecordSet OUT dReport \");\n\t\tsql.append(\"); \");\n\t\tsql.append(\"END PKG_REFCURSOR_TEST;\");\n\t\tqueryService.updateBySQL(sql.toString(), new String[] {},\n\t\t\t\tnew Object[] {});\n\n\t\t// 7. create package body for test\n\t\tsql = new StringBuffer();\n\t\tsql.append(\"CREATE OR REPLACE PACKAGE BODY PKG_REFCURSOR_TEST AS \");\n\t\tsql.append(\"PROCEDURE PROC_RECORD_SET( \");\n\t\tsql.append(\"I_NAME IN VARCHAR2, \");\n\t\tsql.append(\"p_RecordSet OUT dReport \");\n\t\tsql.append(\") AS \");\n\t\tsql.append(\"BEGIN \");\n\t\tsql.append(\"IF TRIM(I_NAME) IS NULL THEN \");\n\t\tsql.append(\"OPEN p_RecordSet FOR \");\n\t\tsql.append(\"SELECT 'N/A' NAME, 'BLOCK' STATUS \");\n\t\tsql.append(\"FROM DUAL; \");\n\t\tsql.append(\"ELSE \");\n\t\tsql.append(\"OPEN p_RecordSet FOR \");\n\t\tsql.append(\"SELECT I_NAME NAME, 'ACTIVE' STATUS FROM DUAL \");\n\t\tsql.append(\"UNION ALL \");\n\t\tsql.append(\"SELECT I_NAME, 'READY' FROM DUAL \");\n\t\tsql.append(\"UNION ALL \");\n\t\tsql.append(\"SELECT I_NAME, 'BLOCK' FROM DUAL; \");\n\t\tsql.append(\"END IF; \");\n\t\tsql.append(\"END PROC_RECORD_SET; \");\n\t\tsql.append(\"END PKG_REFCURSOR_TEST; \");\n\t\tqueryService.updateBySQL(sql.toString(), new String[] {},\n\t\t\t\tnew Object[] {});\n\t}",
"public void testV1Setup() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n sqlDbManager = new SqlDbManager();\n theDaemon.setDbManager(sqlDbManager);\n sqlDbManager.initService(theDaemon);\n assertTrue(sqlDbManager.setUpDatabase(1));\n sqlDbManager.setTargetDatabaseVersion(1);\n sqlDbManager.startService();\n assertTrue(sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertTrue(sqlDbManager.tableExists(conn, SqlDbManager.OBSOLETE_METADATA_TABLE));\n }",
"public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}",
"public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}",
"public static void prepDb(Configuration conf) throws Exception {\n\n Connection conn = null;\n Statement stmt = null;\n try {\n conn = getConnection(conf);\n stmt = conn.createStatement();\n stmt.execute(\"CREATE TABLE TXNS (\" +\n \" TXN_ID bigint PRIMARY KEY,\" +\n \" TXN_STATE char(1) NOT NULL,\" +\n \" TXN_STARTED bigint NOT NULL,\" +\n \" TXN_LAST_HEARTBEAT bigint NOT NULL,\" +\n \" TXN_USER varchar(128) NOT NULL,\" +\n \" TXN_HOST varchar(128) NOT NULL,\" +\n \" TXN_TYPE integer)\");\n\n stmt.execute(\"CREATE TABLE TXN_COMPONENTS (\" +\n \" TC_TXNID bigint NOT NULL REFERENCES TXNS (TXN_ID),\" +\n \" TC_DATABASE varchar(128) NOT NULL,\" +\n \" TC_TABLE varchar(128),\" +\n \" TC_PARTITION varchar(767),\" +\n \" TC_OPERATION_TYPE char(1) NOT NULL,\" +\n \" TC_WRITEID bigint)\");\n stmt.execute(\"CREATE TABLE COMPLETED_TXN_COMPONENTS (\" +\n \" CTC_TXNID bigint NOT NULL,\" +\n \" CTC_DATABASE varchar(128) NOT NULL,\" +\n \" CTC_TABLE varchar(128),\" +\n \" CTC_PARTITION varchar(767),\" +\n \" CTC_TIMESTAMP timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL,\" +\n \" CTC_WRITEID bigint,\" +\n \" CTC_UPDATE_DELETE char(1) NOT NULL)\");\n stmt.execute(\"CREATE TABLE NEXT_TXN_ID (\" + \" NTXN_NEXT bigint NOT NULL)\");\n stmt.execute(\"INSERT INTO NEXT_TXN_ID VALUES(1)\");\n\n stmt.execute(\"CREATE TABLE TXN_TO_WRITE_ID (\" +\n \" T2W_TXNID bigint NOT NULL,\" +\n \" T2W_DATABASE varchar(128) NOT NULL,\" +\n \" T2W_TABLE varchar(256) NOT NULL,\" +\n \" T2W_WRITEID bigint NOT NULL)\");\n stmt.execute(\"CREATE TABLE NEXT_WRITE_ID (\" +\n \" NWI_DATABASE varchar(128) NOT NULL,\" +\n \" NWI_TABLE varchar(256) NOT NULL,\" +\n \" NWI_NEXT bigint NOT NULL)\");\n\n stmt.execute(\"CREATE TABLE MIN_HISTORY_LEVEL (\" +\n \" MHL_TXNID bigint NOT NULL,\" +\n \" MHL_MIN_OPEN_TXNID bigint NOT NULL,\" +\n \" PRIMARY KEY(MHL_TXNID))\");\n\n stmt.execute(\"CREATE TABLE HIVE_LOCKS (\" +\n \" HL_LOCK_EXT_ID bigint NOT NULL,\" +\n \" HL_LOCK_INT_ID bigint NOT NULL,\" +\n \" HL_TXNID bigint NOT NULL,\" +\n \" HL_DB varchar(128) NOT NULL,\" +\n \" HL_TABLE varchar(128),\" +\n \" HL_PARTITION varchar(767),\" +\n \" HL_LOCK_STATE char(1) NOT NULL,\" +\n \" HL_LOCK_TYPE char(1) NOT NULL,\" +\n \" HL_LAST_HEARTBEAT bigint NOT NULL,\" +\n \" HL_ACQUIRED_AT bigint,\" +\n \" HL_USER varchar(128) NOT NULL,\" +\n \" HL_HOST varchar(128) NOT NULL,\" +\n \" HL_HEARTBEAT_COUNT integer,\" +\n \" HL_AGENT_INFO varchar(128),\" +\n \" HL_BLOCKEDBY_EXT_ID bigint,\" +\n \" HL_BLOCKEDBY_INT_ID bigint,\" +\n \" PRIMARY KEY(HL_LOCK_EXT_ID, HL_LOCK_INT_ID))\");\n stmt.execute(\"CREATE INDEX HL_TXNID_INDEX ON HIVE_LOCKS (HL_TXNID)\");\n\n stmt.execute(\"CREATE TABLE NEXT_LOCK_ID (\" + \" NL_NEXT bigint NOT NULL)\");\n stmt.execute(\"INSERT INTO NEXT_LOCK_ID VALUES(1)\");\n\n stmt.execute(\"CREATE TABLE COMPACTION_QUEUE (\" +\n \" CQ_ID bigint PRIMARY KEY,\" +\n \" CQ_DATABASE varchar(128) NOT NULL,\" +\n \" CQ_TABLE varchar(128) NOT NULL,\" +\n \" CQ_PARTITION varchar(767),\" +\n \" CQ_STATE char(1) NOT NULL,\" +\n \" CQ_TYPE char(1) NOT NULL,\" +\n \" CQ_TBLPROPERTIES varchar(2048),\" +\n \" CQ_WORKER_ID varchar(128),\" +\n \" CQ_START bigint,\" +\n \" CQ_RUN_AS varchar(128),\" +\n \" CQ_HIGHEST_WRITE_ID bigint,\" +\n \" CQ_META_INFO varchar(2048) for bit data,\" +\n \" CQ_HADOOP_JOB_ID varchar(32))\");\n\n stmt.execute(\"CREATE TABLE NEXT_COMPACTION_QUEUE_ID (NCQ_NEXT bigint NOT NULL)\");\n stmt.execute(\"INSERT INTO NEXT_COMPACTION_QUEUE_ID VALUES(1)\");\n\n stmt.execute(\"CREATE TABLE COMPLETED_COMPACTIONS (\" +\n \" CC_ID bigint PRIMARY KEY,\" +\n \" CC_DATABASE varchar(128) NOT NULL,\" +\n \" CC_TABLE varchar(128) NOT NULL,\" +\n \" CC_PARTITION varchar(767),\" +\n \" CC_STATE char(1) NOT NULL,\" +\n \" CC_TYPE char(1) NOT NULL,\" +\n \" CC_TBLPROPERTIES varchar(2048),\" +\n \" CC_WORKER_ID varchar(128),\" +\n \" CC_START bigint,\" +\n \" CC_END bigint,\" +\n \" CC_RUN_AS varchar(128),\" +\n \" CC_HIGHEST_WRITE_ID bigint,\" +\n \" CC_META_INFO varchar(2048) for bit data,\" +\n \" CC_HADOOP_JOB_ID varchar(32))\");\n\n stmt.execute(\"CREATE TABLE AUX_TABLE (\" +\n \" MT_KEY1 varchar(128) NOT NULL,\" +\n \" MT_KEY2 bigint NOT NULL,\" +\n \" MT_COMMENT varchar(255),\" +\n \" PRIMARY KEY(MT_KEY1, MT_KEY2))\");\n\n stmt.execute(\"CREATE TABLE WRITE_SET (\" +\n \" WS_DATABASE varchar(128) NOT NULL,\" +\n \" WS_TABLE varchar(128) NOT NULL,\" +\n \" WS_PARTITION varchar(767),\" +\n \" WS_TXNID bigint NOT NULL,\" +\n \" WS_COMMIT_ID bigint NOT NULL,\" +\n \" WS_OPERATION_TYPE char(1) NOT NULL)\"\n );\n\n stmt.execute(\"CREATE TABLE REPL_TXN_MAP (\" +\n \" RTM_REPL_POLICY varchar(256) NOT NULL, \" +\n \" RTM_SRC_TXN_ID bigint NOT NULL, \" +\n \" RTM_TARGET_TXN_ID bigint NOT NULL, \" +\n \" PRIMARY KEY (RTM_REPL_POLICY, RTM_SRC_TXN_ID))\"\n );\n\n stmt.execute(\"CREATE TABLE MATERIALIZATION_REBUILD_LOCKS (\" +\n \" MRL_TXN_ID BIGINT NOT NULL, \" +\n \" MRL_DB_NAME VARCHAR(128) NOT NULL, \" +\n \" MRL_TBL_NAME VARCHAR(256) NOT NULL, \" +\n \" MRL_LAST_HEARTBEAT BIGINT NOT NULL, \" +\n \" PRIMARY KEY(MRL_TXN_ID))\"\n );\n\n try {\n stmt.execute(\"CREATE TABLE \\\"APP\\\".\\\"SEQUENCE_TABLE\\\" (\\\"SEQUENCE_NAME\\\" VARCHAR(256) NOT \" +\n\n \"NULL, \\\"NEXT_VAL\\\" BIGINT NOT NULL)\"\n );\n } catch (SQLException e) {\n if (e.getMessage() != null && e.getMessage().contains(\"already exists\")) {\n LOG.info(\"SEQUENCE_TABLE table already exist, ignoring\");\n } else {\n throw e;\n }\n }\n\n try {\n stmt.execute(\"CREATE TABLE \\\"APP\\\".\\\"NOTIFICATION_SEQUENCE\\\" (\\\"NNI_ID\\\" BIGINT NOT NULL, \" +\n\n \"\\\"NEXT_EVENT_ID\\\" BIGINT NOT NULL)\"\n );\n } catch (SQLException e) {\n if (e.getMessage() != null && e.getMessage().contains(\"already exists\")) {\n LOG.info(\"NOTIFICATION_SEQUENCE table already exist, ignoring\");\n } else {\n throw e;\n }\n }\n\n try {\n stmt.execute(\"CREATE TABLE \\\"APP\\\".\\\"NOTIFICATION_LOG\\\" (\\\"NL_ID\\\" BIGINT NOT NULL, \" +\n \"\\\"DB_NAME\\\" VARCHAR(128), \\\"EVENT_ID\\\" BIGINT NOT NULL, \\\"EVENT_TIME\\\" INTEGER NOT\" +\n\n \" NULL, \\\"EVENT_TYPE\\\" VARCHAR(32) NOT NULL, \\\"MESSAGE\\\" CLOB, \\\"TBL_NAME\\\" \" +\n \"VARCHAR\" +\n \"(256), \\\"MESSAGE_FORMAT\\\" VARCHAR(16))\"\n );\n } catch (SQLException e) {\n if (e.getMessage() != null && e.getMessage().contains(\"already exists\")) {\n LOG.info(\"NOTIFICATION_LOG table already exist, ignoring\");\n } else {\n throw e;\n }\n }\n\n stmt.execute(\"INSERT INTO \\\"APP\\\".\\\"SEQUENCE_TABLE\\\" (\\\"SEQUENCE_NAME\\\", \\\"NEXT_VAL\\\") \" +\n \"SELECT * FROM (VALUES ('org.apache.hadoop.hive.metastore.model.MNotificationLog', \" +\n \"1)) tmp_table WHERE NOT EXISTS ( SELECT \\\"NEXT_VAL\\\" FROM \\\"APP\\\"\" +\n \".\\\"SEQUENCE_TABLE\\\" WHERE \\\"SEQUENCE_NAME\\\" = 'org.apache.hadoop.hive.metastore\" +\n \".model.MNotificationLog')\");\n\n stmt.execute(\"INSERT INTO \\\"APP\\\".\\\"NOTIFICATION_SEQUENCE\\\" (\\\"NNI_ID\\\", \\\"NEXT_EVENT_ID\\\")\" +\n \" SELECT * FROM (VALUES (1,1)) tmp_table WHERE NOT EXISTS ( SELECT \" +\n \"\\\"NEXT_EVENT_ID\\\" FROM \\\"APP\\\".\\\"NOTIFICATION_SEQUENCE\\\")\");\n } catch (SQLException e) {\n try {\n conn.rollback();\n } catch (SQLException re) {\n LOG.error(\"Error rolling back: \" + re.getMessage());\n }\n\n // Another thread might have already created these tables.\n if (e.getMessage() != null && e.getMessage().contains(\"already exists\")) {\n LOG.info(\"Txn tables already exist, returning\");\n return;\n }\n\n // This might be a deadlock, if so, let's retry\n if (e instanceof SQLTransactionRollbackException && deadlockCnt++ < 5) {\n LOG.warn(\"Caught deadlock, retrying db creation\");\n prepDb(conf);\n } else {\n throw e;\n }\n } finally {\n deadlockCnt = 0;\n closeResources(conn, stmt, null);\n }\n }",
"@Override\r\n\tprotected void setUp() throws Exception {\n\t\ttester = new WicketTester(new MockWicketApplication(ConnectDao.getInstance()));\r\n\t\t\r\n\t\tdao = ConnectDao.getInstance();\r\n\t\t\r\n\t\tdao.insert(\"insert into system.users values ('scott', 'tigerrrr')\");\r\n\t\tdao.insert(\"insert into system.databases values ('00001', 'database1', 'scott', '09-01-01', '09-01-01')\");\r\n\t\tdao.insert(\"insert into system.databases values ('00002', 'database2', 'scott', '09-01-02', '09-01-02')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000001', 'emp0', '00001')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000002', 'dept0', '00001')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000003', 'emp', '00002')\");\r\n\t\tdao.insert(\"insert into system.tables values ('0000004', 'dept', '00002')\");\r\n\t\t\r\n\t\tdao.insert(\"commit\");\r\n\t\t\r\n\t\tpp = new PageParameters();\r\n\t\tString[] strs = new String[]{\"database1\", \"database2\"};\r\n\t\tpp.put(\"databases\", strs);\r\n\t\tpp.put(\"user\", \"ikemotot\");\r\n\r\n\t\t\r\n\t\ttester.startPage(rmp = new ResponseMeasurementPage(pp, new MockCommand()));\r\n\t}",
"public void bootstrapDatabase() throws Exception {\n\n }",
"@Override\n protected void setUp() throws Exception {\n super.setUp();\n mDBService = new DBService(getContext());\n deleteAllRecords();\n }",
"public void setUp() throws Exception {\t\t\t\t\t\n\t\tDatabase.reset();\n\t}",
"@Override\n public void setUp() {\n deleteTheDatabase();\n }",
"static void resetTestDatabase() {\n String URL = \"jdbc:mysql://localhost:3306/?serverTimezone=CET\";\n String USER = \"fourthingsplustest\";\n\n InputStream stream = UserStory1Test.class.getClassLoader().getResourceAsStream(\"init.sql\");\n if (stream == null) throw new RuntimeException(\"init.sql\");\n try (Connection conn = DriverManager.getConnection(URL, USER, null)) {\n conn.setAutoCommit(false);\n ScriptRunner runner = new ScriptRunner(conn);\n runner.setStopOnError(true);\n runner.runScript(new BufferedReader(new InputStreamReader(stream)));\n conn.commit();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n System.out.println(\"Done running migration\");\n }",
"public void test(String test) {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade test\");\n\t\t\tif (\"cyklotron\".equals(test) || \"all\".equals(test)) {\n\t\t\t\tlogger.info(\"Login to cyklotron\");\n\t\t\t\tcyklotronHelper.login();\n\t\t\t\tlogger.info(\"Execute rml test select query\");\n\t\t\t\tcyklotronHelper.executeRml(\"test.rml\");\n\t\t\t\tlogger.info(\"Logout from cyklotron\");\n\t\t\t\tcyklotronHelper.logout();\n\t\t\t}\n\t\t\tif (\"tomcat\".equals(test) || \"all\".equals(test)) {\n\t\t\t\tlogger.info(\"Stop tomcat\");\n\t\t\t\ttomcatHelper.stop();\n\t\t\t\tlogger.info(\"Clear webapps directory\");\n\t\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\t\tlogger.info(\"Start tomcat\");\n\t\t\t\ttomcatHelper.start();\n\t\t\t}\n\t\t\tif (\"all\".equals(test)) {\n\t\t\t\tlogger.info(\"Login to cyklotron after tomcat restart\");\n\t\t\t\tcyklotronHelper.login();\n\t\t\t\tlogger.info(\"Execute rml test select query\");\n\t\t\t\tcyklotronHelper.executeRml(\"test.rml\");\n\t\t\t\tlogger.info(\"Logout from cyklotron\");\n\t\t\t\tcyklotronHelper.logout();\n\t\t\t}\n\t\t\tif (\"postgres\".equals(test) || \"all\".equals(test)) {\n\t\t\t\tlogger.info(\"Connect to postgresql and execute test sql statements\");\n\t\t\t\tpsqlHelper.executeSQL(\"test.sql\");\n\t\t\t}\n\t\t\tlogger.info(\"Upgrade test finished\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}",
"public void prepareDatabase(String testName) throws Exception {\n prepareDatabaseFromPath('/' + testName + \"/\" + prepareFileName);\n }",
"@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}",
"@Before\n public void setup() {\n rest = new RestTemplate();\n jdbc = new JdbcTemplate(dataSource);\n playlists = jdbc.query(\"SELECT * FROM \\\"Playlist\\\";\", playlistMapper);\n }",
"@Before\n public void init() throws ConnectionException, IOException {\n\n final ConnectionPool pool = ConnectionPool.getInstance();\n//\n final Connection connection = pool.takeConnection();\n\n final ScriptRunner scriptRunner = new ScriptRunner(connection);\n\n Reader reader = new BufferedReader(new FileReader(UserDaoTest.class.getClassLoader().getResource(\"db_v2.sql\").getPath()));\n\n scriptRunner.runScript(reader);\n\n pool.closeConnection(connection);\n\n }",
"@Test\n public void testProcessor () {\n getOrphanTables(1L);\n updateConstraints();\n deleteConstraints(1L);\n\n }",
"protected void setUp() throws Exception {\n\t\tString filePath = new File(\".\").getAbsolutePath() + \"./\";\n\t\tSystem.out.println(\"DB path: \" + filePath);\n\t\t\n\t\tDriverManagerDataSource dataSource = new DriverManagerDataSource();\n\t\tdataSource.setDriverClassName(\"org.hsqldb.jdbcDriver\");\n\t\tdataSource.setUrl(\"jdbc:hsqldb:file:\" + filePath + DATA_BASE_NAME + \";shutdown=true\");\n\t\tdataSource.setUsername(\"SA\");\n\t\tdataSource.setPassword(\"\");\n\t\t\n\t\tthis.hsqlDao = new HsqlCustomerManageDAO();\n\t\tthis.hsqlDao.setDataSource(dataSource);\n\t}",
"public static void main(String[] args) {\n DbUtil.INSTANCE.getDb();\n DbUtil.INSTANCE.recreateSchema();\n DbUtil.INSTANCE.insertDummyData();\n }",
"@Before\n\tpublic void setUp() throws Exception {\n\t\tfeedbacks = new ReviewFeedback[TIMES];\n\t\tfor (int i = 0; i < feedbacks.length; ++i) {\n\t\t\tfeedbacks[i] = new ReviewFeedback();\n\t\t\tfeedbacks[i].setProjectId(1);\n\t\t\tList<ReviewFeedbackDetail> list = new ArrayList<ReviewFeedbackDetail>();\n\t\t\tfor (int j = 0; j < DETAIL_COUNT_PER_FEEDBACK; j++) {\n\t\t\t\tReviewFeedbackDetail detail = new ReviewFeedbackDetail();\n\t\t\t\tdetail.setReviewerUserId(j);\n\t\t\t\tdetail.setScore(rand.nextInt(HUNDRED));\n\t\t\t\tdetail.setFeedbackText(\"text \" + i + \" \" + j);\n\t\t\t\tlist.add(detail);\n\t\t\t}\n\t\t\tfeedbacks[i].setDetails(list);\n\t\t\tfeedbacks[i].setComment(\"comment \" + i);\n\t\t\tfeedbacks[i].setCreateDate(new Date());\n\t\t\tfeedbacks[i].setCreateUser(String.valueOf(rand.nextInt(HUNDRED)));\n\t\t}\n\t\tinstance = new JDBCReviewFeedbackManager(getConfig());\n\t\tconnection = getConnection();\n\t\texecuteSQL(connection, \"test_files/stress/clear.sql\");\n\t\texecuteSQL(connection, \"test_files/stress/data.sql\");\n\t}",
"@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test CRUD Create with Address 04\")\n public void testCRUDCreateWithAddress04()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n List<SBAddress04> address04s = new ArrayList<>();\n\n for (int i = 0; i < 20; i++) {\n SBAddress04 sbAddress04 = new SBAddress04();\n sbAddress04.setAddress04Street(\"KusumaramaStreet\" + i);\n sbAddress04.setAddress04Village(\"Seenigama\");\n sbAddress04.setAddress04City(\"Hikkaduwa\");\n sbAddress04.setAddress04Country(\"Sri Lanka\");\n sbAddress04.setAddress04Zip(\"29200\" + i);\n sbAddress04.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbAddress04.setRawLastUpdateLogId(1);\n sbAddress04.setUpdateUserAccountId(1);\n sbAddress04.setRawActiveStatus(1);\n sbAddress04.setRawDeleteStatus(1);\n sbAddress04.setRawShowStatus(1);\n sbAddress04.setRawUpdateStatus(1);\n\n address04s.add(sbAddress04);\n }\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n address04s.forEach(address -> session.save(address));\n transaction.commit();\n\n address04s.forEach(address -> System.out.println(\"Added Address : \" + address.getAddress04Street()));\n\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n MoraAccessProperties accessProperties = new MoraAccessProperties();\n UuidUtilities utilities = new UuidUtilities();\n\n address04s.forEach(address -> {\n accessProperties.setPropertyFromPath(\n \"D:\\\\SLMORAWorkSpace\\\\IntelliJProjects\\\\MoraHibernateLearn004\\\\src\\\\main\\\\resources\\\\hibernatetestsupport.properties\",\n \"MORA.HIBERNATE.TEST.testCRUDCreateWithAddress04.\" + address.getAddress04Street(),\n utilities.getUUIDFromOrderedUUIDByteArrayWithApacheCommons(address.getAddress04Id()).toString(),\n \"Test Comment\");\n });\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }",
"@BeforeAll\n public static void setUpClass() {\n emf = EMF_Creator.createEntityManagerFactoryForTest();\n\n //Set System property so the project executed by the Grizly-server wil use this same database\n EMF_Creator.startREST_TestWithDB();\n \n httpServer = startServer();\n\n //Setup RestAssured\n RestAssured.baseURI = SERVER_URL;\n RestAssured.port = SERVER_PORT;\n\n RestAssured.defaultParser = Parser.JSON;\n }",
"@Before\n public void setUp() throws Exception {\n userDao = DatabaseAccess.createOracleDatabase().createUserDaoOperator();\n }",
"public static void initGenerateOfflineTestData(){\n dbInstance = Database.newInstance();\n initPlayer();\n initMatches();\n }",
"@Before\r\n\tpublic void setup() {\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceLondon, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\r\n\t\t// H2Boostrap will create and insert the schema just once\r\n\t\tH2Bootstrap.loadSchema(\r\n\t\t\t\tdataSourceNewYork, \r\n\t\t\t\t\"/sql/create_bnk_database_h2.sql\", \r\n\t\t\t\t\"/sql/insert_bnk_static_data.sql\",\r\n\t\t\t\t\"/sql/drop_bnk_database.sql\");\r\n\t}",
"private void testInitialization() {\r\n\r\n\r\n\t\tthis.myMapDB = MapDB.getInstance();\r\n\t\tthis.myClumpDB = ClumpDB.getInstance();\r\n\t}",
"@Before\n public void setUp() {\n //clearDbData();//having some trouble\n }"
] | [
"0.6944997",
"0.68385077",
"0.67136055",
"0.66758496",
"0.66418225",
"0.6593807",
"0.65738606",
"0.65477884",
"0.6514857",
"0.6492825",
"0.6450315",
"0.64384484",
"0.6427356",
"0.640859",
"0.6361749",
"0.6353424",
"0.63472885",
"0.63179886",
"0.6308729",
"0.6290573",
"0.6274843",
"0.62650913",
"0.6264421",
"0.62641317",
"0.6247867",
"0.62477285",
"0.624634",
"0.62415904",
"0.62294483",
"0.6227768",
"0.62078327",
"0.62073857",
"0.62049055",
"0.619775",
"0.6196556",
"0.61957514",
"0.6186308",
"0.61738276",
"0.6172806",
"0.6131766",
"0.61164695",
"0.6114749",
"0.6112255",
"0.608926",
"0.6087302",
"0.6087302",
"0.6087165",
"0.6055855",
"0.60276055",
"0.6026075",
"0.60218817",
"0.6021424",
"0.60198534",
"0.60195315",
"0.6017325",
"0.60121447",
"0.60073465",
"0.6006117",
"0.6005369",
"0.60006064",
"0.5998654",
"0.5998247",
"0.59934264",
"0.598013",
"0.5974525",
"0.59739006",
"0.59712875",
"0.5960392",
"0.59466237",
"0.59444803",
"0.5941475",
"0.5940355",
"0.59366673",
"0.5936152",
"0.5923581",
"0.5918146",
"0.5908316",
"0.5908316",
"0.5907687",
"0.59074664",
"0.58973265",
"0.5895873",
"0.5892165",
"0.58900076",
"0.5887371",
"0.58830625",
"0.5871453",
"0.586495",
"0.5864674",
"0.58629763",
"0.5854768",
"0.585429",
"0.58391464",
"0.5831855",
"0.5825807",
"0.58163273",
"0.58128995",
"0.5808524",
"0.5793052",
"0.5792999",
"0.57894677"
] | 0.0 | -1 |
SimpleDateFormat format = new SimpleDateFormat("yyyyyMMdd"); | public int getgNum() {
return gNum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getYYYYMMDD()\r\n/* 65: */ {\r\n/* 66: 81 */ String nowTime = \"\";\r\n/* 67: 82 */ Date now = new Date();\r\n/* 68: 83 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 69: 84 */ nowTime = formatter.format(now);\r\n/* 70: 85 */ return nowTime;\r\n/* 71: */ }",
"private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMddyyy\");\n\t\tString dateStr = dateFormat.format(date);\n\t\treturn dateStr;\n\t}",
"public static String getDate() {\n\t\tDate date = new Date();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"ddMMYYYY\");\n\t\tString strDate = formatter.format(date);\n\t\treturn strDate;\n\t}",
"public static String getddmmyyDate(String dt) {\n String dd = \"\", mm = \"\", yy = \"\";\n int i = 0;\n try {\n for (String retval : dt.split(\"-\")) {\n if (i == 0)\n yy = retval;\n else if (i == 1)\n mm = retval;\n else\n dd = retval;\n\n i++;\n }\n return (yy + \"-\" + mm + \"-\" + dd).toString();\n } catch (Exception e) {\n e.printStackTrace();\n return \"\";\n }\n }",
"private String YYYYMMDD(String str) {\n\t\tString[] s = str.split(\"/\");\n\t\treturn s[0] + parseToTwoInteger(Integer.parseInt(s[1].trim())) + parseToTwoInteger(Integer.parseInt(s[2].trim()));\n\t}",
"public static String dateToString(Date date){\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MMddyy\");\n\t\treturn formatter.format(date);\n\t}",
"@Test public void Mdy_at_y_slash()\t\t\t\t\t\t\t\t{tst_date_(\"1/2/70\"\t\t\t\t\t, \"1970-01-02\");}",
"java.lang.String getStartDateYYYYMMDD();",
"java.lang.String getStartDateYYYY();",
"public String asYear() {\n \treturn new SimpleDateFormat(\"yyyy\").format(expiredAfter);\n }",
"private static String getDate() {\n Scanner input = new Scanner(System.in);\n\n String monthName = input.next();\n int month = monthNum(monthName);\n int day = input.nextInt();\n String date = \"'2010-\" + month + \"-\" + day + \"'\";\n return date;\n }",
"@Test public void Day_1__month__year()\t\t\t\t\t\t\t{tst_date_(\"03-31-02\"\t\t\t\t, \"2002-03-31\");}",
"public static String yyyymmdddToddmmyyyy(String strDate) {\n DateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = null;\n try {\n date = (Date) formatter.parse(strDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n SimpleDateFormat newFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n String finalString = newFormat.format(date);\n return finalString;\n }",
"public static void main(String[] args)\r\n/* 96: */ {\r\n/* 97:104 */ SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 98:105 */ String qiandaotime = df.format(new Date());\r\n/* 99:106 */ System.out.println(qiandaotime);\r\n/* 100: */ }",
"public static int getNowDate() {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"yyMMdd\");\n\t\treturn Integer.parseInt(dateFormat.format(new Date()));\n\t}",
"@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}",
"public static void main(String[] args) {\n\t\t LocalDate ldt = LocalDate.of(2016,12,21);\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MMM-dd\");\n DateTimeFormatter format1 = DateTimeFormatter.ofPattern(\"YYYY-mmm-dd\");\n System.out.println(ldt.format(format));\n System.out.println(ldt.format(format1));\n\t}",
"private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}",
"@Test public void Year_2__month__day()\t\t\t\t\t\t\t{tst_date_(\"03/31/2001\"\t\t\t\t, \"2001-03-31\");}",
"public Date(int y) {\r\n\r\n\t\tmonth = LAST_MONTH;\r\n\t\tday = DAYS[LAST_MONTH];\r\n\t\tyear = y;\r\n\t}",
"public static String dateStr(String input ){\n String mm = input.substring(0,2);\n String dd = input.substring(3,5);\n String yyyy = input.substring(6,10);\n return dd + \" - \" + mm + \" - \" + yyyy;\n }",
"public static String generateDate()\r\n\t{\r\n\t\tDate d = new Date();\r\n\t\tSimpleDateFormat datef = new SimpleDateFormat(\"YYYY_MM_dd_ss\");\r\n\t\treturn datef.format(d);\r\n\r\n\r\n\t}",
"public static String getDateId() {\n Date date = new Date();\n String dateFormatStyle = \"yy-MM-dd-HH-mm-ss\";\n SimpleDateFormat sdf = new SimpleDateFormat(dateFormatStyle);\n String dateFormat = sdf.format(date);\n String[] formatedDate = dateFormat.split(\"-\");\n int i = 0;\n String year = formatedDate[i];\n String month = formatedDate[++i];\n String cDate = formatedDate[++i];\n String hour = formatedDate[++i];\n String minute = formatedDate[++i];\n String second = formatedDate[++i];\n return alphanum[Integer.parseInt(year)]\n .concat(alphanum[Integer.parseInt(month)])\n .concat(alphanum[Integer.parseInt(cDate)])\n .concat(alphanum[Integer.parseInt(hour)])\n .concat(alphanum[Integer.parseInt(minute)])\n .concat(alphanum[Integer.parseInt(second)]);\n }",
"@Test public void Month_name_1__day__year__guess()\t\t\t\t{tst_date_(\"02 Mar 01\"\t\t\t\t, \"2001-03-02\");}",
"java.lang.String getEndDateYYYY();",
"@Test public void Month_name_1__year__day()\t\t\t\t\t{tst_date_(\"2001 Mar 02\"\t\t\t, \"2001-03-02\");}",
"private String makeDateString(int day, int month, int year) {\n String str_month = \"\" + month;\n String str_day = \"\" + day;\n if (month < 10) {\n str_month = \"0\" + month;\n }\n if (day < 10) {\n str_day = \"0\" + day;\n }\n return year + \"-\" + str_month + \"-\" + str_day;\n }",
"public static String ddmmyyyyToyyyymmddd(String strDate) {\n DateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date date = null;\n try {\n date = (Date) formatter.parse(strDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n SimpleDateFormat newFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n String finalString = newFormat.format(date);\n return finalString;\n }",
"public String getDateInMDYFormat(DateTime date) {\n DateTimeFormatter MDYFmt = DateTimeFormat.forPattern(\"MM/dd/y\");\n return date.toString(MDYFmt);\n }",
"@Test public void Month_name_1__day__year()\t\t\t\t\t{tst_date_(\"2 Mar 2001\"\t\t\t\t, \"2001-03-02\");}",
"public String asMonthYear() {\n return new SimpleDateFormat(\"MM/yyyy\").format(expiredAfter);\n\t}",
"public static String dateStr(String str)\n {\n String month = str.split(\"/\")[0];\n String day = str.split(\"/\")[1];\n String year = str.split(\"/\")[2];\n return day + \"-\" + month + \"-\" + year;\n }",
"public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }",
"String getDate();",
"String getDate();",
"public static String getYearAndMonth(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy,MM\"); //EX 2016,02\r\n return df.format(date);\r\n }",
"public String getDate(){\n String d=\"\";\n String m=\"\";\n if(day<10){\n d=0+(String.valueOf(day));\n }\n else{\n d=String.valueOf(day);\n }\n\n if(month<10){\n m=0+(String.valueOf(month));\n }\n else{\n m=String.valueOf(month);\n }\n //returning day/month/year\n return (d+\"/\"+m+\"/\"+String.valueOf(year));\n }",
"public static Date strToDate(String strDate)\r\n/* 127: */ {\r\n/* 128:178 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 129:179 */ ParsePosition pos = new ParsePosition(0);\r\n/* 130:180 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 131:181 */ return strtodate;\r\n/* 132: */ }",
"public static Date getFirstDate(Date date ) throws ParseException{ \n\t\tString format = \"yyyyMM\";\n\t\tdate = formatStrtoDate( format(date, format) + \"01\", format + \"dd\");\n\t\treturn date;\n\t}",
"public static void main(String[] args) {\n\t\t SimpleDateFormat sdf = new SimpleDateFormat (\"dd-MM-yyyy\");\n\t\t\t\t sdf.setLenient(false);\n\t\t\t\t String input = \"13-02-2018\"; \n\t\t\t\t System.out.println(\"Given Date is:\"+ input); \n\t\t\t\t Date dt;\n\t\t\t\t try {\n\t\t\t\t dt = sdf.parse(input); \n\t\t\t\t System.out.println(dt); \n\t\t\t\t } catch (ParseException e) { \n\t\t\t\t System.out.println(\"Invalid date entered :\" + input); \n\t\t\t\t }\n\n\t}",
"public static String getYYYYMMDDHHMMSS()\r\n/* 56: */ {\r\n/* 57: 68 */ String nowTime = \"\";\r\n/* 58: 69 */ Date now = new Date();\r\n/* 59: 70 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n/* 60: 71 */ nowTime = formatter.format(now);\r\n/* 61: 72 */ return nowTime;\r\n/* 62: */ }",
"protected static SimpleDateFormat xsdDateFormat() {\n return new SimpleDateFormat(\"yyyy-MM-dd\");\n }",
"private void updateLabel() {\n String myFormat = \"dd-MM-YYYY\"; //In which you need put here\n SimpleDateFormat sdf = new SimpleDateFormat(myFormat, Locale.US);\n dateInput.setText(sdf.format(myCalendar.getTime()));\n }",
"public static String formatDate(Date date){\n\t\tCalendar now = Calendar.getInstance(); // Gets the current date and time\n\t\tint currentYear = now.get(Calendar.YEAR);\n\t\tint dateYear = Integer.parseInt(new SimpleDateFormat(\"yyyy\").format(date));\n\n\t\tif (dateYear <= currentYear){\n\t\t\treturn new SimpleDateFormat(\"E MMM dd HH:mm\").format(date);\n\t\t} else {\n\t\t\treturn new SimpleDateFormat(\"E yyyy MMM dd HH:mm\").format(date);\n\t\t}\n\t}",
"public void setString (String s) { //set method\n full_Date = s;\n if(!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\");\n\n Year = Integer.parseInt(full_Date.substring(0,3));\n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n\n \n}",
"public static Date parseDateYYYYMMDD(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}",
"public String toString() { //toString method\n String startDateString2= \"\"; //Initialize\n try{\n Date date1 = new SimpleDateFormat(\"yyyyMMdd\").parse(full_Date);\n DateFormat df2 = new SimpleDateFormat(\"MMM dd, yyyy\");\n startDateString2 = df2.format(date1);\n \n return startDateString2;\n }catch(ParseException e){\n e.printStackTrace();\n }\n return startDateString2;\n \n}",
"private String easyDateFormat(final String format) {\n Date today = new Date();\n SimpleDateFormat formatter = new SimpleDateFormat(format);\n String datenewformat = formatter.format(today);\n return datenewformat;\n }",
"public String format (Date date , String dateFormat) ;",
"public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }",
"private static String calcYMD(int[] age){\n\t\treturn age[2]+\" years \" + age[1] + \" months \" + age[0] + \" days \";\n\t}",
"public String dayPlus1(int d, int m, int y) {\n\t\tif (m == 4 || m == 6 || m == 9 || m == 11) {\n\t\t\tif (d < 30) { // If it's not the last day of the month, add 1 day\n\t\t\t\td++;\n\t\t\t} else { // If it's the last day of the month, reset the day and add\n\t\t\t\t// 1\n\t\t\t\t// month\n\t\t\t\td = 1;\n\t\t\t\tm++;\n\t\t\t}\n\t\t} else if (m == 1 || m == 3 || m == 5 || m == 7 || m == 8 || m == 10 || m == 12) {\n\t\t\tif (d < 31) // If it's not the last day of the month, add 1 day\n\t\t\t\td++;\n\t\t\telse { // If it's the last day of the month, reset the day\n\t\t\t\td = 1;\n\t\t\t\tif (m == 12) { // If it's the last month, reset the month and\n\t\t\t\t\t// add 1 year\n\t\t\t\t\tm = 1;\n\t\t\t\t\ty++;\n\t\t\t\t} else { // If it's not the last month, add 1 month\n\t\t\t\t\tm++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If it's February and a leap year\n\t\t} else if (isLeapYear(y)) {\n\t\t\tif (d < 29) // If it's not the last day of the month, add 1 day\n\t\t\t\td++;\n\t\t\telse { // If it's the last day of the month, reset the day and add 1\n\t\t\t\t// month\n\t\t\t\td = 1;\n\t\t\t\tm++;\n\t\t\t}\n\t\t} else { // if it's February and not a leap year\n\t\t\tif (d < 28)// If it's not the last day of the month, add 1 day\n\t\t\t\td++;\n\t\t\telse { // If it's the last day of the month, reset the day and add 1\n\t\t\t\t// month\n\t\t\t\td = 1;\n\t\t\t\tm++;\n\t\t\t}\n\t\t}\n\t\t// Return the date plus one day\n\t\treturn d + \"/\" + m + \"/\" + y;\n\t}",
"public String getOnlyYear(String date, String pattern) {\r\n\t\tString year;\r\n\t\tDateTimeFormatter formatter = DateTimeFormat.forPattern(pattern);\r\n\t\tLocalDate localDate = formatter.parseLocalDate(date);\r\n\t\tyear = localDate.yearOfCentury().getAsText();\r\n\t\tif(year.length()==1) year = \"0\"+year;\r\n\t\treturn year;\r\n\t}",
"public String changeDateFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy\";\n String outputPattern = \"MMMM dd, yyyy\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }",
"public static Date parseDateYYYYMMDDWithoutSeparator(String val) {\n\n\t\tDate d = null;\n\n\t\tif (val != null && !val.equals(\"0\")) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\t\ttry {\n\t\t\t\td = format.parse(val);\n\t\t\t} catch (ParseException e) {\n\t\t\t}\n\t\t}\n\n\t\treturn d;\n\n\t}",
"public static String getTodayDate() {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyyMMdd\");\n return simpleDateFormat.format(new Date());\n }",
"private String createDate(){\n SimpleDateFormat date = new SimpleDateFormat(\"EEE, MMM d, yyyy\");\n String stringDate = date.format(new Date()); \n return stringDate;\n }",
"@Test\n public void toStringOk(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.toString(),\"1 january 1970\");\n }",
"public String getDDMMMYYYYDate(String date) throws Exception {\n HashMap<Integer, String> month = new HashMap<Integer, String>();\n month.put(1, \"Jan\");\n month.put(2, \"Feb\");\n month.put(3, \"Mar\");\n month.put(4, \"Apr\");\n month.put(5, \"May\");\n month.put(6, \"Jun\");\n month.put(7, \"Jul\");\n month.put(8, \"Aug\");\n month.put(9, \"Sep\");\n month.put(10, \"Oct\");\n month.put(11, \"Nov\");\n month.put(12, \"Dec\");\n\n try {\n String[] dtArray = date.split(\"-\");\n return dtArray[1] + \"-\" + month.get(Integer.parseInt(dtArray[1])) + \"-\" + dtArray[0];\n } catch (Exception e) {\n throw new Exception(\"getDDMMMYYYYDate : \" + date + \" : \" + e.toString());\n }\n\n }",
"private String getDate(int year, int month, int day) {\n return new StringBuilder().append(month).append(\"/\")\n .append(day).append(\"/\").append(year).toString();\n }",
"public static String date_d(String sourceDate,String format) throws ParseException {\n SimpleDateFormat sdf_ = new SimpleDateFormat(\"yyyy-MM-dd\");\n SimpleDateFormat sdfNew_ = new SimpleDateFormat(format);\n return sdfNew_.format(sdf_.parse(sourceDate));\n }",
"public Date stringToDate(String d)\n\t{\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"MMM-yyyy\");\n\t\t\n\t\tDate date = new Date();\n\t\t\n\t\ttry \n\t\t{\n\t\t\tdate = format.parse(d);\n\t\t} \n\t\tcatch (ParseException e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn date;\n\t}",
"public final int getYYYY()\n {\n return yyyy;\n }",
"public static String parseMmDdYyyyToYyyyMmDD(String dateString) {\n try {\n // Date is MM-DD-YYYY, convert to YYYY-MM-DD\n return String.format(\"%s-%s-%s\", dateString.substring(6, 10), dateString.substring(0, 2),\n dateString.substring(3, 5));\n } catch (StringIndexOutOfBoundsException e) {\n return dateString;\n }\n }",
"public static String getYearMonthFormat(String strFormat) {\n String yearMonthFormat = \"\";\n String etemp = \"\";\n String regex = \".*[^a-zA-Z0-9]\";\n int epos = strFormat.lastIndexOf(\"d\");\n\n if (epos + 1 < strFormat.length()) {\n etemp = strFormat.substring(epos + 1, epos + 2);\n }\n\n yearMonthFormat = strFormat.replaceAll(\"d\", \"\");\n yearMonthFormat = yearMonthFormat.replaceAll(\"m\", \"M\");\n\n if (etemp.length() > 0)\n yearMonthFormat = yearMonthFormat.replaceFirst(etemp, \"\");\n\n if (yearMonthFormat.matches(regex)) {\n yearMonthFormat = yearMonthFormat.substring(0, yearMonthFormat.length() - 1);\n if (yearMonthFormat.matches(regex)) {\n yearMonthFormat = yearMonthFormat.substring(0, yearMonthFormat.length() - 1);\n }\n }\n return yearMonthFormat;\n }",
"@Test\n void test7(){\n\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = new Date();\n String dString = formatter.format(date);\n System.out.println(\"dString=\"+dString);\n\n Date datas = java.sql.Date.valueOf(dString);\n System.out.println(\"datas=\"+datas);\n\n\n }",
"public int MagicDate(){\n return month = day = year = 1;\n \n }",
"public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }",
"public String getYear(){\n return rssData.getDate().split(\"/\")[2];\n }",
"public Date(int y, int m, int d){\n\t\tif((y<2015 || m<=0 || m>12 || d<=0 || d>31)){\n\t\t\tyear=0;\n\t\t\tmonth=0;\n\t\t\tday=0;\n\t\t}else{\n\t\t\tyear=y;\n\t\t\tmonth=m;\n\t\t\tday=d;\n\t\t}\n\t\t\n\t}",
"public void createDate(){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy_MM_dd\"); //TODO -HHmm si dejo diagonales separa bonito en dia, pero para hacer un armado de excel creo que debo hacer un for mas\n currentDateandTime = sdf.format(new Date());\n Log.e(TAG, \"todays date is: \"+currentDateandTime );\n\n}",
"private String concatenateYearAndMonthAsString(Date date){\n\t\tString concatenatedYearAndMonth=\"\";\n\t\tCalendar cal = Calendar.getInstance(); // creates calendar\n\t\tcal.setTime(date);\n\t\tconcatenatedYearAndMonth = String.valueOf(cal.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t\t\t .concat(String.valueOf(cal.get(Calendar.MONTH) + 1));\n\t\t\t\t\t\t\t\t\t\t \n\t\treturn concatenatedYearAndMonth;\n\t}",
"public static String formatDate(Date date) {\n\t\tString newstring = new SimpleDateFormat(\"MM-dd-yyyy\").format(date);\n\t\treturn newstring;\n\t}",
"public static String create(int year, int month, int date) {\r\n\t\tCalendar dateTime = createCalendar(year, month, date);\r\n\t\treturn YYYY_MM_DD_FORMATTER.format(dateTime.getTime());\r\n\t}",
"public static String formartDateYOB(String mDate) {\n\t\t\t\t\n\t\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"dd/mm/yyyy\");\n\t\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t\t \n\t\t\t\t String outDate = \"\";\n\t\t\t\t \n\t\t\t\t if (mDate != null) {\n\t\t\t\t try {\n\t\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t\t outDate = outSDF.format(date);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t } catch (Exception ex){ \n\t\t\t\t \tex.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t return outDate;\n\t\t\t}",
"private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }",
"public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }",
"private static String generateDateString(int year, int month, int dayOfMonth){\n //Add one to month b/c Android is zero-based while SimpleDateFormatter is not\n month++;\n String yearString = String.format(Locale.getDefault(), \"%04d\", year);\n String monthString = String.format(Locale.getDefault(), \"%02d\", month);\n String dayOfMonthString = String.format(Locale.getDefault(), \"%02d\", dayOfMonth);\n\n String result = yearString + \".\" + monthString + \".\" + dayOfMonthString;\n return result;\n }",
"public static String longToYYYYMMDD(long longTime)\r\n/* 143: */ {\r\n/* 144:206 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 145:207 */ Date strtodate = new Date(longTime);\r\n/* 146:208 */ return formatter.format(strtodate);\r\n/* 147: */ }",
"private String getYear(String date) {\n String year = \"N/A\";\n if (date != null && !date.equals(\"\")) {\n SimpleDateFormat parser = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date movieDate = null;\n try {\n movieDate = parser.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Calendar cal = Calendar.getInstance();\n cal.setTime(movieDate);\n year = \"\" + cal.get(Calendar.YEAR);\n }\n return year;\n }",
"public String convertCalendarDateFormatFromNumbersToMonthDayComaYear(String stringDate) throws ParseException {\n\t\t\t\tDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\tDate date = formatter.parse(stringDate);\n\t\t\t\tlong mills = date.getTime();\n\t\t\t\tformatter = new SimpleDateFormat(\"MMM dd, yyyy\");\n\t\t\t\tdate = new Date(mills);\n\t\t\t\treturn formatter.format(date);\n\t\t\t}",
"public static void main(String[] args) {\r\n\t\tDateTimeFormatter df=DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\r\n\tLocalDate date=LocalDate.now().plusDays(11).plusMonths(2).plusYears(1);\r\n\tSystem.out.println(df.format(date));\r\n\t}",
"public static int getYearByDate(Date val) {\n\t\tif (val != null) {\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy\");\n\t\t\treturn parseInt(format.format(val));\n\t\t} else {\n\n\t\t\treturn 0;\n\n\t\t}\n\t}",
"void showdate(){\n \n Date d = new Date();\n SimpleDateFormat s = new SimpleDateFormat(\"yyyy-MM-dd\");\n jLabel4.setText(s.format(d));\n}",
"public Date(int m, int d, int y) {\n\t\t\n\t\tmonth = m;\n\t\tday = d;\n\t\tyear = y;\n\t\t\n\t}",
"private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }",
"public static void main(String[] args) throws ParseException {\n\n\t\tString startPattern = \"MMM yyyy\";\n\n\t\tString endPattern = \"MM-dd-yyyy\";\n\n\t\tString str = formateDate(\"mar 2019\", startPattern, endPattern);\n\t\tSystem.out.println(str);\n\n\t}",
"public static Integer getYear(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy\"); //EX 2016,02\r\n return new Integer(df.format(date));\r\n }",
"public interface Format {\n public static final String PATTERN_DATE = \"yyyy-MM-dd\";\n public static final String PATTERN_DATE_YEAR = \"yyyy\";\n}",
"private static String getYearMonth() {\n LocalDate oneMonthAgo = LocalDate.now().minusMonths(1);\n return oneMonthAgo.getYear() + String.format(\"%02d\", oneMonthAgo.getMonth().getValue());\n }",
"public DateTimeFormatterBuilder appendYear(int minDigits, int maxDigits) {\r\n return appendSignedDecimal(DateTimeFieldType.year(), minDigits, maxDigits);\r\n }",
"private int getPublishingYear(String date) {\n String[] splitArray = date.split(\"-\");\n\n return Integer.parseInt(splitArray[splitArray.length - 1]);\n }",
"public void setDate(int m, int d, int y){\n\t\tday = d;\n\t\tyear =y;\n\t\tmonth = m;\n\t}",
"public static String m24132a(Context context, Date date, String str) {\n return context != null ? new SimpleDateFormat(str, Locale.US).format(date) : \"\";\n }",
"public static String randomDate() {\n DateFormat format = new SimpleDateFormat(\"ddMMyyHHmmss\");\n return format.format(new Date());\n }",
"private String formatReleaseDate(String releaseDate) {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date dateObject;\n try {\n dateObject = format.parse(releaseDate);\n }\n catch (ParseException pe) {\n Log.e(LOG_TAG, \"Error while retrieving movie information\");\n return releaseDate;\n }\n format = new SimpleDateFormat(\"LLL dd, yyyy\");\n\n return format.format(dateObject);\n }",
"public void parseDate(String d)\n {\n\tdate.set(d);\n String [] dateList = d.split(\"-\");\n \n year.set(Integer.valueOf(dateList[0]));\n month.set(Integer.valueOf(dateList[1]));\n day.set(Integer.valueOf(dateList[2]));\n }",
"public static String convertDate(String input) {\n String res = \"\";\n\n String[] s = input.split(\" \");\n\n res += s[2] + \"-\";\n switch (s[1]) {\n case \"January\":\n res += \"01\";\n break;\n case \"February\":\n res += \"02\";\n break;\n case \"March\":\n res += \"03\";\n break;\n case \"April\":\n res += \"04\";\n break;\n case \"May\":\n res += \"05\";\n break;\n case \"June\":\n res += \"06\";\n break;\n case \"July\":\n res += \"07\";\n break;\n case \"August\":\n res += \"08\";\n break;\n case \"September\":\n res += \"09\";\n break;\n case \"October\":\n res += \"10\";\n break;\n case \"November\":\n res += \"11\";\n break;\n case \"December\":\n res += \"12\";\n break;\n default:\n res += \"00\";\n break;\n }\n\n res += \"-\";\n if (s[0].length() == 1) {\n res += \"0\" + s[0];\n }\n else {\n res += s[0];\n }\n return res;\n }",
"public Date(int m, int d, int y) {\r\n\t\tif (!isValid(m, d, y))\r\n\t\t\tthrow new RuntimeException(\"Invalid date\");\r\n\t\tmonth = m;\r\n\t\tday = d;\r\n\t\tyear = y;\r\n\t}",
"public Date212 (String s){ //initial constructor\n full_Date = s;\n // System.out.println(full_Date + \"jdjdj\");\n if (!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\"); \n //If it is not true that the date is valid then throw a error.\n /* \n The substring methods to pull out the Year, Month, and Day.\n */\n Year = Integer.parseInt(full_Date.substring(0,3)); \n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n count++; \n addArray(this); //Calling the function \"addArray\" with 'this isntance of date212'\n // System.out.println(myDates[i]);\n\n }",
"public static Calendar extractDate(int date){\n Calendar c = Calendar.getInstance();\n String d = date+\"\";\n int year = Integer.parseInt(d.substring(0, 4));\n int month = Integer.parseInt(d.substring(4, 6))-1;\n int day = Integer.parseInt(d.substring(6, 8));\n c.set(year, month, day);\n return c;\n }"
] | [
"0.69620323",
"0.65620595",
"0.6333391",
"0.6217897",
"0.61983466",
"0.6134493",
"0.6126157",
"0.60144097",
"0.59611154",
"0.5934498",
"0.58846515",
"0.58841723",
"0.5879338",
"0.5866459",
"0.585316",
"0.584116",
"0.58175814",
"0.5802563",
"0.57678986",
"0.57636905",
"0.57467103",
"0.57447237",
"0.5743209",
"0.5721682",
"0.5715734",
"0.5687072",
"0.566092",
"0.5647668",
"0.564599",
"0.5624522",
"0.55958444",
"0.5559948",
"0.55469483",
"0.55349255",
"0.55349255",
"0.5531663",
"0.5530622",
"0.55265176",
"0.55192494",
"0.55061656",
"0.55036664",
"0.54923415",
"0.54833555",
"0.54527074",
"0.54464",
"0.5438933",
"0.542529",
"0.54190654",
"0.5418791",
"0.5412063",
"0.5408987",
"0.54089683",
"0.5404394",
"0.5389354",
"0.5379911",
"0.5375438",
"0.53725517",
"0.53716695",
"0.53624773",
"0.5360408",
"0.53511405",
"0.5349962",
"0.5347715",
"0.5338798",
"0.5338522",
"0.5328632",
"0.5327771",
"0.5325055",
"0.53225213",
"0.5321908",
"0.5316427",
"0.5315528",
"0.53044194",
"0.53030294",
"0.5296437",
"0.52947617",
"0.52825314",
"0.5279722",
"0.52743334",
"0.525835",
"0.5256503",
"0.5248424",
"0.52437025",
"0.5242996",
"0.5240265",
"0.5220216",
"0.5218196",
"0.52161777",
"0.5207999",
"0.52061224",
"0.5202956",
"0.52018684",
"0.5198154",
"0.5182767",
"0.5180778",
"0.5173794",
"0.51630473",
"0.51630116",
"0.5160458",
"0.5157443",
"0.51566136"
] | 0.0 | -1 |
/ renamed from: com.fyber.inneractive.sdk.b.b$b | public interface C7654b {
/* renamed from: a */
C7904c mo24084a();
/* renamed from: b */
C7716a mo24085b();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void b() {\n }",
"@Override\n\tpublic void b() {\n\n\t}",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void b() {\n }",
"public void b() {\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"private final void asB() {\n /*\n r6 = this;\n r0 = r6.cxs;\n r1 = r6.asp();\n r1 = r1.cCg;\n r2 = \"binding.depositAmountEdit\";\n kotlin.jvm.internal.i.e(r1, r2);\n r2 = r0 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n r3 = 0;\n r4 = 1;\n if (r2 == 0) goto L_0x002b;\n L_0x0013:\n r2 = r0;\n r2 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r2;\n r2 = r2.aaH();\n if (r2 == 0) goto L_0x0027;\n L_0x001c:\n r2 = r2.aaT();\n if (r2 == 0) goto L_0x0027;\n L_0x0022:\n r2 = r2.size();\n goto L_0x0028;\n L_0x0027:\n r2 = 0;\n L_0x0028:\n if (r2 != 0) goto L_0x002b;\n L_0x002a:\n goto L_0x0040;\n L_0x002b:\n if (r0 == 0) goto L_0x0032;\n L_0x002d:\n r2 = r0.ZL();\n goto L_0x0033;\n L_0x0032:\n r2 = 0;\n L_0x0033:\n r5 = com.iqoption.core.microservices.billing.response.deposit.cashboxitem.CashboxItemType.USER_CARD;\n if (r2 != r5) goto L_0x0038;\n L_0x0037:\n goto L_0x0040;\n L_0x0038:\n r2 = r6.aoJ();\n if (r2 == 0) goto L_0x003f;\n L_0x003e:\n goto L_0x0040;\n L_0x003f:\n r4 = 0;\n L_0x0040:\n r2 = \"binding.depositPresetsList\";\n if (r4 == 0) goto L_0x0053;\n L_0x0044:\n r0 = r6.asp();\n r0 = r0.cCr;\n kotlin.jvm.internal.i.e(r0, r2);\n r0 = (android.view.View) r0;\n com.iqoption.core.ext.a.ak(r0);\n goto L_0x006b;\n L_0x0053:\n r3 = r6.asp();\n r3 = r3.cCr;\n kotlin.jvm.internal.i.e(r3, r2);\n r3 = (android.view.View) r3;\n com.iqoption.core.ext.a.al(r3);\n r2 = new com.iqoption.deposit.light.perform.c$s;\n r2.<init>(r6, r0);\n r2 = (android.view.View.OnFocusChangeListener) r2;\n r1.setOnFocusChangeListener(r2);\n L_0x006b:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asB():void\");\n }",
"public abstract C0631bt mo9227aB();",
"public bb b() {\n return a(this.a);\n }",
"private final zzgy zzgb() {\n }",
"public zzr zzBb() {\n return new zzr() {\n /* class com.google.android.gms.wearable.internal.zzm.AnonymousClass1 */\n\n @Override // com.google.android.gms.wearable.internal.zzr\n public void zzb(zzj zzj) {\n zzm.this.zza(zzj);\n }\n };\n }",
"public abstract B zzjo();",
"void mo50321b(C18924b bVar);",
"d(b bVar) {\n super(2);\n this.this$0 = bVar;\n }",
"public void mo21825b() {\n }",
"public void mo115190b() {\n }",
"public void mo23981a(C4321b bVar) {\n }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"b(c cVar) {\n super(0);\n this.this$0 = cVar;\n }",
"public static void bi() {\n\t}",
"@Override\n\tpublic void b() {\n\t\tSystem.out.println(\"b method\");\n\t\t\n\t}",
"public final void mo1285b() {\n }",
"BOpMethod createBOpMethod();",
"private VerbBridge() {\r\n\t\tvB = null;\r\n\t}",
"void mo50320a(C18924b bVar);",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public abstract void mo9244b(C0620bi biVar);",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public abstract BoundType b();",
"public abstract void mo9245b(C0631bt btVar);",
"public /* synthetic */ void mo7209b(as asVar, bp bpVar) throws bv {\n m21417a(asVar, (bc) bpVar);\n }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public void mo5251b() {\n }",
"private C6310a m35240b() {\n return new C6310a() {\n public final void handleMsg(Message message) {\n }\n };\n }",
"public /* synthetic */ void mo1929b(cy cyVar, bz bzVar) throws cf {\r\n m9702a(cyVar, (be) bzVar);\r\n }",
"BOp createBOp();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public abstract Object mo1185b();",
"public void baocun() {\n\t\t\n\t}",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"public /* bridge */ /* synthetic */ void mo55095b() {\n super.mo55095b();\n }",
"void mo7439b(C0933b bVar);",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public /* synthetic */ void mo1929b(cy cyVar, bz bzVar) throws cf {\r\n m9079a(cyVar, (aq) bzVar);\r\n }",
"C4932q5 mo19394a(byte[] bArr) throws zzfn;",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"void mo100442a(C40429b bVar);",
"public final void b() {\n /*\n r10 = this;\n r0 = 0\n java.lang.Object[] r1 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r3 = f53248e\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55479(0xd8b7, float:7.7743E-41)\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x0025\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = f53248e\n r5 = 0\n r6 = 55479(0xd8b7, float:7.7743E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x0025:\n com.ss.android.ugc.aweme.live.alphaplayer.e$i r9 = r10.h\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r2, r3, r4, r5, r6, r7, r8)\n if (r2 == 0) goto L_0x004b\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x004b:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r2 = g\n monitor-enter(r2)\n r0 = 1\n r9.f53270c = r0 // Catch:{ all -> 0x006e }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ all -> 0x006e }\n r0.notifyAll() // Catch:{ all -> 0x006e }\n L_0x0056:\n boolean r0 = r9.f53269b // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n boolean r0 = r9.f53271d // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ InterruptedException -> 0x0064 }\n r0.wait() // Catch:{ InterruptedException -> 0x0064 }\n goto L_0x0056\n L_0x0064:\n java.lang.Thread r0 = java.lang.Thread.currentThread() // Catch:{ all -> 0x006e }\n r0.interrupt() // Catch:{ all -> 0x006e }\n goto L_0x0056\n L_0x006c:\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n return\n L_0x006e:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.b():void\");\n }",
"protected bed e()\r\n/* 210: */ {\r\n/* 211:245 */ return new bed(this, new IBlockData[] { a, b });\r\n/* 212: */ }",
"public void mo32543a(C6744b bVar) {\n }",
"private final void m576b() {\n C2886bb bbVar = this.f1229b;\n bbVar.getClass();\n this.f1230c.mo44145a().mo43918a().addOnSuccessListener(this.f1236i.mo44145a(), C2963e.m573a(bbVar)).addOnFailureListener(this.f1236i.mo44145a(), C2964f.f1224a);\n }",
"public void mo9137b() {\n }",
"public bcm a(World paramaqu, int paramInt)\r\n/* 41: */ {\r\n/* 42:56 */ return new bdj();\r\n/* 43: */ }",
"public final void mo88395b() {\n if (this.f90938h == null) {\n this.f90938h = new C29242a(this.f90931a, this.f90937g).mo74873a((C39376h) new C39376h() {\n /* renamed from: a */\n public final void mo74759a(C29296g gVar) {\n }\n\n /* renamed from: a */\n public final void mo74760a(C29296g gVar, int i) {\n }\n\n /* renamed from: d */\n public final void mo74763d(C29296g gVar) {\n }\n\n /* renamed from: b */\n public final void mo74761b(C29296g gVar) {\n C34867a.this.f90934d.setVisibility(0);\n if (!C39805en.m127445a()) {\n C23487o.m77136a((Activity) C34867a.this.f90931a);\n }\n C6907h.m21519a((Context) C34867a.this.f90931a, \"filter_confirm\", \"mid_page\", \"0\", 0, C34867a.this.f90936f);\n }\n\n /* renamed from: c */\n public final void mo74762c(C29296g gVar) {\n String str;\n C34867a.this.f90933c = gVar;\n C34867a.this.f90932b.mo88467a(gVar.f77273h);\n if (C34867a.this.f90935e != null) {\n C34867a.this.f90935e.mo98958a(gVar);\n }\n EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c);\n if (b == null) {\n str = \"\";\n } else {\n str = b.name;\n }\n C6907h.m21524a(\"select_filter\", (Map) C38511bc.m123103a().mo96485a(\"creation_id\", C34867a.this.f90932b.mo88460a().creationId).mo96485a(\"shoot_way\", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a(\"draft_id\", C34867a.this.f90932b.mo88460a().draftId).mo96485a(\"enter_method\", \"click\").mo96485a(\"filter_name\", C34867a.this.f90933c.f77268c).mo96483a(\"filter_id\", C34867a.this.f90933c.f77266a).mo96485a(\"tab_name\", str).mo96485a(\"content_source\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a(\"content_type\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a(\"enter_from\", \"video_edit_page\").f100112a);\n }\n }).mo74871a((C29240bc) new C39369c(C35563c.f93224F.mo70097l().mo74950c().mo74723f())).mo74874a(this.f90932b.mo88460a().getAvetParameter()).mo74876a();\n if (this.f90933c != null) {\n this.f90938h.mo74751a(this.f90933c);\n }\n }\n this.f90938h.mo74749a();\n this.f90934d.setVisibility(8);\n }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"public void mo23813b() {\n }",
"public abstract void mo9246b(C0707b bVar);",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"void mo46242a(bmc bmc);",
"public void b(ahd paramahd) {}",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public interface C26438t {\n /* renamed from: b */\n void mo5959b(boolean z, String str, Bundle bundle);\n}",
"private void b(xk xk2) {\n if (!(xk2 instanceof xj)) return;\n try {\n ((xj)((Object)xk2)).a();\n return;\n }\n catch (RuntimeException var2_2) {\n String string2 = String.valueOf((Object)xk2);\n Log.w((String)\"TransformedResultImpl\", (String)new StringBuilder(18 + String.valueOf((Object)string2).length()).append(\"Unable to release \").append(string2).toString(), (Throwable)var2_2);\n return;\n }\n }",
"void mo2090a(C0455b bVar);",
"void mo7381b(C1320b bVar) throws RemoteException;",
"public void m21419b(as asVar, bc bcVar) throws bv {\n bcVar.m21466o();\n asVar.mo7181a(bc.f18790e);\n if (bcVar.f18795a != null) {\n asVar.mo7178a(bc.f18791f);\n asVar.mo7180a(new ar(Ascii.VT, Ascii.FF, bcVar.f18795a.size()));\n for (Entry entry : bcVar.f18795a.entrySet()) {\n asVar.mo7176a((String) entry.getKey());\n ((bb) entry.getValue()).mo7214b(asVar);\n }\n asVar.mo7184d();\n asVar.mo7182b();\n }\n if (bcVar.f18796b != null && bcVar.m21462k()) {\n asVar.mo7178a(bc.f18792g);\n asVar.mo7179a(new aq(Ascii.FF, bcVar.f18796b.size()));\n for (ba b : bcVar.f18796b) {\n b.mo7214b(asVar);\n }\n asVar.mo7185e();\n asVar.mo7182b();\n }\n if (bcVar.f18797c != null && bcVar.m21465n()) {\n asVar.mo7178a(bc.f18793h);\n asVar.mo7176a(bcVar.f18797c);\n asVar.mo7182b();\n }\n asVar.mo7183c();\n asVar.mo7173a();\n }",
"public final /* bridge */ /* synthetic */ void b(Object obj) {\n cjj cjj = (cjj) obj;\n if (cjj != null) {\n this.c.c.setImageBitmap(cjj.b);\n AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);\n alphaAnimation.setDuration((long) this.c.g);\n alphaAnimation.setFillAfter(true);\n int a = cjj.a.a(-1);\n this.c.b.getProgressDrawable().setTint(a);\n this.c.b.getIndeterminateDrawable().setTint(a);\n chm.a(this.c.c, alphaAnimation);\n }\n }",
"static b.e.d.f.b[] a(android.content.Context r19, b.e.d.a r20, java.lang.String r21, android.os.CancellationSignal r22) {\r\n /*\r\n // Method dump skipped, instructions count: 321\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: b.e.d.f.a(android.content.Context, b.e.d.a, java.lang.String, android.os.CancellationSignal):b.e.d.f$b[]\");\r\n }",
"public abstract void mo70713b();",
"public void m21425b(as asVar, bc bcVar) throws bv {\n int i = 0;\n asVar = (ax) asVar;\n ar arVar = new ar(Ascii.VT, Ascii.FF, asVar.mo7199s());\n bcVar.f18795a = new HashMap(arVar.f18601c * 2);\n for (int i2 = 0; i2 < arVar.f18601c; i2++) {\n String v = asVar.mo7202v();\n bb bbVar = new bb();\n bbVar.mo7211a(asVar);\n bcVar.f18795a.put(v, bbVar);\n }\n bcVar.m21448a(true);\n BitSet b = asVar.mo7205b(2);\n if (b.get(0)) {\n aq aqVar = new aq(Ascii.FF, asVar.mo7199s());\n bcVar.f18796b = new ArrayList(aqVar.f18598b);\n while (i < aqVar.f18598b) {\n ba baVar = new ba();\n baVar.mo7211a(asVar);\n bcVar.f18796b.add(baVar);\n i++;\n }\n bcVar.m21452b(true);\n }\n if (b.get(1)) {\n bcVar.f18797c = asVar.mo7202v();\n bcVar.m21454c(true);\n }\n }",
"public t b() {\n return a(this.a);\n }",
"public void mo23438b() {\n }",
"public interface bj\n extends bl\n{\n\n public abstract void a(a a1);\n\n public abstract void b(a a1);\n\n public abstract Ad c();\n\n public abstract String d();\n\n public abstract a e();\n\n public abstract b f();\n\n // Unreferenced inner class com/vungle/publisher/bj$a\n /* block-local class not found */\n class a {}\n\n\n // Unreferenced inner class com/vungle/publisher/bj$b\n /* block-local class not found */\n class b {}\n\n}",
"private void bid() {\n\t\t\t\n\t\t}",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"protected void b(Drawable drawable)\n {\n class b {}\n\n if (j != null)\n {\n j.a(drawable);\n }\n }",
"@Override // com.zhihu.android.p1973v.p1974a.BaseDelegate\n /* renamed from: b */\n public String mo110892b() {\n return C6969H.m41409d(\"G6A8CD854A538A221F3409146F6F7CCDE6DCDC014B633A424A83B9E41F1EACEF87986C71BAB3FB9\");\n }",
"public abstract C0270jy mo5354b();",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public abstract void mo35054b();",
"void mo7305b(C1070b bVar);",
"void mo83703a(C32456b<T> bVar);",
"void b();",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public /* synthetic */ void mo7208a(as asVar, bp bpVar) throws bv {\n m21419b(asVar, (bc) bpVar);\n }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }",
"public abstract void zzf(Object obj, B b);",
"public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}",
"protected abstract void a(bru parambru);",
"void mo88523b();",
"static /* synthetic */ void m21605b(C13459z c13459z) {\n AppMethodBeat.m2504i(37332);\n c13459z.bgC();\n AppMethodBeat.m2505o(37332);\n }"
] | [
"0.6955574",
"0.6877544",
"0.6872301",
"0.67911994",
"0.66005635",
"0.6533814",
"0.647443",
"0.6468631",
"0.6468631",
"0.6386671",
"0.63595915",
"0.6342565",
"0.63006973",
"0.6269729",
"0.6241059",
"0.6232818",
"0.6232735",
"0.6200647",
"0.6191616",
"0.61191005",
"0.6118336",
"0.61163896",
"0.61063176",
"0.60850495",
"0.60804224",
"0.6053407",
"0.59932506",
"0.5988472",
"0.5984267",
"0.5963774",
"0.5949982",
"0.5948303",
"0.59330153",
"0.5927056",
"0.5922627",
"0.5916167",
"0.5902422",
"0.58976984",
"0.5892586",
"0.58717394",
"0.58674264",
"0.58578557",
"0.5848989",
"0.5836017",
"0.58335817",
"0.58300596",
"0.58249724",
"0.5818677",
"0.58163726",
"0.5809926",
"0.58018816",
"0.58009344",
"0.5796409",
"0.5792811",
"0.57915026",
"0.5790954",
"0.5787779",
"0.578702",
"0.57856345",
"0.57772815",
"0.5775807",
"0.5772642",
"0.5772233",
"0.57649153",
"0.57628876",
"0.57628876",
"0.57617885",
"0.57593733",
"0.5759145",
"0.57570356",
"0.57381415",
"0.5734349",
"0.5723384",
"0.5721884",
"0.57168317",
"0.5712361",
"0.5706611",
"0.5700632",
"0.56892157",
"0.5687871",
"0.56840724",
"0.56834686",
"0.56772023",
"0.5669884",
"0.5667666",
"0.5664747",
"0.5664183",
"0.5663026",
"0.56603384",
"0.5659865",
"0.5653439",
"0.5646794",
"0.56465834",
"0.56393176",
"0.5638762",
"0.5636477",
"0.5633494",
"0.5632421",
"0.563234",
"0.56298363",
"0.56278414"
] | 0.0 | -1 |
/ renamed from: a | C7904c mo24084a(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: b | C7716a mo24085b(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }",
"public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
] | 0.0 | -1 |
/ renamed from: a | public final void mo24082a(C7903b bVar, C7654b bVar2) {
if (this.f15184a.containsKey(bVar)) {
StringBuilder sb = new StringBuilder("Handler already exists for ad type ");
sb.append(bVar);
sb.append("! : ");
sb.append(this.f15184a.get(bVar));
IAlog.m18023d(sb.toString());
return;
}
this.f15184a.put(bVar, bVar2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
/ renamed from: a | public final boolean mo24083a(C7903b bVar) {
if (this.f15184a.containsKey(bVar)) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
] | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public FREObject call(final FREContext context, FREObject[] arg1) {
_context = context;
FREObject result = null;
// TODO Auto-generated method stub
//--------------------------------
int serverID = 0;
String serverName = null;
try
{
serverID = arg1[0].getAsInt();
serverName = arg1[1].getAsString();
String serverIDstr = null;
if(10 > serverID)
serverIDstr = "00"+serverID;
else if (100 > serverID)
serverIDstr = "0"+serverID;
else
serverIDstr = ""+serverID;
callBack("server:"+serverIDstr+serverName);
GameCenterService.setLoginServer(_context.getActivity(),serverIDstr,serverName);
}
catch (Exception e) {
// TODO: handle exception
callBack("login server arg1 is error");
return null;
}
callBack("success");
//--------------------------------
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Ritorna il DataFlavor per la classe Prodotto. | public static final DataFlavor getDataFlavor () {
try {
return new DataFlavor (DataFlavor.javaJVMLocalObjectMimeType
+ ";class=\""+Prodotto.class.getName() + "\"");
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public DataFlavor getDataFlavor() {\r\n return dataFlavor;\r\n }",
"public boolean isDataFlavorSupported(DataFlavor flavor);",
"public Object getTransferData(DataFlavor flavor)\n throws UnsupportedFlavorException, IOException\n {\n if (flavor == DataFlavor.imageFlavor)\n return this;\n\n return null;\n }",
"public DataFlavor[] getTransferDataFlavors() {\n return new DataFlavor[] {DATA_FLAVOR};\n }",
"public Produto(String nome, String descricao, double preco, String tipo) {\n\t\tthis.nome = nome;\n\t\tthis.descricao = descricao;\n\t\tthis.preco = preco;\n\t\tthis.tipo = tipo;\n\t}",
"protected void addDataFlavor(DataFlavor flavor) {\r\n //Check for Desktop Component Support\r\n dataFlavors.add(flavor);\r\n }",
"private static DataFlavor createDefaultDataFlavor() {\n try {\n return new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType + \";class=\\\"\"\n + DocumentTreeNode[].class.getName() + \"\\\"\");\n } catch (ClassNotFoundException e) {\n // this will never happen\n return null;\n }\n }",
"@Override\n public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException {\n Object data = null;\n if (TABLE_DATA_FLAVOR.equals(flavor)) {\n data = model;\n } else if (HTML_DATA_FLAVOR.equals(flavor)) {\n data = new ByteArrayInputStream(formatAsHTML().getBytes());\n } else if (SERIALIZED_DATA_FLAVOR.equals(flavor)) {\n data = formatAsHTML();\n } else if (CSV_DATA_FLAVOR.equals(flavor)) {\n data = new ByteArrayInputStream(\"CSV\".getBytes());\n } else {\n throw new UnsupportedFlavorException(flavor);\n }\n return data;\n }",
"public void riempiProceduraComboBox(){\n Statement stmt;\n ResultSet rst;\n String query = \"SELECT P.schema, P.nomeProcedura FROM Procedura P\";\n \n proceduraComboBox.removeAllItems();\n try{\n stmt = Database.getDefaultConnection().createStatement();\n rst = stmt.executeQuery(query);\n \n while(rst.next()){\n //le Procedure nella comboBox saranno mostrate secondo il modello: nomeSchema.nomeProcedura\n //in quanto Procedure appartenenti a Schemi diversi possono avere lo stesso nome\n proceduraComboBox.addItem(rst.getString(1)+\".\"+rst.getString(2));\n }\n proceduraComboBox.setSelectedIndex(-1);\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n }",
"public DataFlavor[] getTransferDataFlavors() {\r\n if(dataFlavors == null) {\r\n return new DataFlavor[0];\r\n }\r\n \r\n DataFlavor[] _array = new DataFlavor[dataFlavors.size()];\r\n return (DataFlavor[])dataFlavors.toArray(_array);\r\n }",
"public ActivationDataFlavor[] getTransferDataFlavors();",
"public Object getTransferData(DataFlavor flavor)\n throws UnsupportedFlavorException,\n IOException\n {\n return uiContacts;\n }",
"public DataFlavor[] getTransferDataFlavors()\n {\n DataFlavor[] flavors = {DataFlavor.imageFlavor};\n return flavors;\n }",
"public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException {\r\n if(isDataFlavorSupported(flavor)==false) throw new UnsupportedFlavorException(flavor);\r\n \r\n //Get the Objects BLX XML as the Data\r\n if(flavor.equals(BLXDataFlavor.XML_FLAVOR)) {\r\n \r\n StringWriter writer = new StringWriter();\r\n BLXUtility.writeBLXObject(dataObj, writer);\r\n \r\n return new ByteArrayInputStream(writer.toString().getBytes());\r\n }\r\n \r\n throw new UnsupportedFlavorException(flavor);\r\n }",
"protected void addPropietarioPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_propietario_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__PROPIETARIO,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public Object getTransferData(ActivationDataFlavor df, DataSource ds)\n\t\t\t\tthrows /*UnsupportedFlavorException,*/ IOException;",
"public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException {\n\t\treturn abilities;\n\t}",
"public String getFlavorText() {\n return flavorText;\n }",
"public Produto(String nome, String descricao, double preco, String tipo, double precoTotal) {\n\t\tthis.nome = nome;\n\t\tthis.descricao = descricao;\n\t\tthis.preco = preco;\n\t\tthis.tipo = tipo;\n\t\tthis.precoTotal = precoTotal;\n\t}",
"private TypedProperties getBPD() throws RemoteException\n\t{\n\t if (this.bpd != null)\n\t return this.bpd;\n\t \n\t SepaDauerauftrag auftrag = this.getTransfer();\n\t if (auftrag.isActive())\n this.bpd = DBPropertyUtil.getBPD(auftrag.getKonto(),DBPropertyUtil.BPD_QUERY_SEPADAUER_EDIT);\n\t else\n\t this.bpd = new TypedProperties(); // Der Auftrag ist noch nicht aktiv - dann gibt es noch keine Einschraenkungen\n\t \n\t return this.bpd;\n\t}",
"public Object getTransferData(DataFlavor dataFlavor) throws UnsupportedFlavorException {\n if (!isDataFlavorSupported(dataFlavor)) {\n throw new UnsupportedFlavorException(dataFlavor);\n }\n\n return this.transferData;\n }",
"@Override\n\tpublic void setObjectProperty(String propiedad, Object valor) {\n\n\t\tswitch (propiedad) {\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR1P:\n\t\t\tcolor1P = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR2P:\n\t\t\tcolor2P = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR1S:\n\t\t\tcolor1S = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR2S:\n\t\t\tcolor2S = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_SERIGRAFIADOP:\n\t\t\tserigrafiadoP = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_SERIGRAFIADOS:\n\t\t\tserigrafiadoS = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_PUBLICIDADP:\n\t\t\tpublicidadP = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_PUBLICIDADS:\n\t\t\tpublicidadS = ((String) valor);\n\t\t\tbreak;\n\t\tcase PROPIEDAD_clsEQUIPACION_DORSAL:\n\t\t\tdorsal = ((int) valor);\n\t\t\tbreak;\n\n\t\t}\n\n\t}",
"public ComboBoxModel getTiposProducto();",
"@Override\n public boolean isDataFlavorSupported(DataFlavor flavor) {\n boolean supported = false;\n for (DataFlavor mine : getTransferDataFlavors()) {\n if (mine.equals(flavor)) {\n supported = true;\n break;\n }\n }\n return supported;\n }",
"public Produto(String descricao, double valor, Calendar anoFrabricacao) {\n\t\tthis.quantidadeEmUnidade = 1;\n\t\tsetDescricao(descricao);\n\t\tsetAnoFrabricacao(anoFrabricacao);\n\t\tsetValor(valor);\n\t}",
"public boolean isDataFlavorSupported(DataFlavor flavor)\n {\n return uiContactDataFlavor.equals(flavor);\n }",
"private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }",
"private DataFlavor chooseDropFlavor(DropTargetDropEvent e) {\n\t\tif (e.isLocalTransfer() == true && e.isDataFlavorSupported(ElementDrag.DEFAULT_FLAVOR)) {\n\t\t\treturn ElementDrag.DEFAULT_FLAVOR;\n\t\t}\n\t\treturn null;\n\t}",
"private void pasteMetaDataFromClipboardField(OwField prop_p) throws Exception\r\n {\r\n OwClipboard clipboard = getClipboard();\r\n if (clipboard != null && !clipboard.getContent().isEmpty())\r\n {\r\n Iterator it = clipboard.getContent().iterator();\r\n while (it.hasNext())\r\n {\r\n OwField field = ((OwClipboardContentOwField) it.next()).getField();\r\n //search for the correct field <--> field association\r\n if (field.getFieldDefinition().getClassName().equals(prop_p.getFieldDefinition().getClassName()))\r\n {\r\n prop_p.setValue(field.getValue());\r\n\r\n //exit loop\r\n break;\r\n }\r\n }\r\n }\r\n }",
"public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}",
"public DataFlavor[] getTransferDataFlavors() {\n\t\treturn flavors;\n\t}",
"public FrmImprimirEtiqueta(java.awt.Frame parent, boolean modal, Produto produto) {\n super(parent, modal);\n initComponents();\n \n BufferedImage image = null;\n try {\n image = ImageIO.read(this.getClass().getResource(\"/images/printer.png\"));\n } catch (IOException e) {\n \n }\n this.setIconImage(image); \n \n try {\n Horus.atualizarComboBox(cbProdutos, ManterProdutoController.getInstance().getProdutos());\n } catch (Exception e){\n JOptionPane.showMessageDialog(null, \"Erro ao carregar Produtos!\");\n } \n \n spQtd.setValue(1);\n \n if (produto!=null){\n int achou = 0;\n for (int i=1;i<cbProdutos.getItemCount();i++){\n if (((Produto)(cbProdutos.getItemAt(i))).getId().equals(produto.getId())){\n cbProdutos.setSelectedIndex(i);\n achou =1;\n break;\n }\n }\n \n if (achou==1){\n txtDescricao.setText(produto.getNome());\n txtPreco.setText(NumberFormat.getCurrencyInstance().format(produto.getValorSaida()));\n }\n }\n }",
"private void pasteMetaDataFromClipboardObject(OwField prop_p) throws Exception\r\n {//TODO implement paste MetaData from Clipboard Field to field\r\n if (prop_p != null)\r\n {\r\n OwClipboard clipboard = getClipboard();\r\n OwObject clipboardObject = ((OwClipboardContentOwObject) clipboard.getContent().get(0)).getObject();\r\n try\r\n {\r\n OwField clipboardfield = clipboardObject.getProperty(prop_p.getFieldDefinition().getClassName());\r\n\r\n // filter only writable user fields\r\n if (isfieldPasteable(prop_p, clipboardObject))\r\n {\r\n prop_p.setValue(clipboardfield.getValue());\r\n }\r\n }\r\n catch (OwObjectNotFoundException e)\r\n {\r\n // ignore\r\n }\r\n }\r\n }",
"public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}",
"public String getFlavor() {\n \t\treturn flavor == null ? \"tooling\" : flavor; //$NON-NLS-1$\n \t}",
"@SuppressWarnings(\"deprecation\")\n protected Object getRicherData(DataFlavor flavor) throws UnsupportedFlavorException {\n if (richText == null) {\n return null;\n }\n\n if (String.class.equals(flavor.getRepresentationClass())) {\n return richText;\n } else if (Reader.class.equals(flavor.getRepresentationClass())) {\n return new StringReader(richText);\n } else if (InputStream.class.equals(flavor.getRepresentationClass())) {\n return new StringBufferInputStream(richText);\n }\n throw new UnsupportedFlavorException(flavor);\n }",
"protected void addPlacaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_placa_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_placa_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__PLACA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public String getProdotto() {\r\n\t\treturn prodotto;\r\n\t}",
"@Override\r\n\tpublic boolean isHasFlavor() {\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic Object getObjectProperty(String propiedad) {\n\t\tswitch (propiedad) {\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR1P:\n\t\t\treturn this.color1P;\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR2P:\n\t\t\treturn this.color2P;\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR1S:\n\t\t\treturn this.color1S;\n\t\tcase PROPIEDAD_clsEQUIPACION_COLOR2S:\n\t\t\treturn this.color2S;\n\t\tcase PROPIEDAD_clsEQUIPACION_SERIGRAFIADOP:\n\t\t\treturn this.serigrafiadoP;\n\t\tcase PROPIEDAD_clsEQUIPACION_SERIGRAFIADOS:\n\t\t\treturn this.serigrafiadoS;\n\t\tcase PROPIEDAD_clsEQUIPACION_PUBLICIDADP:\n\t\t\treturn this.publicidadP;\n\t\tcase PROPIEDAD_clsEQUIPACION_PUBLICIDADS:\n\t\t\treturn this.publicidadS;\n\t\tcase PROPIEDAD_clsEQUIPACION_DORSAL:\n\t\t\treturn this.dorsal;\n\t\t/**\n\t\t * Aqui es donde propagamos y lanzamos el runtime exception por si iria al\n\t\t * default y cascaria\n\t\t */\n\n\t\tdefault:\n\t\t\tthrow new PropiedadInexistente(\"No existe esa propiedad!\");\n\n\t\t}\n\n\t}",
"protected DataFlavor getImportFlavor(DataFlavor[] flavors, JTextComponent c) {\n DataFlavor plainFlavor = null;\n DataFlavor refFlavor = null;\n DataFlavor stringFlavor = null;\n\n if (c instanceof JEditorPane) {\n for (int i = 0; i < flavors.length; i++) {\n String mime = flavors[i].getMimeType();\n if (mime.startsWith(((JEditorPane)c).getEditorKit().getContentType())) {\n return flavors[i];\n } else if (plainFlavor == null && mime.startsWith(\"text/plain\")) {\n plainFlavor = flavors[i];\n } else if (refFlavor == null && mime.startsWith(\"application/x-java-jvm-local-objectref\")\n && flavors[i].getRepresentationClass() == java.lang.String.class) {\n refFlavor = flavors[i];\n } else if (stringFlavor == null && flavors[i].equals(DataFlavor.stringFlavor)) {\n stringFlavor = flavors[i];\n }\n }\n if (plainFlavor != null) {\n return plainFlavor;\n } else if (refFlavor != null) {\n return refFlavor;\n } else if (stringFlavor != null) {\n return stringFlavor;\n }\n return null;\n }\n\n\n for (int i = 0; i < flavors.length; i++) {\n String mime = flavors[i].getMimeType();\n if (mime.startsWith(\"text/plain\")) {\n return flavors[i];\n } else if (refFlavor == null && mime.startsWith(\"application/x-java-jvm-local-objectref\")\n && flavors[i].getRepresentationClass() == java.lang.String.class) {\n refFlavor = flavors[i];\n } else if (stringFlavor == null && flavors[i].equals(DataFlavor.stringFlavor)) {\n stringFlavor = flavors[i];\n }\n }\n if (refFlavor != null) {\n return refFlavor;\n } else if (stringFlavor != null) {\n return stringFlavor;\n }\n return null;\n }",
"public boolean isDataFlavorSupported(DataFlavor flavor)\n {\n return (flavor == DataFlavor.imageFlavor);\n }",
"public boolean isDataFlavorSupported(DataFlavor flavor) {\r\n if(dataFlavors.contains(flavor)) return true;\r\n else return false;\r\n }",
"public DataFlavor[] getTransferDataFlavors() {\n\t\t// returning flavors itself would allow client code to modify\n\t\t// our internal behavior\n\t\treturn (DataFlavor[]) flavors.clone();\n\t}",
"public ImageFlavor getTargetFlavor() {\n/* 312 */ if (this.converters.size() > 0)\n/* 313 */ return getConverter(this.converters.size() - 1).getTargetFlavor(); \n/* 314 */ if (this.loader != null) {\n/* 315 */ return this.loader.getTargetFlavor();\n/* */ }\n/* 317 */ return null;\n/* */ }",
"@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}",
"private void cargarTablaConPaquetes() {\n tcId.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"codigo\"));\n tcdescripcion.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"descripcion\"));\n tcDestino.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"destino\"));\n tcEntregado.setCellValueFactory(\n new PropertyValueFactory<Paquete, Boolean>(\"entregado\"));\n\n tbPaqueteria.setItems(data);\n tbPaqueteria.getSelectionModel().selectFirst();\n\n //TODO futura implementacion\n //setDobleClickFila();\n }",
"public String toString(){\n return \"Codigo Produto: \"+this.idProduto+\n \"\\nNome do Produto \"+this.nomePro+\n \"\\nDescrição \"+this.descricao+\n \"\\nPreço: \"+this.preco;\n }",
"public String getPROMISSORY_FX_TYPE() {\r\n return PROMISSORY_FX_TYPE;\r\n }",
"public void prepareFrecuenciaServicioIdTipoDia(ActionEvent event) {\n if (this.getSelected() != null && frecuenciaServicioIdTipoDiaController.getSelected() == null) {\n frecuenciaServicioIdTipoDiaController.setSelected(this.getSelected().getFrecuenciaServicioIdTipoDia());\n }\n }",
"public TelaDetalhesProduto(Peca peca, String data, int quantidade) {\n initComponents();\n \n jlProduto.setText(peca.getNome());\n jlQuantidade.setText(\"\" + quantidade);\n jlCusto.setText(String.format(\"%.2f\", peca.getPrecoCusto()));\n jlVenda.setText(String.format(\"%.2f\", peca.getPrecoVenda()));\n jlData.setText(data);\n }",
"public void refrescarForeignKeysDescripcionesUtilidadTipoPrecio() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.refrescarForeignKeysDescripcionesUtilidadTipoPrecio(this.utilidadtipoprecioLogic.getUtilidadTipoPrecios());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.refrescarForeignKeysDescripcionesUtilidadTipoPrecio(this.utilidadtipoprecios);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(TipoPrecio.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//utilidadtipoprecioLogic.setUtilidadTipoPrecios(this.utilidadtipoprecios);\r\n\t\t\tutilidadtipoprecioLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}",
"public TipoVehiculo getTipoVehiculo() {\r\n\t\treturn TipoVehiculo.valueOf(cb_TipoVehiculo.getSelectedItem().toString());\r\n\t}",
"protected DataFlavor[] getRicherFlavors() {\n if (richText == null) {\n return null;\n }\n\n try {\n DataFlavor[] flavors = new DataFlavor[3];\n flavors[0] = new DataFlavor(mimeType + \";class=java.lang.String\");\n flavors[1] = new DataFlavor(mimeType + \";class=java.io.Reader\");\n flavors[2] = new DataFlavor(mimeType + \";class=java.io.InputStream;charset=unicode\");\n return flavors;\n } catch (ClassNotFoundException cle) {\n // fall through to unsupported (should not happen)\n }\n\n return null;\n }",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"public Prato criaPrato(String nomePrato, String descricaoPrato, double precoPrato) throws CadastroPratoInvalidoException {\n\t\t\n\t\tVerificaPrato.verificaNomePratovazio(nomePrato);\n\t\tVerificaPrato.verificaDescVazio(descricaoPrato);\n\t\tVerificaPrato.verificaPrecoInvalido(precoPrato);\n\t\t\n\t\treturn new Prato(nomePrato, descricaoPrato, precoPrato);\n\t}",
"protected void addEditorPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_editor_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_editor_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__EDITOR,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }",
"public AltaProveedor() {\n AparienciaPantalla apa = new AparienciaPantalla();\n apa.cambiarApariencia(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n initComponents();\n this.cargarProvincias();\n setLocationRelativeTo(null);\n }",
"public String getTipo(){\r\n return Tipo;\r\n }",
"public HTMLSelectElement getElementFproceso() { return this.$element_Fproceso; }",
"protected void addTipovehiculoPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_tipovehiculo_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_tipovehiculo_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__TIPOVEHICULO,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"@Override\n\tpublic void selecciona() {\n\t\tClienteProxy bean = grid.getSelectionModel().getSelectedObject();\n\t\tif(bean!=null){\t\t\t\t\n\t\tuiHomePrestamo.getHeader().getLblTitulo().setText(\"Devolpay\");\n\t\tuiHomePrestamo.getHeader().setVisibleBtnMenu(true);\t\t\n\t\tuiHomePrestamo.getUIMantPrestamoImpl().setBeanCliente(bean);\n\t\tuiHomePrestamo.getContainer().showWidget(1);\t\t\n\t\t}else{\n\t\t\t//Dialogs.alert(constants.alerta(), constants.seleccioneCliente(), null);\n\t\t\t//Window.alert(constants.seleccioneCliente());\n\t\t\tNotification not=new Notification(Notification.ALERT,constants.seleccioneCliente());\n\t\t\tnot.showPopup();\n\t\t}\n\t}",
"public String getPrecoProduto() {\r\n\t\treturn precoProduto;\r\n\t}",
"private Produtos_Adicionar() {\n initComponents();\n \n horaProdutoSpinner.setModel(new SpinnerDateModel());\n JSpinner.DateEditor editor = new JSpinner.DateEditor(horaProdutoSpinner, \"HH:mm\");\n horaProdutoSpinner.setEditor(editor);\n \n custoProdutoSpinner.setModel(new SpinnerNumberModel(0.0, -10000.0, 10000.0, 0.1));\n JSpinner.NumberEditor editorNumber = new JSpinner.NumberEditor(custoProdutoSpinner);\n custoProdutoSpinner.setEditor(editorNumber);\n \n dataProdutoDP.setDate(new Date());\n }",
"public List<mTipoAdicionais> selectAdicTipoProd(int codAdicional) throws SQLException {\n\t\tString sql = \"select adictipoprod.codTipoProduto,tDescTipo, adictipoprod.adicPreco,adictipoprod.adicAtivo\\r\\n\" + \r\n\t\t\t\t\"from adicionais, adictipoprod,tipoproduto\\r\\n\" + \r\n\t\t\t\t\"where adictipoprod.codTipoProduto = tipoproduto.codTipoProduto \\r\\n\" + \r\n\t\t\t\t\"and adictipoprod.codAdicionais = adicionais.codAdicionais\\r\\n\" + \r\n\t\t\t\t\"and adicionais.codAdicionais = ?;\";\r\n\t\t\r\n\t\tPreparedStatement stm = this.createPreparedStatement(sql);\r\n\t\tstm.setInt(1,codAdicional);\r\n\t\t\r\n\t\tResultSet rs = stm.executeQuery();\r\n\t\tList<mTipoAdicionais> retorno = new ArrayList();\r\n\t\t\r\n\t\twhile(rs.next()) {\r\n\t\t\tmTipoAdicionais temp = new mTipoAdicionais();\r\n\t\t\ttemp.setCodTipoProduto(rs.getInt(1));\r\n\t\t\ttemp.setTipoProduto(rs.getString(2));\r\n\t\t\ttemp.setPreco(rs.getFloat(3));\r\n\t\t\ttemp.setAtivo(rs.getBoolean(4));\r\n\t\t\t\r\n\t\t\tretorno.add(temp);\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\tclose(rs,stm);\r\n\t\tfecha();\r\n\t\treturn retorno;\r\n\r\n\t}",
"public void setCodProd(IProduto codigo);",
"@Override\r\n\tpublic String getTipoPersona() {\n\t\treturn \"alumno del curso \" + curso + \" de \" + grupo + \" de \" + tipoEstudios ;\r\n\t\t\r\n\t}",
"public JComboBox getCmbTipoProducto() {\r\n\t\treturn cmbTipoProducto;\r\n\t}",
"public String getTipoPartida() {\n return tipoPartida;\n }",
"public JComboBox getJComboBoxProvincia()\r\n {\r\n \tif (jComboBoxProvincia == null) {\r\n\t\t\tEdicionOperations oper = new EdicionOperations();\r\n\t\t\tArrayList<Provincia> listaProvincias = oper.obtenerProvinciasConNombre();\r\n\t\t\tjComboBoxProvincia = new JComboBox(listaProvincias.toArray());\r\n\t\t\tjComboBoxProvincia\r\n\t\t\t\t\t.setSelectedIndex(this\r\n\t\t\t\t\t\t\t.provinciaIndexSeleccionar(ConstantesLocalGISEIEL.idProvincia));\r\n\t\t\tjComboBoxProvincia.setRenderer(new UbicacionListCellRenderer());\r\n\t\t\tjComboBoxProvincia.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tif (getJComboBoxMunicipio() != null) {\r\n\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedIndex() == 0) {\r\n\t\t\t\t\t\t\tjComboBoxMunicipio.removeAllItems();\r\n\t\t\t\t\t\t\tMunicipio municipio = new Municipio();\r\n\t\t\t\t\t\t\tmunicipio.setIdIne(\"\");\r\n\t\t\t\t\t\t\tmunicipio.setNombreOficial(\"\");\r\n\t\t\t\t\t\t\tjComboBoxMunicipio.addItem(municipio);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tEdicionOperations oper = new EdicionOperations();\r\n\t\t\t\t\t\t\tjComboBoxProvincia\r\n\t\t\t\t\t\t\t\t\t.setSelectedIndex(provinciaIndexSeleccionar(ConstantesLocalGISEIEL.idProvincia));\r\n\r\n\t\t\t\t\t\t\tif (jComboBoxProvincia.getSelectedItem() != null) {\r\n\t\t\t\t\t\t\t\tEdicionUtils.cargarLista(\r\n\t\t\t\t\t\t\t\t\t\tgetJComboBoxMunicipio(),\r\n\t\t\t\t\t\t\t\t\t\toper.obtenerTodosMunicipios(((Provincia) jComboBoxProvincia\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getSelectedItem())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getIdProvincia()));\r\n\t\t\t\t\t\t\t\tjComboBoxMunicipio\r\n\t\t\t\t\t\t\t\t\t\t.setSelectedIndex(municipioIndexSeleccionar(ConstantesLocalGISEIEL.idMunicipio));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t}\r\n\r\n\t\treturn jComboBoxProvincia;\r\n }",
"public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }",
"private void pesquisaTipoAnimal() throws SQLException {\n\n conexao conexao = new conexao();\n conexao.getConexao();\n String selectSQL = \"SELECT * FROM tipoAnimal A \";\n\n Statement pstmtCon;\n pstmtCon = conexao.getConexao().createStatement();\n\n ResultSet rs = pstmtCon.executeQuery(selectSQL);\n\n pesquisa_ComboTipoAnimal.removeAllItems();\n pesquisa_ComboTipoAnimal.addItem(\"Selecionar\");\n\n while (rs.next()) {\n\n pesquisa_ComboTipoAnimal.addItem(rs.getString(\"descricao\"));\n\n }\n\n rs.close();\n pstmtCon.close();\n }",
"public String getTipo();",
"public String getTipo();",
"private void carregaComboDentista() {\n CtrPessoa ctrD = new CtrPessoa();\n ArrayList<Pessoa> result = ctrD.getPessoa(\"\", new Dentista());\n\n ObservableList<Pessoa> dentistas = FXCollections.observableArrayList(result);\n\n if (!result.isEmpty()) {\n cbDentista.setItems(dentistas);\n cbDentista.setValue(cbDentista.getItems().get(0)); //inicializando comboBox\n }\n }",
"private void populaContato() {\n ClearMsgsEvent.fire(this);\n CadastroContatoView v = getView();\n if (contato == null) {\n contato = new ContatoDTO();\n }\n contato.setNome(v.nome().getValue());\n contato.setSobrenome(v.sobrenome().getValue());\n contato.setEmail(v.email().getValue());\n contato.setNumero(v.numero().getValue());\n contato.setDataNascimento(v.dataNascimento().getValue());\n }",
"public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }",
"@Override\r\n\tpublic String getText(Object object) {\r\n\t\tString label = ((ContenedorDetalleVehiculoViewModel)object).getPropietario();\r\n\t\treturn label == null || label.length() == 0 ?\r\n\t\t\tgetString(\"_UI_ContenedorDetalleVehiculoViewModel_type\") :\r\n\t\t\tgetString(\"_UI_ContenedorDetalleVehiculoViewModel_type\") + \" \" + label;\r\n\t}",
"public Produto(int id_p, int barcode, String categoria, String descricao,\r\n\t\t\tint unidade, BigDecimal custo, BigDecimal mlucro) {\r\n\t\tthis.id_p = id_p;\r\n\t\tthis.barcode = barcode;\r\n\t\tthis.categoria = categoria;\r\n\t\tthis.descricao = descricao;\r\n\t\tthis.unidade = unidade;\r\n\t\tthis.custo = custo;\r\n\t\tthis.mlucro = mlucro;\r\n\t}",
"static public PrintDataPart getEscBitmap(PrintDataPart obj, int type, int subtype, int value, String escdata, boolean negated, boolean valueispresent) {\r\n if (type == 'B' && subtype == 0 && escdata == null && !negated && valueispresent) {\r\n EscBitmap esc = new EscBitmap();\r\n esc.Number = value;\r\n return esc;\r\n }\r\n return obj;\r\n }",
"private void fillcbGrupo() {\n\t\tcbGrupoContable.setNullSelectionAllowed(false);\n\t\tcbGrupoContable.setInputPrompt(\"Seleccione Grupo Contable\");\n\t\tfor (GruposContablesModel grupo : grupoimpl.getalls()) {\n\t\t\tcbGrupoContable.addItem(grupo.getGRC_Grupo_Contable());\n\t\t\tcbGrupoContable.setItemCaption(grupo.getGRC_Grupo_Contable(), grupo.getGRC_Nombre_Grupo_Contable());\n\t\t}\n\t}",
"public DroitBean() {\n formdroit=new ProfilMenuItem();\n selectdroit=new ProfilMenuItem();\n dataListdroit=new ArrayList<>();\n }",
"public configPro1() {\n initComponents();\n \n cboPai.addItem(\"Ecuador\");\n cboPai.addItem(\"Colombia\");\n cboPai.addItem(\"Argentina\");\n \n \n \n cboPai.setSelectedItem(ProperPais());\n cboCiu.setSelectedItem(ProperCiudad());\n \n switch (ProperEstadoCivil())\n {\n case \"Casado\":\n rbCas.setSelected(true);\n break;\n case \"Divorciado\":\n rbDiv.setSelected(true);\n break;\n case \"Soltero\":\n rbSolt.setSelected(true);\n break;\n case \"Viudo\":\n rbViu.setSelected(true);\n break;\n }\n \n\n \n }",
"public HTMLSelectElement getElementFciclo() { return this.$element_Fciclo; }",
"@Override\r\n\tpublic void setFlavor() {\n\t\thasFlavor = false;\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(OBSERVABLE_EVENT_SET_FLAVOR);\r\n\t}",
"public TipoOperacaoParcialUpdate flagCobraProRata(Boolean flagCobraProRata) {\n this.flagCobraProRata = flagCobraProRata;\n return this;\n }",
"TypeAssociation getAssocieCommeSujetInstanceObjet();",
"public EditarDados(Produto dados) {\n \tthis.dados = dados;\n initComponents();\n setLocationRelativeTo(null);\n }",
"public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }",
"@Override\n public String getText(Object object) {\n String label = ((ProceedingsType)object).getEditor();\n return label == null || label.length() == 0 ?\n getString(\"_UI_ProceedingsType_type\") :\n getString(\"_UI_ProceedingsType_type\") + \" \" + label;\n }",
"@FXML\n public void fecharPedidoCompra() {\n \t\n }",
"public void setPrecoProduto(String precoProduto) {\r\n\t\tthis.precoProduto = precoProduto;\r\n\t}",
"public String getNullFlavor() {\n\t\treturn nullFlavor;\n\t}",
"private void cargaComboTipoDocumento() {\n\t\tcomboTipoDoc = new JComboBox();\n\t\tfor (TipoDocumentoDTO tipoDocumentoDTO : tip) {\n\t\t\tcomboTipoDoc.addItem(tipoDocumentoDTO.getAbreviacion());\n\t\t}\n\n\t}",
"public String getTipo() {\n\t\treturn \"Berlina\";\r\n\t}",
"private static void cadastroProduto() {\n\n\t\tString nome = Entrada(\"PRODUTO\");\n\t\tdouble PrecoComprado = Double.parseDouble(Entrada(\"VALOR COMPRA\"));\n\t\tdouble precoVenda = Double.parseDouble(Entrada(\"VALOR VENDA\"));\n String informacaoProduto = Entrada(\"INFORMAÇÃO DO PRODUTO\");\n String informacaoTecnicas = Entrada(\"INFORMAÇÕES TÉCNICAS\");\n\n\t\tProduto produto = new Produto(nome, PrecoComprado, precoVenda, informacaoProduto,informacaoTecnicas);\n\n\t\tListaDProduto.add(produto);\n\n\t}",
"private void accederpro() {\n\t\tVprosesor prof= new Vprosesor ();\n\t\t\n\t\tControladorprofesor b = new Controladorprofesor(prof);\n\t\tprof.setControladorprofesor(b);\n\t\tprof.setVisible(true);\n\t\tvb.dispose();\n\t\t\n\t}",
"public es.gob.agenciatributaria.www2.static_files.common.internet.dep.aplicaciones.es.aeat.ssii.fact.ws.SuministroInformacion_xsd.ContraparteConsultaType getContraparte() {\r\n return contraparte;\r\n }",
"private void populateProfession() {\n try {\n vecProfessionKeys = new Vector();\n StringTokenizer stk = null;\n vecProfessionLabels = new Vector();\n //MSB -09/01/05 -- Changed configuration file.\n // config = new ConfigMgr(\"customer.cfg\");\n// config = new ConfigMgr(\"ArmaniCommon.cfg\");\n config = new ArmConfigLoader();\n String strSubTypes = config.getString(\"PROFESSION\");\n int i = -1;\n if (strSubTypes != null && strSubTypes.trim().length() > 0) {\n stk = new StringTokenizer(strSubTypes, \",\");\n } else\n return;\n if (stk != null) {\n types = new String[stk.countTokens()];\n while (stk.hasMoreTokens()) {\n types[++i] = stk.nextToken();\n String key = config.getString(types[i] + \".CODE\");\n vecProfessionKeys.add(key);\n String value = config.getString(types[i] + \".LABEL\");\n vecProfessionLabels.add(value);\n }\n }\n cbxProfession.setModel(new DefaultComboBoxModel(vecProfessionLabels));\n } catch (Exception e) {}\n }",
"public void obtener_proximo_cpte(){\n\t\t_Data data=(_Data) _data;\n\t\tString cb=data.getProximoPGCorrecto();\n\t\t//Pago_frame _frame=(Pago_frame) this._frame;\n\t\tframe.get_txt_idPago().setText(cb);\n\t}"
] | [
"0.7059497",
"0.59150404",
"0.5850073",
"0.5825505",
"0.5793212",
"0.5634616",
"0.55178946",
"0.54905474",
"0.5444152",
"0.5368185",
"0.53603375",
"0.5344669",
"0.53375137",
"0.52726066",
"0.52573687",
"0.5253364",
"0.5245702",
"0.52143544",
"0.5186351",
"0.51785964",
"0.5146919",
"0.514638",
"0.51414263",
"0.5137797",
"0.51237315",
"0.51234776",
"0.5116113",
"0.50971895",
"0.5085836",
"0.50842583",
"0.50815725",
"0.5075431",
"0.5067267",
"0.50626165",
"0.50578463",
"0.5055391",
"0.50408185",
"0.5034379",
"0.5019352",
"0.5016345",
"0.5013817",
"0.500412",
"0.49922904",
"0.4959662",
"0.49434367",
"0.4923631",
"0.492324",
"0.48990184",
"0.48974538",
"0.48672217",
"0.48602724",
"0.48444122",
"0.4842058",
"0.48372743",
"0.48280984",
"0.48280296",
"0.48268327",
"0.48224723",
"0.4803898",
"0.47983035",
"0.47897685",
"0.47785702",
"0.47766522",
"0.4759196",
"0.47585046",
"0.47485533",
"0.47421274",
"0.47414795",
"0.47292584",
"0.47256425",
"0.47252363",
"0.47233477",
"0.4722684",
"0.4722684",
"0.47158504",
"0.47149193",
"0.47132826",
"0.4711394",
"0.4705819",
"0.46993935",
"0.46965688",
"0.46923465",
"0.46915776",
"0.46769667",
"0.467275",
"0.46726683",
"0.46665603",
"0.46638647",
"0.46425143",
"0.46419695",
"0.4635514",
"0.46322078",
"0.46300453",
"0.46222514",
"0.46114868",
"0.46092528",
"0.4607363",
"0.4600227",
"0.4594552",
"0.45931426"
] | 0.75442135 | 0 |
Ritorna il nome del prodotto. | public String getNome() {
return nome;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getNamePro() {\n return namePro;\n }",
"public String getProName() {\n return proName;\n }",
"public void setNamePro(String namePro) {\n this.namePro = namePro;\n }",
"String getPName();",
"String getPresetName();",
"@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}",
"@Override\n\tpublic String getName() {\n\t\treturn nombre;\n\t}",
"public String getNomeProduto() {\r\n\t\treturn nomeProduto;\r\n\t}",
"public void setProName(String proName) {\n this.proName = proName == null ? null : proName.trim();\n }",
"public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}",
"String getPname();",
"public String getCognomeNome() {\n\t\treturn this.cognome + \" \" + this.nome;\n\t}",
"String getPrimeiroNome();",
"public String getNome(){\n return preferencias.getString(CHAVE_NOME, null);\n }",
"java.lang.String getPrenume();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"String getName() ;",
"public Object getNome() {\n\t\treturn null;\n\t}",
"public String getProdotto() {\r\n\t\treturn prodotto;\r\n\t}",
"public String nome() {\n\t\treturn this.nome;\n\t}",
"public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }",
"public String getNomePessoa() {\n\t\treturn nomePessoa;\n\t}",
"public String getName() {\n return name + \"\";\n }",
"public String getName() {\n return this.id + \", \" + this.nom + \" \" + this.prenom + \", \" + this.cin;\n }",
"String getUltimoNome();",
"String getPreferredName();",
"public java.lang.String getName();",
"@Override\n public String toString() {\n return nome + placa;\n }",
"private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }",
"private synchronized String getNomePromocao(int idPromocao)\n\t{\n\t\tHashMap promocao = null;\n\t\t\n\t\tfor(int i = 0; i < listaPromocoes.size(); i++)\n\t\t{\n\t\t\tpromocao = (HashMap)listaPromocoes.get(i);\n\t\t\tif (((Integer)promocao.get(\"IDT_PROMOCAO\")).intValue() == idPromocao)\n\t\t\t{\n\t\t\t\treturn (String)promocao.get(\"NOM_PROMOCAO\");\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();",
"String getName();"
] | [
"0.7478162",
"0.72932166",
"0.7206813",
"0.6909469",
"0.69061685",
"0.69045264",
"0.6889724",
"0.67549556",
"0.67447513",
"0.66915196",
"0.66407454",
"0.66334414",
"0.6605247",
"0.6582084",
"0.65751415",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.65493137",
"0.6532514",
"0.65174943",
"0.65165544",
"0.64753264",
"0.64716",
"0.6470806",
"0.6469842",
"0.6465361",
"0.63901556",
"0.638954",
"0.63824624",
"0.63817745",
"0.637481",
"0.63744146",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741",
"0.6372741"
] | 0.0 | -1 |
Modifica il nome del prodotto. | public void setNome(String nome) {
this.nome = nome;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNamePro(String namePro) {\n this.namePro = namePro;\n }",
"public void setProName(String proName) {\n this.proName = proName == null ? null : proName.trim();\n }",
"public String getNamePro() {\n return namePro;\n }",
"public String getProName() {\n return proName;\n }",
"private void setNomeProfessor(String novoNome)\n\t{\n\t\tthis.nomeProfessor = novoNome;\n\t}",
"public void setNomeProduto(String nomeProduto) {\r\n\t\tthis.nomeProduto = nomeProduto;\r\n\t}",
"public void setName(String name) {\n\t\tthis.nome = name;\n\t}",
"public void actualizarNombrePoder(){\n\t\tString name = ( game.getCurrentSorpresa() == null )?\"No hay sorpresa\":game.getCurrentSorpresa().getClass().getName();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t}",
"public void setName(String name)\r\n\t{\r\n\t\tthis.nome = nome;\r\n\t}",
"String getPresetName();",
"public void setpName(String name) {\n this.pName = name;\n }",
"private void actualizarNombre(Persona persona){\n \n String nombre=IO_ES.leerCadena(\"Inserte el nombre\");\n persona.setNombre(nombre);\n }",
"String getPName();",
"private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }",
"@Override\n\tpublic String getName() {\n\t\treturn nombre;\n\t}",
"String getNewName();",
"public void setProyecto(java.lang.String proyecto) {\n this.proyecto = proyecto;\n }",
"public void setProyecto(java.lang.String proyecto) {\n this.proyecto = proyecto;\n }",
"public void setNomeCurso(String nome)\n\t{\n\t\tcursoNome = nome;\n\t\tSystem.out.printf(\"Modificado o nome do curso %s\\n\", inicioCurso.getHoraAtual());\n\t}",
"public String getNomeProduto() {\r\n\t\treturn nomeProduto;\r\n\t}",
"public void setNome(String pNome){\n this.nome = pNome;\n }",
"String getPname();",
"public void setNome(String nome) {\r\n\t\t// QUALIFICADOR = THIS\r\n\t\tthis.nome = nome;\r\n\t}",
"public void setNome(String nomeAeroporto)\n {\n this.nome = nomeAeroporto;\n }",
"public void setMainName (String name){\n this.name = name;\n }",
"public void setSupregName(java.lang.String newSupregName) {\n\tsupregName = newSupregName;\n}",
"public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}",
"public void setName (String n) {\n name = n;\n }",
"public void setNome (String nome) {\r\n\t\tthis.nome=nome;\r\n\t}",
"private void editName() {\n Routine r = list.getSelectedValue();\n\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Enter the new name:\",\n \"Edit name\",\n JOptionPane.PLAIN_MESSAGE,\n null, null, r.getName());\n\n if (s != null) {\n r.setName(s);\n }\n }",
"public void setName(String newname)\n {\n name = newname;\n \n }",
"void setNome(String nome);",
"public String createNewName() {\n\t\treturn null;\n\t}",
"public void setName (String n){\n\t\tname = n;\n\t}",
"@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}",
"public void setNome(String nome) {\r\n\t\tthis.nome = nome;\r\n\t}",
"public void rename()\n\t{\n\t\t// get the object within the node\n\t\tObject string = this.getUserObject();\n\n\t\t// should always be a string, given the constructor\n\t\tif (string instanceof String)\n\t\t{\n\t\t\tstring = JOptionPane.showInputDialog(\"Enter a New Name\");\n\n\t\t\tif (string != null && string instanceof String)\n\t\t\t{\n\t\t\t\tthis.setUserObject(string);\n\t\t\t\tthis.name = (String) string;\n\t\t\t}\n\t\t}\n\t}",
"private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }",
"public void setNome(String nome) {\r\n this.nome = nome;\r\n }",
"public void setNome(String nome) {\r\n this.nome = nome;\r\n }",
"public void updateName() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n userFound.setNombre(objcliente.getNombre());\n clientefacadelocal.edit(userFound);\n objcliente = new Cliente();\n mensaje = \"sia\";\n } else {\n mensaje = \"noa\";\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n mensaje = \"noa\";\n System.out.println(\"El error al actualizar el nombre es \" + e);\n }\n }",
"public void setName(String n) {\r\n name = n;\r\n }",
"public void setName(String n) {\n this.name = n;\n }",
"public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}",
"Professor procurarNome(String nome) throws ProfessorNomeNExisteException;",
"public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}",
"public void setNombreCompleto(String nombreCompleto);",
"public void setName(String new_name){\n this.name=new_name;\n }",
"public void setpName(String pName) {\n this.pName = pName;\n }",
"public void setNome(String nome){\r\n this.nome = nome;\r\n }",
"public void setPrenom(String prenom) {\r\n this.prenom = prenom;\r\n }",
"public void setName( String pName )\n {\n name = pName;\n }",
"public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }",
"public void setName(String n){ name=n; }",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"String getName() ;",
"public void setName(final String pName){this.aName = pName;}",
"@Override\n public void setNombre(java.lang.String nombre) {\n _partido.setNombre(nombre);\n }",
"String getPrimeiroNome();",
"protected void setPatchName(Patch p, String name) {\n if (patchNameSize == 0) {\n ErrorMsg.reportError(\"Error\", \"The Driver for this patch does not support Patch Name Editing.\");\n return;\n }\n \n while (name.length() < patchNameSize)\n name = name + \" \";\n \n byte[] namebytes = new byte[patchNameSize];\n try {\n namebytes = name.getBytes(\"US-ASCII\");\n for (int i = 0; i < patchNameSize; i++)\n p.sysex[patchNameStart + i] = namebytes[i];\n } catch (UnsupportedEncodingException ex) {\n return;\n }\n }",
"public void setName(String newname) {\n name=newname;\n }",
"public void setName(String newname){\n name = newname; \n }",
"public void asignarNombre(String name);",
"public void changeProductName(int id,String name)\n {\n Product product = findProduct(id);\n \n if(product != null)\n {\n System.out.println(\"Name change from \" + product.getName() + \" to \"\n + name);\n product.name = name;\n }\n }",
"public void setName(String n);",
"public void setNomProvincia(String nomProvincia);",
"String getPreferredName();",
"public String getPropriedade(String nomePropriedade)\n\t{\n\t\treturn arquivoProps.getProperty(nomePropriedade);\n\t}",
"public void setSupregname( java.lang.String newValue ) {\n __setCache(\"supregname\", newValue);\n }",
"public void setNom(String p_onom);",
"public static void setName(String n){\n\t\tname = n;\n\t}",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();"
] | [
"0.7825385",
"0.7122125",
"0.70265985",
"0.6815634",
"0.67180705",
"0.6614094",
"0.66063225",
"0.6594205",
"0.6593047",
"0.65417385",
"0.6491579",
"0.64057577",
"0.632836",
"0.6312332",
"0.6309569",
"0.6289722",
"0.6238667",
"0.6238667",
"0.62353534",
"0.6205176",
"0.62028104",
"0.61615115",
"0.61585206",
"0.6146494",
"0.61285806",
"0.6119852",
"0.61114895",
"0.6106632",
"0.61046964",
"0.6083153",
"0.606671",
"0.60572565",
"0.6020566",
"0.6017562",
"0.60143584",
"0.60096204",
"0.6009604",
"0.60079837",
"0.600658",
"0.600658",
"0.6006336",
"0.60047936",
"0.6003747",
"0.6003344",
"0.5979206",
"0.5964388",
"0.5952542",
"0.5950738",
"0.59502745",
"0.5947754",
"0.59430206",
"0.59412354",
"0.594021",
"0.59381515",
"0.5932274",
"0.5932274",
"0.5932274",
"0.59311527",
"0.5926618",
"0.59218854",
"0.5917788",
"0.59153134",
"0.59129816",
"0.5908374",
"0.5902375",
"0.5901693",
"0.58934486",
"0.58914566",
"0.5884303",
"0.5882635",
"0.5877615",
"0.58755714",
"0.5873268",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646",
"0.58701646"
] | 0.5966472 | 48 |
Ritorna la marca del prodotto. | public String getMarca() {
return marca;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Modelo(Marca marca) {\n\t\tsetMarca(marca);\n\t}",
"public String getMarca() {\n return Marca;\n }",
"public String getMarca()\n {\n return marca;\n }",
"public void setMarca( String marca ){\n this.marca = marca;\n }",
"Marca getMarca() {\n\t\treturn marca;\n\t}",
"private void generarMarca() {\r\n\t\tthis.marca = MARCAS[(int) (Math.random() * MARCAS.length)];\r\n\t}",
"public String getMarca()\n {\n return \"\\nDispositivo Marca \" + Marca; \n }",
"public void setMarca(String marca) {\n\t\tthis.marca = marca;\n\t}",
"public void setMarca(String Marca) {\n this.Marca = Marca;\n }",
"public String getMarca(){\n return marca;\n }",
"public String darMarca( )\n\t{\n\t\treturn marca;\n\t}",
"private void setMarca(Marca marca) {\n\t\tthis.marca = marca;\n\t}",
"public void setMarca(String marcaParametru)\n {\n this.marca = marcaParametru;\n }",
"public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }",
"private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}",
"private void dibujarMarcador() {\n\n\t\tText tituloMarcador = new Text(\"Marcador\");\n\t\ttituloMarcador.setFont(new Font(16));\n\n\t\tText tituloJuega = new Text(\"Juega\");\n\t\ttituloJuega.setFont(new Font(16));\n\t\t\n\t\tcantidadFichasNegras = new Label();\n\t\tcantidadFichasBlancas = new Label();\n\t\tjugadorActual = new Label();\n\n\t\tGridPane marcador = new GridPane();\n\t\tmarcador.setAlignment(Pos.TOP_CENTER);\n\t\tmarcador.setHgap(20);\n\t\tmarcador.setVgap(20);\n\t\tmarcador.setPadding(new Insets(20));\n\t\tmarcador.add(tituloMarcador, 0, 0, 2, 1);\n\t\tmarcador.add(new Label(\"Negras :\"), 0, 1);\n\t\tmarcador.add(cantidadFichasNegras, 1, 1);\n\t\tmarcador.add(new Label(\"Blancas :\"), 0, 2);\n\t\tmarcador.add(cantidadFichasBlancas, 1, 2);\n\t\tmarcador.add(tituloJuega, 0, 3, 2, 1);\n\t\tmarcador.add(jugadorActual, 0, 4, 2, 1);\n\n\t\tpanel.setPadding(new Insets(5));\n\t\tpanel.setRight(marcador);\n\t}",
"@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}",
"public void setMarca(Marca[] marca){\n this.marca = marca;\n }",
"public Marca[] getMarca(){\n return this.marca;\n }",
"public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }",
"public void recolheMao() {\n\t\tcartas[0].visible = false;\n\t\tfor (int i = 4; i <= 15; i++) {\n\t\t\tCartaVisual c = cartas[i];\n\t\t\tif ((c.top != topBaralho) || (c.left != leftBaralho)) {\n\t\t\t\tc.movePara(leftBaralho, topBaralho, 100);\n\t\t\t\tc.setCarta(null);\n\t\t\t\tc.descartada = false;\n\t\t\t\tcartasJogadas.remove(c);\n\t\t\t}\n\t\t}\n\t}",
"String ponerMarcaFijarArticulo(final boolean ponerMarca) {\n return ponerMarca ? Constantes.MARCA_FIJAR_ARTICULO : \"\";\n }",
"public MovimientoPantallaCocina() {\n initComponents();\n \n //COLOCAR FONOD EN LA PANTALLA PARA LA COCINA\n try{\n pnlOrdenes.setBorder(new ImagenCocina());\n } catch (IOException e){\n Logger.getLogger(MovimientoPantallaCocina.class.getName()).log(Level.SEVERE, null, e);\n }\n \n //VISUALIZAR TODAS LAS ORDENES ACTIVAS\n hilo p = new hilo(\"ordenes\");\n p.start();\n }",
"public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}",
"private void agregarMarcadorAlto() {\n SharedPreferences preferencias = actividadJuego.getSharedPreferences(\"marcadorAlto\", Context.MODE_PRIVATE);\n int puntos = preferencias.getInt(\"puntos\",0);\n\n txtMarcador = new Text(ControlJuego.ANCHO_CAMARA/2,ControlJuego.ALTO_CAMARA-80,\n fontMonster,\"Marcador mayor: \"+puntos,actividadJuego.getVertexBufferObjectManager());\n attachChild(txtMarcador);\n }",
"public void morir()\r\n\t{\r\n\t\tif(this.grafico != null)\t\r\n\t\t\tthis.mover(4);\r\n\t}",
"String ponerMarcaCongelado(final boolean esCongelado) {\n return esCongelado ? Constantes.MARCA_CONGELADO : \"\";\n\n }",
"public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}",
"public void moverArriba() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, 1));\n }",
"public Agnello mangiaPecora() {\n\t\tint indiceCasuale = (int) (Math.random() * pecore.size());\n\t\tAgnello pecoraMangiata = pecore.get(indiceCasuale);\n\t\tprelevaAnimale(pecoraMangiata.getTipo());\n\t\treturn pecoraMangiata;\n\t}",
"public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }",
"public void setMarca(Long marca) {\n\t\tMarca = marca;\n\t}",
"public Punto getCentro() {\r\n\treturn centro;\r\n}",
"public Long getIdMarca() {\n return idMarca;\n }",
"public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}",
"@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }",
"public void moverAbajo() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, -1));\n }",
"private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}",
"public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }",
"@Override\r\n public void moverAyuda() {\n System.out.println(\"La reina puede mover hacia cualquier dirección en linea recta / diagonal\");\r\n }",
"public void limpiarMemoria();",
"private void pintarMesa() {\n try {\n mesa = ImageIO.read(new File(\"src/imagenes/Mesa.jpg\")).getScaledInstance(1600, 1300, Image.SCALE_SMOOTH);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public String verMarcacion(){\n\t\t limpiar();\n\t\t\tString vista=\"pretty:misMarcacionesPretty\";\n\t //CODIGO\n\t return vista;\n\t\t}",
"public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}",
"public PregledPoruka() {\n preuzmiMape();\n preuzmiPoruke();\n }",
"public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }",
"public ProtoMarine getMarine(){\r\n\t\treturn marine;\r\n\t}",
"public String getpMenor() {\r\n return pMenor;\r\n }",
"private void gravarPromocao() {\n\t\tString nome = textFieldNome.getText();\n\t\tString descricao = textFieldDescricao.getText();\n\t\tboolean ativo = true;\n\n\t\tPromocao promocao = null;\n\n\t\tif (modoEditar) {\n\t\t\tpromocao = promocaoAntiga;\n\n\t\t\tpromocao.setNome(nome);\n\t\t\tpromocao.setDescricao(descricao);\t\t\t\n\t\t\tpromocao.setAtiva(ativo);\n\n\t\t} else {\n\t\t\tpromocao = new Promocao( nome, descricao, ativo);\n\t\t}\n\n\t\ttry {\n\t\t\tif (modoEditar) {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().editarPromocao(promocao);\n\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção editada com sucesso!\", \"Promoção Editada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t} else {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().criarPromocao(promocao);\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção criada com sucesso!\", \"Promoção Criada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\n\n\t\t} catch (Exception exc) {\n\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\"Error a criar a Promoção \" + exc.getMessage(), \"Error\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t}",
"public Caminhao(String modelo, String marca, String placa, double capacidadeCarga) {\n super(modelo, marca, placa);\n this.capacidadeCarga = capacidadeCarga;\n }",
"public FiltroMicrorregiao() {\r\n }",
"public RodizioMunicipal(final String placa) {\n\t\tthis.placa = placa;\n\t}",
"void establecerPuntoAM(int pos){\n this.emisoraAMActual = pos;\n }",
"public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }",
"public void limpar() {\n\t\talunosMilitarPraca.setId(null);\n\t\talunosMilitarPraca.setMasculino(null);\n\t\talunosMilitarPraca.setFeminino(null);\n\t\t\n\t\talunosMilitarOficial.setId(null);\n\t\talunosMilitarOficial.setMasculino(null);\n\t\talunosMilitarOficial.setFeminino(null);\n\t}",
"public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}",
"public Agnello prelevaMontone() {\n\t\tfor (int i=0; i<pecore.size(); i++)\n\t\t\tif ((pecore.get(i) instanceof PecoraAdulta)\n\t\t\t\t\t&& (((PecoraAdulta) pecore.get(i)).isMaschio())) {\n\t\t\t\tnumMontoni--;\n\t\t\t\treturn pecore.remove(i);\n\t\t\t}\n\t\treturn null;\n\t}",
"public JComboBox getCmbMarca() {\r\n\t\treturn cmbMarca;\r\n\t}",
"public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }",
"public Mazzo(int numcarte) {\n this.numcarte = numcarte;\n\n //creo e dimensiono l'array \"mazzo\" dichiarato in precedenza\n mazzo = new Carta[numcarte];\n\n //qui dovrò creare tot carte ed inserirle nel mazzo\n String semicarta[] = {\"\", \"Picche\", \"Fiori\", \"Quadri\", \"Cuori\"};\n int valore = 1;\n int seme = 1;\n\n for (int i = 1; i <= numcarte; i++) {\n\n String nomicarta = valore + \" di \" + semicarta[seme];\n Carta carta = new Carta(valore, seme, nomicarta);\n mazzo[i - 1] = carta;\n valore++;\n\n //valore e semi correnti\n //se l'elemento corrente (i) è sulla decina (10, 20, 30, etc) resetto i valori e cambio il seme\n //ad esempio quando sono a 10 rimetto il valore ad 1 ed aumento di 1 il seme\n if (i % (numcarte / 4) == 0) {\n seme++;\n valore = 1;\n }\n\n }\n }",
"public Prestamo() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }",
"private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }",
"public void setIdMarca(Long idMarca) {\n this.idMarca = idMarca;\n }",
"public APropos() {\r\n\t\tpanap.setBackground(Color.LIGHT_GRAY);\r\n\r\n\t\t// mise en forme du texte dans le JTextPane\r\n\t\tStyledDocument doc = zoneAPropos.getStyledDocument();\r\n\t\tMutableAttributeSet centrer = new SimpleAttributeSet();\r\n\t\tStyleConstants.setAlignment(centrer, StyleConstants.ALIGN_CENTER);\r\n\t\tdoc.setParagraphAttributes(0, 0, centrer, false);\r\n\r\n\t\t// mise en place du texte dans le JTextPane\r\n\t\tzoneAPropos.setText(\"Calculatrice en NPI réalisée par :\\n \\nCamille SAMAIN\\nEMACS 166\\nEcole des Mines d'Alès\");\r\n\t\tzoneAPropos.setEditable(false);\r\n\r\n\t\t// mise en forme JTextPane\r\n\t\tzoneAPropos.setBackground(Color.LIGHT_GRAY);\r\n\t\tzoneAPropos.setForeground(Color.DARK_GRAY);\r\n\t\tzoneAPropos.setFont(police);\r\n\r\n\t\t// ajout du JtextPane dans le panel\r\n\t\tpanap.add(zoneAPropos);\r\n\t}",
"public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"public MecanismoMultiplicacionPrimo(int numPrimo)\n {\n super(numPrimo) ;\n\n }",
"public NuevoPrestamo() {\n initComponents();\n \n modeloHer = new DefaultTableModel();\n modeloPer = new DefaultTableModel();\n herramientasTable.setModel(modeloHer);\n personalTable.setModel(modeloPer);\n modeloHer.setColumnIdentifiers(titulosHer);\n modeloPer.setColumnIdentifiers(titulosPer);\n \n try {\n herramientas = herImp.lista_herramientas();\n for(Herramienta her : herramientas){\n Object[]o = new Object[4];\n o[0] = her.getCodigoProducto();\n o[1] = her.getNombre();\n o[2] = her.getDescripcion();\n o[3] = her.getCantidadDisponible();\n \n modeloHer.addRow(o);\n }\n } catch (Exception e) {\n System.out.println(\"Error al mostrar las herramientas en la tabla\");\n }\n \n try {\n listaPersonal = perImp.lista_personal();\n for(Personal per : listaPersonal){\n Object[]o = new Object[3];\n o[0] = per.getNombre();\n o[1] = per.getArea();\n o[2] = per.getPuesto();\n \n modeloPer.addRow(o);\n }\n } catch (Exception e) {\n System.out.println(\"Error al mostrar el personal en la tabla\");\n }\n \n }",
"@Override\r\n public void hallarPerimetro() {\r\n this.perimetro = this.ladoA*3;\r\n }",
"@Override\n\tpublic void concentrarse() {\n\t\tSystem.out.println(\"Se centra en sacar lo mejor del Equipo\");\n\t\t\n\t}",
"public void setpMenor(String pMenor) {\r\n this.pMenor = pMenor;\r\n }",
"@Override\n\tpublic Marca obtenerMarca(int id) {\n\t\treturn null;\n\t}",
"public List<Propriedade> getListaDePropriedadesComMonopolio(){\r\n List<Propriedade> proComMonopolio = new ArrayList<>();\r\n for(Propriedade pro: this.propriedadesDoJogador){\r\n for(String cor: this.monopolioNoGrupoDeCor){\r\n if(pro.getCor().equals(cor)){\r\n proComMonopolio.add(pro);\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return proComMonopolio;\r\n }",
"public ConsultaMassivaCapitoloEntrataPrevisioneModel() {\n\t\tsuper();\n\t\tsetTitolo(\"Consulta Capitolo Entrata Previsione (Massivo)\");\n\t}",
"private void accederpro() {\n\t\tVprosesor prof= new Vprosesor ();\n\t\t\n\t\tControladorprofesor b = new Controladorprofesor(prof);\n\t\tprof.setControladorprofesor(b);\n\t\tprof.setVisible(true);\n\t\tvb.dispose();\n\t\t\n\t}",
"void establecerPuntoFM(int pos){\n this.emisoraFMActual = pos;\n }",
"public String getMascara()\r\n/* 287: */ {\r\n/* 288:355 */ if (this.dimensionContable.getMascara() != null) {\r\n/* 289:356 */ if (this.dimensionContable.getDimensionPadre() != null) {\r\n/* 290:358 */ this.mascara = (this.dimensionContable.getDimensionPadre().getCodigo() + this.dimensionContable.getMascara().substring(this.dimensionContable.getDimensionPadre().getCodigo().length()));\r\n/* 291: */ } else {\r\n/* 292:360 */ this.mascara = this.dimensionContable.getMascara();\r\n/* 293: */ }\r\n/* 294: */ }\r\n/* 295:363 */ return this.mascara;\r\n/* 296: */ }",
"public void limpiarMesa() {\n for (int i = 0; i < mesa.length; i++) {\n mesa[i][1] = 0;\n }\n }",
"public Mazo()\n {\n // initialise instance variables\n mazo = new ArrayList<Carta>(40);\n \n int contadorDePalo = 0;\n while (contadorDePalo <= 3) {\n int contadorDeValor = 1;\n while (contadorDeValor <= 12) {\n if (contadorDeValor <= 7 || contadorDeValor >= 10) {\n mazo.add(new Carta(contadorDeValor,contadorDePalo));\n }\n contadorDeValor++;\n }\n contadorDePalo++;\n }\n }",
"public Sorpresa_SalirCarcel(MazoSorpresas _mazo) {\n texto = \"El jugador puede salir de la carcel si cae en ella\";\n mazo = _mazo;\n }",
"@Override public String getMasa(){\n return \"gruesa \";\n }",
"private void establecerTablaPlatillos() {\n Object[] columnas = {\"Platillo\", \"Cantidad\", \"Costo\"};\n Object[][] modelo = new Object[platillosAVender.size()][3];\n int x = 0;\n\n for (VentaPlatillo ventaPlatillo : platillosAVender) {\n\n modelo[x][0] = ventaPlatillo.getPlatillo().getNombre();\n modelo[x][1] = ventaPlatillo.getCantidad();\n modelo[x][2] = ventaPlatillo.getCosto();\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaPlatillosAVender.setDefaultEditor(Object.class, null);\n tablaPlatillosAVender.setModel(new DefaultTableModel(modelo, columnas));\n tablaPlatillosAVender.setCellSelectionEnabled(false);\n tablaPlatillosAVender.setRowSelectionAllowed(false);\n txtTotal.setText(total + \"\");\n }",
"String ponerMarcaFijarTarifa(final boolean ponerMarca) {\n return ponerMarca ? Constantes.MARCA_FIJAR_TARIFA : \"\";\n }",
"public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }",
"@Override\n\tpublic List<Marca> ListaMarcas1() {\n\t\treturn marcadao.ListaMarcas1();\n\t}",
"public static void MenuPrincipal() {\n System.out.println(\"Ingrese Opcion deseada :.\\n\"\r\n + \"1. Ingresar un perro a la guardería.\\n\"\r\n + \"2. Contar cuántos Perros de la raza y el Genero deceado hay o pasaron por la guardería durante el verano.\\n\"\r\n + \"3. Listar todos los perros (con su respectiva información) que ingresaron en una determinada fecha.\\n\"\r\n + \"4. Listar todos los Perrros de la Raza que decea con estadía mayor a 20 días.\\n\"\r\n + \"5. Dado el código de un perro, informar los datos de su dueño.\\n\"\r\n + \"6. Terminar.\\n\"\r\n +\"______________________________________________________________________________________________________________\"\r\n \r\n );\r\n\r\n }",
"public MPaciente() {\r\n\t}",
"public DAOPedidoMesa() {\n\t\trecursos = new ArrayList<Object>();\n\t}",
"private void mostrarPorMarca() {\n Scanner leer = new Scanner(System.in);\n String marca; //marca a buscar\n int cont = 0;\n System.out.print(\"Introduce la marca de coche a buscar: \");\n marca = leer.next();\n\n System.out.print(\"Las posiciones con coches con esa marca son: \");\n\n for (int i = 0; i < this.coches.size(); i++) {\n if (coches.get(i).getMarca().equalsIgnoreCase(marca)) {\n if (cont != 0) {\n System.out.print(\", \");\n }\n System.out.print(i);\n cont = 1;\n }\n }\n System.out.println();\n }",
"void usada() {\n mazo.habilitarCartaEspecial(this);\n }",
"public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }",
"public static void main(String[] args) { \n Cubo c=new Cubo();\n float arista;\n arista=c.PreguntaArista();\n c.SetLado(arista);\n c.SetÁrea();\n System.out.println(\"Área del cubo cuyas aristas son de \" +arista+ \": \" +c.GetÁrea());\n }",
"public Plato(){\n\t\t\n\t}",
"private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}",
"private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(\"punkty_poziomu\"));\n zmienne_poziomu(poziom);\n }",
"public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }"
] | [
"0.6937286",
"0.6790432",
"0.6785349",
"0.67761624",
"0.6767215",
"0.6669069",
"0.6609895",
"0.65358377",
"0.6531834",
"0.6511701",
"0.6509274",
"0.64795333",
"0.64647704",
"0.6459842",
"0.638175",
"0.6365128",
"0.6158524",
"0.6141513",
"0.61312664",
"0.6117112",
"0.6080282",
"0.60637033",
"0.6012217",
"0.6003937",
"0.59767944",
"0.59716856",
"0.5965684",
"0.5962503",
"0.59380925",
"0.59373045",
"0.5933192",
"0.59206045",
"0.58985376",
"0.58883965",
"0.5886712",
"0.58856535",
"0.5878084",
"0.5847077",
"0.5827957",
"0.58274627",
"0.5826712",
"0.5826496",
"0.58243763",
"0.58243203",
"0.5823217",
"0.58208346",
"0.5790653",
"0.57896066",
"0.57874465",
"0.57839566",
"0.5755653",
"0.57541853",
"0.5738619",
"0.573846",
"0.5731722",
"0.57313144",
"0.57223815",
"0.5720078",
"0.5707988",
"0.5707076",
"0.57064444",
"0.5704836",
"0.57043564",
"0.5687622",
"0.5687094",
"0.5687079",
"0.5681385",
"0.5675723",
"0.5674451",
"0.56643593",
"0.5654611",
"0.5647184",
"0.56351054",
"0.56301284",
"0.5621435",
"0.5619164",
"0.56179816",
"0.5617228",
"0.56144464",
"0.5611535",
"0.56078106",
"0.56010836",
"0.55932176",
"0.55928874",
"0.55916446",
"0.558507",
"0.5577585",
"0.55771863",
"0.55694807",
"0.5567586",
"0.5562892",
"0.55619943",
"0.55588704",
"0.55557084",
"0.5554465",
"0.5551693",
"0.55482835",
"0.5545305",
"0.5543454",
"0.5541558"
] | 0.6665283 | 6 |
Modifica la marca del prodotto. | public void setMarca(String marca) {
this.marca = marca;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Modelo(Marca marca) {\n\t\tsetMarca(marca);\n\t}",
"public void setMarca( String marca ){\n this.marca = marca;\n }",
"private void setMarca(Marca marca) {\n\t\tthis.marca = marca;\n\t}",
"Marca getMarca() {\n\t\treturn marca;\n\t}",
"private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}",
"public void setMarca(String Marca) {\n this.Marca = Marca;\n }",
"public void setMarca(String marcaParametru)\n {\n this.marca = marcaParametru;\n }",
"public void setMarca(Marca[] marca){\n this.marca = marca;\n }",
"public String getMarca() {\n\t\treturn marca;\n\t}",
"public String getMarca() {\n return Marca;\n }",
"public String getMarca()\n {\n return marca;\n }",
"private void generarMarca() {\r\n\t\tthis.marca = MARCAS[(int) (Math.random() * MARCAS.length)];\r\n\t}",
"public void recolheMao() {\n\t\tcartas[0].visible = false;\n\t\tfor (int i = 4; i <= 15; i++) {\n\t\t\tCartaVisual c = cartas[i];\n\t\t\tif ((c.top != topBaralho) || (c.left != leftBaralho)) {\n\t\t\t\tc.movePara(leftBaralho, topBaralho, 100);\n\t\t\t\tc.setCarta(null);\n\t\t\t\tc.descartada = false;\n\t\t\t\tcartasJogadas.remove(c);\n\t\t\t}\n\t\t}\n\t}",
"public String darMarca( )\n\t{\n\t\treturn marca;\n\t}",
"String ponerMarcaFijarArticulo(final boolean ponerMarca) {\n return ponerMarca ? Constantes.MARCA_FIJAR_ARTICULO : \"\";\n }",
"public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }",
"public String getMarca()\n {\n return \"\\nDispositivo Marca \" + Marca; \n }",
"private void dibujarMarcador() {\n\n\t\tText tituloMarcador = new Text(\"Marcador\");\n\t\ttituloMarcador.setFont(new Font(16));\n\n\t\tText tituloJuega = new Text(\"Juega\");\n\t\ttituloJuega.setFont(new Font(16));\n\t\t\n\t\tcantidadFichasNegras = new Label();\n\t\tcantidadFichasBlancas = new Label();\n\t\tjugadorActual = new Label();\n\n\t\tGridPane marcador = new GridPane();\n\t\tmarcador.setAlignment(Pos.TOP_CENTER);\n\t\tmarcador.setHgap(20);\n\t\tmarcador.setVgap(20);\n\t\tmarcador.setPadding(new Insets(20));\n\t\tmarcador.add(tituloMarcador, 0, 0, 2, 1);\n\t\tmarcador.add(new Label(\"Negras :\"), 0, 1);\n\t\tmarcador.add(cantidadFichasNegras, 1, 1);\n\t\tmarcador.add(new Label(\"Blancas :\"), 0, 2);\n\t\tmarcador.add(cantidadFichasBlancas, 1, 2);\n\t\tmarcador.add(tituloJuega, 0, 3, 2, 1);\n\t\tmarcador.add(jugadorActual, 0, 4, 2, 1);\n\n\t\tpanel.setPadding(new Insets(5));\n\t\tpanel.setRight(marcador);\n\t}",
"private void gravarPromocao() {\n\t\tString nome = textFieldNome.getText();\n\t\tString descricao = textFieldDescricao.getText();\n\t\tboolean ativo = true;\n\n\t\tPromocao promocao = null;\n\n\t\tif (modoEditar) {\n\t\t\tpromocao = promocaoAntiga;\n\n\t\t\tpromocao.setNome(nome);\n\t\t\tpromocao.setDescricao(descricao);\t\t\t\n\t\t\tpromocao.setAtiva(ativo);\n\n\t\t} else {\n\t\t\tpromocao = new Promocao( nome, descricao, ativo);\n\t\t}\n\n\t\ttry {\n\t\t\tif (modoEditar) {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().editarPromocao(promocao);\n\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção editada com sucesso!\", \"Promoção Editada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t} else {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().criarPromocao(promocao);\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção criada com sucesso!\", \"Promoção Criada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\n\n\t\t} catch (Exception exc) {\n\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\"Error a criar a Promoção \" + exc.getMessage(), \"Error\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t}",
"public String getMarca(){\n return marca;\n }",
"@Override\n\tpublic boolean modificar(Marca marc) {\n\t\treturn marcadao.modificar(marc);\n\t}",
"public void setMarca(Long marca) {\n\t\tMarca = marca;\n\t}",
"private void agregarMarcadorAlto() {\n SharedPreferences preferencias = actividadJuego.getSharedPreferences(\"marcadorAlto\", Context.MODE_PRIVATE);\n int puntos = preferencias.getInt(\"puntos\",0);\n\n txtMarcador = new Text(ControlJuego.ANCHO_CAMARA/2,ControlJuego.ALTO_CAMARA-80,\n fontMonster,\"Marcador mayor: \"+puntos,actividadJuego.getVertexBufferObjectManager());\n attachChild(txtMarcador);\n }",
"public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }",
"void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }",
"String ponerMarcaCongelado(final boolean esCongelado) {\n return esCongelado ? Constantes.MARCA_CONGELADO : \"\";\n\n }",
"@Override\n\tpublic void modificada(Mao m, Participante p) {\n\t\t\n\t}",
"public String verMarcacion(){\n\t\t limpiar();\n\t\t\tString vista=\"pretty:misMarcacionesPretty\";\n\t //CODIGO\n\t return vista;\n\t\t}",
"public boolean asignarMascota(Perro perro){\n boolean bandera = false;\n Persona[] miembros_familia;\n familia_asignada = \"\";\n\n while (!bandera){\n //Recorrer todo el arreglo de Familia\n for (int i = 0; i <= numero_familias; i++){\n //Obtener los miembros de la familia actual \n miembros_familia = familias[i].getMiembros();\n\n //Recorrer cada miembro del arreglo de Persona\n for (int j = 0; j < miembros_familia.length; j++){ \n //Obtener edad del miembro\n int edad = miembros_familia[j].getEdad();\n\n //Verificar si el miembro al que se analiza puede tener la mascota y si esa familia puede tener perro\n if(verificarMascota(perro, edad)){\n if (familias[i].getNumeroMascotas() < 4){\n bandera = true;\n familias[i].setNumeroMascotas();\n familia_asignada = familias[i].getApellido();\n j = miembros_familia.length;\n i = familias.length;\n }\n }\n else{\n j = miembros_familia.length;\n }\n }\n }\n break;\n }\n return bandera;\n }",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"public void AtualizaPassageiro(String nome, String NovoCpf, String cpfPrimario) {\n\n\t\ttry {\n\n\t\t\t// Meu cpf é a chjave\n\t\t\t// setando nome\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set nome= ? where cpf= ? \");\n\t\t\tstmt.setString(1, nome);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\t// setando cpf\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set cpf= ? where cpf= ? \");\n\t\t\tstmt.setString(1, NovoCpf);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Alterado com sucesso!!\");\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t\tSystem.out.println(\"Erro ao atualizar passageiro!\");\n\t\t\tJOptionPane.showMessageDialog(null, \"-Erro ao atualizar o passageiro \");\n\t\t\tJOptionPane.showMessageDialog(null, \"certifique se de inserir um CPF VALIDO(15 CARACTERES)\t \");\n\t\t}\n\n\t}",
"public void limpiarMesa() {\n for (int i = 0; i < mesa.length; i++) {\n mesa[i][1] = 0;\n }\n }",
"public void setIdMarca(Long idMarca) {\n this.idMarca = idMarca;\n }",
"public Marca[] getMarca(){\n return this.marca;\n }",
"private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}",
"private static void muta(Cromosoma c)\n\t{\n\t}",
"public ProtoMarine getMarine(){\r\n\t\treturn marine;\r\n\t}",
"public void limpar() {\n\t\talunosMilitarPraca.setId(null);\n\t\talunosMilitarPraca.setMasculino(null);\n\t\talunosMilitarPraca.setFeminino(null);\n\t\t\n\t\talunosMilitarOficial.setId(null);\n\t\talunosMilitarOficial.setMasculino(null);\n\t\talunosMilitarOficial.setFeminino(null);\n\t}",
"void usada() {\n mazo.habilitarCartaEspecial(this);\n }",
"public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}",
"public void RealizarDiagnostico() {\n\t\tSystem.out.println(\"realizar dicho diagnostico con los sintomas presentados por el paciente\");\r\n\t}",
"@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}",
"@Override\r\n\tprotected void editarObjeto() throws ClassNotFoundException {\n\t\tif (tbJustificaciones.getSelectedRow() != -1\r\n\t\t\t\t&& tbJustificaciones.getValueAt(tbJustificaciones.getSelectedRow(), 0) != null) {\r\n\t\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (MODIFICANDO)\");\r\n\t\t\tthis.opcion = 2;\r\n\t\t\tactivarFormulario();\r\n\t\t\tcargarDatosModificar();\r\n\t\t\ttxtCedula.setEnabled(false);\r\n\t\t\tlimpiarTabla();\r\n\t\t\tthis.panelBotones.habilitar();\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, GlobalUtil.MSG_ITEM_NO_SELECCIONADO, \"ATENCION\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t}",
"public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }",
"public void setMarine(ProtoMarine m){\r\n\t\tmarine = m;\r\n\t}",
"public Long getIdMarca() {\n return idMarca;\n }",
"private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }",
"private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }",
"public void moverAbajo() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, -1));\n }",
"@Override\n\tpublic void modifypro(ProductBean p) {\n\t\tsession.update(namespace+\".modifypro\", p);\n\t}",
"public JComboBox getCmbMarca() {\r\n\t\treturn cmbMarca;\r\n\t}",
"public void morir()\r\n\t{\r\n\t\tif(this.grafico != null)\t\r\n\t\t\tthis.mover(4);\r\n\t}",
"public Agnello mangiaPecora() {\n\t\tint indiceCasuale = (int) (Math.random() * pecore.size());\n\t\tAgnello pecoraMangiata = pecore.get(indiceCasuale);\n\t\tprelevaAnimale(pecoraMangiata.getTipo());\n\t\treturn pecoraMangiata;\n\t}",
"String ponerMarcaFijarTarifa(final boolean ponerMarca) {\n return ponerMarca ? Constantes.MARCA_FIJAR_TARIFA : \"\";\n }",
"private void gerarLaudosProcedimentosMateriais(\r\n\t\t\tMpmPrescricaoMedica prescricao, List<MpmLaudo> laudoList) throws ApplicationBusinessException {\r\n\r\n\t\tMap<MpmPrescricaoProcedimento, FatProcedHospInternos> procedimentosMap = this\r\n\t\t\t\t.getConfirmarPrescricaoMedicaRN()\r\n\t\t\t\t.listarProcedimentosGeracaoLaudos(prescricao);\r\n\r\n\t\tMpmLaudo laudo = null;\r\n\r\n\t\tfor (MpmPrescricaoProcedimento procedimento : procedimentosMap.keySet()) {\r\n\t\t\tlaudo = new MpmLaudo();\r\n\t\t\tlaudo.setDthrInicioValidade(prescricao.getDthrInicio());\r\n\r\n\t\t\tDate dataFimValidade = prescricao.getDthrInicio();\r\n\t\t\tif (procedimento.getDuracaoTratamentoSolicitado() != null) {\r\n\t\t\t\tdataFimValidade = DateUtil.adicionaDias(dataFimValidade,\r\n\t\t\t\t\t\tprocedimento.getDuracaoTratamentoSolicitado()\r\n\t\t\t\t\t\t\t\t.intValue() - 1);\r\n\t\t\t}\r\n\t\t\tlaudo.setDthrFimValidade(dataFimValidade);\r\n\t\t\tlaudo.setDthrFimPrevisao(dataFimValidade);\r\n\r\n\t\t\tlaudo.setJustificativa(procedimento.getJustificativa());\r\n\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\tlaudo.setImpresso(false);\r\n\t\t\tlaudo.setDuracaoTratSolicitado(procedimento\r\n\t\t\t\t\t.getDuracaoTratamentoSolicitado());\r\n\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\tlaudo.setPrescricaoProcedimento(procedimento);\r\n\t\t\tlaudo.setProcedimentoHospitalarInterno(procedimentosMap\r\n\t\t\t\t\t.get(procedimento));\r\n\r\n\t\t\tthis.adicionarLaudoLista(laudoList, laudo);\r\n\r\n\t\t}\r\n\r\n\t}",
"@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void moverArriba() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, 1));\n }",
"public void setpMenor(String pMenor) {\r\n this.pMenor = pMenor;\r\n }",
"public void limpiarMemoria();",
"public boolean isSetMarca() {\r\n return this.marca != null;\r\n }",
"@Override\n\tpublic List<Marca> ListaMarcas1() {\n\t\treturn marcadao.ListaMarcas1();\n\t}",
"public void coMina(){\n espM=true;\r\n }",
"public short atualizaMapeamentos (boolean limpar) {\r\n return this._delegate.atualizaMapeamentos(limpar);\r\n }",
"public void mover_peca(String comando) {\n\t\tint ii = '7' - comando.charAt(1); //i inicial\n\t\tint ji = comando.charAt(0) - 'a'; //j inicial\n\t\tint id = '7' - comando.charAt(4); //i destino\n\t\tint jd = comando.charAt(3) - 'a'; //j destino\n\n\t\tif(this.mov_valido(ii, ji, id, jd)) {\n\t\t\tm[(ii+id)/2][(ji+jd)/2] = null;\n\t\t\tm[id][jd] = m[ii][ji];\n\t\t\tm[ii][ji] = null;\n\t\t}\n\n\t}",
"public RodizioMunicipal(final String placa) {\n\t\tthis.placa = placa;\n\t}",
"void establecerPuntoAM(int pos){\n this.emisoraAMActual = pos;\n }",
"public ConsultaMassivaCapitoloEntrataPrevisioneModel() {\n\t\tsuper();\n\t\tsetTitolo(\"Consulta Capitolo Entrata Previsione (Massivo)\");\n\t}",
"@Override\n\tpublic Marca obtenerMarca(int id) {\n\t\treturn null;\n\t}",
"protected void addMarcaPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_ContenedorDetalleVehiculoViewModel_marca_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_ContenedorDetalleVehiculoViewModel_marca_feature\", \"_UI_ContenedorDetalleVehiculoViewModel_type\"),\r\n\t\t\t\t ContenedorregistrovehiculoviewmodelPackage.Literals.CONTENEDOR_DETALLE_VEHICULO_VIEW_MODEL__MARCA,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public List<Propriedade> getListaDePropriedadesComMonopolio(){\r\n List<Propriedade> proComMonopolio = new ArrayList<>();\r\n for(Propriedade pro: this.propriedadesDoJogador){\r\n for(String cor: this.monopolioNoGrupoDeCor){\r\n if(pro.getCor().equals(cor)){\r\n proComMonopolio.add(pro);\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return proComMonopolio;\r\n }",
"public void spModifyPro(ShopCommand shopCommand) {\n\t\t\r\n\t\tShopDTO sdto = new ShopDTO();\r\n\t\tsdto.setShopNo(shopCommand.getShopNo());\r\n\t\tsdto.setShopPh(shopCommand.getShopPh());\r\n\t\tsdto.setShopAddr(shopCommand.getShopAddr());\r\n\t\t\r\n\t\tshopMapper.spModify(sdto);\r\n\t\t\r\n\t\r\n\t\t\r\n\t}",
"public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}",
"public void chocoContraMunicion(IMunicion municion){}",
"public void almacenar( Proyecto proyecto) {\n\n }",
"public void setApellidoMaterno(String apellidoMaterno);",
"public DefaultComboBoxModel<MarcaVO> preencherCbx_Marca() {\n BaseDAO<MarcaVO> bDAO = new MarcaDAO();\n ArrayList<MarcaVO> list = bDAO.consultarTodos();\n return new DefaultComboBoxModel(list.toArray());\n }",
"public void aumentarReproducidas() {\n\t\tsuper.aumentarReproducidas();\n\n\t}",
"public CriarPromocaoDialog(GUI_gestor_promocao promocaoPesquisaApp, Promocao promocaoTemp, boolean modoEditar ) {\n\t\tthis();\n\t\tthis.promocaoPesquisaApp = promocaoPesquisaApp;\n\t\tthis.promocaoAntiga = promocaoTemp;\n\t\tthis.modoEditar = modoEditar;\n\n\t\t// edit mode, actioned by the edit button\n\t\t\n\t\tif(modoEditar) {\n\t\t\tsetTitle(\"Editar Promoção\");\n\t\t\tpopularTextFields(promocaoTemp);\n\t\t}\n\t}",
"@Override\r\n\tpublic void majMemoireIA() {\r\n\t}",
"public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }",
"public boolean alterarInformacoes(Prova prova) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"UPDATE prova SET codDisciplina=?, titulo=?, valorTotal=?, valorQuestoes=?, tempo=?, data=?, allowAfterDate=?, allowMultipleAttempts=? WHERE codigo=?\");\n\t\t\tps.setInt (1, prova.getCodDisciplina());\n\t\t\tps.setString (2, prova.getTitulo());\n\t\t\tps.setFloat (3, prova.getValorTotal());\n\t\t\tps.setFloat (4, prova.getValorQuestoes());\n\t\t\tps.setInt (5, prova.getTempo());\n\t\t\tps.setString (6, prova.getData()); \n\t\t\tps.setBoolean(7, prova.isAllowAfterDate()); \n\t\t\tps.setBoolean(8, prova.isAllowMultipleAttempts()); \n\t\t\tps.setInt (9, prova.getCodigo());\n\t\t\n\t\t\treturn (ps.executeUpdate() > 0) ? true : false;\n\t\t});\t\n\t}",
"private void accederpro() {\n\t\tVprosesor prof= new Vprosesor ();\n\t\t\n\t\tControladorprofesor b = new Controladorprofesor(prof);\n\t\tprof.setControladorprofesor(b);\n\t\tprof.setVisible(true);\n\t\tvb.dispose();\n\t\t\n\t}",
"public static void modificaCorsoMateria(Course corsoModificato) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.MODIFY_COURSE;\n\t\t\trp.parameters = new Object[] { corsoModificato };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Errore MODIFY_COURSE\");\n\t\t}\n\t}",
"private void remplirMaterielData() {\n\t}",
"private void gerarLaudoPermanenciaMaior(MpmPrescricaoMedica prescricao,\r\n\t\t\tList<MpmLaudo> laudoList, FatConvenioSaudePlano convenioSaudePlano,\r\n\t\t\tAghParametros seqLaudoMaiorPermanencia) {\r\n\t\tMpmTipoLaudoConvenio tipoLaudoConvenio = this\r\n\t\t\t\t.getMpmTipoLaudoConvenioDAO()\r\n\t\t\t\t.obterTempoValidadeTipoLaudoPermanenciaMaior(\r\n\t\t\t\t\t\tseqLaudoMaiorPermanencia.getVlrNumerico().shortValue(),\r\n\t\t\t\t\t\tconvenioSaudePlano);\r\n\r\n\t\tif (tipoLaudoConvenio != null) {\r\n\r\n\t\t\tShort quantidadeDiasFaturamento = 0;\r\n\t\t\tShort diasPermanenciaMaior = 0;\r\n\r\n\t\t\tMpmTipoLaudo tipoLaudoMaiorPermanencia = this.getMpmTipoLaudoDAO()\r\n\t\t\t\t\t.obterPorChavePrimaria(\r\n\t\t\t\t\t\t\tseqLaudoMaiorPermanencia.getVlrNumerico()\r\n\t\t\t\t\t\t\t\t\t.shortValue());\r\n\r\n\t\t\tif (prescricao.getAtendimento().getInternacao() != null) {\r\n\t\t\t\tif (prescricao.getAtendimento()\r\n\t\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar() != null){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (prescricao.getAtendimento()\r\n\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar()\r\n\t\t\t\t\t.getQuantDiasFaturamento() != null){\r\n\t\t\t\t\t\tquantidadeDiasFaturamento = prescricao.getAtendimento()\r\n\t\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar()\r\n\t\t\t\t\t\t.getQuantDiasFaturamento();\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdiasPermanenciaMaior = prescricao.getAtendimento()\r\n\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar()\r\n\t\t\t\t\t.getDiasPermanenciaMaior();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (diasPermanenciaMaior == null || diasPermanenciaMaior > 0){\r\n\t\t\t\t\r\n\t\t\t\tInteger adicionalDias = 0;\r\n\t\t\t\tif (quantidadeDiasFaturamento != null) {\r\n\t\t\t\t\tadicionalDias = (quantidadeDiasFaturamento * 2) + 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (DateUtil.validaDataTruncadaMaiorIgual(new Date(), DateUtil\r\n\t\t\t\t\t\t.adicionaDias(prescricao.getAtendimento().getInternacao()\r\n\t\t\t\t\t\t\t\t.getDthrInternacao(), adicionalDias))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (this.getMpmLaudoDAO()\r\n\t\t\t\t\t\t\t.obterCountLaudosPorTipoEAtendimento(\r\n\t\t\t\t\t\t\t\t\tprescricao.getAtendimento(),\r\n\t\t\t\t\t\t\t\t\ttipoLaudoMaiorPermanencia) <= 0) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMpmLaudo laudo = new MpmLaudo();\r\n\t\t\t\t\t\tlaudo.setDthrInicioValidade(prescricao.getAtendimento()\r\n\t\t\t\t\t\t\t\t.getInternacao().getDthrInternacao());\r\n\t\t\t\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\t\t\t\tlaudo.setImpresso(false);\r\n\t\t\t\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\t\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\t\t\t\tlaudo.setTipoLaudo(tipoLaudoMaiorPermanencia);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlaudoList.add(laudo);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void moverPlataformas(){\n\t\tfor ( int x=0 ; x < 2; x++){\n\t\t\tquitarPoder(x);\n\t\t\tgame.moverPersonaje(x);\n\t\t}\n\t}",
"public void setModeloProblema(ModeloProblemaLinear modeloProblema) {\r\n this.modeloProblema = modeloProblema;\r\n }",
"private MensagemPromocional getMensagemPromocional(ResultSet rs) throws SQLException\n\t{\n\t\tMensagemPromocional msg = new MensagemPromocional(rs.getInt(\"CO_PROMOCAO\")\n\t\t\t\t ,rs.getInt(\"CO_SERVICO\")\n\t\t\t\t ,rs.getInt(\"CO_CONTEUDO\"));\n\t\tmsg.setMensagemPromocional(rs.getString(\"DS_MENSAGEM\"));\n\n\t\t// Armazena a instancia do objeto que foi alterada ou criada no \n\t\t// cache de dados da classe DAO\n\t\tpoolMensagens.put(new Integer(msg.getCodPromocao()),msg);\n\t\treturn msg;\n\t}",
"public MovimentoContaPrefaturada pesquisarMovimentoContaPrefaturada(Integer idConta, Integer idMedicaoTipo)\n\t\tthrows ErroRepositorioException ;",
"@Override\r\n public void moverAyuda() {\n System.out.println(\"La reina puede mover hacia cualquier dirección en linea recta / diagonal\");\r\n }",
"@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }",
"private void pintarMesa() {\n try {\n mesa = ImageIO.read(new File(\"src/imagenes/Mesa.jpg\")).getScaledInstance(1600, 1300, Image.SCALE_SMOOTH);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void pesquisarArtista() {\n\t\t\r\n\t\tpAController = new ArtistaCtrl();\r\n\t\tObject[] possibilities = pAController.getArtista();\r\n\t\tString s = (String) JOptionPane.showInputDialog(frmAcervo, \"Escolha o artista:\\n\", \"Pesquisar o Artista\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE, null, possibilities, possibilities[0]);\r\n\t\tif (s != null && s.length() > 0) {\r\n\t\t\tnomeArtista.setText(s);\r\n\t\t\tartistaNome = s;\r\n\t\t\treturn;\r\n\t\t}\r\n\t}",
"void actualizar(Prestamo prestamo);",
"public MecanismoMultiplicacionPrimo(int numPrimo)\n {\n super(numPrimo) ;\n\n }",
"public static void pesquisarTest() {\n\t\t\n\t\tlistaProfissional = profissionalDAO.lista();\n\n\t\t//user.setReceitas(new ArrayList<Receita>());\n\t\t\n\t\t\n\t\tSystem.out.println(\"Entrou PEsquisar ====\");\n\t\tSystem.out.println(listaProfissional);\n\n\t}",
"public Punto getCentro() {\r\n\treturn centro;\r\n}",
"void establecerPuntoFM(int pos){\n this.emisoraFMActual = pos;\n }",
"@Override\n\tpublic boolean preModify() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}"
] | [
"0.64954734",
"0.64016396",
"0.6372449",
"0.61815983",
"0.6119652",
"0.6106566",
"0.6029829",
"0.5986394",
"0.59776014",
"0.59449905",
"0.5934191",
"0.5933517",
"0.5862454",
"0.58331627",
"0.5821839",
"0.57890165",
"0.57831544",
"0.57717854",
"0.5689248",
"0.56650585",
"0.5662558",
"0.5661203",
"0.5660902",
"0.5650728",
"0.5618631",
"0.5616959",
"0.55881375",
"0.55723155",
"0.5555584",
"0.5549661",
"0.5544727",
"0.5537889",
"0.5531798",
"0.5530975",
"0.55199564",
"0.55017823",
"0.5469714",
"0.5464626",
"0.5441926",
"0.5422986",
"0.541788",
"0.54073846",
"0.5399752",
"0.53897464",
"0.5388981",
"0.53856003",
"0.5385431",
"0.53758574",
"0.537099",
"0.5366372",
"0.53493065",
"0.53449374",
"0.534165",
"0.533971",
"0.53315556",
"0.5320512",
"0.53204113",
"0.5320255",
"0.5319367",
"0.53120726",
"0.5306595",
"0.5304647",
"0.5303872",
"0.5301851",
"0.53008634",
"0.5295451",
"0.5272395",
"0.52545893",
"0.525298",
"0.52463055",
"0.5244987",
"0.52444905",
"0.52371866",
"0.52332544",
"0.52294415",
"0.522625",
"0.52249837",
"0.5219814",
"0.52043",
"0.52003586",
"0.51939255",
"0.5186784",
"0.5184828",
"0.51828784",
"0.516861",
"0.51680523",
"0.5152099",
"0.5151538",
"0.5147303",
"0.5145467",
"0.5144469",
"0.51439637",
"0.5143446",
"0.5134897",
"0.5130021",
"0.5129909",
"0.51287067",
"0.51231945",
"0.5120755",
"0.5117777"
] | 0.6258639 | 3 |
Ritorna il codice del prodotto. | public String getCodice() {
return codice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getCodiceFiscale();",
"public java.lang.String getCodigo_pcom();",
"public abstract java.lang.String getCod_tecnico();",
"public String getCODIGO() {\r\n return CODIGO;\r\n }",
"@AutoEscape\n\tpublic String getCodProvincia();",
"public abstract java.lang.String getCod_dpto();",
"@Override\n public String generaCodigo() {\n return \"\";\n }",
"@java.lang.Override\n public java.lang.String getCodigo() {\n java.lang.Object ref = codigo_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n codigo_ = s;\n return s;\n }\n }",
"public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}",
"public String getCodigo() {\n return codigo;\n }",
"public String getCodigo() {\n return codigo;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getCodigoBytes() {\n java.lang.Object ref = codigo_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n codigo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getCodigo() {\n java.lang.Object ref = codigo_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n codigo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getCodigo() {\n\t\treturn codigo;\n\t}",
"public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }",
"public CodeBook getCodificacion(){\n CodeBook res=new CodeBook();\n \n //Se obtiene los valores ni\n ArrayList<Integer> n=obtenerNi(obtenerYi());\n \n //Se asigna a cada carácter un código\n ArrayList<String> candidatos;\n int i=0;\n int cont_alfa=0;\n int nd=0;\n \n // Se comprueba para cada ni si es mayor que 0, en cuyo caso, se generan\n // los posibles códigos de longitud i que quedan libres y se asignan.\n while (i<n.size()){\n nd=nd*base;\n int cont=n.get(i);\n if (cont>0){\n candidatos=generaCod(i+1,nd);\n int cod=0;\n while (cont>0){\n res.add(alfabeto.getN(cont_alfa), candidatos.get(cod));\n nd++;\n cont_alfa++;\n cod++;\n cont--;\n }\n }\n i++;\n } \n return res;\n }",
"public int getCodiceID() \r\n\t\t{\r\n\t\t\treturn CodiceID;\r\n\t\t}",
"public int getCodigo() {\r\n return Codigo;\r\n }",
"public com.google.protobuf.ByteString\n getCodigoBytes() {\n java.lang.Object ref = codigo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n codigo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }",
"@Override\n\tpublic String getCtarCode() {\n\t\treturn null;\n\t}",
"public java.lang.String getCodigo() {\n return codigo;\n }",
"public int getCodigo_producto() {\n return codigo_producto;\n }",
"@AutoEscape\n\tpublic String getCodDistrito();",
"public java.lang.String getCodigo(){\n return localCodigo;\n }",
"public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.codigo;\n\t}",
"public String getCodigo() {\n\t\treturn this.codigo;\n\t}",
"public Long getCodigo() {\n return codigo;\n }",
"public String getCode();",
"public String getCode();",
"public void setCodice(String codice) {\n\t\tthis.codice = codice;\n\t}",
"public void setComuneResidenzaCod(int value) {\r\n this.comuneResidenzaCod = value;\r\n }",
"public int getCodigo() {\n return codigo;\n }",
"public int getCodigo() {\n return codigo;\n }",
"public int getCodigo() {\n return codigo;\n }",
"public int getCodigo() {\n return codigo;\n }",
"public IProduto getCodProd();",
"public Integer getCodigo() {\n return codigo;\n }",
"public Integer getCodigo() {\n\t\treturn codigo;\n\t}",
"public void setCodProvincia(String codProvincia);",
"public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }",
"public String getIdProcuratore() {\n return idProcuratore;\n }",
"public int getCodigo() {\n\t\treturn codigo;\n\t}",
"public Long getCode() {\n return code;\n }",
"public Long getCode() {\n return code;\n }",
"public String getCode()\n {\n return fCode;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }",
"public String toString(){\n return \"Codigo Produto: \"+this.idProduto+\n \"\\nNome do Produto \"+this.nomePro+\n \"\\nDescrição \"+this.descricao+\n \"\\nPreço: \"+this.preco;\n }",
"public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }",
"public String getCode(){\n\t\treturn code;\n\t}",
"public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}",
"public String getCode() {\n return _code;\n }",
"public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}",
"Code getCode();",
"public String getCode()\n {\n return code;\n}",
"public String getCode()\n {\n return code;\n }",
"java.lang.String getCode();",
"java.lang.String getCode();",
"public String getLBR_ProtestCode();",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCodProd() {\n return this.codProd;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public BigDecimal getCODE() {\r\n return CODE;\r\n }",
"public String getvCodtupa() {\n return vCodtupa;\n }",
"public void setCodigo(String codigo) {\n this.codigo = codigo;\n }",
"public java.lang.Integer getCodigo() {\r\n return codigo;\r\n }",
"String getCode();",
"String getCode();",
"String getCode();"
] | [
"0.72104955",
"0.71885437",
"0.70232016",
"0.690569",
"0.66911227",
"0.6688199",
"0.6672582",
"0.6635777",
"0.66231704",
"0.655389",
"0.655389",
"0.6539298",
"0.6504599",
"0.6478866",
"0.6462427",
"0.6431232",
"0.6409449",
"0.6404263",
"0.6400868",
"0.6394409",
"0.6384252",
"0.6355958",
"0.6303689",
"0.629738",
"0.6293497",
"0.6275754",
"0.62666905",
"0.6256921",
"0.62455326",
"0.62369627",
"0.62369627",
"0.622611",
"0.62234867",
"0.62189335",
"0.62189335",
"0.62189335",
"0.62189335",
"0.6217493",
"0.6189536",
"0.61862314",
"0.6169931",
"0.61636454",
"0.61560583",
"0.613676",
"0.611647",
"0.611647",
"0.6105654",
"0.6100829",
"0.6100829",
"0.6100829",
"0.6100829",
"0.6090554",
"0.6090546",
"0.6089941",
"0.6089618",
"0.6085083",
"0.60731596",
"0.6069299",
"0.60654885",
"0.60652566",
"0.6064288",
"0.6062666",
"0.6062666",
"0.6061372",
"0.60530305",
"0.60530305",
"0.60530305",
"0.60530305",
"0.60530305",
"0.60530305",
"0.60530305",
"0.6048657",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60478723",
"0.60443646",
"0.60443646",
"0.6043992",
"0.6026703",
"0.6019785",
"0.6001071",
"0.6001071",
"0.6001071"
] | 0.68923366 | 4 |
Modifica il codice del prodotto. | public void setCodice(String codice) {
this.codice = codice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCodigo_pcom(java.lang.String newCodigo_pcom);",
"public abstract void setCod_tecnico(java.lang.String newCod_tecnico);",
"public java.lang.String getCodigo_pcom();",
"public void setCodigo(String codigo) {\n this.codigo = codigo;\n }",
"public void setCodProvincia(String codProvincia);",
"public void setCodigo( String codigo ) {\n this.codigo = codigo;\n }",
"String getCodiceFiscale();",
"public abstract java.lang.String getCod_tecnico();",
"public void setComuneResidenzaCod(int value) {\r\n this.comuneResidenzaCod = value;\r\n }",
"public void setCodigo(java.lang.String codigo) {\n this.codigo = codigo;\n }",
"public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }",
"public abstract void setCod_dpto(java.lang.String newCod_dpto);",
"public void setCodigo(int pCodigo){\n this.codigo = pCodigo;\n }",
"public void setCodigo_produto(int pCodigoProduto){\n this.codigoProduto = pCodigoProduto;\n }",
"public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}",
"public void setCodProd(IProduto codigo);",
"@AutoEscape\n\tpublic String getCodProvincia();",
"public String getCodice() {\n\t\treturn codice;\n\t}",
"@Override\n public String generaCodigo() {\n return \"\";\n }",
"void setCodiceFiscale(String codiceFiscale);",
"public void setCodDistrito(String codDistrito);",
"public void setCodigo(int codigo) {\n this.codigo = codigo;\n }",
"public void localizarExibirProdutoCodigo(Prateleira prat){\n Produto mockup = new Produto();\r\n \r\n //pede o codigo para porcuara\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser procurado\" ));\r\n \r\n \r\n //ordena a prateleira\r\n Collections.sort(prat.getPrateleira());\r\n //seta o valor do codigo no auxiliar\r\n mockup.setCodigo(Codigo);\r\n \r\n //faz uma busca binaria no arraylist usando o auxiliar como parametro\r\n int resultado = Collections.binarySearch(prat.getPrateleira() ,mockup);\r\n \r\n //caso não encontre um\r\n if(resultado<0) \r\n //exibe essa mensagem\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" nao encontrado\");\r\n //caso encontre\r\n else {\r\n //mostrar o produto encontrado\r\n VisualizarProduto vp = new VisualizarProduto();\r\n vp.ver((Produto) prat.get(resultado));\r\n }\r\n }",
"@JsonIgnore\n @Override\n public String getCode()\n {\n return code;\n }",
"public String getCODIGO() {\r\n return CODIGO;\r\n }",
"public void setCod_perfil(java.lang.String newCod_perfil) {\n\t\tif (instanceExtension.needValuesOnMarkDirty())\n\t\t\tinstanceExtension.markDirty(4,getCod_perfil(),newCod_perfil);\n\t\telse\n\t\t\tinstanceExtension.markDirty(4);\n\t\tdataCacheEntry.setCod_perfil(newCod_perfil);\n\t}",
"public void setCodigo(Integer codigo) { this.codigo = codigo; }",
"public int getCodigo_producto() {\n return codigo_producto;\n }",
"public String onChangeResidenceCode()\r\n {\r\n\ttry\r\n\t{\r\n\r\n\t SessionCO sessionCO = returnSessionObject();\r\n\t residenceTypesSC.setCompCode(sessionCO.getCompanyCode());\r\n\t residenceTypesSC.setPreferredLanguage(sessionCO.getPreferredLanguage());\r\n\t residenceTypesVO = residenceTypesBO.returnDependencyByCode(residenceTypesSC);\r\n\t if(residenceTypesVO == null)\r\n\t {\r\n\t\tthrow new BOException(MessageCodes.INVALID_MISSING_CODE);\r\n\t }\r\n\r\n\t}\r\n\tcatch(Exception e)\r\n\t{\r\n\t residenceTypesVO = new RESIDENCE_TYPESVO();\r\n\t handleException(e, null, null);\r\n\t}\r\n\treturn SUCCESS;\r\n }",
"public abstract java.lang.String getCod_dpto();",
"public void setComuneNascitaCod(int value) {\r\n this.comuneNascitaCod = value;\r\n }",
"public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}",
"public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }",
"PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }",
"public String getCodigo() {\n return codigo;\n }",
"public String getCodigo() {\n return codigo;\n }",
"public String getCode()\n {\n return code;\n}",
"public void setProformaNo (java.lang.String proformaNo) {\n\t\tthis.proformaNo = proformaNo;\n\t}",
"public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }",
"public int getCodigo() {\r\n return Codigo;\r\n }",
"public void setLBR_ProtestCode (String LBR_ProtestCode);",
"public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }",
"public void setProyecto(java.lang.String proyecto) {\n this.proyecto = proyecto;\n }",
"public void setProyecto(java.lang.String proyecto) {\n this.proyecto = proyecto;\n }",
"public void setCode(String cod){\n\t\tcodeService = cod;\n\t}",
"private Map<Integer,Boolean> getProductCodeMap(){\n\t\t/*\n\t\t * Preleviamo i codici prodotto attualmente registrati nel database\n\t\t */\n\t\tStatement codeSt = null;\n\t\tResultSet codeRs = null;\n\t\ttry{\n\t\t\tcodeSt = connection.createStatement();\n\t\t\tString sql = \"SELECT CODICE FROM PRODOTTO;\";\n\t\t\tcodeRs = codeSt.executeQuery(sql);\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"DB issue: failed to fetch product IDs from database.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\t\n\t\tMap<Integer,Boolean> codeMap = new HashMap<Integer,Boolean>();\n\t\tBoolean placeHolder = new Boolean(true);\n\t\ttry{\n\t\t\twhile(codeRs.next()){\n\t\t\t\tcodeMap.put(codeRs.getInt(\"CODICE\"), placeHolder);\n\t\t\t}\n\t\t\tcodeSt.close(); // Chiude anche il ResultSet codeRs\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tSystem.out.println(\"ResultSet issue: failed to create the product code list.\\n\");\n\t\t\tSystem.out.println(sqle.getClass().getName() + \": \" + sqle.getMessage());\n\t\t}\n\t\treturn codeMap;\n\t}",
"public void setCodigoPosse(String codigoPosse) {\n this.codigoPosse = codigoPosse;\n }",
"@Override\n protected int getCodigoJuego() {\n return 5;\n }",
"public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }",
"public int getCodiceID() \r\n\t\t{\r\n\t\t\treturn CodiceID;\r\n\t\t}",
"@java.lang.Override\n public java.lang.String getCodigo() {\n java.lang.Object ref = codigo_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n codigo_ = s;\n return s;\n }\n }",
"@Override\n\tpublic String getCtarCode() {\n\t\treturn null;\n\t}",
"public void setCodigo(java.lang.Integer codigo) {\r\n this.codigo = codigo;\r\n }",
"public String getLBR_ProtestCode();",
"public IProduto getCodProd();",
"public void setIdPro(Integer idPro) {\n this.idPro = idPro;\n }",
"public String getCodigo() {\n\t\treturn codigo;\n\t}",
"public String getCode();",
"public String getCode();",
"public java.lang.String getCodigo(){\n return localCodigo;\n }",
"public DialogoAggiungiFissiConto(int codConto) {\n /* rimanda al costruttore della superclasse */\n super();\n\n try { // prova ad eseguire il codice\n\n /* regola le variabili di istanza coi parametri */\n this.setCodConto(codConto);\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public Long getCode() {\n return code;\n }",
"public Long getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }",
"public Long getCodigo() {\n return codigo;\n }",
"public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }",
"Code getCode();",
"public void addcode(String code){//להחליף את סטרינג למחלקה קוד או מזהה מספרי של קוד\r\n mycods.add(code);\r\n }",
"public void setCode(String code){\n\t\tthis.code = code;\n\t}",
"public int getCodigo() {\n return codigo;\n }",
"public int getCodigo() {\n return codigo;\n }",
"public int getCodigo() {\n return codigo;\n }",
"public int getCodigo() {\n return codigo;\n }",
"public void setCodiceEnte(java.lang.String codiceEnte) {\r\n this.codiceEnte = codiceEnte;\r\n }",
"public String setCode() {\n\t\treturn null;\n\t}",
"public CodeBook getCodificacion(){\n CodeBook res=new CodeBook();\n \n //Se obtiene los valores ni\n ArrayList<Integer> n=obtenerNi(obtenerYi());\n \n //Se asigna a cada carácter un código\n ArrayList<String> candidatos;\n int i=0;\n int cont_alfa=0;\n int nd=0;\n \n // Se comprueba para cada ni si es mayor que 0, en cuyo caso, se generan\n // los posibles códigos de longitud i que quedan libres y se asignan.\n while (i<n.size()){\n nd=nd*base;\n int cont=n.get(i);\n if (cont>0){\n candidatos=generaCod(i+1,nd);\n int cod=0;\n while (cont>0){\n res.add(alfabeto.getN(cont_alfa), candidatos.get(cod));\n nd++;\n cont_alfa++;\n cod++;\n cont--;\n }\n }\n i++;\n } \n return res;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getCodigoBytes() {\n java.lang.Object ref = codigo_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n codigo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getIdProcuratore() {\n return idProcuratore;\n }",
"public String getCode(){\n\t\treturn code;\n\t}",
"public void setCodiceID(int codiceID) \r\n\t\t{\r\n\t\t\tCodiceID = codiceID;\r\n\t\t}",
"public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}",
"public String getCode()\n {\n return fCode;\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public String getCode() {\r\n return code;\r\n }",
"public abstract void setCod_actividad(java.lang.Long newCod_actividad);",
"public static Produto pesqProdutoCodigo(int codigo) throws SQLException, ProdutoException{\n\t\tPreparedStatement objSQL = \n\t\t\tobjcon.prepareStatement(\"SELECT * FROM TABPRODUTOS WHERE CODIGO = ?\");\n\t\tobjSQL.setInt(1, codigo);\n\t\t// executeQuery, executa o comando de SQL colocado no prepareStatemente\n\t\tResultSet objResp = objSQL.executeQuery();\n\t\tif (objResp.next()) {\n\t\t\treturn new Produto(\n\t\t\t\t\tobjResp.getInt(\"CODIGO\"), \n\t\t\t\t\tobjResp.getString(\"PRODUTO\"), \n\t\t\t\t\tobjResp.getDouble(\"PRECO\"), \n\t\t\t\t\tobjResp.getDate(\"DATAPRECO\"));\n\t\t} else {\n\t\t\tthrow new ProdutoException(\"Não existe produto para o código.\");\n\t\t}\t\n\t}",
"public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}",
"public Integer getCodigo() {\n return codigo;\n }",
"@Override\n\tpublic Producto buscarIdProducto(Integer codigo) {\n\t\treturn productoDao.editarProducto(codigo);\n\t}",
"public abstract java.lang.Long getCod_actividad();",
"public String getCode() {\n return code;\n }",
"public String getCode() {\n return code;\n }"
] | [
"0.6704376",
"0.6575962",
"0.6568609",
"0.64745015",
"0.64726925",
"0.6428484",
"0.64023036",
"0.6380395",
"0.6304142",
"0.62987435",
"0.62190443",
"0.61882114",
"0.6140887",
"0.6133613",
"0.6108045",
"0.60632604",
"0.6045311",
"0.60411954",
"0.6041159",
"0.60369664",
"0.60330683",
"0.60146636",
"0.6005305",
"0.59749866",
"0.5965251",
"0.59586126",
"0.5957058",
"0.5943782",
"0.5939322",
"0.59287757",
"0.5923164",
"0.5916417",
"0.5908852",
"0.5903402",
"0.58702785",
"0.58702785",
"0.58446753",
"0.5844427",
"0.5842034",
"0.58227926",
"0.5804812",
"0.57890517",
"0.5787827",
"0.5787827",
"0.5783057",
"0.5777986",
"0.57730865",
"0.57684106",
"0.5765243",
"0.5758121",
"0.5745204",
"0.57442236",
"0.5738742",
"0.5733415",
"0.572535",
"0.5725082",
"0.57233596",
"0.572116",
"0.572116",
"0.5697789",
"0.5684027",
"0.56781083",
"0.56781083",
"0.56703174",
"0.56703174",
"0.56703174",
"0.56703174",
"0.56693196",
"0.56683",
"0.5653",
"0.56498146",
"0.5648597",
"0.5644596",
"0.5644596",
"0.5644596",
"0.5644596",
"0.56410545",
"0.5634886",
"0.5630615",
"0.56252575",
"0.56241345",
"0.56234825",
"0.5623065",
"0.56139964",
"0.5613806",
"0.5607803",
"0.5607803",
"0.5607803",
"0.5607803",
"0.5607803",
"0.5607803",
"0.5607803",
"0.5605387",
"0.56025213",
"0.5597706",
"0.558882",
"0.55882436",
"0.5584069",
"0.55837405",
"0.55837405"
] | 0.6501243 | 3 |
Modifica la categoria del prodotto. | public void setCategoria(String categoria) {
this.categoria = categoria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }",
"public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }",
"public void setCategory (String mode) { category = mode; }",
"private void setcategoriaPrincipal(String categoriaPrincipal2) {\n\t\t\n\t}",
"public void setCategory(String newCategory) {\n category = newCategory;\n }",
"String getCategoria();",
"public Categorie updateCategorie(Categorie c);",
"public Categorie addCategorie(Categorie c);",
"private void setEntropiaP(Map<String, Integer> categoriasPresenca, int totalPresenca) {\n\t\t\n\t}",
"public void newCategory() {\n btNewCategory().push();\n }",
"public AlterarCategoria() {\n initComponents();\n }",
"private void setCategorias( int botonInicial, int botonFinal)\n {\n if (lc != null) {\n \n ImageIcon img; int i, j;\n for (i = botonInicial; i < botonFinal; i++) \n {\n j = i % NUMCATEGORIAS;\n categorias[j].setVisible(true);\n img = new ImageIcon(lc.get(i).getImagenEnBuffer());\n categorias[j].setIcon(new ImageIcon(img.getImage().getScaledInstance(AnchoCategoriaBoton,\n this.AltoCategoriaBoton, java.awt.Image.SCALE_DEFAULT)));\n \n categoria[j] = lc.get(i);\n }\n i = botonFinal - botonInicial;\n for (; i < NUMCATEGORIAS; i++) {\n categorias[i].setVisible(false);\n }\n }\n }",
"public controladorCategorias() {\r\n }",
"Categorie propositionValidee(Long id) throws PropositionNotFoundException;",
"public void changeCategory(int index){\n if(user[index].getAmountCategory()>=3 && user[index].getAmountCategory()<=10){\n user[index].setCategoryUser(user[index].newCategory(\"littleContributor\"));\n }\n else if(user[index].getAmountCategory()>10 && user[index].getAmountCategory()<30){\n user[index].setCategoryUser(user[index].newCategory(\"mildContributor\"));\n }\n else if(user[index].getAmountCategory() == 30){\n user[index].setCategoryUser(user[index].newCategory(\"starContributor\"));\n }\n }",
"public void selectCategory() {\n\t\t\r\n\t}",
"public void setCategoriaDescripcion(String descripcion);",
"@Override\n\t@Transactional\n\n\tpublic void initCategorie() {\n\t\tStream.of(\"Action\",\"Drame\",\"Guerre\",\"Fantastique\",\"Science-fiction\",\"Thriller\").forEach(cat->{\n\t\t\tCategorie categorie=new Categorie();\n\t\t\tcategorie.setName(cat);\n\t\t\tcategorieRepository.save(categorie);\n\t\t});\n\t}",
"public void changeCategory(Category newCategory) {\n this.category = newCategory;\n }",
"@Override\r\n\tpublic String getCategoria() {\n\t\treturn this.categoria;\r\n\t}",
"void setStatCategory (String statistic);",
"@Override\n\tpublic boolean add(ProductCategory procate) {\n\t\n\t\treturn false;\n\t}",
"private String siguienteCategoria(String nombreActual) {\n\t\tswitch (nombreActual) {\n\t\tcase \"NOVATO\":\n\t\t\treturn \"CALIFICADO\";\n\t\tcase \"CALIFICADO\":\n\t\t\treturn \"EXPERTO\";\n\t\tcase \"EXPERTO\":\n\t\t\treturn \"MASTER\";\n\t\tdefault:\n\t\t\treturn \"MASTER\";\n\t\t}\n\t}",
"@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}",
"public Categoria() {\n initComponents();\n desabilitarComponentes();\n carregarTabela();\n }",
"public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}",
"public static void afficherProduitParCategories(HttpServletRequest request,String categorie) {\n\t\trequest.setAttribute(\"produits\", ManagerProduit.getByCategorie(categorie));\n\t}",
"public void chooseCategory(String category) {\n for (Category c : categories) {\n if (c.getName().equals(category)) {\n if (c.isActive()) {\n c.setInActive();\n } else {\n c.setActive();\n }\n }\n }\n for (int i = 0; i < categories.size(); i++) {\n System.out.println(categories.get(i).getName());\n System.out.println(categories.get(i).isActive());\n }\n }",
"public void setCategory(String category);",
"public void setCategory(Category cat) {\n this.category = cat;\n }",
"private static void menuCategoria() throws Exception {//Inicio menuCategoria\r\n byte opcao;\r\n boolean encerrarPrograma = false;\r\n Integer[] listaC = null;\r\n do {\r\n System.out.println(\r\n \"\\n\\t*** MENU DE CATEGORIAS ***\\n\"\r\n + \"0 - Adicionar categoria\\n\"\r\n + \"1 - Remover categoria\\n\"\r\n + \"2 - Listar categorias cadastradas\\n\"\r\n + \"3 - Listar produtos cadastrados em uma categoria\\n\"\r\n + \"4 - Sair\"\r\n );\r\n System.out.print(\"Digite a opção: \");\r\n opcao = read.nextByte();\r\n System.out.println();\r\n switch (opcao) {\r\n case 0:\r\n adicionarCategoria();\r\n break;\r\n case 1:\r\n removerCategoria();\r\n break;\r\n case 2:\r\n listaC = listaCategoriasCadastradas();\r\n if (listaC == null) {\r\n System.out.println(\"Não ha categorias cadastradas!\");\r\n }\r\n break;\r\n case 3:\r\n consultaCategoria();\r\n break;\r\n case 4:\r\n encerrarPrograma = true;\r\n break;\r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n } while (!encerrarPrograma);\r\n }",
"private void setEntropiaF(Map<String, Integer> categoriasFrequencia, int totalFrequencia) {\n\t\t\n\t}",
"public void randomizeCategory() {\n this.group = (int) (3*Math.random()+1);\n }",
"@Override\n\tpublic boolean update(ProductCategory procate) {\n\t\treturn false;\n\t}",
"private void checkCategoryPreference() {\n SharedPreferences sharedPrefs = getSharedPreferences(Constants.MAIN_PREFS, Context.MODE_PRIVATE);\n String json = sharedPrefs.getString(Constants.CATEGORY_ARRAY, null);\n Type type = new TypeToken<ArrayList<Category>>(){}.getType();\n ArrayList<Category> categories = new Gson().fromJson(json, type);\n if(categories == null) {\n categories = new ArrayList<>();\n Category uncategorized = new Category(Constants.CATEGORY_UNCATEGORIZED, Constants.CYAN);\n categories.add(uncategorized);\n String jsonCat = new Gson().toJson(categories);\n SharedPreferences.Editor prefsEditor = sharedPrefs.edit();\n prefsEditor.putString(Constants.CATEGORY_ARRAY, jsonCat);\n prefsEditor.apply();\n }\n }",
"private void populaSexoCat()\n {\n sexoCatDAO.insert(new SexoCat(\"Masculino\"));\n sexoCatDAO.insert(new SexoCat(\"Feminino\"));\n sexoCatDAO.insert(new SexoCat(\"Todos\"));\n }",
"public Set<String> getCategory(){return category;}",
"private Object getAnomizedCategory() {\r\n\tString categorie = (String) record.get(\"categorie\");\r\n\tif (categorie != null) {\r\n\t switch (categorie) {\r\n\t case \"AD\":\r\n\t case \"CO\":\r\n\t case \"FI\":\r\n\t case \"IBL\":\r\n\t case \"KI\":\r\n\t case \"KL\":\r\n\t case \"VO\":\r\n\t\tbreak;\r\n\t default:\r\n\t\tcategorie = null;\r\n\t\tbreak;\r\n\t }\r\n\t}\r\n\r\n\treturn categorie;\r\n }",
"public void setIdTipoCategoria( Integer idTipoCategoria ) {\n this.idTipoCategoria = idTipoCategoria ;\n }",
"public int getCategory(){\n\t\treturn this.cat;\n\t}",
"private void gestionarCategoria(OperacionForm opForm, Operacion op){\r\n\t\r\n\t\t//MODIFICACION DE OPERACION\r\n\t\tif (opForm.getId()!=null){\r\n\t\t\t//Obtengo el usuario logado\r\n\t\t\tUser userLogado = userService.getUserById(((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getIdUser());\r\n\r\n\t\t\t//Obtengo la operacion a modificar con todas las categorizaciones\r\n\t\t\tOperacion opAntAllCat=operacionDao.findById(opForm.getId());\r\n\t\t\t\r\n\t\t\t//Obtengo la categorizacion anterior del usuario\r\n\t\t\tCategoria catAntUser=categoriaDao.findCategorizacionUsuarioByIdOperacion(opForm.getId(), userLogado.getIdUser());\r\n\r\n\t\t\t\r\n\t\t\t//Si antes no tenia y ahora si tiene\r\n\t\t\tif (catAntUser==null){\r\n\t\t\t\tif (opForm.getIdCategoria()!=null)\r\n\t\t\t\t\tcrearCategorizacion(opForm.getIdCategoria(), op);\r\n\t\t\t}\r\n\t\t\t//Si antes tenia categoria\r\n\t\t\telse{\r\n\t\t\t\t//Si ahora no tiene categoria\r\n\t\t\t\tif (opForm.getIdCategoria()==null)\r\n\t\t\t\t\tborrarCategorizacionAnterior(catAntUser, opAntAllCat);\t\t\t\t\r\n\t\t\t\t//Si ahora tiene una categoria diferente que antes\r\n\t\t\t\telse if(opForm.getIdCategoria().compareTo(catAntUser.getIdCategoria())!=0){\r\n\t\t\t\t\tborrarCategorizacionAnterior(catAntUser, opAntAllCat);\r\n\t\t\t\t\tcrearCategorizacion(opForm.getIdCategoria(), op);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//CREAR NUEVA OPERACION\r\n\t\telse{\r\n\t\t\t//Si el usuario ha seleccionado una categoria para la operacion \r\n\t\t\tif (opForm.getIdCategoria()!=null)\r\n\t\t\t\tcrearCategorizacion(opForm.getIdCategoria(), op);\r\n\t\t}\r\n\t}",
"int getProblemCategory();",
"private void populaNoticiaCat()\n {\n NoticiaCat n1 = new NoticiaCat(\"Avisos\", \"Help\");\n noticiaCatDAO.insert(n1);\n NoticiaCat n2 = new NoticiaCat(\"Noticias\", \"Document Notes\");\n noticiaCatDAO.insert(n2);\n NoticiaCat n3 = new NoticiaCat(\"Dicas\", \"Tag\");\n noticiaCatDAO.insert(n3);\n }",
"private void populaObjetivoCat()\n {\n objetivoCatDAO.insert(new ObjetivoCat(\"Hipertrofia\", \"weight\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Saude\", \"apple\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Emagrecer\", \"gloves\"));\n }",
"private void checkCategoriaInDB(DB db ){\n\t\tString[] catDef = {\"Ambiente\", \"Animali\", \"Arte e Cultura\",\"Elettronica e Tecnologia\", \"Sport\", \"Svago\"};\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tfor(String nomeCat : catDef) {\n\t\t\tlong hashcode = (long)nomeCat.hashCode();\n\t\t\tif(!categorie.containsKey(hashcode))\n\t\t\t\tcategorie.put(hashcode, new Categoria(null ,nomeCat));\n\t\t}\n\t}",
"@Test\n public void putAlterarCategoriaProdutoTest() throws ApiException {\n Integer productCategoryCode = null;\n String product = null;\n api.putAlterarCategoriaProduto(productCategoryCode, product);\n\n // TODO: test validations\n }",
"void updateCategory(String category){}",
"private Category classify() {\n Category category = null;\n if (name != null) {\n if (name.contains(\"potato\") || name.contains(\"apple\")) {\n category = Category.FOOD;\n } else if (name.contains(\"cloths\") || name.contains(\"pants\") || name.contains(\"shirt\")) {\n category = Category.CLOTHING;\n }\n }\n return category;\n }",
"@Test\n public void typeCategoriesTest() {\n final Category cardio = Category.CARDIO;\n final Category core = Category.CORE;\n final Category fullBody = Category.FULL_BODY;\n final Type endurance = Type.ENDURANCE;\n\n final List<Category> myCategories = new ArrayList<>();\n\n myCategories.add(cardio);\n myCategories.add(core);\n assertEquals(\"Categories of Endurance Type\", myCategories, endurance.getCategories());\n\n myCategories.add(fullBody);\n assertNotEquals(\"Not all the Categories are of Endurance Type\", myCategories, endurance.getCategories());\n\n }",
"private static void consultaCategoria() throws Exception {\r\n boolean erro;\r\n int idCategoria;\r\n String nomeCategoria;\r\n ArrayList<Produto> lista;\r\n System.out.println(\"\\t** Listar produtos de uma categoria **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID da categoria a ser consultada: \");\r\n idCategoria = read.nextInt();\r\n if (idCategoria <= 0) {\r\n erro = true;\r\n System.out.println(\"ID Inválida! \");\r\n }\r\n System.out.println();\r\n } while (erro);\r\n lista = listProdutosPorCategoria(idCategoria);\r\n if (lista != null && !lista.isEmpty()) {\r\n nomeCategoria = getNomeCategoria(idCategoria - 1);\r\n System.out.println(\"Produtos pertencentes a '\" + nomeCategoria + \"'\");\r\n for (Produto p : lista) {\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n + \"\\nCategoria: \" + nomeCategoria\r\n );\r\n }\r\n } else {\r\n System.out.println(\"Não ha produtos nessa categoria, ou ela não existe!\");\r\n }\r\n }",
"public String getCategoriaDescripcion();",
"public void llenarComboCategoria() {\n comboCategoria.removeAllItems();\n getIDCategoria();\n comboCategoria.setVisible(true);\n labelCategoria.setVisible(true);\n if (IDCategoria < 0) {\n comboCategoria.setVisible(false);\n comboCategoria.setEditable(false);\n labelCategoria.setVisible(false);\n this.repaint();\n } else {\n try {\n ResultSet resultado = buscador.getResultSet(\"select ID, valor from INSTANCIACATEGORIA where IDTIpoCategoria = \" + IDCategoria + \";\");\n while (resultado.next()) {\n String ID = resultado.getObject(\"ID\").toString();\n String valor = resultado.getObject(\"valor\").toString();\n comboCategoria.addItem(makeObj(valor, Integer.parseInt(ID)));\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n }\n }",
"public Cgg_veh_categoria(){}",
"String getCategory();",
"String getCategory();",
"public String getCategory();",
"@Override\n\tpublic Categoria editarCategoria(Categoria categoria) {\n\t\treturn null;\n\t}",
"public String getCodigoImovelSubCategoria() {\r\n return codigoImovelSubCategoria;\r\n }",
"public Categorias() {\n this.id = 0;\n this.categoria = \"\";\n }",
"private static void removerCategoria() throws Exception {\r\n int idCategoria;\r\n int idCategoriaNew;\r\n boolean erro, valido, result = false;\r\n Integer[] idsValidosC;\r\n ArrayList<Produto> lista;\r\n String nomeCategoria = null;\r\n System.out.println(\"\\t** Remover categoria **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID da categoria a ser removida: \");\r\n idCategoria = read.nextInt();\r\n if (idCategoria > 0) {\r\n nomeCategoria = getNomeCategoria(idCategoria - 1);\r\n if (nomeCategoria == null) {\r\n erro = true;\r\n System.out.println(\"Categoria inexistente!\");\r\n }\r\n } else {\r\n erro = true;\r\n System.out.println(\"ID Inválida!\");\r\n }\r\n System.out.println();\r\n } while (erro);\r\n\r\n do {\r\n erro = false;\r\n System.out.println(\"\\nRemover a categoria '\" + nomeCategoria + \"' ?\");\r\n System.out.print(\"1 - SIM\\n2 - NÂO\\nR: \");\r\n switch (read.nextByte()) {\r\n case 1:\r\n lista = listProdutosPorCategoria(idCategoria);\r\n if (lista.isEmpty()) {\r\n System.out.println(\"Não ha produtos associados a '\" + nomeCategoria + \"', procedendo com remoção...\");\r\n result = arqCategorias.remover(idCategoria - 1);\r\n if (result) {\r\n System.out.println(\"Removido com sucesso!\");\r\n }\r\n } else {\r\n System.out.println(\"\\nExistem produtos nessa categoria!!\");\r\n System.out.println(\r\n \"O que deseja fazer?\\n\"\r\n + \"0 - Apagar todos os produtos pertencentes e a categoria\\n\"\r\n + \"1 - Mudar a categoria dos produtos e remover\\n\"\r\n + \"2 - Cancelar remoção\\n\"\r\n );\r\n do {\r\n erro = false;\r\n System.out.print(\"Opção: \");\r\n switch (read.nextByte()) {//Inicio switch\r\n case 0:\r\n for (Produto p : lista) {\r\n System.out.println(\"Removendo '\" + p.nomeProduto + \"'...\");\r\n result = arqProdutos.remover(p.getID() - 1);\r\n }\r\n System.out.println(\"Excluindo categoria '\" + nomeCategoria + \"'...\");\r\n result = arqCategorias.remover(idCategoria - 1);\r\n System.out.println(\"Concluido exclusão de \" + lista.size() + \" produtos e 1 categoria.\");\r\n lista = null;\r\n break;\r\n case 1:\r\n idsValidosC = listaCategoriasCadastradas();\r\n if (idsValidosC.length == 1) {\r\n System.out.println(\"\\nOperação não é possivel!\\nSo tem uma categoria!\");\r\n Thread.sleep(1000);\r\n } else {\r\n System.out.println(\"\\nProdutos:\");\r\n for (Produto p : lista) {\r\n System.out.println(\r\n \"\\nId: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nMarca: \" + p.marca\r\n );\r\n System.out.print(\"\\nEscolha uma outra categoria para o produto,\\ne digite o ID: \");\r\n do {\r\n valido = false;\r\n idCategoriaNew = read.nextInt();\r\n valido = Arrays.asList(idsValidosC).contains(idCategoria);\r\n if (!valido) {\r\n System.out.println(\"Esse ID não é valido!\\nDigite um ID valido: \");\r\n } else if (idCategoriaNew == idCategoria) {\r\n System.out.println(\"Não pode escolher a mesma categoria antiga!\\nDigite um ID valido: \");\r\n valido = false;\r\n }\r\n } while (!valido);\r\n p.idCategoria = idCategoriaNew;\r\n if (arqProdutos.alterar(p.getID(), p)) {\r\n System.out.println(\"Movido com sucesso!\");\r\n } else {\r\n System.out.println(\"Algo de errado aconteceu!\\nNão foi possivel mover!\");\r\n }\r\n }\r\n result = arqCategorias.remover(idCategoria - 1);\r\n }//Fim else\r\n break;\r\n case 2:\r\n System.out.println(\"\\nOperação Cancelada!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpção Inválida!\\n\");\r\n erro = true;\r\n break;\r\n }//Fim switch\r\n } while (erro);\r\n }\r\n break;\r\n case 2:\r\n System.out.println(\"\\nOperação Cancelada!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpção Inválida!\\n\");\r\n erro = true;\r\n break;\r\n }\r\n } while (erro);\r\n }",
"String category();",
"public void addCategory(String type) {\n\t\tif (type.equals(\"Cheese\")) {\n\t\t\taddIngredient(\"Pepperjack\");\n\t\t\taddIngredient(\"Mozzarella\");\n\t\t\taddIngredient(\"Cheddar\");\n\t\t}\n\t\tif (type.equals(\"Sauces\")) {\n\t\t\taddIngredient(\"Mayonnaise\");\n\t\t\taddIngredient(\"Baron Sauce\");\n\t\t\taddIngredient(\"Mustard\"); \n\t\t\taddIngredient(\"Ketchup\");\n\t\t}\n\t\tif (type.equals(\"Veggies\")) {\n\t\t\taddIngredient(\"Pickle\");\n\t\t\taddIngredient(\"Lettuce\");\n\t\t\taddIngredient(\"Tomato\");\n\t\t\taddIngredient(\"Onions\"); \n\t\t\taddIngredient(\"Mushrooms\");\n\t\t}\n\t}",
"Category(int num) {\n this.num = num;\n }",
"boolean isProductCategoryConfigurable(int productCategoryId);",
"public void seleccionarCategoria(String name);",
"public abstract String getCategory();",
"public abstract String getCategory();",
"@Override\r\n\tpublic Categorie updateCategorie(Categorie categorie) {\n\t\treturn cateDao.updateCategorie(categorie);\r\n\t}",
"public void setClassify(Integer classify) {\n this.classify = classify;\n }",
"@Test\n public void categoryFitsTypeTest() {\n final Category cardio = Category.CARDIO;\n final Type endurance = Type.ENDURANCE;\n final Type strength = Type.STRENGTH;\n\n assertEquals(\"Cardio category of Endurance Type\", cardio.getType(), endurance);\n assertNotEquals(\"Cardio category is not of Strength Type\", cardio.getType(), strength);\n }",
"public interface Categoreis {\n void set(int i);\n}",
"void updateCategory(Category category);",
"void updateCategory(Category category);",
"public static Map<Integer, TaxCategory> manitoba() {\n\n\t\t\tHashMap<Integer, TaxCategory> categories = new HashMap<Integer, TaxCategory>();\n\t\t\ttry {\n\t\t\t\tTaxCategory cat1 = new TaxCategory(10.8, 0, 33723);\n\t\t\t\tcategories.put( 1, cat1 );\n\t\t\t\tTaxCategory cat2 = new TaxCategory(12.75, 33723.01, 72885);\n\t\t\t\tcategories.put( 2, cat2 );\n\t\t\t\tTaxCategory cat3 = new TaxCategory(17.4, 72885.01, 100000000);\n\t\t\t\tcategories.put( 3, cat3 );\n\t\t\t} catch( Exception e ) {}\n\n\t\t\treturn categories;\n\t\t}",
"void add(ProductCategory category);",
"public void setCategory(String category){\n this.category = category;\n }",
"public Optional<Produto> cadastroCat(Long idCategoria, @Valid Produto newProduto) {\n\t\treturn null;\n\t}",
"public Collection<Integer> obterCategorias(Integer idConsumoTarifa) throws ErroRepositorioException;",
"public abstract ArrayList<DtPropuesta> listarPropuestasPorCategoria(String nombreCat);",
"public Categoria(String pNombre){\n this.nombre = pNombre;\n }",
"CodeType getCategory();",
"public Collection<ImovelSubcategoria> pesquisarImovelSubcategoria(Imovel imovel) throws ControladorException {\r\n\t\ttry {\r\n\t\t\treturn repositorioImovel.pesquisarImovelSubcategoriasMaxCinco(imovel.getId());\r\n\t\t} catch (ErroRepositorioException ex) {\r\n\t\t\tthrow new ControladorException(\"erro.sistema\", ex);\r\n\t\t}\r\n\t}",
"public final void ruleCategoria() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:213:2: ( ( ( rule__Categoria__Group__0 ) ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:214:1: ( ( rule__Categoria__Group__0 ) )\n {\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:214:1: ( ( rule__Categoria__Group__0 ) )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:215:1: ( rule__Categoria__Group__0 )\n {\n before(grammarAccess.getCategoriaAccess().getGroup()); \n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:216:1: ( rule__Categoria__Group__0 )\n // ../org.xtext.catalogo.ui/src-gen/org/xtext/ui/contentassist/antlr/internal/InternalCatalogo.g:216:2: rule__Categoria__Group__0\n {\n pushFollow(FollowSets000.FOLLOW_rule__Categoria__Group__0_in_ruleCategoria394);\n rule__Categoria__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getCategoriaAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void setCodigoImovelSubCategoria(String codigoImovelSubCategoria) {\r\n this.codigoImovelSubCategoria = codigoImovelSubCategoria;\r\n }",
"private void triggerValiderCategorie() {\n JSONObject categorie = new JSONObject();\n String categorie_nom = this.editTextCategorie.getText().toString();\n try {\n categorie.put(Metier.CLE_CATEGORIE_NOM, categorie_nom);\n categorie.put(Metier.CLE_PRODUIT_NOM, \"\");\n for (int i = 0; i < this.listViewChampAdapter.getCount(); i++) {\n JSONObject champ = this.listViewChampAdapter.getItem(i);\n categorie.put(champ.optString(Metier.CLE_CHAMP_NOM), \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n insererCategorie(categorie);\n }",
"public void setCategory(Integer category) {\n this.category = category;\n }",
"public void setClassification(String classification) {\n this.classification = classification;\n }",
"public void setCategory(String cat) {\t//TODO\n\t\tcategory = cat;\n\t}",
"public void setCategoriaId(Long id);",
"private static void adicionarCategoria() throws Exception {\r\n String nomeCategoria;\r\n boolean erro;\r\n boolean outro;\r\n int id;\r\n System.out.println(\"\\t** Adicionar categoria **\\n\");\r\n do {\r\n outro = false;\r\n System.out.print(\"Digite o nome da categoria: \");\r\n nomeCategoria = read.nextLine();\r\n nomeCategoria = read.nextLine();\r\n do {\r\n erro = false;\r\n System.out.println(\"\\nAdicionar nova categoria '\" + nomeCategoria + \"' ?\");\r\n System.out.print(\"1 - SIM\\n2 - NÂO\\nR: \");\r\n switch (read.nextByte()) {\r\n case 1:\r\n id = arqCategorias.inserir(new Categoria(nomeCategoria));\r\n System.out.println(\"\\nCategoria criada com o ID: \" + id);\r\n System.out.println(\"Operacao concluida com sucesso!\");\r\n Thread.sleep(1000);\r\n System.out.println(\"\\nDeseja criar outra categoria ?\");\r\n System.out.print(\"1 - SIM\\n2 - NÂO\\nR: \");\r\n if (read.nextByte() == 1) {\r\n outro = true;\r\n }\r\n break;\r\n case 2:\r\n System.out.println(\"\\nNova categoria não foi criada!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpção Inválida!\\n\");\r\n erro = true;\r\n break;\r\n }\r\n } while (erro);\r\n } while (outro);\r\n }",
"public Integer getCategory() {\n return category;\n }",
"public void assignAddingCategory(final boolean val) {\n addingCategory = val;\n }",
"public void setCategory(String newCategory) {\n\t\t_pcs.firePropertyChange(\"category\", this.category, newCategory); //$NON-NLS-1$\n\t\tthis.category = newCategory;\n\t}",
"public void setCategory(Category c) {\n this.category = c;\n }",
"public static List<Categorias> obtenerCategorias(){\n List<Categorias> categorias = new ArrayList<>();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro\");\n \n ResultSet informacion = c.getResultSet();\n \n try {\n while (informacion.next())\n categorias.add(new Categorias(informacion));\n } catch (Exception error) {}\n \n c.desconectar();\n \n return categorias;\n }",
"public void persistCvcategory(Cvcategory cvcategory);",
"@Override\n public String getCategory() {\n return category;\n }",
"public void actualizarCategoria(CategoriaDTO categoria);",
"@Override\n\tpublic Categoria crearCategoria(String nombreCategoria, String descripcionCategoria) {\n\t\treturn null;\n\t}",
"private boolean tieneCategorias(){\n String valor = \"\";\n try {\n ResultSet resultado = buscador.getResultSet(\"select conCategorias from JERARQUIA where correlativo = '\" + IDJerarquia + \"'\");\n if (resultado.next()) {\n valor += resultado.getObject(\"conCategorias\").toString(); //IDRaiz\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n if(valor.equalsIgnoreCase(\"true\")) //Si utiliza categorias\n return true;\n return false;\n }"
] | [
"0.6212091",
"0.61260223",
"0.608503",
"0.6064097",
"0.5963888",
"0.59389865",
"0.5903369",
"0.58779913",
"0.58521026",
"0.58376515",
"0.5834768",
"0.5792575",
"0.5788437",
"0.5749611",
"0.5748075",
"0.5739613",
"0.573656",
"0.5716868",
"0.56728214",
"0.5663878",
"0.56537724",
"0.5651404",
"0.5650744",
"0.56313586",
"0.5628182",
"0.56255263",
"0.56140095",
"0.56033415",
"0.557415",
"0.55608857",
"0.5555312",
"0.55386746",
"0.5523196",
"0.54883",
"0.5487341",
"0.5471007",
"0.545652",
"0.5455925",
"0.5452237",
"0.5449711",
"0.5446146",
"0.54434884",
"0.5443123",
"0.5431174",
"0.5422501",
"0.5419996",
"0.54075813",
"0.539556",
"0.5388929",
"0.5385704",
"0.53792024",
"0.53782314",
"0.5369695",
"0.53600335",
"0.53600335",
"0.53474766",
"0.5324885",
"0.5320695",
"0.53093857",
"0.5300373",
"0.5296238",
"0.529443",
"0.529022",
"0.5290046",
"0.5286928",
"0.52812874",
"0.52812874",
"0.52805644",
"0.52729344",
"0.5271113",
"0.526849",
"0.52573234",
"0.52573234",
"0.525216",
"0.52394974",
"0.52366257",
"0.5223088",
"0.5221822",
"0.52198964",
"0.52162886",
"0.52106804",
"0.5208537",
"0.5204698",
"0.51998323",
"0.51987404",
"0.51976395",
"0.51973945",
"0.51969135",
"0.5196285",
"0.519373",
"0.51843643",
"0.518303",
"0.5179396",
"0.5178183",
"0.5177792",
"0.51776767",
"0.517678",
"0.51731926",
"0.51716435",
"0.51698273"
] | 0.60039705 | 4 |
Ritorna il prezzo del prodotto. | public float getPrezzo() {
return prezzo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void remplirPrestaraireData() {\n\t}",
"public PregledPoruka() {\n preuzmiMape();\n preuzmiPoruke();\n }",
"public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"public ListaPrecios() {\n initComponents();\n listaListaPrecio();\n }",
"public String getProdotto() {\r\n\t\treturn prodotto;\r\n\t}",
"public void setPrezzo (float prezzo) {\r\n\t\tthis.prezzo=prezzo;\r\n\t}",
"public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }",
"@Override\r\n\tpublic double getPrezzo() {\n\t\treturn prezzo;\r\n\t}",
"public void setPreco(double preco) {\n\t\tthis.preco = preco;\n\t}",
"private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }",
"public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}",
"public double getPreco(){\n return pagamento.getPreco();\n }",
"public Agnello prelevaPecoraNera() {\n\t\tfor (int i = 0; i < pecore.size(); i++) {\n\t\t\tif (pecore.get(i) instanceof PecoraNera) {\n\t\t\t\tPecoraNera pecoraNera = (PecoraNera) pecore.remove(i);\n\t\t\t\treturn pecoraNera;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\n\t}",
"public double getPreco() {\n\t\treturn preco;\n\t}",
"public int getIdPrestatario() {\n return idPrestatario;\n }",
"public String getPrecoProduto() {\r\n\t\treturn precoProduto;\r\n\t}",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"public double getPreco() {\n\t\treturn this.preco;\n\t}",
"public void prestamoLibro(libro lib1)\n {\n System.out.println(\"Bienvenido al sistema de prestamos\");\n System.out.println(\"El libro que desea prestar es: \");\n System.out.println(lib1);\n System.out.println(\"Realizaremos la transaccion!\");\n lib1.setDispoLibro(false);\n System.out.println(\"Transaccion realizada!! \");\n }",
"public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}",
"private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void obrisiPoljePretraga() {\n\t\ttfPretraga.setText(\"\");\r\n\t}",
"public void aggiungiPiatto(String nome_piatto, double prezzo_piatto, int porzioni) {\n\t\tPiatto nuovo_piatto= new Piatto(nome_piatto,prezzo_piatto, porzioni);\n\t\tquantita.add(nuovo_piatto);\n\t\tquantita.sort();\n\t}",
"public BigDecimal premiacaoAberturaProduto(Produto p) {\n\t\tfor (PoliticaVendaConsignacaoTipoVendedorProduto politica : tipoVendedor.getPoliticasVCTVP()) {\n\t\t\tif (p.equals(politica.getProduto())) {\n\t\t\t\treturn politica.getAberturaPremiacao();\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}",
"public void setPreco(Float preco) { this.preco = preco; }",
"public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}",
"public synchronized void ProvjeriPreuzimanje() {\n dopustenoPreuzimanje = true;\n if (dopustenoPreuzimanje) {\n SveFunkcijeDretve();\n } else {\n //sleep\n }\n }",
"public void setPrenotazione(Set<Prenotazione> aPrenotazione) {\n prenotazione = aPrenotazione;\n }",
"public Float getPreco() { return this.preco; }",
"public void setPrecioc(int p){\n this.precioc=p;\n \n }",
"public Set<Prenotazione> getPrenotazione() {\n return prenotazione;\n }",
"public Prestamo getPrestamo() {\r\n return prestamo;\r\n }",
"public Prova() {}",
"public void setPrecoProduto(String precoProduto) {\r\n\t\tthis.precoProduto = precoProduto;\r\n\t}",
"private void controladorNuevoProyecto(Controlador controlador){\n this.contCargarImagen = controlador.getCargarImagen();\n nuevoProyecto.setControlFoto(contCargarImagen);\n\n this.contNuevoProyecto = controlador.getNuevoProyecto();\n nuevoProyecto.setControlProponerProyecto(contNuevoProyecto);\n }",
"public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}",
"public void setModeloPrecios(ModeloTablaPrecioAcciones modeloPrecios) {\n\t\tthis.modeloPrecios = modeloPrecios;\n\t}",
"private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}",
"public double getPreco();",
"public double getPreco();",
"@Override\n public float calculaPreu(PreuTipusHabitacio p) {\n return p.getPreu() * this.perc;\n }",
"@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}",
"public String prenda() {\r\n\t\tif(this.getColorSecundario()==null)\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario().toString();\r\n\t\telse\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario()+\" y \"+this.getColorSecundario().toString();\r\n\r\n\t}",
"public Plato(){\n\t\t\n\t}",
"private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}",
"public Produto(String nome, String descricao, double preco, String tipo) {\n\t\tthis.nome = nome;\n\t\tthis.descricao = descricao;\n\t\tthis.preco = preco;\n\t\tthis.tipo = tipo;\n\t}",
"public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }",
"public Produto() {}",
"public void pretraziPoslovneKorisnike() throws BazaPodatakaException {\r\n\t\tString naziv = nazivTF.getText().toLowerCase();\r\n\t\tString web = webTF.getText().toLowerCase();\r\n\t\tString email = emailTF.getText().toLowerCase();\r\n\t\tString telefon = telefonTF.getText();\r\n\r\n\t\tList<PoslovniKorisnik> listaKorisnika = BazaPodataka.dohvatiPoslovnogKorisnikaPremaKriterijima(email, telefon,\r\n\t\t\t\tnaziv, web);\r\n\t\ttablicaPoslovnihKorisnika.setItems(FXCollections.observableArrayList(listaKorisnika));\r\n\r\n\t}",
"@Override\n\tpublic void pausaParaComer() {\n\n\t}",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"public String getProfi() {\r\n\t\treturn profi;\r\n\t}",
"protected String getAbreviaturaProceso(Constantes.PROCESOS proc) throws Exception{\n\t\treturn getParametro(proc.getCodValor());\r\n\t}",
"private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(\"punkty_poziomu\"));\n zmienne_poziomu(poziom);\n }",
"private void aktualisierePreisanzeige(Set<Platz> plaetze)\r\n\t{\r\n\r\n\t\tif (istVerkaufenMoeglich(plaetze))\r\n\t\t{\r\n\t\t\tGeldbetrag preis = _vorstellung.getPreisFuerPlaetze(plaetze);\r\n\t\t\t_ui.getPreisLabel().setText(\"Gesamtpreis: \" + preis.toString() + \" €\");\r\n\t\t\t_preisFuerAuswahl = preis;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t_ui.getPreisLabel().setText(\"Gesamtpreis:\");\r\n\t\t}\r\n\t}",
"public int getDatossolicitudBfmarcaPreaprobado() {\n return datossolicitudBfmarcaPreaprobado;\n }",
"public Agnello prelevaAgnello() {\n\t\tfor (int i=0; i<pecore.size(); i++)\n\t\t\tif (!(pecore.get(i) instanceof PecoraAdulta)\n\t\t\t\t\t&& !(pecore.get(i) instanceof PecoraNera)) {\n\t\t\t\tnumeroAgelli--;\n\t\t\t\treturn pecore.remove(i);\n\t\t\t}\n\t\treturn null;\n\t}",
"public ModeloTablaPrecioAcciones getModeloPrecios() {\n\t\treturn modeloPrecios;\n\t}",
"public String getPrenom() {\r\n return prenom;\r\n }",
"@Override\n\tpublic void recreo() {\n\n\t}",
"public ClsPrestatario(int idPrestatario,String razonSocial, String DescDir, String ruc, boolean estadoPs) {\n this.idPrestatario = idPrestatario;\n this.razonSocial = razonSocial;\n this.DescDir = DescDir;\n this.ruc = ruc;\n this.estadoPs = estadoPs;\n }",
"public ordenProduccion() {\r\n initComponents();\r\n }",
"public Produto(String nome, String descricao, double preco, String tipo, double precoTotal) {\n\t\tthis.nome = nome;\n\t\tthis.descricao = descricao;\n\t\tthis.preco = preco;\n\t\tthis.tipo = tipo;\n\t\tthis.precoTotal = precoTotal;\n\t}",
"public Prestamo() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }",
"private void accederpro() {\n\t\tVprosesor prof= new Vprosesor ();\n\t\t\n\t\tControladorprofesor b = new Controladorprofesor(prof);\n\t\tprof.setControladorprofesor(b);\n\t\tprof.setVisible(true);\n\t\tvb.dispose();\n\t\t\n\t}",
"public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }",
"public void reinicio() {\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n iScore = 0; // se reinicia el score\n iVidas = 3; // se reinicia la cantidad de vidas\n // La direccion del proyectil sera para arriba\n bDireccionY = false;\n // la direccion del proyectil sera al contrario de donde iba\n bDireccionX = !bDireccionX;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }",
"PRE createPRE();",
"public void realiserAcahatProduit() {\n\t\t\n\t}",
"public Agnello prelevaMontone() {\n\t\tfor (int i=0; i<pecore.size(); i++)\n\t\t\tif ((pecore.get(i) instanceof PecoraAdulta)\n\t\t\t\t\t&& (((PecoraAdulta) pecore.get(i)).isMaschio())) {\n\t\t\t\tnumMontoni--;\n\t\t\t\treturn pecore.remove(i);\n\t\t\t}\n\t\treturn null;\n\t}",
"public String getPrenom() {\n return prenom;\n }",
"public void setPrezzoTotale(float prezzoTotale) {\n this.prezzoTotale = prezzoTotale;\n }",
"public void setPrecio(int precio) {\r\n\t\tthis.precio = precio;\r\n\t}",
"public ConsultaMassivaCapitoloEntrataPrevisioneModel() {\n\t\tsuper();\n\t\tsetTitolo(\"Consulta Capitolo Entrata Previsione (Massivo)\");\n\t}",
"private void resetProp(){\n proposition.clear();\n for (int i = 0; i<tailleCombinaison; i++) {\n proposition.add(\"-1\");\n }\n }",
"public void setPrecio(float precio) {\r\n this.precio = precio;\r\n }",
"public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }",
"public List<UserProfile> getProfiliGestiti() {\r\n\t\tList<UserProfile> profili = getProfili();\r\n\t\t// siccome tiro su i profili ordinati per id,\r\n\t\t// so per certo che il primo � l'amministratore\r\n\t\t//profili.remove(0);\r\n\t\treturn profili;\r\n\t}",
"public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }",
"public void aumentarReproducciones() {\n\t\treproducciones++;\n\t}",
"public void imprimir() {\r\n NodoPila reco=raiz;\r\n System.out.println(\"Listado de todos los elementos de la pila:\");\r\n while (reco!=null) {\r\n System.out.print(reco.dato+\" \");\r\n reco=reco.sig;\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }",
"public BigDecimal getPreis() {\n\t\treturn this.preis;\n\t}",
"private void cargarPreescripcionMedica() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(\"ocultaValor\", \"\");\r\n\t\tparametros.put(\"admision\", admision_seleccionada);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false, \"/pages/receta_rips.zul\",\r\n\t\t\t\t\"PRESCRIPCION MEDICA\", parametros);\r\n\t}",
"public String getPriInicio () {\n return PriInicio;\n }",
"private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }",
"public void VaciarPila()\n {\n this.tope = 0;\n }",
"@Override\r\n\tprotected void onPreLoadData() throws Exception {\n\r\n\t\tList<Linea> listaLinee = new LineaAPI().lista(getEmfShared(), getCurrentUser());\r\n\t\tlinee = SelectItemConverter.convert(listaLinee);\r\n\r\n\t\tlong idRinnovo = getParamObjectAsLong(\"idRinnovo\");\r\n\t\tif (idRinnovo > 0) {\r\n\t\t\telemento = new ContrattoAPI().rinnovoPrepara(getEmfShared(), getCurrentUser(), idRinnovo);\r\n\t\t} else {\r\n\t\t\taddErrorMessage(\"Impossibile trovare il contratto da rinnovare.\");\r\n\t\t}\r\n\r\n\t}",
"public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}",
"public List<Prodotto> getListaProdotti() {\n\t\treturn Shop.getInstance().getProdotti();\n\t}",
"public boolean prestamo(){\n boolean prestado = true;\n if (cantPres < cantLibro) {\n cantPres++;\n } else {\n prestado = false;\n }\n return prestado;\n }",
"public Boolean gorbiernoConPrestamos() {\n if (super.getMundo().getGobierno().getPrestamos().size() > 0)\n return true;\n return false;\n }",
"public void resetProcesoCognitivo()\r\n {\r\n this.procesoCognitivo = null;\r\n }",
"public void setPrecio(double precio) {\n\t\tthis.precio = precio;\n\t}",
"public void aumentarReproducidas() {\n\t\tsuper.aumentarReproducidas();\n\n\t}",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"public APropos() {\r\n\t\tpanap.setBackground(Color.LIGHT_GRAY);\r\n\r\n\t\t// mise en forme du texte dans le JTextPane\r\n\t\tStyledDocument doc = zoneAPropos.getStyledDocument();\r\n\t\tMutableAttributeSet centrer = new SimpleAttributeSet();\r\n\t\tStyleConstants.setAlignment(centrer, StyleConstants.ALIGN_CENTER);\r\n\t\tdoc.setParagraphAttributes(0, 0, centrer, false);\r\n\r\n\t\t// mise en place du texte dans le JTextPane\r\n\t\tzoneAPropos.setText(\"Calculatrice en NPI réalisée par :\\n \\nCamille SAMAIN\\nEMACS 166\\nEcole des Mines d'Alès\");\r\n\t\tzoneAPropos.setEditable(false);\r\n\r\n\t\t// mise en forme JTextPane\r\n\t\tzoneAPropos.setBackground(Color.LIGHT_GRAY);\r\n\t\tzoneAPropos.setForeground(Color.DARK_GRAY);\r\n\t\tzoneAPropos.setFont(police);\r\n\r\n\t\t// ajout du JtextPane dans le panel\r\n\t\tpanap.add(zoneAPropos);\r\n\t}",
"public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}",
"private RicercaSinteticaCapitoloEPrev creaUtilityRicercaSinteticaCapitoloEPrev() {\n\t\tRicercaSinteticaCapitoloEPrev utility = new RicercaSinteticaCapitoloEPrev();\n\t\t\n\t\tutility.setAnnoEsercizio(getAnnoEsercizioInt());\n\t\tutility.setAnnoCapitolo(getAnnoCapitoloDaConsultare());\n\t\tutility.setNumeroCapitolo(getNumeroCapitoloDaConsultare());\n\t\tutility.setNumeroArticolo(getNumeroArticoloDaConsultare());\n\t\t\n\t\treturn utility;\n\t}"
] | [
"0.6509527",
"0.6468683",
"0.646517",
"0.6383112",
"0.6336287",
"0.633564",
"0.6318126",
"0.6296358",
"0.6244152",
"0.6235288",
"0.6218426",
"0.6213991",
"0.6203856",
"0.61997336",
"0.618898",
"0.6187196",
"0.6179568",
"0.6168961",
"0.6159088",
"0.6099377",
"0.609895",
"0.6085319",
"0.60777193",
"0.6074105",
"0.605788",
"0.60361236",
"0.60327965",
"0.6006601",
"0.59882265",
"0.5987984",
"0.59853435",
"0.5964394",
"0.5958749",
"0.5953694",
"0.5946588",
"0.59175867",
"0.59065825",
"0.5903417",
"0.5900609",
"0.5897269",
"0.5897269",
"0.5887954",
"0.58788925",
"0.58733314",
"0.5867426",
"0.5860881",
"0.58527297",
"0.58460665",
"0.58448046",
"0.584094",
"0.58345884",
"0.581656",
"0.5814038",
"0.5794629",
"0.5792292",
"0.5790185",
"0.5784092",
"0.5777979",
"0.57465225",
"0.5745789",
"0.57398736",
"0.57397676",
"0.5737968",
"0.5724597",
"0.5717268",
"0.5700204",
"0.5697164",
"0.5693889",
"0.5689366",
"0.56840485",
"0.56816804",
"0.56706876",
"0.56664544",
"0.56648475",
"0.56472456",
"0.5644432",
"0.5641451",
"0.5638532",
"0.5621548",
"0.5618328",
"0.56110054",
"0.5606357",
"0.5604464",
"0.56004757",
"0.55923104",
"0.5592281",
"0.5587676",
"0.5576723",
"0.55762756",
"0.55591995",
"0.5557724",
"0.5549945",
"0.55491775",
"0.55429983",
"0.5542692",
"0.5540666",
"0.552578",
"0.55218536",
"0.5518588",
"0.551851"
] | 0.6155852 | 19 |
Ritorna l'immagine del prodotto. | public File getImmagine() {
return immagine;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }",
"private void pintarMesa() {\n try {\n mesa = ImageIO.read(new File(\"src/imagenes/Mesa.jpg\")).getScaledInstance(1600, 1300, Image.SCALE_SMOOTH);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }",
"public Coloca_imagen(){\n \n \n }",
"public Image meurt() {\n\t\t\tString str;//va contenir le nom de l'image\n\t\t\tImageIcon ico;//nom de la nouvelle instance de la methode ImageIcon\n\t\t\tImage img;//va etre egale a ico, et va retourner l'image voulu\n\t\t\t\n\t\t\tstr = \"/images/bouleDeFeu.png\";\n\t\t\tthis.compteurMort++;//on incremente un compteur\n\t\t\tif(this.compteurMort > 100) {//si le compteur arrive jusqu'a 100, mario meurt, \n\t\t\t\tstr = \"/images/mortDEMario.png\";//donc on change d'image\n\t\t\t\tthis.setY(this.getY() - 1);//fait monter l'image de la mort de mario vers le ciel\n\t\t\t}\n\t\t\tico = new ImageIcon(getClass().getResource(str));\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\n\t\t}",
"private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }",
"private void obsluga_pilek()\n {\n if (liczba_pilek > 0)\n {\n i++;\n if (i%50==0)\n {\n p.add(new Pilka(w.getPolozenie_x(), w.getPolozenie_y(), getWidth(), getHeight(), rozmiar_pilki));\n liczba_pilek--;\n }\n }\n }",
"public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }",
"@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}",
"public void morir()\r\n\t{\r\n\t\tif(this.grafico != null)\t\r\n\t\t\tthis.mover(4);\r\n\t}",
"public void moverArriba() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, 1));\n }",
"public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }",
"public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}",
"public void cambiarEstadoImagen(){\n ImageIcon respuesta=new ImageIcon();\n if(oportunidades==0){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado7.jpg\"));\n }\n if(oportunidades==1){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado6.jpg\"));\n }\n if(oportunidades==2){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado5.jpg\"));\n }\n if(oportunidades==3){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado4.jpg\"));\n }\n if(oportunidades==4){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado3.jpg\"));\n }\n if(oportunidades==5){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado2.jpg\"));\n }\n if(oportunidades==6){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado1.jpg\"));\n }\n if(oportunidades==7){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado0.jpg\"));\n }\n this.imgAhorcado=respuesta; \n }",
"public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }",
"@Override\n\t\tpublic Image marche(String nom, int frequence) {\n\t\t\t\n\t\t\tString str;\n\t\t\tImageIcon ico;\n\t\t\tImage img;\n\t\t\t\n\t\t\tif(this.marche == false || Main.level.getxPos() <= 0 || Main.level.getxPos() > 4430) {//si le personnage est arreter ou completement a gauche\n\t\t\t\tif(this.versDroite == true) {//si vers la droite image de droite\n\t\t\t\t\tstr = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}//si non image de gauche\n\t\t\t}else {//ou le personnage se deplace, on incremente donc le compteur a chaque fois que la scene est redessiné\n\t\t\t\tthis.compteur++;\n\t\t\t\tif(this.compteur / frequence == 0) {//si compteur/par frequence est = a 0 c'est que le personnage est a l'arret donc:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}\n\t\t\t\t}else {\t//si non c'est que le personnage se deplace:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"MarcheDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"MarcheGauche.png\";}\n\t\t\t\t}\n\t\t\t\tif(this.compteur == 2 * frequence) {this.compteur = 0;}//si compteur est = a 2fois la frequence ont remet le compteur a zero\t\n\t\t\t}\n\t\t\t//affichage de l'image du personnage\n\t\t\tico = new ImageIcon(getClass().getResource(str));//TROUVER LE PROBLEME LIÉ A CETTE LIGNE.....\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\t\n\t\t\t\t\t\n\t\t}",
"public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }",
"public void setFondoMapaLibre() {\n URL url = getClass().getResource(\"/Imagenes/ImaxeVUbi.png\");\n\tthis.setOpaque(false);\n\tthis.image = new ImageIcon(url).getImage();\n\trepaint();\n }",
"public void cambiarRonda() {\n\t\ttry {\r\n\t\t\tjuego.cambiarRonda();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void moverCamionetas() {\n for (Camioneta cam : arrEnemigosCamioneta) {\n cam.render(batch);\n\n cam.moverIzquierda();\n }\n }",
"public void riconnetti() {\n\t\tconnesso = true;\n\t}",
"@Override\r\n public void moverAyuda() {\n System.out.println(\"La reina puede mover hacia cualquier dirección en linea recta / diagonal\");\r\n }",
"public void recolheMao() {\n\t\tcartas[0].visible = false;\n\t\tfor (int i = 4; i <= 15; i++) {\n\t\t\tCartaVisual c = cartas[i];\n\t\t\tif ((c.top != topBaralho) || (c.left != leftBaralho)) {\n\t\t\t\tc.movePara(leftBaralho, topBaralho, 100);\n\t\t\t\tc.setCarta(null);\n\t\t\t\tc.descartada = false;\n\t\t\t\tcartasJogadas.remove(c);\n\t\t\t}\n\t\t}\n\t}",
"public void retournerLesPilesParcelles() {\n int compteur = 0;\n //pour chacune des 4 piles , retourner la parcelle au sommet de la pile\n for (JLabel jLabel : pileParcellesGUI) {\n JLabel thumb = jLabel;\n retournerParcelles(thumb, compteur);\n compteur++;\n }\n }",
"public Mine(Piegeur piegeur) {\n piegeur.getVue().getPlateau().getCelluleByCoordonnees(piegeur.getObjectif())\n .poseMine(piegeur.getNumEquipe());\n piegeur.perdUneMine();\n piegeur.perdEnergieApresAction();\n piegeur.getVue().getPlateau().getCelluleByCoordonnees(piegeur.getObjectif())\n .setImage((piegeur.getNumEquipe() == Constante.EQUIPE_UN ? \"M\" : \"m\"));\n }",
"public CadastroMicrobio() {\n initComponents();\n setIcon();\n }",
"private void aumentarPilha() {\n this.pilhaMovimentos++;\n }",
"public PregledPoruka() {\n preuzmiMape();\n preuzmiPoruke();\n }",
"public void reinicio() {\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n iScore = 0; // se reinicia el score\n iVidas = 3; // se reinicia la cantidad de vidas\n // La direccion del proyectil sera para arriba\n bDireccionY = false;\n // la direccion del proyectil sera al contrario de donde iba\n bDireccionX = !bDireccionX;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }",
"public Agnello mangiaPecora() {\n\t\tint indiceCasuale = (int) (Math.random() * pecore.size());\n\t\tAgnello pecoraMangiata = pecore.get(indiceCasuale);\n\t\tprelevaAnimale(pecoraMangiata.getTipo());\n\t\treturn pecoraMangiata;\n\t}",
"public void actualizarImagen() {\n\t\tentidadGrafica.actualizarImagen(this.valor);\n\t}",
"public String getImagen() {\n return imagen;\n }",
"private static void izpisiNavodila() {\n System.err.println(\"java ... [<datoteka.png>] [<sirina>x<visina>]\");\n System.err.println();\n System.err.println(\"java ...\");\n System.err.println(\" sliko nariše v okno velikosti 800 krat 600\");\n System.err.println();\n System.err.println(\"java ... 640x480\");\n System.err.println(\" sliko nariše v okno velikosti 640 krat 480\");\n System.err.println();\n System.err.println(\"java ... primer.png\");\n System.err.println(\" izdela sliko primer.png velikosti 800 krat 600\");\n System.err.println();\n System.err.println(\"java ... primer.png 640x480\");\n System.err.println(\" izdela sliko primer.png velikosti 640 krat 480\");\n }",
"@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}",
"public Espacio() {\n dib=new Dibujo(\"Simulacion de satelites\", 800,800);\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta();\n }",
"private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}",
"public void bulleRouge() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_rouge.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}",
"public void muovi() {\n\n for (int i = punti; i > 0; i--) {\n x[i] = x[(i - 1)];\n y[i] = y[(i - 1)];\n }\n\n if (sinistra) {\n x[0] -= DIMENSIONE_PUNTO;\n }\n\n if (destra) {\n x[0] += DIMENSIONE_PUNTO;\n }\n\n if (su) {\n y[0] -= DIMENSIONE_PUNTO;\n }\n\n if (giu) {\n y[0] += DIMENSIONE_PUNTO;\n }\n }",
"private void cargarPreescripcionMedica() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(\"ocultaValor\", \"\");\r\n\t\tparametros.put(\"admision\", admision_seleccionada);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false, \"/pages/receta_rips.zul\",\r\n\t\t\t\t\"PRESCRIPCION MEDICA\", parametros);\r\n\t}",
"public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}",
"public Image getImgMario() {return imgMario;}",
"public void cambiarImagenGrande(ImagenTemp it) {\n\t\t\n\t\t//TODO automatizar haciendo que el método directamente coloque la imagen escalada en el panel?\n\t\tImage imgtemp = VistaPrincipal.ponerImagenEscalada(it.getbImagen(), panelImagenGrande);\n\t\tlabelImagenGrande.setIcon(new ImageIcon(imgtemp));\n\t\tlabelImagenGrande.setBounds((int)(((float)panelImagenGrande.getWidth()/2) - ((float)imgtemp.getWidth(null))/((float)2)), (int)(((float)panelImagenGrande.getHeight()/2) - ((float)imgtemp.getHeight(null))/((float)2)),imgtemp.getWidth(null), imgtemp.getHeight(null));\n\t\t\n\t\t\n\t\t//Se rellenan los datos de la imagen seleccionada\n\t\tlabelNombre.setText(it.getNombre()+it.getExtension());\n\t\t\n\t\tLocalDate localDate = LocalDate.ofEpochDay(it.getFecha()/(1000*60*60*24));//TODO llevar esto a un método estático de VistaPrincipal si se repite\n\t\tlabelFecha.setText(localDate.getDayOfMonth() + \"/\" + localDate.getMonthValue() + \"/\" + localDate.getYear());\n\t\t\n\t\tlabelResolucion.setText(it.getbImagen().getWidth() + \" x \" + it.getbImagen().getHeight());\n\t\t\n\t\tString peso = it.getImagen().length()/1024 < 1000 ? (float)(it.getImagen().length()/1024) + \" kB\" : (int)(it.getImagen().length()/(1024*1024)) + \" MB\";\n\t\tlabelPeso.setText(peso);\n\t\t\n\t\t\n\t\t//Se rellenan las etiquetas\n\t\tpanelImagenEtiquetas.removeAll();\n\t\tfor(Etiquetas e : it.getArrayEtiquetas()) panelImagenEtiquetas.add(e);\n\t\tresultadosEste.revalidate();\n\t\tresultadosEste.repaint();\n\t\t\n\t}",
"public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }",
"@Test\n\tpublic void obtenerPrevisualizacionTest() {\n\t\tString contenido = \"contenido\";\n\t\tArchivo ar = new Imagen(\"test\", contenido);\n\t\tString expected = \"test\" + \"(\" + ar.obtenerTamaño() + \" bytes, \" + ar.obtenerMimeType() + \")\";\n\t\tassertEquals(expected, ar.obtenerPreVisualizacion());\n\t}",
"public void imprimirNivelMedio(){\n\t\tmodCons.imprimirNivelMedio();\n\t}",
"@Override\n\tpublic void carregar() {\n\t\tSystem.out.println(\"carregar imagem png\");\n\t\t\n\t}",
"public void moveM() {\r\n\t\tif (this.barcaIzq)\r\n\t\t\tthis.numMisioneros--;\r\n\t\telse\r\n\t\t\tthis.numMisioneros++;\r\n\r\n\t\tcambiarDeOrilla();\r\n\r\n\t}",
"private void moverFondo() {\n ActualizaPosicionesFondos();\n noAleatorio = MathUtils.random(1, 5); // crea los numeros para cambiar los mapas de manera aleatoria\n if (xFondo == -texturaFondoBase.getWidth()){\n //Cambio de fondo base\n texturaFondoBase= mapaAleatorio(noAleatorio);\n modificacionFondoBase= true; //Avisa que ya se modifico los fondos de inicio.\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())){\n //Cambio fondo de apoyo\n texturaFondoApoyo= mapaAleatorio(noAleatorio);\n xFondo= 0; //al pasar el segundo fondo regresa el puntero al primer fondo.\n modificacionFondoBase= true; //Avisa que ya se modifico los fondos de inicio.\n }\n }",
"private void resampleAbdomenVOI() {\r\n VOIVector vois = abdomenImage.getVOIs();\r\n VOI theVOI = vois.get(0);\r\n\r\n VOIContour curve = ((VOIContour)theVOI.getCurves().get(0));\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n int xcm = centerOfMass[0];\r\n int ycm = centerOfMass[1];\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n \r\n\r\n ArrayList<Integer> xValsAbdomenVOI = new ArrayList<Integer>();\r\n ArrayList<Integer> yValsAbdomenVOI = new ArrayList<Integer>();\r\n\r\n // angle in radians\r\n double angleRad;\r\n \r\n for (int angle = 0; angle < 360; angle += angularResolution) {\r\n int x = xcm;\r\n int y = ycm;\r\n double scaleFactor; // reduces the number of trig operations that must be performed\r\n \r\n angleRad = Math.PI * angle / 180.0;\r\n if (angle > 315 || angle <= 45) {\r\n // increment x each step\r\n scaleFactor = Math.tan(angleRad);\r\n while (x < xDim && curve.contains(x, y)) {\r\n \r\n // walk out in x and compute the value of y for the given radial line\r\n x++;\r\n y = ycm - (int)((x - xcm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 45 && angle <= 135) {\r\n // decrement y each step\r\n scaleFactor = (Math.tan((Math.PI / 2.0) - angleRad));\r\n while (y > 0 && curve.contains(x, y)) {\r\n\r\n // walk to the top of the image and compute values of x for the given radial line\r\n y--;\r\n x = xcm + (int)((ycm - y) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n \r\n } else if (angle > 135 && angle <= 225) {\r\n // decrement x each step\r\n scaleFactor = Math.tan(Math.PI - angleRad);\r\n while (x > 0 && curve.contains(x, y)) {\r\n \r\n x--;\r\n y = ycm - (int)((xcm - x) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n\r\n } else if (angle > 225 && angle <= 315) {\r\n // increment y each step\r\n scaleFactor = Math.tan((3.0 * Math.PI / 2.0) - angleRad);\r\n while (y < yDim && curve.contains(x, y)) {\r\n \r\n y++;\r\n x = xcm - (int)((y - ycm) * scaleFactor);\r\n }\r\n xValsAbdomenVOI.add(x);\r\n yValsAbdomenVOI.add(y);\r\n }\r\n } // end for (angle = 0; ...\r\n \r\n// ViewUserInterface.getReference().getMessageFrame().append(\"resample VOI number of points: \" +xValsAbdomenVOI.size());\r\n curve.clear();\r\n for(int idx = 0; idx < xValsAbdomenVOI.size(); idx++) {\r\n curve.add( new Vector3f( xValsAbdomenVOI.get(idx), yValsAbdomenVOI.get(idx), 0 ) );\r\n }\r\n }",
"private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}",
"private void BajarPiezaRapido() {\n if (!Mover(piezaActual, posicionX, posicionY - 1)) {\r\n BajarPieza1posicion();\r\n }\r\n }",
"private void change_im_tool4(int boo){\r\n if(boo == 0){ //IMAGEN SI EL USUARIO ESTA INHABILITADO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img07.png\")));\r\n }else{ //IMAGEN PARA HABILITAR AL USUARIO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }\r\n }",
"public void supprimerRenommage(){\n supprRenomGram.supprRenom();\n setChanged();\n notifyObservers(\"5\");\n }",
"public void majAffichage() {\n this.grid.getChildren().clear(); // vide tout le gridpane\n for (int i = 0; i < this.matrice.getNbLigne(); i++) {\n for (int j = 0; j < this.matrice.getNbColonne(); j++) {\n Node n = this.matrice.getCell(i, j); // recupère les imgViews de la matrice\n this.grid.setHalignment(n, HPos.CENTER); // place les labels au centre des cases\n this.grid.add(this.matrice.getCell(i, j), j, i);\n }\n }\n }",
"@Override\n public Vehicule creer(String immatriculation, String marque, String modele, Client client, int tonnage, int hauteur) {\n return new Camion(immatriculation,marque,modele,client,tonnage,hauteur);\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}",
"public void moverAbajo() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, -1));\n }",
"public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}",
"public vistaVentas() {\n initComponents();\n URL url = getClass().getResource(\"/imagenes/logoCarisma.jpg\");\n ImageIcon img = new ImageIcon(url);\n setIconImage(img.getImage());\n llenardescuento();\n }",
"public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }",
"public static Card dohvatiPozadinu(){\r\n\t\tFile dir = new File(\"images\");\r\n\t\tFile[] lista = dir.listFiles();\r\n\t\tCard kartaPozadine = null;\r\n\t\tfor (File file : lista){\r\n\t\t\tif (file.isFile()){\r\n\t\t\t\tif (file.toString().contains(\"pozadina_0.gif\")){\r\n\t\t\t\t\tString[] niz = file.getName().toString().split(\"\\\\.\");\r\n\t\t\t\t\tkartaPozadine =new Card(new ImageIcon(file.toString()),0);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn kartaPozadine;\r\n\t}",
"public void chocoContraMunicion(IMunicion municion){}",
"public void setImmagine(File immagine) {\n\t\tif(immagine.exists() && !immagine.isDirectory()) { \n\t\t\tthis.immagine = immagine;\n\t\t}\n\t\telse {\n\t\t\tthis.immagine = IMMAGINE_DEFAULT;\n\t\t}\n\t}",
"public interface CambioImagenPerfil{\n\n void opcionEscogida(String app);\n }",
"public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }",
"public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}",
"public void moverSmart(Matriz m)\r\n\t{\n\r\n\t\tint mov = smart.calcularMovimiento();\r\n\r\n\t\t// System.out.println(\"El movimiento elegido es \" + mov);\r\n\r\n\t\tsupermover(mov, m);\r\n\r\n\t}",
"Imagem getImagem();",
"public void prepareObjetivos(){\n\t\tfor( int x= 0 ; x < game.getAmountObjetivos();x++){\n\t\t\tObjetivo o = game.getObjetivo(x);\n\t\t\timage = o.getImage();\n\t\t\ttemporal = image.getImage().getScaledInstance(o.getAncho(), o.getAlto(), Image.SCALE_SMOOTH);\n\t\t\to.setImage(new ImageIcon(temporal));\n\t\t}\n\t\t\n\t}",
"public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }",
"public static void classificarImc(double peso, double altura) {\n\t\tdouble imc = peso / (altura * altura); \n\t\t\n\t\tif (imc < 20.0) {\n\t\t\tSystem.out.println(\"abaixo do peso\");\n\t\t}\n\t\telse if (imc < 25.0) {\n\t\t\tSystem.out.println(\"peso normal\");\n\t\t}\n\t\telse if (imc < 30.0) {\n\t\t\tSystem.out.println(\"sobrepeso\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"obeso\");\n\t\t}\n\t}",
"private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }",
"@Generated(hash = 1786532268)\npublic synchronized void resetImagemOcorrencias() {\n imagemOcorrencias = null;\n}",
"public Triagem() {\n ImageIcon logo = new ImageIcon(\"src/Imagens/icone.png\");\n setIconImage(logo.getImage());\n initComponents();\n setLocationRelativeTo(null);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n }",
"public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}",
"public void mostrarGrafo() {\n\t\tmatriz.mostrarMatriz();\n\t}",
"public Image getMinimRest();",
"public FiltroMicrorregiao() {\r\n }",
"public void setIdImagen(int idImagen) {\n this.idImagen = idImagen;\n }",
"public void bulleVerte() {\r\n\t\tIcon icon = null;\r\n\t\ticon = new ImageIcon(\"../_Images/Bouton/bulle_verte.png\");\r\n\t\tif (icon != null)\r\n\t\t\tbulleAide.setIcon(icon);\r\n\t}",
"EcirdelAubrac(Machecoulais machecoulais) {\n super(1);\n this.f16565a = machecoulais;\n }",
"private void moverCarritoGolf() {\n for (AutoGolf carrito : arrEnemigosCarritoGolf) {\n carrito.render(batch);\n\n carrito.moverIzquierda();\n }\n }",
"protected void mover(){\r\n\t\r\n\t\t\r\n\t\tint centroX;\r\n\t\tint centroY;\r\n\t\tint radioGiro1;\r\n\t\tint coordX;\r\n\t\tint incrementoY;\r\n\t\tint diferenciaEnX;\r\n\t\t\r\n\t\tif(! this.entroAlCirculo){\r\n\t\t\tdirigirHaciaPunto(this.centroGiroX, (this.centroGiroY - this.radioGiro));\r\n\t\t}\r\n\t\t\r\n\t\telse{\t\t\t\t\r\n\t\t\t\r\n\t\t\tcentroX = this.centroGiroX;\r\n\t\t\tcentroY = this.centroGiroY;\r\n\t\t\tincrementoY = 1;\r\n\t\t\tradioGiro1 = this.radioGiro;\r\n\t\t\t\r\n\t\t\tif(this.x > centroX){\t\t\t\t\t\r\n\t\t\t\tthis.regresando = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(this.regresando){ //chequea si el avion se sobrepasa de los limites verticales del circulo, si es el caso cambia la direccion\r\n\t\t\t\t\r\n\t\t\t\tif((this.y - incrementoY) < (centroY - radioGiro1)){\r\n\t\t\t\t\tthis.regresando = false;\r\n\t\t\t\t}\r\n\t\t\t\telse{}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\tif((this.y + incrementoY) > (centroY + radioGiro1)){\r\n\t\t\t\t\t\tthis.regresando = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\telse{}\r\n\t\t\t}\t\t\t\r\n\t\t\tif ((this.y <= (centroGiroY + (radioGiro - incrementoY))) || (this.y >= (centroGiroY - (radioGiro - incrementoY)))){\r\n\t\t\t\t\r\n\t\t\t\tif(this.regresando){\r\n\t\t\t\t\t\r\n\t\t\t\t\t/**calcula la posicion de x de acuerdo al movimiento en y, \r\n\t\t\t\t\t* con la formula de una circunferencia plana\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tcoordX = (int) (Math.sqrt( (Math.pow(radioGiro1, 2)) - (Math.pow(((this.y - 1) - centroY), 2))) ) + centroX ;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tdiferenciaEnX = coordX - centroX;\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.x = coordX;\r\n\t\t\t\t\tthis.y -= incrementoY;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse{\r\n\t\t\t\t\tcoordX = (int) (Math.sqrt( (Math.pow(radioGiro1, 2)) - (Math.pow(((this.y + 1) - centroY), 2))) ) + centroX ;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tdiferenciaEnX = coordX - centroX;\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.x = centroX - diferenciaEnX;\r\n\t\t\t\t\tthis.y += incrementoY;\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}",
"public Pile() {\r\n\t\tconstruirePile();\r\n\t}",
"public Inicio()\n { \n super(600, 400, 1);\n prepararInicio();\n\n }",
"private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }",
"public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }",
"@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}",
"private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }",
"Regione(Terreno tipoTerreno, int ID) {\n\t\tthis.tipoTerreno = tipoTerreno;\n\t\tthis.ID = ID;\n\t\tpecore = new ArrayList<Agnello>();\n\t}",
"public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }",
"private void generarMarca() {\r\n\t\tthis.marca = MARCAS[(int) (Math.random() * MARCAS.length)];\r\n\t}",
"public MovimientoPantallaCocina() {\n initComponents();\n \n //COLOCAR FONOD EN LA PANTALLA PARA LA COCINA\n try{\n pnlOrdenes.setBorder(new ImagenCocina());\n } catch (IOException e){\n Logger.getLogger(MovimientoPantallaCocina.class.getName()).log(Level.SEVERE, null, e);\n }\n \n //VISUALIZAR TODAS LAS ORDENES ACTIVAS\n hilo p = new hilo(\"ordenes\");\n p.start();\n }",
"public void VuforiaOrientator() {\n }",
"private ImageIcon ridimensionaImageIcon(URL url, int nuovaW, int nuovaH){\n ImageIcon image = new ImageIcon(url);\n Image immagineScalata = image.getImage().getScaledInstance(nuovaW, nuovaH, Image.SCALE_DEFAULT);\n return new ImageIcon(immagineScalata);\n }",
"public Exo2_Editeurpolylignes() {\n valeur_maximum = 5;\n initComponents();\n Tools.windowsInit(this);\n Tools.setIcone(\"./src/Icones/Icone_Lines.bmp\", this);\n this.setTitle(\"Editeur de poly-Lignes\");\n etat = Etat.Init;\n //rien\n initNombrePoints();\n\n }",
"public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}",
"public void mostrarAyudaCM() {\n try {\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"res/help_maker.png\")));\n }\n catch (Exception e) {}\n }",
"public void zoomIn(){\n\t\t zoomed = modifyDimensions(picture.getWidth(),getHeight()); //in primul pas se maresc dimensiunile pozei\n\t\t for(int i = 0; i < zoomed.getHeight(); i += 2) {\n\t for(int j = 0; j < zoomed.getWidth(); j += 2) {\n\t zoomed.setRGB(j, i, picture.getRGB(j / 2,i / 2));\n\n\t if (j + 1 < zoomed.getWidth()) {\n\t zoomed.setRGB(j + 1, i, mediePixeli(picture.getRGB(j / 2, i / 2), picture.getRGB((j + 2) / 2, i / 2))); // intre doua coloane se adauga media pixelilor din acestea\n\t }\n\t }\n\t }\n\n\n\t for(int i = 1; i < zoomed.getHeight(); i += 2){\n\t \tfor(int j = 0; j < zoomed.getWidth(); j++ ){\n\t zoomed.setRGB(j, i, mediePixeli(picture.getRGB((j - 1) / 2, i / 2), picture.getRGB((j + 1) / 2, (i / 2))));\n\t }\n\t }\n\t \n\t }"
] | [
"0.63592076",
"0.62594455",
"0.6174385",
"0.61162764",
"0.6091171",
"0.5951392",
"0.5918219",
"0.58905965",
"0.5839544",
"0.5825314",
"0.5729903",
"0.5726922",
"0.5722481",
"0.56777614",
"0.5629959",
"0.5619806",
"0.555809",
"0.5557443",
"0.55572075",
"0.55369544",
"0.5528528",
"0.55085653",
"0.5482004",
"0.5475948",
"0.54448456",
"0.54441345",
"0.54380804",
"0.54324245",
"0.5432245",
"0.5401735",
"0.5369336",
"0.53642154",
"0.53585756",
"0.53581834",
"0.5348439",
"0.53400975",
"0.5337964",
"0.5337196",
"0.5336839",
"0.53343207",
"0.5323717",
"0.5318693",
"0.5317898",
"0.5317811",
"0.53176516",
"0.53082556",
"0.5306852",
"0.5306595",
"0.53056043",
"0.52986944",
"0.52936155",
"0.5290758",
"0.528448",
"0.52808625",
"0.5280035",
"0.527764",
"0.52758646",
"0.52661806",
"0.5264122",
"0.5263898",
"0.526312",
"0.52596486",
"0.5257106",
"0.5256169",
"0.5251224",
"0.52502954",
"0.5243604",
"0.52370304",
"0.5234418",
"0.5228252",
"0.52219063",
"0.5203642",
"0.5199684",
"0.5195814",
"0.5194745",
"0.51887524",
"0.51833963",
"0.51800287",
"0.51761794",
"0.51691115",
"0.5168335",
"0.51650846",
"0.5158468",
"0.51569265",
"0.5156339",
"0.5144351",
"0.51428336",
"0.5141862",
"0.51416373",
"0.5132529",
"0.51183325",
"0.51140827",
"0.5112409",
"0.51120305",
"0.51091707",
"0.5108192",
"0.51074326",
"0.51062244",
"0.5105409",
"0.50980544",
"0.5097071"
] | 0.0 | -1 |
Modifica l'immagine del prodotto. | public void setImmagine(File immagine) {
if(immagine.exists() && !immagine.isDirectory()) {
this.immagine = immagine;
}
else {
this.immagine = IMMAGINE_DEFAULT;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pintarMesa() {\n try {\n mesa = ImageIO.read(new File(\"src/imagenes/Mesa.jpg\")).getScaledInstance(1600, 1300, Image.SCALE_SMOOTH);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }",
"@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}",
"public void imprimirNivelMedio(){\n\t\tmodCons.imprimirNivelMedio();\n\t}",
"public static void classificarImc(double peso, double altura) {\n\t\tdouble imc = peso / (altura * altura); \n\t\t\n\t\tif (imc < 20.0) {\n\t\t\tSystem.out.println(\"abaixo do peso\");\n\t\t}\n\t\telse if (imc < 25.0) {\n\t\t\tSystem.out.println(\"peso normal\");\n\t\t}\n\t\telse if (imc < 30.0) {\n\t\t\tSystem.out.println(\"sobrepeso\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"obeso\");\n\t\t}\n\t}",
"@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}",
"private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }",
"public Image meurt() {\n\t\t\tString str;//va contenir le nom de l'image\n\t\t\tImageIcon ico;//nom de la nouvelle instance de la methode ImageIcon\n\t\t\tImage img;//va etre egale a ico, et va retourner l'image voulu\n\t\t\t\n\t\t\tstr = \"/images/bouleDeFeu.png\";\n\t\t\tthis.compteurMort++;//on incremente un compteur\n\t\t\tif(this.compteurMort > 100) {//si le compteur arrive jusqu'a 100, mario meurt, \n\t\t\t\tstr = \"/images/mortDEMario.png\";//donc on change d'image\n\t\t\t\tthis.setY(this.getY() - 1);//fait monter l'image de la mort de mario vers le ciel\n\t\t\t}\n\t\t\tico = new ImageIcon(getClass().getResource(str));\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\n\t\t}",
"private void change_im_tool4(int boo){\r\n if(boo == 0){ //IMAGEN SI EL USUARIO ESTA INHABILITADO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img07.png\")));\r\n }else{ //IMAGEN PARA HABILITAR AL USUARIO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }\r\n }",
"public Coloca_imagen(){\n \n \n }",
"private void aumentarPilha() {\n this.pilhaMovimentos++;\n }",
"public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }",
"public void chocoContraMunicion(IMunicion municion){}",
"public void cambiarEstadoImagen(){\n ImageIcon respuesta=new ImageIcon();\n if(oportunidades==0){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado7.jpg\"));\n }\n if(oportunidades==1){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado6.jpg\"));\n }\n if(oportunidades==2){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado5.jpg\"));\n }\n if(oportunidades==3){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado4.jpg\"));\n }\n if(oportunidades==4){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado3.jpg\"));\n }\n if(oportunidades==5){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado2.jpg\"));\n }\n if(oportunidades==6){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado1.jpg\"));\n }\n if(oportunidades==7){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado0.jpg\"));\n }\n this.imgAhorcado=respuesta; \n }",
"public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }",
"public static void calcularIMC(Persona p) throws NotCalculateException {\n if (p != null && p.getAltura() != 0 && p.getPeso() != 0) {\r\n double imc= p.getPeso()/Math.pow(p.getAltura(),2);\r\n \r\n if (imc<16){\r\n System.out.println(\"IMC: \" + imc + \" \" + IMCMIN_16);\r\n } else if (imc <18.5){\r\n System.out.println(\"IMC: \" + imc + \" \" + IMC16_18);\r\n } else if (imc<25){\r\n System.out.println(\"IMC: \" + imc + \" \" + IMC18_25);\r\n } else if (imc<30){\r\n System.out.println(\"IMC: \" + imc + \" \" + IMC25_30);\r\n } else {\r\n System.out.println(\"IMC: \" + imc + \" \" + IMCMAX_30);\r\n }\r\n } else {\r\n String mensaje=\"No se puede calcular el IMC\";\r\n if (p == null) {\r\n mensaje=\"Persona no definida\";\r\n }\r\n else {\r\n mensaje=\"Datos necesarios no definidos\";\r\n }\r\n throw new NotCalculateException(mensaje);\r\n }\r\n }",
"public Mine(Piegeur piegeur) {\n piegeur.getVue().getPlateau().getCelluleByCoordonnees(piegeur.getObjectif())\n .poseMine(piegeur.getNumEquipe());\n piegeur.perdUneMine();\n piegeur.perdEnergieApresAction();\n piegeur.getVue().getPlateau().getCelluleByCoordonnees(piegeur.getObjectif())\n .setImage((piegeur.getNumEquipe() == Constante.EQUIPE_UN ? \"M\" : \"m\"));\n }",
"public MecanismoMultiplicacionPrimo(int numPrimo)\n {\n super(numPrimo) ;\n\n }",
"public void updateIM(){\n \n }",
"private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}",
"public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}",
"public void updateIM() {\n\t\tScalarIMR imr = imrGuiBean.getSelectedIMR_Instance();\n//\t\timtGuiBean.setIM(imr,imr.getSupportedIntensityMeasuresIterator()) ;\n\t}",
"private void obsluga_pilek()\n {\n if (liczba_pilek > 0)\n {\n i++;\n if (i%50==0)\n {\n p.add(new Pilka(w.getPolozenie_x(), w.getPolozenie_y(), getWidth(), getHeight(), rozmiar_pilki));\n liczba_pilek--;\n }\n }\n }",
"private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}",
"private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void supprimerRenommage(){\n supprRenomGram.supprRenom();\n setChanged();\n notifyObservers(\"5\");\n }",
"public void setImmagine(String immagine) {\n\t\tthis.setImmagine(new File (immagine));\n\t}",
"private void change_im_check(boolean boo){\r\n if(boo){ //IMAGEN SI EL MEASURE ES CORRECTO\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }else{ //IMAGEN PARA LA BUSQUEDA DE UN MEASURE\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img34.png\")));\r\n }\r\n }",
"public void retournerLesPilesParcelles() {\n int compteur = 0;\n //pour chacune des 4 piles , retourner la parcelle au sommet de la pile\n for (JLabel jLabel : pileParcellesGUI) {\n JLabel thumb = jLabel;\n retournerParcelles(thumb, compteur);\n compteur++;\n }\n }",
"public void atualizarConsumosMedio(Integer idImovel, Integer anoMesGrupoFaturamento, int consumoMedioImovel,\n\t\t\t\t\tint consumoMedioHidrometroAgua, int consumoMedioHidrometroEsgoto) throws ErroRepositorioException;",
"public Agnello mangiaPecora() {\n\t\tint indiceCasuale = (int) (Math.random() * pecore.size());\n\t\tAgnello pecoraMangiata = pecore.get(indiceCasuale);\n\t\tprelevaAnimale(pecoraMangiata.getTipo());\n\t\treturn pecoraMangiata;\n\t}",
"@Override\r\n\tpublic void majMemoireIA() {\r\n\t}",
"public interface CambioImagenPerfil{\n\n void opcionEscogida(String app);\n }",
"public void mover_peca(String comando) {\n\t\tint ii = '7' - comando.charAt(1); //i inicial\n\t\tint ji = comando.charAt(0) - 'a'; //j inicial\n\t\tint id = '7' - comando.charAt(4); //i destino\n\t\tint jd = comando.charAt(3) - 'a'; //j destino\n\n\t\tif(this.mov_valido(ii, ji, id, jd)) {\n\t\t\tm[(ii+id)/2][(ji+jd)/2] = null;\n\t\t\tm[id][jd] = m[ii][ji];\n\t\t\tm[ii][ji] = null;\n\t\t}\n\n\t}",
"Imagem getImagem();",
"public ImagePlus morph(ImagePlus imp_old,int proc, int rad){\nImageProcessor img = imp_old.getProcessor();\nImagePlus morphImg;\nif (proc==0){\nImageProcessor dil = Morphology.dilation(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"dilation\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else if (proc==1){\nImageProcessor dil = Morphology.erosion(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"erosion\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else{\nImageProcessor dil = Morphology.closing(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"closing\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n}\n}",
"public void setIdImagen(int idImagen) {\n this.idImagen = idImagen;\n }",
"public String getPicturePathPro() {\n return picturePathPro;\n }",
"public void mostrarAyudaCM() {\n try {\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"res/help_maker.png\")));\n }\n catch (Exception e) {}\n }",
"private void cargarPreescripcionMedica() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(\"ocultaValor\", \"\");\r\n\t\tparametros.put(\"admision\", admision_seleccionada);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false, \"/pages/receta_rips.zul\",\r\n\t\t\t\t\"PRESCRIPCION MEDICA\", parametros);\r\n\t}",
"public CadastroMicrobio() {\n initComponents();\n setIcon();\n }",
"@Override\n\t\tpublic Image marche(String nom, int frequence) {\n\t\t\t\n\t\t\tString str;\n\t\t\tImageIcon ico;\n\t\t\tImage img;\n\t\t\t\n\t\t\tif(this.marche == false || Main.level.getxPos() <= 0 || Main.level.getxPos() > 4430) {//si le personnage est arreter ou completement a gauche\n\t\t\t\tif(this.versDroite == true) {//si vers la droite image de droite\n\t\t\t\t\tstr = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}//si non image de gauche\n\t\t\t}else {//ou le personnage se deplace, on incremente donc le compteur a chaque fois que la scene est redessiné\n\t\t\t\tthis.compteur++;\n\t\t\t\tif(this.compteur / frequence == 0) {//si compteur/par frequence est = a 0 c'est que le personnage est a l'arret donc:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}\n\t\t\t\t}else {\t//si non c'est que le personnage se deplace:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"MarcheDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"MarcheGauche.png\";}\n\t\t\t\t}\n\t\t\t\tif(this.compteur == 2 * frequence) {this.compteur = 0;}//si compteur est = a 2fois la frequence ont remet le compteur a zero\t\n\t\t\t}\n\t\t\t//affichage de l'image du personnage\n\t\t\tico = new ImageIcon(getClass().getResource(str));//TROUVER LE PROBLEME LIÉ A CETTE LIGNE.....\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\t\n\t\t\t\t\t\n\t\t}",
"public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}",
"public void setPicturePathPro(String picturePathPro) {\n this.picturePathPro = picturePathPro;\n }",
"public void mutacioni(Individe individi, double probabiliteti) {\n int gjasaPerNdryshim = (int) ((1 / probabiliteti) * Math.random());\r\n if (gjasaPerNdryshim == 1) {\r\n int selectVetura1 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e pare\r\n int selectPikenKamioni1 = (int) (Math.random() * individi.pikatEVeturave[selectVetura1].size());//selekton piken e vetures tpare\r\n if (pikatEVeturave[selectVetura1].size() == 0) {\r\n return;\r\n }\r\n Point pika1 = individi.pikatEVeturave[selectVetura1].get(selectPikenKamioni1);//pika 1\r\n\r\n int selectVetura2 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e dyte\r\n int selectPikenKamioni2 = (int) (Math.random() * individi.pikatEVeturave[selectVetura2].size());//selekton piken e vetures tdyte\r\n if (pikatEVeturave[selectVetura2].size() == 0) {\r\n return;\r\n }\r\n Point pika2 = individi.pikatEVeturave[selectVetura2].get(selectPikenKamioni2);//pika 2\r\n\r\n individi.pikatEVeturave[selectVetura2].set(selectPikenKamioni2, pika1);//i ndrron vendet ketyre dy pikave\r\n individi.pikatEVeturave[selectVetura1].set(selectPikenKamioni1, pika2);\r\n }\r\n\r\n }",
"public void recolheMao() {\n\t\tcartas[0].visible = false;\n\t\tfor (int i = 4; i <= 15; i++) {\n\t\t\tCartaVisual c = cartas[i];\n\t\t\tif ((c.top != topBaralho) || (c.left != leftBaralho)) {\n\t\t\t\tc.movePara(leftBaralho, topBaralho, 100);\n\t\t\t\tc.setCarta(null);\n\t\t\t\tc.descartada = false;\n\t\t\t\tcartasJogadas.remove(c);\n\t\t\t}\n\t\t}\n\t}",
"public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}",
"private void gravarPromocao() {\n\t\tString nome = textFieldNome.getText();\n\t\tString descricao = textFieldDescricao.getText();\n\t\tboolean ativo = true;\n\n\t\tPromocao promocao = null;\n\n\t\tif (modoEditar) {\n\t\t\tpromocao = promocaoAntiga;\n\n\t\t\tpromocao.setNome(nome);\n\t\t\tpromocao.setDescricao(descricao);\t\t\t\n\t\t\tpromocao.setAtiva(ativo);\n\n\t\t} else {\n\t\t\tpromocao = new Promocao( nome, descricao, ativo);\n\t\t}\n\n\t\ttry {\n\t\t\tif (modoEditar) {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().editarPromocao(promocao);\n\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção editada com sucesso!\", \"Promoção Editada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t} else {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().criarPromocao(promocao);\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção criada com sucesso!\", \"Promoção Criada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\n\n\t\t} catch (Exception exc) {\n\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\"Error a criar a Promoção \" + exc.getMessage(), \"Error\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t}",
"public void setImmatriculation(java.lang.String immatriculation) {\n this.immatriculation = immatriculation;\n }",
"public void prepareObjetivos(){\n\t\tfor( int x= 0 ; x < game.getAmountObjetivos();x++){\n\t\t\tObjetivo o = game.getObjetivo(x);\n\t\t\timage = o.getImage();\n\t\t\ttemporal = image.getImage().getScaledInstance(o.getAncho(), o.getAlto(), Image.SCALE_SMOOTH);\n\t\t\to.setImage(new ImageIcon(temporal));\n\t\t}\n\t\t\n\t}",
"public void setIconTablaPlantilla() {\n\t\t// Establece el icono del boton editar\n\t\tFile archivo1 = new File(\"imagenes\" + File.separator + \"lapices.png\");\n\t\tImage imagen1 = new Image(archivo1.toURI().toString(), 50, 50, true, true, true);\n\t\tbtnModificar.setGraphic(new ImageView(imagen1));\n\t\tbtnModificar.setContentDisplay(ContentDisplay.CENTER);\n\t}",
"public void actualizarImagen() {\n\t\tentidadGrafica.actualizarImagen(this.valor);\n\t}",
"public File getImmagine() {\n\t\treturn immagine;\n\t}",
"public void moverArriba() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, 1));\n }",
"private void moverCamionetas() {\n for (Camioneta cam : arrEnemigosCamioneta) {\n cam.render(batch);\n\n cam.moverIzquierda();\n }\n }",
"public void setAnoFilmagem(String anoFilmagem);",
"public void muovi() {\n\n for (int i = punti; i > 0; i--) {\n x[i] = x[(i - 1)];\n y[i] = y[(i - 1)];\n }\n\n if (sinistra) {\n x[0] -= DIMENSIONE_PUNTO;\n }\n\n if (destra) {\n x[0] += DIMENSIONE_PUNTO;\n }\n\n if (su) {\n y[0] -= DIMENSIONE_PUNTO;\n }\n\n if (giu) {\n y[0] += DIMENSIONE_PUNTO;\n }\n }",
"public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }",
"public void morir()\r\n\t{\r\n\t\tif(this.grafico != null)\t\r\n\t\t\tthis.mover(4);\r\n\t}",
"@Test\n\tpublic void obtenerPrevisualizacionTest() {\n\t\tString contenido = \"contenido\";\n\t\tArchivo ar = new Imagen(\"test\", contenido);\n\t\tString expected = \"test\" + \"(\" + ar.obtenerTamaño() + \" bytes, \" + ar.obtenerMimeType() + \")\";\n\t\tassertEquals(expected, ar.obtenerPreVisualizacion());\n\t}",
"@Override\n public void imprimirMatricula() \n {\n HashMap parameters = new HashMap();\n parameters.put(\"especialidad\", new String(\"123\"));\n Print print = new Print();\n byte[] bytes = print.cargar_reporte(\"/WEB-INF/reportes/hola.jasper\", parameters).toByteArray();\n InputStream in = new ByteArrayInputStream(bytes);\n print.imprimir(in);\n }",
"public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"public void setPromId(Integer promId) {\n this.promId = promId;\n }",
"public iAddCancion(int _id, String _miImagen) {\n this.id = _id;\n this.miImagen = _miImagen;\n initComponents();\n dameTodoAlbum(id);\n Image img = new ImageIcon(\"src/img/\"+miImagen).getImage();\n ImageIcon img2 = new ImageIcon(img.getScaledInstance(jLabelMiImagen.getWidth(), jLabelMiImagen.getHeight(), Image.SCALE_SMOOTH));\n\n jLabelMiImagen.setIcon(img2);\n }",
"@Override\n\tpublic DAOIncidencias CrearInformesMedicos() {\n\t\treturn null;\n\t}",
"public void reinicio() {\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n iScore = 0; // se reinicia el score\n iVidas = 3; // se reinicia la cantidad de vidas\n // La direccion del proyectil sera para arriba\n bDireccionY = false;\n // la direccion del proyectil sera al contrario de donde iba\n bDireccionX = !bDireccionX;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }",
"public int notaMedia() {\n\t\tint media = 0;\n\t\t//sumatoria\n\t\tfor (Integer integer : notas) {\n\t\t\tmedia += integer.intValue();\n\t\t}\n\t\t//division\n //control divison por 0\n if(notas.size() != 0){\n\t\tmedia /= notas.size();\n }\n\t\treturn media;\n\t}",
"public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }",
"public void putMoleculeInCilia(){\n\t\t\tcilia.setOdorantMolecule(molecule);\n\t\t}",
"void imprimeExtrato(){\n\t\tthis.imprimeExtrato(15);\n\t}",
"public void iniciarNovaPartida(Integer posicao);",
"public void setFondoMapaLibre() {\n URL url = getClass().getResource(\"/Imagenes/ImaxeVUbi.png\");\n\tthis.setOpaque(false);\n\tthis.image = new ImageIcon(url).getImage();\n\trepaint();\n }",
"private void setPhotoAttcher() {\n\n }",
"private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}",
"public AssocImagemSom(Parcel in) \r\n\t{\r\n\t\treadFromParcel(in);\r\n\t}",
"public void cambiarImagenGrande(ImagenTemp it) {\n\t\t\n\t\t//TODO automatizar haciendo que el método directamente coloque la imagen escalada en el panel?\n\t\tImage imgtemp = VistaPrincipal.ponerImagenEscalada(it.getbImagen(), panelImagenGrande);\n\t\tlabelImagenGrande.setIcon(new ImageIcon(imgtemp));\n\t\tlabelImagenGrande.setBounds((int)(((float)panelImagenGrande.getWidth()/2) - ((float)imgtemp.getWidth(null))/((float)2)), (int)(((float)panelImagenGrande.getHeight()/2) - ((float)imgtemp.getHeight(null))/((float)2)),imgtemp.getWidth(null), imgtemp.getHeight(null));\n\t\t\n\t\t\n\t\t//Se rellenan los datos de la imagen seleccionada\n\t\tlabelNombre.setText(it.getNombre()+it.getExtension());\n\t\t\n\t\tLocalDate localDate = LocalDate.ofEpochDay(it.getFecha()/(1000*60*60*24));//TODO llevar esto a un método estático de VistaPrincipal si se repite\n\t\tlabelFecha.setText(localDate.getDayOfMonth() + \"/\" + localDate.getMonthValue() + \"/\" + localDate.getYear());\n\t\t\n\t\tlabelResolucion.setText(it.getbImagen().getWidth() + \" x \" + it.getbImagen().getHeight());\n\t\t\n\t\tString peso = it.getImagen().length()/1024 < 1000 ? (float)(it.getImagen().length()/1024) + \" kB\" : (int)(it.getImagen().length()/(1024*1024)) + \" MB\";\n\t\tlabelPeso.setText(peso);\n\t\t\n\t\t\n\t\t//Se rellenan las etiquetas\n\t\tpanelImagenEtiquetas.removeAll();\n\t\tfor(Etiquetas e : it.getArrayEtiquetas()) panelImagenEtiquetas.add(e);\n\t\tresultadosEste.revalidate();\n\t\tresultadosEste.repaint();\n\t\t\n\t}",
"public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }",
"public EditorDeTexto() {\n inedit = new INEdit();\n\n initComponents();\n\n this.setTitle(\"INEdit\"); // Altera o título\n this.barraMenu.setVisible(true);\n menuArquivo.setEnabled(false);\n menuUsuario.setEnabled(false);\n initPainelEscolheUsuario();\n this.setContentPane(PainelEscolheUsuario);\n this.pack();\n \n \n ImageIcon userIcon = new ImageIcon((getClass().getResource(\"Icones/USER.png\")));\n Image image = userIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n userIcon = new ImageIcon(image); // transform it back\n menuBotaoAlterarUsuario.setIcon(userIcon);\n \n ImageIcon saveIcon = new ImageIcon((getClass().getResource(\"Icones/SAVE.png\")));\n image = saveIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n saveIcon = new ImageIcon(image); // transform it back\n menuBotaoSalvar.setIcon(saveIcon);\n menuBotaoSalvarComo.setIcon(saveIcon);\n \n ImageIcon openIcon = new ImageIcon((getClass().getResource(\"Icones/OPEN.png\")));\n image = openIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n openIcon = new ImageIcon(image); // transform it back\n menuBotaoAbrir.setIcon(openIcon);\n \n ImageIcon fontIcon = new ImageIcon((getClass().getResource(\"Icones/FONT.png\")));\n image = fontIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n fontIcon = new ImageIcon(image); // transform it back\n menuFormatacao.setIcon(fontIcon);\n \n ImageIcon helpIcon = new ImageIcon((getClass().getResource(\"Icones/AJUDA.png\")));\n image = helpIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n helpIcon = new ImageIcon(image); // transform it back\n menuBotaoAjuda.setIcon(helpIcon);\n \n ImageIcon aboutIcon = new ImageIcon((getClass().getResource(\"Icones/SOBRE.png\")));\n image = aboutIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n aboutIcon = new ImageIcon(image); // transform it back\n menuBotaoSobre.setIcon(aboutIcon);\n }",
"public int calcularIMC(){\r\n\t\t//Calculamos el peso de la persona\r\n\t\tdouble pesoActual=peso/(Math.pow(altura, 2));\r\n\t\t//Segun el peso, devuelve un codigo\r\n\t\tif (pesoActual>=18.75 && pesoActual<=24.9){\r\n\t\t\treturn NORMAL;\r\n\t\t}else if(pesoActual<18.75){\r\n \t\t\treturn DELGADO;\r\n \t\t}else{\r\n \t\t\treturn SOBREPESO;\r\n \t\t}\r\n \t}",
"public ImageIcon getFoto(){\r\n return (ImageIcon)beneficiario[5];\r\n }",
"@Override\n public Vehicule creer(String immatriculation, String marque, String modele, Client client, int tonnage, int hauteur) {\n return new Camion(immatriculation,marque,modele,client,tonnage,hauteur);\n }",
"public void moverSmart(Matriz m)\r\n\t{\n\r\n\t\tint mov = smart.calcularMovimiento();\r\n\r\n\t\t// System.out.println(\"El movimiento elegido es \" + mov);\r\n\r\n\t\tsupermover(mov, m);\r\n\r\n\t}",
"public Polaznik(String ime, String prezime) {\r\n\t\tthis.ime = ime;\r\n\t\tthis.prezime = prezime;\r\n\t\tidPolaznik++;\r\n\t\tidGlobalPolaznik++;\r\n\t}",
"public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }",
"public void setIcone(String icone) {\n this.icone = icone;\n }",
"private void resizePhoto() {\n if (photoPath.length() == 0) {\n return;\n }\n Log.d(LOG_TAG, \"Path dell' immagine: \" + photoPath);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, options);\n\n options = new BitmapFactory.Options();\n\n options.inJustDecodeBounds = true;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n Log.d(LOG_TAG, \"Width:\" + bitmapWidth + \" height:\" + bitmapHeight);\n\n options.inSampleSize = calculateInSampleSize(options, bitmapWidth, bitmapHeight);\n\n options.inJustDecodeBounds = false;\n //halfHorizontal = bitmapWidth / 2;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n\n }",
"public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }",
"public void majAffichage() {\n this.grid.getChildren().clear(); // vide tout le gridpane\n for (int i = 0; i < this.matrice.getNbLigne(); i++) {\n for (int j = 0; j < this.matrice.getNbColonne(); j++) {\n Node n = this.matrice.getCell(i, j); // recupère les imgViews de la matrice\n this.grid.setHalignment(n, HPos.CENTER); // place les labels au centre des cases\n this.grid.add(this.matrice.getCell(i, j), j, i);\n }\n }\n }",
"@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"void PegaMIDI(){\r\n // ler os dispositivos MIDIS instalados na máquina, hardware e softwares\r\n MidiDevice device;\r\n MidiDevice.Info[] infos = MidiSystem.getMidiDeviceInfo();\r\n for (int i=0; i<infos.length ;i++){\r\n try {\r\n device=MidiSystem.getMidiDevice(infos[i]);\r\n MDevices.add(device);\r\n cbMidi.addItem(device.getDeviceInfo().getName()+\" \"+device.getDeviceInfo().getVersion());\r\n \r\n } catch (MidiUnavailableException e){}\r\n \r\n }\r\n }",
"public void actualiza() {\n //Si el indice de bloque a mover no es -1(no hay que mover bloque)...\n if(bAvanzaBloque) {\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Mueves los bloques que hay que mover\n if(objBloque.getVelocidad()!=0) {\n objBloque.abajo();\n }\n }\n }\n //Si la direccion X es true(el proyectil va a la derecha)\n if (bDireccionX) {\n objProyectil.derecha();\n } //Si es false (va ala izquierda)\n else {\n objProyectil.izquierda();\n }\n\n //Si la direccion Y es true(el proyectil va hacia arriba)\n if (!bDireccionY) {\n objProyectil.arriba();\n } //Si es false (va hacia abajo)\n else {\n objProyectil.abajo();\n }\n\n if (iNumBloques == 0) { // Si se acaban los bloques\n iNumBloques = 54; // Se reinicia la variable de los bloques\n iNivel++; // Aumenta el nivel\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se aumenta la velocidad del proyectil\n objProyectil.setVelocidad(objProyectil.getVelocidad() + 3);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n // se mueve hacia arriba el proyectil\n bDireccionY = false;\n bDireccionX = true;\n }\n\n if (iVidas == 0) {\n bPerdio = true;\n }\n /*if (iVidas == 0) {\n bPerdio = true;\n bPausado = true;\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n // La direccion del proyectil sera para arrib\n bDireccionY = false;\n // La direccion que nos interesa es: false: Izq. true: Dererecha\n bDireccionX = true;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2) \n - (objProyectil.getAncho() / 2)), (getHeight() \n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }\n \n if (!bPerdio) {\n iVidas = 3; // se reinicia la cantidad de vidas\n iScore = 0; // se reincia el score\n }*/\n }",
"public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}",
"public void setImagen(String imagen) {\n this.imagen = imagen;\n }",
"void setAssociatedPart(int asProID) {\n this.asProID = asProID;\n }",
"public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }",
"public void agregarMedico(String nombre, String nit, int dpi,double salario, int colegiado, boolean especialista){\r\n Medico med = new Medico();\r\n med.setMedico(nombre, nit, dpi, salario,colegiado, especialista);\r\n medicosenfermeras.add(med);\r\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public String getImagen() {\n return imagen;\n }",
"public Pile() {\r\n\t\tconstruirePile();\r\n\t}"
] | [
"0.5846005",
"0.5766934",
"0.566042",
"0.56437486",
"0.54389524",
"0.5420243",
"0.54162467",
"0.53950465",
"0.5371284",
"0.53481793",
"0.53344226",
"0.529476",
"0.5285528",
"0.52748924",
"0.5274615",
"0.52370596",
"0.52327305",
"0.5204383",
"0.51859623",
"0.5184866",
"0.515891",
"0.5146739",
"0.51465654",
"0.5123622",
"0.5121759",
"0.5121541",
"0.5118243",
"0.5117144",
"0.5110222",
"0.5108546",
"0.51062465",
"0.50963",
"0.50852895",
"0.50799024",
"0.50735825",
"0.5063139",
"0.5034952",
"0.5033718",
"0.5030956",
"0.5030922",
"0.5022913",
"0.5015159",
"0.50149965",
"0.50132483",
"0.5009105",
"0.5002561",
"0.49943548",
"0.49943206",
"0.4990419",
"0.49903047",
"0.4971336",
"0.49640983",
"0.49624413",
"0.4961856",
"0.4950658",
"0.49503583",
"0.49500236",
"0.49464363",
"0.4945448",
"0.49353933",
"0.49336123",
"0.49196562",
"0.49078202",
"0.4905812",
"0.48957926",
"0.4892952",
"0.48904374",
"0.48891354",
"0.4884064",
"0.48830807",
"0.48800978",
"0.48796663",
"0.48765126",
"0.487254",
"0.48725012",
"0.48687828",
"0.4867701",
"0.48621523",
"0.48575",
"0.48566538",
"0.484968",
"0.4847045",
"0.48430526",
"0.48426583",
"0.48368517",
"0.4836132",
"0.4832591",
"0.48313493",
"0.48266244",
"0.48237678",
"0.48173782",
"0.48171824",
"0.48160642",
"0.48135614",
"0.48126546",
"0.4811451",
"0.4808849",
"0.4806953",
"0.47948113",
"0.47927827"
] | 0.56237125 | 4 |
Modifica l'immagine del prodotto. | public void setImmagine(String immagine) {
this.setImmagine(new File (immagine));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pintarMesa() {\n try {\n mesa = ImageIO.read(new File(\"src/imagenes/Mesa.jpg\")).getScaledInstance(1600, 1300, Image.SCALE_SMOOTH);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public Proyectil(){\n disparar=false;\n ubicacion= new Rectangle(0,0,ancho,alto);\n try {\n look = ImageIO.read(new File(\"src/Disparo/disparo.png\"));\n } catch (IOException ex) {\n System.out.println(\"error la imagen del proyectil no se encuentra en la ruta por defecto\");\n }\n }",
"@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}",
"public void imprimirNivelMedio(){\n\t\tmodCons.imprimirNivelMedio();\n\t}",
"public void setImmagine(File immagine) {\n\t\tif(immagine.exists() && !immagine.isDirectory()) { \n\t\t\tthis.immagine = immagine;\n\t\t}\n\t\telse {\n\t\t\tthis.immagine = IMMAGINE_DEFAULT;\n\t\t}\n\t}",
"public static void classificarImc(double peso, double altura) {\n\t\tdouble imc = peso / (altura * altura); \n\t\t\n\t\tif (imc < 20.0) {\n\t\t\tSystem.out.println(\"abaixo do peso\");\n\t\t}\n\t\telse if (imc < 25.0) {\n\t\t\tSystem.out.println(\"peso normal\");\n\t\t}\n\t\telse if (imc < 30.0) {\n\t\t\tSystem.out.println(\"sobrepeso\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"obeso\");\n\t\t}\n\t}",
"@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}",
"private void inizializzazione()\n {\n //Costruzione della Istanza display\n display = new Display(titolo,larghezza,altezza);\n \n /*Viene aggiunto il nostro gestore degli input da tastiera\n * alla nostra cornice.*/\n display.getCornice().addKeyListener(gestoreTasti);\n display.getCornice().addMouseListener(gestoreMouse);\n display.getCornice().addMouseMotionListener(gestoreMouse);\n display.getTelaGrafica().addMouseListener(gestoreMouse);\n display.getTelaGrafica().addMouseMotionListener(gestoreMouse);\n \n //Codice temporaneo per caricare la nostra immagine nel nostro programma\n /*testImmagine = CaricatoreImmagini.caricaImmagini(\"/Textures/Runner Stickman.png\");*/\n \n //Inizializzazione dell'attributo \"foglio\". Gli viene passato come parametro \n //\"testImmagine\" contenente l'immagine del nostro sprite sheet.\n /*foglio = new FoglioSprite(testImmagine);*/\n \n /*Inizializzazione della classe Risorse.*/\n Risorse.inizializzazione();\n \n maneggiatore = new Maneggiatore(this);\n /*Inizializzazione Camera di Gioco*/\n camera = new Camera(maneggiatore,0,0);\n \n /*Inizializzazione degli stati di gioco.*/\n statoMenu = new StatoMenù(maneggiatore);\n Stato.setStato(statoMenu);\n }",
"public Image meurt() {\n\t\t\tString str;//va contenir le nom de l'image\n\t\t\tImageIcon ico;//nom de la nouvelle instance de la methode ImageIcon\n\t\t\tImage img;//va etre egale a ico, et va retourner l'image voulu\n\t\t\t\n\t\t\tstr = \"/images/bouleDeFeu.png\";\n\t\t\tthis.compteurMort++;//on incremente un compteur\n\t\t\tif(this.compteurMort > 100) {//si le compteur arrive jusqu'a 100, mario meurt, \n\t\t\t\tstr = \"/images/mortDEMario.png\";//donc on change d'image\n\t\t\t\tthis.setY(this.getY() - 1);//fait monter l'image de la mort de mario vers le ciel\n\t\t\t}\n\t\t\tico = new ImageIcon(getClass().getResource(str));\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\n\t\t}",
"private void change_im_tool4(int boo){\r\n if(boo == 0){ //IMAGEN SI EL USUARIO ESTA INHABILITADO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img07.png\")));\r\n }else{ //IMAGEN PARA HABILITAR AL USUARIO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }\r\n }",
"public Coloca_imagen(){\n \n \n }",
"private void aumentarPilha() {\n this.pilhaMovimentos++;\n }",
"public VentanaFichaMedica() {\n initComponents(); \n setSize(1195, 545);\n setIcon();\n setLocationRelativeTo(null);\n setResizable(false);\n cargar(\"\");\n setTitle(\"LISTA DE FICHAS MÉDICAS\");\n inicar(); \n }",
"public void chocoContraMunicion(IMunicion municion){}",
"public void cambiarEstadoImagen(){\n ImageIcon respuesta=new ImageIcon();\n if(oportunidades==0){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado7.jpg\"));\n }\n if(oportunidades==1){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado6.jpg\"));\n }\n if(oportunidades==2){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado5.jpg\"));\n }\n if(oportunidades==3){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado4.jpg\"));\n }\n if(oportunidades==4){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado3.jpg\"));\n }\n if(oportunidades==5){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado2.jpg\"));\n }\n if(oportunidades==6){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado1.jpg\"));\n }\n if(oportunidades==7){\n respuesta=new ImageIcon(getClass().getResource(\"Ahorcado0.jpg\"));\n }\n this.imgAhorcado=respuesta; \n }",
"public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }",
"public static void calcularIMC(Persona p) throws NotCalculateException {\n if (p != null && p.getAltura() != 0 && p.getPeso() != 0) {\r\n double imc= p.getPeso()/Math.pow(p.getAltura(),2);\r\n \r\n if (imc<16){\r\n System.out.println(\"IMC: \" + imc + \" \" + IMCMIN_16);\r\n } else if (imc <18.5){\r\n System.out.println(\"IMC: \" + imc + \" \" + IMC16_18);\r\n } else if (imc<25){\r\n System.out.println(\"IMC: \" + imc + \" \" + IMC18_25);\r\n } else if (imc<30){\r\n System.out.println(\"IMC: \" + imc + \" \" + IMC25_30);\r\n } else {\r\n System.out.println(\"IMC: \" + imc + \" \" + IMCMAX_30);\r\n }\r\n } else {\r\n String mensaje=\"No se puede calcular el IMC\";\r\n if (p == null) {\r\n mensaje=\"Persona no definida\";\r\n }\r\n else {\r\n mensaje=\"Datos necesarios no definidos\";\r\n }\r\n throw new NotCalculateException(mensaje);\r\n }\r\n }",
"public Mine(Piegeur piegeur) {\n piegeur.getVue().getPlateau().getCelluleByCoordonnees(piegeur.getObjectif())\n .poseMine(piegeur.getNumEquipe());\n piegeur.perdUneMine();\n piegeur.perdEnergieApresAction();\n piegeur.getVue().getPlateau().getCelluleByCoordonnees(piegeur.getObjectif())\n .setImage((piegeur.getNumEquipe() == Constante.EQUIPE_UN ? \"M\" : \"m\"));\n }",
"public MecanismoMultiplicacionPrimo(int numPrimo)\n {\n super(numPrimo) ;\n\n }",
"public void updateIM(){\n \n }",
"private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}",
"public void aktualisiere(PhysicalObject po){\n\t\tthis.po=po;\n\t\tKipper kipperObj= (Kipper) po;\t\t\n\t\tx = kipperObj.getX();\n\t\ty = kipperObj.getY();\n\t\tbreite=kipperObj.getBreite();\n\t\tlaenge=kipperObj.getLaenge();\n\t\twinkel=kipperObj.getWinkel();\n\t\tlkwfahrt=kipperObj.isFahrt();\t\t\n\t\tif (kipperObj.getMaterialListe().size() == 1) {\n\t\t\tmatRatio=kipperObj.getMaterialListe().get(0).getVolumen()/kipperObj.getMaxVolumen();\t\n\t\t\tif(matRatio > 1)\n\t\t\t\tmatRatio=1;\n\t\t}\t\t\n\t}",
"public void updateIM() {\n\t\tScalarIMR imr = imrGuiBean.getSelectedIMR_Instance();\n//\t\timtGuiBean.setIM(imr,imr.getSupportedIntensityMeasuresIterator()) ;\n\t}",
"private void obsluga_pilek()\n {\n if (liczba_pilek > 0)\n {\n i++;\n if (i%50==0)\n {\n p.add(new Pilka(w.getPolozenie_x(), w.getPolozenie_y(), getWidth(), getHeight(), rozmiar_pilki));\n liczba_pilek--;\n }\n }\n }",
"private void jogarIa() {\n\t\tia = new IA(this.mapa,false);\r\n\t\tia.inicio();\r\n\t\tthis.usouIa = true;\r\n\t\tatualizarBandeirasIa();//ATUALIZA AS BANDEIRAS PARA DEPOIS QUE ELA JOGOU\r\n\t\tatualizarNumeroBombas();//ATUALIZA O NUMERO DE BOMBAS PARA DPS QUE ELA JOGOU\r\n\t\tatualizarTela();\r\n\t\tif(ia.isTaTudoBem() == false)\r\n\t\t\tJOptionPane.showMessageDialog(this, \"IMPOSSIVEL PROSSEGUIR\", \"IMPOSSIVEL ENCONTRAR CASAS CONCLUSIVAS\", JOptionPane.INFORMATION_MESSAGE);\r\n\t}",
"private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void supprimerRenommage(){\n supprRenomGram.supprRenom();\n setChanged();\n notifyObservers(\"5\");\n }",
"private void change_im_check(boolean boo){\r\n if(boo){ //IMAGEN SI EL MEASURE ES CORRECTO\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }else{ //IMAGEN PARA LA BUSQUEDA DE UN MEASURE\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img34.png\")));\r\n }\r\n }",
"public void retournerLesPilesParcelles() {\n int compteur = 0;\n //pour chacune des 4 piles , retourner la parcelle au sommet de la pile\n for (JLabel jLabel : pileParcellesGUI) {\n JLabel thumb = jLabel;\n retournerParcelles(thumb, compteur);\n compteur++;\n }\n }",
"public void atualizarConsumosMedio(Integer idImovel, Integer anoMesGrupoFaturamento, int consumoMedioImovel,\n\t\t\t\t\tint consumoMedioHidrometroAgua, int consumoMedioHidrometroEsgoto) throws ErroRepositorioException;",
"public Agnello mangiaPecora() {\n\t\tint indiceCasuale = (int) (Math.random() * pecore.size());\n\t\tAgnello pecoraMangiata = pecore.get(indiceCasuale);\n\t\tprelevaAnimale(pecoraMangiata.getTipo());\n\t\treturn pecoraMangiata;\n\t}",
"@Override\r\n\tpublic void majMemoireIA() {\r\n\t}",
"public interface CambioImagenPerfil{\n\n void opcionEscogida(String app);\n }",
"public void mover_peca(String comando) {\n\t\tint ii = '7' - comando.charAt(1); //i inicial\n\t\tint ji = comando.charAt(0) - 'a'; //j inicial\n\t\tint id = '7' - comando.charAt(4); //i destino\n\t\tint jd = comando.charAt(3) - 'a'; //j destino\n\n\t\tif(this.mov_valido(ii, ji, id, jd)) {\n\t\t\tm[(ii+id)/2][(ji+jd)/2] = null;\n\t\t\tm[id][jd] = m[ii][ji];\n\t\t\tm[ii][ji] = null;\n\t\t}\n\n\t}",
"Imagem getImagem();",
"public ImagePlus morph(ImagePlus imp_old,int proc, int rad){\nImageProcessor img = imp_old.getProcessor();\nImagePlus morphImg;\nif (proc==0){\nImageProcessor dil = Morphology.dilation(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"dilation\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else if (proc==1){\nImageProcessor dil = Morphology.erosion(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"erosion\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n} else{\nImageProcessor dil = Morphology.closing(img,Strel.Shape.OCTAGON.fromDiameter(rad));\nmorphImg = new ImagePlus(\"closing\",dil);\nmorphImg.updateAndDraw();\nreturn morphImg;\n}\n}",
"public void setIdImagen(int idImagen) {\n this.idImagen = idImagen;\n }",
"public String getPicturePathPro() {\n return picturePathPro;\n }",
"public void mostrarAyudaCM() {\n try {\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"res/help_maker.png\")));\n }\n catch (Exception e) {}\n }",
"private void cargarPreescripcionMedica() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\tparametros.put(\"ocultaValor\", \"\");\r\n\t\tparametros.put(\"admision\", admision_seleccionada);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false, \"/pages/receta_rips.zul\",\r\n\t\t\t\t\"PRESCRIPCION MEDICA\", parametros);\r\n\t}",
"public CadastroMicrobio() {\n initComponents();\n setIcon();\n }",
"@Override\n\t\tpublic Image marche(String nom, int frequence) {\n\t\t\t\n\t\t\tString str;\n\t\t\tImageIcon ico;\n\t\t\tImage img;\n\t\t\t\n\t\t\tif(this.marche == false || Main.level.getxPos() <= 0 || Main.level.getxPos() > 4430) {//si le personnage est arreter ou completement a gauche\n\t\t\t\tif(this.versDroite == true) {//si vers la droite image de droite\n\t\t\t\t\tstr = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}//si non image de gauche\n\t\t\t}else {//ou le personnage se deplace, on incremente donc le compteur a chaque fois que la scene est redessiné\n\t\t\t\tthis.compteur++;\n\t\t\t\tif(this.compteur / frequence == 0) {//si compteur/par frequence est = a 0 c'est que le personnage est a l'arret donc:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"ArretDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"ArretGauche.png\";}\n\t\t\t\t}else {\t//si non c'est que le personnage se deplace:\n\t\t\t\t\tif(this.versDroite == true) {str = \"/images/\" + nom + \"MarcheDroite.png\";\n\t\t\t\t\t}else {str = \"/images/\" + nom + \"MarcheGauche.png\";}\n\t\t\t\t}\n\t\t\t\tif(this.compteur == 2 * frequence) {this.compteur = 0;}//si compteur est = a 2fois la frequence ont remet le compteur a zero\t\n\t\t\t}\n\t\t\t//affichage de l'image du personnage\n\t\t\tico = new ImageIcon(getClass().getResource(str));//TROUVER LE PROBLEME LIÉ A CETTE LIGNE.....\n\t\t\timg = ico.getImage();\n\t\t\treturn img;\t\n\t\t\t\t\t\n\t\t}",
"public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}",
"public void setPicturePathPro(String picturePathPro) {\n this.picturePathPro = picturePathPro;\n }",
"public void mutacioni(Individe individi, double probabiliteti) {\n int gjasaPerNdryshim = (int) ((1 / probabiliteti) * Math.random());\r\n if (gjasaPerNdryshim == 1) {\r\n int selectVetura1 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e pare\r\n int selectPikenKamioni1 = (int) (Math.random() * individi.pikatEVeturave[selectVetura1].size());//selekton piken e vetures tpare\r\n if (pikatEVeturave[selectVetura1].size() == 0) {\r\n return;\r\n }\r\n Point pika1 = individi.pikatEVeturave[selectVetura1].get(selectPikenKamioni1);//pika 1\r\n\r\n int selectVetura2 = (int) (Math.random() * individi.pikatEVeturave.length);//selekton veturen e dyte\r\n int selectPikenKamioni2 = (int) (Math.random() * individi.pikatEVeturave[selectVetura2].size());//selekton piken e vetures tdyte\r\n if (pikatEVeturave[selectVetura2].size() == 0) {\r\n return;\r\n }\r\n Point pika2 = individi.pikatEVeturave[selectVetura2].get(selectPikenKamioni2);//pika 2\r\n\r\n individi.pikatEVeturave[selectVetura2].set(selectPikenKamioni2, pika1);//i ndrron vendet ketyre dy pikave\r\n individi.pikatEVeturave[selectVetura1].set(selectPikenKamioni1, pika2);\r\n }\r\n\r\n }",
"public void recolheMao() {\n\t\tcartas[0].visible = false;\n\t\tfor (int i = 4; i <= 15; i++) {\n\t\t\tCartaVisual c = cartas[i];\n\t\t\tif ((c.top != topBaralho) || (c.left != leftBaralho)) {\n\t\t\t\tc.movePara(leftBaralho, topBaralho, 100);\n\t\t\t\tc.setCarta(null);\n\t\t\t\tc.descartada = false;\n\t\t\t\tcartasJogadas.remove(c);\n\t\t\t}\n\t\t}\n\t}",
"public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}",
"private void gravarPromocao() {\n\t\tString nome = textFieldNome.getText();\n\t\tString descricao = textFieldDescricao.getText();\n\t\tboolean ativo = true;\n\n\t\tPromocao promocao = null;\n\n\t\tif (modoEditar) {\n\t\t\tpromocao = promocaoAntiga;\n\n\t\t\tpromocao.setNome(nome);\n\t\t\tpromocao.setDescricao(descricao);\t\t\t\n\t\t\tpromocao.setAtiva(ativo);\n\n\t\t} else {\n\t\t\tpromocao = new Promocao( nome, descricao, ativo);\n\t\t}\n\n\t\ttry {\n\t\t\tif (modoEditar) {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().editarPromocao(promocao);\n\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção editada com sucesso!\", \"Promoção Editada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t} else {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().criarPromocao(promocao);\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção criada com sucesso!\", \"Promoção Criada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\n\n\t\t} catch (Exception exc) {\n\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\"Error a criar a Promoção \" + exc.getMessage(), \"Error\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t}",
"public void setImmatriculation(java.lang.String immatriculation) {\n this.immatriculation = immatriculation;\n }",
"public void prepareObjetivos(){\n\t\tfor( int x= 0 ; x < game.getAmountObjetivos();x++){\n\t\t\tObjetivo o = game.getObjetivo(x);\n\t\t\timage = o.getImage();\n\t\t\ttemporal = image.getImage().getScaledInstance(o.getAncho(), o.getAlto(), Image.SCALE_SMOOTH);\n\t\t\to.setImage(new ImageIcon(temporal));\n\t\t}\n\t\t\n\t}",
"public void setIconTablaPlantilla() {\n\t\t// Establece el icono del boton editar\n\t\tFile archivo1 = new File(\"imagenes\" + File.separator + \"lapices.png\");\n\t\tImage imagen1 = new Image(archivo1.toURI().toString(), 50, 50, true, true, true);\n\t\tbtnModificar.setGraphic(new ImageView(imagen1));\n\t\tbtnModificar.setContentDisplay(ContentDisplay.CENTER);\n\t}",
"public void actualizarImagen() {\n\t\tentidadGrafica.actualizarImagen(this.valor);\n\t}",
"public File getImmagine() {\n\t\treturn immagine;\n\t}",
"public void moverArriba() {\n estado = EstadosPersonaje.QUIETO;\n mover(new Vector2(0, 1));\n }",
"private void moverCamionetas() {\n for (Camioneta cam : arrEnemigosCamioneta) {\n cam.render(batch);\n\n cam.moverIzquierda();\n }\n }",
"public void setAnoFilmagem(String anoFilmagem);",
"public void muovi() {\n\n for (int i = punti; i > 0; i--) {\n x[i] = x[(i - 1)];\n y[i] = y[(i - 1)];\n }\n\n if (sinistra) {\n x[0] -= DIMENSIONE_PUNTO;\n }\n\n if (destra) {\n x[0] += DIMENSIONE_PUNTO;\n }\n\n if (su) {\n y[0] -= DIMENSIONE_PUNTO;\n }\n\n if (giu) {\n y[0] += DIMENSIONE_PUNTO;\n }\n }",
"public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }",
"public void morir()\r\n\t{\r\n\t\tif(this.grafico != null)\t\r\n\t\t\tthis.mover(4);\r\n\t}",
"@Test\n\tpublic void obtenerPrevisualizacionTest() {\n\t\tString contenido = \"contenido\";\n\t\tArchivo ar = new Imagen(\"test\", contenido);\n\t\tString expected = \"test\" + \"(\" + ar.obtenerTamaño() + \" bytes, \" + ar.obtenerMimeType() + \")\";\n\t\tassertEquals(expected, ar.obtenerPreVisualizacion());\n\t}",
"@Override\n public void imprimirMatricula() \n {\n HashMap parameters = new HashMap();\n parameters.put(\"especialidad\", new String(\"123\"));\n Print print = new Print();\n byte[] bytes = print.cargar_reporte(\"/WEB-INF/reportes/hola.jasper\", parameters).toByteArray();\n InputStream in = new ByteArrayInputStream(bytes);\n print.imprimir(in);\n }",
"public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"public void setPromId(Integer promId) {\n this.promId = promId;\n }",
"public iAddCancion(int _id, String _miImagen) {\n this.id = _id;\n this.miImagen = _miImagen;\n initComponents();\n dameTodoAlbum(id);\n Image img = new ImageIcon(\"src/img/\"+miImagen).getImage();\n ImageIcon img2 = new ImageIcon(img.getScaledInstance(jLabelMiImagen.getWidth(), jLabelMiImagen.getHeight(), Image.SCALE_SMOOTH));\n\n jLabelMiImagen.setIcon(img2);\n }",
"@Override\n\tpublic DAOIncidencias CrearInformesMedicos() {\n\t\treturn null;\n\t}",
"public void reinicio() {\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n iScore = 0; // se reinicia el score\n iVidas = 3; // se reinicia la cantidad de vidas\n // La direccion del proyectil sera para arriba\n bDireccionY = false;\n // la direccion del proyectil sera al contrario de donde iba\n bDireccionX = !bDireccionX;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }",
"public int notaMedia() {\n\t\tint media = 0;\n\t\t//sumatoria\n\t\tfor (Integer integer : notas) {\n\t\t\tmedia += integer.intValue();\n\t\t}\n\t\t//division\n //control divison por 0\n if(notas.size() != 0){\n\t\tmedia /= notas.size();\n }\n\t\treturn media;\n\t}",
"public void abrirManoMaximo()\n {\n brazo.manoAbrirMaximo();\n }",
"public void putMoleculeInCilia(){\n\t\t\tcilia.setOdorantMolecule(molecule);\n\t\t}",
"void imprimeExtrato(){\n\t\tthis.imprimeExtrato(15);\n\t}",
"public void iniciarNovaPartida(Integer posicao);",
"public void setFondoMapaLibre() {\n URL url = getClass().getResource(\"/Imagenes/ImaxeVUbi.png\");\n\tthis.setOpaque(false);\n\tthis.image = new ImageIcon(url).getImage();\n\trepaint();\n }",
"private void setPhotoAttcher() {\n\n }",
"private void esvaziaMensageiro() {\n\t\tMensageiro.arquivo=null;\n\t\tMensageiro.lingua = linguas.indexOf(lingua);\n\t\tMensageiro.linguas=linguas;\n\t\tMensageiro.nomeArquivo=null;\n\t}",
"public AssocImagemSom(Parcel in) \r\n\t{\r\n\t\treadFromParcel(in);\r\n\t}",
"public void cambiarImagenGrande(ImagenTemp it) {\n\t\t\n\t\t//TODO automatizar haciendo que el método directamente coloque la imagen escalada en el panel?\n\t\tImage imgtemp = VistaPrincipal.ponerImagenEscalada(it.getbImagen(), panelImagenGrande);\n\t\tlabelImagenGrande.setIcon(new ImageIcon(imgtemp));\n\t\tlabelImagenGrande.setBounds((int)(((float)panelImagenGrande.getWidth()/2) - ((float)imgtemp.getWidth(null))/((float)2)), (int)(((float)panelImagenGrande.getHeight()/2) - ((float)imgtemp.getHeight(null))/((float)2)),imgtemp.getWidth(null), imgtemp.getHeight(null));\n\t\t\n\t\t\n\t\t//Se rellenan los datos de la imagen seleccionada\n\t\tlabelNombre.setText(it.getNombre()+it.getExtension());\n\t\t\n\t\tLocalDate localDate = LocalDate.ofEpochDay(it.getFecha()/(1000*60*60*24));//TODO llevar esto a un método estático de VistaPrincipal si se repite\n\t\tlabelFecha.setText(localDate.getDayOfMonth() + \"/\" + localDate.getMonthValue() + \"/\" + localDate.getYear());\n\t\t\n\t\tlabelResolucion.setText(it.getbImagen().getWidth() + \" x \" + it.getbImagen().getHeight());\n\t\t\n\t\tString peso = it.getImagen().length()/1024 < 1000 ? (float)(it.getImagen().length()/1024) + \" kB\" : (int)(it.getImagen().length()/(1024*1024)) + \" MB\";\n\t\tlabelPeso.setText(peso);\n\t\t\n\t\t\n\t\t//Se rellenan las etiquetas\n\t\tpanelImagenEtiquetas.removeAll();\n\t\tfor(Etiquetas e : it.getArrayEtiquetas()) panelImagenEtiquetas.add(e);\n\t\tresultadosEste.revalidate();\n\t\tresultadosEste.repaint();\n\t\t\n\t}",
"public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }",
"public EditorDeTexto() {\n inedit = new INEdit();\n\n initComponents();\n\n this.setTitle(\"INEdit\"); // Altera o título\n this.barraMenu.setVisible(true);\n menuArquivo.setEnabled(false);\n menuUsuario.setEnabled(false);\n initPainelEscolheUsuario();\n this.setContentPane(PainelEscolheUsuario);\n this.pack();\n \n \n ImageIcon userIcon = new ImageIcon((getClass().getResource(\"Icones/USER.png\")));\n Image image = userIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n userIcon = new ImageIcon(image); // transform it back\n menuBotaoAlterarUsuario.setIcon(userIcon);\n \n ImageIcon saveIcon = new ImageIcon((getClass().getResource(\"Icones/SAVE.png\")));\n image = saveIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n saveIcon = new ImageIcon(image); // transform it back\n menuBotaoSalvar.setIcon(saveIcon);\n menuBotaoSalvarComo.setIcon(saveIcon);\n \n ImageIcon openIcon = new ImageIcon((getClass().getResource(\"Icones/OPEN.png\")));\n image = openIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n openIcon = new ImageIcon(image); // transform it back\n menuBotaoAbrir.setIcon(openIcon);\n \n ImageIcon fontIcon = new ImageIcon((getClass().getResource(\"Icones/FONT.png\")));\n image = fontIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n fontIcon = new ImageIcon(image); // transform it back\n menuFormatacao.setIcon(fontIcon);\n \n ImageIcon helpIcon = new ImageIcon((getClass().getResource(\"Icones/AJUDA.png\")));\n image = helpIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n helpIcon = new ImageIcon(image); // transform it back\n menuBotaoAjuda.setIcon(helpIcon);\n \n ImageIcon aboutIcon = new ImageIcon((getClass().getResource(\"Icones/SOBRE.png\")));\n image = aboutIcon.getImage(); // transform it\n image = image.getScaledInstance(15, 15, java.awt.Image.SCALE_SMOOTH); // scale it the smooth way \n aboutIcon = new ImageIcon(image); // transform it back\n menuBotaoSobre.setIcon(aboutIcon);\n }",
"public int calcularIMC(){\r\n\t\t//Calculamos el peso de la persona\r\n\t\tdouble pesoActual=peso/(Math.pow(altura, 2));\r\n\t\t//Segun el peso, devuelve un codigo\r\n\t\tif (pesoActual>=18.75 && pesoActual<=24.9){\r\n\t\t\treturn NORMAL;\r\n\t\t}else if(pesoActual<18.75){\r\n \t\t\treturn DELGADO;\r\n \t\t}else{\r\n \t\t\treturn SOBREPESO;\r\n \t\t}\r\n \t}",
"public ImageIcon getFoto(){\r\n return (ImageIcon)beneficiario[5];\r\n }",
"@Override\n public Vehicule creer(String immatriculation, String marque, String modele, Client client, int tonnage, int hauteur) {\n return new Camion(immatriculation,marque,modele,client,tonnage,hauteur);\n }",
"public void moverSmart(Matriz m)\r\n\t{\n\r\n\t\tint mov = smart.calcularMovimiento();\r\n\r\n\t\t// System.out.println(\"El movimiento elegido es \" + mov);\r\n\r\n\t\tsupermover(mov, m);\r\n\r\n\t}",
"public Polaznik(String ime, String prezime) {\r\n\t\tthis.ime = ime;\r\n\t\tthis.prezime = prezime;\r\n\t\tidPolaznik++;\r\n\t\tidGlobalPolaznik++;\r\n\t}",
"public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }",
"public void setIcone(String icone) {\n this.icone = icone;\n }",
"private void resizePhoto() {\n if (photoPath.length() == 0) {\n return;\n }\n Log.d(LOG_TAG, \"Path dell' immagine: \" + photoPath);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(photoPath, options);\n\n options = new BitmapFactory.Options();\n\n options.inJustDecodeBounds = true;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n Log.d(LOG_TAG, \"Width:\" + bitmapWidth + \" height:\" + bitmapHeight);\n\n options.inSampleSize = calculateInSampleSize(options, bitmapWidth, bitmapHeight);\n\n options.inJustDecodeBounds = false;\n //halfHorizontal = bitmapWidth / 2;\n photoBM = BitmapFactory.decodeFile(photoPath, options);\n\n }",
"public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }",
"public void majAffichage() {\n this.grid.getChildren().clear(); // vide tout le gridpane\n for (int i = 0; i < this.matrice.getNbLigne(); i++) {\n for (int j = 0; j < this.matrice.getNbColonne(); j++) {\n Node n = this.matrice.getCell(i, j); // recupère les imgViews de la matrice\n this.grid.setHalignment(n, HPos.CENTER); // place les labels au centre des cases\n this.grid.add(this.matrice.getCell(i, j), j, i);\n }\n }\n }",
"@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"void PegaMIDI(){\r\n // ler os dispositivos MIDIS instalados na máquina, hardware e softwares\r\n MidiDevice device;\r\n MidiDevice.Info[] infos = MidiSystem.getMidiDeviceInfo();\r\n for (int i=0; i<infos.length ;i++){\r\n try {\r\n device=MidiSystem.getMidiDevice(infos[i]);\r\n MDevices.add(device);\r\n cbMidi.addItem(device.getDeviceInfo().getName()+\" \"+device.getDeviceInfo().getVersion());\r\n \r\n } catch (MidiUnavailableException e){}\r\n \r\n }\r\n }",
"public void actualiza() {\n //Si el indice de bloque a mover no es -1(no hay que mover bloque)...\n if(bAvanzaBloque) {\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Mueves los bloques que hay que mover\n if(objBloque.getVelocidad()!=0) {\n objBloque.abajo();\n }\n }\n }\n //Si la direccion X es true(el proyectil va a la derecha)\n if (bDireccionX) {\n objProyectil.derecha();\n } //Si es false (va ala izquierda)\n else {\n objProyectil.izquierda();\n }\n\n //Si la direccion Y es true(el proyectil va hacia arriba)\n if (!bDireccionY) {\n objProyectil.arriba();\n } //Si es false (va hacia abajo)\n else {\n objProyectil.abajo();\n }\n\n if (iNumBloques == 0) { // Si se acaban los bloques\n iNumBloques = 54; // Se reinicia la variable de los bloques\n iNivel++; // Aumenta el nivel\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se aumenta la velocidad del proyectil\n objProyectil.setVelocidad(objProyectil.getVelocidad() + 3);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n // se mueve hacia arriba el proyectil\n bDireccionY = false;\n bDireccionX = true;\n }\n\n if (iVidas == 0) {\n bPerdio = true;\n }\n /*if (iVidas == 0) {\n bPerdio = true;\n bPausado = true;\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n // La direccion del proyectil sera para arrib\n bDireccionY = false;\n // La direccion que nos interesa es: false: Izq. true: Dererecha\n bDireccionX = true;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2) \n - (objProyectil.getAncho() / 2)), (getHeight() \n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }\n \n if (!bPerdio) {\n iVidas = 3; // se reinicia la cantidad de vidas\n iScore = 0; // se reincia el score\n }*/\n }",
"public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}",
"public void setImagen(String imagen) {\n this.imagen = imagen;\n }",
"void setAssociatedPart(int asProID) {\n this.asProID = asProID;\n }",
"public void mostrarAutomovil(){\r\n System.out.println(\"Marca: \" + automovil.getMarca());\r\n System.out.println(\"Modelo: \" + automovil.getModelo());\r\n System.out.println(\"Placa: \" + automovil.getPlaca());\r\n }",
"public void agregarMedico(String nombre, String nit, int dpi,double salario, int colegiado, boolean especialista){\r\n Medico med = new Medico();\r\n med.setMedico(nombre, nit, dpi, salario,colegiado, especialista);\r\n medicosenfermeras.add(med);\r\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public String getImagen() {\n return imagen;\n }",
"public Pile() {\r\n\t\tconstruirePile();\r\n\t}"
] | [
"0.5846005",
"0.5766934",
"0.566042",
"0.56437486",
"0.56237125",
"0.54389524",
"0.5420243",
"0.54162467",
"0.53950465",
"0.5371284",
"0.53481793",
"0.53344226",
"0.529476",
"0.5285528",
"0.52748924",
"0.5274615",
"0.52370596",
"0.52327305",
"0.5204383",
"0.51859623",
"0.5184866",
"0.515891",
"0.5146739",
"0.51465654",
"0.5123622",
"0.5121759",
"0.5121541",
"0.5117144",
"0.5110222",
"0.5108546",
"0.51062465",
"0.50963",
"0.50852895",
"0.50799024",
"0.50735825",
"0.5063139",
"0.5034952",
"0.5033718",
"0.5030956",
"0.5030922",
"0.5022913",
"0.5015159",
"0.50149965",
"0.50132483",
"0.5009105",
"0.5002561",
"0.49943548",
"0.49943206",
"0.4990419",
"0.49903047",
"0.4971336",
"0.49640983",
"0.49624413",
"0.4961856",
"0.4950658",
"0.49503583",
"0.49500236",
"0.49464363",
"0.4945448",
"0.49353933",
"0.49336123",
"0.49196562",
"0.49078202",
"0.4905812",
"0.48957926",
"0.4892952",
"0.48904374",
"0.48891354",
"0.4884064",
"0.48830807",
"0.48800978",
"0.48796663",
"0.48765126",
"0.487254",
"0.48725012",
"0.48687828",
"0.4867701",
"0.48621523",
"0.48575",
"0.48566538",
"0.484968",
"0.4847045",
"0.48430526",
"0.48426583",
"0.48368517",
"0.4836132",
"0.4832591",
"0.48313493",
"0.48266244",
"0.48237678",
"0.48173782",
"0.48171824",
"0.48160642",
"0.48135614",
"0.48126546",
"0.4811451",
"0.4808849",
"0.4806953",
"0.47948113",
"0.47927827"
] | 0.5118243 | 27 |
Ritorna l'offerta attiva sul prodotto. | public Promozione getOfferta() {
return offerta;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}",
"public void setOfferta(Promozione offerta) {\n\t\tthis.offerta = offerta;\n\t}",
"public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }",
"public DDetRetContrArtEscenicsAttTO() { }",
"public void setStatoCorrente(Stato prossimo)\r\n\t{\r\n\t\tif(!(corrente==null))\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto NON attiva la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(false);\r\n\t\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Imposto lo stato corrente: \"+prossimo.toString());\r\n\t\tcorrente=prossimo;\r\n\t\tif(!(corrente==null))\r\n\t\t{\r\n\t\t\t//System.out.println(\"Attivo le transazioni \"+corrente.getTransazioniUscenti().size());\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto ATTIVA la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }",
"public void aumentarReproducidas() {\n\t\tsuper.aumentarReproducidas();\n\n\t}",
"@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}",
"public void filtrarOfertas() {\n\n List<OfertaDisciplina> ofertas;\n \n ofertas = ofertaDisciplinaFacade.filtrarEixoCursoTurnoCampusQuad(getFiltrosSelecEixos(), getFiltrosSelecCursos(), turno, campus, quadrimestre);\n\n dataModel = new OfertaDisciplinaDataModel(ofertas);\n \n //Após filtrar volta os parametros para os valores default\n setFiltrosSelecEixos(null);\n setFiltrosSelecCursos(null);\n turno = \"\";\n quadrimestre = 0;\n campus = \"\";\n }",
"public DDetRetContrArtEscenicsAttTO(java.lang.Integer ideFormato, java.lang.Byte numVersionFormato, java.lang.String numEvento, java.lang.String nomEspectaculo, java.lang.Integer codMunicipioEspectaculo, java.lang.Integer codDepartamentoEspectaculo, Integer fecRealizacion, java.lang.Long idePersonaRutProductor, java.lang.String valDireccionProductor, java.lang.Integer codMunicipioProductor, java.lang.Integer codDepartamentoProductor, java.lang.Long numTelefonoProductor, String valLugarEvento, java.lang.Integer numTotBoletasVendidas, java.math.BigDecimal valTotBoletasVendidas, BigDecimal valServDistComerBoleteria, java.lang.Integer numTotBolPrecIgSup3uvt, java.math.BigDecimal valTotBolPrecIgSup3uvt, java.lang.Integer numTotDerAsPreIgSup3uvt, java.math.BigDecimal valTotDerAsPreIgSup3uvt, java.lang.Integer numBoletasRetencionExceso, java.math.BigDecimal valBoletasRetencionExceso, Long ideUsuarioCambio, Timestamp fecCambio) {\n\t\tsetIdeFormato(ideFormato);\n\t\tsetNumVersionFormato(numVersionFormato);\n\t\tsetNumEvento(numEvento);\n\t\tsetNomEspectaculo(nomEspectaculo);\n\t\tsetCodMunicipioEspectaculo(codMunicipioEspectaculo);\n\t\tsetCodDepartamentoEspectaculo(codDepartamentoEspectaculo);\n\t\tsetFecRealizacion(fecRealizacion);\n\t\tsetIdePersonaRutProductor(idePersonaRutProductor);\n\t\tsetValDireccionProductor(valDireccionProductor);\n\t\tsetCodMunicipioProductor(codMunicipioProductor);\n\t\tsetCodDepartamentoProductor(codDepartamentoProductor);\n\t\tsetNumTelefonoProductor(numTelefonoProductor);\n\t\tsetValLugarEvento(valLugarEvento);\n\t\tsetNumTotBoletasVendidas(numTotBoletasVendidas);\n\t\tsetValTotBoletasVendidas(valTotBoletasVendidas);\n\t\tsetValServDistComerBoleteria(valServDistComerBoleteria);\n\t\tsetNumTotBolPrecIgSup3uvt(numTotBolPrecIgSup3uvt);\n\t\tsetValTotBolPrecIgSup3uvt(valTotBolPrecIgSup3uvt);\n\t\tsetNumTotDerAsPreIgSup3uvt(numTotDerAsPreIgSup3uvt);\n\t\tsetValTotDerAsPreIgSup3uvt(valTotDerAsPreIgSup3uvt);\n\t\tsetNumBoletasRetencionExceso(numBoletasRetencionExceso);\n\t\tsetValBoletasRetencionExceso(valBoletasRetencionExceso);\n\t\tsetIdeUsuarioCambio(ideUsuarioCambio);\n\t\tsetFecCambio(fecCambio);\n\t}",
"int contaAttivita() {\n\t\treturn attivita.size();\n\t}",
"public static FileAttente fileAttenteGrande(){\n \n FileAttente bonneFile = (FileAttente) Main.allListAttente.get(0);\n for(Object fileAttente : Main.allListAttente.values())\n {\n FileAttente laFile = (FileAttente) fileAttente;\n int i = bonneFile.getNombreVoiture();\n \n if(((FileAttente) fileAttente).getNombreVoiture()>bonneFile.getNombreVoiture())\n {\n bonneFile = (FileAttente) fileAttente;\n }\n } \n return bonneFile;\n \n }",
"private void attacco(int idGioc) {\n\t\tpartita.attacco(idGioc);\n\t\tStatiGioco prossimoStato=partita.nextPhase(StatiGioco.ATTACKSTATE,StatiGioco.DONTKNOW, idGioc);\n\t\tpartita.getPlayers().getGiocatore(idGioc).setStatoAttuale(prossimoStato);\n\t}",
"private void carregaInformacoes() {\n Pessoa pessoa = (Pessoa) getIntent().getExtras().getSerializable(\"pessoa\");\n edtNome.setText(pessoa.getNome());\n edtEmail.setText(pessoa.getEmail());\n edtTelefone.setText(pessoa.getTelefone());\n edtIdade.setText(pessoa.getIdade());\n edtCPF.setText(pessoa.getCpf());\n }",
"private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}",
"public void aplicarDescuento();",
"private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}",
"public void crear_un_evento_recurrente_para_el_dia_de_hoy() {\n\t\t\n\t}",
"public void imprimir(){\n for(int i = 0;i < this.listaEtiquetas.size();i++){\n System.out.println(\"- \"+(i+1)+this.listaEtiquetas.get(i).getEtiqueta()+\" descripcion\"+this.listaEtiquetas.get(i).getDescripcion());\n }\n }",
"public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }",
"public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }",
"@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }",
"public void venceuRodada () {\n this.pontuacaoPartida++;\n }",
"public void anexaEvidencia(Object casoDeTeste) {\n Log.info(\"Anexando evidencia\");\n Allure.addAttachment((String) casoDeTeste,\n new ByteArrayInputStream(((TakesScreenshot) getDriver()).getScreenshotAs(OutputType.BYTES)));\n }",
"public Part getFotoPerfil(){\n return fotoPerfil;\n }",
"public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == attendBut) {\n\t\t\tAppt appt = new Appt();\n\t\t\tappt.setID(con.getusableid());\n\t\t\tappt.setTimeSpan(inviteAppt.TimeSpan());\n\t\t\tappt.setstarttime(inviteAppt.getstarttime());\n\t\t\tappt.setendtime(inviteAppt.getendtime());\n\t\t\tappt.setTitle(inviteAppt.getTitle());\n\t\t\tappt.setInfo(inviteAppt.getInfo());\n\t\t\tappt.setJoint(true);\n\t\t\tappt.setJoinID(inviteAppt.getID());\n\t\t\tappt.setusername(con.getusername());\n\t\t\tappt.setLocation(inviteAppt.getLocation());\n\t\t\tcon.ManageAppt(appt, con.NEW);\n\t\t\tinviteAppt.addAttendant(con.getDefaultUser().ID());\n\t\t\tinviteAppt.removeWaitingList(con.getDefaultUser().ID());\n\t\t\tcon.ManageAppt(inviteAppt, con.MODIFY);\n\t\t}\n\t\tif (e.getSource() == rejectBut) {\n//\t\t\tinviteAppt.addReject(con.getDefaultUser().ID());\n//\t\t\tinviteAppt.removeWaitingList(con.getDefaultUser().ID());\n \t\tfor (Object key : con.mApptStorage.mAppts.keySet()){\n \t\t\tif(con.mApptStorage.mAppts.get(key).getID()==inviteAppt.getID()){\n \t\t\t\tcon.mApptStorage.mAppts.remove(key);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tif(con.mApptStorage.mAppts.get(key).getJoinID()==inviteAppt.getID())\n \t\t\t{con.mApptStorage.mAppts.remove(key);}\n \t\t}\n \tcon.mApptStorage.saveApptToTxt();\t\n\t\t}\n\t\tdispose();\n\t}",
"@Override\n\tpublic void attiva(Player player) {\n\t\tplayer.getEffettiAttivi().aggiungiScontoCostoCarte(tipoCarta, sconto);\n\t}",
"public void attributSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}",
"public void inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}",
"public void aumentarReproducciones() {\n\t\treproducciones++;\n\t}",
"public void refrescarForeignKeysDescripcionesFacturaPuntoVenta() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.refrescarForeignKeysDescripcionesFacturaPuntoVenta(this.facturapuntoventaLogic.getFacturaPuntoVentas());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.refrescarForeignKeysDescripcionesFacturaPuntoVenta(this.facturapuntoventas);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Usuario.class));\r\n\t\tclasses.add(new Classe(Vendedor.class));\r\n\t\tclasses.add(new Classe(Cliente.class));\r\n\t\tclasses.add(new Classe(Caja.class));\r\n\t\tclasses.add(new Classe(TipoPrecio.class));\r\n\t\tclasses.add(new Classe(Mesa.class));\r\n\t\tclasses.add(new Classe(Formato.class));\r\n\t\tclasses.add(new Classe(TipoFacturaPuntoVenta.class));\r\n\t\tclasses.add(new Classe(EstadoFacturaPuntoVenta.class));\r\n\t\tclasses.add(new Classe(AsientoContable.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//facturapuntoventaLogic.setFacturaPuntoVentas(this.facturapuntoventas);\r\n\t\t\tfacturapuntoventaLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}",
"public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }",
"public int getAtt(){ \r\n return att;\r\n }",
"public Proceso atender() {\n\t\tProceso proceso = raiz.sig;\n\t\tif (proceso == this.raiz) {\n\t\t\tSystem.out.println(\"Cola Vacia\");\n\t\t\treturn null;\n\t\t}\n\t\tProceso sig = proceso.sig;\n\t\tProceso padre = raiz;\n\t\tpadre.sig = sig;\n\t\tsig.padre = padre;\n\t\tcabeza = sig;\n\t\tthis.numProcesos--;\n\t\tthis.calcularTiemposProcesos();\n\t\treturn proceso;\n\t}",
"public void refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario(this.tipodetallemovimientoinventarioLogic.getTipoDetalleMovimientoInventarios());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario(this.tipodetallemovimientoinventarios);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//tipodetallemovimientoinventarioLogic.setTipoDetalleMovimientoInventarios(this.tipodetallemovimientoinventarios);\r\n\t\t\ttipodetallemovimientoinventarioLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}",
"private static CartelleAvvisiResponseType getBPSCartelleResponse( Fascicolo fascicolo) throws Exception {\n\t\t\r\n\t\tCartellaAvvisiRequestType bpCartelleRequest = new CartellaAvvisiRequestType(); \r\n\t\tbpCartelleRequest.setTipologiaRichiesta(MessagesClass.getMessage(\"TIPOLOGIA_DOCUMENTI_TUTTI\").trim()) ;\t \r\n\t\tbpCartelleRequest.setCodiceFiscale(fascicolo.getAnagrafica().getCodiceFiscale().trim());\r\n\t\t//il tipo documento (cartella od avviso), viene lasciato vuoto in modo da caricare entrambe le tipologie\r\n\t\t//bpCartelleRequest.setTipoDocumento(null); \r\n\t\t\r\n\t\t//inizio modifiche Agosto\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\"); \r\n\t\tDate dataAttuale = new Date(); \r\n\t\tlogger.debug(dateFormat.format(dataAttuale)); \r\n\t\tbpCartelleRequest.setDataRichiesta(dataAttuale );\r\n\t\t//fine modifiche Agosto\r\n\t\t\r\n\t\treturn getBPSCartelleResponse(bpCartelleRequest);\r\n\t}",
"public String obtenerDescripcionAtaque(){\n\treturn descripcionAtaque;\n }",
"private void retrieveDatos(Long codProfesor, Long anio) {\n recuperaPerfDoc(codProfesor, anio);\r\n }",
"public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}",
"public void acionarRetiradaFinalizada(MovimentacaoGarantiaDO movimentacao);",
"@Override\r\n\tpublic Movimiento onPideDatos() {\n\t\treturn null;\r\n\t}",
"public void acionarInadimplencia(InstrumentoFinanceiroDO ativo);",
"@Override\n\tpublic void sendReviewResponseE2A(Editor e, Author a, PitchMessage pm, PitchReview pr) {\n\t\tPReviewE2A prea = new PReviewE2A();\n\t\tprea.setPitchReview(pr);\n\t\tprea.setAuthor(a);\n\t\tprea.setEditor(e);\n\t\t\n\t\tPMessageE2A pmea = new PMessageE2A();\n\t\tpmea.setAuthor(a);\n\t\tpmea.setEditor(e);\n\t\tpmea.setPitchMessage(pm);\n\t\t\n\t\t//delete Draft Change notification the author sent\n\t\tPReviewA2E prae = messageDAO.getPReviewA2E(pr);\n\t\tmessageDAO.deleteFromPReviewA2E(prae);\n\t\t\n\t\t//create a notification for the author\n\t\tmessageDAO.addToPReviewE2A(prea);\n\t\t\n\t\t//send message\n\t\tmessageDAO.addPitchMessage(pm);\n\t\tmessageDAO.addToPMessageE2A(pmea);\n\t\t\n\t\t\n\t}",
"@Override\n public void onPeticionesRecibidasObtenidas(List<PeticionQuedada> peticionesQuedadas) {\n this.lista_peticiones= peticionesQuedadas;\n lista_peticionesRecibidas=new ArrayList<>();\n\n\n progressDialog.show();\n Log.i(\"ADAPTADOR\", \"+++++++++ LISTA PETICIONES RECIBIDAS ++++++++\\n\" + peticionesQuedadas.toString());\n\n PeticionQuedada mPeticionQuedada= peticionesQuedadas.get(peticionesQuedadas.size()-1);\n\n Log.i(\"ADAPTADOR\", \"+++++++++ OBTENIENDO FOTO ++++++++\\n\" + mPeticionQuedada.toString());\n\n presenter.obtenerFotoUsuario(mPeticionQuedada.getAutor_peticion(),mPeticionQuedada);\n\n\n }",
"public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void reseteaContinuaDesapareceNotificacion(){\n if(getIntent().getExtras()==null){\n\n NotificationManager n = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n n.cancel(1);\n }\n /*Si no, los datos que recojemos, es lo que habia en la variable contador,\n escribimos contadorr en el label y nos guardamos el valor del dato en la variabe,\n luego haremos desaparecer la notificacion */\n else{\n\n Bundle bundle=getIntent().getExtras();\n msg.setText(String.valueOf(bundle.getInt(\"contador\")));\n contadorr=bundle.getInt(\"contador\");\n\n NotificationManager n = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\n n.cancel(1);\n }\n }",
"public void refrescarForeignKeysDescripcionesUtilidadTipoPrecio() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.refrescarForeignKeysDescripcionesUtilidadTipoPrecio(this.utilidadtipoprecioLogic.getUtilidadTipoPrecios());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.refrescarForeignKeysDescripcionesUtilidadTipoPrecio(this.utilidadtipoprecios);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(TipoPrecio.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//utilidadtipoprecioLogic.setUtilidadTipoPrecios(this.utilidadtipoprecios);\r\n\t\t\tutilidadtipoprecioLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}",
"@Override\n\tpublic void atirou() {\n\n\t\t\tatirou=true;\n\t\t\t\n\t\t\n\t}",
"static void escribir(Planeta planeta_a_escribir) {\n if (escritor != null) {\n try {\n escritor.writeObject(planeta_a_escribir);\n \n } catch (IOException ex) {\n System.out.println(\"Error al escribir el archivo\");\n }\n }\n }",
"public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"@Override\r\n public void mostrarProfesores(){\n for(Persona i: listaPersona){\r\n if(i instanceof Profesor){\r\n i.mostrar();\r\n }\r\n }\r\n }",
"public void publicarPropuestas() {\n try {\n //SISTEMA VERIFICA QUE LOS COMPROMISOS PARA EL PERIODO HAYAN SIDO INGRESADO\n if (this.listaCompromiso == null || this.listaCompromiso.isEmpty()) {\n //MUESTRA MENSAJE: 'DEBE INGRESAR LOS COMPROMISOS PARA PODER PUBLICAR ', NO ES POSIBLE PUBLICAR LOS RESULTADOS \n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_add_comprimiso_faltantes\"));\n return;\n }\n String mensajeValidacion = validarCompromisosPeriodoByPropuestaNacesidad(this.propuestaSeleccionada);\n if (mensajeValidacion != null) {\n addErrorMessage(keyPropertiesFactory.value(mensajeValidacion));\n return;\n }\n if (IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA.compareTo(this.propuestaSeleccionada.getConstantes().getIdConstantes()) != 0) {\n addErrorMessage(\"La propuesta debe estar en estado Pre-Aprobado\");\n return;\n }\n /*byte[] bitesPdf;\n //GENERAMOS EL REPORTE - CREADOR DE REPORTES\n try {\n HashMap mapa = new HashMap();\n mapa.put(\"p_id_periodo\", periodoSeleccionado.getIdPeriodo().intValue());\n bitesPdf = GeneradorReportesServicio.getInstancia().generarReporte(mapa, \"reporte15.jasper\");\n } catch (Exception e) {\n adicionaMensajeError(\"ERROR, Se presentaron errores al general el reporte JASPER\");\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, \"CU-NE-06(publicarPropuestas)\", e);\n return;\n }*/\n String iniciaCodigoVic = keyPropertiesFactory.value(\"cu_ne_6_codigo_proyecto_inicia_generacion\");\n if (iniciaCodigoVic.contains(\"-----NOT FOUND-----\")) {\n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_error_no_existe_codigo_proyecto_inicia_generacion\"));\n return;\n }\n //EL SISTEMA CAMBIA EL ESTADO DE TODAS LAS PROPUESTAS DEL LISTADO DE ''PRE-APROBADA ' A 'APROBADA' \n //Y LOS DE ESTADO 'REVISADA' A 'NO APROBADA' \n List<SieduPropuestaAsignada> lstPropuestaasignada = this.servicePropuestaAsignada.findByVigencia(this.propuestaSeleccionada);\n List<Long> lstLong = new ArrayList<>();\n for (SieduPropuestaAsignada s : lstPropuestaasignada) {\n lstLong.add(s.getPropuestaNecesidad().getIdPropuestaNecesidad());\n }\n Proyecto proyecto = new Proyecto();\n int contarProyecto = iProyectoLocal.contarProyectoByVigencia(lstLong);\n Constantes constantes = iConstantesLocal.getConstantesPorIdConstante(IConstantes.DURACION_PROYECTOS_INSTITUCIONALES);\n int numeroMesesEstimacionProyecto = Integer.parseInt(constantes.getValor());\n UsuarioRol usuarioRol = new UsuarioRol(loginFaces.getPerfilUsuarioDTO().getRolUsuarioPorIdRolDTO(IConstantesRole.EVALUADOR_DE_PROPUESTAS_DE_NECESIDADES_EN_LA_VICIN).getIdUsuarioRol());\n if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA)) {\n EjecutorNecesidad ejecutorNecesidadResponsable = iEjecutorNecesidadLocal.getEjecutorNecesidadPorPropuestaNecesidadYRolResponsable(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n if (ejecutorNecesidadResponsable == null || ejecutorNecesidadResponsable.getUnidadPolicial() == null || ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica() == null) {\n addErrorMessage(\"Error, Verifique la sigla física de la Unidad Policial asociada a la propuesta: \" + this.propuestaSeleccionada.getTema());\n return;\n }\n\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_APROBADA));\n //POR CADA PROPROPUESTA APROBADA SE CREA UN PROYECTO\n //CREA UN PROYECTO DE INVESTIGACIÓN POR CADA PROPUESTA CON EL ESTADO 'APROBADA', \n //ASIGNÁNDOLE EL CÓDIGO DE INVESTIGACIÓN DE ACUERDO AL MÉTODO ESTABLECIDO(VER REQUERIMIENTOS ESPECIALES), \n //ASIGNÁNDOLE EL ÁREA Y LA LÍNEA DE INVESTIGACIÓN Y EL TEMA PROPUESTO COMO TITULO PROPUESTO\n //VIC - [Consecutivo de proyectos en el periodo][Año]- [Código interno de la Unidad Policial o Escuela]\n String codigoInternoUnidad = ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica();\n String codigoProyecto = iniciaCodigoVic.concat(\"-\");//VIC \n contarProyecto += 1;\n codigoProyecto = codigoProyecto.concat(String.valueOf(contarProyecto));//[Consecutivo de proyectos en el periodo]\n codigoProyecto = codigoProyecto.concat(String.valueOf(lstPropuestaasignada.get(0).getSieduPropuestaAsignadaPK().getVigencia()));//[Año]\n codigoProyecto = codigoProyecto.concat(\"-\");\n codigoProyecto = codigoProyecto.concat(codigoInternoUnidad);//[Código interno de la Unidad Policial o Escuela]\n Date fechaHoy = new Date();\n proyecto.setCodigoProyecto(codigoProyecto);\n proyecto.setLinea(this.propuestaSeleccionada.getLinea());\n proyecto.setTituloPropuesto(this.propuestaSeleccionada.getTema());\n proyecto.setTema(this.propuestaSeleccionada.getTema());\n proyecto.setPeriodo(this.propuestaSeleccionada.getPeriodo());\n proyecto.setUsuarioRol(usuarioRol);\n proyecto.setEstado(new Constantes(IConstantes.TIPO_ESTADO_PROYECTO_EN_EJECUCION));\n proyecto.setUnidadPolicial(ejecutorNecesidadResponsable.getUnidadPolicial());\n proyecto.setPropuestaNecesidad(this.propuestaSeleccionada);\n proyecto.setFechaEstimadaInicio(fechaHoy);\n Calendar fechaFinalEstimadaProyecto = Calendar.getInstance();\n fechaFinalEstimadaProyecto.setTime(fechaHoy);\n fechaFinalEstimadaProyecto.add(Calendar.MONTH, numeroMesesEstimacionProyecto);\n proyecto.setFechaEstimadaFinalizacion(fechaFinalEstimadaProyecto.getTime());\n proyecto.setFechaActualizacion(fechaHoy);\n //CREAMOS LOS COMPROMISOS PROYECTOS\n List<CompromisoProyecto> listaCompromisosProyecto = new ArrayList<CompromisoProyecto>();\n //CONSULTAMOS LOS COMPROMISOS DE ESTE PERIODO\n List<CompromisoPeriodo> listaComprimiso = iCompromisoPeriodoLocal.buscarCompromisoPeriodoByIdPropuestaNecesidad(this.propuestaSeleccionada);\n for (CompromisoPeriodo unCompromisoPeriodo : listaComprimiso) {\n CompromisoProyecto compromisoProyecto = new CompromisoProyecto();\n compromisoProyecto.setCompromisoPeriodo(unCompromisoPeriodo);\n compromisoProyecto.setProyecto(proyecto);\n compromisoProyecto.setEstado(new Constantes(IConstantes.ESTADO_COMPROMISO_PROYECTO_PENDIENTE));\n compromisoProyecto.setFechaCreacion(new Date());\n compromisoProyecto.setMaquina(loginFaces.getPerfilUsuarioDTO().getMaquinaDTO().getIpLoginRemotoUsuario());\n compromisoProyecto.setUsuarioRegistro(loginFaces.getPerfilUsuarioDTO().getIdentificacion());\n compromisoProyecto.setUsuarioRolRegistra(usuarioRol);\n listaCompromisosProyecto.add(compromisoProyecto);\n }\n //CREAMOS LAS UNIDADES EJECUTORAS PARA EL PROYECTO\n List<EjecutorNecesidadDTO> listadoEjecutorNecesidadDTOPropuesta = iEjecutorNecesidadLocal.getEjecutorNecesidadDTOPorPropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n List<EjecutorNecesidad> listaEjecutorNecesidadProyecto = new ArrayList<EjecutorNecesidad>();\n for (EjecutorNecesidadDTO unaEjecutorNecesidadDTO : listadoEjecutorNecesidadDTOPropuesta) {\n EjecutorNecesidad ejecutorNecesidadLocal = new EjecutorNecesidad();\n ejecutorNecesidadLocal.setPropuestaNecesidad(new PropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad()));\n ejecutorNecesidadLocal.setProyecto(proyecto);\n ejecutorNecesidadLocal.setRol(new Constantes(unaEjecutorNecesidadDTO.getIdRol()));\n ejecutorNecesidadLocal.setUnidadPolicial(this.iUnidadPolicialLocal.obtenerUnidadPolicialPorId(unaEjecutorNecesidadDTO.getIdUnidadPolicial()));\n listaEjecutorNecesidadProyecto.add(ejecutorNecesidadLocal);\n }\n proyecto.setEjecutorNecesidadList(listaEjecutorNecesidadProyecto);\n proyecto.setCompromisoProyectoList(listaCompromisosProyecto);\n\n } else if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(\n IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_REVISADA)) {\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_NO_APROBADA));\n }\n\n //ACTUALIZAMOS EL CAMPO ROL_ACTUAL\n //CON EL OBJETIVO SE SABER EN DONDE SE ENCUENTRA LA PROPUESTA\n //ESTO SE REALIZA PARA CORREGIR \n //LA INCIDENCIA #0002754: Mientras no se publiquen los resultados de las necesidades, el estado debe ser 'Enviada a VICIN'.\n this.propuestaSeleccionada.setRolActual(IConstantes.PROPUESTA_NECESIDAD_PUBLICADA_JEFE_UNIDAD);\n /* \n\n //GENERAMOS EL NOMBRE DEL ARCHIVO DEL REPORTE\n String nombreReporteUnico = \"PROP_NECES_PERIODO\".concat(\"_\").concat(String.valueOf(System.currentTimeMillis())).concat(\".pdf\");\n String nombreReporte = \"PROP_NECES_PERIODO_\" + (periodoSeleccionado.getAnio() == null ? periodoSeleccionado.getIdPeriodo().toString() : periodoSeleccionado.getAnio().toString()) + \".pdf\";\n */\n //SE ACTUALIZAN LAS PROPUESTAS DE NECESIDAD\n servicePropuestaNecesidad.guardarPropuestaYgenerarProyecto(\n this.propuestaSeleccionada,\n proyecto);\n\n addInfoMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_propuestas_actualizadas_ok_publicar\"));\n\n navigationFaces.redirectFacesCuNe01();\n\n } catch (Exception e) {\n\n addErrorMessage(keyPropertiesFactory.value(\"general_mensaje_error_exception\"));\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE,\n \"CU-NE-06 Evaluar propuestas de necesidades de investigación - (publicarPropuestas)\", e);\n\n }\n\n }",
"public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n notificarTodos();\n }",
"public RespostasPendentes getRespostaPendente() {\n return respostaPendente;\n }",
"public String getRecapitoDesc() {\n\t\treturn this.recapitoDesc;\n\t}",
"private void confirmarVentaRespuesta(final TransaccionCelda resp) {\n final ConfirmarVentaMapaDatos datos = service.getDatosConfirmar();\n respImprimir = resp;\n service.setDatosConfirmar(null);\n mostrarMensaje(getString(R.string.msg_venta_paquete_exitoso, datos.getPlaca()));\n contenedorBotonVenta.setVisibility(View.GONE);\n contenedorBotonImpresion.setVisibility(View.VISIBLE);\n final double costoTotal = service.getCostoTotal(resp);\n final String auditoria = getString(\n R.string.msg_venta_paquete_auditoria,\n datos.getZona().getNombre(), datos.getTarifa().getNombre(),\n datos.getPlaca(), format.formatearDecimal(costoTotal));\n AppLog.debug(TAG, \"Auditoría: %s\", auditoria);\n final String pin = String.valueOf(resp.getId());\n subscribeSinProcesando(api.auditoria(getIdUsuario(), \"Compra pin\", \"Pin de transito\",\n pin, \"App movil\", auditoria, String.valueOf(datos.getZona().getId()),\n datos.getPlaca(), Constantes.AUDITORIA_VACIO, Constantes.AUDITORIA_VACIO),\n this::respuestaAuditoria);\n }",
"public RisultatiRicercaStampaAllegatoAttoModel() {\n\t\tsuper();\n\t\tsetTitolo(\"Risultati di ricerca stampe allegato atto\");\n\t}",
"@Override\r\n\tpublic double recargoImpuesto() {\n\t\treturn 0.03;\r\n\t}",
"public void ReportarUnDiario(){\n f.registrarReporteDiario(new ReporteDiario(descripcionReporteDiario,prob));\n }",
"@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }",
"@Override\n public void onFotoObtenida(byte[] foto, PeticionQuedada pQuedada)\n {\n\n Log.i(\"ADAPTADOR\", \"+++++++++ PetCon FOTO\" + pQuedada.toString() + \" ++++++++\");\n\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n Bitmap bitmap = BitmapFactory.decodeByteArray(foto, 0, foto.length, options);\n //se crea una peticion de quedada recibida con la peticion obteneda + la foto y se añade a la lista\n peticionQuedadaRecibida = new PeticionQuedadaRecibida(pQuedada.getId(), pQuedada.getAutor_peticion_nombre(), pQuedada.getAutor(), pQuedada.getAutor_uid(), pQuedada.getLugar(), pQuedada.getFecha(), pQuedada.getHora(), pQuedada.getDeporte(), pQuedada.getInfo(), pQuedada.getPlazas(), pQuedada.getLongitud(),\n pQuedada.getLatitud(), pQuedada.getNum_plazas_solicitadas(), pQuedada.getEstado(), pQuedada.getAutor_peticion());\n peticionQuedadaRecibida.setFoto(bitmap);\n peticionQuedadaRecibida.setId_peticion(pQuedada.getId_peticion());\n\n lista_peticionesRecibidas.add(peticionQuedadaRecibida);\n Log.i(\"ADAPTADOR\", \"+++++++++ QUEDADA AÑADIDA A LISTA ++++++++\\n\" + peticionQuedadaRecibida.toString());\n //cuando se añaden todas las peticionesse setea el adaptador\n if (lista_peticionesRecibidas.size() == lista_peticiones.size()) {\n //se activan los controladores del item correspondiente\n Log.i(\"ADAPTADOR\", \"+++++++++ SETEANDO ADAPTADOR ++++++++\\n\" + lista_peticionesRecibidas.toString());\n adaptador = new PeticionesRecibidasAdapter(lista_peticionesRecibidas);\n adaptador.setCustomButtonListner(this);\n adaptador.setCustomImageButtonListener(this);\n listView.setAdapter(adaptador);\n\n LinearLayoutManager llm = new LinearLayoutManager(getContext());\n llm.setOrientation(LinearLayoutManager.HORIZONTAL);\n listView.setLayoutManager(llm);\n\n progressDialog.dismiss();\n }\n\n\n }",
"public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }",
"public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}",
"private static void etapa2Urna() {\n\t\t\n\t\tint opcaoNumero = 0;\n\n\t\tdo {\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tSystem.out.println(\"Votação\");\n\t\t\tSystem.out.println(\"1 - Votar\");\n\t\t\tSystem.out.println(\"2 - Justificar ausencia\");\n\t\t\tSystem.out.println(\"Digite o número da etapa ou -1 para sair: \");\n\t\t\t\n\t\t\ttry {\n\t\t\n\t\t\t\topcaoNumero = Integer.parseInt(br.readLine());\n\t\t\n\t\t\t\tswitch( opcaoNumero ) {\n\t\t\n\t\t\t\tcase 1: \n\t\t\t\t\t// Abrir Etapa 1: Configurar Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\trealizarVotacao();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2: \n\t\t\t\t\t// Abrir Etapa 2: Realizar Votacao na Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\tSystem.out.println(\"Insira o numero do seu titulo de eleitor\");\n\t\t\t\t\tint tituloEleitor = Integer.parseInt(br.readLine());\n\t\t\t\t\turna.justificarVoto(tituloEleitor);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\n\t\t}while(opcaoNumero != -1);\n\t}",
"public void recibir_estado_partida(){\n\n }",
"private void aumentarPilha() {\n this.pilhaMovimentos++;\n }",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"public void stampajSpisak() {\n\t\t\n\t\tif (prviFilm != null) {\n\t\t\t\n\t\t\tFilm tekuciFilm = prviFilm;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tSystem.out.println(\"Filmovi: \");\n\t\t\t\n\t\t\twhile (tekuciFilm != null) {\n\t\t\t\t\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\"Film #\" + count + \": '\" + tekuciFilm.naziv + \"'\");\n\t\t\t\t\n\t\t\t\tif (tekuciFilm.sadrzaj == null) {\n\t\t\t\t\tSystem.out.println(\"\\tNema unetih glumaca.\");\n\t\t\t\t} else {\n\t\t\t\t\tGlumac tekuciGlumac = tekuciFilm.sadrzaj;\n\t\t\t\t\t\n\t\t\t\t\twhile (tekuciGlumac != null) {\n\t\t\t\t\t\tSystem.out.println(\"\\t\" + tekuciGlumac);\n\t\t\t\t\t\ttekuciGlumac = tekuciGlumac.veza;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttekuciFilm = tekuciFilm.veza;\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\tSystem.out.println(\"Spisak je prazan.\");\n\t\t}\n\t}",
"private void irCalculadoraPropina(Persona persona, Soda soda){\n // Intent para llamar a la Actividad Calculadora\n Intent intent = new Intent(this, CalculadoraActivity.class);\n intent.putExtra(EXTRA_MESSAGE, persona);\n // Deseo recibir una respuesta: startActivityForResult()\n startActivityForResult(intent, SECOND_ACTIVITY_RESULT_CODE);\n\n }",
"@Override\n\tpublic void emiteExtrato() {\n\t\t\n\t}",
"@Override\r\n public void AjouterPropositionAReponse(long idP, long idR) {\r\n QuestionReponse r = questionReponseFacade.RechercherReponseParID(idR);\r\n QuestionProposition p = questionPropositionFacade.RechercherPropositionParID(idP);\r\n //questionReponseFacade.AjouterListPropositionAReponse(p, r);\r\n }",
"public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }",
"public RepositorioAvioes() {\n avioes = new ArrayList<Aviao>();\n }",
"public void consulterBoiteVocale() {\n for (int i = 0; i < this.boiteVocale.getListeMessagesVocaux().size(); i++) {\n //on passe l'attribut consulte à true pour savoir qu'il a été vu pour la facturation\n this.boiteVocale.getListeMessagesVocaux().get(i).setConsulte(true);\n }\n }",
"private void enviarEmailAutor(final AutorProyectoDTO autorProyectoDTO) {\r\n FacesContext facesContext = FacesContext.getCurrentInstance();\r\n ResourceBundle bundle = facesContext.getApplication().getResourceBundle(facesContext, \"msg\");\r\n String mensaje = (bundle.getString(\"estimado\") + \": \"\r\n + autorProyectoDTO.getPersona().getNombres() + \" \" + autorProyectoDTO.getPersona().getApellidos() + \" \"\r\n + bundle.getString(\"asignacion_director_autor_a\") + \": \" + autorProyectoDTO.getAutorProyecto().getProyectoId().getTemaActual() + \" \"\r\n + \"\" + bundle.getString(\"asignacion_director_autor_b\") + \": \" + sessionProyecto.getProyectoSeleccionado().getDirectores());\r\n enviarEmail(autorProyectoDTO.getPersona(), mensaje);\r\n }",
"public void enviarEvidencia(EvidenciaDTO evidencia) {\n\n\tLOG.info(evidencia.getNombreArchivo());\n\n\tfichero = evidencia.getNombreArchivo();\n\turl = evidencia.getUrl();\n\tString[] nombreFichero = evidencia.getNombreArchivo().split(\"[.]\");\n\n\textensionDocumento = nombreFichero[nombreFichero.length - 1];\n\tLOG.info(extensionDocumento);\n\tLOG.info(url);\n\tdescargar = true;\n\treturn;\n\n }",
"private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }",
"public void armarPreguntas(){\n preguntas = file.listaPreguntas(\"Preguntas.txt\");\n }",
"public void editar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.edit(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }",
"public static String getRespuestaAgregarMedida(){\n return _respuesta;\n }",
"public String getPerfilDescripcion();",
"public void verProfesionista(View view){\n Intent siguiente = new Intent(verEmpleos.this,verProfesionista.class);\n startActivity(siguiente);//se inicia\n }",
"public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}",
"private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}",
"public String getProperts() {\n\t\t// TODO Auto-generated method stub\n\t\treturn arquivo+\" - \"+tamanho;\n\t}",
"public void reestablecerInfo(){\n panelIngresoControlador.getPanelIngreso().reestablecerInfo();\n }",
"private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }",
"@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }",
"public void atualizarResumo(){\n\t\tSet<AdapterProcedimento> paraRemover = new HashSet<AdapterProcedimento>();\n\t\tif(isAuditarProcedimentosCirurgicos() && !isAuditarProcedimentosGrauAnestesista()){\n\t\t\tfor (AdapterProcedimento adapter : procedimentos) {\n\t\t\t\tif(adapter.getHonorarios().isEmpty() && !adapter.getHonorariosAnestesistas().isEmpty()){\n\t\t\t\t\tparaRemover.add(adapter);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!isAuditarProcedimentosCirurgicos() && isAuditarProcedimentosGrauAnestesista()){\n\t\t\tfor (AdapterProcedimento adapter : procedimentos) {\n\t\t\t\tif(!adapter.getHonorarios().isEmpty() && adapter.getHonorariosAnestesistas().isEmpty()){\n\t\t\t\t\tparaRemover.add(adapter);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprocedimentos.removeAll(paraRemover);\n\t}",
"private void disparaUfo()\n {\n // Solo dispara si no hay disparo activo\n if (!disparoUfo.getVisible()) {\n // Generamos un número aleatorio para obtener el Ufo que va a disparar\n Random aleatorio = new Random();\n int ufoAleatorio;\n ufoAleatorio = aleatorio.nextInt(NUMEROUFOS);\n\n // Si el Ufo aleatorio NO está muerto dispara\n if (ufos.get(ufoAleatorio).getVisible()) {\n disparoUfo.setPosicion(ufos.get(ufoAleatorio).getPosicionX() + ((ufos.get(ufoAleatorio).getAncho() - disparoUfo.getAncho()) / 2), ufos.get(ufoAleatorio).getPosicionY() + ufos.get(ufoAleatorio).getAlto());\n disparoUfo.setVisible(true);\n }\n }\n }",
"public Byte getAttendType() {\n return attendType;\n }",
"@Override\r\n\tpublic void gerarExtratoDetalhado(Conta conta) {\n\t\t\r\n\t\tDate agora = new Date();\r\n\r\n\t\tSystem.out.println(\"\\nData: \" + sdf.format(agora));\r\n\t\tSystem.out.println(\"\\nConta: \" + conta.getNumero());\r\n\t\tSystem.out.println(\"\\nAgencia: \" + conta.getAgencia().getNumero());\r\n\t\tSystem.out.println(\"\\nCliente: \" + conta.getCliente().getNome());\r\n\t\tSystem.out.println(\"\\nSaldo: R$\" + df.format(conta.getSaldo()));\r\n\t\tSystem.out.println(\"\\nTaxa Rendimento: \" + df.format(taxaRendimento) + \"%\");\r\n\t}",
"public void ukloniPredmetSaProfesora(Profesor profesor) {\n\t\t\n\t\tUpitPotvrdeDialog dialog = new UpitPotvrdeDialog(\"Ukloni Nepolozeni predmet\",\n\t\t\t\t\"Da li ste sigurni da želite da uklonite predmet?\");\n\t\tif (dialog.isYes() == true) {\n\t\t\n\t\t\tPredmet predmet = BazaPredmeta.getInstance().getRow(IzmeniProfesoraDialog.tabelaPredmetaProfesora.getCurrentSelectedRow());\n\t\t\t\n\t\t\t BazaProfesora.getInstance().izbrisiPredmetSaP(profesor, predmet);\n\t\t\t IzmeniProfesoraDialog.tabelaPredmetaProfesora.azurirajPrikaz();\n\t\t\n\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void RealizarDiagnostico() {\n\t\tSystem.out.println(\"realizar dicho diagnostico con los sintomas presentados por el paciente\");\r\n\t}",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"@Override\n protected void onActivityResult(int peticion, int codigo, @Nullable Intent puntuacion) {\n if (peticion != 1 || codigo != RESULT_OK) return;\n\n int resultado = puntuacion.getIntExtra(\"PUNTUACION\", 0);\n\n if (resultado > record) {\n record = resultado;\n // lo mostramos en el textview\n TextView caja = (TextView) findViewById(R.id.record);\n caja.setText(\"Record: \" + resultado);\n // guardamos el record\n guardaRecord();\n }\n String puntuacionPartida = \"Tu puntuacion es \" + resultado;\n Toast miToast = Toast.makeText(this, puntuacionPartida, Toast.LENGTH_SHORT);\n miToast.setGravity(Gravity.CENTER, 0, 0);\n miToast.show();\n\n super.onActivityResult(peticion, codigo, puntuacion);\n }",
"private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}"
] | [
"0.6332524",
"0.6109128",
"0.6048272",
"0.58442336",
"0.5643899",
"0.56205314",
"0.5564042",
"0.5505184",
"0.5444839",
"0.54276687",
"0.54001117",
"0.5321444",
"0.531503",
"0.5215475",
"0.52117205",
"0.52057326",
"0.5180701",
"0.5163451",
"0.5127213",
"0.51162887",
"0.5111458",
"0.51078826",
"0.5097969",
"0.5091623",
"0.5087726",
"0.50578666",
"0.5055459",
"0.50490826",
"0.50459677",
"0.5041552",
"0.5034404",
"0.5031349",
"0.50106364",
"0.500766",
"0.5000743",
"0.4993677",
"0.4980726",
"0.49658617",
"0.49439052",
"0.4936839",
"0.49357092",
"0.4924178",
"0.49047086",
"0.49022195",
"0.48986048",
"0.48952788",
"0.48932266",
"0.4891558",
"0.48803723",
"0.48670354",
"0.48633304",
"0.4852275",
"0.4851327",
"0.4850717",
"0.48459125",
"0.48424938",
"0.48396912",
"0.48371863",
"0.483449",
"0.48313004",
"0.48280463",
"0.48240963",
"0.48225012",
"0.48223493",
"0.48218322",
"0.48175418",
"0.48162907",
"0.48162267",
"0.48134407",
"0.48067883",
"0.48051116",
"0.48019508",
"0.4800317",
"0.4799112",
"0.4798783",
"0.47940212",
"0.47834295",
"0.47824913",
"0.47801155",
"0.47771564",
"0.4776902",
"0.4775181",
"0.47743526",
"0.4770015",
"0.4763689",
"0.4762849",
"0.47604525",
"0.47583273",
"0.4758101",
"0.47569308",
"0.47565377",
"0.4756082",
"0.47540107",
"0.475255",
"0.47521725",
"0.47519565",
"0.4750945",
"0.474651",
"0.4745928",
"0.4744168"
] | 0.62276644 | 1 |
Modifica l'offerta attiva sul prodotto. | public void setOfferta(Promozione offerta) {
this.offerta = offerta;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}",
"public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }",
"@Override\n\tpublic void attributeReplaced(ServletContextAttributeEvent evento_atributo) {\n\t\t// CONTROL DEL NOMBRE DEL ATRIBUTO\n\t\tString nombre_atributo = evento_atributo.getName();\n\t\tif (this.seguir_Proceso(nombre_atributo)) {\n\t\t\tObject valor = evento_atributo.getValue();\n\t\t\tString valor_texto = this.coger_Valor(valor);\n\t\t\tString tipo = null;\n\t\t\ttipo = valor.getClass().getSimpleName();\n\t\t\tregistro(\"*** Modificado el atributo de aplicacion del tipo \" + tipo + \" nombre: \" + nombre_atributo + \" valor modificado: \" + valor_texto);\n\t\t}\n\t}",
"public void setStatoCorrente(Stato prossimo)\r\n\t{\r\n\t\tif(!(corrente==null))\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto NON attiva la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(false);\r\n\t\t\t}\r\n\t\t\r\n\t\t//System.out.println(\"Imposto lo stato corrente: \"+prossimo.toString());\r\n\t\tcorrente=prossimo;\r\n\t\tif(!(corrente==null))\r\n\t\t{\r\n\t\t\t//System.out.println(\"Attivo le transazioni \"+corrente.getTransazioniUscenti().size());\r\n\t\t\tfor(int i=0;i<corrente.getTransazioniUscenti().size();i++)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Imposto ATTIVA la \"+corrente.getTransazioniUscenti().get(i));\r\n\t\t\t\tcorrente.getTransazioniUscenti().get(i).setAttiva(true);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void attributSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}",
"public Promozione getOfferta() {\n\t\treturn offerta;\n\t}",
"private void attacco(int idGioc) {\n\t\tpartita.attacco(idGioc);\n\t\tStatiGioco prossimoStato=partita.nextPhase(StatiGioco.ATTACKSTATE,StatiGioco.DONTKNOW, idGioc);\n\t\tpartita.getPlayers().getGiocatore(idGioc).setStatoAttuale(prossimoStato);\n\t}",
"public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}",
"public boolean isOppsatt() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void attributeAdded(ServletContextAttributeEvent evento_sesion) {\n\t\t// CONTROL DEL NOMBRE DEL ATRIBUTO\n\t\tString nombre_atributo = evento_sesion.getName();\n//\t\tSystem.out.println(nombre_atributo);\n\t\tif (this.seguir_Proceso(nombre_atributo)) {\n\t\t\t// PROCESO DE CONTROL DE NUMERO DE ATRIBUTOS\n\t\t\tInteger contador_atributos_aplicacion = (Integer) evento_sesion.getServletContext().getAttribute(\"contador_atributos_aplicacion\");\n\t\t\tif (contador_atributos_aplicacion!=null)\n\t\t\t{\n\t\t\t\tint numero_atributos = (contador_atributos_aplicacion).intValue();\n\t\t\t\tnumero_atributos++;\n\t\t\t\tevento_sesion.getServletContext().setAttribute(\"contador_atributos_aplicacion\",\tnew Integer(numero_atributos));\n\t\t\t\t// PROCESO DE CONTROL DEL VALOR Y TIPO DE ATRIBUTO\n\t\t\t\tObject valor = evento_sesion.getValue();\n\t\t\t\tString valor_texto = this.coger_Valor(valor);\n\t\t\t\tString tipo = null;\n\t\t\t\ttipo = valor.getClass().getSimpleName();\n\t\t\t\tregistro(\"*** Aniadido el atributo de aplicacion del tipo \" + tipo + \" nombre: \" + nombre_atributo + \" valor: \" + valor_texto);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void attributeRemoved(ServletContextAttributeEvent evento_atributo) {\n\t\t// CONTROL DEL NOMBRE DEL ATRIBUTO\n\t\tString nombre_atributo = evento_atributo.getName();\n\t\tif (this.seguir_Proceso(nombre_atributo)) {\n\t\t\tObject valor = evento_atributo.getValue();\n\t\t\tString valor_texto = this.coger_Valor(valor);\n\t\t\tString tipo = null;\n\t\t\ttipo = valor.getClass().getSimpleName();\n\t\t\tregistro(\"*** Eliminado el atributo de aplicacion del tipo \" + tipo\t+ \" nombre: \" + nombre_atributo + \" valor: \" + valor_texto);\n\t\t}\n\t}",
"@Override\n\tpublic void attiva(Player player) {\n\t\tplayer.getEffettiAttivi().aggiungiScontoCostoCarte(tipoCarta, sconto);\n\t}",
"public DDetRetContrArtEscenicsAttTO() { }",
"private void modificarProfesor(){\n \n System.out.println(\"-->> MODIFICAR PROFESOR\");\n int opcion;\n String nif=IO_ES.leerCadena(\"Inserte el nif del profesor\");\n if(ValidarCadenas.validarNIF(nif)){\n Profesor profesor=(Profesor) getPersona(LProfesorado, nif);\n if(profesor!=null){\n do{\n System.out.println(profesor);\n System.out.println(\"\\n1. Nombre\");\n System.out.println(\"2. Dirección\");\n System.out.println(\"3. Código Postal\");\n System.out.println(\"4. Teléfono\");\n System.out.println(\"5. Módulo\");\n System.out.println(\"0. Volver\");\n opcion=IO_ES.leerInteger(\"Inserte una opción: \", 0, 5);\n \n \n switch(opcion){\n \n case 1:\n actualizarNombre(profesor);\n break;\n case 2:\n actualizarDireccion(profesor);\n break;\n case 3:\n actualizarCodigoPostal(profesor);\n break;\n case 4:\n actualizarTelefono(profesor);\n break;\n case 5:\n actualizarModulo(profesor);\n break;\n \n \n }\n \n }while(opcion!=0);\n }\n else{\n System.out.println(\"El profesor no existe\");\n }\n \n }\n else {\n System.out.println(\"El nif no es válido\");\n }\n \n }",
"public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }",
"@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}",
"private UIEvent generateModifyEvent(){\n List<DataAttribut> dataAttributeList = new ArrayList<>();\n for(int i = 0; i< attributModel.size(); i++){\n String attribut = attributModel.elementAt(i);\n dataAttributeList.add(new DataAttribut(attribut));\n }\n //Erstellen des geänderten Produktdatums und des Events\n DataProduktDatum proposal = new DataProduktDatum(name.getText(), new DataId(id.getText()), dataAttributeList, verweise.getText());\n UIModifyProduktDatumEvent modifyEvent = new UIModifyProduktDatumEvent(dataId, proposal);\n return modifyEvent;\n }",
"public void setExtra(ListaAttributi extra) {\r\n String oldExtra = this.extra;\r\n this.extra = extra;\r\n propertyChangeSupport.firePropertyChange (\"extra\", oldExtra, extra);\r\n }",
"int contaAttivita() {\n\t\treturn attivita.size();\n\t}",
"@Override\n\tpublic void modificada(Mao m, Participante p) {\n\t\t\n\t}",
"private void atualizarBotoes() {\r\n\t\tbtIncluir.setDisable(cliente.getId() != null);\r\n\t\tbtAlterar.setDisable(cliente.getId() == null);\r\n\t\tbtExcluir.setDisable(cliente.getId() == null);\r\n\t}",
"private void defaultPerAllegatoAtto() {\n\t\tif(allegatoAtto.getFlagRitenute() == null) {\n\t\t\tallegatoAtto.setFlagRitenute(Boolean.FALSE);\n\t\t}\n\t\t//SIAC-6426\n\t\tif(allegatoAtto.getVersioneInvioFirma() == null){\n\t\t\tallegatoAtto.setVersioneInvioFirma(0);\n\t\t}\n\t}",
"public void setAtt(int att){\r\n this.att = att;\r\n }",
"@Override\r\n\tpublic void atualizr(Perfil perfil) {\n\t\tfor(int i=0;i<TAMANHO;i++) {\r\n\t\t\tif(perfis[i] != null) {\r\n\t\t\t\tif(perfis[i].getId() == perfil.getId()) {\r\n\t\t\t\t\tperfis[i]=perfil;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void atirou() {\n\n\t\t\tatirou=true;\n\t\t\t\n\t\t\n\t}",
"public void updateMbsProFile(File driveFile, DocumentFile mbsProFile) throws IOException\n {\n mDrive.downloadFile(driveFile.getId(), mContext.getContentResolver().openOutputStream(mbsProFile.getUri()));\n }",
"public void setOffline() {\r\n \t for (Utente u: utenti) { \r\n \t\t u.setStatus(\"OFFLINE\");\r\n \t }\r\n }",
"public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == attendBut) {\n\t\t\tAppt appt = new Appt();\n\t\t\tappt.setID(con.getusableid());\n\t\t\tappt.setTimeSpan(inviteAppt.TimeSpan());\n\t\t\tappt.setstarttime(inviteAppt.getstarttime());\n\t\t\tappt.setendtime(inviteAppt.getendtime());\n\t\t\tappt.setTitle(inviteAppt.getTitle());\n\t\t\tappt.setInfo(inviteAppt.getInfo());\n\t\t\tappt.setJoint(true);\n\t\t\tappt.setJoinID(inviteAppt.getID());\n\t\t\tappt.setusername(con.getusername());\n\t\t\tappt.setLocation(inviteAppt.getLocation());\n\t\t\tcon.ManageAppt(appt, con.NEW);\n\t\t\tinviteAppt.addAttendant(con.getDefaultUser().ID());\n\t\t\tinviteAppt.removeWaitingList(con.getDefaultUser().ID());\n\t\t\tcon.ManageAppt(inviteAppt, con.MODIFY);\n\t\t}\n\t\tif (e.getSource() == rejectBut) {\n//\t\t\tinviteAppt.addReject(con.getDefaultUser().ID());\n//\t\t\tinviteAppt.removeWaitingList(con.getDefaultUser().ID());\n \t\tfor (Object key : con.mApptStorage.mAppts.keySet()){\n \t\t\tif(con.mApptStorage.mAppts.get(key).getID()==inviteAppt.getID()){\n \t\t\t\tcon.mApptStorage.mAppts.remove(key);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tif(con.mApptStorage.mAppts.get(key).getJoinID()==inviteAppt.getID())\n \t\t\t{con.mApptStorage.mAppts.remove(key);}\n \t\t}\n \tcon.mApptStorage.saveApptToTxt();\t\n\t\t}\n\t\tdispose();\n\t}",
"public void asignarAutomovilPersona(){\r\n persona.setAutomovil(automovil);\r\n }",
"@Override\n\tpublic void naoAtirou() {\n\t\tatirou=false;\n\n\t}",
"private void actualizaPremio(){\n\t\tif(botonAp1.isSelected()){\n\t\t\ttipo = 1;\n\t\t\tcoef = modelo.getPartidoApuesta().getCoefLocal();\n\t\t\tpremio.set(apostado.get()*coef);\n\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t}else{\n\t\t\tif(botonApX.isSelected()){\n\t\t\t\ttipo = 0;\n\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefEmpate();\n\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t}else{\n\t\t\t\tif(botonAp2.isSelected()){\n\t\t\t\t\ttipo = 2;\n\t\t\t\t\tcoef = modelo.getPartidoApuesta().getCoefVisitante();\n\t\t\t\t\tpremio.set(apostado.get()*coef);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}else{\n\t\t\t\t\ttipo = -1;\n\t\t\t\t\tcoef = 0.0;\n\t\t\t\t\tpremio.set(0.0);\n\t\t\t\t\tpremioLabel.setText(String.format(\"%.2f\", premio.get()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void emiteExtrato() {\n\t\t\n\t}",
"@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void setFilaDatosExportarXmlTipoDetalleMovimientoInventario(TipoDetalleMovimientoInventario tipodetallemovimientoinventario,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(TipoDetalleMovimientoInventarioConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(tipodetallemovimientoinventario.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(TipoDetalleMovimientoInventarioConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(tipodetallemovimientoinventario.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementcodigo = document.createElement(TipoDetalleMovimientoInventarioConstantesFunciones.CODIGO);\r\n\t\telementcodigo.appendChild(document.createTextNode(tipodetallemovimientoinventario.getcodigo().trim()));\r\n\t\telement.appendChild(elementcodigo);\r\n\r\n\t\tElement elementnombre = document.createElement(TipoDetalleMovimientoInventarioConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(tipodetallemovimientoinventario.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\t}",
"public void modifyRealActivity(PublishMessageVO vo){\r\n\t\tRealActivity ra = baseDAO.get(new RealActivity(), vo.getRealactivityID());\r\n\t\tra.setTelephone(vo.getTelephone());\r\n\t\tra.setDiscription(vo.getDescription());\r\n\t\tbaseDAO.update(ra);\r\n\t}",
"public DDetRetContrArtEscenicsAttTO(java.lang.Integer ideFormato, java.lang.Byte numVersionFormato, java.lang.String numEvento, java.lang.String nomEspectaculo, java.lang.Integer codMunicipioEspectaculo, java.lang.Integer codDepartamentoEspectaculo, Integer fecRealizacion, java.lang.Long idePersonaRutProductor, java.lang.String valDireccionProductor, java.lang.Integer codMunicipioProductor, java.lang.Integer codDepartamentoProductor, java.lang.Long numTelefonoProductor, String valLugarEvento, java.lang.Integer numTotBoletasVendidas, java.math.BigDecimal valTotBoletasVendidas, BigDecimal valServDistComerBoleteria, java.lang.Integer numTotBolPrecIgSup3uvt, java.math.BigDecimal valTotBolPrecIgSup3uvt, java.lang.Integer numTotDerAsPreIgSup3uvt, java.math.BigDecimal valTotDerAsPreIgSup3uvt, java.lang.Integer numBoletasRetencionExceso, java.math.BigDecimal valBoletasRetencionExceso, Long ideUsuarioCambio, Timestamp fecCambio) {\n\t\tsetIdeFormato(ideFormato);\n\t\tsetNumVersionFormato(numVersionFormato);\n\t\tsetNumEvento(numEvento);\n\t\tsetNomEspectaculo(nomEspectaculo);\n\t\tsetCodMunicipioEspectaculo(codMunicipioEspectaculo);\n\t\tsetCodDepartamentoEspectaculo(codDepartamentoEspectaculo);\n\t\tsetFecRealizacion(fecRealizacion);\n\t\tsetIdePersonaRutProductor(idePersonaRutProductor);\n\t\tsetValDireccionProductor(valDireccionProductor);\n\t\tsetCodMunicipioProductor(codMunicipioProductor);\n\t\tsetCodDepartamentoProductor(codDepartamentoProductor);\n\t\tsetNumTelefonoProductor(numTelefonoProductor);\n\t\tsetValLugarEvento(valLugarEvento);\n\t\tsetNumTotBoletasVendidas(numTotBoletasVendidas);\n\t\tsetValTotBoletasVendidas(valTotBoletasVendidas);\n\t\tsetValServDistComerBoleteria(valServDistComerBoleteria);\n\t\tsetNumTotBolPrecIgSup3uvt(numTotBolPrecIgSup3uvt);\n\t\tsetValTotBolPrecIgSup3uvt(valTotBolPrecIgSup3uvt);\n\t\tsetNumTotDerAsPreIgSup3uvt(numTotDerAsPreIgSup3uvt);\n\t\tsetValTotDerAsPreIgSup3uvt(valTotDerAsPreIgSup3uvt);\n\t\tsetNumBoletasRetencionExceso(numBoletasRetencionExceso);\n\t\tsetValBoletasRetencionExceso(valBoletasRetencionExceso);\n\t\tsetIdeUsuarioCambio(ideUsuarioCambio);\n\t\tsetFecCambio(fecCambio);\n\t}",
"public void setWRITTEN_OFF_AMT(BigDecimal WRITTEN_OFF_AMT) {\r\n this.WRITTEN_OFF_AMT = WRITTEN_OFF_AMT;\r\n }",
"public static FileAttente fileAttenteGrande(){\n \n FileAttente bonneFile = (FileAttente) Main.allListAttente.get(0);\n for(Object fileAttente : Main.allListAttente.values())\n {\n FileAttente laFile = (FileAttente) fileAttente;\n int i = bonneFile.getNombreVoiture();\n \n if(((FileAttente) fileAttente).getNombreVoiture()>bonneFile.getNombreVoiture())\n {\n bonneFile = (FileAttente) fileAttente;\n }\n } \n return bonneFile;\n \n }",
"public void creightonIsExtraSpecial() {\n\t\tHashMap<String, Object> partToStatus = new HashMap<String, Object>();\n\t\t\n\t\tpartToStatus.put(\"autoTime\", autoTime);\n\t\tpartToStatus.put(\"matchTime\", matchTime);\n\t\t\n\t\tpartToStatus.get(\"autoTime\");\n\t\t\n\t\t\n\t}",
"public void inativarMovimentacoes() {\n\n\t\ttry {\n\n\t\t\tif (((auxMovimentacao.getDataMovimentacao())\n\t\t\t\t\t.before(permitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao()))\n\t\t\t\t\t|| (auxMovimentacao.getDataMovimentacao()).equals(\n\t\t\t\t\t\t\tpermitirCadastrarMovimentacao(movimentacao.getAlunoTurma()).getDataMovimentacao())\n\t\t\t\t\t) {\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.MOVIMENTACOES_ANTERIORES);\n\t\t\t} else {\n\n\t\t\t\tDate dataFinal = auxMovimentacao.getDataMovimentacao();\n\t\t\t\tCalendar calendarData = Calendar.getInstance();\n\t\t\t\tcalendarData.setTime(dataFinal);\n\t\t\t\tcalendarData.add(Calendar.DATE, -1);\n\t\t\t\tDate dataInicial = calendarData.getTime();\n\n\t\t\t\tMovimentacao mov = new Movimentacao();\n\t\t\t\tmov = (Movimentacao) movimentacaoAlunoDAO.listarTodos(Movimentacao.class,\n\t\t\t\t\t\t\" a.dataMovimentacao = (select max(b.dataMovimentacao) \"\n\t\t\t\t\t\t\t\t+ \" from Movimentacao b where b.alunoTurma = a.alunoTurma) \"\n\t\t\t\t\t\t\t\t+ \" and a.status is true and a.alunoTurma.status = true and dataMovimentacaoFim = null and a.alunoTurma = \"\n\t\t\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId())\n\t\t\t\t\t\t.get(0);\n\n\t\t\t\tmov.setControle(false);\n\t\t\t\tmov.setDataMovimentacaoFim(dataInicial);\n\t\t\t\tmovimentacaoService.inserirAlterar(mov);\n\n\t\t\t\tAlunoTurma aluno = new AlunoTurma();\n\t\t\t\taluno = daoAlunoTurma.buscarPorId(AlunoTurma.class, movimentacao.getAlunoTurma().getId());\n\t\t\t\taluno.setControle(0);\n\t\t\t\t\n\n\t\t\t\tauxMovimentacao.setAlunoTurma(movimentacao.getAlunoTurma());\n\t\t\t\tauxMovimentacao.setStatus(true);\n\t\t\t\tauxMovimentacao.setControle(false);\n\n\t\t\t\tmovimentacaoService.inserirAlterar(auxMovimentacao);\n\t\t\t\t\n\t\t\t\tif(auxMovimentacao.getSituacao()==5){\n//\t\t\t\t\t\n//\t\t\t\t\tCurso cursoAluno = new Curso();\n//\t\t\t\t\tcursoAluno = daoCurso.buscarPorId(Curso.class, auxMovimentacao.getAlunoTurma().getTurma().getCurso().getId());\n\t\t\t\t\t\n\t\t\t\t\taluno.setSituacao(5);\n\t\t\t\t\taluno.setLiberado(false);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t\t\n\t\t\t\t\t//liberar para responder o questionário\n\t\t\t\t\tAluno alunoResponde = new Aluno(); \n\t\t\t\t\talunoResponde = daoAluno.buscarPorId(Aluno.class, aluno.getAluno().getId());\n\t\t\t\t\t \n\t\t\t\t // email.setCursos(auxMovimentacao.getAlunoTurma().getTurma().getCurso());\n\t\t\t\t\t//email.setTurma(auxMovimentacao.getAlunoTurma().getTurma());\n\t\t\t\t\temail.setEnviado(false);\n\t\t\t\t\temail.setStatus(true);\n\t\t\t\t\temail.setAlunoTurma(auxMovimentacao.getAlunoTurma());\n\t\t\t\t\t\n\t\t\t\t\t//email.setAluno(alunoResponde);\n\t\t\t\t\temailService.inserirAlterar(email);\n\t\t\t\t\t//enviar o email para responder \n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\taluno.setSituacao(0);\n\t\t\t\t\talunoTurmaService.inserirAlterar(aluno);\n\t\t\t\t}\n\t\t\t\taluno = new AlunoTurma();\n\t\t\t\temail = new Email();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFecharDialog.fecharDialogAlunoCursoEditar();\n\t\t\t\tFecharDialog.fecharDialogAlunoEditarCurso();\n\t\t\t\tFecharDialog.fecharDialogAlunoTrancamento();\n\t\t\t\talterar(movimentacao);\n\n\t\t\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\t\t\tauxMovimentacao = new Movimentacao();\n\n\t\t\t\talunoTurmaService.update(\" AlunoTurma set permiteCadastroCertificado = 2 where id = \"\n\t\t\t\t\t\t+ movimentacao.getAlunoTurma().getId());\n\n\t\t\t\n\t\t\t\tcriarNovoObjetoAluno();\n\t\t\t\tatualizarListas();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tExibirMensagem.exibirMensagem(Mensagem.ERRO);\n\t\t}\n\n\t}",
"public void setFilaDatosExportarXmlUtilidadTipoPrecio(UtilidadTipoPrecio utilidadtipoprecio,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(UtilidadTipoPrecioConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(utilidadtipoprecio.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(UtilidadTipoPrecioConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(utilidadtipoprecio.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(UtilidadTipoPrecioConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(utilidadtipoprecio.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(UtilidadTipoPrecioConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(utilidadtipoprecio.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementtipoprecio_descripcion = document.createElement(UtilidadTipoPrecioConstantesFunciones.IDTIPOPRECIO);\r\n\t\telementtipoprecio_descripcion.appendChild(document.createTextNode(utilidadtipoprecio.gettipoprecio_descripcion()));\r\n\t\telement.appendChild(elementtipoprecio_descripcion);\r\n\r\n\t\tElement elementporcentaje = document.createElement(UtilidadTipoPrecioConstantesFunciones.PORCENTAJE);\r\n\t\telementporcentaje.appendChild(document.createTextNode(utilidadtipoprecio.getporcentaje().toString().trim()));\r\n\t\telement.appendChild(elementporcentaje);\r\n\t}",
"public static boolean ifPwrOffAlertset(VirtualMachine vm, AlarmManager am)throws IOException, InterruptedException{\n\t\t\tAlarm[] alarms = am.getAlarm(vm);\n\t\t\tboolean setAlarm = false;\n\t\t\tfor(Alarm alarm:alarms){\n\t\t\tif(alarm.getAlarmInfo().name.equals(\"Pwr_Off_vm \"+vm.getName())){setAlarm = true;}\n\t\t\t}\n\t\t\treturn setAlarm;\n\t\t}",
"public void setAttendType(Byte attendType) {\n this.attendType = attendType;\n }",
"private void supprAffichage() {\n switch (afficheChoix) {\n case AFFICHE_SPOOL :\n ecranSpool.deleteContents();\n break;\n case AFFICHE_USER :\n ecranUser.deleteContents();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.deleteContents();\n break;\n default: break;\n }\n afficheChoix = AFFICHE_RIEN;\n }",
"protected void attributeModified(MutationEvent evt) throws MelodyException {\r\n\t\tsuper.attributeModified(evt);\r\n\t\t// the target element\r\n\t\tElement t = (Element) evt.getTarget();\r\n\t\tDUNID tdunid = DUNIDDocHelper.getDUNID(t);\r\n\t\t// Modify the DUNIDDoc\r\n\t\tElement tori = getOwnerDUNIDDoc(t).getElement(tdunid);\r\n\t\ttori.setAttribute(evt.getAttrName(), evt.getNewValue());\r\n\t\t// Modify the targets descriptor\r\n\t\tif (!areTargetsFiltersDefined()) {\r\n\t\t\t/*\r\n\t\t\t * If there is no targets filters defined, there's no need to modify\r\n\t\t\t * the targets descriptor.\r\n\t\t\t */\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttori = getTargetsDescriptor().getElement(tdunid);\r\n\t\tif (tori != null) { // target node is in the targets descriptor\r\n\t\t\ttori.setAttribute(evt.getAttrName(), evt.getNewValue());\r\n\t\t}\r\n\t}",
"public void refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario(this.tipodetallemovimientoinventarioLogic.getTipoDetalleMovimientoInventarios());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.refrescarForeignKeysDescripcionesTipoDetalleMovimientoInventario(this.tipodetallemovimientoinventarios);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//tipodetallemovimientoinventarioLogic.setTipoDetalleMovimientoInventarios(this.tipodetallemovimientoinventarios);\r\n\t\t\ttipodetallemovimientoinventarioLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}",
"public void acionarInadimplencia(InstrumentoFinanceiroDO ativo);",
"public void aplicarDescuento();",
"@Override\n public void actualizarPropiedad(Propiedad nuevaPropiedad) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPropiedad.getValorMetroCuadrado();\n double fiscal = nuevaPropiedad.getValorFiscal();\n String provincia = nuevaPropiedad.getProvincia();\n String canton = nuevaPropiedad.getCanton();\n String distrito = nuevaPropiedad.getDistrito();\n String dirExacta = nuevaPropiedad.getDirExacta();\n String estado = nuevaPropiedad.getEstado();\n String tipo = nuevaPropiedad.getTipo();\n System.out.println(nuevaPropiedad.getFotografias().size());\n double precio = nuevaPropiedad.getPrecio();\n try {\n bdPropiedad.manipulationQuery(\"UPDATE PROPIEDAD SET MODALIDAD = '\" + modalidad + \"', AREA_TERRENO \"\n + \"= \" + area + \", VALOR_METRO = \" + metro + \", VALOR_FISCAL = \"+ fiscal + \", PROVINCIA = '\" \n + provincia + \"', CANTON = '\" + canton + \"' , DISTRITO = '\" + distrito + \"', DIREXACTA = '\" \n + dirExacta + \"', ESTADO = '\" + estado + \"', PRECIO = \" + precio + \" WHERE ID_PROPIEDAD = \" \n + numFinca);\n bdPropiedad.manipulationQuery(\"DELETE FROM FOTOGRAFIA_PROPIEDAD WHERE ID_PROPIEDAD = \" + numFinca);\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void editar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.edit(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }",
"private void setAttributesForPersonResponsibleProcedure(IacucProcedurePersonResponsible resposibleProcedure, IacucProtocolPerson protocolPerson, \n IacucProtocolStudyGroup iacucProtocolStudyGroup) {\n resposibleProcedure.setProtocolPersonId(protocolPerson.getProtocolPersonId());\n resposibleProcedure.setProtocolPerson(protocolPerson);\n resposibleProcedure.setIacucProtocolStudyGroupId(iacucProtocolStudyGroup.getIacucProtocolStudyGroupId());\n }",
"public void atualizaAltaObitoProcessaAlta(\r\n\t\t\tfinal AinTiposAltaMedica tipoAltaMedica, final AipPacientes paciente,\r\n\t\t\tfinal Date dataAltaMedica, String nomeMicrocomputador, final Date dataFimVinculoServidor) throws ApplicationBusinessException {\r\n\t\tfinal String codTipoAltaMedica = tipoAltaMedica == null ? null\r\n\t\t\t\t: tipoAltaMedica.getCodigo();\r\n\t\tif (Objects.equals(codTipoAltaMedica, getCodTipoAltaObito())\r\n\t\t\t\t|| Objects.equals(codTipoAltaMedica,\r\n\t\t\t\t\t\tgetCodTipoAltaObitoMais48h())) {\r\n\t\t\tpaciente.setDtObito(dataAltaMedica);\r\n\t\t\tthis.getCadastroPacienteFacade().atualizarPacienteParcial(paciente, nomeMicrocomputador, dataFimVinculoServidor);\r\n\t\t}\r\n\t}",
"public void setAttVCA(int att){\n\t\t\n\t\tsuper.setAttVCA((att == 0)? 1 : att );\n\t}",
"public void setPerfilDescripcion(String descripcion);",
"void setAssociatedPart(int asProID) {\n this.asProID = asProID;\n }",
"public int getAtt(){ \r\n return att;\r\n }",
"private void aumentaCapacidade(){\n\t\tif(this.tamanho == this.elementos.length){\n\t\t\tObject[] elementosNovos = new Object[this.elementos.length*2];\n\t\t\tfor(int i =0; i<this.elementos.length;i++){\n\t\t\t\telementosNovos[i]=this.elementos[i];\n\t\t\t}\n\t\t\tthis.elementos=elementosNovos;\n\t\t}\n\t}",
"public void refrescarForeignKeysDescripcionesUtilidadTipoPrecio() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.refrescarForeignKeysDescripcionesUtilidadTipoPrecio(this.utilidadtipoprecioLogic.getUtilidadTipoPrecios());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tUtilidadTipoPrecioConstantesFunciones.refrescarForeignKeysDescripcionesUtilidadTipoPrecio(this.utilidadtipoprecios);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(TipoPrecio.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//utilidadtipoprecioLogic.setUtilidadTipoPrecios(this.utilidadtipoprecios);\r\n\t\t\tutilidadtipoprecioLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}",
"public void refrescarForeignKeysDescripcionesFacturaPuntoVenta() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.refrescarForeignKeysDescripcionesFacturaPuntoVenta(this.facturapuntoventaLogic.getFacturaPuntoVentas());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.refrescarForeignKeysDescripcionesFacturaPuntoVenta(this.facturapuntoventas);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Usuario.class));\r\n\t\tclasses.add(new Classe(Vendedor.class));\r\n\t\tclasses.add(new Classe(Cliente.class));\r\n\t\tclasses.add(new Classe(Caja.class));\r\n\t\tclasses.add(new Classe(TipoPrecio.class));\r\n\t\tclasses.add(new Classe(Mesa.class));\r\n\t\tclasses.add(new Classe(Formato.class));\r\n\t\tclasses.add(new Classe(TipoFacturaPuntoVenta.class));\r\n\t\tclasses.add(new Classe(EstadoFacturaPuntoVenta.class));\r\n\t\tclasses.add(new Classe(AsientoContable.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//facturapuntoventaLogic.setFacturaPuntoVentas(this.facturapuntoventas);\r\n\t\t\tfacturapuntoventaLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}",
"public void setAttendPoint(Integer attendPoint) {\n this.attendPoint = attendPoint;\n }",
"private static void resetDescontoMensal(){\n for(Apps a : apps){\n if(a.isDescontoMensal()){\n a.setDescontoMensal(false);\n }\n }\n }",
"public void consulterBoiteVocale() {\n for (int i = 0; i < this.boiteVocale.getListeMessagesVocaux().size(); i++) {\n //on passe l'attribut consulte à true pour savoir qu'il a été vu pour la facturation\n this.boiteVocale.getListeMessagesVocaux().get(i).setConsulte(true);\n }\n }",
"public void desc(CommandSender sender, CDisable main)\n {\n sender.sendMessage(color(\"&2========== \" + getPrefix().replace(\":\",\"\") + \"&2==========\"));\n sender.sendMessage(color(\"&7[&9\" + main.pdfFile.getName() + \"&7] &6Created by, &b&l\" +main.pdfFile.getAuthors()+\"&6.\"));\n sender.sendMessage(color(\"&2\" + main.pdfFile.getDescription() + \"&2.\"));\n sender.sendMessage(color(\"&bWebsite: &e&l\" + main.pdfFile.getWebsite()));\n sender.sendMessage(color(\"\"));\n sender.sendMessage(color(\"\"));\n sender.sendMessage(color(\" &6&l>>>&2&l===============&6&l<<<\\t\"));\n }",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"public String getProperts() {\n\t\t// TODO Auto-generated method stub\n\t\treturn arquivo+\" - \"+tamanho;\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"boolean isSetValueAttachment();",
"private void saveOtherSetting(GameEngine engine, CustomProperties prop) {\r\n\t\tsuper.saveOtherSetting(engine, prop, \"spf\");\r\n\t\tint playerID = engine.getPlayerID();\r\n\t\tprop.setProperty(\"avalanchevsspf.ojamaCountdown.p\" + playerID, ojamaCountdown[playerID]);\r\n\t\tprop.setProperty(\"avalanchevsspf.dropSet.p\" + playerID, dropSet[playerID]);\r\n\t\tprop.setProperty(\"avalanchevsspf.dropMap.p\" + playerID, dropMap[playerID]);\r\n\t}",
"@Override\n public void writeToParcel( Parcel dest, int flags )\n {\n dest.writeString( emoticonId );\n dest.writeString( emoticonName );\n dest.writeString( emoticonStatic );\n dest.writeString( emoticonDynamic );\n dest.writeString( packageId );\n dest.writeByteArray( emoticonStaticByte );\n dest.writeByteArray( emoticonDynamicByte );\n dest.writeString( userPhone );\n dest.writeBooleanArray( new boolean[]{ isOnlyBrowse } );\n }",
"public void setOcuppied(boolean ocuppied) {\n this.ocuppied = ocuppied;\n }",
"public void aumentarReproducidas() {\n\t\tsuper.aumentarReproducidas();\n\n\t}",
"public void setAtmo(boolean value) {\n this.atmo = value;\n }",
"private void setPhotoAttcher() {\n\n }",
"void addVeto(VetoableOperation operation, EntityShieldVeto veto) throws UPAException;",
"public void imprimirNivelMedio(){\n\t\tmodCons.imprimirNivelMedio();\n\t}",
"@Override\n\tpublic void updateFalse(MetodoPagamento object) {\n\t\t\n\t}",
"@Override\n\tpublic void enviarEmailConfirmacaoPedido(Pedido obj) {\n\t\t//Vou chamar a classe que faz a referência ao EMAIL\n\t\t/*\n\t\t * Vou instanciar o meu SimpleMailMessage a apartir do meu metodo\n\t\t * que é o Pedido.\n\t\t * \n\t\t * Esse enviarEmail é aquele metodo da minha interface.\n\t\t * \n\t\t * Estou chamando ele aqui no meu AbstractEmailServico\n\t\t * Ele não está implementado ainda, mas já posso utiliza-lo aqui\n\t\t * na minha implementação da classe abstrata, esse é o padrão de projeto\n\t\t * Template Method, que você consegue implementar um metodo baseado em\n\t\t * metodos abstratos, que depois vão ser implementados pelas implementações \n\t\t * da interface EmailServico.\n\t\t */\n\t\tSimpleMailMessage sm = prepararMessagemDeEmailParaPedido(obj);\n\t\tenviarEmail(sm);\n\t}",
"@Override\r\n\tpublic void alterar(Telefone vo) throws Exception {\n\t\t\r\n\t}",
"private void changeCardAttributes(Player player,LeaderCard toCopy){\n\t\tfor(LeaderCard leader : player.getLeaderCards()){\n\t\t\tif((\"Lorenzo de Medici\").equalsIgnoreCase(leader.getName())){\n\t\t\t\tleader.setEffect(toCopy.getEffect());\n\t\t\t\tleader.setPermanent(toCopy.getPermanent());\n\t\t\t\tleader.setName(toCopy.getName());\n\t\t\t}\n\t\t}\n\t}",
"public void apply() {\n for (Player player : Bukkit.getOnlinePlayers())\n if (player.getName().equalsIgnoreCase(getName())) {\n for (PermissionAttachmentInfo attachmentInfo : player.getEffectivePermissions())\n if (attachmentInfo.getAttachment().getPlugin().getName().equalsIgnoreCase(\"rpermissions\")) {\n player.removeAttachment(attachmentInfo.getAttachment());\n break;\n }\n PermissionAttachment attachment = player.addAttachment(rPermissions.getInstance());\n for (Map.Entry<String, Boolean> entry : calculatePerms().entrySet())\n attachment.setPermission(entry.getKey(), entry.getValue());\n }\n }",
"@Override\n\tpublic void attiva(Player player) {\n\n\t}",
"public void alterarVencimentoFatura(Fatura fatura) throws ErroRepositorioException ;",
"public Part getFotoPerfil(){\n return fotoPerfil;\n }",
"@Override\r\n\tpublic int modify(PaymentPO po) {\n\t\treturn 0;\r\n\t}",
"public void editarImovel_Detalhes(String titulo, String novoDetalhes) {\n\t\tString sql = \"UPDATE imovel SET detalhes='\"+novoDetalhes+\"' WHERE titulo ='\" +titulo+\"'\";\n\t\tboolean imovelEncontrado = buscaImovel_BD(titulo);\n\t\tif(imovelEncontrado==false) {\n\t\t\ttry{\n\t\t\t\tPreparedStatement stmt = conexaoBD.prepareStatement(sql); \n\t\t\t\tstmt.execute();\n\t\t\t\tstmt.close();\n\t\t\t}catch(Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage()); \n\t\t\t}\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Verifique o título do imóvel.\");\n\t\t}\n\t}",
"public boolean writeAttributeFile();",
"public boolean alterarInformacoes(Prova prova) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"UPDATE prova SET codDisciplina=?, titulo=?, valorTotal=?, valorQuestoes=?, tempo=?, data=?, allowAfterDate=?, allowMultipleAttempts=? WHERE codigo=?\");\n\t\t\tps.setInt (1, prova.getCodDisciplina());\n\t\t\tps.setString (2, prova.getTitulo());\n\t\t\tps.setFloat (3, prova.getValorTotal());\n\t\t\tps.setFloat (4, prova.getValorQuestoes());\n\t\t\tps.setInt (5, prova.getTempo());\n\t\t\tps.setString (6, prova.getData()); \n\t\t\tps.setBoolean(7, prova.isAllowAfterDate()); \n\t\t\tps.setBoolean(8, prova.isAllowMultipleAttempts()); \n\t\t\tps.setInt (9, prova.getCodigo());\n\t\t\n\t\t\treturn (ps.executeUpdate() > 0) ? true : false;\n\t\t});\t\n\t}",
"@Override\n\tpublic void atualizar(Produto entidade) {\n\n\t}",
"public void attributDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}",
"@Override\r\n public void mostrarProfesores(){\n for(Persona i: listaPersona){\r\n if(i instanceof Profesor){\r\n i.mostrar();\r\n }\r\n }\r\n }",
"private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }",
"public void imprimir(){\n for(int i = 0;i < this.listaEtiquetas.size();i++){\n System.out.println(\"- \"+(i+1)+this.listaEtiquetas.get(i).getEtiqueta()+\" descripcion\"+this.listaEtiquetas.get(i).getDescripcion());\n }\n }",
"@Override\n\tpublic void modifypro(ProductBean p) {\n\t\tsession.update(namespace+\".modifypro\", p);\n\t}",
"public Byte getAttendType() {\n return attendType;\n }",
"public void ativa() {\n this.ativada = true;\n }",
"public void verificaAlteracao() {\r\n if (produto != null) {\r\n dialog.getTfNome().setText(produto.getNome());\r\n dialog.getTfCodigoBarra().setText(produto.getCodigoBarra());\r\n dialog.getTfPrecoCompra().setText(produto.getPrecoCompra().toString());\r\n dialog.getTfPrecoVenda().setText(produto.getPrecoVenda().toString());\r\n dialog.getCbCategoria().setSelectedItem(produto.getCategoriaId());\r\n dialog.getCbFornecedor().setSelectedItem(produto.getFornecedorId());\r\n }\r\n }",
"public void setacto()\n\t\t{\n\t\t\tacto=1;\n\t\tavance=0;\n\t\t}",
"public boolean onPreferenceChange(Preference preference, Object newValue) {\n\t\tif(preference.getKey().equals(\"autoattach_value\")){\n\t\t\tMessage m = mHandler.obtainMessage(engconstents.ENG_AT_SETAUTOATTACH, 0, 0, 0);\n\t\t\tmHandler.sendMessage(m);\n\t\t\thasPara = true;\n\t\t\treturn true;\n\t\t}else\n\t\treturn false;\n\t}"
] | [
"0.59597725",
"0.5774974",
"0.57145935",
"0.56977063",
"0.5531924",
"0.5443126",
"0.5338615",
"0.52811575",
"0.52600497",
"0.5202032",
"0.50901175",
"0.50879717",
"0.507687",
"0.5075088",
"0.5034696",
"0.5009274",
"0.5004976",
"0.49998644",
"0.49893227",
"0.4977069",
"0.49638173",
"0.49612954",
"0.4950873",
"0.4915279",
"0.4878026",
"0.48536453",
"0.48499867",
"0.48373893",
"0.48022908",
"0.4802252",
"0.48014674",
"0.4798394",
"0.47853482",
"0.47748896",
"0.47664922",
"0.47581849",
"0.47560924",
"0.47553495",
"0.47553274",
"0.47462183",
"0.47434986",
"0.4732737",
"0.47289574",
"0.47253746",
"0.47176394",
"0.4711002",
"0.4709443",
"0.46996832",
"0.46962297",
"0.46841845",
"0.46818835",
"0.46807653",
"0.46727073",
"0.46722102",
"0.46716464",
"0.46646145",
"0.46499443",
"0.46481618",
"0.46250015",
"0.46215743",
"0.46145046",
"0.46126992",
"0.46090633",
"0.46067044",
"0.46005192",
"0.45950878",
"0.458798",
"0.45799646",
"0.457728",
"0.4575845",
"0.45703572",
"0.45612654",
"0.45610723",
"0.456002",
"0.45530093",
"0.45525733",
"0.45518613",
"0.45515674",
"0.45510635",
"0.45470738",
"0.45442638",
"0.4544125",
"0.45425516",
"0.45404026",
"0.4533334",
"0.45315123",
"0.45314753",
"0.45300862",
"0.4529373",
"0.45269087",
"0.45252877",
"0.45243815",
"0.45199966",
"0.45194447",
"0.45157874",
"0.4514915",
"0.45107135",
"0.45072633",
"0.45003965",
"0.44979045"
] | 0.5989159 | 0 |
inflates the image and instantiates adapters, recycler views, and sets layout manager | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_selector, container,false);
//get lists of structure from singleton
structureList = StructureData.get();
//set the adaptor
structureAdapter = new SelectorAdapter();
//find recycler view and set layout manager constraints, set new adaoter to adaptor made above
rvS = (RecyclerView) view.findViewById(R.id.selectorRecyclerView);
rvS.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL,
false));
rvS.setAdapter(structureAdapter);
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setUpListOfImageRecyclerView() {\n try {\n\n content_layout.removeAllViews();\n RecyclerView recyclerView = new RecyclerView(getApplicationContext());\n recyclerView.setLayoutParams(\n new ViewGroup.LayoutParams(\n // or ViewGroup.LayoutParams.WRAP_CONTENT\n ViewGroup.LayoutParams.MATCH_PARENT,\n // or ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.MATCH_PARENT));\n\n LinearLayoutManager layoutManager\n = new LinearLayoutManager(getApplicationContext(), LinearLayoutManager.HORIZONTAL, false);\n\n // set main_logo LinearLayoutManager with HORIZONTAL orientation\n recyclerView.setLayoutManager(layoutManager);\n\n // call the constructor of CustomAdapter to send the reference and data to Adapter\n recyclerView.setAdapter(mSelectedImageAdapter); // set the Adapter to RecyclerView\n\n\n content_layout.addView(recyclerView);\n\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"private void init() {\n initActionButton();\n mRecyclerView.setLayoutManager(new GridLayoutManager(this, 2));\n mAdapter = new MainAdapter(getApplicationContext(),getImages());\n mRecyclerView.setAdapter(mAdapter);\n mAdapter.setListener(new MainAdapter.OnClickListener() {\n @Override\n public void onClickItem(ImageItem selected, int position) {\n goToDetailScreen(position);\n }\n });\n }",
"private void initView() {\n // set layout for recycle view\n //hasFixedSize true if adapter changes cannot affect the size of the RecyclerView\n recyclerView.setHasFixedSize(true);\n // this layout can be vertical or horizontal by change the second param\n // of LinearLayoutManager, and display up to down by set the third param false\n LinearLayoutManager layoutManager = new LinearLayoutManager(this,\n LinearLayoutManager.VERTICAL, false);\n\n recyclerView.setLayoutManager(layoutManager);\n importData();\n // set adapter for recycle view\n recyclerView.setAdapter(alarmAdapter);\n }",
"public ImageAdapter(Activity localContext,LayoutInflater inflater,ViewGroup container) {\n context = localContext;\n images = getAllShownImagesPath(context);\n img_view = inflater.inflate(R.layout.img_view, container, false);\n }",
"private void init() {\n\t\tinitData();\n\t\tmViewPager = (ViewPagerCompat) findViewById(R.id.id_viewpager);\n\t\tnaviBar = findViewById(R.id.navi_bar);\n\t\tNavigationBarUtils.initNavigationBar(this, naviBar, true, ScreenContents.class, false, ScreenViewPager.class,\n\t\t\t\tfalse, ScreenContents.class);\n\t\tmViewPager.setPageTransformer(true, new DepthPageTransformer());\n\t\t// mViewPager.setPageTransformer(true, new RotateDownPageTransformer());\n\t\tmViewPager.setAdapter(new PagerAdapter() {\n\t\t\t@Override\n\t\t\tpublic Object instantiateItem(ViewGroup container, int position) {\n\n\t\t\t\tcontainer.addView(mImageViews.get(position));\n\t\t\t\treturn mImageViews.get(position);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void destroyItem(ViewGroup container, int position, Object object) {\n\n\t\t\t\tcontainer.removeView(mImageViews.get(position));\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean isViewFromObject(View view, Object object) {\n\t\t\t\treturn view == object;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn mImgIds.length;\n\t\t\t}\n\t\t});\n\t}",
"private void init(){\n\t\tmIV = new ImageView(mContext);\r\n\t\tFrameLayout.LayoutParams param1 = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT\r\n\t\t\t\t, FrameLayout.LayoutParams.MATCH_PARENT);\r\n\t\tmIV.setLayoutParams(param1);\r\n\t\tmIV.setScaleType(ScaleType.FIT_XY);\r\n//\t\tmIVs[0] = iv1;\r\n\t\tthis.addView(mIV);\r\n//\t\tImageView iv2 = new ImageView(mContext);\r\n//\t\tFrameLayout.LayoutParams param2 = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT\r\n//\t\t\t\t, FrameLayout.LayoutParams.MATCH_PARENT);\r\n//\t\tiv2.setLayoutParams(param2);\r\n//\t\tiv2.setScaleType(ScaleType.CENTER_CROP);\r\n//\t\tmIVs[1] = iv2;\r\n//\t\tthis.addView(iv2);\r\n\t\tthis.mHandler = new Handler();\r\n\t}",
"@Override\r\n\tpublic void setupView() {\n\t\tbitmapUtils.configDefaultBitmapConfig(Config.RGB_565);//设置图片压缩类型\r\n\t\tbitmapUtils.configDefaultLoadingImage(R.drawable.test_default_wait_img);// 默认背景图片\r\n\t\tbitmapUtils.configDefaultLoadFailedImage(R.drawable.test_default_wait_img);// 加载失败图片\r\n\t\t\r\n\t\t// 获取数据\r\n\t\tintent = getIntent();\r\n\t\tBlogsInfoEntity entity = (BlogsInfoEntity) intent.getSerializableExtra(\"entity\");\r\n\t\tlist_images = entity.getImg_attachment();\r\n\t\tint position = intent.getIntExtra(\"position\", 0);\r\n\t\tleft_btn = (ImageView) findViewById(R.id.left_btn);\r\n\t\tleft_btn.setOnClickListener(l);\r\n\t\tcenter_content = (TextView) findViewById(R.id.center_content);\r\n\t\tcenter_content.setText(String.valueOf(position + 1) + \"/\"+ String.valueOf(list_images.size()));\r\n\t\tmViewPager = (CustomViewPager) findViewById(R.id.pager);\r\n\t\tmViewPager.setScanScroll(true);\r\n\t\tSamplePagerAdapter adapter = new SamplePagerAdapter();// 声明适配器\r\n\t\tmViewPager.setAdapter(adapter);// 绑定\r\n\t\tmViewPager.setCurrentItem(position);\r\n\t\tmViewPager.setOnPageChangeListener(new OnPageChangeListener() {\r\n\t\t\t// 页面更变\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageSelected(int position) {\r\n\t\t\t\tcenter_content.setText(String.valueOf(position + 1) + \"/\"+ String.valueOf(list_images.size()));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrollStateChanged(int state) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onPageScrolled(int position, float positionOffset,\r\n\t\t\t\t\tint positionOffsetPixels) {\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void initializeRecyclerView() {\n if (mImages != null) {\n if (mImages.size() > 0) {\n mImagesRecyclerView.setBackground(null);\n } else {\n mImagesRecyclerView.setBackgroundResource(R.drawable.placeholder_image);\n }\n\n mImagesRecyclerView.setLayoutManager(new GridLayoutManager(this, 3));\n\n mAdapter = new ImagesRecyclerViewAdapter(this, mImages, mImageDescription, this);\n mImagesRecyclerView.setAdapter(mAdapter);\n }\n }",
"@Override\r\n\tprotected void initLayout() {\n\t\tsuper.initLayout();\r\n\t\t\r\n\t\tiv = (ImageView) findViewById(R.id.iv);\r\n\t\t\r\n\t\tfindViewById(R.id.button1).setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tDeviceTool.recycleDrawable(iv);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n//\t\tiv.setBackgroundResource(R.drawable.customer_introduction1);\r\n\t\tiv.setImageResource(R.drawable.customer_introduction1);\r\n//\t\tDrawable drawable = getResources().getDrawable(R.drawable.customer_introduction1);\r\n//\t\tBitmapDrawable bd = ((BitmapDrawable) drawable);\r\n//\t\tif(bd != null) {\r\n//\t\t\tbd.setCallback(iv);\r\n//\t\t\tBitmap bm = bd.getBitmap();\r\n//\t\t\t\r\n//\t\t\tif(bm != null) {\r\n//\t\t\t\tSystem.out.println(\"bm.isRecycled() == \" + bm.isRecycled());\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\tiv.setImageDrawable(drawable);\r\n\t\t\r\n\t\tString url = \"http://www.baidu.com百度\";\r\n\t\tMatcher urlMatcher = URL_PATTERN.matcher(url);\r\n\t\twhile (urlMatcher.find()) {\r\n\t\t\tDebugTool.info(tag, \"找到地址:\" + urlMatcher.group(0));\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ){\n View rootView= inflater.inflate(R.layout.fragment_gallery_detail, container, false);\n\n mHeader = (NetworkImageView) rootView.findViewById(R.id.fragment_detail_header);\n// mAvatar = (NetworkImageView) rootView.findViewById(R.id.fragment_detail_ic_avatar);\n mAvatar = (CircularNetworkImageView) rootView.findViewById(R.id.fragment_detail_ic_avatar);\n\n // NetworkImageView\n mHeader.setImageUrl( mGalleryItem.getHeaderUrl(), mImageLoader);\n mAvatar.setImageUrl( mGalleryItem.getAvatarUrl() , mImageLoader );\n\n // TextView\n mUserName = (TextView) rootView.findViewById(R.id.fragment_detail_username);\n String userName= mGalleryItem.getFirstName()+\" \"+mGalleryItem.getLastName();\n mUserName.setText( userName );\n\n mAddress = (TextView) rootView.findViewById(R.id.fragment_detail_address);\n mAddress.setText( mGalleryItem.getAddress() );\n\n mTime = (TextView) rootView.findViewById(R.id.fragment_detail_time);\n mTime.setText( mGalleryItem.getTime() );\n\n mCaption = (TextView) rootView.findViewById(R.id.fragment_detail_caption);\n mCaption.setText( mGalleryItem.getCaption());\n\n\n mIconAddress = (ImageView) rootView.findViewById(R.id.fragment_detail_ic_address);\n mIconTime= (ImageView)rootView.findViewById(R.id.fragment_detail_ic_time);\n\n // ImageView\n //mIconAddress.setImageDrawable();\n //mIconTime.setImageDrawable();\n\n return rootView;\n }",
"private void prepareProductImagesLayout(View view) {\n productImagesRecycler = (RecyclerView) view.findViewById(R.id.product_images_recycler_view);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false);\n productImagesRecycler.setLayoutManager(linearLayoutManager);\n productImagesAdapter = new ProductImagesRecyclerAdapter(getActivity(), new ProductImagesRecyclerInterface() {\n @Override\n public void onImageSelected(View v, int position) {\n ProductImagesDialogFragment imagesDialog = ProductImagesDialogFragment.newInstance(productImagesUrls, position);\n if (imagesDialog != null)\n imagesDialog.show(getFragmentManager(), ProductImagesDialogFragment.class.getSimpleName());\n else {\n Timber.e(\"%s Called with empty image list\", ProductImagesDialogFragment.class.getSimpleName());\n }\n }\n });\n productImagesRecycler.setAdapter(productImagesAdapter);\n\n ViewGroup.LayoutParams params = productImagesRecycler.getLayoutParams();\n DisplayMetrics dm = getActivity().getResources().getDisplayMetrics();\n int densityDpi = dm.densityDpi;\n\n // For small screen even smaller images.\n if (densityDpi <= DisplayMetrics.DENSITY_MEDIUM) {\n params.height = (int) (dm.heightPixels * 0.4);\n } else {\n params.height = (int) (dm.heightPixels * 0.48);\n }\n\n // Prepare related products\n RecyclerView relatedProductsRecycler = (RecyclerView) view.findViewById(R.id.product_recommended_images_recycler);\n relatedProductsRecycler.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.HORIZONTAL, false));\n relatedProductsRecycler.addItemDecoration(new RecyclerMarginDecorator(getContext(), RecyclerMarginDecorator.ORIENTATION.HORIZONTAL));\n relatedProductsAdapter = new RelatedProductsRecyclerAdapter(getActivity(), new RelatedProductsRecyclerInterface() {\n @Override\n public void onRelatedProductSelected(View v, int position, Product product) {\n if (product != null && getActivity() instanceof MainActivity) {\n ((MainActivity) getActivity()).onProductSelected(product.getProduct_id());\n }\n }\n\n });\n relatedProductsRecycler.setAdapter(relatedProductsAdapter);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_image_view, container, false);\n\n ButterKnife.bind(this, view);\n\n\n _imageFile = new File(_imagePath);\n if (PermissionChecker.hasExtStoragePerm(getActivity()) && _imageFile.exists()) {\n _bitmap = ContextUtils.get().loadImageFromFilesystem(_imageFile);\n }\n if (_bitmap == null) {\n _imageFile = null;\n _bitmap = ContextUtils.get().drawableToBitmap(\n ContextCompat.getDrawable(getActivity(), R.drawable.ic_mood_bad_black_256dp));\n }\n _expandedImageView.setImageBitmap(_bitmap);\n\n return view;\n }",
"private void setUpImageLoader() {\n\t\tfinal DisplayMetrics displayMetrics = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n\t\tfinal int height = displayMetrics.heightPixels;\n\t\tfinal int width = displayMetrics.widthPixels;\n\n\t\t// For this sample we'll use half of the longest width to resize our images. As the\n\t\t// image scaling ensures the image is larger than this, we should be left with a\n\t\t// resolution that is appropriate for both portrait and landscape. For best image quality\n\t\t// we shouldn't divide by 2, but this will use more memory and require a larger memory\n\t\t// cache.\n\t\tfinal int longest = (height > width ? height : width) / 4;\n\n\t\tImageCache.ImageCacheParams cacheParams =\n\t\t\t\tnew ImageCache.ImageCacheParams(this, IMAGE_CACHE_DIR);\n\t\tcacheParams.setMemCacheSizePercent(0.25f); // Set memory cache to 25% of app memory\n\n\t\timageResizer = new ImageResizer(this, longest);\n\t\timageResizer.addImageCache(getSupportFragmentManager(), cacheParams);\n\t\timageResizer.setImageFadeIn(true);\n\t}",
"private void createImageView() {\n /**\n * We use @{@link AdjustableImageView} so that we can have behaviour like setAdjustViewBounds(true)\n * for Android below API 18\n */\n viewsToBeInflated.add(new AdjustableImageView(getActivityContext()));\n }",
"protected void init_adapter()\n {\n manager = new GridLayoutManager(this, 2);\n recycler_view.setLayoutManager(manager);\n //recycler_view.setit\n\n adapter = new NasaApodAdapter();\n\n adapter.setOnItemClickListener(new NasaApodAdapter.OnItemClickListener()\n {\n @Override\n public void onItemClick(Photo photo)\n {\n Log.d(\"APOD\", photo.getImgSrc());\n\n intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(\"photo\", photo);\n\n startActivity(intent);\n }\n });\n }",
"public void fillViews(){\n if(interestPoint.getContents().size() > 0){\n contentList = (RecyclerView)findViewById(R.id.recyclerView);\n contentList.setAdapter(new ContentSelectionAdapter(this, interestPoint.getContents())); // Pass the ids for the icons\n contentList.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));\n\n // Get first subject to populate views\n Content first = interestPoint.getContents().get(0);\n\n Content.DisplayValues dv = first.getDisplayValues(Locale.getDefault());\n ((TextView) findViewById(R.id.subject_title)).setText(dv.title);\n ((TextView) findViewById(R.id.subject_content)).setText(Html.fromHtml(dv.description));\n\n // Load multimedia\n LayoutInflater inflater = getLayoutInflater();\n LinearLayout linearLayout = ((LinearLayout)findViewById(R.id.content_container));\n linearLayout.removeAllViewsInLayout();\n for(Multimedia m : first.getMultimedia()){\n NetworkImageView imageView = (NetworkImageView) inflater.inflate(R.layout.content_image, null);\n String url = \"http://\" + m.geteURL();\n ImageLoader loader = RequestManager.getInstance(getApplicationContext()).getImageLoader();\n loader.get(url, loader.getImageListener(imageView, R.mipmap.ic_launcher, R.mipmap.ic_launcher_round));\n imageView.setImageUrl(url, loader);\n\n linearLayout.addView(imageView);\n }\n\n final int pathID = (int)getIntent().getExtras().getLong(\"PathwayID\");\n // Read the path from the network\n PathUtils.readPathFromNetwork(this, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n path = PathwayJSON.createFullPathFromJSON(ContentActivity.this, response);\n }catch(Exception e){\n Log.e(\"PATH LOADING ERROR\", \"Failed loading the path\");\n }\n\n ((TextView)findViewById(R.id.regionText)).setText(String.valueOf(path.getreg()));\n ((TextView)findViewById(R.id.countryText)).setText(String.valueOf(path.getcouEN()));\n\n }\n }, pathID);\n }\n }",
"@Override\n public ImageViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(mContext).inflate(R.layout.image_item, parent, false);\n return new ImageViewHolder(v);\n }",
"private void init() {\n mWallpaperRecycler.setLayoutManager(new GridLayoutManager(getContext(), 2));\n mWallpaperRecycler.setHasFixedSize(true);\n mWallpaperAdapter = new WallpaperAdapter(getContext(), mEmptyView, this);\n mWallpaperRecycler.setAdapter(mWallpaperAdapter);\n\n\n mPresenter = new TrendingWallpapersPresenterImpl(\n ThreadExecutor.getInstance(),\n MainThreadImpl.getInstance(),\n this,\n mUnsplashRepository);\n }",
"public MapHolder(LayoutInflater inflater, ViewGroup parent) {\n super(inflater.inflate(R.layout.area_cell, parent, false));\n itemView.setOnClickListener(this);\n //sets the recycler views highet at runtime, divide that by the number of cells that can fit\n int size = parent.getMeasuredHeight() / GameData.ROW + 1;\n ViewGroup.LayoutParams lp = itemView.getLayoutParams();\n lp.width = size;\n lp.height = size;\n image1 = (ImageView)itemView.findViewById(R.id.imagetopleft);\n\n\n }",
"public void setupAdapter() {\n recyclerAdapter = new PhotosAdapter(this);\n recyclerViewPhotos.setAdapter(recyclerAdapter);\n }",
"private void initViews() {\n\n if (blockListAdapter != null) {\n blockListAdapter = null;\n }\n\n swipeRefreshLayout.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n rv_swipe_refresh_tv.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n rv_swipe_refresh_tv.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n noResultRefreshTextView.setOnClickListener(this);\n\n if (swipeRefreshLayout != null) {\n swipeRefreshLayout.post(new Runnable() {\n @Override\n public void run() {\n swipeRefreshLayout.setRefreshing(true);\n firstNetworkCall();\n }\n });\n }\n\n btnBack.setOnClickListener(this);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_image, container, false);\n imageView=view.findViewById(R.id.image);\n imageConf();\n setImage();\n return view;\n }",
"@NonNull\r\n @Override\r\n public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n\r\n ImageView view = new ImageView(getApplicationContext());\r\n\r\n\r\n return new RecyclerView.ViewHolder(view) {\r\n\r\n };\r\n }",
"public void cargarAdaptador(){\n gridLayoutManager = new GridLayoutManager(getContext(), 2);\n recyclerView.setLayoutManager(gridLayoutManager);\n adapterRecetas = new AdapterRecetas(getContext());\n recyclerView.setAdapter(adapterRecetas);\n }",
"private void initView() {\n linearLayoutManager = new LinearLayoutManager(getContext(),LinearLayoutManager.HORIZONTAL,true);\n hotNews_adapter = new HotNews_Adapter(getContext(),getPosts());\n recyclerViewHotNews.setLayoutManager(linearLayoutManager);\n recyclerViewHotNews.setAdapter(hotNews_adapter);\n\n //RecyclerView summary\n recyclerViewSummary.setLayoutManager(new LinearLayoutManager(getContext()));\n summary_adapter = new Summary_Adapter(getContext(),getPosts());\n\n //RecyclerView suummary category\n summary_category_adapter = new Summary_Category_Adapter(getContext(),getPosts());\n\n // Create a new merge adapter.\n RecyclerViewMergeAdapter mergeAdapter = new RecyclerViewMergeAdapter();\n // Add any number of subadapters to the merge adapter.\n mergeAdapter.addView(viewHeader);\n mergeAdapter.addAdapter(summary_adapter);\n mergeAdapter.addAdapter(summary_category_adapter);\n // Set the merge adapter on the RecyclerView.\n recyclerViewSummary.setAdapter(mergeAdapter);\n\n }",
"private void initViews() {\n removeAllViews();\n this.setOrientation(HORIZONTAL);\n this.setOnTouchListener(this);\n\n TextView textView;\n ImageView imageView;\n for (PickerItem pickerItem : items) {\n if (pickerItem.hasDrawable()) {\n imageView = new ImageView(getContext());\n imageView.setImageResource(pickerItem.getDrawable());\n imageView.setScaleType(ImageView.ScaleType.CENTER_INSIDE);\n initStyle(imageView);\n this.addView(imageView);\n } else {\n if (pickerItem.getText() != null) {\n textView = new TextView(getContext());\n textView.setGravity(Gravity.CENTER);\n textView.setText(pickerItem.getText());\n initStyle(textView);\n this.addView(textView);\n }\n }\n }\n }",
"@Override\n protected void loadViewLayout() {\n setContentView(R.layout.ui_imgs_graffit);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n // Fragment is part of the Viewgroup of the main activity\n // Inflate the layout for this fragment\n ViewGroup root = (ViewGroup) inflater.inflate(R.layout.fragment_4, container, false);\n\n RecyclerView recyclerView = root.findViewById(R.id.recyclerView);\n // set a LinearLayoutManager with default vertical orientation\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext());\n recyclerView.setLayoutManager(linearLayoutManager);\n // call the constructor of CustomAdapter to send the reference and data to Adapter\n CustomAdapter customAdapter = new CustomAdapter(getContext(),personImages);\n recyclerView.setAdapter(customAdapter); // set the Adapter to RecyclerView\n\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_image, container, false);\n ButterKnife.bind(this, view);\n\n Glide.with(view).load(imageUrl).into(imageViewDetails);\n\n return view;\n }",
"protected View inflateRow(ViewHolder holder){\n View row = null;\n switch (type)\n {\n case TYPE_TEXT_USER:\n row = inflater.inflate(textUserRowResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.txtContent = (TextView) row.findViewById(R.id.txt_content);\n\n break;\n\n case TYPE_TEXT_FRIEND:\n\n row = inflater.inflate(textFriendRowResId, null);\n\n holder.txtContent = (TextView) row.findViewById(R.id.txt_content);\n\n break;\n\n case TYPE_IMAGE_USER:\n row = inflater.inflate(imageUserRowResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n\n case TYPE_IMAGE_FRIEND:\n row = inflater.inflate(imageFriendRowResId, null);\n\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n break;\n\n case TYPE_LOCATION_USER:\n row = inflater.inflate(locationUserResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n\n case TYPE_LOCATION_FRIEND:\n row = inflater.inflate(locationFriendRowResId, null);\n\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n }\n\n return row;\n }",
"private void inflateViewForItem(Item item) {\n\n //Inflate Layout\n ItemCardBinding binding = ItemCardBinding.inflate(getLayoutInflater());\n\n //Bind Data\n binding.imageView.setImageBitmap(item.bitmap);\n binding.title.setText(item.label);\n binding.title.setBackgroundColor(item.color);\n\n //Add it to the list\n b.list.addView(binding.getRoot());\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_meal, container, false);\n// LanguageUtils languageUtils = new LanguageUtils(getContext());\n// languageUtils.loadLocale();\n unbinder = ButterKnife.bind(this, view);\n Glide.with(getContext()).load(R.drawable.ic_fruit_hover).into(imgFruit);\n Glide.with(getContext()).load(R.drawable.ic_fruit).into(imgCheckFruit);\n Glide.with(getContext()).load(R.drawable.ic_meat_hover).into(imgMeat);\n Glide.with(getContext()).load(R.drawable.ic_cake_hover).into(imgCake);\n Glide.with(getContext()).load(R.drawable.ic_vegetables_hover).into(imgVegetable);\n Glide.with(getContext()).load(R.drawable.ic_juice_hover).into(imgJuice);\n Glide.with(getContext()).load(R.drawable.ic_ngucoc_hover).into(imgCereal);\n Glide.with(getContext()).load(R.drawable.ic_meat_check).into(imgCheckMeat);\n Glide.with(getContext()).load(R.drawable.ic_cake).into(imgCheckCake);\n Glide.with(getContext()).load(R.drawable.ic_vegetables).into(imgCheckVegetables);\n Glide.with(getContext()).load(R.drawable.ic_juice).into(imgCheckJuice);\n Glide.with(getContext()).load(R.drawable.ic_ngu_coc).into(imgCheckCereals);\n\n imgCheckFruit.setVisibility(View.VISIBLE);\n nameFood = \"3\";\n return view;\n\n }",
"public void inflate(){\n\t\tInflateTextContent();\n\t\tif(tempData.get(\"Media_Type\").equals(\"1\")){\n\t\t\tgenerateMediaView();\n\t\t}else if(tempData.get(\"Media_Type\").equals(\"2\")){\n\t\t\tprocessURL(2);\n\t\t}else if(tempData.get(\"Media_Type\").equals(\"3\")){\n\t\t\tprocessURL(3);\n\t\t}\t\n\t}",
"public void bindItem(ItemList1_Structure item) {\n\n /*Bitmap icon = BitmapFactory.decodeResource(Resources.getSystem(), item.getImage());\n\n iv_image.setImageBitmap(icon);*/\n\n iv_image.setImageResource(item.getImage());\n\n tv_title.setText(item.getTitle());\n tv_subtitle.setText(item.getSubtitle());\n\n\n //LIBRERIA PICASSO\n //CON IMAGENES DEMASIADO GRANDES LANZA UN ERROR EN LA CLASE ROUNDEDIMAGEVIEW...algun conflicto al convertir a bitmap\n Picasso.with(context)\n .load(\"http://whosbehindmask.weebly.com/uploads/2/8/3/6/28365549/5831103_orig.jpg\") //http://viralandscdn.net/posts/13668/image-sg3SqUON.jpg\n .into(iv_image2);\n\n //MUESTRA UN INDICADOR EN LA ESQUINA SUPERIOR IZQUIERDA CON COLOR INDICANDO DE DONDE PROVIENE LA IMAGEN:\n // ROJO = NETWORK, AZUL = DISK, VERDE = MEMORY\n Picasso.with(context).setIndicatorsEnabled(true);\n\n /*** //EJEMPLO LIBRERIA PICASSO, LEER IMAGEN DE INTERNET, LEER DEL HOLDER, ASIGNAR IMAGEN DE ERROR, REDIMENSIONAR IMAGEN Y ROTAR IMAGEN\n Picasso.with(this)\n .load(\"YOUR IMAGE URL HERE\")\n .placeholder(R.drawable.ic_placeholder) // optional\n .error(R.drawable.ic_error_fallback) // optional\n .resize(250, 200) // optional\n .rotate(90) // optional\n .into(imageView);\n *///\n }",
"private void setupView() {\n\t\timg=(ImageView) findViewById(R.id.imageView1);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n Intent playerIntent = getActivity().getIntent();\n bundle = getArguments();\n Player player = (Player) bundle.getSerializable(\"player\");\n type = bundle.getString(\"type\");\n illuminatiCard = player.getIlluminatiCard();\n views = new ArrayList<ImageView>();\n\n //set up the layouts to fit their parents\n ViewGroup.LayoutParams p = new ViewGroup.LayoutParams(\n ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.WRAP_CONTENT\n );\n\n //ViewGroup.LayoutParams p = new ViewGroup.LayoutParams(1000,1000);\n\n ScrollView sc = new ScrollView(getActivity()); //let the activity scroll vertically\n\n HorizontalScrollView sv = new HorizontalScrollView(getActivity()); //let the activity scroll horizontally\n\n ll = new RelativeLayout(getActivity()); //instantiate main layout\n\n sc.setLayoutParams(p); //make fill parent\n sv.setLayoutParams(p); //make fill parent\n ll.setLayoutParams(p); //make fill parent\n\n ImageView backGround = new ImageView(getActivity());\n backGround.setId(View.generateViewId());\n ImageView illCard = new ImageView(getActivity()); //create image for illuminati card\n //illCard.setImageResource(R.drawable.card); //set it to the feminist pic (only one we have so far)\n illCard.setImageResource(getResources().getIdentifier(illuminatiCard.getCardName().toLowerCase(), \"drawable\", getActivity().getPackageName()));\n illCard.setId(View.generateViewId()); //for the layout to work, each imageview needs an ID,\n //this generates a random ID for the view and set it to it\n //the actual ID doesn't matter since we'll always use the getID() method\n\n Display display = getActivity().getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n// layout for center card\n// RelativeLayout.LayoutParams rp = new RelativeLayout.LayoutParams(\n// RelativeLayout.LayoutParams.WRAP_CONTENT,\n// RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams rp = new RelativeLayout.LayoutParams(cardWidth,cardHeight);\n rp.addRule(RelativeLayout.ALIGN_RIGHT, backGround.getId());\n rp.addRule(RelativeLayout.ALIGN_BOTTOM, backGround.getId());\n\n // rp.addRule(RelativeLayout.CENTER_VERTICAL); //put card in center (buggy)\n // rp.addRule(RelativeLayout.CENTER_HORIZONTAL);\n illCard.setLayoutParams(rp); //picture for illuminati card\n views.add(backGround);\n views.add(illCard);\n //ll.addView(illCard);\n //ll.addView(illCard);\n attach(illuminatiCard, illCard, new Point(0,0)); //run sequence to make board\n RelativeLayout.LayoutParams bg = new RelativeLayout.LayoutParams((xPad+2)/2*cardWidth, (yPad+2)/2*cardHeight);\n bg.addRule(RelativeLayout.ALIGN_PARENT_LEFT, RelativeLayout.TRUE);\n bg.addRule(RelativeLayout.ALIGN_PARENT_TOP, RelativeLayout.TRUE);\n backGround.setLayoutParams(bg);\n for(ImageView iv : views)\n {\n ll.addView(iv);\n }\n //ll.addView(backGround);\n //ll.addView(illCard); //add card to relative layout\n\n\n\n //finish creating other views\n sv.addView(ll); //add layout to the scroll\n sc.addView(sv); //add scrolls together\n view_a = sc; //view to make view\n\n if(type != null) {\n if(type.equals(\"transfer_money\")){\n Context context = getActivity().getApplicationContext();\n CharSequence text = \"Choose receiving group\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n } else if(type.equals(\"drop_group\")) {\n Context context = getActivity().getApplicationContext();\n CharSequence text = \"Choose group to drop\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n } else if(type.equals(\"move_group\")) {\n Context context = getActivity().getApplicationContext();\n CharSequence text = \"Choose group to move\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }\n }\n\n return view_a; //send main view out\n }",
"@Override\n public SliderViewHolder onCreateViewHolder(ViewGroup parent) {\n LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());\n View view = layoutInflater.inflate(R.layout.image_layout_sample,parent,false);\n\n return new SliderViewHolder(view);\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n Activity activity = getActivity();\r\n View view = inflater.inflate(R.layout.fragment_barcode_detect_from_photo, container, false);\r\n\r\n mDetectedIv = (ImageView) view.findViewById(R.id.ivDetectedImage);\r\n mDetectedInformationTv = (TextView) view.findViewById(R.id.tvFaceInformation);\r\n\r\n RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.rcPhotoList);\r\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(activity, LinearLayoutManager.HORIZONTAL, true);\r\n recyclerView.setLayoutManager(layoutManager);\r\n mItemAdapter = new ImageAdapter(activity);\r\n mItemAdapter.setOnItemClickListener(this);\r\n recyclerView.setAdapter(mItemAdapter);\r\n\r\n return view;\r\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View grid;\n final CompanyItem companydetail = company_itemlist.get(position);\n LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n if (convertView == null) {\n\n\n grid = new View(mContext);\n grid = inflater.inflate(R.layout.grid_item, null);\n TextView textView = (TextView) grid.findViewById(R.id.txt_gridItem);\n ImageView imageView = (ImageView) grid.findViewById(R.id.img_gridIcon);\n imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);\n imageView.setScaleX(1.0f);\n imageView.setScaleY(1.0f);\n ImageLoader imageLoader = ImageLoader.getInstance();\n DisplayImageOptions options = new DisplayImageOptions.Builder().cacheInMemory(true)\n .cacheOnDisc(true).resetViewBeforeLoading(true)\n .showImageForEmptyUri(R.mipmap.ic_launcher)\n .showImageOnFail(R.mipmap.ic_launcher)\n .showImageOnLoading(R.mipmap.ic_launcher).build();\n\n\n textView.setText(companydetail.getCompany_name());\n\n// Bitmap bit = imageLoader.loadImageSync(companydetail.getCompany_logo());\n\n imageLoader.displayImage(companydetail.getCompany_logo(), imageView, options);\n\n } else {\n grid = (View) convertView;\n }\n\n\n return grid;\n }",
"public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n final LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n// View view = null;\n\n// java.lang.String label;\n// java.lang.String image = null;\n java.lang.String template = null;\n JSONArray itemsArray = null;\n List<JSONObject> itemObjects = new ArrayList<JSONObject>();\n\n try {\n// label = objects.get(position).getString(TAG_LABEL);\n// image = objects.get(position).getString(TAG_IMAGE);\n template = objects.get(position).getString(TAG_TEMPLATE);\n itemsArray = objects.get(position).getJSONArray(TAG_ITEMS);\n\n for (int i = 0; i < itemsArray.length(); i++) {\n itemObjects.add(itemsArray.getJSONObject(i));\n }\n\n if(\"product-template-1\".equals(template)){\n\n Log.i(LOGTAG, \"Position = \" + position);\n View layoutView = layoutInflater.inflate(R.layout.template_one_layout, parent, false);\n// View imageView = layoutInflater.inflate(R.layout.template_one, parent, false);\n\n LinearLayout linearLayout = (LinearLayout) layoutView.findViewById(R.id.vertical_layout);\n\n for (int i = 0; i < itemsArray.length(); i++) {\n\n// ImageView image = (ImageView) imageView.findViewById(R.id.image_1);\n ImageView image = new ImageView(context);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.MATCH_PARENT);\n image.setLayoutParams(params);\n image.setScaleType(ImageView.ScaleType.FIT_XY);\n\n View divider = new View(context);\n LinearLayout.LayoutParams paramsDivider = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT, 20);\n divider.setLayoutParams(paramsDivider);\n\n try {\n java.lang.String imageString = itemsArray.getJSONObject(i).getString(TAG_IMAGE);\n Log.i(LOGTAG, \"Template 1 : URL = \" + imageString);\n Picasso.with(getApplicationContext()).load(imageString).into(image);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n linearLayout.addView(image);\n linearLayout.addView(divider);\n }\n\n return layoutView;\n\n }else if(\"product-template-2\".equals(template)){\n\n Log.i(LOGTAG, \"Position = \" + position);\n\n /*View view = layoutInflater.inflate(R.layout.template_two, parent, false);\n RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);\n // recyclerView.setHasFixedSize(true);\n\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false);\n recyclerView.setLayoutManager(linearLayoutManager);\n\n RecyclerAdapter recyclerAdapter = new RecyclerAdapter(itemObjects);\n recyclerView.setAdapter(recyclerAdapter);\n return view;*/\n\n View layoutView = layoutInflater.inflate(R.layout.template_two_layout, parent, false);\n LinearLayout linearLayout = (LinearLayout) layoutView.findViewById(R.id.horizontal_layout);\n\n for (int i = 0; i < itemsArray.length(); i++) {\n\n View imageView = layoutInflater.inflate(R.layout.template_two_detail, null/*, false*/);\n LinearLayout templateTwoDetailLayout = (LinearLayout) imageView.findViewById(R.id.template_two_layout);\n ImageView image = (ImageView) imageView.findViewById(R.id.image_2);\n\n View divider = new View(context);\n LinearLayout.LayoutParams paramsDivider = new LinearLayout.LayoutParams(\n 20, LinearLayout.LayoutParams.MATCH_PARENT);\n divider.setLayoutParams(paramsDivider);\n\n try {\n java.lang.String imageString = itemsArray.getJSONObject(i).getString(TAG_IMAGE);\n Log.i(LOGTAG, \"Template 2 : URL = \" + imageString);\n Picasso.with(getApplicationContext()).load(imageString).into(image);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n linearLayout.addView(templateTwoDetailLayout);\n linearLayout.addView(divider);\n }\n\n return layoutView;\n\n }else if(\"product-template-3\".equals(template)){\n\n Log.i(LOGTAG, \"Position = \" + position);\n\n View layoutView = layoutInflater.inflate(R.layout.template_three_layout, parent, false);\n ViewPager viewPager = (ViewPager) layoutView.findViewById(R.id.pager);\n\n Log.i(LOGTAG, \"Size of itemsArray template 3 \" + itemsArray.length());\n ScreenSlidePagerAdapter pagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager(), itemsArray);\n viewPager.setAdapter(pagerAdapter);\n viewPager.setOffscreenPageLimit(5);\n\n CirclePageIndicator circlePageIndicator = (CirclePageIndicator) layoutView.findViewById(R.id.circlePageInd);\n circlePageIndicator.setViewPager(viewPager);\n\n return layoutView;\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return new View(context);\n }",
"private void initViews() {\n animalImageNIV = (NetworkImageView)findViewById(R.id.animal_image_niv);\n\n animalIdTV = (TextView)findViewById(R.id.animal_id_tv);\n rfidTV = (TextView)findViewById(R.id.rfid_tv);\n otherIdTV = (TextView)findViewById(R.id.other_id_tv);\n statusTV = (TextView)findViewById(R.id.status_tv);\n\n speciesTV = (TextView)findViewById(R.id.species_tv);\n sexTV = (TextView)findViewById(R.id.sex_tv);\n breedsTV = (TextView)findViewById(R.id.breeds_tv);\n dobTV = (TextView)findViewById(R.id.dob_tv);\n\n ownerTV = (TextView)findViewById(R.id.owner_tv);\n experimentTV = (TextView)findViewById(R.id.experiment_tv);\n locationCanvasLL = (LinearLayout)findViewById(R.id.location_canvas_ll);\n locLayer1TV = (TextView)findViewById(R.id.loc_layer_1_tv);\n locLayer2TV = (TextView)findViewById(R.id.loc_layer_2_tv);\n locCommentTV = (TextView)findViewById(R.id.loc_comment_tv);\n\n damCanvasLL = (LinearLayout)findViewById(R.id.dam_canvas_ll);\n damCanvasLL.setOnClickListener(this);\n damIdTV = (TextView)findViewById(R.id.dam_id_tv);\n damBreedsTV = (TextView)findViewById(R.id.dam_breeds_tv);\n damStatusTV = (TextView)findViewById(R.id.dam_status_tv);\n\n sireCanvasLL = (LinearLayout)findViewById(R.id.sire_canvas_ll);\n sireCanvasLL.setOnClickListener(this);\n sireIdTV = (TextView)findViewById(R.id.sire_id_tv);\n sireBreedsTV = (TextView)findViewById(R.id.sire_breeds_tv);\n sireStatusTV = (TextView)findViewById(R.id.sire_status_tv);\n\n recordFAB = (FloatingActionButton)findViewById(R.id.record_fab);\n recordFAB.setOnClickListener(this);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_good_image, container, false);\n ButterKnife.bind(this, view);\n Glide.with(getActivity())\n .load(imagePath)\n .error(Glide.with(getActivity()).load(R.drawable.goods_default))\n .into(goodImg);\n return view;\n }",
"private void initialize_gallery() {\n\t DropShadow dropShadow = new DropShadow(); \r\n\t //setting the type of blur for the shadow \r\n\t dropShadow.setBlurType(BlurType.GAUSSIAN); \r\n\t //Setting colour for the shadow \r\n\t dropShadow.setColor(Color.BLACK); \r\n\t //Setting the height of the shadow\r\n\t dropShadow.setHeight(5); \r\n\t //Setting the width of the shadow \r\n\t dropShadow.setWidth(5); \r\n\t //Setting the radius of the shadow \r\n\t dropShadow.setRadius(5); \r\n\t //setting the offset of the shadow \r\n\t dropShadow.setOffsetX(3); \r\n\t dropShadow.setOffsetY(2); \r\n\t //Setting the spread of the shadow \r\n\t dropShadow.setSpread(12); \r\n\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < numOfImages; i++){\r\n\t\t\t\t//Folder \"image\" is in project folder\r\n\t\t\t\timageFiles = new File(\"Resources/imagesGallery/\"+i+\".png\");\r\n\t\t\t\timageList[i] = new Image(\"file:\"+imageFiles.getAbsolutePath());\r\n\t\t\t\tSystem.out.println(imageFiles.getAbsolutePath());\r\n\t\t\t\t\r\n\t\t\t\t//Create list of ImageView nodes of size 100x100 for image gallery\r\n\t\t\t\timageGalleryNodeList[i] = new ImageView(imageList[i]);\r\n\t\t\t\timageGalleryNodeList[i].setPreserveRatio(true);\r\n\t\t\t\timageGalleryNodeList[i].setFitWidth(150);\r\n\t\t\t\timageGalleryNodeList[i].setFitHeight(150);\r\n\t\t\t\timageGalleryNodeList[i].setEffect(dropShadow);\r\n\t\t\t\t\r\n\t\t\t\t//Create list of ImageView nodes with image ratio preserved and 300 width\r\n\t\t\t\timageLargeNodeList[i] = new ImageView(imageList[i]);\r\n\t\t\t\timageLargeNodeList[i].setPreserveRatio(true);\r\n\t\t\t\timageLargeNodeList[i].setFitHeight(300);\r\n\t\t\t\timageLargeNodeList[i].setEffect(dropShadow);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfillGrid(gridStartIndex);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void setAdvertImages()\t{\n\n\t\tviewFlipper = (ViewFlipper) findViewById(R.id.view_flipper_display);\n\n\t\tString[] ids = getImageIDs(shopName);\n\n\t\tif(ids.length == 1)\t{\t\t//Just the logo exists\n\t\t\tLinearLayout ll = new LinearLayout(this);\n\t\t\tll.setOrientation(LinearLayout.VERTICAL);\n\n\t\t\tLinearLayout.LayoutParams lpScan = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);\n\t\t\tll.setLayoutParams(lpScan);\n\t\t\tll.setGravity(Gravity.CENTER);\n\n\t\t\tImageView iv = new ImageView(this);\n\t\t\tiv.setLayoutParams(lpScan);\n\t\t\tiv.setImageBitmap(imageLoadedFromInternalStorage(ids[0]));\t\t//Sets flipper images = logo (ids[0])\n\n\t\t\tll.addView(iv);\n\t\t\tviewFlipper.addView(ll);\t\n\t\t}\n\n\n\t\tfor(int i = 1; i < ids.length; i++)\t{\n\n\t\t\tLinearLayout ll = new LinearLayout(this);\n\t\t\tll.setOrientation(LinearLayout.VERTICAL);\n\n\t\t\tLinearLayout.LayoutParams lpScan = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);\n\t\t\tll.setLayoutParams(lpScan);\n\t\t\tll.setGravity(Gravity.CENTER);\n\n\t\t\tImageView iv = new ImageView(this);\n\t\t\tiv.setLayoutParams(lpScan);\n\t\t\tiv.setImageBitmap(imageLoadedFromInternalStorage(ids[i]));\n\n\t\t\tll.addView(iv);\n\t\t\tviewFlipper.addView(ll);\t\n\t\t}\n\t}",
"private void initViews() {\n\t\t// TODO Auto-generated method stub\n\t\t// venuePager = (ViewPager)findViewById(R.id.pager);\n\n\t\tmyGallery = (LinearLayout) findViewById(R.id.horizontalScrollItems);\n\n\t\tvenueImageLarge = (ImageView) findViewById(R.id.imageVenueLarge);\n\n\t\tinfoImageView = (ImageView) findViewById(R.id.imageInfo);\n\n\t\tcloseBtn = (ImageView) findViewById(R.id.imageclose);\n\n\t\tvenueCapacity = (TextView) findViewById(R.id.venueCapacity);\n\n\t\tvenueDes = (TextView) findViewById(R.id.venueDes);\n\n\t\tvenueName = (TextView) findViewById(R.id.venueName);\n\n\t\tvenueRelative = (RelativeLayout) findViewById(R.id.venue_relative);\n\n\t\tviewAnimator = (ViewAnimator) this.findViewById(R.id.viewFlipper_venue);\n\n\t\tvenueFullname = (TextView) findViewById(R.id.venueFullnameValue);\n\n\t\tvenueCity = (TextView) findViewById(R.id.venueCityValue);\n\n\t\tvenueOwner = (TextView) findViewById(R.id.venueOwnerValue);\n\n\t\tvenueOpened = (TextView) findViewById(R.id.venueOpenedValue);\n\n\t\tvenueSurface = (TextView) findViewById(R.id.venueSurfaceValue);\n\n\t\tvenueWebsite = (TextView) findViewById(R.id.venueWebsiteValue);\n\n\n\t}",
"private void initViews() {\n textViewName = (AppCompatTextView) findViewById(R.id.textViewName);\n //appCompatButtonBack= (AppCompatButton) findViewById(R.id.appCompatButtonBack);\n imageView= (ImageView) findViewById(R.id.imageView);\n recyclerViewUsers = (RecyclerView) findViewById(R.id.recyclerViewUsers);\n\n }",
"private void initView() {\n mProgressDialog = new ProgressDialog(this);\n mProgressDialog.setIndeterminate(true);\n mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n mProgressDialog.setMessage(\"Loading...\");\n mProgressDialog.show();\n\n mAvatar = (SimpleDraweeView) findViewById(R.id.sdvAvatar) ;\n mAvatar.setImageURI(mKid.mAvatar);\n mAvatar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(DiaryListActivity.this,KidDetailActivity.class);\n intent.putExtra(\"model\",mKid);\n startActivity(intent);\n }\n });\n mName = (TextView) findViewById(R.id.tvName);\n mName.setText(mKid.mRealname);\n\n // use the recycler view\n mRecyclerView = (RecyclerView) findViewById(R.id.rvContent);\n // use this setting to improve performance if you know that changes\n // in content do not change the layout size of the RecyclerView\n // mRecyclerView.setHasFixedSize(true);\n\n // use a linear layout manager\n mLayoutManager = new LinearLayoutManager(this);\n //mLayoutManager = new GridLayoutManager(this,2);\n mRecyclerView.setLayoutManager(mLayoutManager);\n\n // specify an adapter (see also next example)\n mAdapter = new ModelRecyclerAdapter(this,mDataset);\n mRecyclerView.setAdapter(mAdapter);\n\n // Swipe refresh listener\n mRefreshLayout = (SwipeRefreshLayout)findViewById(R.id.layout_swipe_refresh);\n mRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener(){\n public void onRefresh() {\n // 加载更多数据\n if(mQuery.hasMore()){\n //mConnection.Query(mQuery);\n mQuery.all();\n }else {\n // 提示没有更多数可以加载\n Toast.makeText(DiaryListActivity.this, getString(R.string.no_more_data), Toast.LENGTH_LONG).show();\n mRefreshLayout.setRefreshing(false);\n }\n\n }\n });\n\n // RecyclerView item 点击监听\n mRecyclerView.addOnItemTouchListener(new RecyclerViewClickListener(this, mRecyclerView, new RecyclerViewClickListener.OnItemClickListener() {\n @Override\n public void onItemClick(View view, int position) {\n Diary diary = (Diary) mDataset.get(position);\n Intent intent = new Intent(DiaryListActivity.this,WebViewActivity.class);\n intent.putExtra(\"url\",diary.getUrl());\n Log.d(TAG,diary.getUrl());\n startActivity(intent);\n }\n\n @Override\n public void onItemLongClick(View view, int position) {\n //Toast.makeText(mContext,\"Click \"+mDataset.get(position).mContent,Toast.LENGTH_SHORT).show();\n }\n }));\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_movie_image_list, container, false);\n movieListCompositeDisposable = new CompositeDisposable();\n mPager = (ViewPager) view.findViewById(R.id.pager);\n indicator = (CircleIndicator) view.findViewById(R.id.indicator);\n getMovieImageList();\n\n return view;\n }",
"public void onFinishInflate() {\n super.onFinishInflate();\n this.mPreviewImageContainer = findViewById(C1188R.C1191id.preview_image_container);\n this.mPreviewImageBackground = (ImageView) findViewById(C1188R.C1191id.preview_image_background);\n this.mPreviewImage = (ImageView) findViewById(C1188R.C1191id.preview_image);\n this.mPreviewVideo = findViewById(C1188R.C1191id.preview_video_view);\n this.mPreviewDelayProgress = findViewById(C1188R.C1191id.preview_delay_progress);\n this.mPlaybackProgress = (ProgressBar) findViewById(C1188R.C1191id.playback_progress);\n this.mPlaybackProgressDimmer = findViewById(C1188R.C1191id.program_playback_progress_dimmer);\n this.mLogoAndBadgesContainer = findViewById(C1188R.C1191id.program_logo_and_badges_container);\n this.mLogo = (ImageView) findViewById(C1188R.C1191id.program_card_logo);\n this.mLogoVisibility = this.mLogo.getVisibility();\n if (Util.isRtl(getContext())) {\n this.mLogo.setScaleType(ImageView.ScaleType.FIT_END);\n }\n this.mLogoDimmer = findViewById(C1188R.C1191id.program_logo_dimmer);\n this.mLogoDimmerVisibility = this.mLogoDimmer.getVisibility();\n this.mLiveBadge = (TextView) findViewById(C1188R.C1191id.program_live_badge);\n this.mLiveBadgeVisibility = this.mLiveBadge.getVisibility();\n this.mLiveIcon = (ImageView) findViewById(C1188R.C1191id.program_live_icon);\n this.mLiveIconVisibility = this.mLiveIcon.getVisibility();\n this.mDurationBadge = (TextView) findViewById(C1188R.C1191id.program_duration_badge);\n this.mDurationBadgeVisibility = this.mDurationBadge.getVisibility();\n View badgesContainer = (View) this.mLiveBadge.getParent();\n badgesContainer.setOutlineProvider(new ViewOutlineProvider(this) {\n public void getOutline(View view, Outline outline) {\n outline.setRoundRect(0, 0, view.getWidth(), view.getHeight(), (float) view.getResources().getDimensionPixelSize(C1188R.dimen.program_badge_background_corner_radius));\n }\n });\n badgesContainer.setClipToOutline(true);\n this.mPreviewImageDimmedFactorValue = Util.getFloat(getResources(), C1188R.dimen.unfocused_channel_dimming_factor);\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tViewHolder holder=null;\n\t\tNewsItem item=newsList.get(position);\n\t\tif(convertView==null){\n\t\t\tholder=new ViewHolder();\n\t\t\t//将layout.xml转换为View\n\t\t\tswitch(item.getStyle()){\n\t\t\tcase 0:\n\t\t\t\t\n\t\t\t\tconvertView=LayoutInflater.from(mActivity).inflate(R.layout.news_item1, null);\n\t\t\t\tholder.ivImg1=(ImageView)convertView.findViewById(R.id.ivNewsImg);\n\t\t\t\tholder.ivImg1.setLayoutParams(new RelativeLayout.LayoutParams(100, 100));\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tconvertView=LayoutInflater.from(mActivity).inflate(R.layout.news_item2, null);\n\t\t\t\tholder.ivImg1=(ImageView)convertView.findViewById(R.id.ivImg1);\n\t\t\t\tholder.ivImg2=(ImageView)convertView.findViewById(R.id.ivImg2);\n\t\t\t\tholder.ivImg3=(ImageView)convertView.findViewById(R.id.ivImg3);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t\n\t\t\t\tconvertView=LayoutInflater.from(mActivity).inflate(R.layout.news_item1, null);\n\t\t\t\tholder.ivImg1=(ImageView)convertView.findViewById(R.id.ivNewsImg);\n\t\t\t\tholder.ivImg1.setLayoutParams(new RelativeLayout.LayoutParams(100, 100));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tholder.tvTilte=(TextView)convertView.findViewById(R.id.tvTitle);\t\n\t\t\tconvertView.setTag(holder);//记录个标识\n\t\t}else{\n\t\t\tholder=(ViewHolder)convertView.getTag();\n\t\t}\n\t\t//向ui元素绑定数据\n\t\tholder.tvTilte.setText(item.getTitle());\n\t\t\n\t\t\n\t\tswitch(item.getStyle()){\n\t\tcase 0:\n\t\t\timageLoader.get(item.getImgUrl()[0], ImageLoader.getImageListener(holder.ivImg1,\n\t\t\t\t\tR.drawable.default_big, R.drawable.default_big));//加载图片,先从内存中加载,内存没有再从网络加载\n\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\timageLoader.get(item.getImgUrl()[1], ImageLoader.getImageListener(holder.ivImg2,\n\t\t\t\t\t\tR.drawable.default_big, R.drawable.default_big));//加载图片,先从内存中加载,内存没有再从网络加载\n\t\t\t\timageLoader.get(item.getImgUrl()[2], ImageLoader.getImageListener(holder.ivImg3,\n\t\t\t\t\t\tR.drawable.default_big, R.drawable.default_big));//加载图片,先从内存中加载,内存没有再从网络加载\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tString imgStr = item.getImgUrl()[0];\n\t\t\t\tbyte[] picByte = Base64.decode(imgStr, Base64.DEFAULT);\n\t\t\t\tBitmap bmp = BitmapFactory.decodeByteArray(picByte, 0, picByte.length);\n\t\t\t\tholder.ivImg1.setImageBitmap(bmp);\n\t\t\t\tbreak;\n\t\t}\n\t\tLog.d(\"jereh\",\"getView()\");\n\t\treturn convertView;\n\t}",
"@Override\n\tprotected void initAdapter(){\n\t\tsuper.initAdapter();\n\t\tadapter = new BaseAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic View getView(int position,View convertView,ViewGroup parent){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGoods goods = list.get(position);\n\t\t\t\tLayoutInflater inflater = getLayoutInflater();\n\t\t\t\tView view = inflater.inflate(R.layout.trade_listitem, null);\n\t\t\t\tTextView txt_goods_name = (TextView) view.findViewById(R.id.txt_goods_name);\n\t\t\t\tBmobFile file = new BmobFile();\n\t\t\t\tfile = goods.getPicture();\n\n\t\t\t\tif(file != null){\n\t\t\t\t\tString fileName = file.getFilename();\n\t\t\t\t\tString url = file.getFileUrl(mContext);\n\t\t\t\t\tString URL = BmobProFile.getInstance(mContext).signURL(fileName, url, AppConfig.AccessKey, 0, null);\n\t\t\t\t\tImageView imageView = (ImageView) view.findViewById(R.id.img_picture);\n\t\t\t\t\tImageListener listener = ImageLoader.getImageListener(imageView, android.R.drawable.ic_menu_rotate, android.R.drawable.ic_delete);\n\t\t\t\t\tmImageLoader.get(URL, listener);\n\n\t\t\t\t}\n\t\t\t\tString brand = \"\";\n\t\t\t\tif(goods.getBrand() != null){\n\t\t\t\t\tbrand = goods.getBrand();\n\t\t\t\t}\n\t\t\t\ttxt_goods_name.setText(brand + goods.getTradeName());\n\t\t\t\tTextView txt_goods_price = (TextView) view.findViewById(R.id.txt_goods_price);\n\t\t\t\ttxt_goods_price.setText(goods.getPrice() + \"\");\n\t\t\t\treturn view;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic long getItemId(int position){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn position;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Object getItem(int position){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn list.get(position);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int getCount(){\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn list.size();\n\t\t\t}\n\t\t};\n\t\tmPullRefreshListView.setAdapter(adapter);\n\n\t}",
"private void buildTank(){\n LayoutInflater layoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n //add foliage\n ImageView foliageImageView = (ImageView) layoutInflater.inflate(R.layout.foliage_layout, null);\n\n foliageImageView.setX(0);\n foliageImageView.setY(0);\n foliageImageView.setAlpha((float) 0.97);\n fishTankLayout.addView(foliageImageView,0);\n\n //add virtual fish\n //add foliage\n fishImageView = (ImageView) layoutInflater.inflate(R.layout.fish_image, null);\n fishImageView.setScaleX((float) .3);\n fishImageView.setScaleY((float) .3);\n fishImageView.setX(fish.x);\n fishImageView.setY(fish.y);\n fishImageView.setAlpha((float) 0.97);\n fishTankLayout.addView(fishImageView,0);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate(R.layout.gallery_pager, container, false);\n\n this.pager = view.findViewById(R.id.gallery_pager);\n this.progressBar = view.findViewById(R.id.gallery_progress);\n\n this.next = (ImageButton) view.findViewById(R.id.gal_pgr_next);\n this.next.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int currentItem = pager.getCurrentItem();\n if(currentItem < imagesLength - 1) {\n pager.setCurrentItem(currentItem + 1);\n }\n }\n });\n this.prev = (ImageButton) view.findViewById(R.id.gal_pgr_prev);\n this.prev.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int currentItem = pager.getCurrentItem();\n if(currentItem > 0) {\n pager.setCurrentItem(currentItem - 1);\n }\n }\n });\n showProgress(true);\n\n\n reloadImageList();\n\n\n return view;\n }",
"void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n Bundle args = getArguments();\n int i = args.getInt(\"ARG_OBJECT\");\n\n View rootView = inflater.inflate(\n R.layout.fragment_collection_object, container, false);\n ImageView imageView = (ImageView) rootView.findViewById(R.id.item_gallery);\n\n if (imageArray.size() > 0) {\n Log.d(\"imageArray i:\", String.valueOf(i));\n imageView.setImageBitmap(imageArray.get(i));\n } else {\n // Insert image to indicate no images present\n Bitmap noImageBitmap = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.no_image_found);\n imageView.setImageBitmap(noImageBitmap);\n }\n\n return rootView;\n\n }",
"@NonNull\n @Override\n public Object instantiateItem(@NonNull ViewGroup container, int position) {\n\n final SimpleDraweeView imageView = new SimpleDraweeView(MainActivity.this);\n imageView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.WRAP_CONTENT));\n\n imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);\n// Uri uri = Uri.parse(bannerList.get(position).getImagePath());\n// imageView.setImageURI(uri);\n imageView.setActualImageResource(bannerImageList.get(position).getImageId());\n\n\n container.addView(imageView);\n return imageView;\n\n }",
"private void initViews() {\n inflater = LayoutInflater.from(appContext);\n footView = inflater.inflate(R.layout.item_load_more, null);\n footView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));\n mLoadMoreButton = (Button) footView.findViewById(R.id.loadMore_button);\n progressActivity = (ProgressActivity) rootView.findViewById(R.id.shop_progress);\n //Go_UpButton = (ImageView) rootView.findViewById(R.id.float_imageButton);\n\n mHomePullToRefreshListView = (PullToRefreshRecyclerView) rootView.findViewById(R.id.shop_pullToRefreshListView);\n LinearLayoutManager layoutManager = new LinearLayoutManager(appContext);\n//\t\tStaggeredGridLayoutManager SGlayoutManager = new StaggeredGridLayoutManager(1, StaggeredGridLayoutManager.VERTICAL);\n mHomePullToRefreshListView.setLayoutManager(layoutManager);\n mRecViewCartAdapter = new RecViewGoodsSpAdapter(appContext, informationList, R.layout.list_goods);\n mHomePullToRefreshListView.setAdapter(mRecViewCartAdapter);\n mRecViewCartAdapter.addFooterView(footView);\n //mHomePullToRefreshListView.setPullToRefreshOverScrollEnabled(false);\n progressActivity.showLoading();\n loadOnlineInformationData();\n mHomePullToRefreshListView\n .setOnRefreshListener(new OnRefreshListener<RecyclerView>() {\n\n @Override\n public void onRefresh(\n PullToRefreshBase<RecyclerView> refreshView) {\n isEnabledScrollLast = true;\n footView.setVisibility(View.GONE);\n mLoadMoreButton.setVisibility(View.GONE);\n curpageIndex = 1;\n loadOnlineInformationData();\n }\n\n });\n\n // 不显示滚动到顶部/底部的阴影(减少绘制)\n mHomePullToRefreshListView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n mHomePullToRefreshListView.setOnScrollListener(new OnRcvScrollListener() {\n\n @Override\n public void onScrolled(int distanceX, int distanceY) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void onScrollUp() {\n // TODO Auto-generated method stub\n Go_UpButton.setVisibility(View.GONE);\n }\n\n @Override\n public void onScrollDown() {\n // TODO Auto-generated method stub\n Go_UpButton.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onBottom() {\n // TODO Auto-generated method stub\n if (isEnabledScrollLast) {\n footView.setVisibility(View.VISIBLE);\n loadMoreInformationData();\n }\n }\n });\n Go_UpButton.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n //滚到顶部\n mHomePullToRefreshListView.getRefreshableView().smoothScrollToPosition(0);\n }\n });\n }",
"private void initRecyclerview() {\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n\n mAdapter = new MovieAdapter(this);\n recyclerView.setAdapter(mAdapter);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tiffin, container, false);\n\n tiffinRecyclerView = view.findViewById(R.id.tiffin_recycler_view);\n seeLocation=view.findViewById(R.id.TextView_Location);\n tiffinNamesList = new ArrayList<>();\n tiffinImageUrlsList = new ArrayList<>();\n\n addTiffinToArrayListFunc();\n initializeTiffinRecyclerViewFunc();\n\n return view;\n }",
"public void run() {\n\t\t\tfinal Bitmap mBitmap = getImage();\n\n\t\t\tPlayUpActivity.handler.post(new Runnable() {\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tif (!isBitmapCacheTask) {\n\n\t\t\t\t\t\t\tif (mBaseAdapters != null\n\t\t\t\t\t\t\t\t\t&& mBaseAdapters.containsKey(url)\n\t\t\t\t\t\t\t\t\t&& mBaseAdapters.get(url) != null\n\t\t\t\t\t\t\t\t\t&& mBaseAdapters.get(url).size() > 0) {\n\t\t\t\t\t\t\t\tif (mBitmap != null) {\n\t\t\t\t\t\t\t\t\tSet<BaseAdapter> baseAdapters = mBaseAdapters\n\t\t\t\t\t\t\t\t\t\t\t.get(url);\n\n\t\t\t\t\t\t\t\t\tfor (BaseAdapter ba : baseAdapters) {\n\n\t\t\t\t\t\t\t\t\t\tba.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (mBaseAdapters != null) {\n\t\t\t\t\t\t\t\t\t\tmBaseAdapters.get(url).clear();\n\t\t\t\t\t\t\t\t\t\tmBaseAdapters.remove(url);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (notify) {\n\t\t\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\t\t\tmsg.obj = \"updateImage\";\n\t\t\t\t\t\t\t\tPlayupLiveApplication\n\t\t\t\t\t\t\t\t\t\t.callUpdateOnFragmentsNotTopBar(msg);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (imageViews.get(url) != null\n\t\t\t\t\t\t\t\t\t&& imageViews.containsKey(url)\n\t\t\t\t\t\t\t\t\t&& imageViews.get(url) != null\n\t\t\t\t\t\t\t\t\t&& imageViews.get(url).size() > 0) {\n\n\t\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\t\timgView = null;\n\n\t\t\t\t\t\t\t\t\tList<ImageView> iView = imageViews.get(url);\n\n\t\t\t\t\t\t\t\t\tfor (ImageView img : iView) {\n\t\t\t\t\t\t\t\t\t\timgView = img;\n\n\t\t\t\t\t\t\t\t\t\tif (imgView.getVisibility() == View.VISIBLE) {\n\t\t\t\t\t\t\t\t\t\t\timgView.setImageBitmap(mBitmap);\n\t\t\t\t\t\t\t\t\t\t\t// if (bgColor != null &&\n\t\t\t\t\t\t\t\t\t\t\t// bgColor.trim().length() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t// Drawable d =\n\t\t\t\t\t\t\t\t\t\t\t// imgView.getDrawable();\n\t\t\t\t\t\t\t\t\t\t\t// if (d != null) {\n\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t// d.setAlpha(Integer.parseInt(\"88\",\n\t\t\t\t\t\t\t\t\t\t\t// 16));\n\t\t\t\t\t\t\t\t\t\t\t// d.setColorFilter(Color.parseColor(\"#\"+\n\t\t\t\t\t\t\t\t\t\t\t// bgColor),Mode.DST_OVER);\n\t\t\t\t\t\t\t\t\t\t\t// imgView.setBackgroundDrawable(d);\n\t\t\t\t\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\t\t\t\t\t// }\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\timgView = null;\n\t\t\t\t\t\t\t\t\tif (linearLayout != null) {\n\n\t\t\t\t\t\t\t\t\t\tif (imageDownloader != null) {\n\t\t\t\t\t\t\t\t\t\t\timageDownloader\n\t\t\t\t\t\t\t\t\t\t\t\t\t.nullViewDrawablesRecursive(linearLayout);\n\t\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif (imageDownloaderSports != null) {\n\t\t\t\t\t\t\t\t\t\t\timageDownloaderSports\n\t\t\t\t\t\t\t\t\t\t\t\t\t.nullViewDrawablesRecursive(linearLayout);\n\t\t\t\t\t\t\t\t\t\t\timageDownloaderSports = null;\n\t\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t//Logs.show(e);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (mBitmap != null) {\n\n\t\t\t\t\t\t\t\t\tif (imageViews != null) {\n\t\t\t\t\t\t\t\t\t\timageViews.get(url).clear();\n\t\t\t\t\t\t\t\t\t\timageViews.remove(url);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (views != null && views.get(url) != null\n\t\t\t\t\t\t\t\t&& views.get(url).size() > 0) {\n\n\t\t\t\t\t\t\tList<View> layoutViews = views.get(url);\n\n\t\t\t\t\t\t\tfor (View lin : layoutViews) {\n\n\t\t\t\t\t\t\t\tif (lin.getVisibility() == View.VISIBLE) {\n\n\t\t\t\t\t\t\t\t\tlinearLayout = lin;\n\n\t\t\t\t\t\t\t\t\tif (linearLayout instanceof LinearLayout) {\n\n\t\t\t\t\t\t\t\t\t\tdeSelectSports(linearLayout);\n\n\t\t\t\t\t\t\t\t\t\tImageView sportsImage = (ImageView) linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t.findViewById(R.id.mysportsItemImage);\n\n\t\t\t\t\t\t\t\t\t\tsportsImage.setTag(\"1\");\n\t\t\t\t\t\t\t\t\t\tsportsImage.setImageBitmap(mBitmap);\n\n\t\t\t\t\t\t\t\t\t\tsportsImage = null;\n\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\n\t\t\t\t\t\t\t\t\t} else if (linearLayout instanceof RelativeLayout) {\n\n\t\t\t\t\t\t\t\t\t\tif (linearLayout.getVisibility() == View.VISIBLE) {\n\n\t\t\t\t\t\t\t\t\t\t\tif (mBitmap != null) {\n\n\t\t\t\t\t\t\t\t\t\t\t\tImageView imageWithSummaryImage = (ImageView) linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.findViewById(R.id.ImageWithSummaryImage);\n\n\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setImageBitmap(mBitmap);\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag(R.id.active_users_no) != null\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag(R.id.active_users_no)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.trim()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.length() > 0) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tString bgColor = linearLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag(R.id.active_users_no)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString();\n\n\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tDrawable d = new BitmapDrawable(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmBitmap);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (d != null) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (imageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag() != null\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& imageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getTag()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"show_dark\")) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td.setColorFilter(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tColor.parseColor(\"#\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ bgColor),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMode.DST_OVER);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// d.setAlpha(20);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Log.e(\"123\",\"inside after downloades bgcolor != null \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// + ((ImageView)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// linearLayout.findViewById(R.id.ImageWithSummaryImage)).getVisibility());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// d.setColorFilter(Color.parseColor(\"#77\"+\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// bgColor),Mode.DST_OVER);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setImageDrawable(d);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\timageWithSummaryImage = null;\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tlinearLayout = null;\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (mBitmap != null) {\n\t\t\t\t\t\t\t\tif (views != null) {\n\t\t\t\t\t\t\t\t\tviews.get(url).clear();\n\t\t\t\t\t\t\t\t\tviews.remove(url);\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (requestImageUrls != null\n\t\t\t\t\t\t\t\t&& requestImageUrls.containsKey(url)) {\n\t\t\t\t\t\t\trequestImageUrls.remove(url);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tkey = null;\n\t\t\t\t\t\turl = null;\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t//Logs.show(e);\n\t\t\t\t\t} finally {\n\t\t\t\t\t\t// mBitmap.recycle();\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t});\n\n\t\t}",
"private void initializeViews() {\n mAllEditTexts = new ArrayList<>();\n\n mImagesRecyclerView = findViewById(R.id.images_recycler_view);\n mAddPictureBtn = findViewById(R.id.add_picture_btn);\n\n mSaleStatusImage = findViewById(R.id.sale_status_image);\n mSaleStatusImage.setTag(FOR_SALE_TAG);\n\n mTypeSpinner = findViewById(R.id.type_spinner);\n mBedroomsSpinner = findViewById(R.id.rooms_spinner);\n\n mTypeSpinner.setAdapter(new ArrayAdapter<>(this, R.layout.spinner_item, getResources().getStringArray(R.array.spinner_types)));\n mBedroomsSpinner.setAdapter(new ArrayAdapter<>(this, R.layout.spinner_item, getResources().getStringArray(R.array.spinner_number_of_rooms)));\n\n mSurfaceAreaText = findViewById(R.id.surface_area_text1);\n mPriceEditText = findViewById(R.id.price_edit_text1);\n mAddressPostcodeEditText = findViewById(R.id.address_postcode_et1);\n mAddressNumberEditText = findViewById(R.id.address_number_et1);\n mAddressStreetEditText = findViewById(R.id.address_street_et1);\n mAddressTownEditText = findViewById(R.id.address_town_et1);\n mAddressCountyEditText = findViewById(R.id.address_county_et1);\n mDescriptionEditText = findViewById(R.id.description_edit_text1);\n mBuyOrLetSwitch = findViewById(R.id.buy_or_let);\n\n mSaveButton = findViewById(R.id.savebtn);\n\n mAllEditTexts.add(mSurfaceAreaText);\n mAllEditTexts.add(mPriceEditText);\n mAllEditTexts.add(mAddressPostcodeEditText);\n mAllEditTexts.add(mAddressNumberEditText);\n mAllEditTexts.add(mAddressStreetEditText);\n mAllEditTexts.add(mAddressTownEditText);\n mAllEditTexts.add(mAddressCountyEditText);\n mAllEditTexts.add(mDescriptionEditText);\n\n }",
"@Override\n\tprotected void initView() {\n\t\tiv_content = (ImageView) findViewById(R.id.music_content);\n\t\tiv_music = (ImageView) findViewById(R.id.music_me_iv);\n\t\tiv_queen = (ImageView) findViewById(R.id.music_queen_iv);\n\t\ttv_music = (TextView) findViewById(R.id.music_me_tv);\n\t\ttv_queen = (TextView) findViewById(R.id.music_queen_tv);\n\t\tiv_music.setOnClickListener(this);\n\t\tiv_queen.setOnClickListener(this);\n\t\t\n\t\tbitmap=DisplayUtil.readBitMap(getApplicationContext(), R.drawable.music_part1);\n\t\tiv_content.setImageBitmap(bitmap);\n\n\t}",
"public final void onFinishInflate() {\n super.onFinishInflate();\n TextView textView = (TextView) findViewById(C0126R.C0129id.title);\n this.f110062a = textView;\n C1280ps.m19893a(textView, \"excludeViewFromChangeBounds\");\n this.f110062a.setTag(C0126R.C0129id.summary_expander_transition_name, \"summaryField\");\n TextView textView2 = (TextView) findViewById(C0126R.C0129id.subtitle);\n this.f110063b = textView2;\n textView2.setTag(C0126R.C0129id.summary_expander_transition_name, \"summaryField\");\n LinearLayout linearLayout = (LinearLayout) findViewById(C0126R.C0129id.collapsed_image_container);\n this.f110064c = linearLayout;\n linearLayout.setTag(C0126R.C0129id.summary_expander_transition_name, \"summaryField\");\n LinearLayout linearLayout2 = (LinearLayout) findViewById(C0126R.C0129id.expanded_image_container);\n this.f110065d = linearLayout2;\n linearLayout2.setTag(C0126R.C0129id.summary_expander_transition_name, \"summaryField\");\n this.f110066e = (ImageView) findViewById(C0126R.C0129id.expand_collapse_icon);\n ImageWithCaptionView imageWithCaptionView = (ImageWithCaptionView) findViewById(C0126R.C0129id.tooltip_view);\n this.f110068g = imageWithCaptionView;\n imageWithCaptionView.setDefaultImageResId(bkfr.m105543a(getContext(), (int) ErrorInfo.TYPE_SDU_MEMORY_FULL, -1));\n this.f110068g.setOnClickListener(this);\n }",
"@Override\n public void onRefresh() {\n connectionLost.setVisibility(View.INVISIBLE);\n imageListAdapter.clearList();\n imageRecyclerView.setVisibility(View.VISIBLE);\n downloadImages(order);\n generateRecyclerView();\n // To keep animation for 4 seconds\n new Handler().postDelayed(new Runnable() {\n @Override public void run() {\n // Stop animation (This will be after 3 seconds)\n swipeLayout.setRefreshing(false);\n }\n }, 4000); // Delay in millis\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_reviews, container, false);\n\n RecyclerView recyclerView = view.findViewById(R.id.reviewrecycler);\n\n LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());// RecyclerView.LayoutManager layoutManager;\n recyclerView.setLayoutManager(layoutManager);\n\n //passing image array and assiging adapter ,,, adapter is object of recyler_adapter class\n ReviewAdapter reviewAdapter= new ReviewAdapter();\n recyclerView.setAdapter(reviewAdapter);\n\nreturn view;\n }",
"ImageAdapter(Context context, ArrayList<Image> list) {\n mContext = context;\n imageList = list;\n// isDownloaded = downloaded;\n\n mNativeAdRequest = new AdRequest.Builder().build();\n\n adView = new NativeExpressAdView(mContext.getApplicationContext());\n String native_ads_id = mContext.getResources().getString(R.string.string_image_list_native_ad_id);\n adView.setAdUnitId(native_ads_id);\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.WRAP_CONTENT);\n params.setMargins(0, (int) context.getResources().getDimension(R.dimen.ad_vertical_margin), 0,\n (int) context.getResources().getDimension(R.dimen.ad_vertical_margin));\n params.addRule(RelativeLayout.CENTER_HORIZONTAL);\n adView.setLayoutParams(params);\n// memorySize = calculateMultipleSize();\n }",
"private void prepareRecyclerView() {\n equipmentInventoryListAdapter = new EquipmentInventoryListAdapter_v2(equipmentInventoryAvailableCallback, equipmentInventoryMissingCallback);\n GridLayoutManager layoutManager = new GridLayoutManager(getContext(), 2);\n binding.equipmentInventoryList.setLayoutManager(layoutManager);\n binding.equipmentInventoryList.setAdapter(equipmentInventoryListAdapter);\n //binding.equipmentInventoryList.addItemDecoration(new DividerItemDecoration(binding.equipmentInventoryList.getContext(), DividerItemDecoration.HORIZONTAL));\n }",
"public void onFinishInflate() {\n super.onFinishInflate();\n this.mIconView = (ImageView) findViewById(R.id.icon);\n this.mTitleView = (TextView) findViewById(R.id.title);\n this.mSummaryView = (TextView) findViewById(R.id.summary);\n this.mSlidingButton = findViewById(R.id.sliding_button);\n }",
"private void inflateThumbnailLayout(View row, BeadInfo beadInfo) {\n\t\tTextView colorCodeTV = (TextView) row.findViewById(R.id.colorNumber);\n\t\tif (colorCodeTV != null){\n\t\t\tString colorCode = beadInfo.getColorCode();\n\t\t\tif (colorCode != null){\n\t\t\t\tcolorCodeTV.setText(colorCode);\n\t\t\t\timageInserter = new BitmapInserter();\n\t\t\t\timageInserter.setLocation((ImageView) row.findViewById(R.id.beadIconColumn));\n\t\t\t\timageInserter.setStorage(new File(APPFOLDER, IMAGEFOLDER));\n\t\t\t\timageInserter.execute(colorCode);\n\t\t\t}\n\t\t}\n\t}",
"private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }",
"private void initImages() {\n mImageView1WA = findViewById(R.id.comment_OWA);\n mImageView6DA = findViewById(R.id.comment_btn_6DA);\n mImageView5DA = findViewById(R.id.comment_btn_5DA);\n mImageView4DA = findViewById(R.id.comment_btn_4DA);\n mImageView3DA = findViewById(R.id.comment_btn_3DA);\n mImageView2DA = findViewById(R.id.comment_btn_2DA);\n mImageViewY = findViewById(R.id.comment_btn_1DA);\n\n imageList.add(mImageViewY);\n imageList.add(mImageView2DA);\n imageList.add(mImageView3DA);\n imageList.add(mImageView4DA);\n imageList.add(mImageView5DA);\n imageList.add(mImageView6DA);\n imageList.add(mImageView1WA);\n\n }",
"private void resultImgInit() {\n resultImgAndLoadingLayout.setX(cornerPositions.getLeftTop().x);\n resultImgAndLoadingLayout.setY(cornerPositions.getLeftTop().y);\n int wight = cornerPositions.getRightBottom().x - cornerPositions.getLeftTop().x + cornerImgSize;\n int height = cornerPositions.getRightBottom().y - cornerPositions.getLeftTop().y + cornerImgSize;\n resultImgAndLoadingLayout.setLayoutParams(new LayoutParams(wight, height));\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_model_images, container, false);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t//setContentView(R.layout.act_search);\n\t\tx.view().inject(this);\n\n\t\tcontext = this;\n\t\tcache = new Cache();\n\t\tisLoadMore = false;\n\t\timageLoader = ImageLoader.getInstance();\n\t\toptions = UsedUtil.getDisplayImageOptions();\n\t\timageWidth = (DeviceInfo.screenWidth - DeviceInfo.dip2px(31))/2;\n\t\timageHeight = (int)(imageWidth*0.618);\n\t\tinflater = LayoutInflater.from(this);\n\t\tIMSI = UsedUtil.getIMSI(context);\n\t\tadapter = new ArrayAdapter<String>(inflater.getContext(),\n\t\t\t\tR.layout.item_search_adapte) {\n\n\t\t\tpublic android.view.View getView(int position,\n\t\t\t\t\t\t\t\t\t\t\t android.view.View convertView, android.view.ViewGroup parent) {\n\t\t\t\tHolder holder = null;\n\t\t\t\tif (convertView == null) {\n\t\t\t\t\tconvertView = inflater.inflate(\n\t\t\t\t\t\t\tR.layout.item_search_adapte, null);\n\t\t\t\t\tholder = new Holder();\n\t\t\t\t\tx.view().inject(holder, convertView);\n\t\t\t\t\tconvertView.setTag(holder);\n\t\t\t\t} else {\n\t\t\t\t\tholder = (Holder) convertView.getTag();\n\t\t\t\t}\n\n\t\t\t\tString itm = getItem(position);\n\t\t\t\t// if(!TextUtils.isEmpty(itm.image))\n\t\t\t\tholder.initView(itm);\n\t\t\t\treturn convertView;\n\t\t\t}\n\n\t\t};\n\t\tgridViewAdapter = new ArrayAdapter<HolderInfo>(this,\n\t\t\t\tR.layout.item_gridview_home) {\n\n\t\t\tpublic android.view.View getView(int position,\n\t\t\t\t\t\t\t\t\t\t\t android.view.View convertView, android.view.ViewGroup parent) {\n\t\t\t\tViewHolder holder = null;\n\t\t\t\tif (convertView == null) {\n\t\t\t\t\tconvertView = inflater.inflate(R.layout.item_gridview_home, null);\n\t\t\t\t\tholder = new ViewHolder();\n\t\t\t\t\tx.view().inject(holder, convertView);\n\t\t\t\t\tconvertView.setTag(holder);\n\t\t\t\t} else {\n\t\t\t\t\tholder = (ViewHolder) convertView.getTag();\n\t\t\t\t}\n\t\t\t\tHolderInfo itm = getItem(position);\n\t\t\t\tholder.initview(itm);\n\n\t\t\t\treturn convertView;\n\t\t\t}\n\n\t\t};\n\t\tIntent intent = getIntent();\n\t\tif(intent.hasExtra(\"tid\")) {\n\t\t\tkeywordEt.setFocusableInTouchMode(false);\n\t\t\teditString = intent.getStringExtra(HttpUtil.Search);\n\t\t\t tid = intent.getStringExtra(HttpUtil.Tid);\n\t\t\tif (tid != null) {\n\t\t\t\tloadMoreData(103);\n\n\t\t\t}\n\t\t}\n\n\t\tRequestParams params = new RequestParams(HttpUtil.Search_LIST_URL );\n\t\thttpPost(params, 101);\n\t\tView view = inflater.inflate(R.layout.layout_search_footer,null);\n\t\tsearch_listview.addFooterView(view);\n\t\tview.findViewById(R.id.search_clear_history).setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tsearch_listview.setVisibility(View.GONE);\n\n\t\t\t}\n\t\t});\n\n\n\t\tkeywordEt.addTextChangedListener(new TextWatcher() {\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable arg0) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count,\n\t\t\t\t\t\t\t\t\t\t int after) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t/*\n\t\t\t\t * LogUtil.e(\"tag\", \"start1======\"+start); LogUtil.e(\"tag\",\n\t\t\t\t * \"count1======\"+count); LogUtil.e(\"tag\",\n\t\t\t\t * \"after1======\"+after);\n\t\t\t\t */\n\t\t\t\tif (!isEtlengtn && (keywordEt.getText().toString().trim().length() > 0)) {\n\t\t\t\t\tisEtlengtn = true;\n\t\t\t\t\tmHandler.sendMessage(mHandler.obtainMessage(1));\n\t\t\t\t} else {\n\t\t\t\t\tisEtlengtn = false;\n\t\t\t\t\tmHandler.sendMessage(mHandler.obtainMessage(1));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before,\n\t\t\t\t\t\t\t\t\t int count) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t/*\n\t\t\t\t * LogUtil.e(\"tag\", \"start=\"+start); LogUtil.e(\"tag\",\n\t\t\t\t * \"before=\"+before); LogUtil.e(\"tag\", \"count=\"+count);\n\t\t\t\t */\n\t\t\t}\n\t\t});\n\t\t\t//下拉判断\n\t\tscrollView.setOnTouchListener(new View.OnTouchListener() {\n\n\t\t\tprivate int lastY = 0;\n\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\n\t\t\t\tif (event.getAction() == MotionEvent.ACTION_UP) {\n\t\t\t\t\tlastY = scrollView.getScrollY() + 100;\n\t\t\t\t\tLogUtil.e(\"tag\", \"lastY=\" + lastY);\n\t\t\t\t\tif (lastY > (ll_Scrollview_layout.getHeight() - scrollView.getHeight()) ) {\n\t\t\t\t\t\tLogUtil.e(\"tag\", \"ll.getHeight()=\" + ll_Scrollview_layout.getHeight() + \",sv.getHeight())=\" + scrollView.getHeight() + \",lastY=\" + lastY);\n\t\t\t\t\t\ttv_loadmore.setText(getResources().getString(R.string.loadmore_loading));\n\t\t\t\t\t\tll_footlayout.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t//addMoreData();\n\t\t\t\t\t\tloadMoreData(103);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstance){\n View rootView = inflater.inflate(R.layout.fragement_body_layout,container,false);\n // get the reference to imageView in the fragment layout\n ImageView imageView = (ImageView) rootView.findViewById(R.id.body_part_image_view);\n //set the image view to daisplay\n imageView.setImageResource(AndroidImageAssets.getHeads().get(0));\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_meme, container, false);\n _unbinder = ButterKnife.bind(this, root);\n\n\n _recyclerMemeList.setHasFixedSize(true);\n _recyclerMemeList.setItemViewCacheSize(_app.settings.getGridColumnCountPortrait() * _app.settings.getGridColumnCountLandscape() * 2);\n _recyclerMemeList.setDrawingCacheEnabled(true);\n _recyclerMemeList.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_LOW);\n _recyclerMemeList.addItemDecoration(new GridDecoration(1.7f));\n\n int a = AppSettings.get().getMemeListViewType();\n if (AppSettings.get().getMemeListViewType() == MemeItemAdapter.VIEW_TYPE__ROWS_WITH_TITLE) {\n RecyclerView.LayoutManager recyclerLinearLayout = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false);\n _recyclerMemeList.setLayoutManager(recyclerLinearLayout);\n } else {\n int gridColumns = ContextUtils.get().isInPortraitMode()\n ? _app.settings.getGridColumnCountPortrait()\n : _app.settings.getGridColumnCountLandscape();\n RecyclerView.LayoutManager recyclerGridLayout = new GridLayoutManager(getActivity(), gridColumns);\n\n _recyclerMemeList.setLayoutManager(recyclerGridLayout);\n }\n\n _emptylistText.setText(getString(R.string.no_custom_templates_description__appspecific, getString(R.string.custom_templates_visual)));\n _recyclerMemeAdapter = new MemeItemAdapter(_imageList, getActivity(), AppSettings.get().getMemeListViewType());\n setRecyclerMemeListAdapter(_recyclerMemeAdapter);\n\n return root;\n }",
"@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }",
"MyRecyclerViewAdapterImage(Context context, ArrayList<String> home_url) {\n this.context = context;\n this.mInflater = LayoutInflater.from(context);\n this.home_url = home_url;\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, final int position) {\n\n\n if (this.mDataset.get(position).simpleValues.get(\"imdbID\") != holder.imdbID) {\n\n /*\n if (holder.imdbID != null) {\n this.bitmaps.get(holder.imdbID).recycle();\n this.bitmaps.remove(holder.imdbID);\n }*/\n\n File cover = new File(this.application.coverFolderMoviesHigh + mDataset.get(position).simpleValues.get(\"imdbID\") + \".jpg\");\n\n //Bearbeite Bild des Layouts\n if (cover.exists()) {\n BitmapFactory.Options options = new BitmapFactory.Options();\n /*\n if (this.activity.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n options.inSampleSize = 2;\n } else {\n options.inSampleSize = 3;\n }*/\n Bitmap coverBitmap = BitmapFactory.decodeFile(cover.getAbsolutePath(), options);\n //this.bitmaps.put(this.mDataset.get(position).simpleValues.get(\"imdbID\"), coverBitmap);\n holder.mImageView.setImageBitmap(coverBitmap);\n }\n\n // setze onClickListener\n holder.mImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n FragmentManager fragmentManager = activity.getSupportFragmentManager();\n // schließe alle offenen Fragmente\n for (int i=fragmentManager.getBackStackEntryCount(); i>0; i--) {\n fragmentManager.popBackStack();\n }\n // erstelle detailedMovieFragment\n MovieDetailedFragment movieDetailedFragment = new MovieDetailedFragment();\n movieDetailedFragment.setImdbID(mDataset.get(position).simpleValues.get(\"imdbID\"));\n if (mDataset.get(position).simpleValues.get(\"3d\").length() == 0) {\n movieDetailedFragment.setDimensions(0);\n } else {\n movieDetailedFragment.setDimensions(1);\n }\n fragmentManager.beginTransaction().replace(R.id.mainContent, movieDetailedFragment, \"movieDetailedFragment\").addToBackStack(\"movieDetailedFragment\").commit();\n }\n });\n holder.imdbID = this.mDataset.get(position).simpleValues.get(\"imdbID\");\n\n }\n\n }",
"private void initializeView() {\n InputStream is1 = getContext().getResources().openRawResource(+R.drawable.congratulations);\n mMovie1 = Movie.decodeStream(is1);\n InputStream is2 = getContext().getResources().openRawResource(+R.drawable.giffy3);\n mMovie2 = Movie.decodeStream(is2);\n InputStream is3 = getContext().getResources().openRawResource(+R.drawable.giffy4);\n mMovie3 = Movie.decodeStream(is1);\n InputStream is4 = getContext().getResources().openRawResource(+R.drawable.giphy1);\n mMovie4 = Movie.decodeStream(is4);\n }",
"private void initView(Context context) {\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 0);\n\t\tmContainer = (LinearLayout)LayoutInflater.from(context).inflate(R.layout.pullable_refresh, null);\n\t\taddView(mContainer, params);\n\t\tsetGravity(Gravity.BOTTOM);\n\t\t\n\t\trefreshArrowView = (ImageView)findViewById(R.id.pull_down_arrow);\n\t\trefreshingView = (ImageView)findViewById(R.id.pull_down_refreshing_view);\n\t\trefreshStateTextView = (TextView)findViewById(R.id.pull_down_state_text);\n\t\t\n\t\trotateAnimation = (RotateAnimation)AnimationUtils.loadAnimation(context, R.anim.reverse_anim);\n\t\trefreshingAnimation = (RotateAnimation)AnimationUtils.loadAnimation(context, R.anim.rotating);\n\t\tLinearInterpolator lir = new LinearInterpolator();\n\t\trotateAnimation.setInterpolator(lir);\n\t\trefreshingAnimation.setInterpolator(lir);\n\t}",
"@Override\n public ViewHolderImage onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = mInflater.inflate(R.layout.cards_column, parent, false);\n return new ViewHolderImage(view);\n }",
"@Override\n public void configViews() {\n\n ImageView view = findViewById(R.id.iv);\n GlideUrl cookie = new GlideUrl(\"http://images.dmzj.com/tuijian/320_170/170623yinglingtj2.jpg\", new LazyHeaders.Builder()\n .addHeader(\"Referer\", Constant.IMG_BASE_URL)\n .addHeader(\"Accept-Encoding\",\"gzip\").build());\n// Glide.with(this).load(cookie)\n// .placeholder(R.mipmap.ic_launcher)\n// .error(R.drawable.a)\n// .transform(new GlideRoundTransform(this,6))\n// .into(view);\n\n// MultiTransformation multi = new MultiTransformation(\n// new RoundedCornersTransformation(20, 0));\n float density = getResources().getDisplayMetrics().density;\n Log.e(\"density\",\"density\"+density);\n RoundedCornersTransformation roundedCornersTransformation =\n new RoundedCornersTransformation((int) (density*20), 0);\n// Glide.with(this).loadOptions.bitmapTransform(roundedCornersTransformation))\n// .into(view);(cookie)\n// .apply(Request\n//\n DeviceUtils.printDisplayInfo(this);\n\n Glide.with(this).load(cookie)\n .apply((RequestOptions.bitmapTransform(roundedCornersTransformation)))\n .into(image01);\n Glide.with(this).load(cookie)\n .into(image02);\n }",
"private void prepareTheList()\n {\n int count = 0;\n for (String imageName : imageNames)\n {\n RecyclerUtils pu = new RecyclerUtils(imageName, imageDescription[count] ,images[count]);\n recyclerUtilsList.add(pu);\n count++;\n }\n }",
"private void initView() {\n\n main_ll_rl = (LinearLayout) findViewById(R.id.main_ll_rili);\n main_ll_xw = (LinearLayout) findViewById(R.id.main_ll_xw);\n main_ll_wode = (LinearLayout) findViewById(R.id.main_ll_wd);\n main_ll_self = (LinearLayout) findViewById(R.id.main_ll_self);\n main_ll_hq = (LinearLayout) findViewById(R.id.main_ll_hq);\n main_zt_color = (LinearLayout) findViewById(R.id.main_zt_color);\n\n main_zt_color.setBackgroundColor(Color.parseColor(\"#e9e9ea\"));\n\n imgrl = (ImageView) findViewById(R.id.imgrili);\n imgxw = (ImageView) findViewById(R.id.imgxw);\n imgwd = (ImageView) findViewById(R.id.imgwd);\n imggr = (ImageView) findViewById(R.id.imgself);\n imghq = (ImageView) findViewById(R.id.imghq);\n\n main_rl_tv = (TextView) findViewById(R.id.main_rl_tv);\n main_xw_tv = (TextView) findViewById(R.id.main_xw_tv);\n main_wd_tv = (TextView) findViewById(R.id.main_wd_tv);\n main_gr_tv = (TextView) findViewById(R.id.main_self_tv);\n main_hq_tv = (TextView) findViewById(R.id.main_hq_tv);\n\n main_ll_rl.setOnClickListener(this);\n main_ll_xw.setOnClickListener(this);\n main_ll_wode.setOnClickListener(this);\n main_ll_hq.setOnClickListener(this);\n main_ll_self.setOnClickListener(this);\n }",
"private void initImageBitmaps(){\n imageUrls.add(\"https://i.redd.it/j6myfqglup501.jpg\");\n names.add(\"Rocky Mountains\");\n\n imageUrls.add(\"https://i.redd.it/0u1u2m73uoz11.jpg\");\n names.add(\"Mt. Baker, WA\");\n\n imageUrls.add(\"https://i.redd.it/xgd2lnk56mz11.jpg\");\n names.add(\"Falls Creek Falls, TN\");\n\n imageUrls.add(\"https://i.redd.it/o6jc7peiimz11.jpg\");\n names.add(\"Skogafoss, Iceland\");\n\n imageUrls.add(\"https://i.redd.it/zxd44dfbyiz11.jpg\");\n names.add(\"Black Forest, Germany\");\n\n imageUrls.add(\"https://www.mountainphotography.com/images/xl/20090803-Hermannsdalstinden-Sunset.jpg\");\n names.add(\"Lofoten Islands, Norway\");\n\n imageUrls.add(\"https://i.redd.it/6vdpsld78cz11.jpg\");\n names.add(\"Isle of Skye\");\n\n imageUrls.add(\"https://i.redd.it/i4xb66v5eyy11.jpg\");\n names.add(\"Lago di Carezza, Italy\");\n\n imageUrls.add(\"https://i.redd.it/ttl7f4pwhhy11.jpg\");\n names.add(\"Arches National Park, UT\");\n\n imageUrls.add(\"https://i.redd.it/mcsxhejtkqy11.jpg\");\n names.add(\"Northern Lights\");\n\n imageUrls.add(\"https://i.redd.it/0rhq46ve83z11.jpg\");\n names.add(\"Swiss Alps\");\n\n imageUrls.add(\"https://i.redd.it/0dfwwitwjez11.jpg\");\n names.add(\"Hunan, China\");\n\n //Initialize our recyclerView now that we have our images/names\n initRecyclerView();\n }",
"public ItemViewHolder(View itemView) {\n super(itemView);\n iv_image = (RoundedImageView)itemView.findViewById(R.id.item_photo);\n tv_title = (TextView)itemView.findViewById(R.id.item_title);\n tv_subtitle = (TextView)itemView.findViewById(R.id.item_subtitle);\n iv_image2 = (ImageView)itemView.findViewById(R.id.imageView1);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mod_image, container, false);\n }",
"private void renderer(int rv, ArrayList<ItemBox> list){\n recyclerView = findViewById(rv);\r\n recyclerView.setHasFixedSize(true);\r\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\r\n RecyclerView.Adapter adapter = new Itembox_Adapter(list, this, 1);\r\n recyclerView.setLayoutManager(layoutManager);\r\n recyclerView.setAdapter(adapter);\r\n }",
"private void configureRecyclerView(){\n this.postAdapter = new PostAdapter(generateOptionsForAdapter(PostHelper.getAllMyPosts(BaseActivity.getUid())),\n Glide.with(this), this,false, false);\n\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n recyclerView.setAdapter(this.postAdapter);\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = LayoutInflater.from(mContext).inflate(R.layout.recyclingview_imagenes, parent,false);\n return new ViewHolder(view);\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n ViewHolder holder;\n if (convertView == null) {\n holder = new ViewHolder();\n convertView = LayoutInflater.from(mContext).inflate(R.layout.photo_list_items, parent, false);\n holder.ivImageDisplay = (SquareImageView) convertView.findViewById(R.id.ivImageDisplay);\n holder.tvImageFolderName = (TextView) convertView.findViewById(R.id.tvImageFolderName);\n convertView.setTag(holder);\n } else {\n holder = (ViewHolder) convertView.getTag();\n }\n imageCategorizingModel = getItem(position);\n String imagePath = imageCategorizingModel.getPath();\n String folderName = imageCategorizingModel.getFolderName();\n int imageCount = imageCategorizingModel.getImageCount();\n String displayName = folderName+\" (\"+imageCount+\")\";\n holder.tvImageFolderName.setText(displayName);\n /*Bitmap bitmap = Utils.UriToBitmap(imagePath);\n holder.ivImageDisplay.setImageBitmap(bitmap);*/\n imageLoader.displayImage(\"file://\" + imagePath, holder.ivImageDisplay, options, animateFirstListener);\n return convertView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View layout = inflater.inflate(R.layout.fragment_icons_list_layout, container, false);\n mRecyclerView = layout.findViewById(R.id.fragment_list_recycler_view);\n mListener.setRecyclerViewComponents(mRecyclerView,1);\n mRootView = layout;\n\n return layout;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n OrderDataModel dataModel = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n ViewHolder viewHolder; // view lookup cache stored in tag\n Integer totalCost = 0;\n final View result;\n\n if (convertView == null) {\n\n viewHolder = new ViewHolder();\n LayoutInflater inflater = LayoutInflater.from(getContext());\n convertView = inflater.inflate(R.layout.order_list_item, parent, false);\n viewHolder.itemName = (TextView) convertView.findViewById(R.id.itemNameTv);\n viewHolder.itemPrice = (TextView) convertView.findViewById(R.id.itemPriceTv);\n viewHolder.totalPrice = (TextView) convertView.findViewById(R.id.totalPriceTv);\n viewHolder.totalItems = (EditText) convertView.findViewById(R.id.itemTotalEt);\n\n\n viewHolder.itemImage = (ImageView) convertView.findViewById(R.id.itemImageIv);\n\n\n\n\n viewHolder.addBtn = (Button) convertView.findViewById(R.id.addOneBtn) ;\n viewHolder.subBtn = (Button) convertView.findViewById(R.id.subOneBtn) ;\n result=convertView;\n convertView.setTag(viewHolder);\n } else {\n viewHolder = (ViewHolder) convertView.getTag();\n result=convertView;\n }\n\n Animation animation = AnimationUtils.loadAnimation(mContext, (position > lastPosition) ? R.anim.fragment_fade_enter : R.anim.fragment_open_enter);\n result.startAnimation(animation);\n\n lastPosition = position;\n\n viewHolder.itemName.setText(dataModel.getItemName());\n viewHolder.totalItems.setText(dataModel.getTotalItem().toString());\n viewHolder.itemPrice.setText(dataModel.getItemPrice().toString());\n viewHolder.totalPrice.setText(dataModel.getTotalPrice().toString());\n // download images\n Log.d(\"itemname\",dataModel.getItemName());\n StorageReference refImg = REF_ITEM_IMAGES_SMALL.child(dataModel.getItemName()+\".png\");\n try {\n File localFile = File.createTempFile(dataModel.getItemName(),\"png\");\n refImg.getFile(localFile).addOnSuccessListener(new OnSuccessListener<FileDownloadTask.TaskSnapshot>() {\n @Override\n public void onSuccess(FileDownloadTask.TaskSnapshot taskSnapshot) {\n //pd.dismiss();\n //Toast.makeText(newOrder.this, \"Image download success\", Toast.LENGTH_LONG).show();\n String filePath = localFile.getPath();\n Bitmap bitmap = BitmapFactory.decodeFile(filePath);\n viewHolder.itemImage.setImageBitmap(bitmap);\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n // pd.dismiss();\n //Toast.makeText(Storing.this, \"Image download failed\", Toast.LENGTH_LONG).show();\n }\n });\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n viewHolder.itemName.setOnClickListener(this);\n viewHolder.addBtn.setOnClickListener(this);\n viewHolder.addBtn.setTag(position);\n viewHolder.subBtn.setOnClickListener(this);\n viewHolder.subBtn.setTag(position);\n viewHolder.itemName.setTag(position);\n // Return the completed view to render on screen\n return convertView;\n }",
"private void init(Context context) {\n getViewTreeObserver().addOnGlobalLayoutListener(this);\n inflate(context, R.layout.new_rp_resultview, this);\n mMainPanel = (ViewAnimator) findViewById(R.id.viewanimator);\n mInfoPanel = (ViewAnimator) findViewById(R.id.va_text);\n \n \n mInfoPanelText1 = (TextView) mInfoPanel.findViewById(R.id.tv1);\n mMainPanel.setDisplayedChild(0);\n\t}",
"@Override\n public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {\n ImageLoader.getInstance(getActivity()).loadImage(\n mAnimal.getImage(),\n mImageImageView\n );\n\n // Remove the listener\n mImageImageView.removeOnLayoutChangeListener(this);\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n ViewHolder holder = new ViewHolder();\n if (convertView == null) {\n convertView = LayoutInflater.from(context).inflate(R.layout.grid_item, null);\n\n holder.imageview = (ImageView) convertView.findViewById(R.id.img);\n convertView.setTag(holder);\n\n\n } else {\n\n holder = (ViewHolder) convertView.getTag();\n }\n Picasso.with(context).load(\"http://image.tmdb.org/t/p/w342/\" + getItem(position).poster_path).into(holder.imageview);\n return convertView;\n }",
"private void m16075b() {\n this.f13513b = (ImageView) getInflater().inflate(C0633g.abc_list_menu_item_icon, this, false);\n addView(this.f13513b, 0);\n }",
"public void initView(Context context) {\n this.imageView = new ImageView(context);\n this.imageView.setPadding(22, 22, 22, 22);\n this.imageView.setImageResource(R.mipmap.start_circle3x);\n addView(this.imageView);\n }",
"@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\tsetContentView(R.layout.hd_hse_common_module_imageshoweractivity_layout);\n\t\timg = (ImageView) findViewById(R.id.hd_hse_common_module_imageshoweractivity_layout_img);\n\t\tString path = getIntent().getStringExtra(HEADIMG);\n\t\tboolean fromHttp = getIntent().getBooleanExtra(FROM_HTTP, false);\n\t\tif (fromHttp) {\n\t\t\tdialog = new ProgressDialog(ImageShowerActivity.this);\n\t\t\tdialog.setMessage(\"正在加载文件...\");\n\t\t\tdialog.show();\n\t\t\tImageLoader loader = new ImageLoader();\n\t\t\t//loader.setBg(path, img, ImageShowerActivity.this);\n\t\t\tloader.setBitmap(path, new ImageCallback() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onImageLoaded(Bitmap bmp) {\n\t\t\t\t\t//img.setLayoutParams(getLayoutParams(bmp));\n\t\t\t\t\timg.setImageBitmap(bmp);\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onError() {\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\tToastUtils.toast(ImageShowerActivity.this, \"图片加载失败\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\n\t\t} else {\n\t\t\tBitmap bmp = BitmapFactory.decodeFile(path);\n\t\t\t//img.setLayoutParams(getLayoutParams(bmp));\n\t\t\timg.setImageBitmap(bmp);\n\t\t}\n\t}"
] | [
"0.712134",
"0.6576358",
"0.6553323",
"0.6516146",
"0.650265",
"0.6491492",
"0.6381124",
"0.63565165",
"0.63444793",
"0.63253605",
"0.6313218",
"0.62974155",
"0.6295277",
"0.6275443",
"0.6194087",
"0.61651254",
"0.61650336",
"0.6150277",
"0.6068589",
"0.604867",
"0.604431",
"0.60333824",
"0.6024119",
"0.6018952",
"0.60118675",
"0.60048777",
"0.59890574",
"0.5986155",
"0.5962644",
"0.5949731",
"0.59352195",
"0.59186906",
"0.590636",
"0.5896753",
"0.58921665",
"0.5865545",
"0.5864755",
"0.58588296",
"0.5857147",
"0.58487827",
"0.58438635",
"0.58382285",
"0.5838015",
"0.5819938",
"0.5817547",
"0.581469",
"0.5813005",
"0.58085287",
"0.5808516",
"0.58071035",
"0.5802454",
"0.57973564",
"0.57917607",
"0.5782045",
"0.57801926",
"0.57797056",
"0.577817",
"0.5775873",
"0.5769897",
"0.57558554",
"0.57438964",
"0.5743822",
"0.57392913",
"0.5735099",
"0.5734761",
"0.5732852",
"0.572772",
"0.5721984",
"0.5721561",
"0.57185686",
"0.5718294",
"0.5717291",
"0.57107806",
"0.5706461",
"0.5701387",
"0.5699813",
"0.56958014",
"0.5685655",
"0.5684666",
"0.568465",
"0.56745714",
"0.56741184",
"0.56728446",
"0.5669936",
"0.56697166",
"0.56593025",
"0.5655137",
"0.5653818",
"0.56424963",
"0.5638132",
"0.5637352",
"0.56337494",
"0.56302017",
"0.5629998",
"0.5629815",
"0.5627308",
"0.56268924",
"0.56267047",
"0.5625058",
"0.56239855",
"0.5612671"
] | 0.0 | -1 |
Get the current selected structure, used by other fragments such as maps | public Structure getSelectedStructure() {
return selectedStructure;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Structure getStructure() {\n/* 3557 */ return this.structure;\n/* */ }",
"public Object getMenuStructure(Map<String, Object> params) {\r\n\t\treturn menuEditor.getMenuStructure(null, params);\r\n\t}",
"Object getSelection();",
"public IStructuredSelection getSelection() {\n \t\treturn selection;\n \t}",
"public GlycanDocument getStructures() {\n\t\treturn theStructures;\n\t}",
"Animation getStructure();",
"public Object getSelection() {\n return selection;\n }",
"public de.engehausen.crazygolf.model.Element getCurrent() {\r\n\t\treturn current;\r\n\t}",
"@Override\r\n\tpublic ISelection getSelection() {\r\n\t\t//$TODO when could this even happen?\r\n\t\tif (getViewer() == null)\r\n\t\t\treturn StructuredSelection.EMPTY;\r\n\t\treturn getViewer().getSelection();\r\n\t}",
"public StructuredViewer getStructuredViewer() {\n \t\treturn super.getStructuredViewer();\n \t}",
"private PR1Model.Shape getSelection() { return selection.get(); }",
"private String getCurrentElement(final ElementKind kind, final Element[] elementPtr)\n throws java.awt.IllegalComponentStateException {\n Node[] nodes = TopComponent.getRegistry ().getCurrentNodes ();\n if (nodes == null) return null;\n if (nodes.length != 1) return null;\n DataObject dataObject = nodes[0].getCookie(DataObject.class);\n if (dataObject == null) return null;\n JavaFXSource js = JavaFXSource.forFileObject(dataObject.getPrimaryFile());\n if (js == null) return null;\n // TODO: Can be called outside of AWT? Probably need invokeAndWait()\n EditorCookie ec = nodes[0].getCookie(EditorCookie.class);\n final int currentOffset;\n \n JEditorPane[] op = ec.getOpenedPanes ();\n JEditorPane ep = (op != null && op.length >= 1) ? op[0] : null;\n final String selectedIdentifier;\n if (ep != null) {\n String s = ep.getSelectedText ();\n currentOffset = ep.getCaretPosition();\n if (ep.getSelectionStart() > currentOffset || ep.getSelectionEnd() < currentOffset) {\n s = null; // caret outside of the selection\n }\n if (s != null && Utilities.isJavaIdentifier (s)) {\n selectedIdentifier = s;\n } else {\n selectedIdentifier = null;\n }\n } else {\n selectedIdentifier = null;\n currentOffset = 0;\n }\n \n //final int currentOffset = org.netbeans.editor.Registry.getMostActiveComponent().getCaretPosition();\n final String[] currentElementPtr = new String[] { null };\n final Future<Void> scanFinished;\n try {\n scanFinished = js.runWhenScanFinished(new CancellableTask<CompilationController>() {\n public void cancel() {\n }\n public void run(CompilationController ci) throws Exception {\n if (ci.toPhase(Phase.ANALYZED).lessThan(Phase.ANALYZED)) {\n ErrorManager.getDefault().log(ErrorManager.WARNING,\n \"Unable to resolve \"+ci.getCompilationUnit().getSourceFile()+\" to phase \"+Phase.ANALYZED+\", current phase = \"+ci.getPhase()+\n \"\\nDiagnostics = \"/*+ci.getDiagnostics()*/+\n \"\\nFree memory = \"+Runtime.getRuntime().freeMemory());\n return;\n }\n Element el = null;\n if (kind == ElementKind.CLASS) {\n boolean isMemberClass = false;\n if (selectedIdentifier != null) {\n Tree tree = ci.getTreeUtilities().pathFor(currentOffset).getLeaf();\n if (tree.getJavaFXKind() == Tree.JavaFXKind.MEMBER_SELECT) {\n MemberSelectTree mst = (MemberSelectTree) tree;\n el = ci.getTrees().getElement(ci.getTrees().getPath(ci.getCompilationUnit(), mst.getExpression()));\n TypeMirror tm = el.asType();\n if (tm.getKind().equals(TypeKind.DECLARED)) {\n currentElementPtr[0] = tm.toString();\n isMemberClass = true;\n }\n }\n } \n if (!isMemberClass) {\n JavaFXTreePath currentPath = ci.getTreeUtilities().pathFor(currentOffset);\n Tree tree = currentPath.getLeaf();\n TypeElement te;\n if (tree.getJavaFXKind() == Tree.JavaFXKind.CLASS_DECLARATION) {\n te = (TypeElement) ci.getTrees().getElement(currentPath);\n } else if (tree.getJavaFXKind() == Tree.JavaFXKind.COMPILATION_UNIT){\n //It is mean tyhat we have global variable and need to set name of the file as classname\n //TODO XXX Durty Hack\n String packageName = ci.getTrees().getElement(currentPath).getSimpleName().toString();\n String className = ci.getFileObject().getName();\n currentElementPtr[0] = packageName+\".\"+className;\n te = null;\n } else {\n Scope scope = ci.getTreeUtilities().scopeFor(currentOffset);\n // JavafxcScope scope = ci.getTreeUtilities().javafxcScopeFor(currentOffset);\n te = scope.getEnclosingClass();\n }\n if (te != null) {\n currentElementPtr[0] = getBinaryName(te);\n }\n el = te;\n }\n } else if (kind == ElementKind.METHOD) {\n Scope scope = ci.getTreeUtilities().scopeFor(currentOffset);\n // JavafxcScope scope = ci.getTreeUtilities().javafxcScopeFor(currentOffset);\n el = scope.getEnclosingMethod();\n if (el != null) {\n currentElementPtr[0] = el.getSimpleName().toString();\n if (currentElementPtr[0].equals(\"<init>\")) {\n // The constructor name is the class name:\n currentElementPtr[0] = el.getEnclosingElement().getSimpleName().toString();\n }\n }\n } else if (kind == ElementKind.FIELD) {\n int offset = currentOffset;\n \n if (selectedIdentifier == null) {\n String text = ci.getText();\n int l = text.length();\n char c = 0; // Search for the end of the field declaration\n while (offset < l && (c = text.charAt(offset)) != ';' && c != ',' && c != '\\n' && c != '\\r') offset++;\n if (offset < l && c == ';' || c == ',') { // we have it, but there might be '=' sign somewhere before\n int endOffset = --offset;\n int setOffset = -1;\n while(offset >= 0 && (c = text.charAt(offset)) != ';' && c != ',' && c != '\\n' && c != '\\r') {\n if (c == '=') setOffset = offset;\n offset--;\n }\n if (setOffset > -1) {\n offset = setOffset;\n } else {\n offset = endOffset;\n }\n while (offset >= 0 && Character.isWhitespace(text.charAt(offset))) offset--;\n }\n if (offset < 0) offset = 0;\n }\n Tree tree = ci.getTreeUtilities().pathFor(offset).getLeaf();\n if (tree.getJavaFXKind() == Tree.JavaFXKind.VARIABLE) {\n el = ci.getTrees().getElement(ci.getTrees().getPath(ci.getCompilationUnit(), tree));\n if (el.getKind() == ElementKind.FIELD || el.getKind() == ElementKind.ENUM_CONSTANT) {\n currentElementPtr[0] = ((VariableTree) tree).getName().toString();\n }\n } else if (tree.getJavaFXKind() == Tree.JavaFXKind.IDENTIFIER && selectedIdentifier != null) {\n IdentifierTree it = (IdentifierTree) tree;\n String fieldName = it.getName().toString();\n Scope scope = ci.getTreeUtilities().scopeFor(offset);\n // JavafxcScope scope = ci.getTreeUtilities().javafxcScopeFor(offset);\n TypeElement te = scope.getEnclosingClass();\n List<? extends Element> enclosedElms = te.getEnclosedElements();\n for (Element elm : enclosedElms) {\n if (elm.getKind().equals(ElementKind.FIELD) && elm.getSimpleName().contentEquals(fieldName)) {\n currentElementPtr[0] = fieldName;\n break;\n }\n }\n \n } else if (tree.getJavaFXKind() == Tree.JavaFXKind.MEMBER_SELECT && selectedIdentifier != null) {\n MemberSelectTree mst = (MemberSelectTree) tree;\n String fieldName = mst.getIdentifier().toString();\n el = ci.getTrees().getElement(ci.getTrees().getPath(ci.getCompilationUnit(), mst.getExpression()));\n if (el.asType().getKind().equals(TypeKind.DECLARED)) {\n List<? extends Element> enclosedElms = ((DeclaredType) el.asType()).asElement().getEnclosedElements();\n for (Element elm : enclosedElms) {\n if (elm.getKind().equals(ElementKind.FIELD) && elm.getSimpleName().contentEquals(fieldName)) {\n currentElementPtr[0] = fieldName;\n break;\n }\n }\n }\n } \n }\n if (elementPtr != null) {\n elementPtr[0] = el;\n }\n }\n }, true);\n if (!scanFinished.isDone()) {\n if (java.awt.EventQueue.isDispatchThread()) {\n // Hack: We should not wait for the scan in AWT!\n // Thus we throw IllegalComponentStateException,\n // which returns the data upon call to getMessage()\n throw new java.awt.IllegalComponentStateException() {\n \n private void waitScanFinished() {\n try {\n scanFinished.get();\n } catch (InterruptedException iex) {\n } catch (java.util.concurrent.ExecutionException eex) {\n ErrorManager.getDefault().notify(eex);\n }\n }\n \n public String getMessage() {\n waitScanFinished();\n return currentElementPtr[0];\n }\n \n };\n } else {\n try {\n scanFinished.get();\n } catch (InterruptedException iex) {\n return null;\n } catch (java.util.concurrent.ExecutionException eex) {\n ErrorManager.getDefault().notify(eex);\n return null;\n }\n }\n }\n } catch (IOException ioex) {\n ErrorManager.getDefault().notify(ioex);\n return null;\n }\n return currentElementPtr[0];\n }",
"public Map<?> getCurrentMap() {\n return this.currentArea;\n }",
"public IComponent getNamedStructure(String name) throws JiBXException {\n\n // check for named component defined at this level\n IComponent comp = null;\n if (m_namedStructureMap != null) {\n comp = (IComponent)m_namedStructureMap.get(name);\n }\n if (comp == null) {\n if (m_context == null) {\n throw new JiBXException(\"Referenced label \\\"\" + name +\n \"\\\" not defined\"); \n } else {\n comp = m_context.getNamedStructure(name);\n }\n }\n return comp;\n }",
"@Override\r\n\tpublic List<IPrintable> getStructureParts() {\n\t\treturn null;\r\n\t}",
"public String getSelected()\r\n {\r\n if (selectedIndex == -1)\r\n return null;\r\n \r\n return towerTypes[selectedIndex];\r\n }",
"public ViewObjectImpl getCurrentDictionaryVO1() {\r\n return (ViewObjectImpl)findViewObject(\"CurrentDictionaryVO1\");\r\n }",
"public IDEStructureParameter getIDEStructureParameter() {\n return this.ideStructureParameter;\n }",
"public Segment getCurrentSegment(){\n\t\treturn mSegmentList.get(mCurrentSegment);\n\t}",
"public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}",
"public T getCurrent(){\r\n if(curr != null){\r\n return curr.data;\r\n }\r\n return null;\r\n }",
"public d getCurrentBaseFragment() {\n Fragment findFragmentById = getFragmentManager().findFragmentById(16908290);\n if (findFragmentById == null || !(findFragmentById instanceof d)) {\n return null;\n }\n return (d) findFragmentById;\n }",
"public String getStructureName() {\n return structureName;\n }",
"public IDEStructureParameter needIDEStructureParameter() {\n if (this.ideStructureParameter == null) {\n setIDEStructureParameter(new IDEStructureParameter());\n }\n return getIDEStructureParameter();\n }",
"private IJavaElement getContext() {\n\t\tIWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tif (activeWorkbenchWindow == null) {\n\t\t\treturn null;\n\t\t}\n\t\tIWorkbenchPage page = activeWorkbenchWindow.getActivePage();\n\t\tif (page != null) {\n\t\t\tISelection selection = page.getSelection();\n\t\t\tif (selection instanceof IStructuredSelection) {\n\t\t\t\tIStructuredSelection ss = (IStructuredSelection) selection;\n\t\t\t\tif (!ss.isEmpty()) {\n\t\t\t\t\tObject obj = ss.getFirstElement();\n\t\t\t\t\tif (obj instanceof IJavaElement) {\n\t\t\t\t\t\treturn (IJavaElement) obj;\n\t\t\t\t\t}\n\t\t\t\t\tif (obj instanceof IResource) {\n\t\t\t\t\t\tIJavaElement je = JavaCore.create((IResource) obj);\n\t\t\t\t\t\tif (je == null) {\n\t\t\t\t\t\t\tIProject pro = ((IResource) obj).getProject();\n\t\t\t\t\t\t\tje = JavaCore.create(pro);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (je != null) {\n\t\t\t\t\t\t\treturn je;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tIEditorPart part = page.getActiveEditor();\n\t\t\tif (part != null) {\n\t\t\t\tIEditorInput input = part.getEditorInput();\n\t\t\t\treturn (IJavaElement) input.getAdapter(IJavaElement.class);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public K get()\n {\n\treturn current.data(); \n }",
"public Structure select(String varName) {\n List<String> memberNames = new ArrayList<>(1);\n memberNames.add(varName);\n return select(memberNames);\n }",
"public Fragment getCurrentFragment()\n {\n return getFragmentInContainer(R.id.fragmentFrameContainer);\n }",
"public Item getSelectedItem() { return this.getSelectedSlot().getMappedItem(); }",
"Structure createStructure();",
"public interface Structure\r\n{\r\n\tint getStart();\r\n\r\n\tint getEnd();\r\n\r\n\t/**\r\n\t * set position to start position.\r\n\t */\r\n\tvoid moveToStart();\r\n\r\n\t/**\r\n\t * set position to end position.\r\n\t */\r\n\tvoid moveToEnd();\t\r\n\r\n\t/**\r\n\t * reset to factory settings\r\n\t */\r\n\tvoid reset();\r\n\r\n\tint size();\r\n\t\r\n\tByteBuffer getByteBuffer();\r\n}",
"public Axiom getSelected() {\r\n\treturn view.getSelected();\r\n }",
"private EditBuildInfoFragment findInfoFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\treturn (EditBuildInfoFragment) fm.findFragmentByTag(FragmentUtils.makeFragmentName(mPager.getId(), 0));\n\t}",
"public static Identifiable getIdentifiable(Identifiable selectedObject) {\n\t// for SpeciesContext objects:\r\n\t//\t\tMIRIAM tree needs the Species\t\t\t\t!!!\r\n\t//\t\ttext Annotation needs the SpeciesContext\r\n\t//\r\n\t// !!!\tuse this only for the tree !!!\r\n\t//\r\n\tif(selectedObject == null) {\r\n\t\treturn null;\r\n\t}\r\n\tif(selectedObject instanceof SpeciesContext) {\r\n\t\treturn (Species)((SpeciesContext)selectedObject).getSpecies();\r\n\t} else if(selectedObject instanceof MolecularType) {\r\n\t\treturn (MolecularType)selectedObject;\r\n\t} else if(selectedObject instanceof ReactionRule) {\r\n\t\treturn (ReactionRule)selectedObject;\r\n\t} else if(selectedObject instanceof ReactionStep) {\r\n\t\treturn (ReactionStep)selectedObject;\r\n\t} else if(selectedObject instanceof RbmObservable) {\r\n\t\treturn (RbmObservable)selectedObject;\r\n\t} else if(selectedObject instanceof BioModel) {\r\n\t\treturn (BioModel)selectedObject;\r\n\t} else if(selectedObject instanceof Structure) {\r\n\t\treturn (Structure)selectedObject;\r\n\t} else if(selectedObject instanceof BioPaxObject) {\r\n\t\treturn null;\r\n\t} else if(selectedObject instanceof Model.ModelParameter) {\r\n\t\treturn (Model.ModelParameter)selectedObject;\r\n\t} else if(selectedObject instanceof SimulationContext) {\r\n\t\treturn (SimulationContext)selectedObject;\r\n//\t} else if(selectedObject instanceof Simulation) {\r\n//\t\treturn (Simulation)selectedObject;\r\n//\t} else if(selectedObject instanceof SpeciesContextSpec) {\r\n//\t\treturn (SpeciesContextSpec)selectedObject;\r\n//\t} else if(selectedObject instanceof ReactionSpec) {\r\n//\t\treturn (ReactionSpec)selectedObject;\r\n\t} else {\r\n\t\treturn null;\r\n\t}\r\n}",
"public Object getCurrentObject()\r\n\t{\r\n\t\tif (newState != null)\r\n\t\t{\r\n\t\t\t// Not applied yet\r\n\t\t\treturn newState.unmodifiedObject;\r\n\t\t}\r\n\r\n\t\treturn propertyBrowser.getObject();\r\n\t}",
"public IVirtualBookRef currentVirtualBook() {\n\t\tif (currentElement >= 0 && currentElement < size()) {\n\t\t\treturn get(currentElement);\n\t\t}\n\t\treturn null;\n\t}",
"public ViewObjectImpl gettype1() {\n return (ViewObjectImpl)findViewObject(\"type1\");\n }",
"public SubsetDefinition getCurrentSubsetDefinition() {\n final SubsetDefinition subsetDefinition = Identifiable.clone(getCurrentSubsetDefinitionRef());\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"getCurrentSubsetDefinition {}\", subsetDefinition);\n }\n return subsetDefinition;\n }",
"@Override\n public E getCurrent() {\n if (isCurrent()) { return cursor.getData(); }\n else { throw new IllegalStateException(\"There is no current element.\"); }\n }",
"public org.apache.xmlbeans.XmlString xgetStructuretype()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(STRUCTURETYPE$2);\r\n return target;\r\n }\r\n }",
"java.lang.String getNested();",
"public Map<Format.Type, BitSet> go() {\n collectFormat(doc.getRootElements()[0]);\n\n// System.out.println(\"Collected format map\");\n// System.out.println(formatMap);\n\n return formatMap;\n }",
"@Override\n public void onClick(View view)\n {\n if(selectedStructure != null) //checks if object is selected and if prev object is same object\n {\n //if object is the same, then deselect the structure\n if (selectedStructure.equals(structureList.get(getAdapterPosition())))\n selected = false;\n else\n selected = true;\n }\n\n // if selected, get object otherwise let no object is selected\n if (selected)\n {\n selectedStructure = structureList.get(getAdapterPosition());\n }\n else\n {\n selectedStructure = null;\n }\n }",
"@Override\n public String toString() {\n return mFeatureStructures.toString();\n }",
"private byte[] getSelectedPlanetSurface() {\r\n\t\tbyte[] mapBytes;\r\n\t\tPACEntry e = getSurface(gameWorld.player.selectedPlanet.surfaceType.index, gameWorld.player.selectedPlanet.surfaceVariant);\r\n\t\tif (e != null) {\r\n\t\t\tmapBytes = e.data;\r\n\t\t} else {\r\n\t\t\tmapBytes = EMPTY_SURFACE_MAP;\r\n\t\t}\r\n\t\treturn mapBytes;\r\n\t}",
"public Selection getSelection() {\n return mSelection;\n }",
"@Override\r\n\tpublic boolean isStructure() {\n\t\treturn false;\r\n\t}",
"public ContentObject getCurrent(\n )\n {\n if(index < 0 || index >= objects.size())\n return null;\n\n return objects.get(index);\n }",
"public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}",
"public Map<String, Object> getSelectedConfiguration() {\n\t\treturn loader.<TemplateController>getController().getSelectedConfiguration();\n\t}",
"protected BlockStmt currentBlock() {\n return enclosingBlocks.peekFirst();\n }",
"public E getCurrent()\n {\n if (size != 0)\n {\n return current.data();\n }\n else\n {\n throw new NoSuchElementException(\"The list is empty\");\n }\n }",
"public String getCurrent()\n {\n return current.toString();\n }",
"public Structure load(String name) {\n \t\treturn null;\n \t}",
"public Select getSelect()\n {\n return select;\n }",
"public String getSelection() {\n\t\tif (selection == null) {\n\t\t\treturn Floor.NO_FLOOR_IMAGE_SELECTION;\n\t\t} else {\n\t\t\treturn selection;\n\t\t}\n\t}",
"Object getCurrentData();",
"private EObject getRoot(Object receiver) {\r\n\t\tEObject root = null;\r\n\r\n\t\tif(receiver instanceof ISelection) {\r\n\t\t\tISelection selection = (ISelection)receiver;\r\n\t\t\tif(selection.isEmpty()) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\ttry {\r\n\t\t\t\t//this is the case where the selection is on the Project Explorer\r\n\t\t\t\tIStructuredSelection selectionstructured = (IStructuredSelection)selection;\r\n\r\n\t\t\t\tObject selectedElement = selectionstructured.getFirstElement();\r\n\r\n\t\t\t\tObject selectedAdapter = Platform.getAdapterManager().getAdapter(selectedElement, IFile.class);\r\n\r\n\r\n\t\t\t\tif(selectedAdapter instanceof IFile) {\r\n\t\t\t\t\tfinal IFile selectedFile = (IFile)selectedAdapter;\r\n\t\t\t\t\tModelSet modelSet = new ModelSet();\r\n\t\t\t\t\tModelsReader reader = new ModelsReader();\r\n\t\t\t\t\treader.readModel(modelSet);\r\n\r\n\r\n\t\t\t\t\tIPath workspacePath = selectedFile.getFullPath();\r\n\r\n\t\t\t\t\tURI workspaceURI = URI.createPlatformResourceURI(workspacePath.toString(), true);\r\n\t\t\t\t\tmodelSet.loadModels(workspaceURI);\r\n\r\n\t\t\t\t\tUmlModel openedModel = (UmlModel)modelSet.getModel(UmlModel.MODEL_ID);\r\n\t\t\t\t\tif(openedModel != null) {\r\n\t\t\t\t\t\troot = openedModel.lookupRoot();\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t//this is the case where the selection is on the Model Explorer\r\n\t\t\t\t\tServiceUtilsForSelection serviceUtils = ServiceUtilsForSelection.getInstance();\r\n\t\t\t\t\tUmlModel openedModel = (UmlModel)serviceUtils.getModelSet(selection).getModel(UmlModel.MODEL_ID);\r\n\t\t\t\t\tif(openedModel != null) {\r\n\t\t\t\t\t\troot = openedModel.lookupRoot();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t//Ignored: The selection cannot be used to retrieve the ServicesRegistry.\r\n\t\t\t\t//Do not log exceptions: this is just not a Papyrus/RobotML model\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn root;\r\n\t}",
"public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }",
"public Class<?> currentClass() {\n\t\treturn JetArgument.getCurrent().getElementClass();\n\t}",
"public S getCurrentState();",
"ComponentBodyType getComponentInfo();",
"public SubsetDefinition getCurrentSubsetDefinitionRef() {\n SubsetDefinition subsetDefinition = getSubsetDefinitionRef(CURRENT_SUBSET_DEFINITION);\n if (subsetDefinition == null) {\n subsetDefinition = new SubsetDefinition();\n subsetDefinition.setId(CURRENT_SUBSET_DEFINITION);\n\n addSubsetDefinitionRef(subsetDefinition);\n }\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"getCurrentSubsetDefinitionRef {}\", subsetDefinition);\n }\n return subsetDefinition;\n }",
"public Section getSection() {\n\treturn belongedSection.clone();\n }",
"public ProgramFragment getFragment(String treeName, String name);",
"@Override\n\tpublic Object getSelection() {\n\t\tObject value = null;\n\t\tif (selectionNode instanceof Selectable) {\n\t\t\tvalue = ((Selectable) selectionNode).getSelection();\n\t\t}\n\t\treturn value;\n\t}",
"public List<T> getSelected() {\n Unknown selected = getElement().getSelected();\n if (isMulti()) {\n return SerDes.unmirrorList(selected.<Mirrored<List<T>>>cast(), getItemClass());\n } else {\n return Collections.singletonList(SerDes.unmirror(selected.cast(), getItemClass()));\n }\n }",
"protected String getStructureName() {\n return \"\";\n }",
"public java.lang.String getStructuretype()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STRUCTURETYPE$2);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public String getMySelection() {\n return mySelection;\n }",
"public Page getCurrentPageObject() {\n return getPageObject(this.currentIndex.viewIndex);\n }",
"public String getFragment() {\n return m_fragment;\n }",
"public ProgramFragment getFragment(String treeName, Address addr);",
"public Hashtable<String, Object> getActivityLayersSharedObjects();",
"public IEntry getSelectedEntry()\n {\n return selectedEntry;\n }",
"Section getSection();",
"public String selection() {\n return inputter.selection();\n }",
"public Collection getSpecialisation()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{\n \t\tCollection col = new ArrayList();\n \t\tcol = instance.getSpecialization(this.refMofId());\n \t\t\n \t\treturn col; \t\t\n \t}\n \n \treturn ((Uml15Package)this.refOutermostPackage()).getCore().getAParentSpecialization().getSpecialization(this);\n }",
"public FrameEditorSelectionState getSelectionState()\n {\n return selection;\n }",
"public final Object getCurrent()\n\t{\n\t\treturn getCapture();\n\t}",
"@Override\n protected Rectangle getSelectedRegion()\n {\n // Go through all widgets and union their bounds.\n Iterator<FrameEltSelnFig<?>> selectedFigs =\n selection.getSelectedFigures();\n\n return computeUnion(selectedFigs);\n }",
"public KVExtractionDTO getSelectedKVExtraction() {\n\t\treturn this.kvExtractionDTO;\n\t}",
"public ViewObjectImpl getStatesVo1() {\n return (ViewObjectImpl) findViewObject(\"StatesVo1\");\n }",
"public static int getDrawingTool(){ return selectedDrawingTool; }",
"@Override\n public List<SpriteDefinition> getChosen () {\n return mySelected.getListView().getItems();\n }",
"public String getObjSelect() {\n return mobjSelect;\n }",
"public IPrivateTestCompView.IContextElement currentContextElement() {\r\n return (IPrivateTestCompView.IContextElement) getCurrentElement();\r\n }",
"public BaseFragment getCurrentFragment() {\n return (BaseFragment) getSupportFragmentManager().findFragmentById(R.id.mFrameContainer);\n }",
"IProductInfo getM_piSelectedItem();",
"public void getSelectedTXInfo() {\r\n /** call selectedTx to get needed info about the tx selection **/\r\n selectedTx();\r\n /** call addSwitches to add possible options for tx selection **/\r\n addSwitches();\r\n /** call addTestLoads to add possible options for a test load **/\r\n addTestLoads();\r\n /** call addFilters() to add possible options for a test load **/\r\n addFilters();\r\n }",
"public Maze getCurMaze();",
"public BlockStmt\ngetInitiationPart();",
"@Override\r\n\tpublic XmlDataStruct getOutputStruct()\r\n\t{\n\t\treturn null;\r\n\t}",
"public SVGElementModel getRoot() {\n \t\treturn store.getRootItems().get(0);\n \t}",
"public Building getBuilding();",
"public String returnTagLocation(){\n\t\treturn (String) tagLocationBox.getSelectedItem();//Return the tag location options\n\t}",
"public Document getCurrentDocument() {\n\t\tif(currentDocument.size()>0) {\n\t\t\t\n\t\t\tif (index != -1) {\n\t\t\t\treturn currentDocument.get(index);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getSection(){\n return mSection;\n }",
"public AppDescriptor getSelected()\n {\n DefaultMutableTreeNode nodeSelected = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent();\n AppDescriptor appDesc = null;\n \n if( (nodeSelected != null) && (nodeSelected.getUserObject() instanceof AppDescriptor) )\n appDesc = (AppDescriptor) nodeSelected.getUserObject();\n \n return appDesc;\n }",
"public DBState() {\n\t\t\tthis.expandedElements=treeViewer.getExpandedElements();\n\t\t\tthis.treeSelection=treeViewer.getSelection();\n\t\t\tthis.tableSelection=txTableViewer.getSelection();\n\t\t}"
] | [
"0.65107673",
"0.5580673",
"0.55735403",
"0.5551443",
"0.5520181",
"0.55182195",
"0.5408696",
"0.5332807",
"0.5271154",
"0.5268059",
"0.5240992",
"0.52334493",
"0.5213906",
"0.5196639",
"0.51945156",
"0.5194219",
"0.5158623",
"0.51504564",
"0.51461625",
"0.51430285",
"0.5142577",
"0.5142322",
"0.51062804",
"0.50810367",
"0.50691146",
"0.5069073",
"0.50211567",
"0.50209296",
"0.50182444",
"0.50117433",
"0.5005948",
"0.5000125",
"0.49979174",
"0.49775",
"0.49726078",
"0.49461576",
"0.494394",
"0.493977",
"0.49153152",
"0.49069723",
"0.4906722",
"0.4901814",
"0.48991016",
"0.48974147",
"0.4888615",
"0.48832405",
"0.48821083",
"0.48792002",
"0.48744553",
"0.48670292",
"0.48655447",
"0.4857719",
"0.48435134",
"0.48395792",
"0.48274595",
"0.48214412",
"0.48210937",
"0.4815748",
"0.48062712",
"0.4804504",
"0.48040354",
"0.4799229",
"0.4798434",
"0.47953185",
"0.47925538",
"0.47911087",
"0.47898442",
"0.47877592",
"0.4775339",
"0.47745943",
"0.4768753",
"0.47654864",
"0.47644866",
"0.47575122",
"0.47565636",
"0.47556713",
"0.4745265",
"0.4744469",
"0.4743455",
"0.4742687",
"0.47356135",
"0.47294006",
"0.4725904",
"0.47205958",
"0.47172144",
"0.47100335",
"0.4709",
"0.4702713",
"0.47000557",
"0.46968994",
"0.4694655",
"0.46910143",
"0.46874794",
"0.46852553",
"0.46828827",
"0.46807337",
"0.46802545",
"0.4679831",
"0.46752793",
"0.46719357"
] | 0.7318959 | 0 |
check if object is selected or deselected (DOES NOT WORK PERFECTLY) | @Override
public void onClick(View view)
{
if(selectedStructure != null) //checks if object is selected and if prev object is same object
{
//if object is the same, then deselect the structure
if (selectedStructure.equals(structureList.get(getAdapterPosition())))
selected = false;
else
selected = true;
}
// if selected, get object otherwise let no object is selected
if (selected)
{
selectedStructure = structureList.get(getAdapterPosition());
}
else
{
selectedStructure = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSelected() { \n \treturn selection != null; \n }",
"boolean isSelected();",
"boolean isSelected();",
"boolean isSelected();",
"public boolean isSelected();",
"public boolean isSelected();",
"public abstract boolean isSelected();",
"public boolean isSelected() { return selected; }",
"public boolean isSelectionChanged();",
"public abstract boolean hasSelection();",
"public boolean isSelected(){\r\n return selected;\r\n }",
"public boolean isSelected() \n {\n return selected;\n }",
"@Override\n public Boolean getValue(SimInfo object) {\n return selectionModel.isSelected(object);\n }",
"public void invSelected()\n {\n\t\t//informaPreUpdate();\n \tisSelected = !isSelected;\n\t\t//informaPostUpdate();\n }",
"static void setNotSelected(){isSelected=false;}",
"@Override\n\tpublic boolean isSelected() {\n\t\treturn false;\n\t}",
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"public boolean isSelected() {\r\n return isSelected;\r\n }",
"public boolean isSelected()\n {\n return selected;\n }",
"public boolean isSelected() {\n \t\treturn selected;\n \t}",
"public boolean isSelected() {\n return (state & STATE_SELECTED) != 0;\n }",
"public boolean isSelected() {\n\t\treturn iAmSelected;\n\t}",
"public boolean isSelected()\n\t{\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\r\n return selected;\r\n }",
"public void itemSelected(boolean selected);",
"@FXML\r\n\tpublic void checkSelected() {\r\n\t\tif(!listView.getSelectionModel().isEmpty())\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(false);\r\n\t\t\taddToShoppingCartButton.setDisable(false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdeleteItemButton.setDisable(true);\r\n\t\t\taddToShoppingCartButton.setDisable(true);\r\n\t\t}\r\n\t}",
"public boolean getSelected()\n {\n return selected; \n }",
"public boolean isSelected() {\r\n\t\treturn selected;\r\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean isSelected() {\n\t\treturn selected;\n\t}",
"public boolean canHandle(Object selection);",
"public boolean isSelected()\n {\n\treturn _isSelected;\n }",
"private void checkSelectable() {\n \t\tboolean oldIsSelectable = isSelectable;\n \t\tisSelectable = isSelectAllEnabled();\n \t\tif (oldIsSelectable != isSelectable) {\n \t\t\tfireEnablementChanged(SELECT_ALL);\n \t\t}\n \t}",
"boolean hasIronSelected();",
"public boolean canSelectionChange() {\n return true;\n }",
"private void checkSelection() {\n \t\tboolean oldIsSelection = isSelection;\n \t\tisSelection = text.getSelectionCount() > 0;\n \t\tif (oldIsSelection != isSelection) {\n \t\t\tfireEnablementChanged(COPY);\n \t\t\tfireEnablementChanged(CUT);\n \t\t}\n \t}",
"boolean hasStablesSelected();",
"public void select(Object obj, boolean selectionFlag);",
"public boolean isSelected() {\n/* 876 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean testSelected() {\n // test if set\n boolean set = Card.isSet(\n selectedCards.get(0).getCard(),\n selectedCards.get(1).getCard(),\n selectedCards.get(2).getCard()\n );\n\n // set currentlySelected to false and replace with new Cards (if applicable)\n for (BoardSquare bs : selectedCards)\n bs.setCurrentlySelected(false);\n\n // handle if set\n if (set) {\n if (!deck.isEmpty() && this.numCardsOnBoard() == 12) {\n for (BoardSquare bs : selectedCards)\n bs.setCard(deck.getTopCard());\n }\n else if (!deck.isEmpty() && this.numCardsOnBoard() < 12) {\n board.compressBoard(selectedCards);\n this.add3();\n }\n else {\n board.compressBoard(selectedCards);\n }\n }\n\n // clear ArrayList\n selectedCards.clear();\n\n // return bool\n return set;\n }",
"@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)return;\r\n\t\t\t\t\t\tif(b[0].isSelected())gender=false;\r\n\t\t\t\t\t\telse gender=true;\r\n\t\t\t\t\t}",
"public void setSelected(boolean selected);",
"protected abstract boolean isEnabledForSelection(T1 object, Vector<T2> globalSelection);",
"public boolean isUnselected() {\n return UNSELECTED.equals(message);\n }",
"private void tagSelectionChanged(TagBase source) {\n if (source.isSelected()) {\n getChildren().stream()\n .filter(c -> c instanceof TagBase)\n .map(c -> (TagBase) c)\n .filter(ov -> ov != source).forEach(ov -> ov.setSelected(false));\n if (source instanceof ObjectTag) {\n source.setAnimateOutline(Settings.isAnimateOutline());\n selectedObjectProperty.set((ObjectTag) source);\n }\n tagCoordsProperty.set(getCoordinates(source.shapeItemProperty().get()));\n source.shapeItemProperty().addListener((observable, oldValue, newValue) -> tagCoordsProperty.set(getCoordinates(newValue)));\n }\n else {\n if (objectsProperty.stream().filter(ov -> ov.isSelected()).count() > 0) {\n return;\n }\n source.setAnimateOutline(false);\n selectedObjectProperty.set(null);\n tagCoordsProperty.set(\"\");\n }\n }",
"public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public Boolean getIsselected() {\n return isselected;\n }",
"public Boolean getIsselected() {\n return isselected;\n }",
"protected boolean isSelected(int selectedID)\n\t{\n\t\treturn (selectedID == this.nameId) && (this.slotId == parentGuiFF.getSelectedListId());\n\t}",
"public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}",
"public boolean isSelected() {\n return SELECTED.equals(message);\n }",
"boolean isPickEnabled();",
"public boolean getSelection () {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;\r\n\treturn (OS.PtWidgetFlags (handle) & OS.Pt_SET) != 0;\r\n}",
"boolean applicable(Selection selection);",
"public boolean isSelected_txt_Pick_Up_Text(){\r\n\t\tif(txt_Pick_Up_Text.isSelected()) { return true; } else { return false;} \r\n\t}",
"public boolean isSelectionListener() {\n return true;\n }",
"public boolean forceSelection();",
"void stateSelected(State state);",
"public boolean isSelectable(){\n\t\treturn (type != MONSTER_GOAL && type != MONSTER_ENTRANCE);\n\t}",
"private void rdnamActionPerformed(java.awt.event.ActionEvent evt) {\n if( rdnam.isSelected())\n { \n gt= true;\n }\n \n \n }",
"@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}",
"@Override\r\n\t\t\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.SELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=true;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(e.getStateChange()==ItemEvent.DESELECTED)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(e.getItem()==cb[0])index1=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[1])index2=false;\r\n\t\t\t\t\t\t\telse if(e.getItem()==cb[2])index3=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"protected abstract boolean isVisibleForSelection(T1 object, Vector<T2> globalSelection);",
"public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public boolean isTargetSelected() {\n return targetSelected;\n }",
"public void setSelected(boolean s)\n {\n selected = s; \n }",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n Object source = e.getItemSelectable();\n \n //Now that we know which button was pushed, find out\n //whether it was selected or deselected.\n if (e.getStateChange() == ItemEvent.SELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(false);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(false);\n\t\t\t\tthis.capaExplain.setVisible(false);\n } \n }\n else if (e.getStateChange() == ItemEvent.DESELECTED) {\n if (source == this.nbVCheck) {\n\t\t\t\tthis.nbVBox.setVisible(true);\n } else if (source == this.capaCheck) {\n\t\t\t\tthis.capaBox.setVisible(true);\n\t\t\t\tthis.capaExplain.setVisible(true);\n } \n }\n\t}",
"public Boolean isMultipleSelection() {\n return m_multipleSelection;\n }",
"public boolean isMultiSelection()\n {\n return multiSelection;\n }",
"public boolean getIsSelected() {\n return this.isSelected;\n }",
"@Override\n public void onValueDeselected() {\n }",
"public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }",
"@Override\n\tpublic boolean isEnabled() {\n\t\treturn !getSelectedDeletables().isEmpty();\n\t}",
"public abstract boolean isIndexSelected(int i);",
"boolean hasArtilleryFactorySelected();",
"public boolean isSelected_click_Digital_coupons_button(){\r\n\t\tif(click_Digital_coupons_button.isSelected()) { return true; } else { return false;} \r\n\t}",
"@Override\n public boolean select() {\n cell.setState(cell.getRevealedState());\n return true;\n }",
"public boolean isGraphicSelected(int id)\n\t{\n\t\treturn getObject().isGraphicSelected(id);\n\t}",
"private void updateStateUiAfterSelection() {\n stageManager.updateStateUi();\n eventBus.publish(EventTopic.DEFAULT, EventType.SELECTED_OBJECT_CHANGED);\n eventManager.fireEvent(EngineEventType.SELECTED_OBJECT_CHANGED);\n }",
"public boolean isSelected() {\n return isEnabled;\n }",
"public boolean isSelectionChanged() {\n return selectionChanged;\n }",
"public boolean isSelectionEmpty()\n/* */ {\n/* 215 */ return this.selectedDates.isEmpty();\n/* */ }",
"@Override\n public void onValueDeselected() {\n\n }",
"@Override\n public void onValueDeselected() {\n\n }",
"@Override\n public void onValueDeselected() {\n\n }",
"@Override\n public void onValueDeselected() {\n\n }",
"public void setSelected(boolean selected) \n {\n this.selected = selected;\n }",
"public void stateChanged (ChangeEvent e)\r\n\t {\t\t\r\n\t\t int index = tabbedPane.getSelectedIndex();\r\n\t\t m_selectionActive = (index == 0);\r\n\t }",
"protected boolean isSelected(int slotIndex)\n {\n return false;\n }",
"protected boolean isSelected(int slotIndex)\n {\n return false;\n }",
"protected boolean isSelected(int slotIndex)\n {\n return false;\n }",
"private static boolean hasSelectionListener( Text text ) {\n Button defButton = text.getShell().getDefaultButton();\n // TODO [rst] On GTK, the SelectionListener is also off when the default\n // button is invisible or disabled. Check with Windows and repair.\n boolean hasDefaultButton = defButton != null && defButton.isVisible();\n return !hasDefaultButton && SelectionEvent.hasListener( text );\n }",
"public Boolean toggleSelected()\n\t{\n\t\tthis._selected = !this._selected;\n\t\treturn this._selected;\n\t}",
"protected void onSelectionPerformed(boolean success) {\n }",
"boolean isCitySelected();",
"public boolean isCellSelected(Object cell) {\r\n \t\treturn graph.isCellSelected(cell);\r\n \t}",
"boolean hasBracksSelected();",
"void evt_MarkSelectedObjects()\r\n {\r\n short num;\r\n CObject pHO;\r\n int oil;\r\n CObjInfo oilPtr;\r\n\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n oilPtr = rhPtr.rhOiList[oil];\r\n if (oilPtr.oilEventCount == rh2EventCount)\r\n {\r\n if (oilPtr.oilEventCountOR != rh4EventCountOR)\r\n {\r\n oilPtr.oilEventCountOR = rh4EventCountOR;\r\n num = oilPtr.oilObject;\r\n while (num >= 0)\r\n {\r\n pHO = rhPtr.rhObjectList[num];\r\n pHO.hoSelectedInOR = 0;\r\n num = pHO.hoNumNext;\r\n }\r\n }\r\n num = oilPtr.oilListSelected;\r\n while (num >= 0)\r\n {\r\n pHO = rhPtr.rhObjectList[num];\r\n pHO.hoSelectedInOR = 1;\r\n num = pHO.hoNextSelected;\r\n }\r\n }\r\n }\r\n }",
"private State getState() {\n if (isSelected() && !isArmed()) {\n // normal black tick\n return State.SELECTED;\n } else if (isSelected() && isArmed()) {\n // don't care grey tick\n return State.OTHER;\n } else {\n // normal deselected\n return State.NOT_SELECTED;\n }\n }"
] | [
"0.7490998",
"0.741729",
"0.741729",
"0.741729",
"0.72810763",
"0.72810763",
"0.72742856",
"0.71198547",
"0.7112499",
"0.7049765",
"0.704343",
"0.69633377",
"0.69599473",
"0.694731",
"0.6839329",
"0.6838683",
"0.68279374",
"0.68140936",
"0.67848945",
"0.677856",
"0.67283934",
"0.6725903",
"0.6651955",
"0.6621555",
"0.6581572",
"0.6558749",
"0.65364915",
"0.6484896",
"0.64669275",
"0.64669275",
"0.6440866",
"0.63918036",
"0.63881767",
"0.6328849",
"0.6317495",
"0.63092715",
"0.6285005",
"0.62647575",
"0.6262491",
"0.6216438",
"0.62097573",
"0.6185268",
"0.6171281",
"0.6169541",
"0.6164065",
"0.6149981",
"0.61486244",
"0.61486244",
"0.6148443",
"0.61436594",
"0.6138565",
"0.61345243",
"0.6121052",
"0.6107216",
"0.609067",
"0.6082833",
"0.6081608",
"0.60759586",
"0.6058606",
"0.60330755",
"0.60297763",
"0.60094756",
"0.59995705",
"0.59885824",
"0.5979649",
"0.59699166",
"0.59619004",
"0.59618324",
"0.59548265",
"0.5936402",
"0.59277344",
"0.5916581",
"0.59100974",
"0.5894687",
"0.5886534",
"0.58821905",
"0.58794856",
"0.5872355",
"0.5862539",
"0.5860635",
"0.58541715",
"0.5845499",
"0.5845131",
"0.58446974",
"0.58446974",
"0.58446974",
"0.58446974",
"0.5839999",
"0.58375806",
"0.5835583",
"0.5835583",
"0.5835583",
"0.58265185",
"0.5822517",
"0.5812477",
"0.5805467",
"0.57890016",
"0.57852894",
"0.5779788",
"0.57683915"
] | 0.65828043 | 24 |
Rebind image to current structure selected, set image resource and description of the image | public void bind(Structure currStructure) {
selectedStructure = currStructure;
currImage.setImageResource(currStructure.getDrawableId());
imageDesc.setText(currStructure.getLabel());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setImageResource(String imageResource) throws IOException;",
"public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }",
"private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }",
"public void updateObjectImage() {\r\n\t\tif (this.objectDescriptionTabItem != null) this.objectDescriptionTabItem.redrawImageCanvas();\r\n\t}",
"void lSetImage(Image img);",
"public void update(ImageObject nImage) { \r\n selectedImage = nImage;\r\n \r\n update();\r\n }",
"void setImage(String image);",
"public void setImage (Product product) {\n\t\t//TODO beh�ver hj�lp. hur s�tter jag mha referens till objektet bilden?\n\t\tpictureLbl.setText(\"\");\n\t\t//picLbl.setIcon(product.getImageName());\n\t\tpictureLbl.repaint();\n\t}",
"public void setImage(Image itemImg) \n {\n img = itemImg;\n }",
"public void setTempImage()\n {\n URL url = this.getClass().getResource(lastselection.getImage());\n\t\tImage image = Toolkit.getDefaultToolkit().getImage(url);\n\t\ttempImage = new PImage(image);\n\t\ttempImage.setBounds(0,0,65,170);\n\t\ttempImage.setTransparency(0);\n\t\tlayer.addChild(tempImage);\n\t}",
"public void changePicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(type == \"generic\") {\n //add the new picture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n else if(type == \"picture\"){\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res,R.drawable.generic_view);\n imgView.setImageBitmap(bitmap);\n }\n }",
"public static void setImgFromResources(VpePageContext pageContext, nsIDOMElement img, String fileImageName, String undefinedImgName) {\r\n IEditorInput input = pageContext.getEditPart().getEditorInput();\r\n IPath inputPath = getInputParentPath(input);\r\n //Fix For JBIDE-3030\r\n if(pageContext.getVisualBuilder().getCurrentIncludeInfo()==null\r\n \t\t||!(pageContext.getVisualBuilder().getCurrentIncludeInfo().getStorage() instanceof IFile)) {\r\n \treturn;\r\n }\r\n String path = ElServiceUtil.replaceEl((IFile)pageContext.getVisualBuilder().getCurrentIncludeInfo().getStorage(), fileImageName);\r\n File file = new File(inputPath.toOSString() + File.separator + path);\r\n if (file.exists()) {\r\n img.setAttribute(HTML.ATTR_SRC, HtmlComponentUtil.FILE_PROTOCOL + inputPath.toString() + \"/\" //$NON-NLS-1$\r\n + path.replace('\\\\', '/'));\r\n } else {\r\n img.setAttribute(HTML.ATTR_SRC, undefinedImgName.replace('\\\\', '/'));\r\n }\r\n }",
"public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }",
"public void setImage(Image newImage)\n {\n if (newImage == null)\n {\n setFill(null);\n }\n else\n {\n setFill(new ImageFill(newImage));\n }\n }",
"public void setImage(String ref){\n\t ImageIcon ii = new ImageIcon(this.getClass().getResource(ref));\n\t image = ii.getImage();\n\t}",
"private void editImageButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editImageButtonActionPerformed\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setFileFilter(new FileNameExtensionFilter(\"Image\", \"jpg\"));\n fileChooser.showOpenDialog(this);\n if (fileChooser.getSelectedFile() != null) {\n selectedFilePath = fileChooser.getSelectedFile().getAbsolutePath();\n oldImageTitle = imageTitle;\n imageTitle = phoneField.getText() + fileChooser.getSelectedFile().getName();\n ImageIcon contactImage = new ImageIcon(new ImageIcon(fileChooser.getSelectedFile().getAbsolutePath()).getImage().getScaledInstance(contactImageLabel.getWidth(), contactImageLabel.getHeight(), Image.SCALE_DEFAULT));\n contactImageLabel.setIcon(contactImage);\n } else {\n\n }\n\n\n }",
"public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }",
"public abstract void setImageFormat(String format);",
"private void setImage() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n Bitmap originalBm = BitmapFactory.decodeFile(tempFile.getAbsolutePath(), options);\n // Log.d(TAG, \"setImage : \" + tempFile.getAbsolutePath());\n\n myImage.setImageBitmap(originalBm);\n\n /**\n * tempFile 사용 후 null 처리를 해줘야 합니다.\n * (resultCode != RESULT_OK) 일 때 tempFile 을 삭제하기 때문에\n * 기존에 데이터가 남아 있게 되면 원치 않은 삭제가 이뤄집니다.\n */\n System.out.println(\"setImage : \" + tempFile.getAbsolutePath());\n fileSource = tempFile.getAbsolutePath();\n myImageSource = fileSource;\n check++;\n tempFile = null;\n\n }",
"void setImage(IViewModel image);",
"public void updateImage(final Image image) { //The Reason that we have Set the Image to final over here is because once we fetch the Image from the AbsolutePath then after scaling this should be the Final Image in which we detect the Faces \n\t\timagelabel.setIcon(new ImageIcon(scaleImage(image))); \n\t}",
"void resetDragImage();",
"private void drawImage(){\n Integer resourceId = imageId.get(this.name);\n if (resourceId != null) {\n drawAbstract(resourceId);\n } else {\n drawNone();\n }\n }",
"private void showImage() {\n this.animalKind = (String) imageCbox.getSelectedItem();\n try {\n ImageIcon imageIcon = new ImageIcon(getClass().getResource(\"/\" + animalKind + \"E.png\")); // load the image to a imageIcon\n Image image = imageIcon.getImage(); // transform it\n Image newImg = image.getScaledInstance(120, 120, Image.SCALE_SMOOTH); // scale it the smooth way\n imageIcon = new ImageIcon(newImg);// transform it back\n imgLabel.setIcon(imageIcon);\n this.add(imgLabel, gbc);\n\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n repaint();\n }",
"private void setImageOnGUI() {\n\n // Capture position and set to the ImageView\n if (AppConstants.fullScreenBitmap != null) {\n fullScreenSnap.setImageBitmap(AppConstants.fullScreenBitmap);\n }\n\n }",
"public void setNewImage(String newImage) {\r\n\t\tthis.newImage = newImage;\r\n\t}",
"public void setImageResource(String resPath) {\n \t\timageResource = resPath;\n \t\tif (resPath.contains(\"_holo\") || resPath.contains(\"_alt\")) {\n \t\t\tsetAlternateArt(true);\n \t\t}\n \t\t// setName(id);\n \t}",
"public void changePhoto() {\r\n\t\tisPictFetche = false;\r\n\t\tlaPhoto = new Photo();\r\n\t\tlaPhotoCandidate = new Photo();\r\n\t}",
"protected void setPic() {\n }",
"public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}",
"public void setImage(Image img) {\r\n this.img = img;\r\n }",
"@Override\r\n\tprotected void updateImage(final IScope scope) {\n\t}",
"void setImageFromSpec(ImageProvider spec);",
"private void change_im_tool4(int boo){\r\n if(boo == 0){ //IMAGEN SI EL USUARIO ESTA INHABILITADO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img07.png\")));\r\n }else{ //IMAGEN PARA HABILITAR AL USUARIO\r\n im_tool4.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }\r\n }",
"public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }",
"public final void prepareForSaving() {\r\n\t\tbi_image.pack();\r\n\t}",
"private void setImageDynamic(){\n questionsClass.setQuestions(currentQuestionIndex);\n String movieName = questionsClass.getPhotoName();\n ImageView ReferenceToMovieImage = findViewById(R.id.Movie);\n int imageResource = getResources().getIdentifier(movieName, null, getPackageName());\n Drawable img = getResources().getDrawable(imageResource);\n ReferenceToMovieImage.setImageDrawable(img);\n }",
"public final void restore() {\r\n\t\tbi_image.restore();\r\n\t}",
"public void reload() {\n mHandle = new Texture(mBitmap, mMinMode, mMagMode, mWrapS, mWrapT).getHandle();\n }",
"public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }",
"protected void onReloadImage() {\n String url = DataProvider.SCREEN + DataProvider.SCREEN_INDEX + mScreenId + \"&time=\" + System.currentTimeMillis();\n image.setUrl(url); //just to avoid caching\n loadTree();\n }",
"public void setImageName(String name) {\n imageToInsert = name;\n}",
"void setImage(BufferedImage i);",
"private void setImage(Bitmap image) {\n }",
"public void setImage(String tmp) {\n this.image = tmp;\n }",
"public void defaultImageDisplay(){\n ClassLoader cl = this.getClass().getClassLoader();\n ImageIcon icon = new ImageIcon(cl.getResource(\"pictures/NewInventory/defaultPic.png\"));\n // this.finalImage = icon.getImage();\n Image img = icon.getImage().getScaledInstance(entryImage.getWidth(), entryImage.getHeight(), Image.SCALE_SMOOTH);\n entryImage.setIcon(new ImageIcon(img));\n }",
"public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}",
"public void changeImage(String fileName) {\n\n\t\timageList.add(image);\n\n\t\ttry {\n\t\t\timage = new Image(new FileInputStream(fileName), 0, 50, true, false);\n\t\t\tscreen.updateBox();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tnew ErrorBox(\"Invalid Image\", \"Please Choose a Valid Image\");\n\t\t}\n\n\t}",
"void setImage(PImage img) {\n _img = img;\n }",
"private void reanderImage(ImageData data) {\n \n }",
"@SuppressWarnings(\"unused\")\n\tprotected void updateLabel (String name) {\n Image image = new ImageIcon(\"Resource/\" + name + \".png\").getImage().getScaledInstance(200, 200, Image.SCALE_SMOOTH);\n ImageIcon icon = new ImageIcon(image);\n picture.setIcon(icon);\n if (icon != null) {\n picture.setText(null);\n } else {\n picture.setText(\"Image not found\");\n }\n }",
"public void setSelectedImg(YuiImage selectedImg) {\r\n\t\tthis.selectedImg = selectedImg;\r\n\t}",
"public void update(ImagePlus imp) {\n if (this.isVisible()) {\n if (imp == null) {\n imageMetadataModel_.setMetadata(null);\n summaryCommentsTextArea.setText(null);\n } else {\n AcquisitionVirtualStack stack = getAcquisitionStack(imp);\n if (stack != null) {\n int slice = imp.getCurrentSlice();\n TaggedImage taggedImg = stack.getTaggedImage(slice);\n if (taggedImg == null) {\n imageMetadataModel_.setMetadata(null);\n } else {\n Map<String,String> md = stack.getTaggedImage(slice).tags;\n if (!showUnchangingKeys_)\n md = selectChangingTags(md);\n imageMetadataModel_.setMetadata(md);\n }\n if (imp instanceof CompositeImage) {\n CompositeImage cimp = (CompositeImage) imp;\n displayModeCombo.setSelectedIndex(cimp.getMode()-1);\n }\n } else {\n imageMetadataModel_.setMetadata(null);\n }\n \n }\n }\n }",
"public void setImages() {\n\n imgBlock.removeAll();\n imgBlock.revalidate();\n imgBlock.repaint();\n labels = new JLabel[imgs.length];\n for (int i = 0; i < imgs.length; i++) {\n\n labels[i] = new JLabel(new ImageIcon(Toolkit.getDefaultToolkit().createImage(imgs[i].getSource())));\n imgBlock.add(labels[i]);\n\n }\n\n SwingUtilities.updateComponentTreeUI(jf); // refresh\n initialized = true;\n\n }",
"public void setImage(BufferedImage image) {\n\t\tdisplayImage = image;\n\t\tinitBbox();\n\t}",
"void ProcessImage() {\n DoDescribe();\n }",
"public void setMainImage(int resource) {\n this.imgMain.setImageResource(resource);\n }",
"public void setImage(String image){\n this.image = image;\n }",
"public void changeAction()\r\n {\r\n bufferedImage = imageCopy[0];\r\n edited = imageCopy[1];\r\n cropedPart = imageCopy[2];\r\n bufferedImage = imageCopy[3];\r\n\r\n isBlured = statesCopy[0];\r\n isReadyToSave = statesCopy[1];\r\n isChanged = statesCopy[2];\r\n isInverted = statesCopy[3];\r\n isRectangularCrop = statesCopy[4];\r\n isCircularCrop = statesCopy[5];\r\n isImageLoaded = statesCopy[6];\r\n }",
"public void setHotImage (Image image) {\r\n\tcheckWidget();\r\n\tif (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);\r\n\tif ((style & SWT.SEPARATOR) != 0) return;\r\n\r\n\t/* TEMPORARY CODE: remove when when FLAT tool bars are implemented */\r\n\tif ((parent.style & SWT.FLAT) != 0) setImage (image);\r\n\r\n\thotImage = image;\r\n}",
"private void setImage() {\r\n\t\ttry{\r\n\r\n\t\t\twinMessage = ImageIO.read(new File(\"obstacles/win.gif\"));\r\n\t\t\tcoin = ImageIO.read(new File(\"obstacles/Coin.gif\"));\r\n\t\t\toverMessage = ImageIO.read(new File(\"obstacles/over.gif\"));\r\n\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.err.println(\"Image file not found\");\r\n\t\t}\r\n\r\n\t}",
"void setImage(Layer layer, Image image);",
"public void setImage(String _image)\n {\n this.image = _image;\n }",
"private void enhanceImage(){\n }",
"@Test\n\tpublic void testUpdateImage() {\n\n\t\tip = new ImagePlus();\n\t\t//assertNull(ip.img);\n\t\tip.updateImage();\n\t\t//assertNull(ip.img);\n\n\t\tip = new ImagePlus(DataConstants.DATA_DIR + \"head8bit.tif\");\n\t\t//assertNull(ip.img);\n\t\tip.updateImage();\n\t\t//assertNotNull(ip.img);\n\t}",
"public void setImage(Image image) {\n this.image = image;\n }",
"public void setImage(Context ctx, String image)\n {\n }",
"public void setImage(ImageIcon img_bouton, ImageIcon img_bouton_ok)\n {\n this.remove(label_img_bouton);\n this.remove(label_img_bouton_ok);\n \n this.img_bouton = img_bouton;\n this.img_bouton_ok = img_bouton_ok;\n this.label_img_bouton = new JLabel(img_bouton);\n this.label_img_bouton_ok = new JLabel(img_bouton_ok);\n \n this.add(label_img_bouton);\n this.revalidate();\n repaint();\n }",
"void setImage(Bitmap bitmap);",
"public void on_edit(ActionEvent actionEvent) {\r\n\t\tint index = getSelectedIndex();\r\n\t\tif ( 0 > index)\r\n\t\t\treturn;\r\n\r\n\t\tThumbnailItem thumbnailItem = ( ThumbnailItem)_defaultComboBoxModel.getElementAt( index);\r\n\r\n\t\tString original_filename = thumbnailItem._file.getName();\r\n\r\n\t\tEditImageFilenameDlg editImageFilenameDlg = new EditImageFilenameDlg( MainFrame.get_instance(),\r\n\t\t\tResourceManager.get( \"edit.image.filename.dialog.title\"),\r\n\t\t\ttrue, original_filename, _imagePropertyManager);\r\n\t\tif ( !editImageFilenameDlg.do_modal( _parent))\r\n\t\t\treturn;\r\n\r\n\t\tString new_filename = editImageFilenameDlg._new_filename;\r\n\r\n\t\tif ( !rename( thumbnailItem, new_filename))\r\n\t\t\treturn;\r\n\r\n\t\t_thumbnailListCallback.update();\r\n\r\n\t\tFile file = new File( _imageDirectory, original_filename);\r\n\t\tImage image = ( Image)AnimatorImageManager.get_instance().get( file.getAbsolutePath());\r\n\t\tif ( null != image) {\r\n\t\t\tAnimatorImageManager.get_instance().remove( file.getAbsolutePath());\r\n\t\t\tfile = new File( _imageDirectory, new_filename);\r\n\t\t\tAnimatorImageManager.get_instance().put( file.getAbsolutePath(), image);\r\n\t\t}\r\n\r\n\t\tObjectManager.get_instance().update_image( original_filename, new_filename);\r\n\r\n\t\tAnimatorView.get_instance().repaint();\r\n\r\n\t\tmodified();\r\n\t}",
"public void testGetSetImageImage() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE\n\t\ttestNormal.setImage(testImage);\n\t\tassertEquals(testNormal.getImage(), testImage);\n\t}",
"private void drawAbstract(int resourceId){\n pokemonImage.setImageResource(resourceId);\n }",
"public void populateImages() {\n\t\t// Check if the recipe has any images saved on the sd card and get\n\t\t// the bitmap for the imagebutton\n\n\t\tArrayList<Image> images = ImageController.getAllRecipeImages(\n\t\t\t\tcurrentRecipe.getRecipeId(), currentRecipe.location);\n\n\t\tLog.w(\"*****\", \"outside\");\n\t\tLog.w(\"*****\", String.valueOf(currentRecipe.getRecipeId()));\n\t\tLog.w(\"*****\", String.valueOf(currentRecipe.location));\n\t\tImageButton pictureButton = (ImageButton) findViewById(R.id.ibRecipe);\n\n\t\t// Set the image of the imagebutton to the first image in the folder\n\t\tif (images.size() > 0) {\n\t\t\tpictureButton.setImageBitmap(images.get(0).getBitmap());\n\t\t}\n\n\t}",
"public void setImage(int imageId) {\n this.imageId=imageId;\n\t}",
"public void updateImage(GameObject.Direction direction) {\n switch (direction) {\n case NORTH:\n currentImage = north;\n break;\n\n case SOUTH:\n currentImage = south;\n break;\n\n case WEST:\n currentImage = west;\n break;\n\n case EAST:\n currentImage = east;\n break;\n }\n }",
"private void actionComboboxChangedImage ()\r\n\t{\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tif (isDisplaySamples) { helperDisplayDetectedSamples(); }\r\n\t\t\telse { helperDisplayInputImage(); }\r\n\r\n\t\t\thelperDisplaySamplesCombobox();\r\n\t\t\thelperDisplayResults();\r\n\t\t\thelperDisplayChart(true);\r\n\t\t}\r\n\t}",
"public void removeImage() {\n setFileImage(null);\n getSelected().setUrlImage(null);\n RequestContext.getCurrentInstance().update(\"image\");\n }",
"void setImageFromFile(File imageFile);",
"private void updateImage(File file) throws IOException {\n\t\t\tfileLabel.setText(\"\");\n\n\t\t\ttry {\n\t\t\t\tMyImageD tmpImage = null;\n\t\t\t\tString fileName = file.getName();\n\n\t\t\t\t// Update preview for opening ggb files\n\t\t\t\tif (fileChooser\n\t\t\t\t\t\t.getMode() == GeoGebraFileChooser.MODE_GEOGEBRA) {\n\n\t\t\t\t\tif (fileName.endsWith(\".ggb\")) {\n\t\t\t\t\t\ttmpImage = new MyImageD(MyXMLioD.getPreviewImage(file)); // load\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// preview\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// zip\n\n\t\t\t\t\t\tStringBuilder fileInfo = new StringBuilder();\n\n\t\t\t\t\t\tif (fileName.length() > 20) {\n\t\t\t\t\t\t\tfileInfo.append(fileName.substring(0, 20));\n\t\t\t\t\t\t\tfileInfo.append(\"..\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfileInfo.append(fileName);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfileInfo.append(\" : \");\n\t\t\t\t\t\tfileInfo.append(file.length() / 1024);\n\t\t\t\t\t\tfileInfo.append(\" kB\");\n\t\t\t\t\t\tfileLabel.setText(fileInfo.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Update preview for saving a ggb file\n\t\t\t\telse if (fileChooser\n\t\t\t\t\t\t.getMode() == GeoGebraFileChooser.MODE_GEOGEBRA_SAVE) {\n\t\t\t\t\ttmpImage = (MyImageD)\n\t\t\t\t\t\t\tapp.getExportImage(MyXMLio.THUMBNAIL_PIXELS_X,\n\t\t\t\t\t\t\t\t\tMyXMLio.THUMBNAIL_PIXELS_Y);\n\t\t\t\t\t// TODO: show file size info?\n\t\t\t\t\tfileLabel.setText(null);\n\t\t\t\t}\n\n\t\t\t\t// Update preview for images\n\t\t\t\telse {\n\t\t\t\t\t// fails for a few JPEGs so turn off preview for large files\n\t\t\t\t\tif (file.length() < 1024 * maxImageSize) {\n\n\t\t\t\t\t\ttmpImage = MyImageD.fromFile(file, fileName);\n\t\t\t\t\t\tStringBuilder imgInfo = new StringBuilder();\n\n\t\t\t\t\t\tif (fileName.length() > 20) {\n\t\t\t\t\t\t\timgInfo.append(fileName.substring(0, 20));\n\t\t\t\t\t\t\timgInfo.append(\"..\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timgInfo.append(fileName);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (tmpImage != null) {\n\t\t\t\t\t\t\timgInfo.append(\" : \");\n\t\t\t\t\t\t\timgInfo.append(tmpImage.getWidth());\n\t\t\t\t\t\t\timgInfo.append(\" x \");\n\t\t\t\t\t\t\timgInfo.append(tmpImage.getHeight());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfileLabel.setText(imgInfo.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// resize tmp image if necessary\n\t\t\t\tif (tmpImage != null) {\n\n\t\t\t\t\tint oldWidth = tmpImage.getWidth();\n\t\t\t\t\tint oldHeight = tmpImage.getHeight();\n\n\t\t\t\t\tint newWidth;\n\t\t\t\t\tint newHeight;\n\n\t\t\t\t\tif (oldWidth > ImagePanel.SIZE\n\t\t\t\t\t\t\t|| oldHeight > ImagePanel.SIZE) {\n\t\t\t\t\t\tif (oldWidth > oldHeight) {\n\t\t\t\t\t\t\tnewWidth = ImagePanel.SIZE;\n\t\t\t\t\t\t\tnewHeight = (ImagePanel.SIZE * oldHeight)\n\t\t\t\t\t\t\t\t\t/ oldWidth;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewWidth = (ImagePanel.SIZE * oldWidth) / oldHeight;\n\t\t\t\t\t\t\tnewHeight = ImagePanel.SIZE;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Create a new image for the scaled preview image\n\t\t\t\t\t\tsetImg(new MyImageD(new BufferedImage(newWidth,\n\t\t\t\t\t\t\t\tnewHeight, BufferedImage.TYPE_INT_RGB)));\n\n\t\t\t\t\t\tGGraphics2DD graphics2D = (GGraphics2DD) getImg()\n\t\t\t\t\t\t\t\t.createGraphics();\n\t\t\t\t\t\tif (tmpImage.isSVG()) {\n\t\t\t\t\t\t\tgraphics2D.setColor(GColor.WHITE);\n\t\t\t\t\t\t\tgraphics2D.fillRect(0, 0, newWidth, newHeight);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgraphics2D.drawImageScaled(tmpImage, newWidth, newHeight);\n\t\t\t\t\t\tgraphics2D.dispose();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetImg(tmpImage);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsetImg(null);\n\t\t\t\t}\n\n\t\t\t\trepaint();\n\t\t\t} catch (IllegalArgumentException iae) {\n\t\t\t\t// This is thrown if you select .ico files\n\t\t\t\tsetImg(null);\n\t\t\t} catch (Throwable t) {\n\t\t\t\tt.printStackTrace();\n\t\t\t\tLog.debug(t.getClass() + \"\");\n\t\t\t\tsetImg(null);\n\t\t\t}\n\t\t}",
"@FXML\r\n void reset(ActionEvent event) {\r\n \tclick=0;\r\n \twallRect.setFill(javafx.scene.paint.Color.DODGERBLUE);\r\n \tspaceRect.setFill(javafx.scene.paint.Color.DODGERBLUE);\r\n \tstateLabel.setText(\"Select Image\");\r\n \tsaveButton.setDisable(true);\r\n \tsolveButton.setDisable(true);\r\n \ttry {\r\n\t\t\ttim = new Image(file.toURI().toURL().toString());\r\n\t\t\tiv.setImage(tim);\r\n \t}catch(Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n }",
"public void setImage(String image) {\n this.image = image;\n }",
"public void setImage(String image) {\n this.image = image;\n }",
"public void setImage(String image) {\n\t\t this.image = image;\n\t}",
"public void updateImageForIndex(int index) {\n\t\t//Nothing to do\n\t}",
"abstract public void setImageResourcesDir(String path);",
"private void setImage() throws FileNotFoundException {\n\t\timage = new Image(new FileInputStream(path));\n\t}",
"public void setImage( String s )\r\n {\r\n java.net.URL url = getClass().getResource( s );\r\n if ( url == null )\r\n {\r\n url = getClass().getResource( \"/\" + s );\r\n if ( url == null )\r\n {\r\n try\r\n { // for applications\r\n content = ImageIO.read( new File( s ) );\r\n }\r\n catch ( IOException ioe )\r\n {\r\n ioe.printStackTrace();\r\n }\r\n }\r\n else\r\n {\r\n content = getToolkit().getImage( url );\r\n }\r\n }\r\n else\r\n {\r\n content = getToolkit().getImage( url );\r\n }\r\n flush();\r\n\r\n }",
"private void updateValue() {\n int type = -1;\n String name = null;\n Icon icon = null;\n if (rbProjectImages.isSelected()) {\n if (selectedFile != null) {\n name = FileUtil.getRelativePath(rootFolder, selectedFile);\n try {\n try {\n Image image = ImageIO.read(new File(selectedFile.getPath()));\n if (image != null) {\n icon = new ImageIcon(image);\n type = IconEditor.TYPE_FILE;\n } // no NbImageIcon will be created for invalid file\n } catch (IllegalArgumentException iaex) { // Issue 178906\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.INFO, null, iaex);\n icon = new ImageIcon(name);\n type = IconEditor.TYPE_FILE;\n }\n } catch (IOException ex) {\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.WARNING, null, ex);\n }\n }\n } else if (rbExternalImages.isSelected()) {\n if (selectedURL != null && !\"\".equals(selectedURL)) { // NOI18N\n type = IconEditor.TYPE_URL;\n name = selectedURL;\n try {\n try {\n Image image = ImageIO.read(new URL(selectedURL));\n if (image != null) {\n icon = new ImageIcon(image);\n type = IconEditor.TYPE_URL;\n }\n } catch (IllegalArgumentException iaex) { // Issue 178906\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.INFO, null, iaex);\n icon = new ImageIcon(new URL(selectedURL));\n }\n // for URL-based icon create NbImageIcon even if no icon can be loaded from the URL\n } catch (IOException ex) {\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.WARNING, null, ex);\n }\n }\n }\n\n ignoreSetValue = true;\n try {\n propertyEditor.setAsText(name);\n } finally {\n ignoreSetValue = false;\n }\n\n previewLabel.setIcon(icon);\n\n }",
"private void setName(String imageUrl, String imageName, String roleName){\r\n Log.d(TAG, \"setName: setting name to widgets.\");\r\n TextView n = findViewById(R.id.textView);\r\n n.setText(imageName);\r\n TextView r = findViewById(R.id.textView1);\r\n r.setText(roleName);\r\n\r\n ImageView imageView = findViewById(R.id.profile_image);\r\n Glide.with(this)\r\n .asBitmap()\r\n .load(imageUrl)\r\n .into(imageView);\r\n }",
"protected abstract void setupImages(Context context);",
"@Override\n public void setPhotoDetails() {\n mView.loadPhoto();\n mView.setPhotoDescription();\n }",
"public void setImg(String img) {\n this.img = img;\n }",
"public void loadImage() {\n\t\ttry {\n\t\t\tcurrImage = ImageIO.read(new File(INPUT_DIR,fileNames.get(fileCounter)));\n\t\t\tcurrImageOrigDim = new Dimension(currImage.getWidth(), currImage.getHeight());\n\t\t\tlabel4.setText(\"Processing: \" + fileNames.get(fileCounter));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Resize to Frame\n\t\tdouble imgHt = currImage.getHeight();\n\t\tdouble imgWt = currImage.getWidth();\n\t\tdouble wRatio = FRAME_SIZE/imgWt;\n\t\tdouble hRatio = FRAME_SIZE/imgHt;\n\t\taspectR = Math.min(wRatio,hRatio);\n\t\tcurrImage = getScaledInstance(currImage, (int)(aspectR*imgWt), (int)(aspectR*imgHt));\n\t\tcurrImageBounds = new Rectangle(0, 0, currImage.getWidth(), currImage.getHeight());\n\t\trepaint();\n\t}",
"@Override\r\n\tpublic void updateResourceInformation() {\n\t}",
"public static void\nsetImageOverride(SoState state,\n boolean override)\n//\n////////////////////////////////////////////////////////////////////////\n{\n SoTextureOverrideElement elt;\n elt = (SoTextureOverrideElement )getElement(state, classStackIndexMap.get(SoTextureOverrideElement.class));\n if (override)\n elt.flags |= Flags.TEXTURE_IMAGE.getValue();\n else\n elt.flags &= ~Flags.TEXTURE_IMAGE.getValue();\n}",
"@Override\n\tpublic void updateResourceInformation() {\n\t}",
"private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }",
"private void actionViewOriginalImage ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint imagIndex = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\t//---- Get path to the original image\r\n\t\t\t\tString filePath = DataController.getTable().getElement(imagIndex).getDataFile().getFilePath();\r\n\r\n\t\t\t\t//---- Load the image into the image viewer\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().displayPolygonStop();\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().loadImage(filePath);\r\n\r\n\t\t\t\t//---- Change button icon\r\n\t\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_ORIGINAL_IMAGE);\r\n\r\n\t\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewImage().setIcon(iconButton);\r\n\t\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewImage().setActionCommand(FormMainHandlerCommands.AC_VIEW_CELL);\r\n\t\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewImage().setToolTipText(\"View cells\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tcatch (ExceptionMessage exception)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(exception);\r\n\t\t}\r\n\t}",
"public final void replaceImage(final ImageProcessor newImage) {\r\n this.image = newImage;\r\n }",
"@Override\r\n public void setImageResource(int resourceId)\r\n {\r\n new LoadResourceTask().execute(resourceId);\r\n }"
] | [
"0.64149404",
"0.64126045",
"0.6378811",
"0.6348571",
"0.62911063",
"0.6286668",
"0.6218662",
"0.6175145",
"0.6068584",
"0.60369205",
"0.602627",
"0.5986434",
"0.5982809",
"0.5964477",
"0.59493786",
"0.59469724",
"0.5934769",
"0.5930884",
"0.59281254",
"0.59217507",
"0.59192747",
"0.5900288",
"0.5889873",
"0.58765453",
"0.5858984",
"0.5846217",
"0.58327115",
"0.5831757",
"0.58262837",
"0.58227605",
"0.58221024",
"0.5804726",
"0.5797461",
"0.5794644",
"0.57829714",
"0.5766971",
"0.5762557",
"0.5757885",
"0.5734395",
"0.5712",
"0.57115245",
"0.5697265",
"0.566305",
"0.56241333",
"0.5623843",
"0.5619519",
"0.56144214",
"0.5612691",
"0.5612469",
"0.5607622",
"0.5603438",
"0.56015074",
"0.5599919",
"0.5598396",
"0.55971956",
"0.55927855",
"0.55924183",
"0.55872387",
"0.5568942",
"0.5561981",
"0.5544825",
"0.554113",
"0.5534521",
"0.553279",
"0.5523116",
"0.55112994",
"0.55028504",
"0.5501127",
"0.54831934",
"0.5479297",
"0.54764384",
"0.5473869",
"0.54713666",
"0.545481",
"0.5450596",
"0.54503936",
"0.5444737",
"0.5444661",
"0.5441473",
"0.5438613",
"0.5437998",
"0.5437998",
"0.54374784",
"0.5430306",
"0.5421103",
"0.5417988",
"0.54144514",
"0.5412031",
"0.54052716",
"0.540376",
"0.53965425",
"0.53880745",
"0.53863364",
"0.53815067",
"0.53762424",
"0.5373858",
"0.5369128",
"0.5364508",
"0.5363189",
"0.5360937"
] | 0.6260129 | 6 |
Retrieve number of items stored in adaptor | @Override
public int getItemCount() {
return structureList.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getItemsCount();",
"int getItemsCount();",
"int getNumItems();",
"public int getItemCount() {\n checkWidget();\n return OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n }",
"public int size() {\n return numItems;\n }",
"public int getItemsCount() {\n return items_.size();\n }",
"public int getItemsCount() {\n return items_.size();\n }",
"public int size(){\n return numItems;\n }",
"public int size() {\n \treturn numItems;\n }",
"public int getCount();",
"public int getCount();",
"public int getCount();",
"public int size()\r\n {\r\n return nItems;\r\n }",
"public Integer getCount() {\n return count;\n }",
"public int size() {\n return nItems;\n }",
"public int getItemsCount() {\n return items_.size();\n }",
"public int getCount() {\n \t Log.i(TAG, \"getCount() called\");\n return provide.getItemCache().getCount();\n }",
"public int getCount() {\n return app.getItems().length;\n }",
"public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"public Integer getCount() {\n return count;\n }",
"int getItemCount();",
"int getItemCount();",
"int getItemCount();",
"@Override\r\n\tpublic int size() {\r\n\t\treturn numItems;\r\n\t}",
"int getQueryItemsCount();",
"public Integer getCount() {\n return this.count;\n }",
"public synchronized int getCount()\n\t{\n\t\treturn count;\n\t}",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public long getItemCount() {\n\t\treturn this.getSize(data);\n\t}",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"int getCount();",
"int getCount();",
"int getCount();",
"int getCount();",
"int getCount();",
"int getCount();",
"@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}",
"public long getCount() {\r\n return count;\r\n }",
"public int getItemsCount() {\n if (itemsBuilder_ == null) {\n return items_.size();\n } else {\n return itemsBuilder_.getCount();\n }\n }",
"public abstract int getItemCount();",
"@Override\n\tpublic Integer getItemCount() {\n\t\t\n\t\tInteger countRows = 0;\n\t\t\n\t\t/*\n\t\t * Count of items will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_COUNT));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(resultSet.next()){\n\t\t\t\tcountRows = resultSet.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn countRows;\n\t}",
"@Override\n\tpublic Integer getItemCount() {\n\t\t\n\t\tInteger countRows = 0;\n\t\t\n\t\t/*\n\t\t * Count of items will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_COUNT));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(resultSet.next()){\n\t\t\t\tcountRows = resultSet.getInt(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn countRows;\n\t}",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public long getCount() {\n return count;\n }",
"public long getCount() {\n return count;\n }",
"public int getNumberOfItems() {\r\n return decorItems.size();\r\n }",
"public int getCount() {\n\t\t\treturn this.count;\n\t\t}",
"public int getCount() {\n\t\treturn this.count;\n\t}",
"public int getCount() {\n\t\treturn this.count;\n\t}",
"public Long getCount() {\n return count;\n }",
"public int getItemCount();",
"public int length() {\n return numberOfItems;\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"public long getCount()\n\t{\n\t\treturn count;\n\t}",
"public int getCount() {\n\t\treturn data.size();\r\n\t}",
"public int getCount() {\r\n\t\treturn count;\r\n\t}",
"public int getCount() {\r\n\t\treturn count;\r\n\t}",
"public int getCount() {\n return count_;\n }",
"public Integer getItemcount() {\n return itemcount;\n }",
"@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}",
"public abstract int getCount();",
"public int getCount() {\n return _data.size();\n }",
"public static int getCount() {\n\t\treturn count;\n\t}",
"public Integer getInterestedInItemsCount();",
"public int getCount() {\n if(data.size()<=0) return 1;\n return data.size();\n }",
"public int getCount() {\n return count_;\n }",
"public Long getCount() {\r\n return count;\r\n }",
"public int getCount() {\n\t\t\treturn count;\n\t\t}",
"public int getCount() {\n\t\treturn count;\r\n\t}",
"public int getCount() {\n\t\t\treturn data.size();\n\t\t}",
"public static int getCount() {\n return count;\n }",
"public int getCount() {\n return this.count;\n }",
"@Override\n public int getSize() {\n return numItems;\n }",
"public Long getCount() {\n return this.Count;\n }",
"public int getCount()\r\n {\r\n return counts.peekFirst();\r\n }",
"public int getCount()\n\t{\n\t\treturn count;\n\t}",
"public int getItemCount() {\n if (itemBuilder_ == null) {\n return item_.size();\n } else {\n return itemBuilder_.getCount();\n }\n }",
"public int getCount() {\n\t\t\treturn list.size();\r\n\t\t}",
"public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}",
"public int size() {\n return items.size();\n }",
"@Override\n public int getSize() {\n return this.numItems;\n }",
"public int getCount() {\n return mCount;\n }",
"public int getCount() {\n return datalist.size();\n }",
"public int size(){ return itemCount;}",
"public int getCount() {\n return myCount;\n }",
"public long getCount() {\n return count.get();\n }",
"public int size() {\r\n return items.size();\r\n }",
"public int size() {\r\n return items.size();\r\n }",
"int getListCount();",
"public int getCount() {\n return list.size();\n }",
"@Override\n\tpublic int size() {\n\t\treturn numItems;// numItems represents size\n\t}",
"@Override\n public int getItemCount() {\n if (addedHeader()) {\n return getData() == null ? 0 : (getData().size() + 1);\n } else {\n return getData() == null ? 0 : getData().size();\n }\n }",
"public static int getCount() {\n return count;\n }"
] | [
"0.8364061",
"0.8364061",
"0.8085726",
"0.78283757",
"0.7779622",
"0.7742986",
"0.7742986",
"0.7717559",
"0.7673044",
"0.7665677",
"0.7665677",
"0.7665677",
"0.7663535",
"0.7658514",
"0.7655302",
"0.7653197",
"0.76447946",
"0.7631069",
"0.7628006",
"0.76025707",
"0.76025707",
"0.76025707",
"0.76025707",
"0.76025707",
"0.76025707",
"0.759482",
"0.759482",
"0.759482",
"0.75719285",
"0.7551923",
"0.75345284",
"0.7529597",
"0.75195533",
"0.75195533",
"0.75195533",
"0.7510245",
"0.7500859",
"0.7500859",
"0.7498217",
"0.7498217",
"0.7498217",
"0.7498217",
"0.7498217",
"0.7498217",
"0.7483769",
"0.7466402",
"0.7460041",
"0.74585855",
"0.7455598",
"0.7455598",
"0.7455344",
"0.7453608",
"0.7453608",
"0.7451797",
"0.74475145",
"0.7439644",
"0.7439644",
"0.7429016",
"0.74274945",
"0.74268746",
"0.7421162",
"0.7419646",
"0.7414272",
"0.741331",
"0.741331",
"0.74039716",
"0.73855615",
"0.7380528",
"0.73796856",
"0.73723346",
"0.7371508",
"0.73576987",
"0.7350231",
"0.73446006",
"0.7344455",
"0.73386705",
"0.73370486",
"0.7327792",
"0.73248273",
"0.73209524",
"0.7320915",
"0.7316753",
"0.7313597",
"0.7311897",
"0.7303877",
"0.73023635",
"0.7302203",
"0.72996676",
"0.72982067",
"0.72880626",
"0.7285639",
"0.72842807",
"0.728065",
"0.7278631",
"0.7273348",
"0.7273348",
"0.726439",
"0.72605264",
"0.72484744",
"0.72481287",
"0.7236606"
] | 0.0 | -1 |
create all keys' guitar strings. | public static void main(String[] args) {
for (int i = 0; i < 37; i += 1) {
double freq = freqOfKey(i);
keyStrings[i] = new synthesizer.GuitarString(freq);
}
while (true) {
/* check if the user has typed a key; if so, process it */
if (StdDraw.hasNextKeyTyped()) {
char key = StdDraw.nextKeyTyped();
int index = KEYBOARD.indexOf(key);
keyStrings[index].pluck();
}
/* compute the superposition of samples */
double sample = 0;
for (GuitarString gs : keyStrings) {
sample += gs.sample();
}
/* play the sample on standard audio */
StdAudio.play(sample);
/* advance the simulation of each guitar string by one step */
for (GuitarString gs : keyStrings) {
gs.tic();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String playGuitar(){\n\t\t String notes = \"[A(0.25), G(2), E(0.5), C(1), C(2), D(0.25), E(2), C(2), B(0.25), C(4), C(1), G(0.25),A(1), C(2), D(1),C(4)]\";\n\t\treturn notes;\n\t}",
"public Guitar(){\n\t\tnumStrings = 6;\n\t\tguitarLength = 28.2;\n\t\tguitarManufacturer = \"Gibson\";\n\t\tguitarColor = Color.red;\n\t}",
"public void generateAllKeys(){\n\t\tboolean isWhite;\n//\t\tint pitchOffset = 21;\n\t\tint pitchOffset = 1;\n\t\tint keyWidth = this.width / this.numKeys;\n\t\t\n\t\tfor(int i = 0; i<88; i++){\n\t\t\tswitch (i%12){\n\t\t\tcase 1:\n\t\t\tcase 3:\n\t\t\tcase 6:\n\t\t\tcase 8:\n\t\t\tcase 10:\tisWhite = false;\n\t\t\t\t\t\tbreak;\n\t\t\tdefault:\tisWhite = true;\n\t\t\t}\n\t\t\t\n\t\t\tif(isWhite)\n\t\t\t\tallKeys[i] = new vafusion.gui.KeyComponent(0, 0, this.height, keyWidth, i+ pitchOffset, isWhite);\n\t\t\telse\n\t\t\t\tallKeys[i] = new vafusion.gui.KeyComponent(0, 0, this.height / 2, (keyWidth * 2)/3, i+ pitchOffset, isWhite);\n\t\t}\n\t}",
"void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }",
"public GuitarLite() {\n // double[] frequencies = new double[totalNotes];\n double A2 = 110.0;\n // frequencies[0] = A2;\n for (int i = 0; i < totalNotes; i++){\n double frequency = A2 * Math.pow(2, i/12.0);\n // frequencies[i] = frequency;\n strings[i] = new GuitarString(frequency);\n }\n }",
"public String toString(){\n\n\t\tString str = \"(numStrings=\"+ getNumStrings() +\n\t\t\t\t\t\",\\nLength=\"+ getGuitarLength() +\n\t\t\t\t\t\",\\nmanufacturer=\"+ getGuitarManufacturer() +\n\t\t\t\t\t\",\\ncolor=\"+ getGuitarColorString() + \")\";\n\t\treturn str;\n\t}",
"public String makeKey ()\n {\n String stop = \"*\"; // default\n\n if (stopFormat.length() > 0)\n stop = String.valueOf(stopFormat.charAt(0));\n\n key = \"<BR>\";\n\n if (code.equals(\"Standard\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><B><FONT COLOR=red>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Drosophila Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Vertebrate Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Yeast Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Mold Protozoan Coelenterate Mycoplasma Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Invertebrate Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Ciliate Dasycladacean Hexamita Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Echinoderm Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Euplotid Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n }\n\n else if (code.equals(\"Bacterial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>I L M V</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Alternative Yeast Nuclear\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M S</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Ascidian Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else if (code.equals(\"Flatworm Mitochondrial\"))\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n else\n {\n key += (\"<HR><B>Key:</B><BR>Start: <TT><FONT COLOR=red><B>M</B></FONT></TT>\" +\n \"<BR>Stop: <TT><FONT COLOR=blue><B>\" + stop + \"</B></FONT></TT>\");\n\n }\n\n if (unknownStatus == 1)\n key += (\"<BR>Unknown codon: <TT><FONT COLOR=#ff6633><B>u</B></FONT><BR></TT>\");\n\n\n return (key + \"<HR>\");\n\n}",
"private static void createPlayfulSet() {\n\n\t\trandomKeys = new ArrayList<>();\n\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT1);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT2);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT3);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT4);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT5);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT6);\n\t\trandomKeys.add(GuessRevealerConstants.RANDOM_TEXT7);\n\t\trandomKeys.add(GuessRevealerConstants.END);\n\n\t\trandomCount = randomKeys.size();\n\n\t}",
"GuitarString(double[] init)\n\t{\n\t\trb = new RingBuffer(init.length);\n\t\ttotalTick = 0;\n\t\t\n\t\tfor(int i = 0; i < init.length; i++)\n\t\t\trb.enqueue(init[i]);\n\t\tSystem.out.println(\"doing\");\n\t}",
"GuitarString(double frequency)\n\t{\n\t\tint qLen = (int) Math.round( SAMPLE_RATE / frequency );\n\t\trb = new RingBuffer(qLen);\n\t\ttotalTick = 0;\n\t\t\n\t\tfor(int i = 0; i < qLen; i++)\n\t\t\trb.enqueue(0);\n\t\t\t\n\t}",
"public interface PrefsKey {\n\n String Ssid = \"Ssid\";\n String HotKeys = \"HotKeys\";\n String HistoryKeys = \"HistoryKeys\";\n String HistoryCooking = \"HistoryCooking\";\n\n String Guided = \"Guided\";\n}",
"private void appendKeyGeneratorSettings() {\n Label keyGeneratorSettings = new Label(Localization.lang(\"Key generator settings\"));\n keyGeneratorSettings.getStyleClass().add(\"sectionHeader\");\n builder.add(keyGeneratorSettings, 1, 10);\n builder.add(autoGenerateOnImport, 1, 11);\n builder.add(letterStartA, 2, 11);\n builder.add(warnBeforeOverwriting, 1, 12);\n builder.add(letterStartB, 2, 12);\n builder.add(dontOverwrite, 1, 13);\n builder.add(alwaysAddLetter, 2, 13);\n builder.add(generateOnSave, 1, 14);\n\n builder.add((new Label(Localization.lang(\"Replace (regular expression)\") + ':')), 1, 15);\n builder.add(new Label(Localization.lang(\"by\") + ':'), 2, 15);\n\n builder.add(keyPatternRegex, 1, 16);\n builder.add(keyPatternReplacement, 2, 16);\n\n dontOverwrite.setOnAction(e ->\n // Warning before overwriting is only relevant if overwriting can happen:\n warnBeforeOverwriting.setDisable(dontOverwrite.isSelected()));\n }",
"@Override\r\n\tpublic String toString() {\r\n\r\n\t\tStringBuilder b = new StringBuilder();\r\n\t\tint count = 0;\r\n\t\tfor (PGPSecretKeyRing key : keys) {\r\n\t\t\tif (count++ > 0)\r\n\t\t\t\tb.append(\"\\n\\n\");\r\n\t\t\tb.append(key.toString());\r\n\t\t}\r\n\t\treturn b.toString();\r\n\t}",
"protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }",
"private void generateBack() {\n\t\tCharacter[] encodeChar = (Character[]) map.values().toArray(new Character[map.size()]);\n\t\tCharacter[] trueChar = (Character[]) map.keySet().toArray(new Character[map.size()]);\n\n\t\tString allencode = \"\";\n\t\tString allTrue = \"\";\n\n\t\tfor (int i = 0; i < encodeChar.length; i++) {\n\t\t\tallencode += encodeChar[i];\n\t\t\tallTrue += trueChar[i];\n\t\t}\n\n\t\tString code = \"import java.util.HashMap;\\n\" + \"import java.util.Map;\\n\" + \"import java.util.Scanner;\\n\"\n\t\t\t\t+ \"public class MyKey {\\n\"\n\t\t\t\t+ \"private static Map<Character, Character> map = new HashMap<Character, Character>();\\n\"\n\t\t\t\t+ \"private static char[] encodeChar = \\\"\" + allencode + \"\\\".toCharArray();\\n\"\n\t\t\t\t+ \"private static char[] trueChar = \\\"\" + allTrue + \"\\\".toCharArray();\\n\"\n\t\t\t\t+ \"private static void mapSetUp() {\\n\" + \"for (int i = 0; i < encodeChar.length; i++) {\\n\"\n\t\t\t\t+ \"map.put(encodeChar[i], trueChar[i]);\\n\" + \"}\\n\" + \"}\\n\"\n\t\t\t\t+ \"private static String decodeMessage(String message) {\\n\" + \"String decode = \\\"\\\";\\n\"\n\t\t\t\t+ \"for (int i = 0; i < message.length(); i++) {\\n\" + \"decode += map.get(message.charAt(i));\\n\" + \"}\\n\"\n\t\t\t\t+ \"return decode;\\n\" + \"}\\n\" + \"public static void main(String[] args){\\n\"\n\t\t\t\t+ \"Scanner sc = new Scanner(System.in);\\n\" + \"System.out.print(\\\"Input your encrypted message : \\\");\"\n\t\t\t\t+ \"String enMessage = sc.nextLine();\" + \"mapSetUp();\\n\"\n\t\t\t\t+ \"System.out.println(\\\"Decrypted message : \\\"+decodeMessage(enMessage));\\n\" + \"}}\";\n\t\tFile f = new File(\"MyKey.java\");\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(f);\n\t\t\tBufferedWriter bf = new BufferedWriter(fw);\n\t\t\tbf.write(code);\n\t\t\tbf.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error about IO.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private static void generateHandicaps() {\n\t\ttry {\n\t\t\tPrintWriter writer = new PrintWriter(new FileWriter(new File(\"handicaps.txt\"), true));\n\t\t\t// The generic handicap set.\n\t\t\twriter.append(\"420:90.00:94.00\\r\\n\" + \n\t\t\t\t\t\"cscow:80.75:78.1\\r\\n\" + \n\t\t\t\t\t\"m16scow:92.4:88.1\\r\\n\" + \n\t\t\t\t\t\"mcscow:88.45:87.2\\r\\n\" + \n\t\t\t\t\t\"xboat:103:96.5\\r\\n\" + \n\t\t\t\t\t\"nj2k:99:103\\r\\n\" + \n\t\t\t\t\t\"butterfly:109.75:106.9\\r\\n\" + \n\t\t\t\t\t\"miniscow:108:105\\r\\n\" + \n\t\t\t\t\t\"capri:100.10:99.20\\r\\n\" + \n\t\t\t\t\t\"canoe:79.00:144.00\");\n\t\t\twriter.close();\n\t\t} catch(IOException e) {\n\t\t\tSystem.out.println(\"\\n\\nSOMETHING HAS GONE TERRIBLY WRONG\\n\\n\");\n\t\t\tgoodbye();\n\t\t}\n\t}",
"String getKeyFormat();",
"public static String keyString(String... pieces) {\r\n StringBuilder sb = new StringBuilder(pieces[0]);\r\n for (int i = 1; i < pieces.length; ++i) {\r\n sb.append('\\0').append(pieces[i]);\r\n }\r\n return sb.toString();\r\n }",
"String newKey();",
"protected void generateRandomKey(String randomLetters) {\n\n if (randomKeys == null || randomKeys.length == 0) {\n randomLetters = new String(new char[40]).replace(\"\\0\", randomLetters);\n randomKeys = shuffleArray(randomLetters.toCharArray());\n charCount = 0;\n //Log.d(CLASS_NAME, \"Random key generated\"+ new String(randomKeys));\n }\n\n generatedKey = String.valueOf(randomKeys[charCount++]);\n if (randomKeys.length - 1 == charCount) {\n generatedKey = \"All keys are finished\";\n }\n //setting the generatedkey to textview\n TextView generateKeyForTextView = (TextView) findViewById(R.id.textView_key);\n generateKeyForTextView.setText(generatedKey);\n }",
"public void generateKeys(){\n\t\t//Apply permutation P10\n\t\tString keyP10 = permutation(key,TablesPermutation.P10);\n\t\tresults.put(\"P10\", keyP10);\n\t\t//Apply LS-1\n\t\tString ls1L = leftShift(keyP10.substring(0,5),1);\n\t\tString ls1R = leftShift(keyP10.substring(5,10),1);\n\t\tresults.put(\"LS1L\", ls1L);\n\t\tresults.put(\"LS1R\", ls1R);\n\t\t//Apply P8 (K1)\n\t\tk1 = permutation(ls1L+ls1R, TablesPermutation.P8);\n\t\tresults.put(\"K1\", k1);\n\t\t//Apply LS-2\n\t\tString ls2L = leftShift(ls1L,2);\n\t\tString ls2R = leftShift(ls1R,2);\n\t\tresults.put(\"LS2L\", ls2L);\n\t\tresults.put(\"LS2R\", ls2R);\n\t\t//Apply P8 (K2)\n\t\tk2 = permutation(ls2L+ls2R, TablesPermutation.P8);\n\t\tresults.put(\"K2\", k2);\n\t}",
"private static Map<String, String> organizeTransducer () {\n Map<String, String> properTransducerName = new HashMap<String, String>();\n\n properTransducerName.put(\"TEMP\", \"temperature\");\n properTransducerName.put(\"LIGHT\", \"light\");\n properTransducerName.put(\"HUMI\", \"humidity\");\n properTransducerName.put(\"PRES\", \"pressure\");\n properTransducerName.put(\"VBAT\", \"voltage\");\n properTransducerName.put(\"DOOR\", \"door\");\n properTransducerName.put(\"RSSI\", \"RSSI\");\n\n return properTransducerName;\n }",
"public static void setUpGenres(Context context){\n SharedPreferences mSetting = context.getSharedPreferences(StaticVars.GENRE_SHARED_PREFERENCES,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = mSetting.edit();\n //putting genre name and its id on shikimori\n\n\n editor.putInt(\"Drama\",8);\n editor.putInt(\"Драма\",8);\n editor.putInt(\"Game\",11);\n editor.putInt(\"Игры\",11);\n editor.putInt(\"Psychological\",40);\n editor.putInt(\"Психологическое\",40);\n editor.putInt(\"Adventure\",2);\n editor.putInt(\"Приключения\",2);\n editor.putInt(\"Music\",19);\n editor.putInt(\"Музыка\",19);\n editor.putInt(\"Action\",1);\n editor.putInt(\"Экшен\",1);\n editor.putInt(\"Comedy\",4);\n editor.putInt(\"Комедия\",4);\n editor.putInt(\"Demons\",6);\n editor.putInt(\"Демоны\",6);\n editor.putInt(\"Police\",39);\n editor.putInt(\"Полиция\",39);\n editor.putInt(\"Space\",29);\n editor.putInt(\"Космос\",29);\n editor.putInt(\"Ecchi\",9);\n editor.putInt(\"Этти\",9);\n editor.putInt(\"Fantasy\",10);\n editor.putInt(\"Фэнтези\",10);\n editor.putInt(\"Historical\",13);\n editor.putInt(\"Исторический\",13);\n editor.putInt(\"Horror\",14);\n editor.putInt(\"Ужасы\",14);\n editor.putInt(\"Magic\",16);\n editor.putInt(\"Магия\",16);\n editor.putInt(\"Mecha\",18);\n editor.putInt(\"Меха\",18);\n editor.putInt(\"Parody\",20);\n editor.putInt(\"Пародия\",20);\n editor.putInt(\"Samurai\",21);\n editor.putInt(\"Самураи\",21);\n editor.putInt(\"Romance\",22);\n editor.putInt(\"Романтика\",22);\n editor.putInt(\"School\",23);\n editor.putInt(\"Школа\",23);\n editor.putInt(\"Shoujo\",25);\n editor.putInt(\"Сёдзе\",25);\n editor.putInt(\"Shounen\",27);\n editor.putInt(\"Сёнен\",27);\n editor.putInt(\"Shounen Ai\",28);\n editor.putInt(\"Сёнен Ай\",28);\n editor.putInt(\"Sports\",30);\n editor.putInt(\"Спорт\",30);\n editor.putInt(\"Vampire\",32);\n editor.putInt(\"Вампиры\",32);\n editor.putInt(\"Harem\",35);\n editor.putInt(\"Гарем\",35);\n editor.putInt(\"Slice of Life\",36);\n editor.putInt(\"Повседневность\",36);\n editor.putInt(\"Seinen\",42);\n editor.putInt(\"Сейнен\",42);\n editor.putInt(\"Josei\",43);\n editor.putInt(\"Дзёсей\",43);\n editor.putInt(\"Supernatural\",37);\n editor.putInt(\"Сверхъестественное\",37);\n editor.putInt(\"Thriller\",41);\n editor.putInt(\"Триллер\",41);\n editor.putInt(\"Shoujo Ai\",26);\n editor.putInt(\"Сёдзе Ай\",26);\n editor.putInt(\"Sci-Fi\",24);\n editor.putInt(\"Фантастика\",24);\n editor.putInt(\"Super Power\",31);\n editor.putInt(\"Супер сила\",31);\n editor.putInt(\"Military\",38);\n editor.putInt(\"Военное\",38);\n editor.putInt(\"Mystery\",7);\n editor.putInt(\"Детектив\",7);\n editor.putInt(\"Kids\",15);\n editor.putInt(\"Детское\",15);\n editor.putInt(\"Cars\",3);\n editor.putInt(\"Машины\",3);\n editor.putInt(\"Martial Arts\",17);\n editor.putInt(\"Боевые искусства\",17);\n editor.putInt(\"Dementia\",5);\n editor.putInt(\"Безумие\",5);\n\n editor.apply();\n\n\n\n }",
"public static String generatePlate() {\n\t\t\n\t\tString s = \"\";\n\t\t\n\t\tfor (int i=0; i < 3; i++)\n\t\t\ts += generateLetter();\n\t\t\n\t\ts += '-';\n\t\t\n\t\tfor (int i=0; i < 4; i++)\n\t\t\ts += generateDigit();\n\t\t\n\t\treturn s;\n\t}",
"public void initialize() {\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint N = alphabet.length();\n\n\t\tRandom r = new Random();\n\t\tString key = \"\";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tkey+= alphabet.charAt(r.nextInt(N));\n\t\t}\n\t\tthis.key = key;\n\t}",
"public static void main(String[] args) {\n String keyboard = \"q2we4r5ty7u8i9op-[=zxdcfvgbnjmk,;/' \";\r\n // number of strings variable\r\n int numberOfStrings = keyboard.length();\r\n GuitarString[] guitarStringsArray = new GuitarString[numberOfStrings];\r\n RingBuffer sampleBuff = new RingBuffer();\r\n \r\n StdDraw.setXscale(0, 100); // sets x scale from 0 to 100\r\n StdDraw.setYscale(-10,10); // sets y scale from -10 to 10 (y should be between -1 and 1)\r\n StdDraw.enableDoubleBuffering(); // drawing takes place on off-screen canvas\r\n \r\n int x = 0;\r\n for (int i = 0; i < numberOfStrings; i++) {\r\n double f = 440.0 * Math.pow(2, (i - 24) / 12.0);\r\n guitarStringsArray[i] = new GuitarString(f);\r\n }\r\n \r\n while (true) {\r\n double sample = 0;\r\n if (StdDraw.hasNextKeyTyped()) {\r\n char key = StdDraw.nextKeyTyped();\r\n if (keyboard.indexOf(key) != -1) {\r\n guitarStringsArray[keyboard.indexOf(key)].pluck();\r\n }\r\n }\r\n\t for (int j = 0; j < guitarStringsArray.length; j++) {\r\n\t sample += guitarStringsArray[j].sample();\r\n\t }\r\n\t //System.out.println(sample);\r\n\t // plays audio\r\n\t StdAudio.play(sample); \r\n\t // enqueues sample into buffer\r\n\t sampleBuff.enqueue(sample);\r\n\t \r\n\t // if buffer size is greater than 1\r\n\t if (sampleBuff.size() > 1) {\r\n\t \tSystem.out.println(\"x: \" + x);\r\n\t // if x == 0 clear the drawing \r\n\t if (x == 100) {\r\n\t \tx = 0;\r\n\t \tStdDraw.clear();\r\n\t }\r\n\t // draws from (x, buff.deq) to (x+1, buff.peek)\r\n\t StdDraw.line(x, sampleBuff.dequeue(), x+1, sampleBuff.peek());\r\n\t // shows and pauses the drawing \r\n\t \r\n\t StdDraw.show();\r\n\t StdDraw.pause(10);\r\n\t \r\n\t // x iterator\r\n\t x++;\r\n\t } \r\n\t \r\n\t for (int j = 0; j < guitarStringsArray.length; j++) {\r\n\t guitarStringsArray[j].tic();\r\n\t } \r\n }\r\n }",
"public static Value makeStringsAndSymbols(Collection<PKey> properties) {\n Value rSymb = new Value(join(properties.stream().map(PKey::toValue).collect(Collectors.toSet())));\n Value rStr = makeStrings(properties.stream().filter(x -> x instanceof PKey.StringPKey).map(x -> ((PKey.StringPKey) x).getStr()).collect(Collectors.toList()));\n return rSymb.join(rStr);\n }",
"public Object create(String key_letters) throws XtumlException;",
"String generateJoke();",
"public abstract String generateStorageString();",
"public Piano(int numNotes){\n pStrings = new InstString[numNotes][3];\n for(int a = 0; a < numNotes; a++){\n double freq = 440 * Math.pow(2, (double)(a-24)/(double)12);\n pStrings[a][0] = new GuitarString(freq);\n pStrings[a][1] = new GuitarString(freq + .45);\n pStrings[a][2] = new GuitarString(freq - .45);\n }\n }",
"@Override\n public String getString(String key) {\n return getStringFromBundle(key, BASE_STRING) + \" \" + random.nextInt(RANDOM_INT_BOUND);\n }",
"public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }",
"public String makeString()\n\t{\n\t\treturn \"RandomLevelSource\";\n\t}",
"private void generateSampleKeys()\n {\n Iterator<ArrayList<String>> di = data.iterator();\n String key2;\n\n while (di.hasNext())\n {\n ArrayList<String> row = di.next();\n\n Iterator<Integer> kci = keyCols.iterator();\n StringBuffer buf = new StringBuffer();\n while (kci.hasNext())\n {\n Integer i = kci.next();\n String value = row.get(i);\n buf.append(value + '_');\n }\n key2 = new String(StringUtils.chop(buf.toString()));\n key2 = key2.toUpperCase();\n\n SampleWithProperties s = new SampleWithProperties(key2);\n\n // now have to add properties\n Iterator<Integer> pi = spts.keySet().iterator();\n while (pi.hasNext())\n {\n Integer key3 = pi.next();\n String val = row.get(key3);\n val = val.toUpperCase();\n s.addProperty(spts.get(key3), val);\n }\n swp.add(s);\n }\n }",
"public static String string() {\n\t\t\tString s = \"\";\n\t\t\ts += \"Locaux :\\n\";\n\t\t\tfor(String key : locaux.keySet()) {\n\t\t\t\tIdent i = locaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\t\t\ts += \"Globaux :\\n\";\n\t\t\tfor(String key : globaux.keySet()) {\n\t\t\t\tIdent i = globaux.get(key);\n\t\t\t\ts += key+\", \"+i.toString()+\"\\n\";\n\t\t\t}\n\n\t\t\treturn s;\n\t\t}",
"public static String generateHalfKey(){\n return randomChars(HALF_KEY_LENGTH);\n }",
"@Override\n public String generateKey(int round) {\n return this.key.substring(4 * round, 4 * round + 16);\n }",
"public String makeString()\n {\n return \"RandomLevelSource\";\n }",
"public String toString()\r\n {\r\n StringBuffer sb = new StringBuffer(super.toString());\r\n\r\n if (requires_CHV)\r\n sb.append(\" CHV\" + number_of_CHV);\r\n if (requires_AUT)\r\n sb.append(\" AUT\" + number_of_key);\r\n if (requires_PRO)\r\n sb.append(\" PRO\" + number_of_key);\r\n if (requires_ENC)\r\n sb.append(\" ENC\" + number_of_key);\r\n\r\n if (never_accessible)\r\n sb.append(\" Never\");\r\n\r\n return sb.toString();\r\n }",
"public String sounds(){\n return (\"Moooooo :o\");\n }",
"private void fillAdjective1a()\n {\n adjective1a.add(\"Epic\");\n adjective1a.add(\"Brilliant\");\n adjective1a.add(\"Mighty\");\n adjective1a.add(\"Great\");\n adjective1a.add(\"Wonderful\");\n adjective1a.add(\"Crazy\");\n adjective1a.add(\"Sparkling\");\n adjective1a.add(\"Shiny\");\n adjective1a.add(\"Lustful\");\n adjective1a.add(\"Precious\");\n\n }",
"private String getStringKey(IntArray rawKey) {\n StringBuilder groupKeyBuilder = new StringBuilder(_dictionaries[0].getStringValue(rawKey._elements[0]));\n for (int i = 1; i < _numGroupByExpressions; i++) {\n groupKeyBuilder.append(GroupKeyGenerator.DELIMITER);\n groupKeyBuilder.append(_dictionaries[i].getStringValue(rawKey._elements[i]));\n }\n return groupKeyBuilder.toString();\n }",
"public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}",
"public static String generateData() {\n\t\tStringBuilder res = new StringBuilder();\n\t\tres.append(generateID(9));\n\t\tres.append(\",\");\n\t\tres.append(\"Galsgow\");\n\t\tres.append(\",\");\n\t\tres.append(\"UK\");\n\t\tres.append(\",\");\n\t\tres.append(generateDate());\n\t\treturn res.toString();\n\t}",
"protected String keyToString(Object rawKey)\n {\n if (rawKey instanceof String) {\n return (String) rawKey;\n }\n return String.valueOf(rawKey);\n }",
"public String getGenresString(){\n String genres =\"\";\n for (String str : allGenres){\n genres += str +\", \";\n }\n return genres;\n }",
"String getShortNameKey();",
"static public String hobNameGen(){\n int i = rand.nextInt(8);\n String hName = name[i];\n return hName;\n }",
"private StringBuffer2D makeLettersHeader(){\n int actualWidth = getActualWidth();\n StringBuffer2D sb = new StringBuffer2D();\n //letters\n for(int y=0;y<board.getWidth();++y){\n sb.appendRow(0, \" \"+\"_\".repeat((int) Math.ceil(actualWidth/2)) +\n Color.GREEN_UNDERLINED.escape(getCharForNumber(y)) +\n \"_\".repeat((int) Math.ceil(actualWidth/2)));\n }\n return sb;\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn key + \"\";\r\n\t}",
"public GuitarString(double frequency) {\n\t super(frequency,1.0);\n\t DECAY = .996;\n\t }",
"private void generateImage()\r\n {\n String[] letters = imgInfo.get(level-1).getWord().split(\" \");\r\n numOfLetter = letters.length;\r\n String newLetter = \"\";\r\n int counter=0;\r\n for(String s: letters) {\r\n newLetter += s;\r\n numOfAlpha[counter] = s.length();\r\n counter++;\r\n }\r\n charAns = new ArrayList<Character>();\r\n charAns2 = newLetter.toCharArray();\r\n letterBtnLen = 0;\r\n for (int i =0;i<newLetter.length();i++) {\r\n if(charAns.indexOf(charAns2[i]) == -1) {\r\n charAns.add(charAns2[i]);\r\n letterBtnLen++;\r\n }\r\n }\r\n int ranNum,i=0;\r\n letterBtn = new char[letterBtnLen];\r\n while(!charAns.isEmpty())\r\n {\r\n ranNum =(int) (Math.random()* charAns.size());\r\n letterBtn[i] = charAns.get(ranNum);\r\n String strAns = String.valueOf(charAns.get(ranNum));\r\n letter[i].setText(strAns);\r\n charAns.remove(ranNum);\r\n i++;\r\n }\r\n }",
"public String toString(){\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < key; i++) {\n sb.append(getArtikel(i));\n }\n return sb.toString();\n }",
"void stringConstruction()\t{\n\n\t\tString symbol = \"#\";\n\t\t\n\t\tfor (int i = 1; i < q - 1; i++)\tsymbol = symbol + \"#\";\n\t\ts1 = symbol + s1 + symbol;\n\t\ts2 = symbol + s2 + symbol;\n\t\tlength1 += (q-1) * 2;\t\t\n\t\tlength2 += (q-1) * 2;\t\t\n\t}",
"private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }",
"private void initKeys() { \n //add left, down, right, up\n playerKeys.add(new keyList(KeyInput.KEY_J, KeyInput.KEY_K, KeyInput.KEY_L, KeyInput.KEY_I));\n }",
"public void generateCodes() {\n\t\tArrayList<Chest> chests = new ArrayList<Chest>();\n\t\tArrayList<Key> keys = new ArrayList<Key>();\n\n\t\tfor (Location location : board.getLocations().values()) {\n\t\t\tfor (Tile ta[] : location.getTiles()) {\n\t\t\t\tfor (Tile t : ta) {\n\t\t\t\t\tif (t.getGameObject() instanceof Chest) {\n\t\t\t\t\t\tchests.add((Chest) t.getGameObject());\n\t\t\t\t\t} else if (t.getGameObject() instanceof Key) {\n\t\t\t\t\t\tkeys.add((Key) t.getGameObject());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (keys.size() != chests.size()) {\n\t\t\tthrow new RuntimeException(\"must have same numer of keys and chests\");\n\t\t}\n\n\t\tint num = keys.size();\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tint randy = (int) (Math.random() * keys.size());\n\t\t\tint orton = (int) (Math.random() * keys.size());\n\n\t\t\tkeys.get(randy).setCode(i);\n\t\t\tchests.get(orton).setCode(i);\n\t\t\tchests.get(orton).setContents(new Banana(\"Banana\"));\n\t\t\tkeys.remove(randy);\n\t\t\tchests.remove(orton);\n\t\t}\n\n\t}",
"public CharSequence toCharSequence()\r\n\t{\r\n\t\tfinal AppendingStringBuffer buffer = new AppendingStringBuffer();\r\n\r\n\t\tfor (String key : keySet())\r\n\t\t{\r\n\t\t\tif (key != null) {\r\n\t\t\t\tbuffer.append(' ');\r\n\t\t\t\tbuffer.append(Strings.escapeMarkup(key));\r\n\t\t\t\t\r\n\t\t\t\tCharSequence value = getCharSequence(key);\r\n\t\t\t\tif (value != null) {\r\n\t\t\t\t\tbuffer.append(\"=\\\"\");\r\n\t\t\t\t\tbuffer.append(Strings.escapeMarkup(value));\r\n\t\t\t\t\tbuffer.append('\"');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn buffer;\r\n\t}",
"public String makeString()\n {\n return \"ArcanaDungeonSource\";\n }",
"public static String randSym(){\n int n = rand.nextInt(rand.nextInt(83 - 52 + 1) + 52);\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"private int drawKeyCombo(Graphics2D g2d, int base_x, int base_y, String key, String norm, String shft, String ctrl, String ctrl_shft) {\n if (key != null) { g2d.setColor(RTColorManager.getColor(\"label\", \"default\")); g2d.drawString(key, base_x, base_y); base_x += 100; /* Utils.txtW(g2d,key); */ }\n if (norm != null) { g2d.setColor(RTColorManager.getColor(\"label\", \"major\")); g2d.drawString(norm, base_x, base_y); base_x += 150; /* Utils.txtW(g2d,norm); */ }\n if (shft != null) { g2d.setColor(RTColorManager.getColor(\"label\", \"minor\")); g2d.drawString(shft, base_x, base_y); base_x += 150; /* Utils.txtW(g2d,shft); */ }\n if (ctrl != null) { g2d.setColor(RTColorManager.getColor(\"label\", \"minor\")); g2d.drawString(ctrl, base_x, base_y); base_x += 150; /* Utils.txtW(g2d,ctrl); */ }\n if (ctrl_shft != null) { g2d.setColor(RTColorManager.getColor(\"label\", \"minor\")); g2d.drawString(ctrl_shft, base_x, base_y); base_x += 150; /* Utils.txtW(g2d,ctrl_shft); */ }\n return base_y + Utils.txtH(g2d, \"0\");\n }",
"public void generatePlate(){\r\n\t\tfor(int i = 0; i<3; i++){ // Using math random to generate three upper case letter \r\n\t\t\tSystem.out.print((char)((int)'A'+Math.random()*((int)'Z'-(int)'A'+1)));\r\n\t\t}\r\n\t\tSystem.out.print(\"-\");\r\n\t\tfor(int i=0; i<4; i++){ // using math random to generate four integers\r\n\t\t\tSystem.out.print((int)(Math.random()*10));\r\n\t\t}\r\n\t}",
"private ArrayList<Integer> generateVoltageLabelKeys() {\r\n\t\t// duct tape workaround. I don't really want to hard-code the values in,\r\n\t\t//(what happens if Jason changes the name of a key in the TelemDataPacket?), \r\n\t\t//but it works for now. If we anticipate changes, we can update this\r\n\t\t//to generate it dynamically. \r\n\t\tArrayList<Integer> keys = new ArrayList();\r\n\t\tkeys.add(0);\r\n\t\tkeys.add(1);\r\n\t\tkeys.add(2);\r\n\t\tkeys.add(3);\r\n\t\treturn keys;\r\n\t}",
"public CMNGameStrings() {\n\t\t}",
"protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;",
"public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }",
"@Override\n public String generateRoshambo(String input) {\n\n return \"Rock\";\n\n }",
"public void upadateDictionary(){\n dict.setLength(0);\n for(Character l : LettersCollected) {\n dict.append(l + \" \");\n }\n dictionary.setText(dict);\n\n }",
"public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }",
"private String createStandardGZFieldTexts()\n\t{\n\t\tStringBuffer result = new StringBuffer();\n\t\tfor (Entry<String, String[]> entry : standardJournalFieldColumns.entrySet())\n\t\t{\n\t\t\tif (result.length() != 0)\n\t\t\t{\n\t\t\t\tresult.append(\", \");\n\t\t\t}\n\t\t\tresult.append(entry.getKey());\n\t\t\tresult.append(\" TEXT IS '\");\n\t\t\tString[] strings = entry.getValue();\n\t\t\tfor (int index = 0; index < strings.length; index++)\n\t\t\t{\n\t\t\t\tresult.append(strings[index]);\n\t\t\t\tif (index < strings.length)\n\t\t\t\t{\n\t\t\t\t\tresult.append(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult.append(\"'\");\n\t\t}\n\t\treturn result.toString();\n\t}",
"@Override\n\tpublic String toString(){\n\t\tString result = \"\";\n\t\tfor (int i = 0; i < numObjects && key[i] != null; i++){\n\t\t\tresult += key[i].toString() + \" \";\n\t\t}\n\t\treturn result;\n\t}",
"private String createTypeKey(int type, String key) {\r\n\t\treturn type + \"-\" + key;\r\n\t}",
"private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }",
"public String printGrid() {\n String s = \"KEY: \\n- (sea) = no boat not shot\"\n + \"\\nM (miss) = no boat SHOT \"\n +\" \\nB (boat) = boat not shot\"\n + \"\\nH (hit) = boat SHOT\"\n + \"\\n***********************************************************\\n\";\n for (int i = 0; i < GRID_DIMENSIONS; i++) {\n for (int j = 0; j < GRID_DIMENSIONS; j++) {\n s += decideLetter(grid[i][j]) + \"\\t\";\n }\n s += \"\\n\";\n }\n return s;\n }",
"public static void createSoundsArrList() {\r\n\t\t//Clears the sounds array list.\r\n\t\tsounds.clear();\r\n\t\t\r\n\t\t//Adds all the sound files to the sounds array list.\r\n\t\tsounds.add(\"Start=\" + Main.soundGameStart);\r\n\t\tsounds.add(\"Bags=\" + Main.soundBags);\r\n\t\tsounds.add(\"Set=\" + Main.soundSet);\r\n\t\tsounds.add(\"Win=\" + Main.soundWin);\r\n\t\tsounds.add(\"Lose=\" + Main.soundLose);\r\n\t}",
"public String keyDescription() {\n\t\tString s = CharKey.toLowerCase();\n\t\tif (s.equals(\"none\") || s.equals(\"default\"))\n\t\t\treturn s;\n\t\tif (Alt)\n\t\t\ts = \"alt.\" + s;\n\t\tif (Control)\n\t\t\ts = \"control.\" + s;\n\t\tif (Shift)\n\t\t\ts = \"shift.\" + s;\n\t\tif (CommandType > 0)\n\t\t\ts = \"esc\" + CommandType + \".\" + s;\n\t\treturn s;\n\t}",
"private String shiftAlphabet(int key) {\n return ALPHABET.substring(key) + ALPHABET.substring(0, key);\n }",
"void generateSecretKey() {\n\n Random rand = new Random();\n \n // randomly generate alphabet chars\n this.secretKey.setCharAt(0, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(1, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(4, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(5, (char) (rand.nextInt(26) + 'a'));\n\n // randomly generate special chars\n // special chars are between 33-47 and 58-64 on ASCII table\n if (rand.nextBoolean()) {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(15) + '!'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(15) + '!'));\n } else {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(7) + ':'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(7) + ':'));\n }\n \n // randomly generate int between 2 and 5\n this.secretKey.setCharAt(7, (char) (rand.nextInt(4) + '2'));\n }",
"@Override\n public Question generate() {\n return new Question(\"Why do Canadians prefer their jokes in hexadecimal?\",\n \"Because 7 8 9 A!\");\n }",
"private ArrayList<String> generateTemperatureLabelKeys() {\n\t\treturn null;\r\n\t}",
"public void initPitchDictionary() {\n\t\tnoteToPitch = new Hashtable<Character, Integer>();\n\t\tnoteToPitch.put('C', 60);\n\t\tnoteToPitch.put('D', 62);\n\t\tnoteToPitch.put('E', 64);\n\t\tnoteToPitch.put('F', 65);\n\t\tnoteToPitch.put('G', 67);\n\t\tnoteToPitch.put('A', 69);\n\t\tnoteToPitch.put('B', 71);\n\t}",
"private String createCustomInfoString() {\r\n String CustomInfo = \"\";\r\n Iterator<String> iterator = mCustomParameters.keySet().iterator();\r\n while (iterator.hasNext()) {\r\n String CurrentKey = iterator.next();\r\n String CurrentVal = mCustomParameters.get(CurrentKey);\r\n CustomInfo += CurrentKey + \" = \" + CurrentVal + \"\\n\";\r\n }\r\n return CustomInfo;\r\n }",
"public static String randomize(char[] list) {\n for (int j = 0; j < list.length; j++) {\n int index = (int) (Math.random() * list.length);\n char temp = list[j];\n list[j] = list[index];\n list[index] = temp;\n }\n String randomKey = \"\";\n for (int x = 0; x < list.length; x++) {\n randomKey += (list[x]);\n } \n return randomKey;\n }",
"public static String alphaKey(int value) {\n if (value < 1) {\n return \"a\";\n }\n if (value < 10) {\n return \"b\" + value;\n }\n if (value < 100) {\n return \"c\" + value;\n }\n if (value < 1000) {\n return \"d\" + value;\n }\n if (value < 10000) {\n return \"e\" + value;\n }\n if (value < 100000) {\n return \"f\" + value;\n }\n if (value < 1000000) {\n return \"g\" + value;\n }\n if (value < 10000000) {\n return \"h\" + value;\n }\n if (value < 100000000) {\n return \"i\" + value;\n }\n if (value < 1000000000) {\n return \"j\" + value;\n }\n return \"k\" + value;\n }",
"private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }",
"private String getStringKey(long rawKey) {\n int cardinality = _cardinalities[0];\n StringBuilder groupKeyBuilder = new StringBuilder(_dictionaries[0].getStringValue((int) (rawKey % cardinality)));\n rawKey /= cardinality;\n for (int i = 1; i < _numGroupByExpressions; i++) {\n groupKeyBuilder.append(GroupKeyGenerator.DELIMITER);\n cardinality = _cardinalities[i];\n groupKeyBuilder.append(_dictionaries[i].getStringValue((int) (rawKey % cardinality)));\n rawKey /= cardinality;\n }\n return groupKeyBuilder.toString();\n }",
"private String getChallenge() {\n String challenge = null;\n\n int freq = getRandomNumberInRange(1, 5);\n\n if (freq == 1) {\n challenge = getString(R.string.challenge_box_jumps) + getRandomNumberInRange(1,5) + getString(R.string.times_suffix);\n }\n else if (freq == 2) {\n challenge = getString(R.string.challenge_push_ups) + getRandomNumberInRange(1,5) + getString(R.string.times_suffix);\n }\n else if (freq == 3) {\n challenge = getString(R.string.challenge_sit_ups) + getRandomNumberInRange(1,5) + getString(R.string.times_suffix);\n }\n else if (freq == 4) {\n challenge = getString(R.string.challenge_squats) + getRandomNumberInRange(1,5) + getString(R.string.times_suffix);\n }\n else if (freq == 5) {\n challenge = getString(R.string.challenge_planking) + getRandomNumberInRange(1,5) + getString(R.string.minutes_suffix);\n }\n return challenge;\n }",
"Set<String> getGameShortcodes();",
"public void UIDrawing(Graphics g)\n {\n key.draw(g);\n bomb.draw(g);\n heart.setxPos(originalxPos);\n heart.setyPos(originalyPos);\n halfHeart.setxPos(originalxPos);\n halfHeart.setyPos(originalyPos);\n emptyHeart.setxPos(originalxPos);\n emptyHeart.setyPos(originalyPos);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30)); \n if(this.getKeys() < 10)\n {\n g.setColor(Color.BLACK);\n g.drawString(\": 0\" + this.getKeys(), 40 + 2, 100);\n g.drawString(\": 0\" + this.getKeys(), 40 - 2, 100);\n g.drawString(\": 0\" + this.getKeys(), 40, 100 + 2);\n g.drawString(\": 0\" + this.getKeys(), 40, 100 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": 0\"+ this.getKeys(), 40, 100);\n }\n else\n {\n g.setColor(Color.BLACK);\n g.drawString(\": \" + this.getKeys(), 40 + 2, 100);\n g.drawString(\": \" + this.getKeys(), 40 - 2, 100);\n g.drawString(\": \" + this.getKeys(), 40, 100 + 2);\n g.drawString(\": \" + this.getKeys(), 40, 100 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": \"+ this.getKeys(), 40, 100);\n }\n if(this.getBombs() < 10)\n {\n g.setColor(Color.BLACK);\n g.drawString(\": 0\" + this.getBombs(), 40 + 2, 150);\n g.drawString(\": 0\" + this.getBombs(), 40 - 2, 150);\n g.drawString(\": 0\" + this.getBombs(), 40, 150 + 2);\n g.drawString(\": 0\" + this.getBombs(), 40, 150 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": 0\"+ this.getBombs(), 40, 150);\n }\n else\n {\n g.setColor(Color.BLACK);\n g.drawString(\": \" + this.getBombs(), 40 + 2, 150);\n g.drawString(\": \" + this.getBombs(), 40 - 2, 150);\n g.drawString(\": \" + this.getBombs(), 40, 150 + 2);\n g.drawString(\": \" + this.getBombs(), 40, 150 - 2);\n g.setColor(Color.WHITE);\n g.setFont(new Font(\"Chiller\", Font.BOLD, 30));\n g.drawString(\": \"+ this.getBombs(), 40, 150);\n }\n for(int i = 0; i < this.getMaxHp() / 2; i++)\n {\n emptyHeart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n emptyHeart.setyPos(originalyPos + 30);\n emptyHeart.setxPos(originalxPos + (35 * (i - 6)));\n }\n emptyHeart.draw(g);\n }\n for(int i = 0; i < this.getHealth() / 2; i++)\n {\n heart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n heart.setyPos(originalyPos + 30);\n heart.setxPos(originalxPos + (35 * (i - 6)));\n }\n heart.draw(g);\n if(i == this.getHealth()/2 - 0.5 && ((int)this.getHealth() % 2) != 0)\n {\n halfHeart.setxPos(originalxPos + (35 * i));\n if(i >= 6)\n {\n halfHeart.setxPos(originalxPos + (35 * (i - 6)));\n halfHeart.setyPos(originalyPos + 30);\n }\n halfHeart.draw(g);\n }\n }\n }",
"@Override\r\n \tpublic String encodeChoice(Skill choice)\r\n \t{\r\n \t\treturn choice.getKeyName();\r\n \t}",
"public String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"[\");\n sb.append(fiIdTk);\n sb.append(\"]:\");\n sb.append(fiSoTk);\n sb.append(\"|\");\n sb.append(fiNgayDk);\n sb.append(\"|\");\n sb.append(fiMaHq);\n sb.append(\"|\");\n sb.append(fiTenDvNk);\n sb.append(\"|\");\n sb.append(fiDiachiDvNk);\n sb.append(\"|\");\n sb.append(fiTenDvXk);\n sb.append(\"|\");\n sb.append(fiDiachiDvXk);\n sb.append(\"|\");\n sb.append(fiNuocXk);\n sb.append(\"|\");\n sb.append(fiSoHoadon);\n sb.append(\"|\");\n sb.append(fiNgayCapHd);\n sb.append(\"|\");\n sb.append(fiSoluong);\n sb.append(\"|\");\n sb.append(fiTong);\n sb.append(\"|\");\n sb.append(fiIdHoso);\n sb.append(\"|\");\n sb.append(fiGhichu);\n sb.append(\"|\");\n sb.append(fiNgaytao);\n sb.append(\"|\");\n sb.append(fiHoatdong);\n sb.append(\"|\");\n sb.append(fiNguoitao);\n sb.append(\"|\");\n sb.append(fiMaHoso);\n return sb.toString();\n }",
"@Override\n public String toString() {\n return String.valueOf(key);\n }",
"public void cardGen(){\n\t\tRandom rand = new Random();\n\t\tint randValue = rand.nextInt(13);\n\t\tcardString = value[randValue] + suit[rand.nextInt(4)];\n\t}",
"public interface Keys {\n String STRING = \"string\";\n String NUM = \"num\";\n String PERSON = \"person\";\n}",
"public String showGameKey() {\r\n \t\r\n \treturn \"no key defined\";\r\n \t\r\n }",
"String getDescriptionKey();",
"private String getStringKey(int rawKey) {\n // Specialize single group-by column case\n if (_numGroupByExpressions == 1) {\n return _dictionaries[0].getStringValue(rawKey);\n } else {\n int cardinality = _cardinalities[0];\n StringBuilder groupKeyBuilder = new StringBuilder(_dictionaries[0].getStringValue(rawKey % cardinality));\n rawKey /= cardinality;\n for (int i = 1; i < _numGroupByExpressions; i++) {\n groupKeyBuilder.append(GroupKeyGenerator.DELIMITER);\n cardinality = _cardinalities[i];\n groupKeyBuilder.append(_dictionaries[i].getStringValue(rawKey % cardinality));\n rawKey /= cardinality;\n }\n return groupKeyBuilder.toString();\n }\n }",
"@Override\n\tpublic void updateKey() {\n\t\tkey = String.format(\"%s;%s;%s;%s;%s;%s;%s\", dim, x1, y1, z1, x2, y2, z2);\n\t}",
"public static String generateRandomKey(int keyLength) {\n String result = \"\";\n Random rand = new Random();\n\n for(int i = 0; i<keyLength; i++) {\n result+=(char)(rand.nextInt(90-65 +1) +65);\n }\n\n return result;\n }"
] | [
"0.63518846",
"0.6042065",
"0.6037005",
"0.5993787",
"0.5925012",
"0.5776932",
"0.575184",
"0.57229584",
"0.57221735",
"0.56560224",
"0.56428266",
"0.551468",
"0.549054",
"0.5467228",
"0.5462522",
"0.5455626",
"0.54312277",
"0.53900164",
"0.53719294",
"0.5368266",
"0.5363117",
"0.5341821",
"0.5338351",
"0.5331333",
"0.5326086",
"0.5324208",
"0.5321015",
"0.5302817",
"0.5293051",
"0.528116",
"0.52700585",
"0.5253418",
"0.5245663",
"0.52413565",
"0.5218525",
"0.5209702",
"0.518352",
"0.5176539",
"0.5148199",
"0.5143767",
"0.5130953",
"0.51167893",
"0.5112912",
"0.5096992",
"0.50890476",
"0.5086696",
"0.50804424",
"0.507742",
"0.50614816",
"0.5051783",
"0.5048674",
"0.50478506",
"0.5047591",
"0.50431406",
"0.50388914",
"0.50377256",
"0.50274414",
"0.5025331",
"0.50237054",
"0.502145",
"0.5011817",
"0.50056744",
"0.49990803",
"0.49932626",
"0.49885088",
"0.49834937",
"0.49788487",
"0.49751338",
"0.496797",
"0.4965869",
"0.49577916",
"0.49561012",
"0.49476147",
"0.49467742",
"0.493078",
"0.49192083",
"0.49134937",
"0.49121663",
"0.49109557",
"0.49001598",
"0.4899252",
"0.48989108",
"0.4894779",
"0.489403",
"0.4893722",
"0.48931703",
"0.48805854",
"0.48715675",
"0.48648158",
"0.48646274",
"0.4863633",
"0.48628053",
"0.48617095",
"0.48602197",
"0.48510483",
"0.4847972",
"0.4845262",
"0.48432052",
"0.48428652",
"0.48425332"
] | 0.55580544 | 11 |
Compute the freqency of given index. | private static double freqOfKey(int index) {
return 440 * Math.pow(2, (double) (index - 12) / 24);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getFreq();",
"float getFrequency();",
"private double calcProbability(int index) {\n\t\treturn (double) fitnesses[index] / sumOfFitnesses();\n\t}",
"public int getDocFreq(Term t){\n\t\tint freq = 0;\r\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\tif (set.getValue().containsTerm(t)){\r\n\t\t\t\tfreq++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn freq;\r\n\t}",
"public float getTFIDF(Index index, String word) {\n long docCount = index.getDocuments().stream().filter(document -> document.hasWord(word)).count();\n return (float) getWordOccurrence(word) * (float) Math.log((float) index.getDocuments().size() / (float) docCount);\n }",
"@Override\n\tpublic int showFrequency(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key))\n\t\t\t\treturn hashArray[hashVal].frequency;\n\t\t\telse {\n\t\t\t\thashVal++;\n\t\t\t\thashVal = hashVal % size;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public abstract double samplingFrequency();",
"abstract public int docFreq(Term t) throws IOException;",
"public int getFreq() {\n return freq_;\n }",
"java.lang.String getFrequency();",
"public int getFreq() {\n return freq_;\n }",
"boolean hasFreq();",
"public abstract double score(\n\t\tdouble tf,\n\t\tdouble docLength,\n\t\tdouble n_t,\n\t\tdouble F_t,\n\t\tdouble keyFrequency);",
"public long getFreq() {\n return freq;\n }",
"public int getFrequencyOf(int num) {\n int freq = 0;\n for (int i = 0; i < count; i++) {\n if (list[i] == num) {\n freq++;\n }\n }\n \n return freq;\n }",
"@Override\n public long getFrequencyCount() {\n return count;\n }",
"public int getFrequency(char symbol) {\r\n if(isEmpty()){\r\n throw new ArrayIndexOutOfBoundsException(\"No symbols in table\");\r\n }\r\n else {\r\n Node symbolNode = first;\r\n while(true) {\r\n if(symbolNode.symbol == symbol) {\r\n return symbolNode.frequency;\r\n }\r\n else if(symbolNode.next == null) {\r\n throw new NoSuchElementException(\"Symbol is not in the table\");\r\n }\r\n else {\r\n symbolNode = symbolNode.next;\r\n }\r\n }\r\n }\r\n }",
"public int getTermFreq(String fileName, Term t){\n\t\tint freq = 0;\r\n\t\tfor (Map.Entry<String, IndexedDoc> set : index.entrySet()){\r\n\t\t\tif (set.getKey()==fileName){\r\n\t\t\t\treturn set.getValue().termCount(t);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn freq;\r\n\t}",
"@Override\n public int getTermFrequencyByDocument(String term, String url) {\n return 0;\n }",
"public int getFrequency()\n\t{\n\t\treturn frequency;\n\t}",
"public double getWordProbability(List<String> sentence, int index) {\n\t\n\treturn (Weights[0] * Trigram.getWordProbability(sentence, index) +\n\t\tWeights[1] * Bigram.getWordProbability(sentence, index) +\n\t\tWeights[2] * Unigram.getWordProbability(sentence, index));\n }",
"private void updateFrequency(SeekBar seekBar, int progress) {\n frequency_ = Math.pow((double) progress / seekBar.getMax(), 2.0);\n }",
"void documentFrequncy(Set<String> features,\n int index,\n int troush\n ) {\n for (String str : features) {\n switch (index) {\n case 1:\n for (int i = 0; i < count1; i++) {\n if (economydocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyeco.put(str, e);\n }\n e = 0;\n break;\n case 2:\n for (int i = 0; i < count2; i++) {\n if (educationdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyedu.put(str, e);\n }\n e = 0;\n break;\n case 3:\n for (int i = 0; i < count3; i++) {\n if (sportdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyspo.put(str, e);\n }\n e = 0;\n break;\n case 4:\n for (int i = 0; i < count4; i++) {\n if (culturedocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencycul.put(str, e);\n }\n e = 0;\n break;\n case 5:\n for (int i = 0; i < count5; i++) {\n if (accedentdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyaccid.put(str, e);\n }\n e = 0;\n break;\n case 6:\n for (int i = 0; i < count6; i++) {\n if (environmntaldocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyenv.put(str, e);\n }\n e = 0;\n break;\n case 7:\n for (int i = 0; i < count7; i++) {\n if (foreign_affairdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencydep.put(str, e);\n }\n e = 0;\n break;\n case 8:\n for (int i = 0; i < count8; i++) {\n if (law_justicedocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencylaw.put(str, e);\n }\n e = 0;\n break;\n case 9:\n for (int i = 0; i < count9; i++) {\n if (agriculture[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyagri.put(str, e);\n }\n e = 0;\n break;\n case 10:\n for (int i = 0; i < count10; i++) {\n if (politicsdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencypoltics.put(str, e);\n }\n e = 0;\n break;\n// case 11:\n//\n// for (int i = 0; i < count11; i++) {\n// if (social_affairsdocument[i].contains(str)) {\n// e++;\n// }\n// }\n// if (e > troush) {\n// documntfrequencysocial.put(str, e);\n// }\n// e = 0;\n// break;\n case 11:\n for (int i = 0; i < count12; i++) {\n if (science_technologydocument[i].contains(str)) {\n e++;\n }\n }\n\n if (e > troush) {\n documntfrequencysci.put(str, e);\n }\n e = 0;\n break;\n case 12:\n for (int i = 0; i < count13; i++) {\n if (healthdocument[i].contains(str)) {\n e++;\n }\n }\n if (e > troush) {\n documntfrequencyhel.put(str, e);\n }\n e = 0;\n break;\n case 13:\n for (int i = 0; i < count14; i++) {\n if (army[i].contains(str)) {\n e++;\n }\n }\n\n if (e > troush) {\n documntfrequencyarmy.put(str, e);\n }\n e = 0;\n break;\n default:\n break;\n }\n\n }\n }",
"@Override\r\n\t\t\tpublic long getDocumentFrequency(String term) {\n\t\t\t\treturn 0;\r\n\t\t\t}",
"private Integer getFrequency(String key) {\n\t\t\n\t\ttry{\n\t\t\tif(key != null && key.trim().length() > 0)\n\t\t\t\tfrequencyMap.put(key.toString().toLowerCase(), WordplayUtil.getCount(key.toString().toLowerCase(), frequencyMap) + 1);\n\t\t\t\n\t\t\treturn WordplayUtil.getCount(key.toString().toLowerCase(), frequencyMap);\n\t\t}catch(Exception e){\n\t\t\t\n\t\t}\n\t\treturn 1;\n\t}",
"public interface IFrequencyTable {\n\t\n\t/**\n\t * Returns the number of symbols in this frequency table, which is a positive number.\n\t * @return the number of symbols in this frequency table\n\t */\n\tpublic int getSymbolLimit();\n\t\n\t\n\t/**\n\t * Returns the frequency of the specified symbol. The returned value is at least 0.\n\t * @param symbol the symbol to query\n\t * @return the frequency of the symbol\n\t * @throws IllegalArgumentException if the symbol is out of range\n\t */\n\tpublic int get(int symbol);\n\tpublic int get(ISymbol symbol);\n\t\n\t\n\t/**\n\t * Sets the frequency of the specified symbol to the specified value.\n\t * The frequency value must be at least 0.\n\t * @param symbol the symbol to set\n\t * @param freq the frequency value to set\n\t * @throws IllegalArgumentException if the frequency is negative or the symbol is out of range\n\t * @throws ArithmeticException if an arithmetic overflow occurs\n\t */\n\tpublic void set(int symbol, int freq);\n\tpublic void set(ISymbol symbol, int freq);\n\t\n\t\n\t/**\n\t * Increments the frequency of the specified symbol.\n\t * @param symbol the symbol whose frequency to increment\n\t * @throws IllegalArgumentException if the symbol is out of range\n\t * @throws ArithmeticException if an arithmetic overflow occurs\n\t */\n\tpublic void increment(int symbol);\n\tpublic void increment(ISymbol symbol);\n\t\n\t\n\t/**\n\t * Returns the total of all symbol frequencies. The returned value is at\n\t * least 0 and is always equal to {@code getHigh(getSymbolLimit() - 1)}.\n\t * @return the total of all symbol frequencies\n\t */\n\tpublic int getTotal();\n\t\n\t\n\t/**\n\t * Returns the sum of the frequencies of all the symbols strictly\n\t * below the specified symbol value. The returned value is at least 0.\n\t * @param symbol the symbol to query\n\t * @return the sum of the frequencies of all the symbols below {@code symbol}\n\t * @throws IllegalArgumentException if the symbol is out of range\n\t */\n\tpublic int getLow(int symbol);\n\tpublic int getLow(ISymbol symbol);\n\t\n\t\n\t/**\n\t * Returns the sum of the frequencies of the specified symbol\n\t * and all the symbols below. The returned value is at least 0.\n\t * @param symbol the symbol to query\n\t * @return the sum of the frequencies of {@code symbol} and all symbols below\n\t * @throws IllegalArgumentException if the symbol is out of range\n\t */\n\tpublic int getHigh(int symbol);\n\tpublic int getHigh(ISymbol symbol);\n\t\n}",
"public int getFrequency()\n {\n return this.frequency;\n }",
"public int getFreq(){ return frequency;}",
"public int countBucket(int index) throws IndexOutOfBoundsException{\n if(index < 0 || index >= Table.size()) {\n \tthrow new IndexOutOfBoundsException(\"countBucket(): \" \n \t\t\t+ \"index is outside bounds of the table\");\n }\n return Table.get(index).getLength();\n }",
"boolean hasFrequency();",
"@Override\n public int getDocumentFrequencyByTerm(String term) {\n return 0;\n }",
"@Override\n\t public float sloppyFreq(int distance) {\n\t //return 1.0f / (distance + 1);\n\t\t return 1.0f;\n\t }",
"public int getFrequency(int height);",
"public static void getFreq(){\n\t\t\tint mutTotalcounter=0;\n\t\t\t\n\t\t\tfor(int i=0; i<numOfMutations.length-1; i++){\n\t\t\t\t\n\t\t\t\tif(numOfMutations[i]==numOfMutations[i+1]){\n\t\t\t\t\tfrequency[mutTotalcounter]+=1; //if number of mutation is repeated in original array, frequency is incremented\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(numOfMutations[i]!=numOfMutations[i+1])\n\t\t\t\t{\n\t\t\t\t\tmutTotal[mutTotalcounter++]=numOfMutations[i]; //if number is not repeated in array, the next element in array\n\t\t\t\t\t//becomes the next number of mutations that occurred\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((i+1)==numOfMutations.length-1){\n\t\t\t\t\t//used to get the last element in original array since for loop will go out of bounds\n\t\t\t\t\tmutTotal[mutTotalcounter]=numOfMutations[i+1];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"XMut : YFreq\");\n\t\t\t//console display of mutation and frequency values\n\t\t\tfor (int i=0; i<=mutTotal.length-1;i++){\n\t\t\t\tif(mutTotal[i]==0 && frequency[i]==0) continue;\n\t\t\t\tfrequency[i]+=1;\n\t\t\t\tSystem.out.print(mutTotal[i]+\" : \");\n\t\t\t\tSystem.out.print(frequency[i]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}",
"public double sumOfFrequencies() {\r\n\t\tdouble output = 0.0;\r\n\t\tfor(int i=0; i<this.treeNodes.length; i++) {\r\n\t\t\toutput += this.treeNodes[i].getFrequency();\r\n\t\t}\r\n\t\treturn output;\r\n\t}",
"public int getFrequency_(){\r\n\t\treturn frequency_;\r\n\t}",
"public double calculate_score( double idft, Index index, NormalizationType normtype, Double euclidian_length, double weight){\r\n int tf_dt = offsetList.size();\r\n double doc_len = 1;\r\n if(normtype==NormalizationType.NUMBER_OF_WORDS) {\r\n doc_len = index.docLengths.get(docID);\r\n }\r\n if(normtype==NormalizationType.EUCLIDEAN){\r\n doc_len = euclidian_length;\r\n }\r\n score = (tf_dt*idft/doc_len)*weight;\r\n return score*weight;\r\n }",
"public int getNgramFrequency(String ngram) {\n //TODO replace this line with your code\n return -1;\n }",
"private double getUnitWidth(int index)\n {\n return _weights.get(index) / _totalWeight;\n }",
"void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }",
"public java.lang.Integer getFrequency() {\n return frequency;\n }",
"public Double getFrequency() {\n return frequency;\n }",
"public Frequency getFreq() {\n\t\treturn this.freq;\n\t}",
"public java.lang.Integer getFrequency() {\n return frequency;\n }",
"private float calculateSensorFrequency() {\n if (startTime == 0) {\n startTime = System.nanoTime();\n }\n\n long timestamp = System.nanoTime();\n\n // Find the sample period (between updates) and convert from\n // nanoseconds to seconds. Note that the sensor delivery rates can\n // individually vary by a relatively large time frame, so we use an\n // averaging technique with the number of sensor updates to\n // determine the delivery rate.\n float hz = (count++ / ((timestamp - startTime) / 1000000000.0f));\n\n return hz;\n }",
"public int freq()\n\t{\n\t\treturn _lsPeriod.get (0).freq();\n\t}",
"BigInteger getMax_freq();",
"public int getFrequencyOf(T aData) {\n\t\t\n\t\tint frequency = 0;\n\n\t\tint counter = 0;\n\t\tNode currentNode = firstNode;\n\t\twhile ((counter < numEntries) && (currentNode != null)) {\n\t\t\tif (aData.equals(currentNode.data)) {\n\t\t\t\tfrequency++;\n\t\t\t} // end if\n\n\t\t\tcounter++;\n\t\t\tcurrentNode = currentNode.next;\n\t\t} // end while\n\n\t\treturn frequency;\n\t}",
"public Integer getFrequency() {\n return this.frequency;\n }",
"@Override\n public int getTermFrequency(String term) {\n return 0;\n }",
"public int getScore(int index) {\n return ranking.get(index).getvalue();\n }",
"private void countOnePseudoDoc(int docIdx) {\n\t\tFeatureSequence fs = (FeatureSequence)documents.get(docIdx).getData();\n\t\tint[] tokens = fs.getFeatures();\n\t\tdouble[] tmpCounts = new double[numOfTerms];\n\t\tArrays.fill(tmpCounts, 0);\n\t\tfor(int i=0; i<tokens.length; i++) {\n\t\t\tint term = tokens[i];\n\t\t\ttmpCounts[term] += alpha * 1;\n\t\t}\n\t\t\n\t\tPairedInfo pairedDocs = pairs.links.get(docIdx);\n\t\tif(!pairedDocs.isEmpty()) {\n//\t\t\tSystem.out.println(docIdx + \":\" + Arrays.toString(tokens));\n\t\t\tint[] pIds = pairedDocs.getPairedIdsArray();\n//\t\t\tSystem.out.println(docIdx + \": \" + pairedDocs.getLength() + \":\" + Arrays.toString(pIds));\n\t\t\tdouble[] sims = pairedDocs.getPairedSimArray();\n\t\t\tsims = Util.reWeightVector(sims);\n\t\t\tfor(int p=0; p<pIds.length; p++) {\n\t\t\t\tfs = (FeatureSequence)documents.get(p).getData();\n\t\t\t\tint[] pTokens = fs.getFeatures();\n\t\t\t\tfor(int i=0; i<pTokens.length; i++) {\n\t\t\t\t\tint term = pTokens[i];\n\t\t\t\t\ttmpCounts[term] += (1-alpha) * sims[p];\n\t\t\t\t}\n\t\t\t\ttokens = ArrayUtils.append(tokens, fs.getFeatures());\n\t\t\t}\n//\t\t\tSystem.out.println(docIdx + \":\" + Arrays.toString(tokens));\n\t\t}\n\t\t\n\t\tint termNum = MalletTfidf.distinctNumbers(tokens);\n\t\tpseudoTermIndex[docIdx]= new int[termNum];\n\t\tpseudoTf[docIdx] = new double[termNum];\n\t\tint[] tmpTf = new int[termNum];\n\t\tMalletTfidf.countTf(tokens, pseudoTermIndex[docIdx], tmpTf); // count the tf frequency\n\t\tfor(int i=0; i<pseudoTermIndex[docIdx].length; i++) {\n\t\t\tint term = pseudoTermIndex[docIdx][i];\n\t\t\tpseudoTf[docIdx][i] = tmpCounts[term];\n\t\t}\n\t\tpseudoTermWeight[docIdx] = Util.reWeightVector(pseudoTf[docIdx]);\n\t}",
"public ComputeTermFrequencies() { super(); }",
"static int findFrequency(Queue<Integer> q, int k){\n \n // return Collections.frequency(q, k);\n return (int) q.stream().filter(e-> e== k).count();\n }",
"public int getFrequency() {\n\t\t\treturn mCurFrequency;\n\t\t}",
"private void calculateIdf(){\r\n\t\tIdf = new HashMap<>();\r\n\t\tOcc = new HashMap<>();\r\n\t\t\r\n\t\tfor (Entry<String, Document> doc : Docs.entrySet()){\r\n\t\t\tdoc.getValue().wordSet.forEach(word -> {\r\n\t\t\t\tdouble count = Idf.containsKey(word) ? Idf.get(word) : 0;\r\n \tIdf.put(word, count+1);\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tdoc.getValue().words.forEach((w, o) -> words.add(w));\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tfor (Entry<String, Double> e : new HashMap<>(Idf).entrySet()){\r\n\t\t\tIdf.put(e.getKey(),\r\n\t\t\t\t\tMath.log(Idf.keySet().size() / e.getValue()));\r\n\t\t}\r\n\t}",
"public Double getOutputCountsAtIdx(final int index) {\n Double rtn = null;\n if (0 <= index && index < getNumOutputCounts()) {\n rtn = getOutputCounts().get(index);\n }\n return rtn;\n }",
"public int getFrequency(){\n return this.frequency;\n }",
"public static int fib(int index) {\r\n\t\t// default values for fibonacci and f0, f1\r\n\t\tint fibonacci = 0;\r\n\t\tint f0 = 0;\r\n\t\tint f1 = 1;\r\n\r\n\t\t// if index is not 0 or 1 calculate fibonacci\r\n\t\tif (index != 0 && index != 1) {\r\n\r\n\t\t\t// loop starts from 2 (fib on index 2 is 1)\r\n\t\t\tfor (int i = 2; i <= index; i++) {\r\n\t\t\t\tfibonacci = f0 + f1;\r\n\t\t\t\tf0 = f1;\r\n\t\t\t\tf1 = fibonacci;\r\n\t\t\t}\r\n\t\t\t// else fibonacci is index\r\n\t\t} else {\r\n\t\t\tfibonacci = index;\r\n\t\t}\r\n\t\treturn fibonacci;\r\n\t}",
"public double weightedTally(int idx, int value) {\r\n\t\tif (tupleCount == 0) return 0;\r\n\r\n double total = 0.0;\r\n\r\n for (int i = 0; i < tupleCount; i++) {\r\n Tuple t = tuple[i];\r\n\r\n if (t.getValue(idx) == value) {\r\n total += t.getWeight();\r\n }\r\n }\r\n\r\n return total;\r\n\t}",
"public float getFrequency() {\n Integer sR = (Integer)sampleRate.getSelectedItem();\n int intST = sR.intValue();\n int intFPW = framesPerWavelength.getValue();\n\n return (float)intST/(float)intFPW;\n }",
"int getBloomFilterSizeInBytes(int index);",
"private int getSum(int[] freq, int i, int j) {\n int sum = 0;\n for (int x = i; x <= j; x++) {\n sum += freq[x];\n }\n return sum;\n }",
"static void sortByFreq(int arr[], int n){\n Map<Integer, Integer> map = new HashMap<>(); \n List<Integer> outputArray = new ArrayList<>(); \n \n // Assign elements and their count in the list and map \n for (int current : arr) { \n int count = map.getOrDefault(current, 0); \n map.put(current, count + 1); \n outputArray.add(current); \n } \n \n // Compare the map by value \n SortComparator comp = new SortComparator(map); \n \n // Sort the map using Collections CLass \n Collections.sort(outputArray, comp); \n \n // Final Output \n for (Integer i : outputArray) { \n System.out.print(i + \" \"); \n }\n }",
"@Override\n protected float score(BasicStats stats, float termFreq, float docLength) {\n double s = 0.75;\n\n long N = stats.getNumberOfDocuments();\n long df = stats.getDocFreq();\n float cwd = termFreq;\n float cwq = 1; //assume that the query term frequency is always one\n float n = docLength;\n float navg = stats.getAvgFieldLength();\n\n double p1 = (1+Math.log(1+Math.log(cwd)))/(1-s+s*n/navg);\n float ans = (float) (p1 * cwq * Math.log((N+1)/df));\n\n return ans;\n }",
"private Integer updateFrequency(int freq, Denominator moneyType) {\r\n\t\tif(freq == 0){\r\n\t\t\tthis.denominatorFrequencyMap.put(moneyType, new DenominatorCombination(moneyType, ++freq));\r\n\t\t}else{\r\n\t\t\tDenominatorCombination value = this.denominatorFrequencyMap.get(moneyType);\r\n\t\t\tint frequency = 0;\r\n\t\t\tif(value != null){\r\n\t\t\t\tfrequency = value.getFrequency();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.denominatorFrequencyMap.put(moneyType, new DenominatorCombination(moneyType, frequency +1));\r\n\t\t\tfreq++;\r\n\t\t}\r\n\t\treturn freq;\r\n\t}",
"private double getWidthUntil(int index)\n {\n double weightsSum = 0;\n\n for (int i = 0; i < index; i++)\n {\n weightsSum += _weights.get(i);\n }\n\n return weightsSum / _totalWeight;\n }",
"public static void main(String[] args) {\n\t\tint arr[] = {1,5,3,1,2,5,7};\r\n\t\t//all elements are in range 1 to N (7 here)\r\n\t\t//find frequency of each element in O(N) and space complexity 1.\r\n\t\tfor(int i = 0; i < arr.length; i++) {\r\n\t\t\t//add any random number (say 10, greater than length)\r\n\t\t\t//to index 1 less than arr[i]\r\n\t\t\t//%10 to prevent overflow in case value comes out to be greater than allowed length\r\n\t\t\tarr[arr[i]%10 - 1] += 10;\r\n\t\t}\r\n\t\tfor(int i = 0; i < arr.length; i++) {\r\n\t\t\tSystem.out.println(\"Frequency of \" +(i+1) +\" is \"+ (arr[i]/10));\r\n\t\t}\r\n\t}",
"public static int fib(int index){\n int num1 = 0;\n int num2 = 1;\n int temp;\n\n for(int i = 0; i < index-1; i++){\n temp = num2;\n num2 += num1;\n num1 = temp;\n }\n\n return num2;\n }",
"public double getfundamentalFreq() {\n\t\tif ( fundamentalFreq == 0f )\n\t\t\tcalculatefundamentalFreq();\n\n\t\treturn fundamentalFreq;\n\t}",
"public int countSecondaryEdges(CCTerm index) {\n\t\t\tassert index.isRepresentative();\n\t\t\tint count = 0;\n\t\t\tArrayNode node = this;\n\t\t\twhile (node.mPrimaryEdge != null) {\n\t\t\t\tif (getIndexFromStore(node.mPrimaryStore).getRepresentative() == index) {\n\t\t\t\t\tif (node.mSecondaryEdge == null) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tnode = node.mSecondaryEdge;\n\t\t\t\t\tcount++;\n\t\t\t\t} else {\n\t\t\t\t\tnode = node.mPrimaryEdge;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn count;\n\t\t}",
"public static double pitchToFrequency(double pitch) {\n return mConcertAFrequency * Math.pow(2.0, ((pitch - CONCERT_A_PITCH) * (1.0 / 12.0)));\n }",
"public int maxFrequency(int[] nums, int k) {\n Arrays.sort(nums);\n int n = nums.length;\n int res = 1;\n for (int i = 0, j = 1, cost = 0; j < n; ) {\n int nextCost = cost + (nums[j] - nums[j - 1]) * (j - i);\n if (nextCost <= k) {\n res = Math.max(res, ++j - i);\n cost = nextCost;\n } else {\n cost -= nums[j - 1] - nums[i++];\n }\n }\n return res;\n }",
"public int getBloomFilterSizeInBytes(int index) {\n return bloomFilterSizeInBytes_.getInt(index);\n }",
"public int getBloomFilterSizeInBytes(int index) {\n return bloomFilterSizeInBytes_.getInt(index);\n }",
"public void findFrequency(int size) {\r\n\t\tfor(i=0;i<size;i++) {\r\n\t\t\tfor (Entry en : dataEntries) {\t\t\r\n\t\t\t\ttemperature.add(en.getTemperature());\r\n\t\t\t\taches.add(en.getAches());\r\n\t\t\t\tcough.add(en.getCough());\r\n\t\t\t\tsoreThroat.add(en.getSoreThroat());\r\n\t\t\t\tdangerZone.add(en.getDangerZone());\r\n\t\t\t\thasCOVID19.add(en.getHasCOVID19());\r\n\t\t\t\t\r\n\t\t\t\tif (en.getHasCOVID19().equals(\"yes\")) {\r\n\t\t\t\t\ttemperatureIfCOVID19.add(en.getTemperature());\r\n\t\t\t\t\tachesIfCOVID19.add(en.getAches());\r\n\t\t\t\t\tcoughIfCOVID19.add(en.getCough());\r\n\t\t\t\t\tsoreThroatIfCOVID19.add(en.getSoreThroat());\r\n\t\t\t\t\tdangerZoneIfCOVID19.add(en.getDangerZone());\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\t public float idf(int docFreq, int numDocs) {\n\t // return (float)(Math.log(numDocs/(double)(docFreq+1)) + 1.0);\n\t\t return 1.0f;\n\t }",
"private double getAttributeProbability(String attribute, int attributeIndex) {\n\t\tDouble value; // store value of raw data\n\t\tif (attribute.chars().allMatch(Character::isDigit) || attribute.contains(\".\")) {\n\t\t\tvalue = Double.valueOf(attribute);\n\t\t} else {\n\t\t\tvalue = (double) attribute.hashCode();\n\t\t} // end if-else\n\n\n\t\tdouble totalSelectedAttribute = 0;\n\t\tfor (Bin bin : attribBins.get(attributeIndex)) {\n\t\t\tif (bin.binContains(value)) {\n\t\t\t\ttotalSelectedAttribute = bin.getFreq();\n\t\t\t\tbreak;\n\t\t\t} // end if\n\t\t} // end for\n\n\t\tint totalAttributes = 0;\n\t\tfor (int i = 0; i < dc.getDataFold().size(); i++) {\n\t\t\tif (i == testingFold) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\ttotalAttributes += dc.getDataFold().get(i).size();\n\t\t\t} // end if-else\n\t\t} // end for\n\t\treturn totalSelectedAttribute / totalAttributes;\n\t}",
"private void calculatefundamentalFreq() {\n\t\tint count;\n\t\tfloat f0 = 0;\n\t\tSystem.out.println(\"pitches\");\n\t\tSystem.out.println(pitches);\n\t\tfor(count = 0; count < pitches.size(); count++)\n\t\t{\n\t\t\tf0 += pitches.get(count);\n\t\t}\n\t\tif(count != 0)\n\t\t\tfundamentalFreq = f0 / count;\n\t\telse\n\t\t\tfundamentalFreq = 0;\n\t}",
"static void sortByFreq(int arr[], int n)\r\n {\n int[] hash = new int[61];\r\n for (int x : arr) {\r\n hash[x]++;\r\n }\r\n HashMap<Integer, ArrayList<Integer>> valueHash = new HashMap<Integer, ArrayList<Integer>>();\r\n \r\n for (int i = 0; i<hash.length; i++) {\r\n int x = hash[i];\r\n if (x != 0) {\r\n if (valueHash.containsKey(x)) {\r\n valueHash.get(x).add(i);\r\n } else {\r\n ArrayList<Integer> list = new ArrayList<>();\r\n list.add(i);\r\n valueHash.put(x, list);\r\n }\r\n }\r\n }\r\n Set<Integer> keys = valueHash.keySet();\r\n List<Integer> list = new ArrayList<Integer>(keys); \r\n Collections.sort(list, new Comparator<Integer>()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Integer o1, Integer o2)\r\n\t\t\t{\r\n\t\t\t\tif (o1 > o2) return -1;\r\n\t\t\t\t\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t});\r\n StringBuffer buff = new StringBuffer();\r\n for (int x : list) {\r\n \tArrayList<Integer> numList = valueHash.get(x);\r\n \tCollections.sort(numList);\r\n \tfor (int num : numList) {\r\n \t\tint y = x;\r\n \t\twhile (y > 0) {\r\n \t\t\tbuff.append(num + \" \");\r\n \t\t\ty--;\r\n \t\t}\r\n \t}\r\n }\r\n System.out.print(buff);\r\n }",
"@Override\n protected float score(BasicStats stats, float termFreq, float docLength) {\n float k1 = (float)1.2;\n float k2 = 750;\n float b = (float)0.75;\n float N = stats.getNumberOfDocuments();\n float df = stats.getDocFreq();\n float qtermFreq = 1;\n float score = (float)Math.log((N - df + 0.5)/df+0.5);\n score*=((k1+1)*termFreq)/(k1*(1-b+b*(docLength/stats.getAvgFieldLength()))+termFreq);\n score*=((k2+1)*qtermFreq)/(k2+qtermFreq);\n return score; }",
"public int maxFrequency2(int[] nums, int k) {\n Arrays.sort(nums);\n int i = 0;\n int j = 0;\n long sum = k;\n for (int n = nums.length; j < n; j++) {\n sum += nums[j];\n if (sum < (long)nums[j] * (j - i + 1)) {\n sum -= nums[i++];\n }\n }\n return j - i;\n }",
"float getFrequency() throws InterruptedException, ConnectionLostException;",
"public ArrayList<Double> getProbability(int index) {\n ArrayList<Double> result = new ArrayList<>();\n for (int i = 0; i < size; i++) {\n result.add(state[i][index]);\n }\n return result;\n }",
"public static int prodof( int ndims, int dims[] )\n {\n int prod=1;\n for (int i=0; i<ndims; i++) \n prod *= dims[i];\n return prod;\n }",
"public Integer getFrequency(Label prediction, Label real){\n\n\t\tint rowIx = resolveIndex(prediction);\n\t\tint colIx = resolveIndex(real);\n\n\n\t\treturn matrix.get(rowIx).get(colIx);\n\t}",
"public final float score(float tf, float docLength) {\r\n\t\tfloat Robertson_tf = k_1*tf/(tf+k_1*(1-b+b*docLength/averageDocumentLength));\r\n\t\tfloat idf = (float)Idf.log(numberOfDocuments/documentFrequency+1);\r\n\t\treturn keyFrequency * Robertson_tf * idf;\r\n\t}",
"private int calculate(int index) {\n return (head + index) % data.length;\n }",
"public Builder setFreq(int value) {\n bitField0_ |= 0x00000008;\n freq_ = value;\n onChanged();\n return this;\n }",
"public static void main(String[] args) {\n\t\tArrayList<String> animals = new ArrayList<String>();\r\n\t\tanimals.add(\"bat\");\r\n\t\tanimals.add(\"owl\");\r\n\t\tanimals.add(\"bat\");\r\n\t\tanimals.add(\"bat\");\r\n\t\tint occurrences = Collections.frequency(animals, \"owl\");\r\n\t\tSystem.out.println(occurrences);\r\n\t}",
"public int getColorCount(int idx) {\n \t\t\treturn hist.get(idx);\n \t\t}",
"public int getAttackFrequency() {\r\n\t\treturn this.attackFrequency;\r\n\t}",
"public int getColoredProbesCount(int colorIndex);",
"public long getUpdateCounts(int index) {\n return updateCounts_.get(index);\n }",
"private double probTokenByIndexArray(int catIndex, double[] tokenCounts) {\r\n\t\tdouble tokenCatCount = tokenCounts[catIndex];\r\n\t\tif (tokenCatCount < 0) {\r\n\t\t\ttokenCatCount = 0;\r\n\t\t}\r\n\t\tdouble totalCatCount = sum_x[catIndex];\r\n\t\treturn (tokenCatCount + param.smoothingPriorForFeatureInNaiveBayes)\r\n\t\t\t\t/ (totalCatCount + featureIndexerAllDomains.size()\r\n\t\t\t\t\t\t* param.smoothingPriorForFeatureInNaiveBayes);\r\n\t}",
"public int countByTodoDouble(double todoDouble);",
"private static int count(int amount, int coinValueIndex)\n {\n if (coinValueIndex == (coinValues.size() - 1))\n {\n return 1;\n }\n\n int res = 0;\n for (int i = 0; (coinValues.get(coinValueIndex) * i) <= amount; i++)\n {\n res += count(amount - (coinValues.get(coinValueIndex) * i), coinValueIndex + 1);\n }\n\n return res;\n }",
"public int sizeWithIndex(int index) {\n return matrix[index].length;\n }",
"long getUpdateCounts(int index);",
"@Override\n\tpublic Float getFrequency() {\n\t\treturn 3.8f;\n\t}"
] | [
"0.63061416",
"0.6058575",
"0.602343",
"0.601683",
"0.59720796",
"0.5945533",
"0.5657272",
"0.56273526",
"0.5591207",
"0.55474657",
"0.5544912",
"0.5524088",
"0.548205",
"0.5440451",
"0.54368246",
"0.54271936",
"0.5422367",
"0.5364512",
"0.53370833",
"0.53108287",
"0.52832055",
"0.5279277",
"0.527472",
"0.52672595",
"0.5257032",
"0.525637",
"0.5253519",
"0.52391213",
"0.5237772",
"0.52209973",
"0.5216162",
"0.52109164",
"0.51962537",
"0.5195564",
"0.51873755",
"0.51590466",
"0.5152411",
"0.514889",
"0.513886",
"0.51376396",
"0.51351166",
"0.51311547",
"0.51067936",
"0.5095921",
"0.5090598",
"0.5081972",
"0.5058136",
"0.50575775",
"0.5057312",
"0.50396127",
"0.5030335",
"0.50248253",
"0.5006235",
"0.5003849",
"0.49870476",
"0.49784145",
"0.49682248",
"0.495656",
"0.49369964",
"0.49334705",
"0.49225965",
"0.49093056",
"0.49077237",
"0.4898823",
"0.4866137",
"0.48612663",
"0.48592618",
"0.4857369",
"0.48431653",
"0.4841943",
"0.4830318",
"0.48145488",
"0.48031917",
"0.47997344",
"0.47965682",
"0.47936535",
"0.4792414",
"0.47911066",
"0.47787923",
"0.47724578",
"0.47604367",
"0.47602928",
"0.47552815",
"0.4753152",
"0.47515818",
"0.4735276",
"0.47309554",
"0.47216532",
"0.47136518",
"0.46721566",
"0.46652916",
"0.46609092",
"0.46490064",
"0.464143",
"0.46412897",
"0.46353447",
"0.46353185",
"0.46348348",
"0.46345297",
"0.4631703"
] | 0.67343044 | 0 |
Created by a596771 on 28022017. | public interface Constants {
/**
* Add new modules
* params: "Title", "Description", "Module Tag", "Image url"
*/
Module moduleMaps = new Module("Maps", "Google map integrations with geofencing & more...", "", "http://3.bp.blogspot.com/_ZaGO7GjCqAI/Rh47v0ZvaoI/AAAAAAAABjA/20hcUi_0XVo/s640/maps-building-layer.png");
Module moduleVolley = new Module("Volley", "Network calls, caching & queuing...", "personal.aron.devstuff.views.VolleyActivity", "http://4.bp.blogspot.com/-K7j65NVErX4/Vg1fo0yVl5I/AAAAAAAACIM/e9vbLaxqA-U/s1600/image00.png");
Module moduleDynamicForms = new Module("Dynamic Forms", "Creating forms using json...", "personal.aron.devstuff.views.DynamicFormActivity", "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQEXcK-FALJ2WYj0GM015I70-al_Xxe7rkXRqtczHs6bZqRiau1xQ");
Module modulePermissions = new Module("App Permissions", "Asking permissions and handling it...", "personal.aron.devstuff.views.PermissionsActivity", "https://i.kinja-img.com/gawker-media/image/upload/s--Mjlv9Tan--/c_fill,fl_progressive,g_center,h_450,q_80,w_800/18hvgdkyebym4jpg.jpg");
public Module[] moduleList = {moduleMaps, moduleVolley, moduleDynamicForms, modulePermissions};
public int numColumnsGridHome = 2;
public String homeBackDrop = "http://wallarthd.com/wp-content/uploads/2014/08/Art-Android-Wallpaper-Background.jpg";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private void m50366E() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void poetries() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n public void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {}",
"@Override\n protected void initialize() {\n\n \n }",
"private void init() {\n\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"private void kk12() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public int getSize() {\n return 1;\n }",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo12628c() {\n }",
"private void init() {\n\n\n\n }",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"private void m50367F() {\n }"
] | [
"0.5969277",
"0.57893854",
"0.5759421",
"0.57175505",
"0.570995",
"0.5704346",
"0.5690391",
"0.5690391",
"0.56677204",
"0.56169146",
"0.5604548",
"0.5559476",
"0.55492663",
"0.55455846",
"0.5534609",
"0.552318",
"0.55209327",
"0.5519229",
"0.5509291",
"0.5509291",
"0.5509291",
"0.5509291",
"0.5509291",
"0.5506664",
"0.5503858",
"0.5502413",
"0.54991",
"0.54904807",
"0.54896176",
"0.5485934",
"0.5470986",
"0.5469523",
"0.54617476",
"0.54567003",
"0.54531443",
"0.54405725",
"0.542743",
"0.5421114",
"0.5408745",
"0.5402587",
"0.5396508",
"0.5396389",
"0.5388439",
"0.53849196",
"0.53830343",
"0.536114",
"0.536114",
"0.536114",
"0.5360695",
"0.5360695",
"0.5360695",
"0.5360695",
"0.5360695",
"0.5360695",
"0.53601855",
"0.53601855",
"0.53570086",
"0.5352703",
"0.5349702",
"0.5349702",
"0.5349702",
"0.5348279",
"0.5336458",
"0.5336458",
"0.5331644",
"0.53274524",
"0.53274524",
"0.53274524",
"0.5327236",
"0.53099513",
"0.5309442",
"0.5300669",
"0.52935714",
"0.5291808",
"0.52916056",
"0.5287194",
"0.5287194",
"0.5284126",
"0.5284126",
"0.5284126",
"0.5284126",
"0.5284126",
"0.5284126",
"0.5284126",
"0.526872",
"0.52651983",
"0.5262003",
"0.5259793",
"0.52579355",
"0.5255159",
"0.5249776",
"0.52257615",
"0.52241474",
"0.52086085",
"0.5206474",
"0.5204178",
"0.5203283",
"0.52024394",
"0.51970696",
"0.5195767",
"0.51947093"
] | 0.0 | -1 |
Called just before this Command runs the first time | protected void initialize() {
Robot.sender_.setSendData(vision);
initHeading = Robot.drivetrain.getGyroHeading();
if(vision.equalsIgnoreCase(SocketVisionSender.StartDepth)) {
initDistance = Robot.depth_.get_distance() * Drivetrain.kEncoderTicksPerInch;
}
if(vision.equalsIgnoreCase(SocketVisionSender.StartCubeSearch)) {
initDistance = Robot.cube_.get_distance() * Drivetrain.kEncoderTicksPerInch;
}
if(vision.equalsIgnoreCase(SocketVisionSender.StartRFT)) {
initDistance = Robot.rft_.get_distance() * Drivetrain.kEncoderTicksPerInch;
}
if(vision.equalsIgnoreCase(SocketVisionSender.PlatformBlueSearch) || vision.equalsIgnoreCase(SocketVisionSender.PlatformRedSearch)) {
initDistance = Robot.platform_.get_distance();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void preRun() {\n super.preRun();\n }",
"protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}",
"@Override\n public void beforeFirstLogic() {\n }",
"public void prePerform() {\n // nothing to do by default\n }",
"protected void onFirstUse() {}",
"@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}",
"@Override\n public void beforeStart() {\n \n }",
"protected void initialize() {\n\t\tRobot.firstAutonomousCommandDone = true;\n\t}",
"@Override\n\t\t\t\tprotected void onPreExecute()\n\t\t\t\t{\n\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t}",
"public void preExecution() throws CommandListenerException;",
"public void initDefaultCommand() {\n\t\t// Don't do anything\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"protected void onFirstTimeLaunched() {\n }",
"@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}",
"@Override\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"protected void runBeforeStep() {}",
"@Override\n protected void onPreExecute() {\n\n }",
"@Override\n protected void onPreExecute() {\n\n }",
"@Override\n protected void onPreExecute() {\n\n }",
"@Override\n protected void onPreExecute() {\n\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\r\n\t\t}",
"@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }",
"void PrepareRun() {\n }",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t}",
"@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}",
"@Override\r\n\t\t\tprotected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\r\n\t\t\t}",
"public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }",
"protected void onPreExecute() {\n\t\t}",
"@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }",
"protected void initDefaultCommand() {\n \t\t\n \t}",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n protected void onPreExecute() {\n }",
"@Override\n\t protected void onPreExecute() {\n\t }",
"public void initDefaultCommand() {\n \n }",
"@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}",
"public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t}",
"@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"@Override\n public void initDefaultCommand() {\n }",
"protected abstract void preRun();",
"@Override\n public void initDefaultCommand() {\n\n }",
"private Command() {\n initFields();\n }",
"public void initDefaultCommand() {\n \n }",
"@RequiresApi(api = Build.VERSION_CODES.N)\n public void StartInitial() {\n model.StartInitial();\n\n // Add any code required\n\n }",
"public void onStart() {\n /* do nothing - stub */\n }",
"@Override\n protected void startUp() {\n }",
"@Override\r\n\tprotected void onPreExecute() {\n\t}",
"@Override\n public void initDefaultCommand() \n {\n }",
"@Override\n protected void onPreExecute()\n {\n super.onPreExecute();\n }",
"@Override\n protected void onPreExecute() {\n\n super.onPreExecute();\n\n }",
"@Override\r\n protected void onPreExecute() {\n super.onPreExecute();\r\n }",
"@Override\r\n\tpublic void preCheck(CheckCommand checkCommand) throws Exception {\n\r\n\t}",
"public void preInstallHook() {\n }",
"public void startup() {\n neutral();\n }",
"public void initDefaultCommand() {\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\n\t}",
"public void onStart() {\n super.onStart();\n getStockVerification();\n }",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t\tsuper.onStart();\n\t\t\t\t}",
"@Override\n public void onStart() {\n \n }",
"@Override\n public void onStart() {\n \n }",
"@Override\n public void preStart() {\n Reaper.watchWithDefaultReaper(this);\n }"
] | [
"0.7113986",
"0.6542487",
"0.64347786",
"0.6433418",
"0.64082474",
"0.6353506",
"0.6309701",
"0.62537354",
"0.62473047",
"0.62407833",
"0.6167777",
"0.6163407",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.61080366",
"0.608483",
"0.608483",
"0.60805327",
"0.60805327",
"0.6068528",
"0.60680324",
"0.60680324",
"0.60680324",
"0.60680324",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.6061779",
"0.60580724",
"0.6044969",
"0.6041834",
"0.603989",
"0.6035691",
"0.60305667",
"0.60298306",
"0.6012218",
"0.60053056",
"0.6002687",
"0.59965384",
"0.59901303",
"0.5988611",
"0.5988611",
"0.5988611",
"0.5988611",
"0.5988611",
"0.5977599",
"0.59622574",
"0.5961238",
"0.59496737",
"0.59461665",
"0.59449667",
"0.5909627",
"0.5907129",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59067136",
"0.59065974",
"0.5906112",
"0.5902859",
"0.5901146",
"0.5892453",
"0.58864474",
"0.5884274",
"0.58823276",
"0.58756584",
"0.5870505",
"0.5860054",
"0.5857494",
"0.58513945",
"0.5844433",
"0.58421814",
"0.5840623",
"0.5837147",
"0.5837147",
"0.5837147",
"0.58352405",
"0.58352405",
"0.5834613",
"0.58340293",
"0.58340293",
"0.58284307",
"0.58284307",
"0.58276254"
] | 0.0 | -1 |
Called repeatedly when this Command is scheduled to run | protected void execute() {
double error = -1;
double proportion = 1;
double coefficient = 1;
if(vision.equalsIgnoreCase(SocketVisionSender.StartDepth)) { error = Robot.depth_.get_degrees_x(); }
if(vision.equalsIgnoreCase(SocketVisionSender.StartCubeSearch)) { error = Robot.cube_.get_degrees_x(); }
if(vision.equalsIgnoreCase(SocketVisionSender.StartRFT)) { error = Robot.rft_.get_degrees_x(); }
if(vision.equalsIgnoreCase(SocketVisionSender.PlatformBlueSearch) ||
vision.equalsIgnoreCase(SocketVisionSender.PlatformRedSearch)) { error = Robot.platform_.get_degrees_x(); }
if(error == -1) {
proportion = Drivetrain.kPGyroConstant * (Robot.drivetrain.getGyroHeading() - initHeading);
} else {
proportion = error * kP;
//drive vision
if(error == 0) initHeading = Robot.drivetrain.getGyroHeading();
}
coefficient = (initDistance - Robot.drivetrain.getRightEncoderPos(0)) / initDistance;
coefficient = Robot.drivetrain.thresholdVBus(coefficient);
Robot.drivetrain.tankDrive(coefficient * (vBus - proportion), -coefficient * (vBus + proportion));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}",
"@Override\n public void run() {\n schedule();\n }",
"@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }",
"public void run() {\n\t\texecuteCommand( client, false );\n\t}",
"@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }",
"@Override\n\tpublic void execute() {\n\t\tsuper.execute();\n\n\t\t// TBD Needs rewrite for multi tenant\n\t\ttry {\t\n\t\t\tif (async == null || !async)\n\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\telse {\n\t\t\t\tfinal Long id = random.nextLong();\n\t\t\t\tfinal ApiCommand theCommand = this;\n\t\t\t\tThread thread = new Thread(new Runnable() {\n\t\t\t\t @Override\n\t\t\t\t public void run(){\n\t\t\t\t \ttry {\n\t\t\t\t\t\t\tupdated = Crosstalk.getInstance().refresh(customer);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\terror = true;\n\t\t\t\t\t\t\tmessage = e.toString();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t});\n\t\t\t\tthread.start();\n\t\t\t\tasyncid = \"\" + id;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"protected void runEachMinute() {\n \n }",
"@Override\n public void execute() {\n Time.sleep(3000);\n Starting.execute();\n }",
"@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }",
"@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }",
"@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }",
"private void scheduleJob() {\n\n }",
"@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"protected void run() throws IOException {\n\t\tif (lastTime + interval > Time.now())\n\t\t\treturn;\n\t\texitCode = 0; // reset for next run\n\t\trunCommand();\n\t}",
"protected void execute() {\n \tclimber.setCLimberSpeed(0);\n }",
"@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }",
"private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"protected void waitUntilCommandFinished() {\n }",
"public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }",
"private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }",
"public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}",
"@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}",
"@Override\n public void autonomousPeriodic() {\n \n }",
"public void intialRun() {\n }",
"@Override\n public void periodic() {\n UpdateDashboard();\n }",
"public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}",
"@Override\n\tprotected void postRun() {\n\n\t}",
"protected void execute() {\n \t\n \tcurrent_time = System.currentTimeMillis();\n \t\n \tlift.liftDown(LIFT_SPEED);\n }",
"@Override\n\tpublic void teleopPeriodic() //runs the teleOp part of the code, repeats every 20 ms\n\t{\n\t\tScheduler.getInstance().run(); //has to be here, I think that this is looping the method\n\t\tSmartDashboard.putNumber(\"Encoder Left: \", RobotMap.encoderLeft.getRaw()); //putting the value of the left encoder to the SmartDashboard\n\t\tSmartDashboard.putNumber(\"Encoder Right: \", RobotMap.encoderRight.getRaw()); //putting the value of the right encoder to the smartDashboard\n\t\tSmartDashboard.putNumber(\"Ultrasonic sensor\", ultrasonic.getDistanceIn()); //putting the value of the ultrasonic sensor to the smartDashboard\n//\t\tSmartDashboard.putBoolean(\"allOK\", Robot.driveFar.ultrasonicOK);\n\t\tdriveExecutor.execute(); //running the execute method in driveExecutor\n\t\tgrab.execute(); //running the execute() method in GearGrab_Command (should run without this but this is ensuring us that it is on)\n\t}",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void run() {\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"@Override\n public void autonomousPeriodic() {\n\n }",
"@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }",
"@Override\n\tpublic void postRun() {\n\t}",
"public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }",
"private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}",
"protected void runEachSecond() {\n \n }",
"@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }",
"protected void execute() {\n\t\t_xboxControllerToRumble.setRumble(_rumbleType, _rumbleValue);\n\t\t_timesRumbled++;\n\t\tSystem.out.println(\"Rumbling \" + _timesRumbled);\n\t}",
"private void runPeriodic() {\n boolean ok = ScheduledFutureTask.super.runAndReset();\n boolean down = isShutdown();\n // Reschedule if not cancelled and not shutdown or policy allows\n if (ok && !down) {\n updateNextExecutionTime();\n MeasurableScheduler.super.getQueue().add(this);\n }\n // This might have been the final executed delayed\n // task. Wake up threads to check.\n else if (down)\n interruptIdleWorkers();\n }",
"public void execute() {\n\t\tlaunch();\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void run() {\n\t\tif (this.isRunning == true) {\n\t\t\treturn;\n\t\t}\n\t\tthis.isRunning = true;\n\t\t// 写入一条日志\n\t\t\n\t\t// 详细运行参数\n\t\ttry {\n\t\t\tthis.taskRun();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.isRunning = false;\n\t\tthis.addHistory(new Date());\n\t\tif(this.once) {\n\t\t\tthis.cancel();\n\t\t}\n\t}",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void run() {\n systemTurn();\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void taskStarting() {\n\n }",
"@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n log();\n }",
"@PostConstruct\n public void postConstruct() {\n execService = Executors.newScheduledThreadPool(1);\n scheduledFuture = execService.scheduleAtFixedRate(this, 0, PUSH_REPEAT_DELAY, TimeUnit.MILLISECONDS);\n }",
"protected void run() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tautomatischDurchAlleRouten();\n\n\t\t\n\t}",
"public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}",
"@Override\n public void execute() {\n if (System.currentTimeMillis() - currentMs >= timeMs) {\n // Delay has passed so initialize object11\n super.initialize();\n }\n }",
"@Override\n\tprotected void execute() {\n\t\tRobot.collector.setMawOpen(Robot.oi.getCollectorOpen());\n\t\tRobot.collector.setIntakeSpeed(Robot.oi.getCollectorSpeed());\n\t\tRobot.collector.setWristStageOneRetracted(Robot.oi.getWristStageOneRetracted());\n\t\tRobot.collector.setWristStageTwoRetracted(Robot.oi.getWristStageTwoRetracted());\n\t}",
"protected void execute() {\n \tRobot.chassisSubsystem.shootHighM.set(0.75);\n \tif(timeSinceInitialized() >= 1.25){\n \t\tRobot.chassisSubsystem.liftM.set(1.0);\n \t}\n }",
"protected void execute() {\n command.start();\n }",
"@Override\n public void autonomousPeriodic() {\n }",
"@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }",
"@Override\n public void run()\n {\n //Log.d(TAG ,\"==========>Task Run In!\");\n updateDroneLocation();\n }",
"public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}",
"public void execute() {\n setExecuted(true);\n }",
"@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }",
"public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}",
"protected void execute() {\n\t\tshooter.runShooter(power);\n\t}",
"@Override\r\n public void run() {}",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }",
"protected void execute() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n \tshooterWheel.shooterWheelSpeedControllerFwd.Pause();\n \t\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"public void run() {\n ui.printStartingMessage();\n boolean isExit = false;\n\n while (!isExit) {\n isExit = parser.determineCommand();\n }\n\n storage.saveToFile(taskList);\n }"
] | [
"0.6689458",
"0.6631115",
"0.6566414",
"0.65512514",
"0.6530515",
"0.6488629",
"0.64019585",
"0.6380878",
"0.637645",
"0.6363615",
"0.63557744",
"0.6330997",
"0.6295938",
"0.6275704",
"0.6268897",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.6255461",
"0.624429",
"0.6241397",
"0.62090397",
"0.6183934",
"0.6178626",
"0.61670285",
"0.614122",
"0.6137012",
"0.6132416",
"0.6132416",
"0.6132416",
"0.6132416",
"0.61313075",
"0.61313075",
"0.61313075",
"0.6120398",
"0.61091226",
"0.61073244",
"0.610631",
"0.610404",
"0.6101818",
"0.61014",
"0.6099132",
"0.6093559",
"0.6092883",
"0.6092883",
"0.6092883",
"0.6092883",
"0.60926527",
"0.60926485",
"0.6077805",
"0.6074907",
"0.606528",
"0.6062541",
"0.60580474",
"0.6056443",
"0.60554063",
"0.6054432",
"0.60539037",
"0.60538137",
"0.60505164",
"0.60505164",
"0.604125",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6029588",
"0.6027496",
"0.6027496",
"0.6027496",
"0.60272455",
"0.6009362",
"0.6006723",
"0.59990466",
"0.59985226",
"0.59967",
"0.5994757",
"0.5985855",
"0.59771705",
"0.5973198",
"0.5970597",
"0.59701514",
"0.5965313",
"0.5964212",
"0.596267",
"0.59585357",
"0.5954102",
"0.595137",
"0.5949223",
"0.5946874",
"0.5942587",
"0.59406763",
"0.59406763",
"0.59366745"
] | 0.0 | -1 |
Make this return true when this Command no longer needs to run execute() | protected boolean isFinished() {
return Robot.roborio.getYAccelerationComparedToThreshold(threshold, true) ||
initDistance - Robot.drivetrain.getRightEncoderPos(0) < 18 * Drivetrain.kEncoderTicksPerInch;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean execute() {\n return false;\n }",
"@Override\n public boolean execute() {\n return false;\n }",
"public boolean execute(){\n return false;\n }",
"@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}",
"protected boolean onExecute(String command)\n {\n return false;\n }",
"@Override\n\tpublic boolean execute() {\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}",
"public boolean shouldExecute() {\n\t\treturn true;\n\t}",
"protected void execute() {\n \t// literally still do nothing\n }",
"@Override\n public boolean canExecute() {\n return true;\n }",
"protected void execute() {\n finished = true;\n }",
"@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}",
"public Command() {\n this.executed = false;\n }",
"@Override\n public void stopExecute() {\n\n }",
"public boolean shouldExecute()\n {\n if (this.runDelay <= 0)\n {\n if (!this.theRaider.world.getGameRules().getBoolean(\"mobGriefing\"))\n {\n return false;\n }\n\n this.currentTask = -1;\n this.wantsToReapStuff = true;\n }\n\n return super.shouldExecute();\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n public void execute() {\n if(!manipulatorController.getRawButton(button)){\n shooter.shooterMotorsOff();\n hopper.hopperMotorOff();\n isDone = true;\n end(false);\n }\n\n }",
"public void unExecute()\n\t{\n\t}",
"@Override\r\n protected boolean isFinished() {\n return false;\r\n }",
"@Override\r\n public void executeCommand() {\r\n shell.stopRunning();\r\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished()\n {\n return false;\n }",
"@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\t\t\n\t}",
"@Override\n protected boolean isFinished() \n {\n return false;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n boolean isFinished() {\n return false;\n }",
"public boolean shouldContinueExecuting() {\n return (this.shouldExecute() || !this.entity.getNavigator().noPath()) && this.isBowInMainhand();\n }",
"protected boolean isFinished() {\r\n return false;\r\n }",
"protected boolean isFinished() {\r\n return false;\r\n }",
"public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }",
"public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }",
"protected void waitUntilCommandFinished() {\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"protected void executionSuccess() {\n this.isUndoable = true;\n }",
"protected boolean isFinished() {\n return false;\n \n }",
"boolean redoLastCommand() throws Exception;",
"@Override\n public boolean isFinished() {\n return false;\n }",
"public boolean shouldContinueExecuting() {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }",
"@Override\r\n public void execute()\r\n {\r\n printInvalidCommandMessage();\r\n }"
] | [
"0.77310985",
"0.77310985",
"0.76764053",
"0.7648061",
"0.7595155",
"0.7551003",
"0.6876956",
"0.6745719",
"0.672735",
"0.66821593",
"0.6587288",
"0.6565697",
"0.64980936",
"0.6387016",
"0.63732547",
"0.6357354",
"0.6357354",
"0.63506126",
"0.63429135",
"0.6329652",
"0.6326282",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.6319508",
"0.63161886",
"0.6310226",
"0.6310226",
"0.6298257",
"0.627583",
"0.6274842",
"0.6274842",
"0.6250373",
"0.6250373",
"0.6250373",
"0.6250373",
"0.6250373",
"0.6250373",
"0.6250373",
"0.6250373",
"0.6250373",
"0.62122744",
"0.6210109",
"0.62095803",
"0.62095803",
"0.62063044",
"0.6204503",
"0.6195943",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.61855954",
"0.6171002",
"0.616175",
"0.616175",
"0.616175",
"0.616175",
"0.616175",
"0.6158149",
"0.615355",
"0.614993",
"0.61464834",
"0.61442846",
"0.6140666"
] | 0.0 | -1 |
Called once after isFinished returns true | protected void end() {
Robot.drivetrain.tankDrive(0, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\n protected boolean isFinished()\n {\n return false;\n }",
"@Override\n protected boolean isFinished() \n {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n boolean isFinished() {\n return false;\n }",
"@Override\r\n protected boolean isFinished() {\n return false;\r\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished(){\r\n return true;\r\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"protected boolean isFinished() {\n return true;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n protected boolean isFinished() {\n return isFinished;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\n public boolean isFinished() {\n return false;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"@Override\r\n protected boolean isFinished() {\n if (super.isFinished()) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"@Override\n protected boolean isFinished() {\n return finished;\n }",
"protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"protected boolean isFinished() {\n\t\treturn true;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"@Override\n\tprotected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }"
] | [
"0.85854495",
"0.85395205",
"0.83341306",
"0.83313096",
"0.83313096",
"0.83068",
"0.8305024",
"0.8298836",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.82765675",
"0.8268994",
"0.8237624",
"0.8237624",
"0.82293963",
"0.82061803",
"0.82061803",
"0.82061803",
"0.82061803",
"0.82061803",
"0.82061803",
"0.8163012",
"0.81589365",
"0.81589365",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.8152044",
"0.81458783",
"0.81380373",
"0.81380373",
"0.81380373",
"0.81380373",
"0.81380373",
"0.8125088",
"0.8125088",
"0.81129867",
"0.8111655",
"0.808855",
"0.8083022",
"0.8040255",
"0.8040255",
"0.8040255",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8032732",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885",
"0.8026885"
] | 0.0 | -1 |
Called when another command which requires one or more of the same subsystems is scheduled to run | protected void interrupted() {
end();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // withtimeout-- girdigin sure kadar\n // yapar\n // (new RunShooter(m_shooter, 1).withTimeout(0.75),new RunLift(m_lift,\n // 0.5).raceWith(new RunHopper(m_hopper, 0.8)),\n // new AutonomousDrive(m_drive, 0.8, 300).withTimeout(3));\n\n super(new RunShooter(m_shooter, 0.8).withTimeout(0.75),\n new RunShooter(m_shooter, 0.8).raceWith(new RunHopper(m_hopper, 0.8)).withTimeout(2.5),\n new AutonomousDrive(m_drive, -0.8, -300).raceWith(new RunIntake(m_intake, 0.8)\n .raceWith(new RunHopper(m_hopper, 0.8).raceWith(new RunShooter(m_shooter, 0.3),\n new AutonomousDrive(m_drive, 0.8, 300), new RunShooter(m_shooter, 0.8).withTimeout(0.75),\n new RunShooter(m_shooter, 0.8).raceWith(new RunHopper(m_hopper, 0.8).withTimeout(2.5))))));\n\n }",
"@Override\n /**\n * Set the default command for a subsystem here\n */\n public void initDefaultCommand() \n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"private void registerCommands() {\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtick\")\n\t\t\t\t\t\t.then(argument(\"Number of Ticks Between Sends\", integer())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.timeBetween = getInteger(c, \"Number of Ticks Between Sends\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message will be sent every \" + getInteger(c, \"Number of Ticks Between Sends\") + \" ticks.\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurphrase [Recurring Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurphrase\")\n\t\t\t\t\t\t.then(argument(\"Recurring Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentPhrase = getString(c, \"Recurring Phrase\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + getString(c, \"Recurring Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arrecurtoggle\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecurtoggle\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.persistentChat = !config.persistentChat;\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message has been turned \" + (config.persistentChat ? \"on\" : \"off\") + \".\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//arrecur [Enabled?]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arrecur\")\n\t\t\t\t\t\t.then(argument(\"Enabled?\", bool())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.persistentChat = getBool(c, \"Enabled?\");\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Recurring message set to \\\"\" + (config.persistentChat ? \"on\" : \"off\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//aradditem [Item Name] [Trigger Term]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddterm\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string())\n\t\t\t\t\t\t\t\t.then(argument(\"Trigger Term\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.terms.add(getString(c, \"Trigger Term\") + \"|\" + getString(c, \"Item Name\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tHelper.setupChatMessages();\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added term \\\"\" + getString(c, \"Trigger Term\") + \"\\\" to item \\\"\" + getString(c, \"Item Name\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t})))\n\t\t));\n\t\t//araddin [In Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddin\")\n\t\t\t\t\t\t.then(argument(\"In Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.ins.add(getString(c, \"In Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added in-phrase \\\"\" + getString(c, \"In Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//araddout [Out Phrase]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddout\")\n\t\t\t\t\t\t.then(argument(\"Out Phrase\", string())\n\t\t\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\t\t\tconfig.outs.add(getString(c, \"Out Phrase\"));\n\t\t\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added out-phrase \\\"\" + getString(c, \"Out Phrase\") + \"\\\".\"), false);\n\t\t\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t\t\t}))\n\t\t));\n\t\t//arreload\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"arreload\")\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tarreload();\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"AutoReply config reloaded.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t})\n\t\t));\n\t\t//araddshopitem [Item Name] [Quantity] [Price]\n\t\tCommandRegistry.INSTANCE.register(false, (dispatcher) -> dispatcher.register(\n\t\t\t\tCommandManager.literal(\"araddshopitem\")\n\t\t\t\t\t\t.then(argument(\"Item Name\", string()).then(argument(\"Quantity\", string()).then(argument(\"Price\", string())\n\t\t\t\t\t\t.executes(c -> {\n\t\t\t\t\t\t\tconfig.shopItems.add(getString(c, \"Item Name\") + \"|\" + getString(c, \"Quantity\") + \"|$\" + getString(c, \"Price\"));\n\t\t\t\t\t\t\tConfigManager.saveConfig(config, \"AutoReplyConfigFile\");\n\t\t\t\t\t\t\tc.getSource().sendFeedback(new StringTextComponent(\"Added \" + getString(c, \"Item Name\") + \" to shop stock.\"), false);\n\t\t\t\t\t\t\treturn Command.SINGLE_SUCCESS;\n\t\t\t\t\t\t}))))\n\t\t));\n\t}",
"@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}",
"public InstantCommand(Runnable toRun, Subsystem... requirements) {\n\t\trequireNonNull(toRun);\n\t\tm_toRun = toRun;\n\t\taddRequirements(requirements);\n\t}",
"private void registerCommands() {\n }",
"protected void runSubCommand(int num) {\n subCommands[num].execute();\n }",
"public static void twoClientSetupProcesses() {\n\n\tList<String> aClientTags=TagsFactory.getAssignmentTags().getTwoClientClientTags();\n\tList<String> aServerTags=TagsFactory.getAssignmentTags().getTwoClientServerTags();\n\n\ttwoClientSetupProcesses(aClientTags, aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Registry\", 500);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Server\", 2000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_0\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_1\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}",
"@Override\r\n\tpublic void subTask(String name) {\n\t}",
"@Override\n\t\t\tpublic void subTask(String name) {\n\t\t\t\t\n\t\t\t}",
"void beginPeriodic() {\n\t\t// if some subsystems need to get called in all modes at the beginning\n\t\t// of periodic, do it here\n\n\t\t// don't need to do anything\n\t}",
"@Override\n public void configureTasks( ScheduledTaskRegistrar registrar ) {\n registrar.setScheduler( rhizomeScheduler() );\n }",
"private void isCommandInstance() throws SystemException {\r\n\t\tif (commandInstance != null) return;\r\n\t\tif (commandResponder != null) SystemException.softwareProblem(\"This was not a command instance. There is a bug. Either the super for the command is not well formed or it called a method it shouldn't.\");\r\n\t\tinstantiateCommand();\r\n\t}",
"public PnuematicSubsystem() {\n\n }",
"public void TurnCommand() {\n\n requires(Robot.driveSubsystem);\n\n }",
"public void performOtherTasks() {\n\t\t\tSystem.out.println(\"performing tasks other than servicing\");\n\t\t\t// do whatever you want to do in the servicing package\n\t\t}",
"public void act() {\n\t\tfor (Manager manager : managers.values())\n\t\t\tmanager.act();\n\t\t\n\t\tif (hasPriority == Priority.ARMY && armyQueue.size() > 0) {\n\t\t\t//Tell ArmyManager to build top unit in queue\n\t\t}\n\t\telse if (hasPriority == Priority.BUILDINGS && buildingQueue.size() > 0) {\n\t\t\t//Tell BuildManager to build top building in queue\n\t\t}\n\t\telse if (hasPriority == Priority.WORKERS) {\n\t\t\t//ResourceManager has requested more workers\n\t\t}\n\t}",
"@SystemAPI\npublic interface ScheduleEvent extends IOperation {\n\t/**\n\t * \n\t * @return\tDe duur van de planbare actie (in Millis)\n\t */\n\tpublic TimeDuration getDuration();\n\t\n\t/**\n\t * \n\t * @return\tDe periode waarop de actie gescheduled is\n\t * \t\t\tDit wordt ingesteld door de Scheduler\n\t */\n\t@SystemAPI\n\tpublic TimePeriod getScheduledPeriod(); \n\t\n\t/**\n\t * Als de schedulable specifieke resources nodig heeft, bv. een bepaalde \n\t * dokter of verpleegster, dan komen deze in de onderstaande List.\n\t * @return\t\tDe lijst met specifieke resources die nodig zijn.\n\t */\n\tpublic List<ScheduleResource> neededSpecificResources();\n\t\n\t/**\n\t * \n\t * @return\tEen lijst met de nodige resources.\n\t */\n\tpublic List<ResourceType> neededResources();\n\t\n\t/**\n\t * Zet de periode wanneer de actie gescheduled is.\n\t * @param scheduledPeriod\tDe nieuwe geplande periode\n\t * @param usesResources\tDe resources die gebruikt worden bij het plannen\n\t * @param campus De campus die gebruikt wordt bij het plannen\n\t * @throws SchedulingException Als er niet gepland kan worden\n\t */\n\tpublic void schedule(TimePeriod scheduledPeriod, List<ScheduleResource> usesResources, Campus campus) throws SchedulingException;\n\t\t\n\t/**\n\t * Een methode om te controleren of de events behorende bij een warenhuis gepland kunnen worden.\n\t * @param warehouse\n\t * \t\t Het warenhuis waar gepland moet worden\n\t * @return true\n\t * \t\t Als er gepland kan worden\n\t * @return false\n\t * \t\t Als er niet gepland kan worden\n\t */\n\tpublic boolean canBeScheduled(Warehouse warehouse) ;\n\t\n\t/**\n\t * Een methode om een warehuis te updaten. Met de booleanse waarde\n\t * kan de actie ongedaan gemaakt worden.\n\t * \n\t * @param warehouse\n\t * \t\t Het warenhuis geupdate moet worden\n\t * @param inverse\n\t * \t\t De soort update\n\t */\n\tpublic void updateWarehouse(Warehouse warehouse, boolean inverse) ;\n\t\n\t/**\n\t * Een methode om de prioriteit op te vragen.\n\t * @return\n\t */\n\tpublic Priority getPriority() ;\t\n\t\n\t/**\n\t * Methode die de campus waarop deze actie wordt uitgevoerd opslaat, zodat\n\t * ze later kan gereproduceerd worden wanneer er geannuleerd werd.\n\t * @param \tcampus\n\t * \t\t\tDe CampusId van de campus die moet opgeslagen worden\n\t */\n\tpublic void setHandlingCampus(CampusId campus) ;\n\t\n\t/**\n\t * Methode die de opgeslagen campus terug opvraagt.\n\t * @return\tDe opgeslagen campus\n\t */\n\tpublic CampusId getHandlingCampus();\n\t\n\t/**\n\t * \n\t * @return event type\n\t */\n\t@SystemAPI\n\tpublic EventType getEventType();\n\t\n\t/**\n\t * @return start event\n\t */\n\tpublic Event getStart();\n\t\n\t/**\n\t * \n\t * @return stop event\n\t */\n\tpublic Event getStop();\n}",
"@Override\n protected int run() throws Exception {\n if (User.current() == null) {\n stderr.println(\"Must be logged in before executing...\");\n return 1;\n }\n\n // First check to see if they exist\n Jenkins instance = Jenkins.getInstance();\n AbstractProject project1 = instance.getItemByFullName(first, AbstractProject.class);\n if (project1 == null) {\n throw new CmdLineException(null, \"Project: \" + first + \" does not exist\");\n }\n AbstractProject project2 = instance.getItemByFullName(second, AbstractProject.class);\n if (project2 == null) {\n throw new CmdLineException(null, \"Project: \" + second + \" does not exist\");\n }\n\n // Make sure user has permission to build.\n if (!project1.hasPermission(Item.BUILD) &&\n !project2.hasPermission(Item.BUILD)) {\n throw new CmdLineException(null, \"You do not have permission to execute these jobs.\");\n }\n\n // Let's build both projects.\n project1.scheduleBuild2(0);\n project2.scheduleBuild2(0);\n return 0;\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n setDefaultCommand(new tankDrive());\n }",
"@Scheduled(cron = \"${toil1.schedule2}\")\n\tpublic void toiL1Schedule2() {\n\t\tlog.info(\"Running toiL1Schedule2\");\n\t\trunToiL1Schedule();\n\t\trunToiBlogsL1Schedule();\n\t}",
"private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}",
"public void verifyAndRegister() {\n // All top level commands are supposed to be registered in the command manager\n this.internalTree.children.stream().map(Node::getValue).forEach(commandArgument -> {\n if (!(commandArgument instanceof StaticArgument)) {\n throw new IllegalStateException(\"Top level command argument cannot be a variable\");\n }\n });\n\n this.checkAmbiguity(this.internalTree);\n\n // Verify that all leaf nodes have command registered\n this.getLeaves(this.internalTree).forEach(leaf -> {\n if (leaf.getOwningCommand() == null) {\n throw new NoCommandInLeafException(leaf);\n } else {\n final Command<C> owningCommand = leaf.getOwningCommand();\n this.commandManager.getCommandRegistrationHandler().registerCommand(owningCommand);\n }\n });\n\n // Register command permissions\n this.getLeavesRaw(this.internalTree).forEach(node -> {\n // noinspection all\n final CommandPermission commandPermission = node.getValue().getOwningCommand().getCommandPermission();\n /* All leaves must necessarily have an owning command */\n node.nodeMeta.put(\"permission\", commandPermission);\n // Get chain and order it tail->head then skip the tail (leaf node)\n List<Node<CommandArgument<C, ?>>> chain = this.getChain(node);\n Collections.reverse(chain);\n chain = chain.subList(1, chain.size());\n // Go through all nodes from the tail upwards until a collision occurs\n for (final Node<CommandArgument<C, ?>> commandArgumentNode : chain) {\n final CommandPermission existingPermission = (CommandPermission) commandArgumentNode.nodeMeta\n .get(\"permission\");\n\n CommandPermission permission;\n if (existingPermission != null) {\n permission = OrPermission.of(Arrays.asList(commandPermission, existingPermission));\n } else {\n permission = commandPermission;\n }\n\n /* Now also check if there's a command handler attached to an upper level node */\n if (commandArgumentNode.getValue() != null && commandArgumentNode\n .getValue()\n .getOwningCommand() != null) {\n final Command<C> command = commandArgumentNode.getValue().getOwningCommand();\n if (this\n .getCommandManager()\n .getSetting(CommandManager.ManagerSettings.ENFORCE_INTERMEDIARY_PERMISSIONS)) {\n permission = command.getCommandPermission();\n } else {\n permission = OrPermission.of(Arrays.asList(permission, command.getCommandPermission()));\n }\n }\n\n commandArgumentNode.nodeMeta.put(\"permission\", permission);\n }\n });\n }",
"void legalCommand();",
"@Override\n\tpublic void teleopInit() {\n\n\t\tSystem.out.println(\"Teleop init\");\n\t\tif (autonomousCommand != null)\n\t\t\tautonomousCommand.cancel();\n\t\tScheduler.getInstance().add(new DriveCommand());\n\n\t\t\n\t}",
"public void registerCommand(BaseCommand baseCommand) throws Exception {\n baseCommand.setShard(shard);\n Command botCommand = baseCommand.botCommand;\n for (BaseCommand cmd : baseCommands) {\n if (StringUtils.stripAccents(cmd.getCommandIdentifier()).equalsIgnoreCase(StringUtils.stripAccents\n (botCommand.getCommandIdentifier())))\n {\n System.out.println(\"Multiple baseCommands cannot be registered under the same name. Ignoring new \" +\n \"instance\" +\n \".\\n\" +\n \"Name: \" + baseCommand.toString());\n return;\n }\n }\n botCommand.setupSubcommands();\n baseCommands.add(baseCommand);\n commandUsages.put(baseCommand.commandIdentifier, (long) 0);\n System.out.println(\"Successfully registered \" + baseCommand.toString());\n }",
"public abstract void checkingCommand(String nameOfCommand, ArrayList<Unit> units);",
"@Test\n public void testSubsystem1_1() throws Exception {\n KernelServices servicesA = super.createKernelServicesBuilder(createAdditionalInitialization())\n .setSubsystemXml(readResource(\"keycloak-1.1.xml\")).build();\n Assert.assertTrue(\"Subsystem boot failed!\", servicesA.isSuccessfulBoot());\n ModelNode modelA = servicesA.readWholeModel();\n super.validateModel(modelA);\n }",
"@Override\n public void adjustStartEventSubscriptions(ProcessDefinitionEntity newLatestProcessDefinition, ProcessDefinitionEntity oldLatestProcessDefinition) {\n super.adjustStartEventSubscriptions(newLatestProcessDefinition, oldLatestProcessDefinition);\n\n LOG.debug(\"Adding start event simulation timers.\");\n removeObsoleteStartEventSimulationJobs(newLatestProcessDefinition);\n addStartEventSimulationJobs(newLatestProcessDefinition);\n }",
"private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}",
"public void testRunnableWithOtherRule() {\n \t\tISchedulingRule rule = new ISchedulingRule() {\n \t\t\tpublic boolean contains(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t\tpublic boolean isConflicting(ISchedulingRule rule) {\n \t\t\t\treturn rule == this;\n \t\t\t}\n \t\t};\n \t\ttry {\n \t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\tpublic void run(IProgressMonitor monitor) {\n \t\t\t\t\t//noop\n \t\t\t\t}\n \t\t\t}, rule, IResource.NONE, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"1.99\", e);\n \t\t}\n \t}",
"private void loadRegistredCommands() {\n ServiceLoader<Command> loader = ServiceLoader.load(Command.class);\n for (Command command : loader) {\n addCommand(command);\n }\n }",
"public void autonomousInit(){\n\t \t//resetAndDisableSystems();\n\t\t \n\t \tautonomousCommand = (Command) autoChooser.getSelected();\n\t \tautonomousCommand.start();\n\t \t\n\t \t\n\t }",
"private void scheduleOrExecuteJob() {\n try {\n for (TaskScheduler entry : this.schedulers.values()) {\n StandardTaskScheduler scheduler = (StandardTaskScheduler) entry;\n // Maybe other thread close&remove scheduler at the same time\n synchronized (scheduler) {\n this.scheduleOrExecuteJobForGraph(scheduler);\n }\n }\n } catch (Throwable e) {\n LOG.error(\"Exception occurred when schedule job\", e);\n }\n }",
"private void registerCommands() {\n CommandSpec showBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.show\")\r\n .description(Text.of(\"Show how many Banpoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsShow.class)).build();\r\n\r\n CommandSpec addBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.add\")\r\n .description(Text.of(\"Add a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsAdd.class)).build();\r\n\r\n CommandSpec removeBanpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints.remove\")\r\n .description(Text.of(\"Remove a specified amount of Banpoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandBanpointsRemove.class)).build();\r\n\r\n CommandSpec banpoints = CommandSpec.builder().permission(\"dtpunishment.banpoints\")\r\n .description(Text.of(\"Show the Banpoints help menu\")).arguments(GenericArguments.none())\r\n .child(showBanpoints, \"show\").child(addBanpoints, \"add\").child(removeBanpoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, banpoints, \"banpoints\", \"bp\");\r\n\r\n CommandSpec showMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.show\")\r\n .description(Text.of(\"Show how many Mutepoints the specified player has \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsShow.class)).build();\r\n\r\n CommandSpec addMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsAdd.class)).build();\r\n\r\n CommandSpec removeMutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Add a specified amount of Mutepoints to a player \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))),\r\n GenericArguments.onlyOne(GenericArguments.integer(Text.of(\"amount\"))))\r\n .executor(childInjector.getInstance(CommandMutepointsRemove.class)).build();\r\n\r\n CommandSpec mutepoints = CommandSpec.builder().permission(\"dtpunishment.mutepoints\")\r\n .description(Text.of(\"Show the Mutepoints help menu\")).arguments(GenericArguments.none())\r\n .child(showMutepoints, \"show\").child(addMutepoints, \"add\").child(removeMutepoints, \"remove\").build();\r\n\r\n Sponge.getCommandManager().register(this, mutepoints, \"mutepoints\", \"mp\");\r\n\r\n CommandSpec playerInfo = CommandSpec.builder().permission(\"dtpunishment.playerinfo\")\r\n .description(Text.of(\"Show your info \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.optionalWeak(GenericArguments.requiringPermission(\r\n GenericArguments.user(Text.of(\"player\")), \"dtpunishment.playerinfo.others\"))))\r\n .executor(childInjector.getInstance(CommandPlayerInfo.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, playerInfo, \"pinfo\", \"playerinfo\");\r\n\r\n CommandSpec addWord = CommandSpec.builder().permission(\"dtpunishment.word.add\")\r\n .description(Text.of(\"Add a word to the list of banned ones \"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.string(Text.of(\"word\"))))\r\n .executor(childInjector.getInstance(CommandWordAdd.class)).build();\r\n\r\n Sponge.getCommandManager().register(this, addWord, \"addword\");\r\n\r\n CommandSpec unmute = CommandSpec.builder().permission(\"dtpunishment.mutepoints.add\")\r\n .description(Text.of(\"Unmute a player immediately (removing all mutepoints)\"))\r\n .arguments(GenericArguments.onlyOne(GenericArguments.user(Text.of(\"player\"))))\r\n .executor(childInjector.getInstance(CommandUnmute.class)).build();\r\n\r\n CommandSpec reloadConfig = CommandSpec.builder().permission(\"dtpunishment.admin.reload\")\r\n .description(Text.of(\"Reload configuration from disk\"))\r\n .executor(childInjector.getInstance(CommandReloadConfig.class)).build();\r\n\r\n CommandSpec adminCmd = CommandSpec.builder().permission(\"dtpunishment.admin\")\r\n .description(Text.of(\"Admin commands for DTPunishment\")).child(reloadConfig, \"reload\")\r\n .child(unmute, \"unmute\").build();\r\n\r\n Sponge.getCommandManager().register(this, adminCmd, \"dtp\", \"dtpunish\");\r\n }",
"@Command\n\tpublic void buscar() {\n\t}",
"private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"private void registerCommands(){\n getCommand(\"mineregion\").setExecutor(new MineRegionCommand());\n getCommand(\"cellblock\").setExecutor(new CellBlockCommand());\n getCommand(\"cell\").setExecutor(new CellCommand());\n getCommand(\"prisonblock\").setExecutor(new PrisonBlockCommand());\n getCommand(\"rankup\").setExecutor(new RankUpCommand());\n getCommand(\"portal\").setExecutor(new PortalCommand());\n }",
"private static void executeTask02() {\n }",
"public void teleopPeriodic() \r\n {\r\n Watchdog.getInstance().feed();\r\n Scheduler.getInstance().run();\r\n \r\n //Polls the buttons to see if they are active, if they are, it adds the\r\n //command to the Scheduler.\r\n if (mecanumDriveTrigger.get()) \r\n Scheduler.getInstance().add(new MechanumDrive());\r\n \r\n else if (tankDriveTrigger.get())\r\n Scheduler.getInstance().add(new TankDrive());\r\n \r\n else if (OI.rightJoystick.getRawButton(2))\r\n Scheduler.getInstance().add(new PolarMechanumDrive());\r\n \r\n resetGyro.get();\r\n \r\n //Puts the current command being run by DriveTrain into the SmartDashboard\r\n SmartDashboard.putData(DriveTrain.getInstance().getCurrentCommand());\r\n \r\n SmartDashboard.putString(ERRORS_TO_DRIVERSTATION_PROP, \"Test String\");\r\n \r\n \r\n }",
"public void subTask(String name) {\n\r\n\t}",
"void cronScheduledProcesses();",
"public DefaultAutonomous(DriveSubsystem ds,\n ShooterSubSystem ss,\n LEDSubSystem ls,\n XboxController manipulator,\n double distanceInFeet) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n super(new ShooterCommand(ss, ls, manipulator, true, Constants.kShooterSpeedSlow).withTimeout(5),\n new DriveADistanceInFeet(ds, distanceInFeet, true).withTimeout(5));\n }",
"private static void setSubsystems()\n {\n //Components\n //Talons\n frontLeftTalon.setName(\"DrivetrainSubsystem\", \"FrontLeftDriveTalon\");\n frontRightTalon.setName(\"DrivetrainSubsystem\", \"FrontRightDriveTalon\");\n rearLeftTalon.setName(\"DrivetrainSubsystem\", \"RearLeftDriveTalon\");\n rearRightTalon.setName(\"DrivetrainSubsystem\", \"RearRightDriveTalon\");\n //Sensors\n //navX.setName(\"SensorSubsystem\", \"NavX\");\n System.out.print(pigeon.getAbsoluteCompassHeading());\n \n //Subsystems\n drivetrainSubsystem.setName(\"DrivetrainSubsystem\", \"DrivetrainSubsystem\");\n sensorSubsystem.setName(\"SensorSubsystem\", \"SensorSubsystem\");\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new HatchExtend());\n setDefaultCommand(new HatchRetract());\n }",
"private void scheduleJob() {\n\n }",
"@Override\r\n public void robotPeriodic() {\r\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\r\n // commands, running already-scheduled commands, removing finished or interrupted commands,\r\n // and running subsystem periodic() methods. This must be called from the robot's periodic\r\n // block in order for anything in the Command-based framework to work.\r\n CommandScheduler.getInstance().run();\r\n }",
"@Test\n\tpublic void testAddCommand1() {\n\t\tString task1 = \"normal task\";\n\t\tString task2 = \"priority task\";\n\t\tString label = testData.getCurrLabel();\n\t\t\n\t\tAddCommand comd = new AddCommand(task1, new TDTDateAndTime(), false);\n\t\tassertEquals(String.format(AddCommand.MESSAGE_ADD_FEEDBACK, label), comd.execute(testData));\n\t\t\n\t\tcomd = new AddCommand(task2, new TDTDateAndTime(), true);\n\t\tassertEquals(String.format(AddCommand.MESSAGE_ADD_FEEDBACK, label), comd.execute(testData));\n\t\t\n\t\tArrayList<Task> taskList = testData.getTaskListFromLabel(label);\n\t\tassertEquals(2, taskList.size());\n\t\tassertTrue(task2.equals(taskList.get(0).getDetails()));\n\t\tassertTrue(taskList.get(0).isHighPriority());\n\t\tassertTrue(task1.equals(taskList.get(1).getDetails()));\n\t\tassertFalse(taskList.get(1).isHighPriority());\n\t}",
"protected void execute() {\n\t\tif(RobotMap.gearDoorExtended)\n\t\t\tgearSubsystem.retractPiston();\n\t\telse\n\t\t\tif(Robot.oi.getRightStick().getTrigger() || auton)\n\t\t\t\tgearSubsystem.extendPiston();\n\t\t\n\t}",
"@Override\n\tpublic void autonomousInit() {\n\t\tif (autonomousCommand != null)\n\t\t\tlowGearCommand.start();\n\t\tautonomousCommand.start();\n\t}",
"public void subTask(String tr) {\n\t\t\n\t}",
"public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }",
"private void processWTBy(WasTriggeredBy dep) {\n\n\t}",
"@Override\n public void autonomousInit() {\n\tgameData.readGameData();\n\tautonomousCommand = (Command) chooserMode.getSelected();\n\tdriveSubsystem.resetEncoders();\n\televatorSubsystem.resetEncoder();\n\t// schedule the autonomous command\n\tif (autonomousCommand != null) {\n\t // SmartDashboard.putString(\"i\", \"nit\");\n\t autonomousCommand.start();\n\t}\n }",
"@Override\n public void run() {\n CuratorLocker locker = new CuratorLocker(schedulerBuilder.getServiceSpec());\n\n Runtime.getRuntime().addShutdownHook(new Thread(() -> {\n LOGGER.info(\"Shutdown initiated, releasing curator lock\");\n locker.unlock();\n }));\n locker.lock();\n\n SchedulerConfig schedulerConfig = SchedulerConfig.fromEnv();\n Metrics.configureStatsd(schedulerConfig);\n AbstractScheduler scheduler = schedulerBuilder.build();\n scheduler.start();\n Optional<Scheduler> mesosScheduler = scheduler.getMesosScheduler();\n if (mesosScheduler.isPresent()) {\n SchedulerApiServer apiServer = new SchedulerApiServer(schedulerConfig, scheduler.getResources());\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n scheduler.markApiServerStarted();\n }\n });\n\n runScheduler(\n scheduler.frameworkInfo,\n mesosScheduler.get(),\n schedulerBuilder.getServiceSpec(),\n schedulerBuilder.getSchedulerConfig(),\n schedulerBuilder.getStateStore());\n } else {\n /**\n * If no MesosScheduler is provided this scheduler has been deregistered and should report itself healthy\n * and provide an empty COMPLETE deploy plan so it may complete its UNINSTALL.\n *\n * See {@link UninstallScheduler#getMesosScheduler()}.\n */\n Plan emptyDeployPlan = new Plan() {\n @Override\n public List<Phase> getChildren() {\n return Collections.emptyList();\n }\n\n @Override\n public Strategy<Phase> getStrategy() {\n return new SerialStrategy<>();\n }\n\n @Override\n public UUID getId() {\n return UUID.randomUUID();\n }\n\n @Override\n public String getName() {\n return Constants.DEPLOY_PLAN_NAME;\n }\n\n @Override\n public List<String> getErrors() {\n return Collections.emptyList();\n }\n };\n\n PlanManager emptyPlanManager = DefaultPlanManager.createProceeding(emptyDeployPlan);\n PlansResource emptyPlanResource = new PlansResource();\n emptyPlanResource.setPlanManagers(Arrays.asList(emptyPlanManager));\n\n schedulerBuilder.getStateStore().clearAllData();\n\n SchedulerApiServer apiServer = new SchedulerApiServer(\n schedulerConfig,\n Arrays.asList(\n emptyPlanResource,\n new HealthResource()));\n apiServer.start(new AbstractLifeCycle.AbstractLifeCycleListener() {\n @Override\n public void lifeCycleStarted(LifeCycle event) {\n LOGGER.info(\"Started trivially healthy API server.\");\n }\n });\n }\n }",
"protected abstract void scheduler_init();",
"private void processCommand(String command) {\n if (command.equals(\"a\")) {\n doAddTask();\n } else if (command.equals(\"r\")) {\n doRemoveTask();\n } else if (command.equals(\"c\")) {\n doMarkTaskAsCompleted();\n } else if (command.equals(\"m\")) {\n doModifyTask();\n } else if (command.equals(\"v\")) {\n doViewAllTasks();\n } else if (command.equals(\"ct\")) {\n doViewAllCompletedTasks();\n } else if (command.equals(\"s\")) {\n saveTasks();\n } else {\n System.out.println(\"Invalid selection, kindly select from the options available.\");\n }\n }",
"@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }",
"@Override\n\tprotected ArrayList<String> getCommandsToExecute() {\n\t\treturn null;\n\t}",
"public void noSuchCommand() {\n }",
"public void registerCommands() {\n\t CommandSpec cmdCreate = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdCreate.getInstance())\n\t .permission(\"blockyarena.create\")\n\t .build();\n\n\t CommandSpec cmdRemove = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdRemove.getInstance())\n\t .permission(\"blockyarena.remove\")\n\t .build();\n\n\t CommandSpec cmdJoin = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"mode\")))\n\t )\n\t .executor(CmdJoin.getInstance())\n\t .build();\n\n\t CommandSpec cmdQuit = CommandSpec.builder()\n\t .executor(CmdQuit.getInstance())\n\t .build();\n\n\t CommandSpec cmdEdit = CommandSpec.builder()\n\t .arguments(\n\t onlyOne(GenericArguments.string(Text.of(\"id\"))),\n\t onlyOne(GenericArguments.string(Text.of(\"type\"))),\n\t GenericArguments.optional(onlyOne(GenericArguments.string(Text.of(\"param\"))))\n\t )\n\t .executor(CmdEdit.getInstance())\n\t .permission(\"blockyarena.edit\")\n\t .build();\n\n\t CommandSpec cmdKit = CommandSpec.builder()\n\t .arguments(onlyOne(GenericArguments.string(Text.of(\"id\"))))\n\t .executor(CmdKit.getInstance())\n\t .build();\n\n\t CommandSpec arenaCommandSpec = CommandSpec.builder()\n\t .child(cmdEdit, \"edit\")\n\t .child(cmdCreate, \"create\")\n\t .child(cmdRemove, \"remove\")\n\t .child(cmdJoin, \"join\")\n\t .child(cmdQuit, \"quit\")\n\t .child(cmdKit, \"kit\")\n\t .build();\n\n\t Sponge.getCommandManager()\n\t .register(BlockyArena.getInstance(), arenaCommandSpec, \"blockyarena\", \"arena\", \"ba\");\n\t }",
"@Override\n public void run() {\n\n\n\n System.out.println(\"run scheduled jobs.\");\n\n\n checkBlackOutPeriod();\n\n\n\n checkOfficeActionPeriod1();\n\n checkAcceptedFilings();\n\n checkNOAPeriod();\n checkFilingExtensions();\n\n\n\n }",
"public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}",
"@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }",
"@Override\r\n\tpublic void doInitialSchedules() {\n\t}",
"@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }",
"private static void CLIapplication() {\n\n\t\tboolean done = false;\n\t\tdo {\n\t\t\tint choice = HQmenu();\n\t\t\tSite newSite;\n\n\t\t\tswitch(choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"Register exchange office\");\n\t\t\t\tnewSite = createNewSite();\n\t\t\t\tif(sites.containsKey(newSite.getSiteName())) {\n\t\t\t\t\tSystem.out.println(\"Site already registred!1\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsites.putIfAbsent(newSite.getSiteName(), newSite);\t\t\t\t\t\n\t\t\t\t\twriteNewSiteToConfigFile(newSite.getSiteName());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(sites.isEmpty()) {\n\t\t\t\t\tSystem.out.println(\"You need to register site(s) first.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tCLIHelper.menuInput();\n\t\t\t\tbreak;\n\t\t\tcase 0:\n\t\t\t\tdone = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Not a valid menu choice!\");\n\t\t\t}\n\t\t\tlogger.info(\"-------Task_Done-------\\n\");\n\t\t}while(!done);\n\t}",
"@Override\n\tpublic void teleopPeriodic() {\n\t\tSmartDashboard.putString(\"DT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTER Current Command\", \" \");\n\t\tSmartDashboard.putString(\"SHOOTERPIVOT Current Command\", \" \");\n\t\tSmartDashboard.putString(\"INTAKE Current Command\", \" \");\n\t\t\n\t\tScheduler.getInstance().run();\n//\t\t\n//\t\tRobot.drivetrain.leftLED.set(true);\n//\t\tRobot.drivetrain.rightLED.set(false);\n\n\t\tif(!autoAiming) {\n\t\t\tnew DriveForwardRotate(correctForDeadZone(oi.driver.getForward()), correctForDeadZone(oi.driver.getRotation())).start();\n\t\t}\n\t\t//new DriveForwardRotate(oi.driver.getForward(), oi.driver.getRotation()).start();\n\t\t\n\t\tif(oi.autoAim() && !prevStateAutoAim){\n\t\t\t//new SetPivotPosition(PivotPID.AUTO_CAMERA_AIM_POSITION).start(\n//\t\t\tnew AutoAim().start();\n\t\t\tnew AutoAim(TurnConstants.AIM_VELOCITY).start(); //this is a press and hold button 3 on joystick\n\t\t\t\n\t\t}\n\t\t\n\t\tif (readyToShoot && oi.operator.shootBallFlywheels() && oi.operator.shoot()){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- ready to shoot\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\t//INTAKE ------2 button\n\t\tif (oi.operator.intakeUp() && !prevStateIntakeUp){\n\t\t\tnew SetIntakePosition(IntakeSubsystem.UP).start();\n\t\t}\n\t\tif (oi.operator.intakeDeploy() && !prevStateIntakeDeployed){\n\t\t\tnew SetIntakePosition(!IntakeSubsystem.UP).start();\n\t\t}\n\t\t\n\t\t//CAMERA PISTON\n\t\t\n\t\t//move up\n\t\tif (oi.driver.isCameraUpPressed()){\n\t\t\tnew SetCameraPiston(CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\telse{\n\t\t\tnew SetCameraPiston(!CameraSubsystem.CAM_UP).start();\n\t\t}\n\t\t\n//\t\tif (oi.driver.isCameraUpPressed() && !prevStateCameraUp){\n//\t\t\tnew SetCameraPiston(cameraUp ? !CameraSubsystem.CAM_UP : CameraSubsystem.CAM_UP).start();\n//\t\t\tcameraUp = !cameraUp;\n//\t\t}\n//\t\telse{\n//\t\t\tnew SetCameraPiston(cameraUp ? CameraSubsystem.CAM_UP : !CameraSubsystem.CAM_UP).start();\n//\t\t}\n\t\t\n\t\t\n\t\tif (oi.operator.isSemiAutonomousIntakePressed() && !prevStateSemiAutoIntake){\n\t\t\tnew SemiAutoLoadBall().start();\n\t\t}\n//\t\t\n\t\t\n\t\t//pivot state\n//\t\tif (oi.operator.pivotShootState() && !prevStatePivotUp){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n//\t\t}\n//\t\telse if(oi.operator.resetPivot() && !prevStateResetButton) {\n//\t\t\t new ResetPivot().start();\n//\t\t}\n//\t\telse if (oi.operator.pivotStoreState() && !prevStatePivotMiddle){\n//\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n//\t\t}\n\t\t\n\t\t//PIVOT\n\t\t\n\t\t//if going up\n\t\tif (oi.operator.pivotCloseShot() && !prevStatePivotCloseShot){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.CLOSE_SHOOT_STATE).start();\t\t\n\t\t}\n\t\t//if going down\n\t\telse if(oi.operator.pivotFarShot() && !prevStatePivotFarShot) {\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.FAR_SHOOT_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotStoreState()&& !prevStateStore){\n\t\t\tnew SetPivotState(ShooterPivotSubsystem.PivotPID.STORING_STATE).start();\n\t\t}\n\t\telse if (oi.operator.pivotReset() && !prevStateResetSafety){\n\t\t\tnew ResetPivot().start();\n\t\t}\n\t\telse if (oi.driver.isDefenseShot() && prevStateDefenseShot){\n\t\t\tnew SetPivotPosition(ShooterPivotSubsystem.PivotPID.ANTI_DEFENSE_POSITION).start();\n\t\t}\n\t\n\t\t\n\t\tif (!semiAutoIsRunning){\n//\t\t\n\t\t\t//intake purging/running\n\t\t\tif(oi.operator.purgeIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_PURGE_SPEED, IntakeSubsystem.CENTERING_MODULE_PURGE_SPEED).start(); \n\t\t\t\tnew RunAllRollers(ShooterSubsystem.OUT, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else if (oi.operator.runIntake()) {\n\t\t\t\t//new SetIntakeSpeed(IntakeSubsystem.FORWARD_ROLLER_INTAKE_SPEED, IntakeSubsystem.CENTERING_MODULE_INTAKE_SPEED).start();\n\t\t\t\tnew RunAllRollers(ShooterSubsystem.IN, ShooterSubsystem.UNTIL_IR).start();\n//\t\t\t\tnew SemiAutoLoadBall().start();\n\t\t\t\tallIntakeRunning = true;\n\t\t\t} else {\n\t\t\t\t//just the intakes off here to avoid conflicts\n\t\t\t\tnew SetIntakeSpeed(IntakeSubsystem.INTAKE_OFF_SPEED, IntakeSubsystem.INTAKE_OFF_SPEED).start();\n\t\t\t\t//new EndSemiAuto(true).start();\n\t\t\t\t//new RunAllRollers(ShooterSubsystem.OFF, !ShooterSubsystem.UNTIL_IR).start();\n\t\t\t\tallIntakeRunning = false;\n\t\t\t}\n\t\t\t\n\t\t\t//flywheel control\n\t\t\tif (!allIntakeRunning){\n//\t\t\t\tif(oi.operator.loadBallFlywheels()){\n//\t\t\t\t\tnew SetFlywheels(ShooterSubsystem.FLYWHEEL_INTAKE_POWER, -ShooterSubsystem.FLYWHEEL_INTAKE_POWER).start();;\n//\t\t\t\t\tflywheelShootRunning = true;\n//\t\t\t\t} else \n\t\t\t\tif(oi.operator.shootBallFlywheels()) {\n\t\t\t\t\t//new SetFlywheels(0.7, -0.7).start();\n\t\t\t\t\tnew BangBangFlywheels(true).start();\n\t\t\t\t\tflywheelShootRunning = true;\n\t\t\t\t} else {\n\t\t\t\t\t//new SetFlywheels(0, 0).start();//BangBangFlywheels(false).start();\n\t\t\t\t\tflywheelShootRunning = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n//\t\t\tif(oi.operator.shoot()){\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kForward).start();\n//\t\t\t} else {\n//\t\t\t\tnew ShooterSet(DoubleSolenoid.Value.kReverse).start();\n//\t\t\t}\n//\t\t\t\n\t\t\tif (!allIntakeRunning && !flywheelShootRunning){\n\t\t\t\tnew SetFlywheels(0, 0).start();\n\t\t\t}\n\t\t\t\n\t\t\t//DEFENSE STATE\n\t\t\tif (oi.operator.isDefenseState() && !prevStateDefenseMode){\n\t\t\t\tnew SetDefenseMode().start();\n\t\t\t}\n\t\t}\n\t\t//tells us if bang bang works\n\t\treadyToShoot = ((Math.abs(shooter.getRightFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance)\n\t\t\t\t&& (Math.abs(shooter.getLeftFlywheelRPM() - ShooterSubsystem.flywheelTargetRPM) < ShooterSubsystem.flywheelTolerance));\n\t\t\n\t\t\n\t\tif (oi.operator.isManualFirePiston() && !prevStateManualFirePiston){\n//\t\t\tSystem.out.println(\"SHOOT THE SHOOTER -- manual\");\n\t\t\tnew ShootTheShooter().start();\n\t\t}\n\t\t\n\t\t\n\t\tif(oi.driver.isDrivetrainHighGearButtonPressed()){\n\t\t\tdrivetrain.shift(DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = DrivetrainSubsystem.HIGH_GEAR;\n\t\t} else {\n\t\t\tdrivetrain.shift(!DrivetrainSubsystem.HIGH_GEAR);\n\t\t\tcurrentGear = !DrivetrainSubsystem.HIGH_GEAR;\n\t\t}\n\t\t\n\t\tisManualPressed = oi.operator.isManualOverrideOperator();\n\t\t\n\t\tif (!shooterPIDIsRunning){\n\t\t\tif(isManualPressed) {\n\t\t\t\tdouble pivotPower = oi.operator.getManualPower()/2.0;\n\t\t\t\t//shooterPivot.engageBrake(false);\n\t\t\t\tif (pivotPower > 0 && shooterPivot.pastMax() || pivotPower < 0 && shooterPivot.lowerLimitsTriggered()){\n\t\t\t\t\tpivotPower = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnew SetPivotPower(pivotPower).start();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew SetPivotPower(0).start();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"Left: \" + Robot.drivetrain.motors[2].get() + \", Right: \" + (-Robot.drivetrain.motors[0].get()));\n//\t\tSystem.out.println(\"Left V: \" + Robot.drivetrain.leftEncoder.getRate() + \", Right V: \" + Robot.drivetrain.rightEncoder.getRate());\n//\t\tSystem.out.println(\"Accel z: \" + Robot.drivetrain.accel.getZ());\n\t\t\n\t\t\n\t\t//PREV STATES\n\t\tprevStateIntakeUp = oi.operator.intakeUp();\n\t\tprevStateIntakeDeployed = oi.operator.intakeDeploy();\n\t\tprevStateDriveShifter = oi.driver.isDrivetrainHighGearButtonPressed();\n\t\tprevStateShootButton = oi.operator.shoot();\n\t\t\n\t\tprevStatePivotCloseShot = oi.operator.pivotCloseShot();\n\t\tprevStatePivotFarShot = oi.operator.pivotFarShot();\n\t\tprevStateStore = oi.operator.pivotStoreState();\n\t\tprevStateResetSafety = oi.operator.pivotReset();\n\t\t\n\t\tprevStateSemiAutoIntake = oi.operator.isSemiAutonomousIntakePressed();\n\t\tprevStateDefenseMode = oi.operator.isDefenseState();\n\t\t\n\t\tprevStateManualFirePiston = oi.operator.isManualFirePiston();\n\t\tprevStateCameraUp = oi.driver.isCameraUpPressed();\n\t\tprevStateAutoAim = oi.autoAim();\n\t\tprevStateDefenseShot = oi.driver.isDefenseShot();\n\n\t\t\n\t\t//********updating subsystem*******//\n\t\t\n\t\t//shooter hal effect counter\n\t\t//shooterPivot.updateHalEffect();\n\t\t\n\t\t//update the flywheel speed constants\n\t\tshooter.updateShooterConstants();\n\t\t\n\t\t\n\t\t//brake\n\t\tif (!isManualPressed){ //if manual override isn't running\n\t\t\tif (!shooterPIDIsRunning && shooterPivot.motorLeft.get() < DEAD_ZONE_TOLERANCE && shooterPivot.motorRight.get() < DEAD_ZONE_TOLERANCE){\n\t\t\t\t\n\t\t\t\tif (pivotTimer.get() > MIN_STOPPED_TIME){\n\t\t\t\t\tnew EngageBrakes().start();\n\t\t\t\t}\n\t\t\t\t//if motor is 0 for the first time, start the timer\n\t\t\t\tif (!prevStateMotorPowerIs0){\n\t\t\t\t\tpivotTimer.reset();\n\t\t\t\t\tpivotTimer.start();\n\t\t\t\t}\n\t\t\t\t//keep this at the end\n\t\t\t\tprevStateMotorPowerIs0 = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshooterPivot.engageBrake(false);\n\t\t\t\t//keep this at the end\n\t\t\t\tpivotTimer.reset();\n\t\t\t\tprevStateMotorPowerIs0 = false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tshooterPivot.engageBrake(false);\n\t\t\tpivotTimer.reset();\n\t\t}\n\t\t//System.out.println(shooterPivot.motorLeft.get());\n\t\t\n\t\t//LOGGING AND DASHBOARD\n\t\tlogAndDashboard();\n\t}",
"private void updateDiagnostics() {\n\t// driveSubsystem.updateDiagnostics();\n\t// elevatorSubsystem.updateDiagnostics();\n\t// cubeSubsystem.updateDiagnostics();\n\t// cubeVision.updateDiagnostics();\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new DriveWithJoyStickCommand()); // TBD for Commandbased programming\n }",
"abstract boolean shouldTaskActivate();",
"public void doInitialSchedules() {\n ravenna.schedule();\n milan.schedule();\n venice.schedule();\n\n //Scheduling the public transportaton\n ravenna_milan.activate();\n milan_venice.activate();\n venice_ravenna.activate();\n }",
"private void submitCollectSysTrafficTask() {\n\t\tL.i(this.getClass(), \"CollectSysTrafficTask()...\");\n\t\taddTask(new CollectSysTrafficTask());\n\t}",
"@Override\n public void autonomousInit()\n {\n autonomousCommand = chooser.getSelected();\n \n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n * = new MyAutoCommand(); break; case \"Default Auto\": default:\n * autonomousCommand = new ExampleCommand(); break; }\n */\n \n // schedule the autonomous command (example)\n if (autonomousCommand != null) \n {\n autonomousCommand.start();\n }\n }",
"private synchronized void syncTypeChefAnalyzes() {\r\n\t\tif (threadInExecId.isEmpty()) {\r\n\t\t\tProjectConfigurationErrorLogger.getInstance().clearLogList();\r\n\t\t\trunTypeChefAnalyzes(featureProject.getSourceFolder());\r\n\t\t}\r\n\t\tthreadInExecId.add(Thread.currentThread().getId());\r\n\t}",
"void execute() throws Exception {\n\n\t\tif (getSystemState(db) != SYSTEM_STATE_CREATED_COULD_BE_EXACTLY_ONE) {\n\t\t\tInteger ss = getSystemState(db);\n\t\t\tshutDown();\n\t\t\tthrow new Exception(\"System in wrong state for this task: \" + ss);\n\t\t}\n\n\t\tloadExecutionEngine(db);\n\t\tperformUpdate();\n\t\tshutDown();\n\t}",
"@Override\n\tpublic boolean combine(EHICommand anotherCommand) {\n\t\treturn false;\n\t}",
"public void execute() {\n if (valid()) {\n // behavior of the concrete command\n this.target_territory numArmies += to_deploy;\n }\n }",
"@Override\n public void initDefaultCommand() {\n Robot.driveTrain.setDefaultCommand(new xboxDrive());\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"@Override\r\n\tprotected void beforeSendCommands(String cmds) {\n\r\n\t}",
"@Override\r\n\tpublic void execute() \r\n\t\t{\n\t\tsourceArcs = parent.getSourceArcsFromID(child.getServerName());\r\n\t\ttargetArcs = parent.getTargetArcsFromID(child.getServerName());\r\n\t\tredo();\r\n\t\t}",
"private void registToWX() {\n }",
"public synchronized void initializeCommands() {\n/* 101 */ Set<String> ignoredPlugins = new HashSet<String>(this.yaml.getIgnoredPlugins());\n/* */ \n/* */ \n/* 104 */ if (ignoredPlugins.contains(\"All\")) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 109 */ label61: for (Command command : this.server.getCommandMap().getCommands()) {\n/* 110 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* */ \n/* */ \n/* 115 */ for (Class c : this.topicFactoryMap.keySet()) {\n/* 116 */ if (c.isAssignableFrom(command.getClass())) {\n/* 117 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 118 */ if (t != null) { addTopic(t); continue label61; }\n/* */ continue label61;\n/* */ } \n/* 121 */ if (command instanceof PluginCommand && c.isAssignableFrom(((PluginCommand)command).getExecutor().getClass())) {\n/* 122 */ HelpTopic t = ((HelpTopicFactory)this.topicFactoryMap.get(c)).createTopic(command);\n/* 123 */ if (t != null) addTopic(t);\n/* */ \n/* */ } \n/* */ } \n/* 127 */ addTopic((HelpTopic)new GenericCommandHelpTopic(command));\n/* */ } \n/* */ \n/* */ \n/* 131 */ for (Command command : this.server.getCommandMap().getCommands()) {\n/* 132 */ if (commandInIgnoredPlugin(command, ignoredPlugins)) {\n/* */ continue;\n/* */ }\n/* 135 */ for (String alias : command.getAliases()) {\n/* */ \n/* 137 */ if (this.server.getCommandMap().getCommand(alias) == command) {\n/* 138 */ addTopic(new CommandAliasHelpTopic(\"/\" + alias, \"/\" + command.getLabel(), this));\n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 144 */ Collection<HelpTopic> filteredTopics = Collections2.filter(this.helpTopics.values(), Predicates.instanceOf(CommandAliasHelpTopic.class));\n/* 145 */ if (!filteredTopics.isEmpty()) {\n/* 146 */ addTopic((HelpTopic)new IndexHelpTopic(\"Aliases\", \"Lists command aliases\", null, filteredTopics));\n/* */ }\n/* */ \n/* */ \n/* 150 */ Map<String, Set<HelpTopic>> pluginIndexes = new HashMap<String, Set<HelpTopic>>();\n/* 151 */ fillPluginIndexes(pluginIndexes, this.server.getCommandMap().getCommands());\n/* */ \n/* 153 */ for (Map.Entry<String, Set<HelpTopic>> entry : pluginIndexes.entrySet()) {\n/* 154 */ addTopic((HelpTopic)new IndexHelpTopic(entry.getKey(), \"All commands for \" + (String)entry.getKey(), null, entry.getValue(), \"Below is a list of all \" + (String)entry.getKey() + \" commands:\"));\n/* */ }\n/* */ \n/* */ \n/* 158 */ for (HelpTopicAmendment amendment : this.yaml.getTopicAmendments()) {\n/* 159 */ if (this.helpTopics.containsKey(amendment.getTopicName())) {\n/* 160 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendTopic(amendment.getShortText(), amendment.getFullText());\n/* 161 */ if (amendment.getPermission() != null) {\n/* 162 */ ((HelpTopic)this.helpTopics.get(amendment.getTopicName())).amendCanSee(amendment.getPermission());\n/* */ }\n/* */ } \n/* */ } \n/* */ }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new GearPickupClampIn());\n }",
"private static void incrementLaunchOrder()\r\n\t{\r\n\t\tlaunchOrder++;\r\n\t}",
"public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }",
"@Override\n public void autonomousPeriodic()\n {\n commonPeriodic();\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n \tsetDefaultCommand(new DriveWithJoystick());\n }",
"void\t\tregisterCommandDependentWidget(MiPart widget, String command);",
"@StartStep(localName=\"command-engineering\", after={\"config\"})\n public static void startCommandEngineering(LifecycleContext context) \n {\n // for each class that is a Catalog or Command, create an entry for those in the context.\n ClassScanner classScanner = new ClassScanner(context);\n classScanner.scan();\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }",
"public interface SuperCommand {\n\n /**\n * Setups anything that is needed for this command.\n * <br/><br/>\n * It is recommended you do the following in this method:\n * <ul>\n * <li>Register any of the sub-commands of this command;</li>\n * <li>Define the permission required to use this command using {@link CompositeCommand#setPermission(String)};</li>\n * <li>Define whether this command can only be run by players or not using {@link CompositeCommand#setOnlyPlayer(boolean)};</li>\n * </ul>\n */\n void setup();\n\n /**\n * Returns whether the command can be executed by this user or not.\n * It is recommended to send messages to let this user know why they could not execute the command.\n * Note that this is run previous to {@link #execute(User, String, List)}.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if this command can be executed, {@code false} otherwise.\n * @since 1.3.0\n */\n default boolean canExecute(User user, String label, List<String> args) {\n return true;\n }\n\n /**\n * Defines what will be executed when this command is run.\n * @param user the {@link User} who is executing this command.\n * @param label the label which has been used to execute this command.\n * It can be {@link CompositeCommand#getLabel()} or an alias.\n * @param args the command arguments.\n * @return {@code true} if the command executed successfully, {@code false} otherwise.\n */\n boolean execute(User user, String label, List<String> args);\n\n /**\n * Tab Completer for CompositeCommands.\n * Note that any registered sub-commands will be automatically added to the list.\n * Use this to add tab-complete for things like names.\n * @param user the {@link User} who is executing this command.\n * @param alias alias for command\n * @param args command arguments\n * @return List of strings that could be used to complete this command.\n */\n default Optional<List<String>> tabComplete(User user, String alias, List<String> args) {\n return Optional.empty();\n }\n\n}",
"private void customCommands(MessageEvent message) {\r\n String command = message.getMessage();\r\n \r\n if (!reservedCommands.contains(command)) {\r\n String[]info;\r\n info = manager.getCommandFromDatabase(command, message.getChannel().getName());\r\n\r\n //checks if the command is in custom mod commands\r\n if (info[1].matches(\"-m\")) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"You're not allowed to use this command.\");\r\n }\r\n }\r\n //checks if the command is in the custom commands available to everyone\r\n else if (info[1].matches(\"-e\")) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"No such command exists\");\r\n }\r\n }\r\n }",
"public static void twoClientSetupProcesses(List<String> aClientTags, List<String> aServerTags ) {\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_1\", \"Client_0\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Registry\", 500);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Server\", 2000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_0\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_1\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}",
"@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}",
"public void registerCommands() {\n commands = new LinkedHashMap<String,Command>();\n \n /*\n * admin commands\n */\n //file util cmds\n register(ReloadCommand.class);\n register(SaveCommand.class);\n \n //shrine cmds\n register(KarmaGetCommand.class);\n register(KarmaSetCommand.class); \n }",
"@Override\n\tpublic void launchTasks() throws Exception {\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).switchFridgeOn();\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).setOndulatorPolicy(\"default\");\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t1000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getFridgeTemperature();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t2000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTask(\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getBatteryEnergy();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\t3000, TimeUnit.MILLISECONDS);\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).controllFridge();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 4000, 1000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t\t\t\t\n\t\t\t\tthis.scheduleTaskWithFixedDelay(\t\t\n\t\t\t\t\t\tnew AbstractComponent.AbstractTask() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t((Controller)this.getTaskOwner()).getEPConsommation();\n\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e) ;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 1000, 4000 // délai entre la fin d'une exécution et la suivante, à modifier \n\t\t\t\t\t\t,TimeUnit.MILLISECONDS) ;\n\t}",
"private void fireEvents() {\n\n if (clockTickCount % clockTicksTillWorkloadChange == 0) {\n clockEventPublisher.fireTriggerWorkloadHandlerEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n // if (clockTickCount % clockTicksTillScalingDecision == 0) {\n // clockEventPublisher.fireTriggerAutoScalerEvent(clockTickCount,\n // intervalDurationInMilliSeconds);\n // }\n\n clockEventPublisher.fireClockEvent(clockTickCount, intervalDurationInMilliSeconds);\n\n // INfrastruktur\n if (clockTickCount % clockTicksTillPublishInfrastructureState == 0) {\n clockEventPublisher.fireTriggerPublishInfrastructureStateEvent(clockTickCount,\n intervalDurationInMilliSeconds);\n\n }\n\n // Queue\n if (clockTickCount % clockTicksTillPublishQueueState == 0) {\n\n clockEventPublisher.fireTriggerPublishQueueStateEvent(clockTickCount, intervalDurationInMilliSeconds);\n }\n\n }"
] | [
"0.5763735",
"0.5597857",
"0.5525979",
"0.5434967",
"0.53826046",
"0.53644043",
"0.5349786",
"0.5344097",
"0.5329482",
"0.53283983",
"0.5299414",
"0.5261541",
"0.5256005",
"0.52316135",
"0.52242804",
"0.52031666",
"0.5192441",
"0.5177707",
"0.5162963",
"0.51539654",
"0.51415515",
"0.5134641",
"0.51294583",
"0.5100808",
"0.5100189",
"0.5066171",
"0.5060598",
"0.5054086",
"0.5053729",
"0.50498563",
"0.50488585",
"0.50405574",
"0.50277865",
"0.50123876",
"0.5007968",
"0.50026834",
"0.4999771",
"0.49965122",
"0.49965122",
"0.49936378",
"0.49794224",
"0.49731174",
"0.497165",
"0.4958715",
"0.49568033",
"0.495138",
"0.4950068",
"0.49463072",
"0.4937073",
"0.4935162",
"0.49308908",
"0.492395",
"0.49194476",
"0.49173912",
"0.4914265",
"0.49138835",
"0.4913285",
"0.4910033",
"0.49015456",
"0.4901451",
"0.48996598",
"0.48919716",
"0.48854455",
"0.4877579",
"0.48753968",
"0.4871602",
"0.48663017",
"0.48651332",
"0.48641244",
"0.48611182",
"0.4854777",
"0.48534814",
"0.48482594",
"0.48376623",
"0.48345962",
"0.48321",
"0.48316473",
"0.48159063",
"0.4814259",
"0.48067343",
"0.48038673",
"0.48009992",
"0.47940546",
"0.47928053",
"0.47895217",
"0.4787412",
"0.47868937",
"0.47856048",
"0.47854483",
"0.4783526",
"0.4783435",
"0.47813517",
"0.4780666",
"0.47805867",
"0.47790498",
"0.4775403",
"0.47718057",
"0.4767328",
"0.47598335",
"0.47582492",
"0.47543114"
] | 0.0 | -1 |
Drop older table if existed | @Override
public void onUpgrade(SQLiteDatabase db, int oldV, int newV) {
db.execSQL("DROP TABLE IF EXISTS " + TABLE_SCORES);
// Create tables again
onCreate(db);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void deleteOldTables(){\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence\");\n jdbcTemplate.execute(\"DROP TABLE OLDrole\");\n jdbcTemplate.execute(\"DROP TABLE OLDperson\");\n jdbcTemplate.execute(\"DROP TABLE OLDavailability\");\n jdbcTemplate.execute(\"DROP TABLE OLDcompetence_profile\");\n }",
"@Override\r\n public void dropTable() {\n if(tableIsExist(TABLE_NAME)){\r\n String sql = \"drop table \" + TABLE_NAME;\r\n database.execSQL(sql);\r\n }\r\n }",
"public void dropTable();",
"boolean dropTable();",
"private void dropOldTables(CopyTable table) throws SQLException\n\t{\n\t\tLOG.info(\"Dropping older versions of table '\" + table.getToName() + \"'...\");\n\t\t\n\t\tStatement q =\n\t\t\tCopyToolConnectionManager.getInstance().getMonetDbConnection().createStatement();\n\t\t\n\t\tResultSet result =\n\t\t\tq.executeQuery(\"SELECT name FROM sys.tables WHERE name LIKE '\" + table.getToName()\n\t\t\t\t+ \"_20%_%' AND name <> '\" + table.getToName() + \"' \"\n\t\t\t\t+ \"AND schema_id = (SELECT id from sys.schemas WHERE LOWER(name) = LOWER('\" + table.getSchema()\n\t\t\t\t+ \"')) AND query IS NULL ORDER BY name DESC\");\n\t\t\n\t\tint i = 0;\n\t\tint dropCount = 0;\n\t\tStatement stmtDrop =\n\t\t\tCopyToolConnectionManager.getInstance().getMonetDbConnection().createStatement();\n\t\twhile(result.next())\n\t\t{\n\t\t\ti++;\n\t\t\t\n\t\t\t// if table is a fast view-switching table then\n\t\t\t// \t\tskip first result -> is current table and referenced by view\n\t\t\t// \t\tskip second result -> as backup (TODO: perhaps make this configurable?)\n\t\t\tif (table.isUseFastViewSwitching())\n\t\t\t\tif (i == 1 || i == 2)\n\t\t\t\t\tcontinue;\n\t\t\t\n\t\t\t// build DROP query\n\t\t\tStringBuilder query = new StringBuilder(\"DROP TABLE \");\n\t\t\t\n\t\t\tif (!StringUtils.isEmpty(table.getSchema()))\n\t\t\t\tquery.append(MonetDBUtil.quoteMonetDbIdentifier(table.getSchema())).append(\".\");\n\t\t\t\n\t\t\tquery.append(MonetDBUtil.quoteMonetDbIdentifier(result.getString(\"name\"))).append(\";\");\n\t\t\t\n\t\t\t// execute DROP query\n\t\t\tstmtDrop.executeUpdate(query.toString());\t\t\t\n\t\t\tdropCount++;\n\t\t}\n\t\t\n\t\tif (i == 0 || (table.isUseFastViewSwitching() && i <= 2))\n\t\t\tLOG.info(\"Table '\" + table.getToName() + \"' has no older versions\");\n\t\telse\n\t\t\tLOG.info(\"Dropped \" + dropCount + \" older versions of table '\" + table.getToName() + \"'\");\n\t\t\n\t\tresult.close();\n\t\tq.close();\n\t}",
"public void drop() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME1);\n onCreate(db);\n }",
"public void dropTable() {\n }",
"public void dropTable(String tableName);",
"@Override\r\n\tpublic boolean dropTable() {\n\t\treturn false;\r\n\t}",
"public void doDropTable();",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'SELLER'\";\n db.execSQL(sql);\n }",
"public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }",
"private static void dropBackupTableIfExist(SQLiteDatabase database, String tableName) {\n database.execSQL(\"DROP TABLE IF EXISTS \" + tableName + BACKUP_PREFIX);\n }",
"public void rollbackCreateTable(Table table) throws MetaException {\n commitDropTable(table, true);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"STOCK\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'P5P10'\";\n db.execSQL(sql);\n }",
"public void dropTable(DropTableQuery query);",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"LIVE_KIND_OBJ\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"STEP11_RESBEAN\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"NEWS\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'ORDER_BATCH'\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"BIG_MONSTERS\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"SHEET\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"LOCAL_BEAN\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'TABLE__STATUS'\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"RECORD\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"RECORD\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'RECYCLE_SCAN'\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\r\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'META'\";\r\n db.execSQL(sql);\r\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'APP_DAY_TRAFFIC'\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"HEALTH_RECORD__STATUS\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TRUCK\\\"\";\n db.execSQL(sql);\n }",
"abstract void dropTable() throws SQLException;",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'P7P4'\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"\" + TABLENAME + \"\\\"\";\n db.execSQL(sql);\n }",
"@Override\n\tpublic void dropTable() {\n\t\ttry {\n\t\t\tTableUtils.dropTable(connectionSource, UserEntity.class, true);\n\t\t\tTableUtils.dropTable(connectionSource, Downloads.class, true);\n\t\t} catch (SQLException e) {\n\t\t}\n\t}",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'IdCard'\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"BACK_ALARM_MODEL\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'ENTITY_COMMAND'\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"PAYMENT_RECORD\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"SCAN_SUB\\\"\";\n db.execSQL(sql);\n }",
"public void dropTable(String table) {\n SQLiteDatabase db = openConnection();\n db.execSQL(\"DROP TABLE IF EXISTS \" + table);\n closeConnection();\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"CHAT_LOG\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'DISTRIBUTOR_ORDERS'\";\n db.execSQL(sql);\n }",
"public void dropTables()\n {\n String tableName;\n\n for (int i=0; i<tableNames.length; i++)\n {\n tableName = tableNames[i];\n System.out.println(\"Dropping table: \" + tableName);\n try\n {\n Statement statement = connect.createStatement();\n\n String sql = \"DROP TABLE \" + tableName;\n\n statement.executeUpdate(sql);\n }\n catch (SQLException e)\n {\n System.out.println(\"Error dropping table: \" + e);\n }\n }\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"kctBaseStation\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"ANSWERS_QUESTION\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'CUSTOMER'\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TOPIC_DB\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"SHOP_RECEIVABLE_ENTITY\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"BUDGETS\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TAGS\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"HOT_SONG_LIST\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TRACE_LOG\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"OBD_TT\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"MOVIE_DETAIL\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"COUNT_DATA_BEAN\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"ExtraDetails\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"ORDER_PAY\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"EXAM_QUESTION\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"livechina_chinnel\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"FITTING_TABLE\\\"\";\n db.execSQL(sql);\n }",
"public void removeLifeloggingTables() throws SQLException {\n\n\t\tString sqlCommand1 = \"DROP TABLE IF EXISTS minute\";\n\t\tString sqlCommand2 = \"DROP TABLE IF EXISTS image\";\n\t\tStatement stmt = this.connection.createStatement();\n\n\t\tstmt.execute(sqlCommand2);\n\t\tstmt.execute(sqlCommand1);\n\t\tstmt.close();\n\t}",
"void delete_table(String table_name) {\n //table does not exist\n if (!get_table_names().contains(table_name) && !table_name.equals(\"relationship\")) {\n throw new RuntimeException(\"Table does not exists and can therefore not be deleted.\");\n }\n\n String sql = \"drop table if exists \" + table_name;\n\n execute_statement(sql, false);\n }",
"void removeTable(String tableName) throws SQLException {\n\t\tstmt = con.createStatement();\n\t\tString sql = (new StringBuilder(\"drop table \")).append(tableName)\n\t\t\t\t.toString();\n\t\tstmt.executeUpdate(sql);\n\t\tstmt.close();\n\t}",
"@Override\n public void dropTable(String table_name) {\n\n // silently return if connection is closed\n if (!is_open) {\n return;\n }\n\n // try to delete the table\n try {\n String drop_table = \"DROP TABLE \" + table_name;\n statement.execute(drop_table);\n connection.commit();\n } catch (SQLException e) {\n System.out.println(\"Could not delete table \" + table_name);\n e.printStackTrace();\n }\n\n //System.out.println(\"Deleted table \" + table_name);\n\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'LOCAL_SUB_TYPE_ID'\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"VACCINE_INJECT_TIMES\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"DOWNLOAD_BEAN\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"INMOVILIZACION\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"FEATURE\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"FARM_FIELD\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TOMATO\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"HINT\\\"\";\n db.execSQL(sql);\n }",
"public void dropDB() throws SQLException {\n\t \t\tStatement stmt = cnx.createStatement();\n\t \t\tString[] tables = {\"account\", \"consumer\", \"transaction\"};\n\t \t\tfor (int i=0; i<3;i++) {\n\t \t\t\tString query = \"DELETE FROM \" + tables[i];\n\t \t\t\tstmt.executeUpdate(query);\n\t \t\t}\n\t \t}",
"public void dropTable(String tableName) throws SQLException {\n mysql.update(\"DROP TABLE ` \" + tableName + \" `\");\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"ACTIVO\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"GAME_FILL_ITEM\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'BLACK_LIST'\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"WEATHER_MODEL\\\"\";\n db.execSQL(sql);\n }",
"void dropAllTables();",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"FEATURE\\\"\";\n db.execSQL(sql);\n }",
"@Test\n public void testDropTable() throws Exception {\n String tableName = createTable(true, true, false);\n\n assertTableIsRegistered(DEFAULT_DB, tableName);\n assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName), \"id\"));\n assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName), NAME));\n\n String query = String.format(\"drop table %s \", tableName);\n\n runCommandWithDelay(query, 3000);\n\n assertColumnIsNotRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName), \"id\"));\n assertColumnIsNotRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, tableName), NAME));\n assertTableIsNotRegistered(DEFAULT_DB, tableName);\n }",
"public void dropTableIfExists(String tableName) throws SQLException{\n\t\tStatement stmt = connection.createStatement();\n\t\tstmt.execute(\"DROP TABLE IF EXISTS \\\"\" + tableName + \"\\\"\"); \n\t\tstmt.close();\n\t}",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n\t\tString sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'District'\";\n\t\tdb.execSQL(sql);\n\t}",
"public void dropTable(AccumuloTable table)\n {\n SchemaTableName stName = new SchemaTableName(table.getSchema(), table.getTable());\n String tableName = table.getFullTableName();\n\n // Drop cardinality cache from index lookup\n sIndexLookup.dropCache(stName.getSchemaName(), stName.getTableName());\n\n // Remove the table metadata from Presto\n if (metaManager.getTable(stName) != null) {\n metaManager.deleteTableMetadata(stName);\n }\n\n if (!table.isExternal()) {\n // delete the table and index tables\n if (tableManager.exists(tableName)) {\n tableManager.deleteAccumuloTable(tableName);\n }\n\n if (table.isIndexed()) {\n String indexTableName = Indexer.getIndexTableName(stName);\n if (tableManager.exists(indexTableName)) {\n tableManager.deleteAccumuloTable(indexTableName);\n }\n\n String metricsTableName = Indexer.getMetricsTableName(stName);\n if (tableManager.exists(metricsTableName)) {\n tableManager.deleteAccumuloTable(metricsTableName);\n }\n }\n }\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TB_CONVERSATION\\\"\";\n db.execSQL(sql);\n }",
"@Override\n public void dropUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createSQLQuery(\"DROP TABLE IF EXISTS Users\").executeUpdate();\n tx.commit();\n session.close();\n\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"ORDER_INFO\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"GROUP_INFO_ENTITY\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"MEMBER_DOCTOR\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'PERSONAL_INFORMATION'\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"WEB_URL_BEAN\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"DCPURCHASE_DATA\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"USER\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"USER\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"USER\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"USER\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"GROUP_INFO_BEAN\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"SECURITY_ITEMS\\\"\";\n db.execSQL(sql);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'PHOTO_PATH_BEAN'\";\n db.execSQL(sql);\n }"
] | [
"0.76148385",
"0.75843316",
"0.7307945",
"0.7098162",
"0.7089684",
"0.70499885",
"0.6996705",
"0.68932396",
"0.688928",
"0.68719447",
"0.6835771",
"0.6829487",
"0.6812177",
"0.680692",
"0.6796235",
"0.6793014",
"0.67750293",
"0.6772128",
"0.6762724",
"0.6741369",
"0.67276275",
"0.6697665",
"0.66881055",
"0.6664371",
"0.66614604",
"0.6656816",
"0.6656816",
"0.665587",
"0.6655325",
"0.66476214",
"0.6636035",
"0.6623889",
"0.6623785",
"0.662371",
"0.6616017",
"0.6615633",
"0.66142046",
"0.6597902",
"0.65904343",
"0.657009",
"0.6565102",
"0.6548259",
"0.65476763",
"0.65472686",
"0.65467954",
"0.6542429",
"0.6536821",
"0.65354913",
"0.65286446",
"0.6527253",
"0.65250576",
"0.65178424",
"0.6513921",
"0.65127224",
"0.6510333",
"0.65077794",
"0.6507631",
"0.6505262",
"0.65050685",
"0.65003014",
"0.6499606",
"0.6498979",
"0.64981",
"0.6494835",
"0.6490958",
"0.6477269",
"0.6476211",
"0.6473474",
"0.64717424",
"0.64552414",
"0.64402574",
"0.6435591",
"0.6431861",
"0.6428685",
"0.6427952",
"0.6427397",
"0.6425198",
"0.64243835",
"0.641415",
"0.64118624",
"0.64080477",
"0.64040095",
"0.6399729",
"0.6399581",
"0.6396581",
"0.6395002",
"0.6392969",
"0.6391772",
"0.6386457",
"0.63837963",
"0.63535005",
"0.6350022",
"0.63499343",
"0.634964",
"0.6348879",
"0.6348879",
"0.6348879",
"0.6348879",
"0.63460094",
"0.63440436",
"0.634387"
] | 0.0 | -1 |
We recommend type names be OSGi symbolic names, such as: com.acmegroup.1VirtualMachine Note that this is more permissive than Java, allowing hyphens and allowing segments to start with numbers. However it is also more restrictive: OSGi does not allow accented characters or most punctuation. Only hyphens and underscores are allowed in segment names, and periods are allowed only as segment separators. | public static boolean isGoodTypeName(String candidate) {
return isUsable(candidate) && candidate.matches(OSGI_SYMBOLIC_NAME_REGEX);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String typeName();",
"private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}",
"String getIdentifierName(String name, String type);",
"@Override\n public String name(String name, Meter.Type type, @Nullable String baseUnit) {\n String conventionName = NamingConvention.snakeCase.name(name, type, baseUnit);\n\n switch (type) {\n case COUNTER:\n case DISTRIBUTION_SUMMARY:\n case GAUGE:\n if (baseUnit != null && !conventionName.endsWith(\"_\" + baseUnit))\n conventionName += \"_\" + baseUnit;\n break;\n }\n\n switch (type) {\n case COUNTER:\n if (!conventionName.endsWith(\"_total\"))\n conventionName += \"_total\";\n break;\n case TIMER:\n case LONG_TASK_TIMER:\n if (conventionName.endsWith(timerSuffix)) {\n conventionName += \"_seconds\";\n }\n else if (!conventionName.endsWith(\"_seconds\"))\n conventionName += timerSuffix + \"_seconds\";\n break;\n }\n\n String sanitized = nameChars.matcher(conventionName).replaceAll(SEPARATOR);\n if (!Character.isLetter(sanitized.charAt(0))) {\n sanitized = \"m_\" + sanitized;\n }\n return sanitized;\n }",
"private String getTypeName(int idx){\r\n String[] types = {\"C-SVC\",\"nu-SVC\",\"one-class SVM\",\"epsilon-SVR\",\"nu-SVR\"};\r\n return types[idx];\r\n }",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String getSType();",
"public abstract String getTypeName();",
"public String getTypeName();",
"public String getTypeName();",
"String kind();",
"String kind();",
"public Type type(String name);",
"public void setTypeName(java.lang.String value);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getTypeName();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"private String getTypeVariableNamePrefix(String string)\r\n {\r\n string = string.trim();\r\n for (String typeVariableName : typeVariableNames)\r\n {\r\n if (string.equals(typeVariableName))\r\n {\r\n return typeVariableName;\r\n }\r\n if (string.startsWith(typeVariableName+\" \"))\r\n {\r\n return typeVariableName;\r\n }\r\n }\r\n return null;\r\n }",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"public TypeDescriptor(String str) {\n handle = str;\n arrayDimensions = str.length() - str.replaceAll(\"\\\\[\", \"\").length();\n str = str.replaceAll(\"\\\\[\", \"\");\n if (primTypes.containsKey(str)) {\n canonicalName = primTypes.get(str);\n } else if (str.startsWith(\"L\") && str.endsWith(\";\")) {\n String className = str.substring(1, str.length() - 1);\n if (className.length() - className.replace(\"/\", \"\").length() == 2\n && className.startsWith(\"java/lang/\")) {\n canonicalName = className.substring(\"java/lang/\".length());\n } else {\n canonicalName = className.substring(className.lastIndexOf(\"/\") + 1);\n reqImport = className.replaceAll(\"/\", \".\");\n }\n } else {\n throw new IllegalArgumentException(\"Invalid descriptor: \" + str);\n }\n }",
"String componentTypeName();",
"String provideType();",
"@Test\r\n public void testNamedImportStringHandling() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addImport(\"java.util.List\");\r\n typeParser.addImport(\"java. util . Collection \");\r\n\r\n Type t0 = typeParser.parse(\"List\");\r\n assertEquals(t0, java.util.List.class);\r\n \r\n Type t1 = typeParser.parse(\"Collection\");\r\n assertEquals(t1, java.util.Collection.class);\r\n \r\n }",
"public String getPartString() { return \"Type\"; }",
"private String prepareType(String smaliType) {\n int arrayDimensions = 0;\n \n String typeWithoutBrackets = smaliType;\n \n while (typeWithoutBrackets.startsWith(\"[\")) {\n arrayDimensions++;\n typeWithoutBrackets = typeWithoutBrackets.substring(1);\n }\n \n if(SmaliNameConverter.isPrimitiveSmaliType(typeWithoutBrackets)) {\n return (typeWithoutBrackets.equals(\"V\")) ? \"\" : smaliType ; \n }\n \n String classOfType = SmaliNameConverter.convertTypeFromSmali(typeWithoutBrackets);\n String packageOfType = SmaliNameConverter.extractPackageNameFromClassName(classOfType);\n\n StringBuilder type = new StringBuilder();\n\n for(int i = 0; i < arrayDimensions; i++) {\n type.append(\"[\");\n }\n\n boolean isCurrentClassObject = (classOfType.equals(currentClassType)); \n boolean isInternalObject = (packageOfType.equals(currentPackage)); \n \n char typeChar = isCurrentClassObject? 'T' : \n isInternalObject? 'O' : 'E' ;\n \n type.append(typeChar);\n\n return type.toString();\n }",
"public static String getElementName(String type) {\n switch(type){\n case(\"1\"):\n return \"Kinetic\";\n case(\"2\"):\n return \"Arc\";\n case(\"3\"):\n return \"Solar\";\n case(\"4\"):\n return \"Void\";\n default:\n return \"Damage Type Not Found\";\n }\n }",
"public static String formatNameForClassLoading(String name) {\n if (name == null) {\n return \"java.lang.Object;\";\n }\n\n if (name.equals(\"int\")\n || name.equals(\"long\")\n || name.equals(\"short\")\n || name.equals(\"float\")\n || name.equals(\"double\")\n || name.equals(\"byte\")\n || name.equals(\"char\")\n || name.equals(\"boolean\")\n || name.equals(\"void\")\n ) {\n return name;\n }\n\n if (name.startsWith(\"[\")) {\n return name.replace('/', '.');\n }\n\n if (name.startsWith(\"L\")) {\n name = name.substring(1);\n if (name.endsWith(\";\")) {\n name = name.substring(0, name.length() - 1);\n }\n return name.replace('/', '.');\n }\n\n String prefix = \"\";\n if (name.endsWith(\"[]\")) { // todo need process multi\n prefix = \"[\";\n name = name.substring(0, name.length() - 2);\n if (name.equals(\"int\")) {\n return prefix + \"I\";\n } else if (name.equals(\"long\")) {\n return prefix + \"J\";\n } else if (name.equals(\"short\")) {\n return prefix + \"S\";\n } else if (name.equals(\"float\")) {\n return prefix + \"F\";\n } else if (name.equals(\"double\")) {\n return prefix + \"D\";\n } else if (name.equals(\"byte\")) {\n return prefix + \"B\";\n } else if (name.equals(\"char\")) {\n return prefix + \"C\";\n } else if (name.equals(\"boolean\")) {\n return prefix + \"Z\";\n } else {\n return prefix + \"L\" + name.replace('/', '.') + \";\";\n }\n }\n return name.replace('/', '.');\n\n }",
"private String getCasTypeName(String aTagName) {\n if (aTagName.indexOf(':') == -1 && aTagName.indexOf('-') == -1) {\n return aTagName;\n } else {\n // Note: This is really slow so we avoid if possible. -- RJB\n return StringUtils.replaceAll(StringUtils.replaceAll(aTagName, \":\", \"_colon_\"), \"-\",\n \"_dash_\");\n }\n }",
"public static String getFormalFamilyNameFromType(FamilyType type) {\n switch (type) {\n case ARTIX7:\n return \"Artix7\";\n case ARTIX7L:\n return \"Artix7 Lower Power\";\n case ASPARTAN2E:\n return \"Automotive Spartan2E\";\n case ASPARTAN3:\n return \"Automotive Spartan3\";\n case ASPARTAN3A:\n return \"Automotive Spartan3A\";\n case ASPARTAN3ADSP:\n return \"Automotive Spartan-3A DSP\";\n case ASPARTAN3E:\n return \"Automotive Spartan3E\";\n case ASPARTAN6:\n return \"Automotive Spartan6\";\n case KINTEX7:\n return \"Kintex7\";\n case KINTEX7L:\n return \"Kintex7 Lower Power\";\n case QSPARTAN6:\n return \"Defense-Grade Spartan-6Q\";\n case QSPARTAN6L:\n return \"Defense-Grade Spartan-6Q Lower Power\";\n case QVIRTEX4:\n return \"Defense-Grade Virtex-4Q\";\n case QVIRTEX5:\n return \"Defense-Grade Virtex-5Q\";\n case QVIRTEX6:\n return \"Defense-Grade Virtex-6Q\";\n case QVIRTEX:\n return \"QPro Virtex Hi-Rel\";\n case QRVIRTEX:\n return \"QPro Virtex Rad-Hard\";\n case QVIRTEX2:\n return \"QPro Virtex2 Military\";\n case QRVIRTEX2:\n return \"QPro Virtex2 Rad Tolerant\";\n case QVIRTEX2P:\n return \"QPro Virtex2P Hi-Rel\";\n case QVIRTEXE:\n return \"QPro VirtexE Military\";\n case QRVIRTEX4:\n return \"Space-Grade Virtex-4QV\";\n case SPARTAN2:\n return \"Spartan2\";\n case SPARTAN2E:\n return \"Spartan2E\";\n case SPARTAN3:\n return \"Spartan3\";\n case SPARTAN3A:\n return \"Spartan3A and Spartan3AN\";\n case SPARTAN3ADSP:\n return \"Spartan-3A DSP\";\n case SPARTAN3E:\n return \"Spartan3E\";\n case SPARTAN6:\n return \"Spartan6\";\n case SPARTAN6L:\n return \"Spartan6 Lower Power\";\n case VIRTEX:\n return \"Virtex\";\n case VIRTEX2:\n return \"Virtex2\";\n case VIRTEX2P:\n return \"Virtex2P\";\n case VIRTEX4:\n return \"Virtex4\";\n case VIRTEX5:\n return \"Virtex5\";\n case VIRTEX6:\n return \"Virtex6\";\n case VIRTEX6L:\n return \"Virtex6 Lower Power\";\n case VIRTEX7:\n return \"Virtex7\";\n case VIRTEX7L:\n return \"Virtex7 Lower Power\";\n case VIRTEXE:\n return \"VirtexE\";\n default:\n return null;\n }\n }",
"String vmExtensionType();",
"InstrumentedType.WithFlexibleName represent(TypeDescription typeDescription);",
"String getTypeAsString();",
"String getSimpleName();",
"String getSimpleName();",
"private LocalrmnameType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }",
"private String nameFor(Class<?> type) {\n String typeName = type.getName();\n if (typeName.startsWith(\"java.\") || (type.getPackage() != null && type.getPackage().isSealed())) {\n typeName = \"codegen.\" + typeName;\n }\n return String.format(\"%s$%s$%d\", typeName, \"MockitoMock\", Math.abs(random.nextInt()));\n }",
"private String getAltRegType() { // TODO - fix Register reference hardcoded in reg defines parm default?\n\t\tString firstChar = regProperties.getId().substring(0, 1);\n\t\t// change case of first character in name to create type\n\t\tString regTypeParam;\n\t\tif (firstChar.equals(firstChar.toUpperCase()))\n\t\t regTypeParam = regProperties.getId().replaceFirst(firstChar, firstChar.toLowerCase()); // change to lc\n\t\telse\n\t\t regTypeParam = regProperties.getId().replaceFirst(firstChar, firstChar.toUpperCase()); // change to uc \n\t\tString regBaseType = regProperties.isReplicated()? \"RegisterArray\" : \"Register\";\n\t\treturn regBaseType + \" #(\" + getAltBlockType() + \"::\" + regTypeParam + \")\"; // TODO - make parameterizable, getAddressMapName() + \"_\" + regProperties.getBaseName() + \"_t\" \n\t}",
"public String type();",
"private static String getCorrectTypeName(final String typeName)\n {\n String result = \"\";\n\n // Type is an XSD built-in type\n if (mapping.containsKey(typeName))\n {\n result = mapping.get(typeName);\n }\n // Type is a custom type\n else\n {\n result = typeName;\n }\n\n return result;\n }",
"private static String typeName(File file) {\r\n String name = file.getName();\r\n int split = name.lastIndexOf('.');\r\n\r\n return (split == -1) ? name : name.substring(0, split);\r\n }",
"void setType(java.lang.String type);",
"TypeSystemDefinition createTypeSystemDefinition();",
"protected abstract String getType();",
"public void setNametype(Integer nametype) {\r\n this.nametype = nametype;\r\n }",
"EPREFIX_TYPE getName();",
"public static String getFormalTypeName(String jniName) {\n \t\tif (jniName.charAt(0) == '[') {\n \t\t\t// It is an array\n \t\t\tint dims = jniName.lastIndexOf('[')+1;\t// Number of dimensions\n \t\t\tint startType = dims;\n \t\t\tStringBuffer fName = new StringBuffer(jniName.length()+(2*dims)); \n\t\t\tif (jniName.charAt(startType) == 'L')\n\t\t\t\tfName.append(jniName.substring(startType+1, jniName.length()-1));\t// For \"[Ljava.lang.String;\" return \"java.lang.String\"\n \t\t\telse if (jniName.length() == startType+1) {\n \t\t\t\t// Possible primitive\n \t\t\t\tClass type = (Class) MAP_SHORTSIG_TO_TYPE.get(jniName.substring(startType, startType+1));\n \t\t\t\tif (type != null) {\n \t\t\t\t\tfName.append(type.getName());\n \t\t\t\t} else\n \t\t\t\t\treturn \"\";\t// Invalid if no 'L' and not a primitive. //$NON-NLS-1$\n \t\t\t} else\n \t\t\t\treturn \"\";\t// Invalid, must be either a primitive or 'L' type. //$NON-NLS-1$\n \t\t\twhile(dims-- > 0) {\n \t\t\t\tfName.append(\"[]\"); //$NON-NLS-1$\n \t\t\t}\n \t\t\treturn fName.toString();\n \t\t} else if (jniName.length() == 1) {\n \t\t\t// Possible primitive.\n \t\t\tClass type = (Class) MAP_SHORTSIG_TO_TYPE.get(jniName);\n \t\t\tif (type != null) {\n \t\t\t\treturn type.getName();\n \t\t\t}\n \t\t}\n \t\t\n \t\t// If got here then just a name as is.\n \t\treturn jniName;\n \t}"
] | [
"0.63897496",
"0.59963083",
"0.59541786",
"0.59475976",
"0.59395283",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5861879",
"0.5768566",
"0.5759568",
"0.575769",
"0.575769",
"0.5739618",
"0.5739618",
"0.57082427",
"0.56938",
"0.56841135",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.5681279",
"0.566539",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5665194",
"0.5638326",
"0.56181693",
"0.5558746",
"0.5548798",
"0.5547674",
"0.5538629",
"0.55354273",
"0.55321056",
"0.55174917",
"0.54959166",
"0.5490285",
"0.54291713",
"0.5424248",
"0.54168034",
"0.54168034",
"0.5411041",
"0.54063034",
"0.5396558",
"0.53851676",
"0.538076",
"0.537801",
"0.5343683",
"0.5321876",
"0.53136367",
"0.5308438",
"0.53018296",
"0.52993673"
] | 0.56204325 | 74 |
Setup the testing environment. | protected void setUp() throws Exception {
super.setUp();
FailureTestHelper.clearNamespaces();
ConfigManager.getInstance().add("DBConnectionFactory_Config.xml");
// TODO If real provided should load namespace.
dbConnectionFactory = new DBConnectionFactoryImpl("com.topcoder.db.connectionfactory.DBConnectionFactoryImpl");
connName = "informix";
idGen = "DbCompanyDAO";
contactManager = (ContactManager) mock(ContactManager.class).proxy();
contactManagerNamspace = ContactManager.class.getName();
addressManager = (AddressManager) mock(AddressManager.class).proxy();
addressManagerNamspace = AddressManager.class.getName();
auditManager = (AuditManager) mock(AuditManager.class).proxy();
auditManagerNamspace = AuditManager.class.getName();
dbCompanyDAO = new DbCompanyDAO(dbConnectionFactory, connName, idGen, contactManager, addressManager,
auditManager);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Before\n public void setupEnvironment() {\n TestEnvironment testEnvironment;\n switch (mode) {\n case CLUSTER:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().disableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case CLUSTER_OBJECT_REUSE:\n // This only works because of the quirks we built in the TestEnvironment.\n // We should refactor this in the future!!!\n testEnvironment = MINI_CLUSTER_RESOURCE.getTestEnvironment();\n testEnvironment.getConfig().enableObjectReuse();\n testEnvironment.setAsContext();\n break;\n case COLLECTION:\n new CollectionTestEnvironment().setAsContext();\n break;\n }\n }",
"private void setupEnvironment() {\n // Create mocks for configurations\n bgpConfig = createMock(BgpConfig.class);\n participantsConfig = createMock(SdxParticipantsConfig.class);\n\n // Create mocks for services\n coreService = new TestCoreService();\n configService = new TestNetworkConfigService();\n registry = new NetworkConfigRegistryAdapter();\n interfaceService = createMock(InterfaceService.class);\n interfaceService.addListener(anyObject(InterfaceListener.class));\n expectLastCall().anyTimes();\n intentSynchronizer = createMock(IntentSynchronizationService.class);\n }",
"@BeforeTest\r\n\tpublic void setupenvi() throws IOException {\r\n\t\tsetup();\r\n\t\tinit();\r\n\t}",
"protected void setUp() throws Exception {\n TestEnvironnement.forceFakeDriver();\n testEnv = TestEnvironnement.newEnvironment();\n Dependency.setConnectionManager(testEnv.getConnectionManager());\n }",
"protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }",
"protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }",
"@Before\n public void setup() throws Exception {\n mTestUtil.overrideAllowlists(true);\n // We need to turn the Consent Manager into debug mode\n mTestUtil.overrideConsentManagerDebugMode(true);\n mTestUtil.overrideMeasurementKillSwitches(true);\n mTestUtil.overrideAdIdKillSwitch(true);\n mTestUtil.overrideDisableMeasurementEnrollmentCheck(\"1\");\n mMeasurementManager =\n MeasurementManagerFutures.from(ApplicationProvider.getApplicationContext());\n\n // Put in a short sleep to make sure the updated config propagates\n // before starting the tests\n Thread.sleep(100);\n }",
"@BeforeClass\n\t\tpublic static void setup() {\n\t\t\t// Get the browser to use in testing\n\t\t\tSystem.setProperty(\"testBrowser\", \"chrome\");\n\t\t\t\n\t\t\t// Get the browser to use in testing\n\t\t\tString browserToUse = System.getProperty(\"testBrowser\");\n\t\t\t\n\t\t\t// Open the specified browser\n\t\t\topenBrowser(browserToUse);\n\t\t}",
"@BeforeClass\n\tpublic static void setupClass() throws JsonParseException, JsonMappingException, IOException, URISyntaxException {\n\t\tTEST_ENVIRONMENT.setupConfiguration();\n\t\tTEST_ENVIRONMENT.setupDbConnection();\n\t\tTEST_ENVIRONMENT.migrateDb();\n\t\tTEST_ENVIRONMENT.setupServer();\n\t}",
"@BeforeClass\n\tpublic static void setup() {\n\n\t}",
"private static void loadTestEnv() {\n\n\t\tPropertyReader reader = new PropertyReader(GlobalContext.getAppDir(), Constants.FILENAME_TESTENV);\n\n\t\tTestEnv env = new TestEnv();\n\t\tenv.setDefaultHostName(reader.getProperty(Constants.DEFAULT_HOST_NAME));\n\t\tenv.setDefaultHostOS(reader.getProperty(Constants.DEFAULT_HOST_OS));\n\t\tenv.setDefaultCredentials(reader.getProperty(Constants.DEFAULT_CREDENTIALS));\n\t\tenv.setDefaultBrowser(reader.getProperty(Constants.DEFAULT_BROWSER));\n\t\tenv.setAppServer(reader.getProperty(Constants.APP_SERVER));\n\t\tenv.setDatabaseServer(reader.getProperty(Constants.DATABASE_SERVER));\n\t\tenv.setEmailReceipients(reader.getProperty(Constants.EMAIL_RECEIPIENTS));\n\t\tenv.setEmailSender(reader.getProperty(Constants.EMAIL_SENDER));\n\n\t\t// sets to global context.\n\t\tGlobalContext.setTestEnv(env);\n\t}",
"public void setUp() {\n\n\t}",
"@Before\n\tpublic void setup() {\n\t\tinit(rule.getProcessEngine());\n\t}",
"@BeforeClass(groups = { \"WorkflowNG\" })\n\tpublic void setUp() {\n\n\t\ttry {\n\t\t\t\n\t\t\tlog.warn(\"Starting: \" + this.getClass().getSimpleName());\n\n\t\t\tIEUtil.openNewBrowser();\n\t\t\tGeneralUtil.navigateToPO();\n\t\t\tGeneralUtil.logInSuper();\n\t\t\t// -----------------------------------\n\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Unexpected error or exception\", e);\n\t\t}\n\t}",
"@Before\n\tpublic void testEachSetup() {\n\t\ttestGrid = new Grid(50,50);\n\t\tundoRedo_TestStack = new UndoRedo();\n\t\tSystem.out.println(\"Setting up test...\");\n\t}",
"protected void setUp() {\n config = new ContestConfig();\n }",
"protected void setUp() {\n\t}",
"@BeforeClass\r\n\tpublic void setUp() {\n\t\tdriver = BrowserFactory.startApplication(DataProviderFactory.getConfig().getStagingURL(), DataProviderFactory.getConfig().getBrowser());\r\n\t}",
"@BeforeClass\n\tpublic void setUp() {\n\t\tapp = app.get(ApplicationSourcesRepo.getFirefoxHerokuApplication());\n\n\t}",
"@Before\r\n\tpublic void setup() {\r\n\t}",
"@Override\n public void setUp() {\n try {\n testEngine = MockupSAMLEngine.getInstance();\n } catch (SAMLEngineException e) {\n e.log();\n fail(e.toString());\n }\n }",
"@BeforeClass(groups = { \"EtlNG\" })\n\tpublic void setUp() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tlog.warn(\"Starting: \" + this.getClass().getSimpleName());\n\n\t\t\tIEUtil.openNewBrowser();\n\t\t\tGeneralUtil.navigateToPO();\n\t\t\tGeneralUtil.logInSuper();\n\t\t\t// -----------------------------------\n\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Unexpected Exception: \", e);\n\t\t}\n\t}",
"protected void setUp() throws Exception {\n\n super.setUp();\n OpenXpertya.startup(true);\n }",
"@BeforeClass\n public void setup()\n throws Exception {\n startZk();\n startController();\n startBroker();\n startKafka();\n }",
"@Before\n public void setup() {\n }",
"@Before\n public void setup() {\n }",
"@Before\n public void setup() {\n }",
"protected void setUp()\n {\n }",
"protected void setUp()\n {\n }",
"@BeforeClass\n\tpublic static void setupTestes()\n\t{\n\t\t\n\t\tSystem.out.println(\"ESTOU FAZENDO O SETUP GERAL\");\n\t}",
"@Override\n\tprotected void setUp() {\n\t\ttry {\n\t\t\tconsole = new MMAConsole();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Before\n public void setup() {\n endpoint = new Endpoint();\n endpoint.setKey(1);\n endpoint.setUrl(URI.create(\"http://localhost/nmr\"));\n\n // Installation, synchronized against\n installation = new Installation();\n installation.setType(InstallationType.TAPIR_INSTALLATION);\n installation.addEndpoint(endpoint);\n\n // Populated Dataset\n dataset = prepareDataset();\n\n // RegistryUpdater, using mocked web service client implementation\n updater = new RegistryUpdater(datasetService, metasyncHistoryService);\n }",
"@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}",
"@Override\n\tprotected void setUp() throws Exception\n\t{\n\t\tTestEnvironment te = TestEnvironment.getTestEnvironment();\n\n\t\tif (EquationCommonContext.getContext().checkIfGPIsInstalled(te.getSessionId()))\n\t\t{\n\t\t\tEquationCommonContext.getContext().loadEquationConfigurationPropertiesBean();\n\t\t\tEquationCommonContext.getContext().runSystemStatusManagerMonitor();\n\t\t}\n\t\tif (session == null)\n\t\t{\n\t\t\tunit = te.getEquationUnit();\n\t\t\tuser = te.getEquationUser();\n\t\t\tsession = user.getSession();\n\t\t}\n\n\t\tsuper.setUp();\n\t}",
"public void setUp()\r\n {\r\n //empty on purpose\r\n }",
"@Before public void setUp() { }",
"@BeforeEach\n public void setup() {\n }",
"@BeforeTest\n public void setupEnv() {\n CLUSTER.start();\n endpoints = CLUSTER.getClientEndpoints();\n Client client = Client.builder()\n .endpoints(endpoints)\n .build();\n\n this.authDisabledKVClient = client.getKVClient();\n this.authDisabledAuthClient = client.getAuthClient();\n }",
"protected void setUp() {\n\n }",
"@BeforeClass(alwaysRun = true)\n public void setEnvironment() throws Exception {\n \n esbRequestHeadersMap = new HashMap<String, String>();\n \n apiRequestHeadersMap = new HashMap<String, String>();\n \n init(\"agilezen-connector-1.0.2-SNAPSHOT\");\n \n esbRequestHeadersMap.put(\"Accept\", \"application/json\");\n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n \n apiRequestHeadersMap.putAll(esbRequestHeadersMap);\n \n apiRequestHeadersMap.put(\"X-Zen-ApiKey\", connectorProperties.getProperty(\"apiKey\"));\n apiRequestUrl = connectorProperties.getProperty(\"apiUrl\") + \"/api/v1\";\n \n }",
"@Before\n\tpublic void setupTeste()\n\t{\n\t\tSystem.out.println(\"ESTOU FAZENDO O SETUP\");\n\t}",
"public static void setUp() {\n RequestFactory.defaultFactory = new RequestFactory() {\n @Override\n public Request createRequest(\n String httpMethod,\n String apiMethod,\n RequestType type,\n Map<String, Object> params) {\n return new RequestHelper(httpMethod, apiMethod, type, params);\n }\n };\n RequestSender.setInstance(new ImmediateRequestSender());\n\n if (BuildConfig.DEBUG) {\n Leanplum.setAppIdForDevelopmentMode(APP_ID, DEVELOPMENT_KEY);\n } else {\n Leanplum.setAppIdForProductionMode(APP_ID, PRODUCTION_KEY);\n }\n Leanplum.setDeviceId(\"leanplum-unit-test-20527411-BF1E-4E84-91AE-2E98CBCF30AF\");\n Leanplum.setApiConnectionSettings(API_HOST_NAME, \"api\", API_SSL);\n Leanplum.setSocketConnectionSettings(SOCKET_HOST_NAME, SOCKET_PORT);\n Leanplum.setLogLevel(Log.Level.DEBUG);\n }",
"private void setup() throws Exception {\n\t}",
"public static void setup() {\n\t\tEseoTest.driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n\t\tEseoTest.driver.manage().window().setSize(new Dimension(1024, 768));\n\t}",
"@Before\n public void setup() {\n }",
"@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}",
"@Before\n public void setUp() {\n start(fakeApplication(inMemoryDatabase(), fakeGlobal()));\n }",
"@BeforeClass(alwaysRun = true)\n public void setEnvironment() throws Exception {\n \n init(\"podio-connector-1.0.2-SNAPSHOT\");\n\n esbRequestHeadersMap = new HashMap<String, String>();\n apiRequestHeadersMap = new HashMap<String, String>();\n \n apiUrl = connectorProperties.getProperty(\"apiUrl\");\n timeOut = Long.parseLong(connectorProperties.getProperty(\"timeOut\"));\n \n esbRequestHeadersMap.put(\"Accept-Charset\", \"UTF-8\");\n \n apiRequestHeadersMap.putAll(esbRequestHeadersMap);\n apiRequestHeadersMap.put(\"Authorization\", \"Bearer \" + connectorProperties.getProperty(\"accessToken\"));\n apiRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n }",
"protected void setUp() {\n //Clear all namespace in the ConfigManager\n TestHelper.resetConfig();\n }",
"@BeforeEach\n\tpublic void setup() {\n\t\tif (!initialized) {\n\t\t\tbaseURI = String.format(uri, port);\n\t\t\tinitialized = true;\n\t\t}\n\t}",
"protected void setUp() throws Exception {\n super.setUp();\n }",
"@BeforeSuite\n\tpublic void configSetup() throws IOException {\n\n\t\t// ****** Creating FileInputStream object to read from\n\t\t// Environment.properties file\n\n\t\tenv = new FileInputStream(\n\t\t\t\t\"C:\\\\Automation\\\\Workspace\\\\UptakeProject\\\\src\\\\configuration\\\\Environment.properties\");\n\t\tenvData = new Properties();\n\t\tenvData.load(env);\n\n\t\t// ****** Creating FileInputStream object to read from\n\t\t// ExpectedResult.properties file\n\n\t\texp = new FileInputStream(\n\t\t\t\t\"C:\\\\Automation\\\\Workspace\\\\UptakeProject\\\\src\\\\configuration\\\\ExpectedResult.properties\");\n\t\texpData = new Properties();\n\t\texpData.load(exp);\n\n\t\t// ****** Initializing driver for the browser type that is mentioned in\n\t\t// Environment.properties file\n\n\t\tif (envData.getProperty(\"Browsertype\").equals(\"Firefox\")) {\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\"C:\\\\Automation\\\\Workspace\\\\UptakeProject\\\\BrowserExecutables\\\\geckodriver.exe\");\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (envData.getProperty(\"Browsertype\").equals(\"Chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\"C:\\\\Automation\\\\Workspace\\\\UptakeProject\\\\BrowserExecutables\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t} else if (envData.getProperty(\"Browsertype\").equals(\"IE\")) {\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\n\t\t\t\t\t\"C:\\\\Automation\\\\Workspace\\\\UptakeProject\\\\BrowserExecutables\\\\IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t}\n\n\t\t// ****** Launching the URL that is mentioned in Environment.properties\n\t\t// file\n\n\t\tdriver.get(envData.getProperty(\"Website_URL\"));\n\n\t\t// ****** Defining implicit wait for the test\n\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\n\t\t// ****** Defining explicit wait for the test\n\n\t\twait = new WebDriverWait(driver, 15);\n\t}",
"@BeforeClass\n\tpublic static void setup() {\n\t\tgetLogManager().init();\n\t}",
"@Override\n protected void setUp() throws Exception {\n super.setUp();\n if (container == null) {\n String resource = System.getProperty(\"jest.web.xml\", DEFAULT_WEB_XML);\n System.err.println(\"Starting Servlet Container from \" + resource);\n InputStream wdesc = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource);\n assertNotNull(resource + \" not loadable at thread context classpath\", wdesc);\n container = new ServletRunner(wdesc);\n assertNotNull(\"Servlet engine could not be started\", container);\n\n baseURI = System.getProperty(\"jest.base.uri\", DEFAULT_BASE_URI);\n System.err.println(\"Base URI \" + baseURI);\n\n _xmlParser = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n _xpathFactory = XPathFactory.newInstance();\n }\n HttpUnitOptions.setExceptionsThrownOnErrorStatus(true);\n HttpUnitOptions.setScriptingEnabled(false);\n HttpUnitOptions.setExceptionsThrownOnScriptError(false);\n }",
"protected void setUp() throws Exception {\n }",
"@Before\n\t\t public void setUp() throws Exception {\n\t\t\t testHelper.setUp();\n\t\t }",
"@Before\n\tpublic void setUp()\n\t{\n\t\tOptionsManager.getSingleton().setTestMode(true);\n\t\tQuestManager.resetSingleton();\n\t}",
"protected void setUp() throws Exception {\n \n }",
"@BeforeClass\n\tpublic static void testSetup() {\n\t\t// do something before all tests\n\t}",
"@Before\n\t public void setUp() {\n\t }",
"@Override\n public void setUp() {\n }",
"@BeforeClass\n\t public void setUp() {\n\t }",
"protected void setup() {\r\n }",
"protected void setUp() throws Exception {\n\t\tDesktopLauncher.main(new String[] {});\n\n\t}",
"protected void setUp() throws Exception {\n }",
"private final void doSetup() {\r\n \tsetEnvironmentVariables();\r\n \t\r\n \tcreateAppWindows();\r\n \t\r\n \tcreateAppPages();\r\n\r\n \t//Set the default resource bundle. This necessary even for non-L10N tests, because even they\r\n \t// need to call localizeFieldLocators()\r\n\t\tsetResourceBundle(DDConstants.DEFAULT_L10N_BUNDLE);\r\n\t\t\r\n\t\t//MUST be called after super.setup!!!\r\n \t//NOTE that ddUser is the equivalent of a user that is found in the setup screen.\r\n \t// The user that logs in to the app is known as the auto user. Until we figure out\r\n \t// whether that model applies, don't call this.\r\n \t//setDDUser();\r\n }",
"@BeforeEach\n public void setUp() throws Exception\n {\n // Set up a new thread context class loader\n setUpClassloader();\n\n // Set up Servlet API Objects\n setUpServletObjects();\n\n // Set up JSF API Objects\n FactoryFinder.releaseFactories();\n\n setFactories();\n\n setUpJSFObjects();\n }",
"public void testSetUp() throws Throwable {\n\t\tlog.debug(\"Preparing Selenium...\");\r\n\t\tBrowserUtils.setWebBrowser(getEnvProperty(\"browser\"));\r\n\r\n\r\n\t\tString testName = new StringBuffer(getClass().getSimpleName()).toString();\r\n\t\t// set the log for the webdriver\r\n\t\tFile logFile = new File(\"logs/current/\" + testName + \"Driver.log\");\r\n\t\tif (BrowserUtils.isChrome()) {\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.logfile\", logFile.getAbsolutePath());\r\n\t\t} else if (BrowserUtils.isInternetExplorer()) {\r\n\t\t\tSystem.setProperty(\"webdriver.ie.driver.logfile\", logFile.getAbsolutePath());\r\n\t\t} else if (BrowserUtils.isFirefox()) {\r\n\t\t\tSystem.setProperty(\"webdriver.firefox.logfile\", logFile.getAbsolutePath());\r\n\t\t}\r\n\t\tif (!BrowserUtils.loadURL(getEnvProperty(\"deploy\"), getEnvProperty(\"username\"), getEnvProperty(\"password\"))) {\r\n\t\t\tfail(\"Failed to load initial URL due to WebDriver issue\");\r\n\t\t}\r\n\t\tlog.info(\"The current window size is: \"+BrowserUtils.getDriver().manage().window().getSize());\r\n\t\tBrowserUtils.moveMouseOffScreen();\r\n\t\t\r\n\t\tbTestCasePass = true;\r\n\t}",
"public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}",
"@BeforeClass\r\n\tpublic static void setupSystem() {\r\n\t\tSystemActions.logSystemInfo();\r\n\t\tSystemActions.updateSettings();\r\n\t}",
"@BeforeEach\n public void setup() {\n testTaskList = new TaskList();\n testUi = new Ui();\n\n Event testEvent = new Event(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"31/01/20 0800\"),\n Parser.parseDate(\"31/01/20 1200\"), \"testing\");\n Assignment testAssign = new Assignment(\"Daily Work\", \"CS2113T\", Parser.parseDate(\"20/03/20 0000\"),\n \"testing\");\n testTaskList.addTask(testEvent);\n testTaskList.addTask(testAssign);\n }",
"@BeforeClass\n public static void setUpBeforeClass() {\n TestNetworkClient.reset();\n context = ApplicationProvider.getApplicationContext();\n dataStorage = TestDataStorage.getInstance(context);\n ApplicationSessionManager.getInstance().startSession();\n }",
"@Override\n public void setUp() throws Exception {}",
"@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}",
"@BeforeClass\n public static void setup() {\n System.out.println(\"*** Before Class ***\");\n }",
"@Before\n\tpublic void setup() \n\t{\n\t\tsuper.setup();\n\t\t\n }",
"@BeforeClass\n\tpublic void TestSetup() {\n\t}",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tvendMachine = new VendingMachine();\r\n\t}",
"public void setUp()\n\t{\n\t\tif (driver == null){\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSystem.out.println(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\properties\\\\Config.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tconfig.load(fis);\n\t\t\t\tSystem.out.println(\"config file loaded\");\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tfis = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\properties\\\\OR.properties\");\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tOR.load(fis);\n\t\t\t\t//config.load(fis);\n\t\t\t\tSystem.out.println(\"OR file loaded\");\n\t\t\t\tSystem.out.println(System.getenv(\"browser\"));\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (System.getenv(\"browser\")!= null)\n\t\t\t\t{\n\t\t\t\t\tbrowser = System.getenv(\"browser\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tbrowser = config.getProperty(\"browser\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\tconfig.setProperty(browser, browser);\n\t\tif (config.getProperty(\"browser\").equals(\"chrome\"))\n\t\t\t\n\t\t{\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\") + \"\\\\src\\\\test\\\\resources\\\\executables\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t\tSystem.out.println(\"Chrome Launched !!!\");\n\t\t}\n\t\t//System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Program Files (x86)\\\\chromedriver_win32\\\\chromedriver.exe\");\n\t\t//driver = new ChromeDriver();\n\t\tSystem.out.println(System.getProperty(\"TestEnv\"));\n\t\tdriver.get(config.getProperty(\"testsiteurl\").replace(\"{TestEnv}\", System.getProperty(\"TestEnv\")));\n\t\tSystem.out.println(\"Navigated to : \" + config.getProperty(\"testsiteurl\"));\n\t\tdriver.manage().window().maximize();\n\t\t\n\t}",
"@BeforeClass\n public static void SetupEnviron() throws FileNotFoundException, UnsupportedEncodingException {\n if (outputDir != null && baseLocalDir != null) {\n // exit early if the environ is already set\n return;\n }\n BasicConfigurator.resetConfiguration();\n BasicConfigurator.configure();\n String container = \"testConfiguration\";\n InputStream templateInputStream = null;\n try {\n File configFile = new File(\"resources/tests_config.xml\");\n templateInputStream = new FileInputStream(configFile);\n Document configDoc = XMLDomUtils.getTemplateDom(templateInputStream);\n // read from the config file\n outputDir = XMLDomUtils.getNodeValue(configDoc, container, \"outputDirectory\");\n outputDir += \"desc_sen/\";\n baseLocalDir = XMLDomUtils.getNodeValue(configDoc, container, \"projectDirectory\");\n exampleOutputDir = XMLDomUtils.getNodeValue(configDoc, container, \"outputDirectory\");\n exampleOutputDir += \"examples/\";\n } finally {\n if (templateInputStream != null) {\n try {\n templateInputStream.close();\n } catch (IOException e) {\n // ignore, closing..\n }\n }\n }\n \n File file = new File(outputDir);\n file.mkdirs();\n \n file = new File(exampleOutputDir);\n file.mkdirs();\n \n baseQuery += URLEncoder.encode(\"text/xml;subtype=\\\"sensorML/1.0.1\\\"\", \"UTF-8\") + \"&\";\n }",
"@BeforeClass\n public static void setUp() throws Exception {\n // temporarily rename existing application.conf\n if (appConf.exists()) {\n Files.move(\n appConf.toPath(),\n tempAppConf.toPath()\n );\n }\n\n // copy testing-specific application.conf\n Files.copy(\n (new File(\"./src/test/resources/application.conf\")).toPath(),\n appConf.toPath()\n );\n\n // start a server\n String[] args = {};\n AnalysisServer.main(args);\n }",
"@BeforeClass(alwaysRun = true)\n\t@Parameters(\"Environment\")\n\tpublic void startEnvironment(String sEnv) {\n\t\ttry {\n\t\t\tcs = null;\n\t\t\tal = new AppLib(cs);\n\t\t\tal.setEnvironmentInfo(sEnv);\n\t\t\tproxy = al.getHttpProxy();\n\t\t\tapi = new API();\n\t\t\tapi.setProxy(proxy);\n\t\t\tmydb = al.getMongoDbConnection();\n\t\t\tma = new MemberAPIs();\n\t\t\tmember = new TC01_FindMemberFromDB();\n\t\t\t} catch (Exception e) {\n\t\t\t\tfail(e.toString());\n\t\t\t\t}\n\t}",
"public void setUp() throws Exception {\n jvmVersion = System.getProperty(\"java.class.version\");\n System.setProperty(\"java.class.version\", \"47.0\");\n vendor = System.getProperty(\"java.vendor\");\n System.setProperty(\"java.vendor\", \"Sun Microsystems\");\n }",
"@BeforeEach\n\tvoid setup(){\n\t}",
"@BeforeClass\n protected void initialize() {\n try {\n Class<?> testbedClass = Class.forName(\n MainframeEnvironmentVerification.class.getPackage().getName()\n + \".\" + envProperties.getTestbedPropertyById(\"id\"));\n\n if (!MainframeTestbed.class.isAssignableFrom(testbedClass)) {\n fail(\"This test can only be called on a testbed that implements the \"\n + MainframeTestbed.class.getName() + \" interface\");\n }\n MainframeTestbed testbed = (MainframeTestbed)testbedClass.newInstance();\n\n sysviewConfigs = testbed.getSysviewInstances();\n sysvDb2Configs = testbed.getSysvdb2Instances();\n cicsConfigs = testbed.getCicsRegions();\n mqConfigs = testbed.getMqSubsystems();\n imsConfigs = testbed.getImsRegions();\n datacomConfigs = testbed.getDatacomInstances();\n } catch (Exception e) {\n fail(\"Unable to query testbed for environment configuration values\", e);\n }\n\n if (!sysviewConfigs.isEmpty()) {\n // If the testbed has multiple Sysview instances we use the first for generic queries.\n try {\n sysview = new Sysview(sysviewConfigs.iterator().next().getLoadlib());\n } catch (IOException e) {\n fail(\"Unable to initialize Sysview instance used for generic queries\");\n }\n } else {\n logger.warn(\"Some checks will be skipped as the testbed contains no sysview instance\");\n }\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Before public void setUp() {\n }",
"@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }",
"@Override\r\n\tpublic void setUp() {\n\r\n\t}",
"@BeforeAll\n public static void setUpClass() {\n emf = EMF_Creator.createEntityManagerFactoryForTest();\n\n //Set System property so the project executed by the Grizly-server wil use this same database\n EMF_Creator.startREST_TestWithDB();\n \n httpServer = startServer();\n\n //Setup RestAssured\n RestAssured.baseURI = SERVER_URL;\n RestAssured.port = SERVER_PORT;\n\n RestAssured.defaultParser = Parser.JSON;\n }",
"@Before\n\tpublic void setUp() {\n\t}",
"@BeforeClass\n public static void setUp() {\n }",
"@BeforeSuite\n\tpublic void setUp() {\n\t\tlogger.info(\"IN SETUP METHOD: performing pretest configurations\");\n\t\ttry {\n\t\t\tinput = new FileInputStream(\"config.properties\");\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e);\n\t\t\t\n\t\t}\n\t\t//Set the browser from the cmd line or from config.properties file\n\t\tString browser = System.getProperty(\"browser\", prop.getProperty(\"browser\"));\n\t\tlogger.info(\"Selected browser is: \" + browser);\n\t\tgmailPg.driverSetup(browser, prop.getProperty(\"remote\"));\n\t\tgmailPg.explicitWaitSetup();\n\t\tgmailPg.loadXpathProps();\n\t}",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}",
"@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}",
"@BeforeMethod\n\tpublic void setup() {\n\t\tinitialization();\n\t\tloginpage = new LoginPage();\n\t\tcontactpage=new ContactPage();\n\t\ttestutil = new TestUtil();\n\t\thomepage=loginpage.login(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\n\t}",
"@BeforeClass\r\n public static void classSetUp() {\r\n sdebug(TEST_NAME, \"In setup\");\r\n initialEmf = lookupEntityManagerFactory(TEST_NAME, PERSISTENCE_UNIT_UNDER_TEST, ctx);\r\n sdebug(TEST_NAME, \"Got EMF - \" + initialEmf);\r\n emfb = lookupEntityManagerFactoryBuilder(TEST_NAME, PERSISTENCE_UNIT_UNDER_TEST, ctx);\r\n sdebug(TEST_NAME, \"Got EMFBuilder - \" + emfb);\r\n }",
"@Before\n public void setup() {\n RoboGuice.overrideApplicationInjector(RuntimeEnvironment.application, new MyTestModule());\n mainPresenter = new MainPresenter(\n RuntimeEnvironment.application.getApplicationContext(), loginViewMock);\n\n }"
] | [
"0.79420555",
"0.7874571",
"0.76678014",
"0.75218415",
"0.7446516",
"0.7446393",
"0.7361474",
"0.73067605",
"0.7284708",
"0.727698",
"0.72200155",
"0.7166607",
"0.7164958",
"0.7153581",
"0.71520233",
"0.7148893",
"0.7148149",
"0.7129432",
"0.7125726",
"0.71173424",
"0.7108971",
"0.7094923",
"0.7054008",
"0.7029971",
"0.70052016",
"0.70052016",
"0.70052016",
"0.6989201",
"0.6989201",
"0.69878817",
"0.6987709",
"0.69791615",
"0.69762975",
"0.6975445",
"0.6969252",
"0.69591933",
"0.695167",
"0.6950238",
"0.6947132",
"0.69464165",
"0.69432193",
"0.69408053",
"0.69392765",
"0.6923081",
"0.6919837",
"0.6914738",
"0.6907745",
"0.68992275",
"0.6897037",
"0.6892311",
"0.6882327",
"0.6878799",
"0.6872775",
"0.68723005",
"0.68700075",
"0.6864482",
"0.6848506",
"0.682931",
"0.6829078",
"0.682787",
"0.682384",
"0.6823658",
"0.680916",
"0.6799511",
"0.67989033",
"0.67923766",
"0.6789538",
"0.678672",
"0.67835295",
"0.67823625",
"0.67744136",
"0.67664826",
"0.67652065",
"0.6759936",
"0.67537963",
"0.6750328",
"0.67487246",
"0.67334276",
"0.6727531",
"0.6717144",
"0.6714502",
"0.6713884",
"0.6713706",
"0.6711378",
"0.6710823",
"0.67107993",
"0.67107993",
"0.67107993",
"0.67107993",
"0.67107993",
"0.6708099",
"0.67079896",
"0.6707715",
"0.67034787",
"0.66957",
"0.6688487",
"0.668415",
"0.668415",
"0.6679298",
"0.6677274",
"0.6667645"
] | 0.0 | -1 |
String input = "Geeks for Geeks"; | public static void main(String[] args) {
String input = "Lukman";
StringBuilder input1 = new StringBuilder();
// append a string into StringBuilder input1
//input1.append(input);
// reverse StringBuilder input1
//input1 = input1.reverse();
// print reversed String
int len = input.length() - 1;
for (int i = len; i >= 0; --i) {
input1.append(input.charAt(i));
}
System.out.println("Reverse:" + input1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n String input = \"\";\n String word = \"\";\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Please give me the string to search in: \");\n input = scanner.nextLine();\n System.out.println(\"Please give me the string to search for: \");\n word = scanner.nextLine();\n System.out.println(subStr(input, word));\n\n }",
"public static void main(String[] args) {\n Scanner input = new Scanner (System.in);\n System.out.println(\"Enter your word here please\");\n String str = input.nextLine();\n int length = str.length();\n\n System.out.println(str.substring(length-1)+ str + ( str.substring(length-1)));\n\n }",
"public static void main(String[] args) {\n Scanner console = new Scanner(System.in);\n String input = console.nextLine();\n Pattern wordPattern = Pattern.compile(\n \"[A-Za-z]+\");\n Matcher matcher = wordPattern.matcher(input);\n while (matcher.find()) {\n System.out.print(matcher.group()+\" \");\n }\n\n }",
"static String cutName(String input) { return input.split(\" \")[0]; }",
"@RequiresApi(api = Build.VERSION_CODES.O)\n public static String formatSearchString(String input) {\n\n //Split by white spaces into an array\n String[] keywords = input.trim().split(\"\\\\s+\");\n\n //Format all words inside array\n for (int i=0; i<keywords.length; i++){\n keywords[i] = keywords[i].substring(0, 1).toUpperCase() + keywords[i].substring(1).toLowerCase();\n }\n\n /*\n * Input = HeLLo woRld -> Output = Hello World\n * */\n\n //Join words in array with space\n return String.join(\" \", keywords);\n }",
"public static String extractString(String input) {\n\t\tif(input == null || input.isEmpty() || input.length()==0)\n\t\t\treturn \"\";\n\t\telse if(input.length()<=2)\n\t\t\treturn \"Length of the string \"+ input +\"is too low\";\n\t\telse if (input.length()>10)\n\t\t\treturn \"Length of the string \"+ input +\"is too high\";\n\t\telse if (!input.matches(\"^[a-zA-Z]*$\"))\n\t\t\treturn input +\" is Invalid\";\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tint length = input.length();\n\t\tint mid = length/2;\n\t\tsb.append(Character.toUpperCase(input.charAt(mid)));\n\t\tmid = mid+1;\n\t\twhile(mid<length) {\n\t\t\tsb.append(input.charAt(mid));\n\t\t\tmid++;\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static ArrayList<String> getWords(String input) {\r\n ArrayList<String> w = new ArrayList<String>();\r\n input = input.toLowerCase();\r\n String[] words = input.split(\"\\\\s+\");\r\n for (int i = 0; i < words.length; i++) {\r\n words[i] = words[i].replaceAll(\"[^\\\\w]\", \"\");\r\n }\r\n for(String elem: words) {\r\n w.add(elem);\r\n }\r\n return w;\r\n }",
"public static void main(String[] args) {\n\t\tScanner kb = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Input a string: \");\r\n\t\tString st = kb.nextLine();\r\n\t\tSystem.out.println(\"Result: \"+st.substring(0, st.length()/2));\r\n\t}",
"public KeyWordList extractKeyWords(String input);",
"public String function(HashSet<String> Dictionary, String inputString) {\n\n int[] step = new int[inputString.length() + 1];\n\n step[0] = 0;\n\n for (int i = 1; i <= inputString.length(); i++)\n {\n step[i] = -1;\n\n for ( int j = 0 ; j < i ; j++ )\n {\n if ( Dictionary.contains( inputString.substring(j, i) ) && step[j] != -1 )\n {\n step[i] = j;\n break;\n }\n }\n }\n\n // if text can not be made from the whole inputString, return an empty string\n if (step[inputString.length()] == -1)\n return \"\";\n\n // Moving backwards from the end, the words contain words in the reverse order\n ArrayList<String> words = new ArrayList<String>();\n\n for (int x = inputString.length(); x > 0; x = step[x])\n words.add(inputString.substring(step[x], x));\n\n // Create a string using a StringBuilder that contains words in the normal order\n StringBuilder sb = new StringBuilder();\n\n for (int i = words.size()-1; i >= 0; i--)\n sb.append( i > 0 ? words.get(i) + \" \" : words.get(i) );\n\n return sb.toString();\n }",
"public static int Main()\n\t{\n\t\tString t;\n\t\tString cha = new String(new char[500]);\n\t\tint i; //???????\n\t\tcha = new Scanner(System.in).nextLine(); //???????\n\t\tt = cha;\n\t\tfor (i = 0; * (t.Substring(i)) != '\\0';i++)\n\t\t{\n\t\t\tif ((*(t.Substring(i)) == ' ') && (*(t.Substring(i) + 1) == ' '))\n\t\t\t{\n\t\t\tcontinue;\n\t\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.print((t.Substring(i)));\n\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t\treturn 0; //????\n\t}",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String initialString = \"Dong-ding-dong\";\n String secondaryString = in.nextLine();\n\n // Stage 1 : count the letters\n int letterCounter = 0;\n for (int i = 0; i < initialString.length(); i++) {\n if (Character.isLetter(initialString.charAt(i))) {\n letterCounter++;\n }\n }\n System.out.println(\"Initial string contains \" + letterCounter + \" letters.\");\n\n // Stage 2: check if hardcoded string and inputed string are equal ignoring the case\n System.out.println(\"Are the two strings equal? 0 if yes : \" + initialString.compareToIgnoreCase(secondaryString));\n\n // Stage 3: show initial string as all caps and all lowercase\n System.out.println(initialString.toUpperCase());\n System.out.println(initialString.toLowerCase());\n\n // Stage 4: show all dongdexes\n for(int i = -1; i <= initialString.length();){\n i = initialString.toLowerCase().indexOf(\"dong\", i+1);\n if(i != -1){\n System.out.println(i);\n }\n else{\n break;\n }\n }\n\n // Stage 5: replace all words \"dong\" with \"bong\"\n initialString = initialString.toLowerCase().replaceAll(\"dong\",\"bong\");\n System.out.println(initialString);\n\n // Stage 6: search for duplicated words and show their count\n String[] words = initialString.toLowerCase().split(\"-\");\n int counter = 0;\n for(String word : words){\n if(word != \"\"){\n for(int i = 0; i < words.length; i++){\n if(word.matches(words[i])){\n counter++;\n words[i] = \"\";\n }\n }\n System.out.println(\"The word \" + word + \" is repeated \" + counter + \" times.\");\n word = \"\";\n counter = 0;\n }\n }\n }",
"String generateMash(String input);",
"public static String \n removeDuplicateWords(String input) \n { \n \n // Regex to matching repeated words. \n String regex \n = \"\\\\b(\\\\w+)(?:\\\\W+\\\\1\\\\b)+\"; \n Pattern p \n = Pattern.compile( \n regex, \n Pattern.CASE_INSENSITIVE); \n \n // Pattern class contains matcher() method \n // to find matching between given sentence \n // and regular expression. \n Matcher m = p.matcher(input); \n \n // Check for subsequences of input \n // that match the compiled pattern \n while (m.find()) { \n input \n = input.replaceAll( \n m.group(), \n m.group(1)); \n } \n return input; \n }",
"String reverseMyInput(String input);",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString s = scan.nextLine();\r\n\t\tString st[] = s.split(\" \");\r\n\t\tString output =\"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\tString s1 = st[i];\r\n\t\t\tString dup =\"\";\r\n\t\t\tfor (int j = 0; j < s.length(); j++) {\r\n\t\t\tif(!(dup.contains(s.charAt(j)+\"\"))){\r\n\t\t\tdup+=s.charAt(j);\r\n\t\t}\r\n\t\t}\r\n\t\t\tif(!(output.contains(dup))){\r\n\t\t\t\toutput+=dup+\" \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\tSystem.out.println(output);\r\n}",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n String word= scan.next();\n // HELLO = 5/2=2 the half index for odd char count\n //JAVA = 4/2 = 2 the half index for even char count\n\n int halfIndex = word.length()/2;\n String halfWord = word.substring(0, halfIndex);\n System.out.println(halfWord + halfWord);\n\n\n\n }",
"public static String addPuctuation(String input) {\n // Sentence Openers \n input = input.replace(\"hello\", \"hello,\");\n input = input.replace(\"hi\", \"hi!\");\n input = input.replace(\"heya\", \"heya!\");\n input = input.replace(\"hey\", \"hey,\");\n input = input.replace(\"greetings\", \"greetings,\");\n input = input.replace(\"good morning\", \"good morning,\");\n input = input.replace(\"good evening\", \"good evening,\");\n input = input.replace(\"good afternoon\", \"good afternoon!\");\n \n\n // Words ending in nt \n input = input.replace(\"isnt\", \"isn't\");\n input = input.replace(\"cant\", \"can't\");\n input = input.replace(\"wont\" , \"won't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"would\", \"wouldn't\");\n input = input.replace(\"hadnt\", \"hadn't\");\n input = input.replace(\"aint\", \"ain't\");\n input = input.replace(\"arent\", \"aren't\");\n input = input.replace(\"didnt\", \"didn't\");\n input = input.replace(\"doesnt\" , \"doesn't\");\n input = input.replace(\"dont\" , \"don't\");\n input = input.replace(\"dont\", \"don't\");\n input = input.replace(\"hasnt\", \"hasn't\");\n input = input.replace(\"shoudlnt\", \"shouldn't\");\n input = input.replace(\"couldnt\", \"couldn't\");\n input = input.replace(\"wasnt\", \"wasn't\");\n input = input.replace(\"werent\" , \"were't\");\n input = input.replace(\"wouldnt\" , \"wouldn't\");\n\n //Questions\n String q1 = \"what\";\n String q2 = \"when\";\n String q3 = \"where\";\n String q4 = \"which\";\n String q5 = \"who\";\n String q6 = \"whom\";\n String q7 = \"whose\";\n String q8 = \"why\";\n String q9 = \"how\";\n\n if (input.contains(q1) || input.contains(q2) || input.contains(q3) \n || input.contains(q4) || input.contains(q5) || input.contains(q6) \n || input.contains(q7) || input.contains(q8) || input.contains(q9)) \n {\n input = input + \"?\";\n }\n\n else\n {\n input = input + \".\";\n }\n\n\n //Other\n input = input.replace(\"however\", \"however,\");\n input = input.replace(\"ill\" , \"i'll\");\n input = input.replace(\"im\", \"i'm\");\n return input;\n }",
"public static String convert1(String input) {\n\t\tString sRes = \"\";\n\t\tString[] splitInput = input.split(\"\\n\");\n\n\t\tfor (String s : splitInput) {\n\t\t\tString[] splitStr = s.split(\" \");\n\t\t\tfor (int i = 0; i < splitStr.length; i++) {\n\t\t\t\tsplitStr[i] = firstUpperCase(splitStr[i].toLowerCase());\n\t\t\t\tsRes = sRes.concat(splitStr[i] + \" \");\n\t\t\t}\n\t\t\tsRes += \"\\n\";\n\t\t}\n\n\t\treturn sRes;\n\t}",
"String printName(String input);",
"String getWordIn(String schar, String echar);",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s1 = scan.nextLine();\n int begin = scan.nextInt();\n int end = scan.nextInt();\n System.out.println(s1.substring(begin,end + 1));\n }",
"public static void main(String[] args) {\n Pattern pattern = Pattern.compile(\"\\\\b(\\\\w+)(\\\\W+\\\\1\\\\b)+\",Pattern.CASE_INSENSITIVE);\r\n\r\n Scanner in = new Scanner(System.in);\r\n int numSentences = Integer.parseInt(in.nextLine());\r\n \r\n while (numSentences-- > 0) {\r\n String input = in.nextLine();\r\n \r\n Matcher matcher = pattern.matcher(input);\r\n \r\n while (matcher.find()) \r\n input = input.replaceAll(matcher.group(),matcher.group(1));\r\n // Prints the modified sentence.\r\n System.out.println(input);\r\n }\r\n \r\n in.close();\r\n }",
"public static String Manchester(String input) {\n ArrayList<String> out = new ArrayList<>();\n out.add(\"UP\");\n for (int i = 0; i < input.length(); i++) {\n if ((Character.toString(input.charAt(i))).equals(\"1\")) {\n String before = out.get(out.size() - 1);\n if (before.equals(\"UP\")) {\n out.add(\"DOWN\");\n } else {\n out.add(\"UP\");\n }\n out.add(\"UP\");\n } else {\n String before = out.get(out.size() - 1);\n if (before.equals(\"DOWN\")) {\n out.add(\"UP\");\n } else {\n out.add(\"DOWN\");\n }\n out.add(\"DOWN\");\n }\n }\n String output = ArraytoString(out);\n return output;\n }",
"public static String[] breakInput(String input){\n\t\t//Split the thing up on spaces,\n\t\tString[] inputSplit = (input.split(\"\\\\s\"));\n\t\treturn inputSplit;\n\t}",
"public static String getSentence (Scanner input){\r\n System.out.print(\"Enter a sentence: \");\r\n String sentence = input.nextLine();\r\n return sentence; \r\n }",
"public static int main_function(String input) {\n int leftRight = 1;\n int bottomTop = 1;\n for (char direction : input.toCharArray()) {\n if (direction == 'w' ) bottomTop++;\n if (direction == 's' ) bottomTop--;\n if (direction == 'd' ) leftRight++;\n if (direction == 'a' ) leftRight--;\n }\n return 7 - leftRight + 7 - bottomTop;\n }",
"protected static String reduceString(String input) {\n String newString = input.toLowerCase();\n int len = newString.length();\n String retval = \"\";\n for (int i = 0; i < len; i++) {\n if (newString.charAt(i) == ' ' || newString.charAt(i) == '\\t') continue; else retval += newString.charAt(i);\n }\n return retval;\n }",
"String userInput(String question);",
"public String normalize(String word);",
"public static void main(String[] args) {\n\n\n Scanner input = new Scanner(System.in);\n String[] arr = new String[5];\n for (int i=0;i<5;i++)\n {\n arr[i] = input.nextLine();\n }\n\n for(int i=0; i<arr.length; i++){\n String each = arr[i].substring(0,3);\n System.out.println(each);\n }\n\n\n\n }",
"public static void main(String[] args) {\r\n\r\n\t\tScanner scanner =new Scanner(System.in);\r\n\t\tSystem.out.println(\"enter the string :\");\r\n\t\tString input = scanner.nextLine();\r\n\t\tString output = \" \" ;\r\n\t\t\r\n\t\tString[] split = input.split(\" \");\r\n//\t\tfor (String a : split) {\r\n//\t\t\tSystem.out.println(split.length);\r\n//\t\t\tSystem.out.println(a.toString());\r\n//\r\n//\t\t}\r\n\t\tfor (int a=split.length-1; a>=0; a--) {\r\n\t\t\toutput = output + split[a] ;\r\n\t\t\toutput = output +\" \";\r\n\t\t}\r\n\t\tSystem.out.println(output.toString());\r\n\t\t\r\n\t}",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n // Taking the input string from the user\n System.out.println(\"Enter the string to be evaluated : \");\n String inputString = sc.nextLine();\n\n char previousChar = inputString.charAt(0);\n String finalString = \"\" + inputString.charAt(0);\n\n // Iterating through the string and identification of duplicate characters\n for(int i = 1; i < inputString.length(); i++){\n char currentChar = inputString.charAt(i);\n\n // Checking the duplication of characters in the string\n if(currentChar == previousChar){\n int ascValue = currentChar;\n currentChar = (char)(ascValue + 1);\n }\n\n // Adding to the final output string\n finalString += currentChar;\n previousChar = currentChar;\n }\n\n // Output the final string\n System.out.println(\"Here is the final string : \" + finalString);\n }",
"@Test \r\n public void shouldFindOneWordAtTheEnd() {\r\n \r\n String inputWord = \"bxxxxxxxe\";\r\n String[] dictionary =\r\n new String[] {\"able\", \"be\", \"ale\", \"apple\", \"bale\", \"kangaroo\"};\r\n \r\n assertEquals(\"be\", wordSeeker.lookFor(inputWord, dictionary));\r\n }",
"public static void main(String[] args) {\n\t\tFirstOccurence fo = new FirstOccurence();\n\t\tString input = \"mynameissoandsocanyoutellmethat\";\n\t\tString[] dictionary = {\"my\",\"name\",\"is\",\"so\",\"can\",\"you\",\"tell\",\"me\",\"that\",\"and\"};\n\t\tSystem.out.println(fo.insertspace(input,dictionary));\n\t}",
"public static void main(String[] args) {\n String word = \"java\";\n int length=word.length();\n int a =length/2;\n\n System.out.println(word.substring(0,a)+word.substring(0,a));\n }",
"public static ArrayList<String> procesarEntrada(String input)\n {\n ArrayList<String> parse = new ArrayList<String>();\n String word = \"\";\n\n for (int i = 0; i < input.length(); i++)\n {\n if (input.charAt(i) != '&')\n word += input.charAt(i);\n\n if (input.charAt(i) == '&' || i == input.length() - 1)\n {\n parse.add(word);\n word = \"\";\n } \n }\n\n return parse;\n }",
"public void handleTestInput(String input) {\n\n int prevSpace = input.indexOf(\"\\t\");\n int nextSpace = input.indexOf(\" \", prevSpace + 1);\n\n while (nextSpace != -1) {\n String word = input.substring(prevSpace + 1, nextSpace);\n if (!hs.contains(word)) {\n hs.add(word);\n }\n prevSpace = nextSpace;\n nextSpace = input.indexOf(\" \", prevSpace + 1);\n }\n String word = input.substring(prevSpace + 1);\n if (!hs.contains(word)) {\n hs.add(word);\n }\n\n }",
"String getInput();",
"String algorithm();",
"String convertToPostfix(String input);",
"public static void main(String[] args) {\n String name = \"I love Java I Love Java Java Java\";\n System.out.println(\"starting from 0 \" +name.indexOf(\"Java\"));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 7));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 8));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 9));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 19));\n System.out.println(\" starting from 7 \"+name.indexOf(\"Java\", 20));\n // ilk java gosterecek yani location of// simdi ise ikinci javayi ariyor +1 ile! (ava I Love )\n //or you can start here + 4 nereden biliyorum +4 cunku\n //java 4 character!!!!!!!!!!! yada ilk aradigin kelimeyi\n // bitiri bitirmez +1 koyarsin eger bilmiyorsam +word.lenght();\n\n int firstJavaLocation = name.indexOf(\"Java\");\n int startingPointToSearchSecondJava = firstJavaLocation+1;\n int secondJavaLocation = name.indexOf(\"Java\",startingPointToSearchSecondJava);\n System.out.println(\"secondJavaLocation = \" + secondJavaLocation);\n //eger cumlede nekadar kelime oldugunu bilmiyorsam I only know there are 3+ words\n // ve sadece ikinci kelimeyi biliyorsam;\n //the word in between first space and second space is second word\n int firstSpaceLocation = name.indexOf(\" \");\n int secondSpace = name.indexOf(\" \", firstJavaLocation + 1);\n System.out.println(\"second word in this sentence is \"\n +name.substring(firstJavaLocation + 1, secondSpace));\n\n\n\n\n }",
"public static void findDuplicateWords(String inputString)\r\n\t{\r\n\t\t// split the words in words array \r\n\t\tString words[]= inputString.split(\" \");\r\n\t\t\r\n\t\t//Create HashMap for count the words \r\n\t\tHashMap<String, Integer> wordcount = new HashMap<String, Integer>();\r\n\t\t\r\n\t\t// to check each word in given array \r\n\t\t\r\n\t\tfor(String word: words )\r\n\t\t{\r\n\t\t\t//if word is present \r\n\t\t\tif(wordcount.containsKey(word)) {\r\n\t\t\t\twordcount.put(word.toLowerCase(), wordcount.get(word)+1);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twordcount.put(word,1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//extracting all the keys of map : wordcount\r\n\t\tSet<String> wordInString = wordcount.keySet();\r\n\t\t\r\n\t\t// iterate the loop through all the wors in wordCount \r\n\t\tfor(String word : wordInString)\r\n\t\t{\r\n\t\t\tif(wordcount.get(word)>1)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(word+ \" : \" + wordcount.get(word));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public void trainModel(String input) {\n\n String[] words = input.split(\" \");\n String currentWord = \"\";\n\n for (int i = 0; i < words.length; i++) {\n\n if (i == 0 || words[i-1].contains(\".\")) {\n model.get(\"_begin\").add(words[i]);\n } else if (i == words.length - 1 || words[i].contains(\".\")) {\n model.get(\"_end\").add(words[i]);\n } else {\n model.putIfAbsent(currentWord, new ArrayList<String>());\n model.get(currentWord).add(words[i]);\n }\n\n currentWord = words[i];\n\n }\n }",
"public static void main(String[] args) {\n Scanner input= new Scanner(System.in);\n System.out.println(\" Enter a string value: \");\n String word=input.nextLine();\n String newWord=word.charAt(0)+\"\";\n for (int i = 1; i <word.length() ; i++) {\n if(word.charAt(i)>=65 && word.charAt(i)<=90){\n newWord+=\" \"+word.charAt(i);\n }else{\n newWord+=word.charAt(i);\n }\n\n }\n System.out.println(newWord);\n }",
"public static void main(String[] args){\r\n String first = \"jin\";\r\n String last = \"jung\";\r\n String ay = \"ay\";\r\n/*\r\n use substring() and toUpperCase methods to reorder and capitalize\r\n*/\r\n\r\n String letFirst = first.substring(0,1);\r\n String capFirst = letFirst.toUpperCase();\r\n String letLast = last.substring(0,1);\r\n String capLast = letLast.toUpperCase();\r\n\r\n String nameInPigLatin = first.substring(1,3) + capFirst + ay + \" \" + last.substring(1,4) + capLast + ay;\r\n\r\n/*\r\n output resultant string to console\r\n*/\r\n\r\n System.out.println(nameInPigLatin);\r\n\r\n }",
"public static void main(String[] args) {\n\r\n\t\tString s=\"Programming\";\r\n\t\tString s1;\r\n\t\tCharacter ch;\r\n\t\tint count;\r\n\t\tfor(int i=0;i<s.length();i++)\r\n\t\t{\r\n\t\t\tch=s.charAt(i);\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=0;j<s.length();j++)\r\n\t\t\t{\r\n\t\t\t\tif(j<i&& ch==s.charAt(j))\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif(s.charAt(j)==ch)\r\n\t\t\t\t{\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t\tif(j==(s.length()-1))\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(ch+\" \"+count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(count>1)\r\n\t\t\t{\r\n\t\t\t\t\ts=s.replace(ch.toString(),\"\");\r\n\t\t\t\t\t//System.out.println(s);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(s.trim());\r\n\t}",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter your first word: \");\n String word1 = scan.next();\n System.out.println(\"Enter your second word: \");\n String word2 = scan.next();\n\n char lastLetter = word1.charAt(word1.length()-1);\n char firstLetter = word2.charAt(0);\n if (lastLetter == firstLetter) {\n System.out.println(word1+word2.substring(1));\n }else {\n System.out.println(word1 + word2);\n\n }\n\n\n }",
"String stemOf (String word);",
"@Override\r\n public String Run(String input) {\n\r\n String right = \"\";\r\n String left = \"\";\r\n char middle = (char) 0;\r\n\r\n for (int i = input.length() - 1; i > 0; i--) {\r\n char prev = input.charAt(i);\r\n char next = input.charAt(i-1);\r\n if (next < prev){ // Tipping point found\r\n middle = next;\r\n right = input.substring(i);\r\n left = input.substring(0, i - 1);\r\n break;\r\n }\r\n if (i == 1){\r\n return \"No Answer\";\r\n }\r\n }\r\n\r\n StringBuilder outputSb = new StringBuilder();\r\n outputSb.append(left);\r\n\r\n boolean middleAdded = false;\r\n\r\n if (right.length() > 0){\r\n outputSb.append(right.charAt(right.length()-1));\r\n }\r\n\r\n for (int i = right.length()-2; i >= 0; i--){\r\n char current = right.charAt(i);\r\n\r\n if (middle > current && !middleAdded){\r\n outputSb.append(right);\r\n outputSb.append(middle);\r\n middleAdded = true;\r\n break;\r\n }\r\n\r\n else if (middle <= current && !middleAdded){\r\n outputSb.append(middle);\r\n middleAdded = true;\r\n }\r\n\r\n outputSb.append(current);\r\n }\r\n\r\n if (!middleAdded){\r\n outputSb.append(middle);\r\n }\r\n\r\n String output = outputSb.toString();\r\n\r\n return output;\r\n }",
"public static void main(String[] args)\r\n\t{\n\t\tSystem.out.print(\"enter string - \");\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString whole = input.next();\r\n\t\tSystem.out.print(\"enter sub-string to be searched - \");\r\n\t\tString part = input.next();\r\n\t\tinput.close();\r\n\t\tImplementStrStr sample = new ImplementStrStr();\r\n\t\tString result = sample.findSubString(whole, part);\r\n\t\tif(result==null)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SubString not present\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"SubString is present - \"+result);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n String words = \"coding:java:selenium:python\";\n String[] splitWords = words.split(\":\");\n System.out.println(Arrays.toString(splitWords));\n System.out.println(\"Length of Array - \" +splitWords.length);\n\n for (String each:splitWords) {\n System.out.println(each);\n\n }\n // How many words in your sentence\n // Most popular interview questions\n // 0 1 2 3 4 5\n String sentence = \"Productive study is makes you motivated\";\n String[] wordsInSentence = sentence.split(\" \");\n System.out.println(\"First words: \" +wordsInSentence[0]);\n System.out.println(\"First words: \" +sentence.split(\" \")[5]);\n System.out.println(\"Number of words in sentence: \" + wordsInSentence.length);\n\n // print all words in separate line\n for (String each:wordsInSentence) {\n System.out.println(each);\n }\n\n\n\n }",
"public static String newWord(String strw) {\n String value = \"Encyclopedia\";\n for (int i = 1; i < value.length(); i++) {\n char letter = 1;\n if (i % 2 != 0) {\n letter = value.charAt(i);\n }\n System.out.print(letter);\n }\n return value;\n }",
"public static String restoreSpaces(String input) {\n\t\tchar[] chars = input.toCharArray();\n\t\tint current = 0;\n\t\tString result = \"\";\n\n\t\twhile (current < chars.length) {\n\t\t\tRetrievalTreeNode root = retrievalTree;\n\t\t\twhile (root.leaves.contains(chars[current])) {\n\t\t\t\troot = root.leaves.get(chars[current]);\n\t\t\t}\n\t\t\twhile (!root.isWord) {\n\t\t\t\troot = root.parent;\n\t\t\t}\n\t\t\tresult += input.substring(current, root.depth) + \" \";\n\t\t\tcurrent = root.depth;\n\t\t}\n\t\treturn result;\n\t}",
"public static void main(String args[]) {\n Scanner in = new Scanner(System.in);\n String s = in.nextLine();\n int l =s.length();\n StringBuffer st = new StringBuffer(s);\n StringBuffer tem = new StringBuffer(\"\");\n int j=0;\n for(int i=l-1;i>=0;i--)\n {\n tem.append(s.charAt(i));\n }\n String tr=tem.toString();\n if(s.equals(tr))\n System.out.print(\"Yes\");\n else\n System.out.print(\"No\");\n }",
"public static int Main()\n\t{\n\t\tint i;\n\t\tint len;\n\t\tString s = new String(new char[100001]); // s?????\n\t\ts = new Scanner(System.in).nextLine(); // ??\n\t\tlen = s.length(); // ??\n\t\tfor (i = 0;i < len;i++)\n\t\t{\n\t\t\tif (!((s.charAt(i) == ' ') && (i == 0 || i == len - 1 || s.charAt(i - 1) == ' ')))\n\t\t\t{\n\t\t\t// ???????????????????\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public static void main(String[] args) {\n//\n// String pattern = \"abba\";\n// String s = \"dog cat cat fish\";\n\n\n// String pattern = \"aaaa\";\n// String s = \"dog cat cat dog\";\n\n String pattern = \"abba\";\n String s = \"dog dog dog dog\";\n\n// String pattern = \"e\";\n// String s = \"eukera\";\n\n boolean flag = wordPattern(pattern, s);\n\n System.out.println(flag);\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString s1 = \"java is java\";\n\t\t\n\t\tSystem.out.println(s1.substring(2));// va is java\n\t\t\n\t\t/*\n Ask user to enter a String \n If the first and the last character of the String are same\n print \"Wooow!\" otherwise, print \"Hmmmm!\" on the console\n */\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"enter a string svp\");\n\t\tString str5 = scan.nextLine();\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\n\t\tString str=\"This is Batch 11 Batch 11 is great\";\n\t\t\n\t\tString [] arr=str.split(\" \");\n\t\t\n\t\tfor (String word:arr) {\n\t\t\tSystem.out.println(word);\n\t\t}\n\t}",
"public static String getCommand(String input) {\n String[] strArr = input.split(\" \", 2);\n return strArr[0];\n }",
"public static String engToPig( String w ) {\r\n\tString result = \"\";\r\n\tif (w.substring(0,1).equals(\"y\")) {// if w begins with 'y'\r\n\t result = w.substring(1) + \"yay\";\r\n\t} \r\n\telse if (beginsWithVowel(w)) { //if w begins with a vowel\r\n\t result = w + \"way\"; //append way to w\r\n\t}\r\n else { //if w begins with consonant(s)\r\n\t result = w.substring(w.indexOf(firstVowel(w))) + w.substring(0,w.indexOf(firstVowel(w))) + \"ay\"; //take the first occurrence of a vowel, then the consonant(s) before that vowel, and add ay\r\n\t}\r\n if (beginsWithCapital(w)) {\r\n\t result = result.substring(0,1).toUpperCase() + result.substring(1).toLowerCase();\r\n\t}\r\n\tif (hasA(w,\".\")) {\r\n\t result = result.substring(0,result.indexOf(\".\")) + result.substring(result.indexOf(\".\") + 1) + \".\";\r\n\t }\r\n\tif (hasA(w,\",\")) {\r\n\t result = result.substring(0,result.indexOf(\",\")) + result.substring(result.indexOf(\",\") + 1) + \",\";\r\n\t }if (hasA(w,\"?\")) {\r\n\t result = result.substring(0,result.indexOf(\"?\")) + result.substring(result.indexOf(\"?\") + 1) + \"?\";\r\n\t }if (hasA(w,\"!\")) {\r\n\t result = result.substring(0,result.indexOf(\"!\")) + result.substring(result.indexOf(\"!\") + 1) + \"!\";\r\n\t }\r\n\treturn result;\r\n }",
"public static void main(String[] args) {\n\t\tint counter=0;\n String sentence = \"Java is a general-purpose computer-programming language \"\n \t\t+ \"that is concurrent, class-based, object-oriented,\"\n \t\t+ \" and specifically designed to have as few implementation dependencies as possible.\";\n \n String[] word = sentence.split(\" \");\n \n for(String str: word) {\n \t if(str.equals(\"is\")) {\n \t\t break;\n \t } counter++;\n }\n System.out.println(\"Position: \"+ counter);\n System.out.println(word[counter]);\n \n \n \n }",
"public static void main(String[] args) {\n\n\n\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter your name here: \");\n String name = scan.next();\n System.out.println(\"Your name corrected is: \");\n String name2 = name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();\n System.out.println(name2);\n\n // make whole name uppercase the get the first character\n // get the rest of the characters starting from 2nd character\n /// then make it lowercase\n // eventually concatenate them\n\n\n }",
"void run() {\n Scanner sc = new Scanner(System.in);\r\n int N = sc.nextInt();\r\n while (N-- > 0)\r\n AddSuggestion(sc.next());\r\n\r\n int Q = sc.nextInt();\r\n while (Q-- > 0)\r\n System.out.println(Query(sc.next() )); // subString \r\n \r\n sc.close();\r\n }",
"public String solve1(String s) {\n Map<String, Integer> frequency = new HashMap<>();\n String maxWord = null;\n String[] split = s.split(\" \");\n\n for (String word : split) {\n int newFrequency = frequency.getOrDefault(word, 0) + 1;\n frequency.put(word, newFrequency);\n if (newFrequency > frequency.getOrDefault(maxWord, 0)) {\n maxWord = word;\n }\n }\n\n return maxWord;\n }",
"public static void printAllPossibleCodes(String input) {\n\n String[] str=helper(input);\n for (int i=0;i<str.length;i++){\n System.out.println(str[i]);\n }\n\n }",
"public static void main(String[] args) {\n\t\tScanner scan= new Scanner(System.in);\n\t\tString word=scan.next();\n\t\tchar [] split= word.toCharArray();\n\t\tString x=String.valueOf(split[0]).toUpperCase();\n\t\tx.concat(String.copyValueOf(split, 1, split.length-1));\n\t\tSystem.out.println(x.concat(String.copyValueOf(split, 1, split.length-1)));\n\n\t}",
"public String replace(String input);",
"@Test\n\tpublic void stringIsUnmodifiedForDuplicateWordNumbersInASingleWord() {\n\t\tString input = \"I have threethree apples and five bananas.\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"I have threethree apples and 5 bananas.\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}",
"int main() {\n string input_string; \n \n // Read a full line of input from stdin (cin) and save it to our variable, input_string.\n getline(cin, input_string); \n \n // Print a string literal saying \"Hello, World.\" to stdout using cout.\n cout << \"Hello, World.\" << endl;\n\n // TODO: Write a line of code here that prints the contents of input_string to stdout.\n\n return 0;\n}",
"public static void main(String[] args) {\n\t\tString str = \"Lets go fishing!\";\n\t\tString str1 = str.replaceAll(\"[ ]\", \"\");\n\t\tSystem.out.println(str1);\n\n\t\tString str2 = \"HVDV 786bh f73%7jf hj^&^hdjhd%\";\n\t\tString str3 = str2.replaceAll(\"[a-z A-Z0-9]\", \"\");\n\t\tSystem.out.println(str3 + \" \" + str3.length());\n\n\t\tString a = \"Is it saturday! Is it raining! Do we have a Java Class today?\";\n\n\t\tString[] b = a.split(\"[!]\");\n\t\tfor(String c:b) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\tSystem.out.println(\" b length is \" + b.length+\" sentences\");\n\t}",
"public static String inputStringFromKeyboard(String input){\n System.out.println(\"Input the String: \");\n //Scanner, save the inputted from keyboard\n Scanner scanner = new Scanner(System.in);\n //The value 'scanner' is assigned to 'input'\n input = scanner.next();\n return input;\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\tString S=\"Good Morning to all\";\n\t\tString[] split=S.split(\" \");\n\t\tString Output=\"\";\n\t\t//String Reverse_word=\" \";\n\t\t\n\t\tfor(int i=0;i<split.length;i++)\n\t\t{\n\t\t\tString word=split[i];\n\t\t\tString Reverse_word=\"\";\n\t\t\tfor(int j=word.length()-1;j>=0;j--)\n\t\t\t{\n\t\t\t\tReverse_word=Reverse_word+word.charAt(j);\n\t\t\t\t\n\t\t\t}\n\t\t\tOutput=Output+Reverse_word+\" \";\n\t\t}\n\t\tSystem.out.println(Output);\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString text = \"My name is Buzz Lightyear!\";\r\n\t\tSystem.out.println(\"Please enter your name to see something cool.\");\r\n\t\ttext = input.nextLine();\r\n\t\tfor (int i = 0; i < text.length(); i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(text.substring(i));\r\n\t\t}\r\n\t}",
"int mo5882g(String str);",
"public static void main(String[] args) {\n\t\t\n\t\tString str= \"I liked Java, did you like it\";\n\t\t\n\t\tString arr[]=str.split(\"d\");\n\t\t\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\nString str1[]=str.split(\" \");\n\t\t\n\t\tSystem.out.println(Arrays.toString(str1));\n\t\t\n\t\t\n\t}",
"public static String[] prepareInput(String input) {\n\t\tArrayList<String> als = separatePhrases( input );\n\t\tif( foundQuitWord( als ) )\n\t\t{\n\t\t\t//System.out.println( \"Found\" );\n\t\t\treturn null;\n\t\t}\n\t\tString respondTo = selectPhrase( als );\n\t\tif( respondTo == null )\n\t\t{\n\t\t\t//System.out.println( \"rNull\" );\n\t\t\treturn null;\n\t\t}\n\t\tString result = swapWords( respondTo , Config.INPUT_WORD_MAP );\n\t\tif( result == null )\n\t\t{\n\t\t\t//System.out.println( \"sNull\" );\n\t\t\treturn null;\n\t\t}\n\t\telse\n\t\t\treturn result.split(\" \");\n\t}",
"public String transform(String input);",
"public static String userInput()\r\n {\r\n Scanner link = new Scanner(System.in);\r\n String word = link.next();\r\n char[] chars = word.toCharArray();\r\n boolean checkWord = false; \r\n for(int i = 0; i < chars.length; i++)\r\n {\r\n char c = chars[i];\r\n if((c < 97 || c > 122))\r\n {\r\n checkWord = true;\r\n }\r\n }\r\n link.close();\r\n if(!checkWord)\r\n {\r\n return word;\r\n } \r\n else \r\n System.out.println(\"Not a valid input\");\r\n return null;\r\n }",
"static String lexography(String s,int k) {\n\t\tString smallest=\"\";\n\t\tString largest=\"\";\n\t\tString temp=\"\";\n\t\tsmallest=largest=s.substring(0, k);\n\t\tint x;\n\t\tfor(int i=1;i<=s.length()-k;i++)\n\t\t{\n\t\t\ttemp=s.substring(i,i+k);\n\t\t\t\n\t\t\tx=temp.compareTo(smallest);\n\t\t\tif(x<0) smallest=temp;\n\t\t\tx=temp.compareTo(largest);\n\t\t\tif(x>0) largest=temp;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t return smallest+\"\\n\"+largest;\n\t}",
"public static void main (String[] args) {\n\t String s = \"aa6?9\";\r\n\t System.out.println(QuestionsMarks(s));\r\n\t String s1 = \"acc?7??sss?3rr1??????5\";\r\n\t System.out.println(QuestionsMarks(s1));\r\n// Scanner s = new Scanner(System.in);\r\n// System.out.print(QuestionsMarks(s.nextLine())); \r\n }",
"public void Dname() {\n\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\tint n = 0;\r\n\t\t\tint k = max;\r\n\t\t\tString yname;\r\n\t\t\t\r\n\t\t\tString[] name2 = new String[k];\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(n = 0 ; n < name2.length ; n++) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Enter words:\");\r\n\t\t\t\tyname = sc.nextLine();\r\n\t\t\t\t\t\t\tname2[n] = yname;\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\tfor(int j = 0 ; j < k ; j++) {\r\n\t\t\t\t\t\tSystem.out.println(\"\\n\"+ name2[j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString str = in.nextLine();\n\t\tString temp[] =str.split(\"-\");\n\t\t\n\t\tfor(int i=0; i<temp.length; i++)\n\t\t\tSystem.out.print(temp[i].charAt(0));\n\t}",
"public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n System.out.println(\"Enter your word\");\n String word=scan.nextLine();\n //index num=01234\n String result=\"\"; // all below characters will be concatenated one by one- knalB\n if (word.length()>5){\n result=\"Too long\";\n }else if (word.length()<5){\n result=\"Too short\";\n }else {\n /* result+=word.charAt(4);\n result+=word.charAt(3);\n result+=word.charAt(2);\n result+=word.charAt(1);\n result+=word.charAt(0);\n\n */\n result=\"\" + word.charAt(4) + word.charAt(3) + word.charAt(2) + word.charAt(1) + word.charAt(0);\n } // e l c n u\n System.out.println(\"result = \" + result);\n\n\n\n }",
"public static void main(String[] args) {\n\r\n\r\n Scanner scan = new Scanner(System.in);\r\n String word = scan.next();\r\n String separator = scan.next();\r\n int count = scan.nextInt();\r\n\r\n\r\n String name = \"\";\r\n for (int i = 1; i <= count; i++) {\r\n\r\n name = name +word + separator ;\r\n\r\n if (i == count) {\r\n\r\n System.out.print(name.substring(0, name.length()-separator.length() ));\r\n } else {\r\n continue;\r\n }\r\n\r\n }\r\n }",
"public static void main (String[] args){\n\n System.out.println(\"Input a sentence\");\n Scanner sc = new Scanner(System.in);\n\n\n //2. Make the scanner read the input.scanner.nextLine()\n\n String input = sc.nextLine();\n\n //3. input.replaceAll(\"a\",\"A\");\n\n String output = input.replaceAll(\"a\",\"A\");\n\n\n //4. print the modified string.\n\n System.out.println(\"The code made the lowercase 'a' to uppercase\");\n System.out.println(output);\n\n }",
"public static void main(String[] args) {\n\n\t\tString regex = \"\\\\b(\\\\w+)(\\\\b\\\\W+\\\\b\\\\1\\\\b)*\";\n\t\tPattern p = Pattern.compile(regex, Pattern.MULTILINE + Pattern.CASE_INSENSITIVE);\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint numSentences = Integer.parseInt(in.nextLine());\n\n\t\twhile (numSentences-- > 0) {\n\t\t\tString input = in.nextLine();\n\n\t\t\tMatcher m = p.matcher(input);\n\n\t\t\t// Check for subsequences of input that match the compiled pattern\n\t\t\twhile (m.find()) {\n\t\t\t\tinput = input.replaceAll(m.group(), m.group(1));\n\t\t\t}\n\n\t\t\t// Prints the modified sentence.\n\t\t\tSystem.out.println(input);\n\t\t}\n\n\t\tin.close();\n\n\t\tnew RegexDuplicateWord().solution();\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString str = \"Programming\";\n\t\t\n\t\tSystem.out.println(str.substring(3));\n\t}",
"abstract String makeAClue(String puzzleWord);",
"private static void subStringNonrepchars(String input) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString s =\"\";\n\n\t\tint j=0,max=0,len=0, i=0;\n\t\tboolean[] flag = new boolean[256];\n\t\tfor(i=0;i<input.length();i++){\n\t\t\tif(!flag[input.charAt(i)]){\n\t\t\t\tSystem.out.println(\"char: \"+input.charAt(i)+\" bool: \"+!flag[input.charAt(i)]);\n\t\t\t\tlen++;\n\t\t\t}else{\n\t\t\t\t//System.out.println(\"coming to else\");\n\t\t\t\tif(len>max){\n\t\t\t\t\tmax= len;len=1;\n\t\t\t\t\tSystem.out.println(j+\" j \"+max +\" :max substring: \"+input.substring(j,i));\n\t\t\t\t}\n\t\t\t\tj = i;\n\t\t\t\tSystem.out.println(\"max len is: \"+max+\" j: \"+j);\n\t\t\t\tflag = new boolean[256];\n\t\t\t}\n\t\t\tflag[input.charAt(i)] = true;\n\n\t\t}\n\t\tif(len>max){\n\t\t\tmax=len;\n\t\t\tj=i;\n\t\t}\n\t\tif(max>j)\n\t\t\tSystem.out.println(input.substring(max-j,max+1));\n\t\telse{\n\t\t\tSystem.out.println(input.substring(j-max,max+1));\n\t\t}\n\n\n\n\t}",
"public static void main (String[] args) {\n\t\t\n\t\tScanner a=new Scanner(System.in);\n\t String str=a.nextLine();\n\t System.out.println(\"the first 3 letters of \"+str+ \" is \"+ str.substring(0,3));\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n Day6 d6 = new Day6();\n \n for(int i = 0; i < 8; i++){\n Map<Character, Integer> dictionary = new HashMap<>();\n d6.dictionaries.add(dictionary);\n }\n \n Scanner sc = new Scanner(System.in);\n System.out.println(\"What is your input?\");\n \n d6.parseInput(sc);\n \n StringBuilder sb = new StringBuilder();\n for(int i = 0; i < 8; i++){\n sb.append(d6.getMaxChar(d6.dictionaries.get(i)));\n }\n System.out.println(\"The word for p1 is \" + sb);\n \n StringBuilder sb2 = new StringBuilder();\n for(int i = 0; i < 8; i++){\n sb2.append(d6.getMinChar(d6.dictionaries.get(i)));\n }\n System.out.println(\"The word for p2 is \" + sb2);\n }",
"public static void main(String[] args) {\n\t\t\tString str=\"Four score and seven years ago\";\n\t\t\tSystem.out.println(\"The letter r appears at the following locations: \");\n\t\t\tint position = str.indexOf('r');\n\t\t\twhile (position!= -1) {\n\t\t\t\tSystem.out.print(position + \" \");\n\t\t\t\tposition = str.indexOf('r',position+1);\n\t\t\t}\n\t\t\t\n\t\t\tString str2 = \"and a one and two and a three\";\n\t\t\tSystem.out.println(\"The word \\\" and\\\" appears at the following location: \");\n\t\t\tint positionAnd = str2.indexOf(\"and\");\n\t\t\twhile(positionAnd != -1) {\n\t\t\t\tSystem.out.print(positionAnd + \" \");;\n\t\t\t\tpositionAnd = str2.indexOf(\"and\", positionAnd+1);\n\t\t\t}\n}",
"public static void main(String[] args) {\n Scanner sc = new Scanner (System.in);\n System.out.println(\"Please enter a sentence:\");\n String sentence = sc.nextLine();\n System.out.println(numberOfWords(sentence));\n\n\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter your word :\");\n String word = scanner.nextLine();\n word = word.toUpperCase();\n// word = Character.toString((char)(word.charAt(0)-32));\n String word1 =Character.toString(word.charAt(0));\n word = word.toLowerCase();\n for (int i = 1; i <word.length() ; i++) {\n word1 += Character.toString(word.charAt(i));\n }\n System.out.println(word1);\n }",
"private static String[] tokenizeInput(String input) {\r\n\t\tArrayList<String> tokens = new ArrayList<String>(8);\r\n\t\t\r\n\t\tScanner inputScanner = new Scanner(input);\r\n\t\twhile (inputScanner.hasNext()) {\r\n\t\t\ttokens.add(inputScanner.next());\r\n\t\t}\r\n\t\treturn tokens.toArray(new String[tokens.size()]);\r\n\t}",
"static void minMaxLengthWords(String input) \n {\n int len = input.length(); \n int si = 0, ei = 0; \n int min_length = len, min_start_index = 0, \n max_length = 0, max_start_index = 0; \n \n // Loop while input string is not empty \n while (ei <= len) \n { \n if (ei < len && input.charAt(ei) != ' ') \n { \n ei++; \n } \n else\n { \n // end of a word \n // find curr word length \n int curr_length = ei - si; \n \n if (curr_length < min_length) \n { \n min_length = curr_length; \n min_start_index = si; \n } \n \n if (curr_length > max_length) \n { \n max_length = curr_length; \n max_start_index = si; \n } \n ei++; \n si = ei; \n } \n } \n \n // store minimum and maximum length words \n minWord = input.substring(min_start_index, min_start_index + min_length); \n maxWord = input.substring(max_start_index, max_start_index + max_length); \n }",
"String mo2801a(String str);",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);//creating a Scanner called input\n\n System.out.println(\"Enter the name of an animal: \");\n String animal = input.nextLine();\n\n System.out.println(\"How would you describe a \" + animal + \"? \");\n String description = input.nextLine();\n\n input.close(); //close scanner\n\n char letter = animal.charAt(0);//takes the first character from String animal\n System.out.println(\"A \" + animal + \" is \" + description);\n\n System.out.println(\"You will find it under \" + letter + \" in the dictionary\");\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String string = scanner.nextLine();\n char[] chars = string.toCharArray();\n\n String newstring = \"\";\n for (int i = 0; i < chars.length; i++) {\n newstring = newstring + chars[i] + chars[i];\n }\n System.out.println(newstring);\n\n }",
"public static void main(String args[])\n\t{\n\t\tString intro = new String(\"My name is Aisling\");\n\t\t//adding space to make sure the first word is also included\n\t\tintro = \" \" + intro;\n\t\t//creating end index of each word\n\t\tint j = intro.length();\n\t\t//\n\t\t//loops through the string backwards\n\t\tfor(int i = intro.length()-1; i>=0; i--)\n\t\t{\n\t\t\t//checks if its a new word\n\t\t\tif(intro.charAt(i) == ' ')\n\t\t\t{\n\t\t\t\t//prints out words\n\t\t\t\tSystem.out.println(intro.substring(i, j));\n\t\t\t\tj = i;\n\t\t\t}\n\t\t}\n\n\t}"
] | [
"0.6071931",
"0.59026927",
"0.5833443",
"0.57927775",
"0.5748387",
"0.57044184",
"0.56330955",
"0.55957717",
"0.5522191",
"0.5513322",
"0.5508143",
"0.54850996",
"0.54667825",
"0.5462352",
"0.5462045",
"0.5431611",
"0.54257447",
"0.542417",
"0.5419237",
"0.5392982",
"0.53821707",
"0.5375232",
"0.5372946",
"0.5369976",
"0.5366248",
"0.5351867",
"0.53489137",
"0.5339994",
"0.5335132",
"0.5327468",
"0.5316615",
"0.5315415",
"0.53078896",
"0.5286361",
"0.52686554",
"0.52326316",
"0.522759",
"0.52242446",
"0.5222787",
"0.5218473",
"0.5215234",
"0.5205686",
"0.5187083",
"0.5184853",
"0.5171617",
"0.5166706",
"0.51661813",
"0.51612246",
"0.5159172",
"0.51567",
"0.51460975",
"0.5137716",
"0.5136703",
"0.5134664",
"0.5130445",
"0.51266396",
"0.5126268",
"0.5124599",
"0.51237047",
"0.5123281",
"0.5118186",
"0.51154786",
"0.5114599",
"0.5113421",
"0.51093966",
"0.51056516",
"0.5095949",
"0.5095062",
"0.509221",
"0.5081",
"0.5080022",
"0.5073532",
"0.5070431",
"0.5070082",
"0.5058542",
"0.50537074",
"0.50523365",
"0.5045753",
"0.50410765",
"0.5033331",
"0.50259334",
"0.5025785",
"0.50176257",
"0.50140417",
"0.5011477",
"0.5011018",
"0.50084656",
"0.50071764",
"0.500714",
"0.49999902",
"0.4999524",
"0.49970052",
"0.49917892",
"0.49898085",
"0.4989345",
"0.49814105",
"0.49762633",
"0.49753013",
"0.4974167",
"0.49582502",
"0.49575716"
] | 0.0 | -1 |
POST /projectreleasesprints : Create a new projectreleasesprint. | @RequestMapping(value = "/projectreleasesprints",
method = RequestMethod.POST,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public ResponseEntity<Projectreleasesprint> createProjectreleasesprint(@Valid @RequestBody Projectreleasesprint projectreleasesprint) throws URISyntaxException {
log.debug("REST request to save Projectreleasesprint : {}", projectreleasesprint);
if (projectreleasesprint.getId() != null) {
return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert("projectreleasesprint", "idexists", "A new projectreleasesprint cannot already have an ID")).body(null);
}
Projectreleasesprint result = projectreleasesprintRepository.save(projectreleasesprint);
return ResponseEntity.created(new URI("/api/projectreleasesprints/" + result.getId()))
.headers(HeaderUtil.createEntityCreationAlert("projectreleasesprint", result.getId().toString()))
.body(result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean createSprint(SprintFormBean sprint) throws IllegalAccessException, InvocationTargetException {\n\t\tSprint sprintEntity = new Sprint() ;\n\t\tsprintEntity.setDescription(sprint.getDescription());\n\t\tsprintEntity.setName(sprint.getName());\n\t\tsprintEntity.setReleaseid(sprint.getReleaseid());\n\t\tif(sprintRespository.save(sprintEntity) != null){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t\n\t\n\t\t\n\t}",
"@RequestMapping(value = \"/projectreleasesprints\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Projectreleasesprint> getAllProjectreleasesprints() {\n log.debug(\"REST request to get all Projectreleasesprints\");\n List<Projectreleasesprint> projectreleasesprints = projectreleasesprintRepository.findAll();\n return projectreleasesprints;\n }",
"@RequestMapping(value = \"/projectreleasesprints/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> getProjectreleasesprint(@PathVariable Long id) {\n log.debug(\"REST request to get Projectreleasesprint : {}\", id);\n Projectreleasesprint projectreleasesprint = projectreleasesprintRepository.findOne(id);\n return Optional.ofNullable(projectreleasesprint)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@RequestMapping(value = \"/projectreleasesprints/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteProjectreleasesprint(@PathVariable Long id) {\n log.debug(\"REST request to delete Projectreleasesprint : {}\", id);\n projectreleasesprintRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"projectreleasesprint\", id.toString())).build();\n }",
"@Override\n\tpublic void createRelease(Version version) {\n\n\t}",
"@PostMapping\n public ResponseEntity<Project> createNewProject(@Valid @RequestBody Project project) {\n\n Project project1 = projectService.saveOrUpdateProject(project);\n return new ResponseEntity<Project>(project1, HttpStatus.CREATED);\n }",
"@Test\n\tpublic void testCreate() throws Exception {\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\t\tDate startDate = new Date();\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tcalendar.setTime(startDate);\n\t\tcalendar.add(Calendar.MONTH, 2);\n\t\t//\"name\":\"mizehau\",\"introduction\":\"dkelwfjw\",\"validityStartTime\":\"2015-12-08 15:06:21\",\"validityEndTime\":\"2015-12-10 \n\n\t\t//15:06:24\",\"cycle\":\"12\",\"industry\":\"1202\",\"area\":\"2897\",\"remuneration\":\"1200\",\"taskId\":\"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\"\n\t\tProject a = new Project();\n\t\tDate endDate = calendar.getTime();\n\t\tString name = \"mizehau\";\n\t\tString introduction = \"dkelwfjw\";\n\t\tString industry = \"1202\";\n\t\tString area = \"test闫伟旗创建项目\";\n\t\t//String document = \"test闫伟旗创建项目\";\n\t\tint cycle = 12;\n\t\tString taskId = \"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\";\n\t\tdouble remuneration = 1200;\n\t\tTimestamp validityStartTime = Timestamp.valueOf(sdf.format(startDate));\n\t\tTimestamp validityEndTime = Timestamp.valueOf(sdf.format(endDate));\n\t\ta.setArea(area);\n\t\ta.setName(name);\n\t\ta.setIntroduction(introduction);\n\t\ta.setValidityStartTime(validityStartTime);\n\t\ta.setValidityEndTime(validityEndTime);\n\t\ta.setCycle(cycle);\n\t\ta.setIndustry(industry);\n\t\ta.setRemuneration(remuneration);\n\t\ta.setDocument(taskId);\n\t\tProject p = projectService.create(a);\n\t\tSystem.out.println(p);\n\t}",
"@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.getId();\n final Queue queue = QueueFactory.getDefaultQueue();\n \n // Start transactions\n Project project = ofy().transact(new Work<Project>(){\n \t@Override\n \tpublic Project run(){\n \t\tProject project = new Project(projectId, projectForm);\n ofy().save().entities(project).now();\n \n return project;\n \t}\n }); \n return project;\n }",
"@Override\r\n\tpublic TreeNodeTo createSprintNode(SprintTo sprint, String projectId,String sprintId) {\n\t\tsprint=createSprint(sprint, projectId, sprintId);\r\n\t\tTreeNodeTo node=new TreeNodeTo();\r\n\t\tnode.setId(sprint.getId());\r\n\t\tnode.setName(\"<Strong>\"+sprint.getName()+\"</Strong>\"+\" : \"+dateFormat.format(sprint.getStartTime())+\"--\"+dateFormat.format(sprint.getEndTime()));\r\n\t\tif(sprint.getParentSprint()==null){\r\n\t\t\tnode.setpId(\"0\");\r\n\t\t\tnode.setOpen(true);\r\n\t\t}\t\t\t\t\t\r\n\t\telse {\r\n\t\t\tnode.setpId(sprint.getParentSprint().getId());\r\n\t\t\tnode.setOpen(false);\r\n\t\t}\r\n\t\treturn node;\r\n\t}",
"public void setReleaseId(int releaseId) { this.releaseId = releaseId; }",
"public void createProject(Project newProject);",
"public void setRelease(String release)\n {\n this.release = release;\n }",
"@PostMapping(value = \"/project\", consumes = \"application/json\", produces = \"application/json\")\n public ResponseEntity<?> addNewProject(@Valid @RequestBody Project newProject) throws URISyntaxException\n {\n newProject.setProjectid(0);\n newProject = projectService.save(newProject);\n\n // set the location header for the newly created resource\n HttpHeaders responseHeaders = new HttpHeaders();\n URI newProjectURI = ServletUriComponentsBuilder.fromCurrentRequest()\n .path(\"/{projectid}\")\n .buildAndExpand(newProject.getProjectid())\n .toUri();\n responseHeaders.setLocation(newProjectURI);\n\n return new ResponseEntity<>(null, responseHeaders, HttpStatus.CREATED);\n }",
"public void saveNewProject(){\n String pn = tGUI.ProjectTextField2.getText();\n String pd = tGUI.ProjectTextArea1.getText();\n String statusID = tGUI.StatusComboBox.getSelectedItem().toString();\n String customerID = tGUI.CustomerComboBox.getSelectedItem().toString();\n\n int sstatusID = getStatusID(statusID);\n int ccustomerID = getCustomerID(customerID);\n\n try {\n pstat = cn.prepareStatement (\"insert into projects (project_name, project_description, project_status_id, customer_id) VALUES (?,?,?,?)\");\n pstat.setString(1, pn);\n pstat.setString(2,pd);\n pstat.setInt(3, sstatusID);\n pstat.setInt(4, ccustomerID);\n pstat.executeUpdate();\n\n }catch (SQLException ex) {\n Logger.getLogger(ProjectMethods.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@RequestMapping(value = \"/console\", method = RequestMethod.POST)\n public ResponseEntity<Consoles> create(@RequestBody @Valid @NotNull Consoles consoles) {\n consoles.setConsolesId(UUID.randomUUID().toString());\n consolesService.saveConsoles(consoles);\n return ResponseEntity.ok().body(consoles);\n }",
"public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }",
"@RequestMapping(value = \"/create/project/{projectId}\", method = RequestMethod.GET)\r\n public ModelAndView create(@PathVariable(\"projectId\") String projectId) {\r\n ModelAndView mav = new ModelAndView(\"creates2\");\r\n int pid = -1;\r\n try {\r\n pid = Integer.parseInt(projectId);\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n Project project = hibernateTemplate.get(Project.class, pid);\r\n if (!dataAccessService.isProjectAvailableToUser(project, user)) {\r\n return accessdenied();\r\n }\r\n List<SubProject> subProjects = dataAccessService.getResearcherSubProjectsForUserInProject(user, project);\r\n mav.addObject(\"projectId\", projectId);\r\n mav.addObject(\"methods\", project.getMethods());\r\n mav.addObject(\"subProjects\", subProjects);\r\n return mav;\r\n }",
"@Test\n public void postTemplateProgrammerProjectTest() throws ApiException {\n ProjectDTO request = null;\n TaskIdResult response = api.postTemplateProgrammerProject(request);\n\n // TODO: test validations\n }",
"void createPortFolio(String portfolioName);",
"com.djt.cvpp.ota.orfin.vadrevent.mapper.dto.VadrRelease publishVadrReleaseEvent() \n\tthrows \n\t\tEntityAlreadyExistsException, \n\t\tValidationException;",
"public void setSprint(boolean s){\n this.sprint = s;\n }",
"@PostMapping(\"/projects\")\n @Timed\n public ResponseEntity<ProjectDTO> createProject(@Valid @RequestBody ProjectDTO projectDto)\n throws URISyntaxException, NotAuthorizedException {\n log.debug(\"REST request to save Project : {}\", projectDto);\n var org = projectDto.getOrganization();\n if (org == null || org.getName() == null) {\n throw new BadRequestException(\"Organization must be provided\",\n ENTITY_NAME, ERR_VALIDATION);\n }\n checkPermissionOnOrganization(token, PROJECT_CREATE, org.getName());\n\n if (projectDto.getId() != null) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\n ENTITY_NAME, \"idexists\", \"A new project cannot already have an ID\"))\n .body(null);\n }\n if (projectRepository.findOneWithEagerRelationshipsByName(projectDto.getProjectName())\n .isPresent()) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\n ENTITY_NAME, \"nameexists\", \"A project with this name already exists\"))\n .body(null);\n }\n ProjectDTO result = projectService.save(projectDto);\n return ResponseEntity.created(ResourceUriService.getUri(result))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getProjectName()))\n .body(result);\n }",
"Project createProject();",
"Project createProject();",
"Project createProject();",
"public void createProject(String name) {\n Project project = new Project(name);\n Leader leader = new Leader(this, project);\n project.addLeader(leader);\n }",
"public String handleAdd() \n throws HttpPresentationException, webschedulePresentationException\n { \n\t try {\n\t Project project = new Project();\n saveProject(project);\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n\t } catch(Exception ex) {\n return showAddPage(\"You must fill out all fields to add this project\");\n }\n }",
"@POST\n\t@Path(\"task/submission\")\n\tpublic void taskSubmission(TaskSubmissionTO sumbmissionTO, @Context HttpServletRequest request, @Context HttpServletResponse response) {\n\t\tlogger.info(\"taskSubmission start\");\n\t\tMap<String, Object> json = new HashMap<>();\n\t\tEntityManager em = EntityManagerHelper.getDefaulteEntityManager();\n\t\ttry {\n\t\t\tTaskService taskService = new TaskService(em);\n\t\t\tTaskSubmission taskSumission = taskService.upsertTaskSubmission(sumbmissionTO, CurrentContext.getAppUser());\n\t\t\tTaskSubmissionTO savedTO = new TaskSubmissionTO(taskSumission);\n\t\t\tjson.put(Constants.CODE, Constants.RESPONSE_OK);\n\t\t\tjson.put(Constants.DATA_ITEM, savedTO);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e );\n\n\t\t\tjson.put(Constants.CODE, Constants.ERROR_WITH_MSG);\n\t\t\tjson.put(Constants.MESSAGE, e.getMessage());\n\t\t} finally {\n\t\t\tif (em.isOpen()) {\n\t\t\t\tem.close();\n\t\t\t}\n\t\t}\n\t\trenderResponseJson(json, response);\n\t\tlogger.info(\"taskSubmission exit\");\n\t}",
"@Test\n public void createScheduledPlanTest() throws ApiException {\n ScheduledPlan body = null;\n ScheduledPlan response = api.createScheduledPlan(body);\n\n // TODO: test validations\n }",
"public void save(Project project) {\n\t\tcreate(project);\n\t}",
"public void createProject(String nameProject, String nameDiscipline) throws \n InvalidDisciplineException,InvalidProjectException{\n int id = _person.getId();\n Professor _professor = getProfessors().get(id);\n _professor.createProject(nameProject, nameDiscipline);\n }",
"@Test\n @Transactional\n public void createProduction() throws Exception {\n assertThat(productionRepository.findAll()).hasSize(0);\n\n // Create the Production\n restProductionMockMvc.perform(post(\"/app/rest/productions\")\n .contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(production)))\n .andExpect(status().isOk());\n\n // Validate the Production in the database\n List<Production> productions = productionRepository.findAll();\n assertThat(productions).hasSize(1);\n Production testProduction = productions.iterator().next();\n assertThat(testProduction.getName()).isEqualTo(DEFAULT_NAME);\n assertThat(testProduction.getYear_established()).isEqualTo(DEFAULT_YEAR_ESTABLISHED);\n }",
"public void setReleaseId(java.lang.Integer releaseId) {\n this.releaseId = releaseId;\n }",
"LectureProject createLectureProject();",
"@POST\n @Consumes({\"application/json\"})\n @Produces({\"application/json\"})\n public RestRsp<Tp> createSite(final Tp tp) throws ServiceException {\n ScopeChecker.checkScope(tp);\n return new RestRsp<Tp>(ResultConstants.SUCCESS, service.createTp(tp));\n }",
"public Project() {\n this.name = \"Paper plane\";\n this.description = \" It's made of paper.\";\n }",
"public abstract void commitSprintBacklog();",
"public JiraProjectCreationResult createProject(\r\n String token, JiraProject project, JiraVersion version, ComponentType type) throws JiraManagerException {\r\n Util.logEnter(log, \"createProject\", token, project, version, type);\r\n Util.checkString(log, \"token\", token);\r\n Util.checkNull(log, \"project\", project);\r\n Util.checkNull(log, \"version\", version);\r\n Util.checkNull(log, \"type\", type);\r\n\r\n try {\r\n JiraProjectCreationResult result =\r\n getJiraManagementServicePort().createProject(token, project, version, type);\r\n Util.logExit(log, \"createProject\", result);\r\n return result;\r\n } catch (JiraServiceException e) {\r\n throw processError(e);\r\n }\r\n }",
"public Project procreate(Project pud) throws IOException {\n\t\tString ur = url + \"/procreate\";\n\t\tProject us = restTemplate().postForObject(ur, pud, Project.class);\n\t\tSystem.out.println(us.toString());\n\t\t//UserDetails user = om.readValue(us,UserDetails.class);\n\t\treturn us;\n\t}",
"@PostMapping(\"/assign-to-students\")\n\t@CrossOrigin(origins = \"http://localhost:3000\")\n\tpublic @ResponseBody String assignProjectsToStudents(@RequestBody ArrayList<Project> projects) {\n\t\tfor (Project project : projects) {\n\t\t\tif (project.getProjectId() > 0) {\n\t\t\t\tfor (Student student : project.getMembers()) {\n\t\t\t\t\t// Set the given project for each student\n\t\t\t\t\tStudent saveStudent = userService.findByUserId(student.getUserId());\n\t\t\t\t\tsaveStudent.setProject(project);\n\t\t\t\t\tuserService.saveUser(saveStudent);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tprojectService.saveAssignment(projects);\n\t\treturn Constants.SUCCESS;\n\t}",
"public OperationReference queueCreateProject(\r\n final TeamProject projectToCreate) {\r\n\r\n final UUID locationId = UUID.fromString(\"603fe2ac-9723-48b9-88ad-09305aa6c6e1\"); //$NON-NLS-1$\r\n final ApiResourceVersion apiVersion = new ApiResourceVersion(\"2.1\"); //$NON-NLS-1$\r\n\r\n final Object httpRequest = super.createRequest(HttpMethod.POST,\r\n locationId,\r\n apiVersion,\r\n projectToCreate,\r\n APPLICATION_JSON_TYPE,\r\n APPLICATION_JSON_TYPE);\r\n\r\n return super.sendRequest(httpRequest, OperationReference.class);\r\n }",
"public Long createProject(ProjectTo projectTo) {\n\t\tprojectTo = new ProjectTo();\n\t\tprojectTo.setOrg_id(1L);\n\t\tprojectTo.setOrg_name(\"AP\");\n\t\tprojectTo.setName(\"Menlo\");\n\t\tprojectTo.setShort_name(\"Pioneer Towers\");\n\t\tprojectTo.setOwner_username(\"Madhapur\");\n\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(userOptixURL + \"CreateProject\");\n\t\t\tprojectTo = webResource.type(MediaType.APPLICATION_JSON).post(ProjectTo.class, projectTo);\n\t\t\tif(projectTo != null && projectTo.getProject_id() != null) {\n\t\t\t\treturn projectTo.getProject_id() ;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in getting the response from REST call CreateProject : \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic Integer addProject(ProjectInfo project) {\n\t\treturn sqlSession.insert(\"cn.sep.samp2.project.addProject\", project);\n\t}",
"@PostMapping(\"/project\")\n public Object doPost(@RequestBody ProjectLongId[] projectsLongId) throws PrimaryKeyViolationException, NoSuchFieldException, RequiredFieldMissingException {\n service.createAllProjects(projectsLongId);\n return new ResponseTemplate(true, null);\n }",
"public static Project createProject() throws ParseException {\n System.out.println(\"Please enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the project name: \");\n String projName = input.nextLine();\n\n System.out.println(\"Please enter the type of building: \");\n String buildingType = input.nextLine();\n\n System.out.println(\"Please enter the physical address for the project: \");\n String address = input.nextLine();\n\n System.out.println(\"Please enter the ERF number: \");\n String erfNum = input.nextLine();\n\n System.out.println(\"Please enter the total fee for the project: \");\n int totalFee = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the total amount paid to date: \");\n int amountPaid = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the deadline for the project (dd/MM/yyyy): \");\n String sdeadline = input.nextLine();\n Date deadline = dateformat.parse(sdeadline);\n\n Person architect = createPerson(\"architect\", input);\n Person contractor = createPerson(\"contractor\", input);\n Person client = createPerson(\"client\", input);\n\n // If the user did not enter a name for the project, then the program will\n // concatenate the building type and the client's surname as the new project\n // name.\n\n if (projName == \"\") {\n String[] clientname = client.name.split(\" \");\n String lastname = clientname[clientname.length - 1];\n projName = buildingType + \" \" + lastname;\n }\n\n return new Project(projNum, projName, buildingType, address, erfNum, totalFee, amountPaid, deadline, contractor,\n architect, client);\n\n }",
"public void setReleaseVersion(String version) {\r\n\t\tthis.version = version;\r\n\t}",
"int insert(ReleaseSystem record);",
"@Override\r\n\tpublic SprintTo getCurrentSprint(String projectId) {\n\t\treturn sprintDao.getCurrentSprint(projectId,new Date());\r\n\t}",
"@PostMapping(\"/createNewGameRoom\")\n @ResponseStatus(HttpStatus.CREATED)\n public Game generateNewGameRoom() {\n String entrycode = service.generateEntryCode();\n currentGame.setEntrycode(entrycode);\n currentGame = gameDao.add(currentGame);\n return currentGame;\n }",
"@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void crearReleasesTest() {\r\n\r\n\t\tpd.crearReleases();\r\n\t\tpd.pm.deletePersistent(pd.release1);\r\n\t\tpd.pm.deletePersistent(pd.release2);\r\n\t\tpd.pm.deletePersistent(pd.release3);\r\n\r\n\t}",
"private void initiateProject() {\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.getDefault());\n\n Date startDay = null;\n Date deadlineMinPace = null;\n Date deadlineMaxPace = null;\n\n try {\n startDay = dateFormat.parse(\"21-08-2018\");\n deadlineMinPace = dateFormat.parse(\"27-08-2018\");\n deadlineMaxPace = dateFormat.parse(\"25-08-2018\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (startDay != null && deadlineMinPace != null && deadlineMaxPace != null) {\n\n smp = new SmartProject(\"Test project\", \"Test project description\",\n 35, startDay, deadlineMinPace, deadlineMaxPace);\n\n System.out.println(\"===>>>\" + smp.toString());\n\n } else {\n System.out.println(\"===>>> Some date are null!\");\n }\n\n /*\n // *** print block ***\n smp.printEntries();\n\n for (float f : smp.getYAxisChartValuesMinPace()) {\n System.out.println(f);\n }\n\n for (float f : smp.getYAxisChartValuesMaxPace()) {\n System.out.println(f);\n }\n\n for (float f : smp.getFloatNumbersForXAxis()) {\n System.out.println(f);\n }\n */\n\n }",
"@Override\r\n\tpublic List<SprintTo> getSprintsForProjectByStatus(String projectId,\r\n\t\t\tint status) {\n\t\treturn null;\r\n\t}",
"@Override\r\n public void onSubmit() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n \r\n // check if any field is missing\r\n boolean hasAllFields = true;\r\n if (this.projectName == null) {\r\n hasAllFields = false;\r\n error(\"Project name is required.\");\r\n }\r\n if (this.ownerName == null) {\r\n hasAllFields = false;\r\n error(\"Owner name is required.\");\r\n }\r\n if (this.password == null) {\r\n hasAllFields = false;\r\n error(\"Password is required.\");\r\n }\r\n if (this.svnUrl == null) {\r\n hasAllFields = false;\r\n error(\"The repository URL is required.\");\r\n }\r\n \r\n if (hasAllFields) {\r\n try {\r\n // check if the owner is a valid hackystat user\r\n String host = app.getSensorBaseHost();\r\n SensorBaseClient client = new SensorBaseClient(host, this.ownerName, this.password);\r\n client.authenticate();\r\n }\r\n catch (SensorBaseClientException e) {\r\n error(\"Owner is not valid Hackystat user or password does not match.\");\r\n }\r\n \r\n try {\r\n // check if the svn url is a valid google host url\r\n WebConversation wc = new WebConversation();\r\n WebResponse response = wc.getResponse(this.svnUrl);\r\n if (!response.getTitle().contains(\"Revision\")) {\r\n error(\"The repository URL is not a valid Google host repository URL.\");\r\n }\r\n }\r\n catch (Exception e) {\r\n error(\"Cannot connect to the repository URL.\");\r\n }\r\n \r\n // if there is no error, create the project and go back to the home page\r\n if (!hasError() && createProject()) {\r\n // redirect to the projects page\r\n setResponsePage(ProjectsPage.class);\r\n }\r\n else {\r\n error(\"The project cannot be created. \" +\r\n \"A project with the same name already exists, or some information are invalid.\");\r\n }\r\n }\r\n \r\n }",
"public boolean insertProject(Project project) throws EmployeeManagementException;",
"private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"public boolean createProject(String name, String key) {\n List<NameValuePair> param = new ArrayList<>();\n param.add(new BasicNameValuePair(\"name\", name));\n param.add(new BasicNameValuePair(\"key\", key));\n Map<String, String> props = new HashMap<>();\n props.put(\"Authorization\", Authentication.getBasicAuth(\"sonar\"));\n String url = Host.getSonar() + \"api/projects/create\";\n try {\n Object[] response = HttpUtils.sendPost(url, param, props);\n if (Integer.parseInt(response[0].toString()) == 200) return true;\n } catch (Exception e) {\n logger.error(\"Create sonar project: POST request error.\", e);\n }\n return false;\n }",
"void create(Team team);",
"public CreateProject() {\n\t\tsuper();\n\t}",
"public void addProj() {\n\t\tbtnAdd.click();\n\t}",
"private void release(int ticket) {\n trackStatus[ticket].release();\n if (DEBUG) System.err.printf(\"Train: %d\\tReleased: %d\\n\", this.id, ticket);\n }",
"public int DSAddProject(String ProjectName, String ProjectLocation);",
"@RequestMapping(method = RequestMethod.POST, value=\"/Create\")\n public ResponseEntity<?> createSchedule(@RequestParam(value=\"topic\") String topic){\n try{\n Schedule schedule = scheduleService.createSchedule(topic);\n\n return ResponseEntity.ok().body(schedule);\n }catch (ResponseException e){\n return ResponseEntity.status(e.getResponseStatus()).body(e.getMessage());\n }catch (Exception e){\n return ResponseEntity.status(500).body(e.getMessage());\n }\n\n }",
"@PostMapping\n public Season_Period addPeriod(@RequestBody Season_Period season_period){\n return periodService.addPeriod(season_period);\n }",
"@Override\r\n\tpublic List<TreeNodeTo> prepareSprintTreeNodes(String projectId) {\n\t\tTreeNodeTo rootNode=prepareRootNode();\r\n\t\tList sprintNodes=new ArrayList<TreeNodeTo>();\r\n\t\tsprintNodes.add(rootNode);\r\n\t\tList<SprintTo> sprints=sprintDao.getSprintForProject(projectId);\r\n\t\tif(sprints!=null&&sprints.size()>0){\r\n\t\t\tfor(SprintTo sprint : sprints){\r\n\t\t\t\tTreeNodeTo node=new TreeNodeTo();\r\n\t\t\t\tnode.setId(sprint.getId());\r\n\t\t\t\tnode.setName(\"<Strong>\"+sprint.getName()+\"</Strong>\"+\" : \"+dateFormat.format(sprint.getStartTime())+\"--\"+dateFormat.format(sprint.getEndTime()));\r\n\t\t\t\tif(sprint.getParentSprint()==null){\r\n\t\t\t\t\tnode.setpId(\"0\");\r\n\t\t\t\t\tnode.setOpen(true);\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tnode.setpId(sprint.getParentSprint().getId());\r\n\t\t\t\t\tnode.setOpen(false);\r\n\t\t\t\t}\r\n\t\t\t\tsprintNodes.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sprintNodes;\r\n\t}",
"@Test\n public void a_create() {\n String url = baseUrl + \"create\";\n System.out.println();\n System.out.println(\"volunteerProvince being posted: \"+volunteerProvince);\n ResponseEntity<VolunteerProvince> postResponse = testRestTemplate\n .withBasicAuth(SECURITY_USERNAME, SECURITY_PASSWORD)\n .postForEntity(url, volunteerProvince, VolunteerProvince.class);\n volunteerProvince = postResponse.getBody();\n assertNotNull(postResponse.getBody());\n assertEquals(volunteerProvince.getVolunteerNum(), postResponse.getBody().getVolunteerNum());\n System.out.println(\"Volunteer Province saved on the data structure: \"+postResponse.getBody());\n\n }",
"public Project()\n {\n\n }",
"void createProjectForExercise(ProgrammingExercise programmingExercise) throws VersionControlException;",
"@Test (groups = {\"Functional\"})\n public void testAddProject() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String projectName = \"TestProject\";\n String testAccount = \"Account1\";\n createProject.setProjectName(projectName);\n createProject.clickPublicProjectPrivacy();\n createProject.setAccountDropDown(testAccount);\n project = createProject.clickCreateProject();\n\n //Then\n assertEquals(PROJECT_NAME, project.getTitle());\n }",
"public void settRelease(String tRelease) {\n this.tRelease = tRelease == null ? null : tRelease.trim();\n }",
"@Override\n\tpublic void createProject(ProjectCreate project) {\n\t\tprojectDao.createProject(project);\n\t}",
"@Override\n\tpublic void createProjects(Projects proj) {\n\t\tString sql = \"INSERT INTO projects VALUES (?,?,?,?,?,?,now(),now(),?)\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tproj.getProj_id(),\n\t\t\t\tproj.getProj_name(),\n\t\t\t\tproj.getProj_desc(),\n\t\t\t\tproj.getFile_id(),\n\t\t\t\tproj.getCus_id(),\n\t\t\t\tproj.getCretd_usr(),\n\t\t\t\tproj.getProj_currency()\n\t\t});\n\t\t\n\t\tUserDetailsApp user = UserLoginDetail.getUser();\n\t\t\n\t\tCustomer cus = new Customer();\n\t\tcus = getJdbcTemplate().queryForObject(\"select * from customer where cus_id=\"+proj.getCus_id(), new BeanPropertyRowMapper<Customer>(Customer.class));\n\t\tString file_name = \"\";\n\t\tif(proj.getFile_id() != 0){\n\t\t\tFileModel myFile = new FileModel();\n\t\t\tmyFile = getJdbcTemplate().queryForObject(\"select * from file where file_id=\"+proj.getFile_id(), new BeanPropertyRowMapper<FileModel>(FileModel.class));\n\t\t\tfile_name = myFile.getFile_name();\n\t\t}\n\t\t\n\t\tString audit = \"INSERT INTO audit_logging (aud_id,parent_id,parent_object,commit_by,commit_date,commit_desc,parent_ref) VALUES (default,?,?,?,now(),?,?)\";\n\t\tthis.getJdbcTemplate().update(audit, new Object[]{\n\t\t\t\t\n\t\t\t\tproj.getProj_id(),\n\t\t\t\t\"Projects\",\n\t\t\t\tuser.getUserModel().getUsr_name(),\n\t\t\t\t\"Created row on Projects name=\"+proj.getProj_name()+\", desc=\"+proj.getProj_desc()+\", file_name=\"+file_name\n\t\t\t\t+\", customer=\"+cus.getCus_code()+\", proj_currency=\"+proj.getProj_currency(),\n\t\t\t\tproj.getProj_name()\n\t\t});\n\t}",
"@PostMapping\r\n public ResponseEntity<?> createSportStatsWithPoints(@RequestBody SportStatsInfo sportStatsInfo) {\r\n try{\r\n SportStats sportStats = sportStatsService.createSportStatsWithPoints(sportStatsInfo);\r\n return new ResponseEntity<>(sportStats, HttpStatus.CREATED);\r\n }catch (NoSuchElementException e) {\r\n throw new ResponseStatusException(HttpStatus.BAD_REQUEST, e.getMessage());\r\n }\r\n }",
"@POST\n @Path(\"/deployments\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response createDeployment(InputStream inputStream, @HeaderParam(\"authorization\") String authString,\n @HeaderParam(\"userid\") String userid) {\n\n logger.info(\"Received request for creating deployment\");\n\n if (!APIHConfig.getInstance().validateUser(authString, userid, \"PUT\")) {\n return Response.status(401).entity(UNAUTHORIZED).build();\n }\n\n String url;\n JSONObject inputJSon;\n JSONObject outputJSON;\n\n StringBuilder check = new StringBuilder();\n String inputLine;\n\n try (BufferedReader in = new BufferedReader(new InputStreamReader(inputStream))) {\n while ((inputLine = in.readLine()) != null) {\n check.append(inputLine);\n }\n inputJSon = new JSONObject(check.toString());\n\n if (inputJSon.optString(DEPLOYMENT_ID, \"\").equals(\"\")) {\n return Response.status(400).entity(\"deployment_id is mandatory in payload\").build();\n }\n String blueprintID = inputJSon.optString(BLUEPRINT_ID, \"\");\n JSONObject parameters = inputJSon.optJSONObject(PARAMETERS);\n\n outputJSON = new JSONObject();\n outputJSON.put(BLUEPRINT_ID, blueprintID);\n outputJSON.put(\"inputs\", parameters);\n url = DEPLOYMENTS + inputJSon.optString(DEPLOYMENT_ID, \"\");\n JSONObject result = CloudifyClient.getInstance().doPUT(url, outputJSON);\n logger.info(\"Handled create deployment API Request\");\n return handleResponse(result);\n } catch (Exception e) {\n logger.error(e.getLocalizedMessage(), e);\n return Response.status(400).entity(RESPONSE_ERROR_MSG).build();\n }\n }",
"@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }",
"private static void createSubmission(String[] attributes, int docuID, int orgID) {\n\t\tint actID = ActivityDetailsService.getActivityDetailsByDocuID(docuID).getId();\n\t\tint submissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t//System.out.println(\"docuID: \" + docuID);\n\t\tif(submissionID == 0){\n\t\t\t//create submission details\n\t\t\tSubmissionDetails subDet = new SubmissionDetails();\n\t\t\tsubDet.setActID(actID);\n\t\t\tsubDet.setSubmittedBy(attributes[16]);\n\t\t\tsubDet.setContactNo(attributes[17]);\n\t\t\tsubDet.setEmailAddress(attributes[18]);\n\t\t\tsubDet.setDateSubmitted(toDateTime(attributes[0]));\n\t\t\tsubDet.setSubmissionType(attributes[4]);\n\t\t\t\n\t\t\tif(subDet.getSubmissionType().equalsIgnoreCase(\"Special Approval Slip\"))\n\t\t\t\tsubDet.setSasType(attributes[19]);\n\t\t\telse subDet.setSasType(\"-\");\n\t\t\tSubmissionDetailsService.addSubmissionDetails(subDet);\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t} else {\n\t\t\tif(attributes.length >= 21) {\n\t\t\t\tsubmissionID = SubmissionDetailsService.getSubmissionIDByDateSubmittedAndActID(toDateTime(attributes[0]), actID);\n\t\t\t\tcreateCheckingDetails(attributes, submissionID);\n\t\t\t}\n\t\t}\n\t\n\t}",
"public Project() {\n\n }",
"public static void createTicket(Ticket ticket) {\n try {\n Connection conn = Main.conn;\n PreparedStatement statement = conn.prepareStatement(\"INSERT INTO bs_tickets (username, admin, status, question, server, date_created, date_accepted, date_resolved) VALUES (?, ?, ?, ?, ?, ?, ?, ?)\");\n\n statement.setString(1, ticket.username);\n statement.setString(2, ticket.admin);\n statement.setString(3, ticket.status);\n statement.setString(4, ticket.question);\n statement.setString(5, ticket.server);\n statement.setInt(6, ticket.date_created);\n statement.setInt(7, ticket.date_accepted);\n statement.setInt(8, ticket.date_resolved);\n\n statement.executeUpdate();\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Test\n\tpublic void saveProjects() throws ParseException {\n\t\tproject.setEstimates(5);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate parsed = format.parse(\"20110210\");\n\t\tjava.sql.Date sql = new java.sql.Date(parsed.getTime());\n\t\tproject.setdRequested(sql);\n\t\tproject.setdRequired(sql);\n\t\tproject.setCritical(true);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tProjectKeyContacts contacts = new ProjectKeyContacts();\n\t\tcontacts.setEmail(\"assdasd.gmail.com\");\n\t\tcontacts.setFname(\"sdsd\");\n\t\tcontacts.setLname(\"asdasd\");\n\t\tcontacts.setPhone(\"asd\");\n\t\tcontacts.setRole(\"asda\");\n\t\tcontacts.setTeam(\"saad\");\n\t\tproject.setContacts(contacts);\n\t\tProjectDetails det = new ProjectDetails();\n\t\tdet.setDescription(\"asdsd\");\n\t\tdet.setName(\"asd\");\n\t\tdet.setName(\"asdad\");\n\t\tdet.setSummary(\"asdd\");\n\t\tproject.setProjectDetails(det);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tassertEquals(controller.saveProject(project).getStatusCode(), HttpStatus.CREATED);\n\t}",
"public boolean addProject(Project p) {\n try {\n String insert = \"INSERT INTO PROJECTS\"\n + \"(CLIENT,DESCRIPTION,HOURS,STARTDATE,DUEDATE,INVOICESENT,CLIENT_ID,PROJECT_ID) \"\n + \"VALUES(?,?,?,?,?,?,?,PROJECTS_SEQ.NEXTVAL)\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(insert);\n ps.setString(1, p.getClientId());\n ps.setString(2, p.getDescription());\n ps.setString(3, p.getHours());\n ps.setString(4, p.getStartdate());\n ps.setString(5, p.getDuedate());\n ps.setString(6, p.getInvoicesent());\n ps.setString(7, p.getClientId());\n\n ps.executeUpdate();\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }",
"private void createInstance() throws DefectException{\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString username = TestBedManager.INSTANCE.getDefectConfig().getUsername();\r\n\t\t\t\r\n\t\t\tString password = encrypt_decrypt.getDecodedValue(TestBedManager.INSTANCE.getDefectConfig().getPassword());\r\n\t\t\t\r\n\t\t\t//restApi = new RallyRestApi(new URI(rallyInfo.getUrl()), rallyInfo.getUserName(), rallyInfo.getPassword());\r\n\t\t\trestApi = new RallyRestApi(new URI(rallyInfo.getUrl()),username ,password);\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tlog.error(\"failed to connect to rally instance, message : \" + e.toString() + \"RallyInfo -\" + rallyInfo);\r\n\t\t\tthrow new DefectException(\"failed to connect to rally instance, message : \" + e.toString()); \t\r\n\t\t}\r\n\t\tif(rallyInfo.getWsapiVersion() != null)\r\n\t\t\trestApi.setWsapiVersion(rallyInfo.getWsapiVersion());\r\n\t\trestApi.setApplicationName(rallyInfo.getAppName());\r\n\t\t\r\n\t}",
"@Test\n public void createUnassignedGame() throws Exception {\n final GameResource resource = TestUtils.newGameResource();\n resource.setStartsAt(\"2014-03-21T16:00:00.000\");\n\n mockMvc.perform(post(BASE_REQUEST_URL).with(superadmin)\n .header(AUTH_HEADER_NAME, createTokenForUser())\n .contentType(contentType)\n .content(TestUtils.convertObjectToJson(resource)))\n .andExpect(status().isCreated())\n .andExpect(content().contentType(contentType))\n .andExpect(jsonPath(\"$.site\", is(resource.getSite())))\n .andExpect(jsonPath(\"$.startsAt\", is(resource.getStartsAt())));\n }",
"public GenericReportResponse getMininmalSprintReport(BasicReportRequestParams params, JiraRestClient restClient,\n JiraClient jiraClient) {\n logger.debug(\"getMininmalSprintReport\");\n String sprint = params.getSprintName();\n String project = params.getSubProjectName();\n Integer maxResults = 1000;\n Integer startAt = 0;\n int rvId = 0;\n int sprintId = 0;\n if (project == null || sprint == null) {\n logger.error(\"Error: Missing required paramaters\");\n throw new DataException(HttpStatus.BAD_REQUEST.toString(), \"Missing required paramaters\");\n }\n List<SprintReport> sprintReportList = new ArrayList<>();\n SprintReport sprintReport;\n Iterable<Issue> retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", 1000, 0, null).claim()\n .getIssues();\n Pattern pattern = Pattern.compile(\"\\\\[\\\".*\\\\[id=(.*),rapidViewId=(.*),.*,name=(.*),startDate=(.*),.*\\\\]\");\n Matcher matcher = pattern\n .matcher(retrievedIssue.iterator().next().getFieldByName(\"Sprint\").getValue().toString());\n if (matcher.find()) {\n sprintId = Integer.parseInt(matcher.group(1));\n rvId = Integer.parseInt(matcher.group(2));\n }\n while (retrievedIssue.iterator().hasNext()) {\n for (Issue issueValue : retrievedIssue) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n startAt += 1000;\n maxResults += 1000;\n retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", maxResults, startAt, null)\n .claim().getIssues();\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReport.setIssueKey(\"Removed Issues\");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n try {\n RemovedIssues removedIssues = removedIssuesService.get(jiraClient.getRestClient(), rvId, sprintId);\n for (SprintIssue issueValue : removedIssues.getPuntedIssues()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setIssueKey(\"Issues Added during Sprint\");\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n for (String issueValue : removedIssues.getIssuesAdded()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue);\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n } catch (JiraException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n String filename = project + \"_\" + sprint + \"_minimal_report.csv\";\n filename = filename.replace(\" \", \"_\");\n ConvertToCSV exportToCSV = new ConvertToCSV();\n exportToCSV.exportToCSV(env.getProperty(\"csv.filename\") + filename, sprintReportList);\n GenericReportResponse response = new GenericReportResponse();\n response.setDownloadLink(env.getProperty(\"csv.aliaspath\") + filename);\n response.setReportAsJson(JSONUtils.toJson(sprintReportList));\n return response;\n }",
"private static void add_project() {\r\n\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\t//List of building types\r\n\t\t\tString[] building_types = new String[] {\"House\", \"Apartment Block\", \"Commercial Property\", \"Industrial Property\", \"Agricultural Building\"};\r\n\t\t\t\r\n\t\t\t// Variables that are needed\r\n\t\t\tint project_id = 0;\r\n\t\t\tString project_name = \"\";\r\n\t\t\tString building_type = \"\";\r\n\t\t\tString physical_address = \"\";\r\n\t\t\tint erf_num = 0;\r\n\t\t\tString cust_surname = \"\";\r\n\t\t\tDate deadline_date = null;\r\n\t\t\tint charged = 0;\r\n\t\t\t\r\n\t\t\t// Allows for user input\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t//So first we need to select the correct customer\r\n\t\t\tString strSelect = \"SELECT * FROM people WHERE type = 'Customer'\";\r\n\t\t\tResultSet rset = stmt . executeQuery ( strSelect );\r\n\t\t\t\r\n\t\t\t// Loops through available customers from the people table so that the user can select one\r\n\t\t\tSystem.out.println(\"\\nSelect a customer for the project by typing the customers number.\");\r\n\t\t\t// This creates a list of customer ids to check that the user only selects an available one\r\n\t\t\tArrayList<Integer> cust_id_list = new ArrayList<Integer>(); \r\n\t\t\twhile (rset.next()) {\r\n\t\t\t\tSystem.out.println ( \r\n\t\t\t\t\t\t\"Customer Num: \" + rset.getInt(\"person_id\") + \", Fullname: \" + rset.getString(\"name\") + \" \" + rset.getString(\"surname\"));\r\n\t\t\t\tcust_id_list.add(rset.getInt(\"person_id\"));\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a customer\r\n\t\t\tBoolean select_cust = true;\r\n\t\t\tint customer_id = 0;\r\n\t\t\twhile (select_cust == true) {\r\n\t\t\t\tSystem.out.println(\"Customer No: \");\r\n\t\t\t\tString customer_id_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcustomer_id = Integer.parseInt(customer_id_str);\r\n\t\t\t\t\tfor (int i = 0; i < cust_id_list.size(); i ++) {\r\n\t\t\t\t\t\tif (customer_id == cust_id_list.get(i)) { \r\n\t\t\t\t\t\t\tselect_cust = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (select_cust == true) {\r\n\t\t\t\t\t\tSystem.out.println(\"Please only select an available customer id.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for customer id is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The customer number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Prints out all available building types form the building type list\r\n\t\t\tSystem.out.print(\"Select a building type by typing the number: \\n\");\r\n\t\t\tfor (int i=0; i < 5; i ++) {\r\n\t\t\t\tSystem.out.println((i + 1) + \": \" + building_types[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a building type\r\n\t\t\tBoolean select_building = true;\r\n\t\t\tint building_index = 0;\r\n\t\t\twhile (select_building == true) {\r\n\t\t\t\tSystem.out.println(\"Building type no: \");\r\n\t\t\t\tString building_type_select_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbuilding_index = Integer.parseInt(building_type_select_str) - 1;\r\n\t\t\t\t\tbuilding_type = building_types[building_index];\r\n\t\t\t\t\tselect_building = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for building type is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The building type number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// User gets to decide whether they want an automatically generated name.\r\n\t\t\tBoolean select_project_name = true;\r\n\t\t\twhile (select_project_name == true) {\r\n\t\t\t\tSystem.out.println(\"Would you like to have the project automatically named (y or n)?\");\r\n\t\t\t\tString customer_project_name_choice = input.nextLine();\r\n\t\t\t\tif (customer_project_name_choice.equals(\"y\")){\r\n\t\t\t\t\t// Gets the customers surname for the project name\r\n\t\t\t\t\tString strSelectCustSurname = String.format(\"SELECT surname FROM people WHERE person_id = '%s'\", customer_id);\r\n\t\t\t\t\tResultSet cust_surname_rset = stmt . executeQuery ( strSelectCustSurname );\r\n\t\t\t\t\twhile (cust_surname_rset.next()) {\r\n\t\t\t\t\t\tcust_surname = cust_surname_rset.getString(\"surname\");\r\n\t\t\t\t\t\tproject_name = building_type + \" \" + cust_surname;\r\n\t\t\t\t\t\tSystem.out.println(\"Project name: \" + project_name);\r\n\t\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (customer_project_name_choice.equals(\"n\")) {\r\n\t\t\t\t\tSystem.out.println(\"Provide project name: \");\r\n\t\t\t\t\tproject_name = input.nextLine();\r\n\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!customer_project_name_choice.equals(\"y\") && !customer_project_name_choice.equals(\"n\")){\r\n\t\t\t\t\tSystem.out.println(\"You can only select either y or n. Please try again\");\r\n\t\t\t\t\tselect_project_name = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter an erf number\r\n\t\t\tBoolean select_erf_num = true;\r\n\t\t\twhile (select_erf_num == true) {\r\n\t\t\t\tSystem.out.print(\"ERF number: \");\r\n\t\t\t\tString erf_num_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\terf_num = Integer.parseInt(erf_num_str);\r\n\t\t\t\t\tselect_erf_num = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for erf number is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The erf number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a physical address\r\n\t\t\tSystem.out.print(\"Physical Address: \");\r\n\t\t\tphysical_address = input.nextLine();\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a date\r\n\t\t\tBoolean select_deadline_date = true;\r\n\t\t\twhile (select_deadline_date == true) {\r\n\t\t\t\tSystem.out.print(\"Deadline Date (YYYY-MM-DD): \");\r\n\t\t\t\tString deadline_date_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdeadline_date= Date.valueOf(deadline_date_str);\r\n\t\t\t\t\tselect_deadline_date = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for deadline date is not in the correct format\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The date must be in the format YYYY-MM-DD (eg. 2013-01-13). Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter a charged amount \r\n\t\t\tBoolean select_charged = true;\r\n\t\t\twhile (select_charged == true) {\r\n\t\t\t\tSystem.out.print(\"Total Cost: R \");\r\n\t\t\t\tString charged_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcharged = Integer.parseInt(charged_str);\r\n\t\t\t\t\tselect_charged = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for the charged amount is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The charged amount cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the projects table\r\n PreparedStatement ps = conn.prepareStatement(\"INSERT INTO projects (project_name , building_type, physical_address, erf_num) VALUES(?,?,?,?)\");\r\n ps.setString(1, project_name);\r\n ps.setString(2, building_type);\r\n ps.setString(3, physical_address);\r\n ps.setInt(4, erf_num);\r\n \r\n // Executes the statement\r\n ps.executeUpdate();\r\n \r\n // This gets the created project's table id to use to update the people and project_statuses tables \r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects WHERE project_name = '%s'\", project_name);\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_rset.next()) {\r\n\t\t\t\tproject_id = project_rset.getInt(\"project_id\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the people table\r\n\t\t\tPreparedStatement ps_customer = conn.prepareStatement(\r\n\t\t\t\t\t\"UPDATE people SET projects = ? WHERE person_id = ?;\");\r\n\t\t\tps_customer.setInt(1, project_id);\r\n\t\t\tps_customer.setInt(2, customer_id);\r\n\t\t\tps_customer.executeUpdate();\r\n \r\n\t\t\t// This adds all the values to a prepared statement to update the project_statuses table\r\n PreparedStatement ps_status = conn.prepareStatement(\"INSERT INTO project_statuses (charged , deadline_date, project_id) VALUES(?,?,?)\");\r\n ps_status.setInt(1, charged);\r\n ps_status.setDate(2, deadline_date);\r\n ps_status.setInt(3, project_id);\r\n ps_status.executeUpdate();\r\n\r\n // Once everything has been added to the tables the project that has been added gets printed out\r\n\t\t\tResultSet project_added_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_added_rset.next()){\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"\\nProjects Added: \\n\" +\r\n\t\t\t\t\t\t\"Project Sys ID: \" + project_added_rset.getInt(\"project_id\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Project Name: \" + project_added_rset.getString(\"project_name\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Building Type: \" + project_added_rset.getString(\"building_type\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Physical Address: \" + project_added_rset.getString(\"physical_address\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Erf Number: \" + project_added_rset.getInt(\"erf_num\") + \"\\n\");\r\n\t\t\t}\r\n\t\t/**\r\n\t\t * @exception If any of the table entries cannot be created due to database constrains then the SQLException is thrown\r\n\t\t */\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}",
"@PostMapping(\"reservar\")\n\tpublic ReservasEntity add(@RequestBody ReservasEntity reserva ) {\n\t\treturn reservaService.add(reserva);\n\t}",
"private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}",
"@GetMapping(path = \"/detail/\")\n\tpublic String viewProjectDetail() {\n\t\treturn \"sprint-detail\";\n\t}",
"@ApiOperation(\"Creates a Team\")\n @PostMapping(\"/API/v1/team\")\n public ResponseEntity<TeamAPI> createTeam(@RequestParam String nombreEquipo){\n TeamString salida = teamService.crearTeam(nombreEquipo, false);\n\n if(salida.getSalida().equals(\"OK\")){\n return new ResponseEntity<>(salida.getTeam().toTeamAPI(), HttpStatus.OK);\n }\n else {\n return new ResponseEntity(salida.getSalida(), HttpStatus.NOT_FOUND);\n }\n\n }",
"private void newProject(ActionEvent x) {\n\t\tthis.controller.newProject();\n\t}",
"public void createProject(\n String projectName,\n int teamId,\n String assigneeName,\n LocalDate deadline,\n String description,\n Project.Importance importance)\n throws NoSignedInUserException, SQLException, InexistentUserException,\n InexistentTeamException, DuplicateProjectNameException, InexistentDatabaseEntityException,\n EmptyFieldsException, InvalidDeadlineException {\n if (isMissingProjectData(projectName, assigneeName, deadline)) {\n throw new EmptyFieldsException();\n }\n User currentUser = getMandatoryCurrentUser();\n User assignee = getMandatoryUser(assigneeName);\n Team team = getMandatoryTeam(teamId);\n // check that there is no other project with the same name\n if (projectRepository.getProject(teamId, projectName).isPresent()) {\n throw new DuplicateProjectNameException(projectName, team.getName());\n }\n // check if the new deadline of project is outdated (before the current date)\n if (isOutdatedDate(deadline)) {\n throw new InvalidDeadlineException();\n }\n // save project\n Project.SavableProject project =\n new Project.SavableProject(\n projectName, teamId, deadline, currentUser.getId(), assignee.getId(), importance);\n project.setDescription(description);\n projectRepository.saveProject(project);\n support.firePropertyChange(\n ProjectChangeablePropertyName.CREATE_PROJECT.toString(), OLD_VALUE, NEW_VALUE);\n }",
"private void setVersionsFromJiraData(TicketJira ticket, ArrayList<ReleaseJira> releases, ProportionMovingWindow proportion) {\r\n\t\t\r\n\t\tint ivIndex = 0;\r\n\t\tint ovIndex = 0;\r\n\t\tint fvIndex = 0;\r\n\t\tint index = 1;\r\n\t\tfor (ReleaseJira release: releases) {\r\n\t\t\tif(release.getName().equalsIgnoreCase(iv)) {\r\n\t\t\t\tivIndex = release.getID();\r\n\t\t\t}\r\n\t\t\tif(release.getName().equalsIgnoreCase(ov)) {\r\n\t\t\t\tovIndex = release.getID();\r\n\t\t\t}\r\n\t\t\tif(release.getName().equalsIgnoreCase(fv)) {\r\n\t\t\t\tfvIndex = release.getID();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tindex = index + 1;\r\n\t\t}\r\n\t\t\r\n\t\tif (ovIndex > fvIndex) {\r\n\t\t\tString msg = ticket.getTicketID() + ERRORMESSAGE;\r\n\t\t\tmylogger.log(Level.SEVERE, msg);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tfor (int i = ivIndex; i< fvIndex; i++) {\r\n\t\t\tav.add(ReleaseJira.getReleaseByID(releases, i).getName());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(ovIndex != fvIndex) {\r\n\t\t\tproportion.updateWindow(ivIndex, ovIndex, fvIndex);\r\n\t\t}\r\n\t\t\r\n\t}",
"@PostMapping(\"/route/create\")\n public String createRoute(@RequestParam(\"stationSequence\") String stationSequence) {\n log.info(\"Creating new route. stationSequence: \" + stationSequence);\n routeService.createRoute(stationSequence);\n return \"redirect:/admin/route/list\";\n }",
"@PostMapping(value=\"/create\")\n\tpublic Ticket creatTicket(@RequestBody Ticket ticket){\n\t\treturn ticketBookingService.createTicket(ticket);\n\t}",
"public void add(View project){\n projects.add(project);\n }",
"@RequestMapping(value=\"/reservas\", method=RequestMethod.POST)\r\n\tpublic void crearReserva(@RequestBody @Valid Reserva r) throws SistemaReservaException{\n\t\tif(!reservaRpository.obtenerTraslapes(r.getFechaInicio(), r.getFechaFin()).isEmpty()){\r\n\t\t\tthrow new SistemaReservaException(); \r\n\t\t }\r\n\t\t reservaRpository.save(r);\r\n\t}",
"protected void saveProject(Project theProject)\n throws HttpPresentationException, webschedulePresentationException\n { \n\n String proj_name = this.getComms().request.getParameter(PROJ_NAME);\n String personID = this.getComms().request.getParameter(PERSONID);\n String password = this.getComms().request.getParameter(PASSWORD);\n String discrib = this.getComms().request.getParameter(DISCRIB);\n String indexnum = this.getComms().request.getParameter(INDEXNUM);\n String thours = this.getComms().request.getParameter(THOURS);\n String dhours = this.getComms().request.getParameter(DHOURS);\n String codeofpay = this.getComms().request.getParameter(CODEOFPAY);\n\nString contactname = this.getComms().request.getParameter(CONTACTNAME);\n\tString contactphone = this.getComms().request.getParameter(CONTACTPHONE);\n\tString billaddr1 = this.getComms().request.getParameter(BILLADDR1);\n\tString billaddr2 = this.getComms().request.getParameter(BILLADDR2);\n\tString billaddr3 = this.getComms().request.getParameter(BILLADDR3);\n\tString city = this.getComms().request.getParameter(CITY);\n\tString state = this.getComms().request.getParameter(STATE);\n\tString zip = this.getComms().request.getParameter(ZIP);\n\tString accountid = this.getComms().request.getParameter(ACCOUNTID);\n\tString isoutside = this.getComms().request.getParameter(OUTSIDE);\n\tString exp = this.getComms().request.getParameter(EXP);\n\tString expday = this.getComms().request.getParameter(EXPDAY);\n\nString expmonth = this.getComms().request.getParameter(EXPMONTH);\nString expyear = this.getComms().request.getParameter(EXPYEAR);\n\nString notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT);\n\n try {\n\tSystem.out.println(\" trying to saving a project one \"+ proj_name);\n theProject.setProj_name(proj_name);\nSystem.out.println(\" trying to saving a project one \"+ proj_name);\n theProject.setPassword(password);\n\t theProject.setDescription(discrib);\n\t theProject.setIndexnum(indexnum);\n\t theProject.setTotalhours(Double.parseDouble(thours));\n\t theProject.setDonehours(Double.parseDouble(dhours));\n theProject.setCodeofpay(Integer.parseInt(codeofpay));\n\t\n\t theProject.setContactname(contactname);\n\t theProject.setContactphone(contactphone);\n\t theProject.setBilladdr1(billaddr1);\n theProject.setBilladdr2(billaddr2);\n\ntheProject.setBilladdr3(billaddr3);\ntheProject.setCity(city);\ntheProject.setState(state);\ntheProject.setZip(zip);\ntheProject.setAccountid(accountid);\ntheProject.setNotifycontact(notifycontact);\n\n\t if(null != this.getComms().request.getParameter(OUTSIDE)) {\n \ttheProject.setOutside(true);\n \t } else {\n \ttheProject.setOutside(false);\n \t }\n if(null != this.getComms().request.getParameter(EXP)) {\n \ttheProject.setExp(true);\n \t } else {\n \ttheProject.setExp(false);\n \t }\ntheProject.setExpday(Integer.parseInt(expday));\ntheProject.setExpmonth(Integer.parseInt(expmonth));\ntheProject.setExpyear(Integer.parseInt(expyear));\n\n\t theProject.setOwner(PersonFactory.findPersonByID(personID));\n\n\ntheProject.setInstitute(\"UCSD\");\ntheProject.setFpemail(\" \");\ntheProject.setPOnum(\"0\");\ntheProject.setPOexpdate(java.sql.Date.valueOf(\"2010-09-31\"));\ntheProject.setPOhours(0);\ntheProject.setIACUCDate(java.sql.Date.valueOf(\"2010-01-01\"));\ntheProject.setModifiedby(\"Ghobrial\");\ntheProject.setModDate(java.sql.Date.valueOf(\"2010-04-30\"));\ntheProject.setNotes(\"*\");\ntheProject.setIRBnum(\"0\");\n\n//theProject.set();\n\nSystem.out.println(\" Person ID \"+ personID);\nSystem.out.println(\" contactname \"+ contactname);\nSystem.out.println(\" contact phone\"+ contactphone);\nSystem.out.println(\" isoutside \"+ isoutside);\nSystem.out.println(\" exp day \"+expday);\nSystem.out.println(\" exp month \"+ expmonth);\nSystem.out.println(\" expyear \"+ expyear);\n\n\n\n\n\nSystem.out.println(\" trying to saving a project two \"+ proj_name);\n\t theProject.save();\t\nSystem.out.println(\" trying to saving a project three \"+ proj_name);\n\t } catch(Exception ex) {\n throw new webschedulePresentationException(\"Error adding project\", ex);\n } \n }",
"@Test\n\tpublic void createAccountRRSPInvestmentTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnRrspInvestments.setSelected(true);\n\t\tdata.setRdbtnRrspInvestments(rdbtnRrspInvestments);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.RRSP_INVESTMENTS.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}",
"public Project() { }",
"public ViewSprintCommand(Hashtable<String, String> parameters, ProjectManager projectList) {\n super(parameters, projectList, false);\n }",
"@GetMapping(\"/createBoard\")\n public String createBoardPage() {\n return \"boardTemplates/createBoard\";\n }"
] | [
"0.5835577",
"0.57761455",
"0.57173806",
"0.5409847",
"0.52413833",
"0.5144239",
"0.5018858",
"0.49913707",
"0.4927331",
"0.49144682",
"0.48607126",
"0.48426405",
"0.4783221",
"0.47129366",
"0.46678486",
"0.46560857",
"0.4647507",
"0.46422097",
"0.46387488",
"0.45508662",
"0.45409337",
"0.4536377",
"0.4511972",
"0.4511972",
"0.4511972",
"0.45054996",
"0.44762248",
"0.44668427",
"0.44566676",
"0.44420308",
"0.44053265",
"0.43963477",
"0.43878162",
"0.43844387",
"0.43833804",
"0.4381037",
"0.43748412",
"0.43689328",
"0.43650174",
"0.4356575",
"0.4356035",
"0.43409094",
"0.43331814",
"0.43179393",
"0.4317055",
"0.43151492",
"0.43143043",
"0.42854467",
"0.427789",
"0.42774972",
"0.42720732",
"0.42669463",
"0.42518252",
"0.42414832",
"0.42394042",
"0.42331654",
"0.42230532",
"0.4222775",
"0.4217651",
"0.42102325",
"0.41930446",
"0.41916445",
"0.4190965",
"0.416938",
"0.41578656",
"0.41440713",
"0.4141258",
"0.41411078",
"0.4138049",
"0.41351634",
"0.41348675",
"0.4129726",
"0.41205364",
"0.41178766",
"0.41111362",
"0.41108102",
"0.41090265",
"0.41023126",
"0.40931088",
"0.40852618",
"0.40791345",
"0.40768418",
"0.40708935",
"0.40707147",
"0.40679806",
"0.40644082",
"0.4062048",
"0.40616804",
"0.40600002",
"0.40550017",
"0.40516567",
"0.40489694",
"0.40438125",
"0.40388808",
"0.40328673",
"0.40301257",
"0.40266106",
"0.40211335",
"0.401933",
"0.4011106"
] | 0.8328298 | 0 |
GET /projectreleasesprints : get all the projectreleasesprints. | @RequestMapping(value = "/projectreleasesprints",
method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public List<Projectreleasesprint> getAllProjectreleasesprints() {
log.debug("REST request to get all Projectreleasesprints");
List<Projectreleasesprint> projectreleasesprints = projectreleasesprintRepository.findAll();
return projectreleasesprints;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/projectreleasesprints/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> getProjectreleasesprint(@PathVariable Long id) {\n log.debug(\"REST request to get Projectreleasesprint : {}\", id);\n Projectreleasesprint projectreleasesprint = projectreleasesprintRepository.findOne(id);\n return Optional.ofNullable(projectreleasesprint)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"public List<Sprint> getAllSprintDetails() {\n\t\tList<Sprint> sprints = (List<Sprint>) sprintRepository.findAll();\n\t\tif(sprints.isEmpty()){\n\t\t\tthrow new NotFoundException(Constant.NO_SPRINT);\n\t\t}else{\n\t\t\treturn sprints;\n\t\t}\n\t}",
"@Override\r\n\tpublic List<SprintTo> getSprintsForProjectByStatus(String projectId,\r\n\t\t\tint status) {\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/getAll\")\r\n\tpublic List<Project> getAllProjects() {\r\n\t\treturn persistenceService.getAllProjects();\r\n\t}",
"@RequestMapping(value = \"/projectreleasesprints\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> createProjectreleasesprint(@Valid @RequestBody Projectreleasesprint projectreleasesprint) throws URISyntaxException {\n log.debug(\"REST request to save Projectreleasesprint : {}\", projectreleasesprint);\n if (projectreleasesprint.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"projectreleasesprint\", \"idexists\", \"A new projectreleasesprint cannot already have an ID\")).body(null);\n }\n Projectreleasesprint result = projectreleasesprintRepository.save(projectreleasesprint);\n return ResponseEntity.created(new URI(\"/api/projectreleasesprints/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"projectreleasesprint\", result.getId().toString()))\n .body(result);\n }",
"public SortedSet<ReleaseJira> retriveReleases() throws IOException, ParseException{\n\t\t\n\t\tString url = basicUrl + \"project/\" + this.projectName + \"/version\";\n\t\tTreeSet<ReleaseJira> releases = new TreeSet<>((o1,o2) -> o1.getReleaseDate().compareTo(o2.getReleaseDate()));\n\t\t\n\t\tJSONObject json = JSONTools.readJsonFromUrl(url);\n JSONArray versions = json.getJSONArray(\"values\");\n \n for (Integer i = 0; i < versions.length(); i++ ) {\n JSONObject version = versions.getJSONObject(i);\n \t\n if (version.has(\"releaseDate\") && version.has(\"name\") && version.has(\"id\")) {\n \treleases.add(new ReleaseJira(version.getInt(\"id\"), version.getString(\"name\"), new SimpleDateFormat(\"yyyy-MM-dd\").parse(version.getString(\"releaseDate\"))));\t\n }\n }\n return releases;\n\t}",
"public List<Project> getAllProjects();",
"@ApiMethod(\n name = \"getProjects\",\n path = \"getProjects\",\n httpMethod = HttpMethod.POST\n )\n public List<Project> getProjects(){\n \tQuery<Project> query = ofy().load().type(Project.class);\n \treturn query.list();\n }",
"@GetMapping(\"/project\")\n public Object doGet(){\n return service.getAllProjects();\n }",
"@RequestMapping(value = \"/projectreleasesprints/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteProjectreleasesprint(@PathVariable Long id) {\n log.debug(\"REST request to delete Projectreleasesprint : {}\", id);\n projectreleasesprintRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"projectreleasesprint\", id.toString())).build();\n }",
"@Override\r\n\tpublic List<SprintTo> getSprintWithNoChildrenForProject(String projectId) {\n\t\treturn sprintDao.getSprintWithNoChildrenForProject(projectId);\r\n\t}",
"@RequestMapping(value = \"/project\", method = RequestMethod.GET)\n\tpublic Response getProjects() {\n\t\tResponse response = new Response();\n\t\ttry {\n\t\t\tList<Project> projects = projectService.getAllProjects();\n\t\t\tif (!projects.isEmpty()) {\n\t\t\t\tresponse.setCode(CustomResponse.SUCCESS.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.SUCCESS.getMessage());\n\t\t\t\tresponse.setData(transformProjectToPojectDto(projects));\n\t\t\t} else {\n\t\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\tlogger.error(\"get all project Failed \", e);\n\t\t}\n\t\treturn response;\n\t}",
"@GetMapping(path = \"/detail/\")\n\tpublic String viewProjectDetail() {\n\t\treturn \"sprint-detail\";\n\t}",
"@GetMapping(value = \"/projects\", produces = \"application/json\")\n public ResponseEntity<?> listAllProjects()\n {\n List<Project> projectList = projectService.findAllProjects();\n\n return new ResponseEntity<>(projectList, HttpStatus.OK);\n }",
"@Override\r\n\tpublic SprintTo getCurrentSprint(String projectId) {\n\t\treturn sprintDao.getCurrentSprint(projectId,new Date());\r\n\t}",
"@GetMapping(\"\")\n\t@CrossOrigin(origins = \"http://localhost:3000\")\n\tpublic List<Project> getProjects()\n\t{\n\t\treturn projectService.findAll();\n\t}",
"@GetMapping(value=\"/getProjectDetails/completed\")\n\tpublic List<Project> getAllProjectDetails()\n\t{\n\t\treturn integrationClient.getProjectDetiails();\n\t}",
"@GetMapping(\"/getsubtasks/{projectId}/{taskId}\")\n\tpublic List<Subtask> getAllSubtasksProj(@PathVariable (value = \"projectId\") Long projectId, @PathVariable (value = \"taskId\") Long taskId)\n\t{\n\t\tSystem.out.println(\"yes\");\n\t\treturn this.integrationClient.getAllSubtasksProj(projectId, taskId);\n\t}",
"@GetMapping(\"/api/getLatest\")\n\tpublic List<Project> findlatestProject()\n\t{\n\t\treturn this.integrationClient.findlatestProject();\n\t}",
"@GetMapping(value = \"/getProjectDetails/ongoing\")\n\tpublic List<Project> getOngoingProjects()\n\t{\n\t\treturn integrationClient.getOngoingProjects();\n\t}",
"public List<Release> releases(String owner, String repo, long page, long perPage) {\n return apiClient.deserializeAsList(apiClient.get(String.format(\"/repos/%s/%s/releases\", owner, repo),\n Maps.NEW(\"page\", page)\n .add(\"per_page\", perPage),\n null),\n Release.class);\n }",
"public List<ProjectType> invokeQueryProjects() throws TsResponseException {\n checkSignedIn();\n\n final List<ProjectType> projects = new ArrayList<>();\n\n int currentPage = 1; // Tableau starts counting at 1\n BigInteger totalReturned = BigInteger.ZERO;\n BigInteger totalAvailable;\n\n // Loop over pages\n do {\n // Query the projects page\n final String url = getUriBuilder().path(QUERY_PROJECTS) //\n .queryParam(\"pageNumber\", currentPage) //\n .queryParam(\"pageSize\", PROJECTS_PAGE_SIZE) //\n .build(m_siteId).toString();\n final TsResponse response = get(url);\n\n // Get the projects from the response\n projects.addAll(response.getProjects().getProject());\n\n // Next page\n currentPage++;\n // NOTE: total available is the number of datasources available\n totalAvailable = response.getPagination().getTotalAvailable();\n totalReturned = totalReturned.add(response.getPagination().getPageSize());\n } while (totalReturned.compareTo(totalAvailable) < 0);\n\n return projects;\n }",
"public List<String[]> getAllProject() {\n String url = Host.getSonar() + \"api/projects/index\";\n String json = null;\n try {\n Object[] response = HttpUtils.sendGet(url, Authentication.getBasicAuth(\"sonar\"));\n if (Integer.parseInt(response[0].toString()) == 200) {\n json = response[1].toString();\n }\n } catch (Exception e) {\n logger.error(\"Get sonar project list: GET request error.\", e);\n }\n if (json == null) {\n logger.warn(\"Get sonar project list: response empty.\");\n return null;\n }\n List<Map<String, Object>> projects = JSONArray.fromObject(json);\n if (projects.size() == 0) {\n logger.warn(\"Get sonar project list: empty list.\");\n return null;\n }\n List<String[]> result = new ArrayList<>();\n for (Map<String, Object> oneProject : projects) {\n result.add(new String[]{oneProject.get(\"nm\").toString(), oneProject.get(\"k\").toString()});\n }\n return result;\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @RolesAllowed({\"admin\", \"simple\"})\n public List<Task> listAll(@Context UriInfo uriInfo) {\n Long projectId = (uriInfo.getPathSegments().size() != 1?\n Long.valueOf(uriInfo.getPathSegments().get(1).getPath())\n :null);\n\n List<Task> results;\n\n if (projectId != null) {\n results = em.createQuery(\"SELECT t FROM Task t INNER JOIN t.project p WHERE p.id = :projId\", Task.class)\n .setParameter(\"projId\", projectId)\n .getResultList();\n } else {\n results = em.createQuery(\"SELECT t FROM Task t\", Task.class).getResultList();\n }\n\n return results;\n }",
"@GetMapping(\"/projects\")\n @Timed\n public ResponseEntity<?> getAllProjects(\n @PageableDefault(size = Integer.MAX_VALUE) Pageable pageable,\n @RequestParam(name = \"minimized\", required = false, defaultValue = \"false\") Boolean\n minimized) throws NotAuthorizedException {\n log.debug(\"REST request to get Projects\");\n checkPermission(token, PROJECT_READ);\n Page<?> page = projectService.findAll(minimized, pageable);\n HttpHeaders headers = PaginationUtil\n .generatePaginationHttpHeaders(page, \"/api/projects\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"public GenericReportResponse getMininmalSprintReport(BasicReportRequestParams params, JiraRestClient restClient,\n JiraClient jiraClient) {\n logger.debug(\"getMininmalSprintReport\");\n String sprint = params.getSprintName();\n String project = params.getSubProjectName();\n Integer maxResults = 1000;\n Integer startAt = 0;\n int rvId = 0;\n int sprintId = 0;\n if (project == null || sprint == null) {\n logger.error(\"Error: Missing required paramaters\");\n throw new DataException(HttpStatus.BAD_REQUEST.toString(), \"Missing required paramaters\");\n }\n List<SprintReport> sprintReportList = new ArrayList<>();\n SprintReport sprintReport;\n Iterable<Issue> retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", 1000, 0, null).claim()\n .getIssues();\n Pattern pattern = Pattern.compile(\"\\\\[\\\".*\\\\[id=(.*),rapidViewId=(.*),.*,name=(.*),startDate=(.*),.*\\\\]\");\n Matcher matcher = pattern\n .matcher(retrievedIssue.iterator().next().getFieldByName(\"Sprint\").getValue().toString());\n if (matcher.find()) {\n sprintId = Integer.parseInt(matcher.group(1));\n rvId = Integer.parseInt(matcher.group(2));\n }\n while (retrievedIssue.iterator().hasNext()) {\n for (Issue issueValue : retrievedIssue) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n startAt += 1000;\n maxResults += 1000;\n retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", maxResults, startAt, null)\n .claim().getIssues();\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReport.setIssueKey(\"Removed Issues\");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n try {\n RemovedIssues removedIssues = removedIssuesService.get(jiraClient.getRestClient(), rvId, sprintId);\n for (SprintIssue issueValue : removedIssues.getPuntedIssues()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setIssueKey(\"Issues Added during Sprint\");\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n for (String issueValue : removedIssues.getIssuesAdded()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue);\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n } catch (JiraException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n String filename = project + \"_\" + sprint + \"_minimal_report.csv\";\n filename = filename.replace(\" \", \"_\");\n ConvertToCSV exportToCSV = new ConvertToCSV();\n exportToCSV.exportToCSV(env.getProperty(\"csv.filename\") + filename, sprintReportList);\n GenericReportResponse response = new GenericReportResponse();\n response.setDownloadLink(env.getProperty(\"csv.aliaspath\") + filename);\n response.setReportAsJson(JSONUtils.toJson(sprintReportList));\n return response;\n }",
"public List<Project> findAllProject() {\n\treturn projectmapper.findProject(null);\n}",
"@RequestMapping(value = \"/shopressources\", method = RequestMethod.GET)\n List<ShopRessource> getAllShopRessources();",
"public SprintDataCollection getSprintsForRapidView(ClientCredentials clientCredentials, String rapidViewIdString)\n throws JSONException {\n\n SprintDataCollection sprintDataCollection = new SprintDataCollection();\n List<Integer> sprintIdList;\n SprintData currentSprint;\n\n sprintIdList = getAllSprintIdsForRapidView(clientCredentials, rapidViewIdString);\n\n for (Integer currentId : sprintIdList) {\n currentSprint = sprintService.getSprintMetaData(clientCredentials, currentId.toString(), true);\n\n if (currentSprint == null) {\n LOGGER.debug(\"The Sprint with the ID {} containes no Issues and could not be analysed.\", currentId);\n continue;\n }\n\n sprintDataCollection.addSprintData(currentSprint);\n }\n\n return sprintDataCollection;\n\n }",
"@Override\n\tpublic List<ProjectInfo> findAllProject() {\n\t\treturn sqlSession.selectList(\"cn.sep.samp2.project.findAllProject\");\n\t}",
"@GET(\"projects/session/{session_id}\")\n Call<ResponseBody> getAllProjects(@Path(\"session_id\") int id);",
"@GetMapping(\"/api/getByYear\")\n\tpublic int[] getProjectByYear()\n\t{\n\t\treturn this.integrationClient.getProjectByYear();\n\t}",
"public void releasesDisplay(){\r\n \tScahaDatabase db = (ScahaDatabase) ContextManager.getDatabase(\"ScahaDatabase\");\r\n \tList<Release> tempresult = new ArrayList<Release>();\r\n \t\r\n \ttry{\r\n\r\n \t\tif (db.setAutoCommit(false)) {\r\n \t\t\t\r\n\t\t\t\tCallableStatement cs = db.prepareCall(\"CALL scaha.getClubReleaseList(?)\");\r\n\t\t\t\tcs.setInt(\"clubid\", this.clubid);\r\n \t\t\trs = cs.executeQuery();\r\n \t\t\t\r\n \t\t\tif (rs != null){\r\n \t\t\t\t\r\n \t\t\t\twhile (rs.next()) {\r\n \t\t\t\t\tString idrelease = rs.getString(\"idrelease\");\r\n \t\t\t\tString stype = rs.getString(\"type\");\r\n \t\t\t\tString ssubmitdate = rs.getString(\"submitdate\");\r\n \t\t\t\tString sfirstname = rs.getString(\"fname\");\r\n \t\t\t\tString slastname = rs.getString(\"lname\");\r\n \t\t\t\tString svalidthru = rs.getString(\"validthru\");\r\n \t\t\t\tString sreleasingclub = rs.getString(\"releasingclub\");\r\n \t\t\t\tString sacceptingclub = rs.getString(\"acceptingclub\");\r\n \t\t\t\tString sreason = rs.getString(\"reason\");\r\n \t\t\t\tString sstatus = rs.getString(\"status\");\r\n \t\t\t\t\r\n \t\t\t\tRelease orelease = new Release();\r\n \t\t\t\torelease.setIdrelease(idrelease);\r\n \t\t\t\torelease.setType(stype);\r\n \t\t\t\torelease.setSubmitdate(ssubmitdate);\r\n \t\t\t\torelease.setFirstname(sfirstname);\r\n \t\t\t\torelease.setLastname(slastname);\r\n \t\t\t\torelease.setValidthru(svalidthru);\r\n \t\t\t\torelease.setReleasingclub(sreleasingclub);\r\n \t\t\t\torelease.setAcceptingclub(sacceptingclub);\r\n \t\t\t\torelease.setReason(sreason);\r\n \t\t\t\torelease.setStatus(sstatus);\r\n \t\t\t\ttempresult.add(orelease);\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t\tLOGGER.info(\"We have results for release list\");\r\n \t\t\t\t\r\n \t\t\t}\r\n \t\t\t\t\r\n \t\t\tdb.cleanup();\r\n \t\t} else {\r\n\r\n \t\t}\r\n \t\t\r\n \t} catch (SQLException e) {\r\n \t\t// TODO Auto-generated catch block\r\n \t\tLOGGER.info(\"ERROR IN Searching FOR releases\");\r\n \t\te.printStackTrace();\r\n \t\tdb.rollback();\r\n \t} finally {\r\n \t\t//\r\n \t\t// always clean up after yourself..\r\n \t\t//\r\n \t\tdb.free();\r\n \t}\r\n \t\r\n \t\r\n \tsetReleases(tempresult);\r\n \tReleaseDataModel = new ReleaseDataModel(releases);\r\n }",
"@GetMapping(\"/getApiByProjectId/{projectId}\")\r\n\tpublic List<API> getAPI(@PathVariable String projectId) {\r\n\t\treturn persistenceService.getAPI(projectId);\r\n\t}",
"@Transactional(readOnly = true) \n public Page<TaskProject> findAll(Pageable pageable) {\n log.debug(\"Request to get all TaskProjects\");\n Page<TaskProject> result = taskProjectRepository.findAll(pageable);\n return result;\n }",
"@RequestMapping(value = \"/project-hours\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<ProjectHour> getAllProjectHours() {\n log.debug(\"REST request to get all ProjectHours\");\n return projectHourService.findAll();\n }",
"@GetMapping(\"/projectMember/getProjectMember\")\n\tpublic List<ProjectMember> getAll()\n\t{\n\t\treturn this.integrationClient.getAll();\n\t}",
"@GetMapping(\"/retrieve\")\n public ResponseEntity<List<Product>> getProdAll(final HttpSession session) {\n log.info(session.getId() + \" : Retrieving all products\");\n return ResponseEntity.status(HttpStatus.OK).body(prodService.getAll());\n }",
"List<WorkingSchedule> getAll();",
"void getAllProjectList(int id);",
"@GetMapping(\"/getPendingMultiplayerGames\")\n public List<MultiplayerGame> getPendingMultiplayerGames() {\n return getAllMultiplayerGames()\n .stream()\n .filter(g -> g.getStatus().equals(\"pending\"))\n .collect(Collectors.toList());\n }",
"List <ProjectAssignment> findAssignmentsByProject (int projectId);",
"@GetMapping(\"/byName\")\r\n\tpublic List<Project> getProject(Principal principal) {\r\n\t\treturn persistenceService.getProject(AppBuilderUtil.getLoggedInUserId());\r\n\t}",
"@Delegate\n @Path(\"/projects/{project}/global\")\n SnapshotApi getSnapshotApi(@PathParam(\"project\") String projectName);",
"@RequestMapping(value = \"/getDailyReportsInfo\", method = RequestMethod.GET )\r\n\tpublic @ResponseBody Response getDailyReportsInfo(@RequestParam(value=\"projectName\") String project,\r\n\t\t\t@RequestParam(value=\"releaseName\") String release){\r\n\t\t\r\n\t\ttry{\r\n\t\t\r\n\t\tlog.info(\"project :\"+project);\r\n\t\tlog.info(\"Release :\"+release);\r\n\t\t\r\n\t\tlog.info(\"Inside getTrendingInfo method :\");\r\n\t\tSystem.out.println(\"Inside getTrendingInfo method\");\r\n\t\t//log.debug(dashboardService);\r\n\t\treturn dailyReportsService.getDailyReportsInfo(project,release);\r\n } \r\n\t\t\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ In Catch\");\r\n\t\t\tlog.error(\"Exception ocurred : \",e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@GetMapping(\"/alluser/{i}\")\n\t@ResponseBody\n\tpublic \tList<Project> retrieveAllProjectsIdUser(@PathVariable(\"i\")int i){\n\t\tList<Project> p = (List<Project>) projectservice.retrieveAllProjectsIdUser(i);\n\t\treturn p;\n\t}",
"public List<Build> getBuildsForProject(int projectId);",
"public ArrayList<Project> getProjects(){\n return this.projects;\n }",
"public ArrayList getRisksForAProject(RisksCaptureBean captureBean,\r\n\t\t\tSession hibernateSession) throws ParseException {\r\n\r\n\t\tArrayList list = new ArrayList();\r\n\t\tCommonBaseDao commonBaseDao = BaseDaoFactory\r\n\t\t\t\t.getInstance(DaoConstants.BASE_DAO_CLASS);\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MMM-yyyy\");\r\n\t\tCalendar calendar1 = Calendar.getInstance();\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tif (captureBean.getFromDate() != null\r\n\t\t\t\t&& !captureBean.getFromDate().equalsIgnoreCase(\"\")) {\r\n\r\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 0);\r\n\t\t\tcalendar.set(Calendar.MINUTE, 0);\r\n\t\t\tcalendar.set(Calendar.SECOND, 0);\r\n\t\t\tcalendar.setTime(sdf.parse(captureBean.getFromDate()));\r\n\t\t}\r\n\t\tif (captureBean.getToDate() != null\r\n\t\t\t\t&& !captureBean.getToDate().equalsIgnoreCase(\"\")) {\r\n\r\n\t\t\tcalendar1.set(Calendar.HOUR_OF_DAY, 23);\r\n\t\t\tcalendar1.set(Calendar.MINUTE, 59);\r\n\t\t\tcalendar1.set(Calendar.SECOND, 59);\r\n\t\t\tcalendar1.setTime(sdf.parse(captureBean.getToDate()));\r\n\t\t\tcalendar1.add(Calendar.DATE, 1);\r\n\t\t}\r\n\r\n\t\tPagingSorting pagingSorting = captureBean.getPagingSorting();\r\n\t\tif (pagingSorting == null) {\r\n\t\t\tpagingSorting = new PagingSorting();\r\n\t\t\tcaptureBean.setPagingSorting(pagingSorting);\r\n\t\t}\r\n\t\tpagingSorting.setPagingSorting(true, true);\r\n\r\n\t\tpagingSorting.setDefaultifNotPresent(\"projissueid\",\r\n\t\t\t\tPagingSorting.increment, 1);\r\n\r\n\t\tpagingSorting.setMode(\"hibernate\");\r\n\t\tCriteria ce = hibernateSession.createCriteria(TtrnProjectrisks.class);\r\n\t\tce.createAlias(\"ttrnProject\", \"ttrnProject\");\r\n\r\n\t\tif (captureBean.getProjectId() != null\r\n\t\t\t\t&& !captureBean.getProjectId().equalsIgnoreCase(\r\n\t\t\t\t\t\tAppConstants.INI_VALUE)) {\r\n\t\t\tce.add(Restrictions.eq(\"ttrnProject.projectid\", new Long(\r\n\t\t\t\t\tcaptureBean.getProjectId())));\r\n\t\t}\r\n\t\tif (captureBean.getProjectName() != null\r\n\t\t\t\t&& !captureBean.getProjectName().equalsIgnoreCase(\r\n\t\t\t\t\t\tAppConstants.INI_VALUE)) {\r\n\t\t\tce.add(Restrictions.ilike(\"ttrnProject.projectName\", captureBean\r\n\t\t\t\t\t.getProjectName(), MatchMode.ANYWHERE));\r\n\t\t}\r\n\t\tif (captureBean.getToDate() != null\r\n\t\t\t\t&& captureBean.getFromDate() != null\r\n\t\t\t\t&& !(captureBean.getToDate().equalsIgnoreCase(\"\") && captureBean\r\n\t\t\t\t\t\t.getFromDate().equalsIgnoreCase(\"\"))) {\r\n\r\n\t\t\tce.add(Restrictions.between(\"createddate\", new Date(calendar\r\n\t\t\t\t\t.getTime().getTime()), new Date(calendar1.getTime()\r\n\t\t\t\t\t.getTime())));\r\n\r\n\t\t}\r\n\t\tif (ce.list() != null) {\r\n\r\n\t\t\tlist = (ArrayList) ce.list();\r\n\t\t\tpagingSorting.setRecordCount(list.size());\r\n\t\t}\r\n\t\tce.setFirstResult(pagingSorting.getStartRecordId());\r\n\t\tce.setMaxResults(pagingSorting.getPageRecords());\r\n\t\tlist = (ArrayList) ce.list();\r\n\t\treturn list;\r\n\t}",
"@RequestMapping(value = \"list\", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })\n @ResponseStatus(HttpStatus.OK)\n @ResponseBody\n public List<Scoring> listView(@RequestParam String projectId, @RequestParam String sortBy,\n @RequestHeader(value = RANGE) String range, @RequestParam(required = false) Integer limit,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n PagingAndSorting page = new PagingAndSorting(range, sortBy, limit, Scoring.class);\n Page<Scoring> pageResponse = scoreService.findAllByIsActive(page, Long.parseLong(projectId), true);\n response.setHeader(GenericConstants.CONTENT_RANGE_HEADER, page.getPageHeaderValue(pageResponse));\n return pageResponse.getContent();\n }",
"public Object getProjectResources(Integer projectId) {\n\t\treturn null;\n\t}",
"@GetMapping(\"/api/CompletedByYear/{theYear}\")\n\tpublic List<Project> findprojectcompleted(@PathVariable Integer theYear)\n\t{\n\t\treturn this.integrationClient.findprojectcompleted(theYear);\n\t}",
"@Override\n public List<ProjectproductDTO> findAll() {\n log.debug(\"Request to get all Projectproducts\");\n List<ProjectproductDTO> result = projectproductRepository.findAll().stream()\n .map(projectproductMapper::projectproductToProjectproductDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n return result;\n }",
"@GetMapping(value = \"/projectslist\", produces = \"application/json\")\n public ResponseEntity<?> findAllProjectsWithProblemName()\n {\n List<ProblemListGroupedByProject> projectList = projectService.findAllProjectsWithProblemName();\n\n return new ResponseEntity<>(projectList, HttpStatus.OK);\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/projects\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<ProjectList, Project> listProject();",
"List<ProductionPlanDTO> findAll();",
"@RequestMapping(value = \"/hrProjectInfos\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<HrProjectInfo>> getAllHrProjectInfos(Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to get a page of HrProjectInfos\");\n Page<HrProjectInfo> page = hrProjectInfoRepository.findAll(pageable); \n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/hrProjectInfos\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@GetMapping(\"/my_projects\")\n public ResponseEntity<List<ProjectDto>> getMyProjects(){\n\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n String currentUserName = authentication.getName();\n User currentUser = userService.findByEmail(currentUserName).orElseThrow(\n () -> {throw new MyNotFoundException(\"User not found\");}\n );\n\n List<String> projects = Arrays.asList(currentUser.getProjects().split(\"#\"));\n\n List<ProjectDto> projectDtos = new ArrayList<>();\n for(String project : projects){\n if (projectService.findByName(project).isPresent()){\n Project temp = projectService.findByName(project).get();\n projectDtos.add(new ProjectDto(temp.getId(), temp.getName(), new CompanyDto(temp.getCompany()), temp.getStart_date(), temp.getStatus()));\n }\n }\n return ResponseEntity.ok(projectDtos);\n }",
"public List<Project> findAllProject() {\n\t\tProject project;\r\n\t\tList<Project> projectList = new ArrayList<Project>();\r\n\t\tString query = \"SELECT * FROM TA_PROJECTS\";\r\n\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(query);\r\n\t\twhile(srs.next()){\r\n\t\t\tproject = new Project();\r\n\t\t\tproject.setProjectID(srs.getString(1));\r\n\t\t\tproject.setProjectName(srs.getString(2));\r\n\t\t\tproject.setManagerID(srs.getString(3));\r\n\t\t\tprojectList.add(project);\r\n\t\t}\r\n\t\treturn projectList;\r\n\t}",
"public ApiSchedule[] getSchedules() {\n return this.schedules;\n }",
"public List<String> getProjects() {\r\n\t\treturn projects;\r\n\t}",
"public List getAvailableProjects (){\n\t\tList retValue = new ArrayList ();\n\t\tthis.setProcessing (true);\n\t\ttry {\n\t\t\tfor (Iterator it = getPersistenceManager().getExtent(Project.class, true).iterator();it.hasNext ();){\n\t\t\t\tretValue.add (it.next());\n\t\t\t}\n\t\t} finally {\n\t\t\tthis.setProcessing (false);\n\t\t}\n\t\treturn retValue;\n\t}",
"public Project getTasks(String projectId) {\n try {\n\n String selectProject = \"select * from PROJECTS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectProject);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String startdate = rs.getString(\"STARTDATE\");\n String invoicesent = rs.getString(\"INVOICESENT\");\n String hours = rs.getString(\"HOURS\");\n String client = \"\";\n String duedate = rs.getString(\"DUEDATE\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(client, description, projectId,\n duedate, startdate, hours, duedate, duedate,\n invoicesent, invoicesent);\n rs.close();\n ps.close();\n return p;\n } else {\n return null;\n }\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }",
"private void displayAllProjects() {\n for(Project projects: Project.totalProjects){\n projects.displayProject();\n System.out.println(\"Popularity\\t\\t: \" + projects.getPopularityCounter());\n }\n }",
"List<Bug> getAllBugsByProject(int projectId);",
"List<Subscription> findAll();",
"public IProject [] getProjects(){\n\t\treturn projects;\n\t}",
"@GetMapping(value = \"/getProjectDetails/mongodb/{theId}\")\n\tpublic List<ProjectDescStake> getProjectByIdMongo(@PathVariable (value =\"theId\") Long theId)\n\t{\n\t\treturn this.integrationClient.findProjectByIdMongo(theId);\n\t}",
"@GetMapping(\"/findAllSurveys\")\n\tpublic List<Survey> getAllSurveys(){\n\t\treturn repository.findAll(); \n\t}",
"@GetMapping\n public List<Season_Period> findAll(){\n return periodService.findAll();\n }",
"@GetMapping\n public List<ScheduleDTO> getAllSchedules() {\n List<Schedule> scheduleList = scheduleService.getAllSchedules();\n\n List<ScheduleDTO> scheduleDTOList = scheduleList.stream()\n .map(ScheduleController::convertScheduleToScheduleDTO)\n .collect(Collectors.toList());\n return scheduleDTOList;\n }",
"@RequestMapping(value = \"/gradeSystems\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<GradeSystem> getAllGradeSystems() {\n log.debug(\"REST request to get all GradeSystems\");\n return gradeSystemRepository.findAll();\n }",
"public ArrayList<Project> selectProject(String projectId) {\n\n try {\n ArrayList<Project> tasks = new ArrayList<Project>();\n\n String query = \"SELECT * FROM TASKS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(query);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n String hours = rs.getString(\"HOURS\");\n String hoursadded = rs.getString(\"HOURS_ADDED\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(description, hours, hoursadded,\n projectId);\n tasks.add(p);\n }\n rs.close();\n ps.close();\n return tasks;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }",
"@GetMapping(\"/api/OngoingByYear/{theYear}\")\n\tpublic List<Project> findprojectongoing(@PathVariable Integer theYear)\n\t{\n\t\treturn this.integrationClient.findprojectongoing(theYear);\n\t}",
"public List<Project> getAllProject(boolean isDeleted) throws EmployeeManagementException;",
"@GET\n\t@Path(\"/\") \n\t@Produces(MediaType.TEXT_HTML) \n\tpublic String readItems() \n\t { \n\t return itemObj.readProjects(); \n\t }",
"@GetMapping(\"/findAll\")\n public List<LabTest> findAll(){\n return labTestService.getLabTests();\n }",
"public static List<Project> getProjects(String groupId) {\n try {\n String url = BASE_URL + \"groups/\" + groupId + \"/projects\";\n return extractProjects(sendAuthenticated(new HttpGet(url)));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }",
"String getAllPortfolio();",
"public abstract List<ProjectBean> getProjectList();",
"List<Project> selectAll();",
"@RequestMapping(value = \"/events/subproject/{subProjectId}\", method = RequestMethod.GET)\r\n public ModelAndView showEventsSubProject(@PathVariable(\"subProjectId\") String subProjectId) {\r\n int pid = -1;\r\n try {\r\n pid = Integer.parseInt(subProjectId);\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n if (pid >= 0) {\r\n ModelAndView mav = new ModelAndView(\"events\");\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n SubProject sp = hibernateTemplate.get(SubProject.class, pid);\r\n if (!dataAccessService.isSubProjectAvailableToUser(sp, user)) {\r\n return accessdenied();\r\n }\r\n List<Event> events = dataAccessService.getEventsForSubProject(sp, null);\r\n mav.addObject(\"events\", events);\r\n return mav;\r\n }\r\n return handleRequest();\r\n }",
"public List<Reserva> getAllReservas(){\n return repositorioReserva.findAll();\n }",
"public List<org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource> getProjects() throws RegistryException {\n return getProjects(-1, -1, null, null);\n }",
"@GET\n\t@Path(\"allProjectDetailsInPortfolioAndAccount/{portfolioId}/{accountId}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response fetchAllProjectsInPort(@PathParam(\"portfolioId\") Integer portfolioId,@PathParam(\"accountId\") Integer accountId) throws Exception{\n\t\t\n\n\t\tlogger.info(\"Fetching projects for particular portfolio\"+portfolioId+\" and account\"+accountId);\n\n\t\t\n\t\tList<ProjectTO> projectMasterList = new ArrayList<ProjectTO>();\n\t\tObject projectMaster[];\n\t\tProjectTO projectTO = null;\n\t\t\n\n\t\ttry {\n\n\t\t\t\n\t\t\tHashMap<String, Object> queryMap = new HashMap<String, Object>();\n\t\t\tqueryMap.put(\"portfolioId\",portfolioId);\n\t\t\tqueryMap.put(\"accountId\",accountId);\n\t\t\t\n\t\t\tList<Object> projectList = GenericDaoSingleton.getGenericDao()\n\t\t\t\t\t.findByQuery(ConstantQueries.GET_ALLOCATED_PROJECTS_FOR_PORTFOLIO_AND_ACCOUNT, queryMap);\n\n\t\t\n\t\t\t\n\t\t\tif (projectList == null || projectList.size() == 0\n\t\t\t\t\t|| projectList.isEmpty() == true) {\n\t\t\t\tSystem.out.println(\"Projects not found\");\n\t\t\t\tprojectTO = null;\n\t\t\t\tlogger.error(\"Projets not found for particular portfolio and account\");\n\n\t\t\t\treturn Response.status(Response.Status.NOT_FOUND)\n\t\t\t\t\t\t.entity(projectTO).build();\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < projectList.size(); i++) {\n\t\t\t\tprojectTO = new ProjectTO();\n\t\t\t\tprojectMaster = (Object[]) projectList.get(i);\n\t\t\t\tprojectTO.setProject_id(Integer.parseInt(projectMaster[0].toString()));\n\t\t\t\tprojectTO.setProject_name(projectMaster[1].toString());\n\t\t\t\tprojectTO.setProject_status(projectMaster[2].toString());\n\t\t\t\tprojectTO.setProject_creation_date((Date) projectMaster[3]);\n\t\t\t\tprojectTO.setAccount_id(Integer.parseInt(projectMaster[4].toString()));\n\n\t\t\t\tprojectMasterList.add(projectTO);\n\t\t\t}\n\n\t\t\tlogger.error(\"Projects fetched successfully\");\n\n\t\t\treturn Response.status(Response.Status.OK).entity(projectMasterList)\n\t\t\t\t\t.build();\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t\tprojectTO = null;\n\t\t\tlogger.error(\"Error while getting Projects in Project Config service\");\n\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Error while getting Projects in Project Config service\");\n\t\t\treturn Response.status(Response.Status.INTERNAL_SERVER_ERROR)\n\t\t\t\t\t.entity(projectTO).build();\n\t\t}\n\n\t}",
"Collection<Service> getAllPublishedService();",
"@GET\n\t@Path(\"/{name}/meetings\")\n\t@Produces(\"application/xml\")\n\tpublic StreamingOutput getAllCourses(@PathParam(\"name\") String projectName) throws Exception {\n\t\tfinal Project proj = new Project();\n\t\tArrayList<String> years = new ArrayList<String>();\n\n//\t\tmodernWebApps.setDepartment(\"CS\");\n//\t\tmodernWebApps.setName(\"Modern Web Applications\");\n\t\tyears = eavesdropService.getYears(projectName);\n\t\tif (years != null) {\n\t\t\t//proj.setName(projectName);\n\t\t\tproj.setLink(years);\n\t\t}\n\t\telse {\n\t\t\tfinal Error error = new Error();\n\t\t\terror.setMessage(projectName);\n\t\t return new StreamingOutput() {\n\t\t public void write(OutputStream outputStream) throws IOException, WebApplicationException {\n\t\t outputCourses(outputStream, error);\n\t\t }\n\t\t };\n\t\t}\n//\t\tCourse operatingSystems = new Course();\n//\t\toperatingSystems.setDepartment(\"CS\");\n//\t\toperatingSystems.setName(\"Operating Systems\");\n\t\t\n\t\tfinal Courses courses = new Courses();\n//\t\tList<Course> courseList = new ArrayList<Course>();\n//\t\tcourseList.add(modernWebApps);\n//\t\tcourseList.add(operatingSystems);\n//\t\tcourses.setCourses(courseList);\t\t\n\t\t\t \n\t return new StreamingOutput() {\n\t public void write(OutputStream outputStream) throws IOException, WebApplicationException {\n\t outputCourses(outputStream, proj);\n\t }\n\t };\t \n\t}",
"@RequestMapping(value = \"/list\", method = RequestMethod.GET)\n\tpublic ResponseEntity<List<SeasonVO>> getSeasons() {\n\t\treturn new ResponseEntity<List<SeasonVO>>(seasonDAO.list(), HttpStatus.OK);\n\t\t//return seasonDAO.list();\n\t}",
"@GetMapping(\"/sys-appointments\")\n @Timed\n public List<SysAppointment> getAllSysAppointments() {\n log.debug(\"REST request to get all SysAppointments\");\n return sysAppointmentService.findAll();\n }",
"@GET\n @Path(\"/admin/list\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getUserAdminProjects() {\n HttpSession session = request.getSession();\n\n if (session.getAttribute(\"projectAdmin\") == null) {\n throw new ForbiddenRequestException(\"You must be the project's admin.\");\n }\n String username = session.getAttribute(\"user\").toString();\n\n projectMinter project= new projectMinter();\n String response = project.listUserAdminProjects(username);\n project.close();\n\n return Response.ok(response).build();\n }",
"@GET\n public List<Session> getAllSessions() {\n log.debug(\"REST request to get all Sessions\");\n List<Session> sessions = sessionRepository.findAll();\n return sessions;\n }",
"@Override\n\tpublic List<String> viewAllProjects(String userId) {\n\t\treturn fileDao.getUserAllProjectsName(userId);\n\t}",
"@GetMapping(\"/subscriptions\")\n @Timed\n public ResponseEntity<List<Subscription>> getAllSubscriptions(@ApiParam Pageable pageable) {\n log.debug(\"REST request to get a page of Subscriptions\");\n Page<Subscription> page = subscriptionService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/subscriptions\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"public List<ReservaEntity> getReservas() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todas las reservas\");\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\n List<ReservaEntity> reservas = persistence.findAllReservas();\n LOGGER.log(Level.INFO, \"Termina proceso de consultar todas las reservas\");\n return reservas;\n }",
"Collection<String> getVersions();",
"public void querySubProjects() {\r\n\t\t// Create a task\r\n\t\tProject master = new Project();\r\n\t\tmaster.setName(\"INFRASTRUCTURE\");\r\n\t\tmaster.setDisplayName(\"Infrastructure\");\r\n\t\tmaster.setDescription(\"Project to setup the new infrastructure\");\r\n\t\tmaster = (Project) aggregateService.create(master, new Settings());\t\r\n\r\n\t\t// Create 2 dependents\r\n\t\tProject A = new Project();\r\n\t\tA.setName(\"SETUP_NETWORK\");\r\n\t\tA.setDisplayName(\"Setup network\");\r\n\t\tA.setDescription(\"Project to lay the network cables and connect to routers\");\r\n\t\tA = (Project) aggregateService.create(A, new Settings());\r\n\r\n\t\tProject B = new Project();\r\n\t\tB.setName(\"SETUP_TELEPHONE\");\r\n\t\tB.setDisplayName(\"Setup telephone\");\r\n\t\tB.setDescription(\"Setup the telephone at each employee desk\");\r\n\t\tB = (Project) aggregateService.create(B, new Settings());\r\n\r\n\t\tMap<String, Project> subProjects = new HashMap<String, Project>();\r\n\t\tsubProjects.put(A.getName(), A);\r\n\t\tsubProjects.put(B.getName(), B);\r\n\t\tmaster.setSubProjects(subProjects);\r\n\t\tmaster = (Project) aggregateService.read(master, getSettings());\t\t\r\n\r\n\t\t// query the task object\r\n\t\tSettings settings = new Settings();\r\n\t\tsettings.setView(aggregateService.getView(\"SUBPROJECTS\"));\t\t\r\n\t\tList<?> toList = aggregateService.query(master, settings);\r\n\r\n\t\tassert(toList.size() == 1);\t\t\r\n\r\n\t\tObject obj = toList.get(0);\r\n\t\tassert(Project.class.isAssignableFrom(obj.getClass()));\r\n\r\n\t\tProject root = (Project) obj;\r\n\t\tassert(root.getSubProjects() != null && root.getSubProjects().size() == 2);\r\n\t\tassert(root.getSubProjects().get(\"SETUP_NETWORK\").getName().equals(\"SETUP_NETWORK\"));\r\n\t\tassert(root.getSubProjects().get(\"SETUP_TELEPHONE\").getName().equals(\"SETUP_TELEPHONE\"));\t\t\r\n\t}",
"public void setSprint(boolean s){\n this.sprint = s;\n }",
"@GetMapping(\"/procesadors\")\n @Timed\n public List<Procesador> getAllProcesadors() {\n log.debug(\"REST request to get all Procesadors\");\n List<Procesador> procesadors = procesadorRepository.findAll();\n return procesadors;\n }",
"@RequestMapping(value = \"/pgmsAppRetirmntPens\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<List<PgmsAppRetirmntPen>> getAllPgmsAppRetirmntPens(Pageable pageable)\n throws URISyntaxException {\n Page<PgmsAppRetirmntPen> page = pgmsAppRetirmntPenRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/pgmsAppRetirmntPens\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@Override\r\n\tpublic List<TreeNodeTo> prepareSprintTreeNodes(String projectId) {\n\t\tTreeNodeTo rootNode=prepareRootNode();\r\n\t\tList sprintNodes=new ArrayList<TreeNodeTo>();\r\n\t\tsprintNodes.add(rootNode);\r\n\t\tList<SprintTo> sprints=sprintDao.getSprintForProject(projectId);\r\n\t\tif(sprints!=null&&sprints.size()>0){\r\n\t\t\tfor(SprintTo sprint : sprints){\r\n\t\t\t\tTreeNodeTo node=new TreeNodeTo();\r\n\t\t\t\tnode.setId(sprint.getId());\r\n\t\t\t\tnode.setName(\"<Strong>\"+sprint.getName()+\"</Strong>\"+\" : \"+dateFormat.format(sprint.getStartTime())+\"--\"+dateFormat.format(sprint.getEndTime()));\r\n\t\t\t\tif(sprint.getParentSprint()==null){\r\n\t\t\t\t\tnode.setpId(\"0\");\r\n\t\t\t\t\tnode.setOpen(true);\r\n\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tnode.setpId(sprint.getParentSprint().getId());\r\n\t\t\t\t\tnode.setOpen(false);\r\n\t\t\t\t}\r\n\t\t\t\tsprintNodes.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sprintNodes;\r\n\t}"
] | [
"0.68072355",
"0.614347",
"0.605568",
"0.5971693",
"0.58779305",
"0.57702863",
"0.5766686",
"0.5537742",
"0.5536963",
"0.55294067",
"0.5510497",
"0.55070114",
"0.54894865",
"0.5453121",
"0.5433108",
"0.53467333",
"0.5283222",
"0.5279753",
"0.521631",
"0.51717365",
"0.5142187",
"0.5098889",
"0.50898784",
"0.5087235",
"0.50377107",
"0.50298357",
"0.5019721",
"0.50072336",
"0.50029993",
"0.5001604",
"0.49996552",
"0.49597102",
"0.4946463",
"0.49333826",
"0.49294937",
"0.49260345",
"0.48681796",
"0.48500055",
"0.48464158",
"0.48447368",
"0.48413774",
"0.48371008",
"0.48330706",
"0.48215187",
"0.48128647",
"0.48028952",
"0.47854024",
"0.47433805",
"0.473047",
"0.4723926",
"0.4713212",
"0.4706631",
"0.47038057",
"0.46939474",
"0.46902117",
"0.4689413",
"0.46754828",
"0.46632603",
"0.46573204",
"0.46561605",
"0.46489257",
"0.46330976",
"0.4630447",
"0.46149614",
"0.45598498",
"0.45593905",
"0.45295846",
"0.45255035",
"0.45162886",
"0.45152253",
"0.45098624",
"0.4507669",
"0.45025182",
"0.44952935",
"0.4492494",
"0.44898787",
"0.44838598",
"0.44789252",
"0.4473668",
"0.4471902",
"0.44655046",
"0.4464783",
"0.4463151",
"0.44630253",
"0.446245",
"0.4456382",
"0.44523898",
"0.44494557",
"0.44465983",
"0.44411474",
"0.44209123",
"0.4420591",
"0.4414007",
"0.4409372",
"0.44004554",
"0.44003877",
"0.43987605",
"0.43962723",
"0.43923372",
"0.43897766"
] | 0.8735441 | 0 |
GET /projectreleasesprints/:id : get the "id" projectreleasesprint. | @RequestMapping(value = "/projectreleasesprints/{id}",
method = RequestMethod.GET,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public ResponseEntity<Projectreleasesprint> getProjectreleasesprint(@PathVariable Long id) {
log.debug("REST request to get Projectreleasesprint : {}", id);
Projectreleasesprint projectreleasesprint = projectreleasesprintRepository.findOne(id);
return Optional.ofNullable(projectreleasesprint)
.map(result -> new ResponseEntity<>(
result,
HttpStatus.OK))
.orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/projectreleasesprints\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Projectreleasesprint> getAllProjectreleasesprints() {\n log.debug(\"REST request to get all Projectreleasesprints\");\n List<Projectreleasesprint> projectreleasesprints = projectreleasesprintRepository.findAll();\n return projectreleasesprints;\n }",
"@RequestMapping(value = \"/projectreleasesprints/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteProjectreleasesprint(@PathVariable Long id) {\n log.debug(\"REST request to delete Projectreleasesprint : {}\", id);\n projectreleasesprintRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"projectreleasesprint\", id.toString())).build();\n }",
"@RequestMapping(value = \"/projectreleasesprints\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> createProjectreleasesprint(@Valid @RequestBody Projectreleasesprint projectreleasesprint) throws URISyntaxException {\n log.debug(\"REST request to save Projectreleasesprint : {}\", projectreleasesprint);\n if (projectreleasesprint.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"projectreleasesprint\", \"idexists\", \"A new projectreleasesprint cannot already have an ID\")).body(null);\n }\n Projectreleasesprint result = projectreleasesprintRepository.save(projectreleasesprint);\n return ResponseEntity.created(new URI(\"/api/projectreleasesprints/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"projectreleasesprint\", result.getId().toString()))\n .body(result);\n }",
"@GetMapping(path = \"/detail/\")\n\tpublic String viewProjectDetail() {\n\t\treturn \"sprint-detail\";\n\t}",
"@Override\r\n\tpublic SprintTo getCurrentSprint(String projectId) {\n\t\treturn sprintDao.getCurrentSprint(projectId,new Date());\r\n\t}",
"public Sprint getSprintDetails(Integer sprintNo) {\n\t\tOptional<Sprint> sprint = Optional.ofNullable(sprintRepository.findOne(sprintNo));\t\t\n\t\tif(sprint.isPresent()) {\n\t\t\treturn sprint.get();\n\t\t}else{\n\t\t\tthrow new NotFoundException(Constant.NO_SPRINT);\n\t\t}\n\t}",
"public List<Sprint> getAllSprintDetails() {\n\t\tList<Sprint> sprints = (List<Sprint>) sprintRepository.findAll();\n\t\tif(sprints.isEmpty()){\n\t\t\tthrow new NotFoundException(Constant.NO_SPRINT);\n\t\t}else{\n\t\t\treturn sprints;\n\t\t}\n\t}",
"Project getById(Long id);",
"@Override\r\n\tpublic List<SprintTo> getSprintsForProjectByStatus(String projectId,\r\n\t\t\tint status) {\n\t\treturn null;\r\n\t}",
"public java.lang.Integer getReleaseId() {\n return releaseId;\n }",
"Project getByPrjNumber(Integer num);",
"public void setReleaseId(int releaseId) { this.releaseId = releaseId; }",
"@GET(\"projects/session/{session_id}\")\n Call<ResponseBody> getAllProjects(@Path(\"session_id\") int id);",
"public Project findById(Integer id) {\n Session session = SessionManager.getSessionFactory().openSession();\n //The find method returns the object with the provided id\n Project project = session.find(Project.class, id);\n session.close();\n return project;\n }",
"@GetMapping(value = \"/getProjectDetails/mongodb/{theId}\")\n\tpublic List<ProjectDescStake> getProjectByIdMongo(@PathVariable (value =\"theId\") Long theId)\n\t{\n\t\treturn this.integrationClient.findProjectByIdMongo(theId);\n\t}",
"@RequestMapping(value = \"/shopressource/{id}\", method = RequestMethod.GET)\n ShopRessource getShopRessource(@PathVariable Integer id);",
"public ReleaseRecord getRelease() { return (ReleaseRecord)Database.getReleaseIndex().getRecord(releaseId); }",
"@RequestMapping(value = \"/hrProjectInfos/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<HrProjectInfo> getHrProjectInfo(@PathVariable Long id) {\n log.debug(\"REST request to get HrProjectInfo : {}\", id);\n HrProjectInfo hrProjectInfo = hrProjectInfoRepository.findOne(id);\n return Optional.ofNullable(hrProjectInfo)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"public void Found_project_from_DATABASE(int id){\n print_pro();\n// return project;\n }",
"@RequestMapping(value = \"/project/{projectId}/version/{versionId}\", method = RequestMethod.GET)\n @ApiOperation(value = \"查询项目版本信息\", notes = \"查询某个项目下某个版本的信息\",\n httpMethod = \"GET\", response = ApiResult.class)\n @ApiImplicitParams({@ApiImplicitParam(paramType = \"path\", name = \"projectId\",value = \"项目id\",required = true,dataType = \"Integer\"),\n @ApiImplicitParam(paramType = \"path\", name = \"versionId\",value = \"版本id\",required = true,dataType = \"Integer\")})\n @AuthorityCheck\n public void queryProjectSingleVersion(@PathVariable Integer projectId,\n @PathVariable Integer versionId) throws ApiBusinessException{\n try {\n EtVersion version = serviceManager.getVersionService().queryVersionById(versionId);\n if(version != null){\n Version version1 = new Version(version);\n this.renderResult(\"查询项目版本信息成功\", version1);\n }else{\n throw new ApiBusinessException(ExceptionEnum.PROJECT_VERSION_QUERY_NOTEXIST);\n }\n } catch (BusinessException e) {\n e.printStackTrace();\n throw new ApiBusinessException(e.getEe());\n }\n }",
"Project findProjectById(String projectId);",
"@GetMapping(\"/{id}\")\n public ResponseEntity<Pricing> getPricing(@PathVariable(\"id\") long id) {\n\tOptional<Pricing> returnedPricing = pricingService.get(id);\n\tPricing pricing = returnedPricing.orElseThrow(() -> new HTTP404Exception(\"Resource Not Found\"));\n\n\tPricingEvent retrievedCreatedEvent = new PricingEvent(this, \"PricingRetrievedEvent\", pricing);\n\teventPublisher.publishEvent(retrievedCreatedEvent);\n\treturn ResponseEntity.ok().body(pricing);\n }",
"public Proyecto proyectoPorId(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tProyecto proyecto =plantilla.getForObject(\"http://localhost:5000/proyectos/\" + id, Proyecto.class);\n\t\t\treturn proyecto;\n\t\t}",
"@Transactional(readOnly = true) \n public TaskProject findOne(Long id) {\n log.debug(\"Request to get TaskProject : {}\", id);\n TaskProject taskProject = taskProjectRepository.findOne(id);\n return taskProject;\n }",
"public Integer getProjectID() { return projectID; }",
"TrackerProjects getTrackerProjects(final Integer id);",
"@GET\r\n @Produces(MediaType.TEXT_PLAIN)\r\n\t@Path(\"{levelID}\")\r\n public String getSolution(@PathParam(\"levelID\") String levelID) {\r\n\t\treturn dbHandler.getSolution(levelID);\r\n }",
"public String getRelease()\n {\n return release;\n }",
"public Project getTasks(String projectId) {\n try {\n\n String selectProject = \"select * from PROJECTS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectProject);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String startdate = rs.getString(\"STARTDATE\");\n String invoicesent = rs.getString(\"INVOICESENT\");\n String hours = rs.getString(\"HOURS\");\n String client = \"\";\n String duedate = rs.getString(\"DUEDATE\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(client, description, projectId,\n duedate, startdate, hours, duedate, duedate,\n invoicesent, invoicesent);\n rs.close();\n ps.close();\n return p;\n } else {\n return null;\n }\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }",
"@RequestMapping(value = \"/getDailyReportsInfo\", method = RequestMethod.GET )\r\n\tpublic @ResponseBody Response getDailyReportsInfo(@RequestParam(value=\"projectName\") String project,\r\n\t\t\t@RequestParam(value=\"releaseName\") String release){\r\n\t\t\r\n\t\ttry{\r\n\t\t\r\n\t\tlog.info(\"project :\"+project);\r\n\t\tlog.info(\"Release :\"+release);\r\n\t\t\r\n\t\tlog.info(\"Inside getTrendingInfo method :\");\r\n\t\tSystem.out.println(\"Inside getTrendingInfo method\");\r\n\t\t//log.debug(dashboardService);\r\n\t\treturn dailyReportsService.getDailyReportsInfo(project,release);\r\n } \r\n\t\t\r\n\t\tcatch (Exception e) {\r\n\t\t\tSystem.out.println(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ In Catch\");\r\n\t\t\tlog.error(\"Exception ocurred : \",e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"Project findProjectById(Long projectId);",
"public void setReleaseId(java.lang.Integer releaseId) {\n this.releaseId = releaseId;\n }",
"@GetMapping(\"projekat/{id}\")\n\tprivate Projekat getProjekat(@PathVariable(\"id\") Integer id) {\n\t\treturn projekatRepository.getOne(id);\n\t}",
"@GET(\"projects/{project_id}/students\")\n Call<ResponseBody> getStudentsInProject(@Path(\"project_id\") int id);",
"@Override\n\tpublic Project getProjectById(int id) {\n\t\treturn projectDao.getProjectById(id);\n\t}",
"public Build getBuildById(int buildId);",
"ProjectsDTO findOne(String id);",
"String get(String id);",
"public Project getProject(Long projectId);",
"public Project getProjectDetails(String id) {\n\t\tProject pro;\n\t\tObject name = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet res = null;\n\t\tpro = null;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tcon = DBUtility.getConnection();\n\t\t\t\tString sql = \"select * from project_master where project_id='\"\n\t\t\t\t\t\t+ id + \"'\";\n\t\t\t\tst = con.prepareStatement(sql);\n\t\t\t\tres = st.executeQuery(sql);\n\t\t\t\tif (res.next()) {\n\t\t\t\t\tpro = new Project();\n\t\t\t\t\tpro.setPro_name(res.getString(\"project_name\"));\n\t\t\t\t\tpro.setSite_addr(res.getString(\"project_location\"));\n\t\t\t\t\tpro.setC_name(res.getString(\"client_name\"));\n\t\t\t\t\tpro.setDate(res.getString(\"project_date\"));\n\t\t\t\t\tpro.setSite_details(res.getString(\"project_details\"));\n\t\t\t\t\tpro.setSite_no_floors(res.getString(\"project_no_floor\"));\n\t\t\t\t\tpro.setSite_no_units(res.getString(\"project_no_unit\"));\n\t\t\t\t\tpro.setGar_name(res.getString(\"gar_name\"));\n\t\t\t\t\tpro.setGar_rel(res.getString(\"gar_rel\"));\n\t\t\t\t\tpro.setMunicipality(res.getString(\"municipality\"));\n\t\t\t\t\tpro.setWord_no(res.getString(\"word_no\"));\n\t\t\t\t\tpro.setPro_typ(res.getString(\"project_type\"));\n\t\t\t\t\tpro.setContact1(res.getString(\"Contact1\"));\n\t\t\t\t\tpro.setContact2(res.getString(\"Contact2\"));\n\t\t\t\t\tpro.setEmail1(res.getString(\"Email1\"));\n\t\t\t\t\tpro.setEmail2(res.getString(\"Email2\"));\n\t\t\t\t}\n\t\t\t} catch (SQLException s) {\n\t\t\t\ts.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t\treturn null;\n\t\t\t} catch (NamingException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t}\n\t\t} finally {\n\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t}\n\t\treturn pro;\n\t}",
"@GetMapping(value=\"/listProduits/{id}\")\n public Produit produitById(@PathVariable(name = \"id\") Long id){\n return produitRepository.findById(id).get();\n }",
"@Override\n public ProjectproductDTO findOne(String id) {\n log.debug(\"Request to get Projectproduct : {}\", id);\n Projectproduct projectproduct = projectproductRepository.findOne(UUID.fromString(id));\n ProjectproductDTO projectproductDTO = projectproductMapper.projectproductToProjectproductDTO(projectproduct);\n return projectproductDTO;\n }",
"public JiraProjectRetrievalResult getProject(String token, String projectKey, String version) throws\r\n JiraManagerException {\r\n Util.logEnter(log, \"getProject\", token, projectKey, version);\r\n Util.checkString(log, \"token\", token);\r\n Util.checkString(log, \"projectKey\", projectKey);\r\n Util.checkString(log, \"version\", version);\r\n\r\n try {\r\n JiraProjectRetrievalResult result = getJiraManagementServicePort().getProject(token, projectKey, version);\r\n Util.logExit(log, \"getProject\", result);\r\n return result;\r\n } catch (JiraServiceException e) {\r\n throw processError(e);\r\n }\r\n }",
"@GET(\"projects/{project_id}/students\")\n Call<ResponseBody> getAdvisorsInProject(@Path(\"project_id\") int id);",
"@GetMapping(\"/revisions/{id}\")\n @Timed\n @Secured({RoleAuthority.SYS_ADMIN_AUTHORITY})\n public ResponseEntity<RevisionInfoDTO> getRevision(@PathVariable(\"id\") Integer id) {\n log.debug(\"REST request to get single revision: {}\", id.toString());\n return ResponseEntity.ok(revisionService.getRevision(id));\n }",
"public Porto getPorto(int id){\n Porto porto = null;\n Connection conn = null;\n try{\n conn = config.conectar();\n if (conn == null){\n return null;\n }\n \n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM Porto WHERE Id_Porto = ?\");\n ps.setInt(1, id); \n ResultSet rs = ps.executeQuery();\n \n if(rs.next()){\n porto = montaPorto(rs);\n }\n conn.close();\n \n } catch (SQLException e){\n System.out.println(e.getMessage());\n }\n return porto;\n }",
"public int getProjectID() {\n return projectID;\n }",
"@GetMapping(\"/procesadors/{id}\")\n @Timed\n public ResponseEntity<Procesador> getProcesador(@PathVariable Long id) {\n log.debug(\"REST request to get Procesador : {}\", id);\n Procesador procesador = procesadorRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(procesador));\n }",
"TrackerProjects loadTrackerProjects(final Integer id);",
"@GetMapping(\"/project\")\n public Object doGet(){\n return service.getAllProjects();\n }",
"@GetMapping(value = \"/getProjectDetails/{sqlId}\")\n\tpublic List<Project> getProjectByIdSQL(@PathVariable Long sqlId)\n\t{\n\t\treturn this.integrationClient.findProjectByIdSQL(sqlId);\n\t}",
"@RequestMapping(value = \"/{id}\", method=RequestMethod.GET)\n public ResponseEntity<?> findById(@PathVariable final Integer id) {\n Team team = this.teamService.findById(id);\n return ResponseEntity.ok().body(team);\n }",
"public String getProjId() {\n return projId;\n }",
"public GenericReportResponse getMininmalSprintReport(BasicReportRequestParams params, JiraRestClient restClient,\n JiraClient jiraClient) {\n logger.debug(\"getMininmalSprintReport\");\n String sprint = params.getSprintName();\n String project = params.getSubProjectName();\n Integer maxResults = 1000;\n Integer startAt = 0;\n int rvId = 0;\n int sprintId = 0;\n if (project == null || sprint == null) {\n logger.error(\"Error: Missing required paramaters\");\n throw new DataException(HttpStatus.BAD_REQUEST.toString(), \"Missing required paramaters\");\n }\n List<SprintReport> sprintReportList = new ArrayList<>();\n SprintReport sprintReport;\n Iterable<Issue> retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", 1000, 0, null).claim()\n .getIssues();\n Pattern pattern = Pattern.compile(\"\\\\[\\\".*\\\\[id=(.*),rapidViewId=(.*),.*,name=(.*),startDate=(.*),.*\\\\]\");\n Matcher matcher = pattern\n .matcher(retrievedIssue.iterator().next().getFieldByName(\"Sprint\").getValue().toString());\n if (matcher.find()) {\n sprintId = Integer.parseInt(matcher.group(1));\n rvId = Integer.parseInt(matcher.group(2));\n }\n while (retrievedIssue.iterator().hasNext()) {\n for (Issue issueValue : retrievedIssue) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n startAt += 1000;\n maxResults += 1000;\n retrievedIssue = restClient.getSearchClient()\n .searchJql(\" sprint = '\" + sprint + \"' AND project = '\" + project + \"'\", maxResults, startAt, null)\n .claim().getIssues();\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReport.setIssueKey(\"Removed Issues\");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n try {\n RemovedIssues removedIssues = removedIssuesService.get(jiraClient.getRestClient(), rvId, sprintId);\n for (SprintIssue issueValue : removedIssues.getPuntedIssues()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue.getKey());\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n for (int i = 0; i < 2; i++) {\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n }\n sprintReport = new SprintReport();\n sprintReport.setIssueKey(\"Issues Added during Sprint\");\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n sprintReport = new SprintReport();\n sprintReport.setAssignee(\" \");\n sprintReport.setEstimatedHours(\" \");\n sprintReport.setIssueKey(\" \");\n sprintReport.setIssueSummary(\" \");\n sprintReport.setIssueType(\" \");\n sprintReport.setLoggedHours(\" \");\n sprintReport.setStatus(\" \");\n sprintReportList.add(sprintReport);\n for (String issueValue : removedIssues.getIssuesAdded()) {\n Promise<Issue> issue = restClient.getIssueClient().getIssue(issueValue);\n sprintReport = new SprintReport();\n try {\n\n sprintReport.setIssueKey(issue.get().getKey());\n sprintReport.setIssueType(issue.get().getIssueType().getName());\n sprintReport.setStatus(issue.get().getStatus().getName());\n sprintReport.setIssueSummary(issue.get().getSummary());\n if (issue.get().getAssignee() != null) {\n sprintReport.setAssignee(issue.get().getAssignee().getDisplayName());\n } else {\n sprintReport.setAssignee(\"unassigned\");\n }\n if (issue.get().getTimeTracking() != null) {\n if (issue.get().getTimeTracking().getOriginalEstimateMinutes() != null) {\n sprintReport.setEstimatedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getOriginalEstimateMinutes() / 60D));\n } else {\n sprintReport.setEstimatedHours(\"0\");\n }\n if (issue.get().getTimeTracking().getTimeSpentMinutes() != null) {\n sprintReport.setLoggedHours(new DecimalFormat(\"##.##\")\n .format(issue.get().getTimeTracking().getTimeSpentMinutes() / 60D));\n } else {\n sprintReport.setLoggedHours(\"0\");\n }\n }\n sprintReportList.add(sprintReport);\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n }\n } catch (JiraException e) {\n logger.error(\"Error:\" + e.getMessage());\n throw new DataException(HttpStatus.INTERNAL_SERVER_ERROR.toString(), e.getMessage());\n }\n String filename = project + \"_\" + sprint + \"_minimal_report.csv\";\n filename = filename.replace(\" \", \"_\");\n ConvertToCSV exportToCSV = new ConvertToCSV();\n exportToCSV.exportToCSV(env.getProperty(\"csv.filename\") + filename, sprintReportList);\n GenericReportResponse response = new GenericReportResponse();\n response.setDownloadLink(env.getProperty(\"csv.aliaspath\") + filename);\n response.setReportAsJson(JSONUtils.toJson(sprintReportList));\n return response;\n }",
"public SortedSet<ReleaseJira> retriveReleases() throws IOException, ParseException{\n\t\t\n\t\tString url = basicUrl + \"project/\" + this.projectName + \"/version\";\n\t\tTreeSet<ReleaseJira> releases = new TreeSet<>((o1,o2) -> o1.getReleaseDate().compareTo(o2.getReleaseDate()));\n\t\t\n\t\tJSONObject json = JSONTools.readJsonFromUrl(url);\n JSONArray versions = json.getJSONArray(\"values\");\n \n for (Integer i = 0; i < versions.length(); i++ ) {\n JSONObject version = versions.getJSONObject(i);\n \t\n if (version.has(\"releaseDate\") && version.has(\"name\") && version.has(\"id\")) {\n \treleases.add(new ReleaseJira(version.getInt(\"id\"), version.getString(\"name\"), new SimpleDateFormat(\"yyyy-MM-dd\").parse(version.getString(\"releaseDate\"))));\t\n }\n }\n return releases;\n\t}",
"@RequestMapping(value = \"/project-hours/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<ProjectHour> getProjectHour(@PathVariable Long id) {\n log.debug(\"REST request to get ProjectHour : {}\", id);\n ProjectHour projectHour = projectHourService.findOne(id);\n return Optional.ofNullable(projectHour)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@GetMapping(value=\"/gps/{id}\")\n public GPSInfo GPSInfoByPk(@PathVariable Long id) {\n return repository.findById(id)\n .orElseThrow(() -> new GPSInfoNotFoundException(id));\n }",
"@RequestMapping(value = \"/gradeSystems/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<GradeSystem> getGradeSystem(@PathVariable Long id) {\n log.debug(\"REST request to get GradeSystem : {}\", id);\n GradeSystem gradeSystem = gradeSystemRepository.findOne(id);\n return Optional.ofNullable(gradeSystem)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"public static Project getProject() {\n if (ProjectList.size() == 0) {\n System.out.print(\"No Projects were found.\");\n return null;\n }\n\n System.out.print(\"\\nPlease enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n for (Project proj : ProjectList) {\n if (proj.projNum == projNum) {\n return proj;\n }\n }\n\n System.out.print(\"\\nProject was not found. Please try again.\");\n return getProject();\n }",
"@GetMapping(\"/band-pruebas/{id}\")\n @Timed\n public ResponseEntity<BandPrueba> getBandPrueba(@PathVariable Long id) {\n log.debug(\"REST request to get BandPrueba : {}\", id);\n BandPrueba bandPrueba = bandPruebaService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(bandPrueba));\n }",
"@GetMapping(\"/{id}\")\n public Optional<AsociadosProyecto> getAsociadosProyecto(@PathVariable(\"id\") int id){\n return asociadosProyectoService.getAsociadosProyecto(id);\n }",
"public Project getProjectById(String id) {\n\t\tSQLiteQueryBuilder q = new SQLiteQueryBuilder();\n\t\tq.setTables(Constants.TABLE_PROJECTS);\n\n\t\tCursor cursor = q.query(database, null, Constants.COLUMN_ID + \" = ?\", new String[] { id }, null, null, null);\n\t\tcursor.moveToFirst();\n\n\t\tif (cursor.getCount() > 0)\n\t\t\treturn new Project(cursor);\n\t\telse\n\t\t\treturn null;\n\t}",
"@GetMapping(\"/subscriptions/{id}\")\n @Timed\n public ResponseEntity<Subscription> getSubscription(@PathVariable String id) {\n log.debug(\"REST request to get Subscription : {}\", id);\n Subscription subscription = subscriptionService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(subscription));\n }",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n @ResponseBody\n public Deployment getDeployment(@PathVariable(\"id\") String id) {\n return processService.getDeployment(id);\n }",
"Optional<ProductionPlanDTO> findOne(Long id);",
"public Projects findByProjectID(int proj_id){\n\t\tString sql = \"select * from projects where proj_id = \"+proj_id;\n\t\treturn getJdbcTemplate().queryForObject(sql, new BeanPropertyRowMapper<Projects>(Projects.class));\n\t}",
"@GetMapping(\"/byProjectName/{projectName}\")\r\n\tpublic Project getProjectDetails(@PathVariable String projectName) {\r\n\t\treturn persistenceService.getProjectDetails(projectName);\r\n\t}",
"@RequestMapping(value = \"/events/subproject/{subProjectId}\", method = RequestMethod.GET)\r\n public ModelAndView showEventsSubProject(@PathVariable(\"subProjectId\") String subProjectId) {\r\n int pid = -1;\r\n try {\r\n pid = Integer.parseInt(subProjectId);\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n if (pid >= 0) {\r\n ModelAndView mav = new ModelAndView(\"events\");\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n SubProject sp = hibernateTemplate.get(SubProject.class, pid);\r\n if (!dataAccessService.isSubProjectAvailableToUser(sp, user)) {\r\n return accessdenied();\r\n }\r\n List<Event> events = dataAccessService.getEventsForSubProject(sp, null);\r\n mav.addObject(\"events\", events);\r\n return mav;\r\n }\r\n return handleRequest();\r\n }",
"@GetMapping(\"/project/{projectId}\")\n public Object doGet(@RequestParam(value = \"full\", defaultValue = \"false\") boolean full,\n @PathVariable(\"projectId\") Long projectId) throws InvalidIdentifierException {\n if(full)\n return service.fullInfo(projectId);\n else\n return service.getProjectById(projectId);\n }",
"public Project findByPrimaryKey(int id) throws ProjectDaoException {\n\t\tProject ret[] = findByDynamicSelect(SQL_SELECT + \" WHERE ID = ?\", new Object[] { new Integer(id) });\n\t\treturn ret.length == 0 ? null : ret[0];\n\t}",
"void getAllProjectList(int id);",
"public ProjectCart getSingleProjectCart(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from ProjectCart as projectCart where projectCart.projectCartId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (ProjectCart) results.get(0);\n }\n\n }",
"private String extractSprintName(Issue issue) {\n\n String sprintName = \"\";\n if (issue.getFieldByName(\"Sprint\").getValue() != null) {\n\n JSONArray sprintsData = (JSONArray) issue.getFieldByName(\"Sprint\").getValue();\n ArrayList<String> sprints = new ArrayList<String>();\n\n if (sprintsData != null) {\n for (int i = 0; i < sprintsData.length(); i++) {\n try {\n sprints.add(sprintsData.getString(i));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n\n for (String data : sprints) {\n String[] subStrings = data.split(\",\");\n for (String substring : subStrings) {\n if (substring.startsWith(\"name=\") && substring.split(\"=\")[1].compareTo(sprintName) >= 0)\n sprintName = substring.split(\"=\")[1];\n }\n }\n }\n return sprintName;\n }",
"public Subtask getSubtask(String task_name, int project_id) {\n try {\n Connection con = DBManager.getConnection();\n String SQL = \"SELECT subtask_id, task_name FROM subtask where task_name = ? AND project_id = ?;\";\n PreparedStatement ps = con.prepareStatement(SQL);\n ps.setString(1, task_name);\n ps.setInt(2, project_id);\n\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n int id = rs.getInt(\"subtask_id\");\n Subtask subtask = new Subtask(id, task_name, project_id);\n return subtask;\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return null;\n }",
"public String getGprsId() {\n return gprsId;\n }",
"public String gettRelease() {\n return tRelease;\n }",
"@GetMapping(\"/boards/{id}\")\n public ResponseEntity<Board> getBoard(@PathVariable Long id){\n Optional<Board> board = boardRepository.findById(id);\n return ResponseUtil.wrapOrNotFound(board);\n }",
"@Override\n\tpublic Project getProjectById(int id) {\n\t\treturn null;\n\t}",
"@GetMapping(\"/{id}\")\r\n public ResponseEntity<?> findAllStatsBySportId(@PathVariable long id) {\r\n List<SportStats> allSportsById = sportStatsService.findAllStatsBySportId(id);\r\n return new ResponseEntity<>(allSportsById, HttpStatus.OK);\r\n }",
"@RequestMapping(value = \"/game/{id}\", method = RequestMethod.GET)\n @ResponseStatus(value = HttpStatus.OK)\n public Game getGame(@PathVariable Long id) {\n // Find the Game requested in the database\n Game game = serviceLayer.getGame(id);\n\n // Return the Game if it is found in the database\n if (game != null) {\n return game;\n } else {\n throw new IllegalArgumentException(\"There is no Game with id: \" + id);\n }\n }",
"ProjectDTO findProjectById(Long id);",
"@GetMapping(\"/{id}\")\n\tpublic Song getById(@PathVariable(\"id\") int id) {\n\t\tSystem.out.println(\"Searching by id: \" + id);\n\t\tSong song = songService.findById(id);\n\t\tif (song == null) {\n\t\t\tSystem.out.println(\"ID song: \" + id + \" not found\");\n\t\t}\n\t\treturn song;\n\t}",
"public Product get(String id);",
"@RequestMapping(method = RequestMethod.GET,\n path = \"/{labTestId}\",\n produces = MediaType.APPLICATION_JSON_VALUE)\n public Optional<LabTest> findById(@Valid @PathVariable Long labTestId) {\n return labTestService.findLabTestById(labTestId);\n }",
"public SprintDataCollection getSprintsForRapidView(ClientCredentials clientCredentials, String rapidViewIdString)\n throws JSONException {\n\n SprintDataCollection sprintDataCollection = new SprintDataCollection();\n List<Integer> sprintIdList;\n SprintData currentSprint;\n\n sprintIdList = getAllSprintIdsForRapidView(clientCredentials, rapidViewIdString);\n\n for (Integer currentId : sprintIdList) {\n currentSprint = sprintService.getSprintMetaData(clientCredentials, currentId.toString(), true);\n\n if (currentSprint == null) {\n LOGGER.debug(\"The Sprint with the ID {} containes no Issues and could not be analysed.\", currentId);\n continue;\n }\n\n sprintDataCollection.addSprintData(currentSprint);\n }\n\n return sprintDataCollection;\n\n }",
"java.lang.String getProjectId();",
"@GetMapping(\"/getsubtasks/{projectId}/{taskId}\")\n\tpublic List<Subtask> getAllSubtasksProj(@PathVariable (value = \"projectId\") Long projectId, @PathVariable (value = \"taskId\") Long taskId)\n\t{\n\t\tSystem.out.println(\"yes\");\n\t\treturn this.integrationClient.getAllSubtasksProj(projectId, taskId);\n\t}",
"public Project getProjectDetail(String idOrKey) throws IOException {\n\t\tif (client == null)\n\t\t\tthrow new IllegalStateException(\"HTTP Client not Initailized\");\n\t\t\n\t\tclient.setResourceName(Constants.JIRA_RESOURCE_PROJECT + \"/\" + idOrKey);\n\t\tClientResponse response = client.get();\n\t\t\t\t\t\n\t\tString content = response.getEntity(String.class);\t\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, true);\n\t\t\n\t\tTypeReference<Project> ref = new TypeReference<Project>(){};\n\t\tProject prj = mapper.readValue(content, ref);\n\t\t\n\t\treturn prj;\n\t}",
"List <ProjectAssignment> findAssignmentsByProject (int projectId);",
"@GetMapping(path=\"/pilot/{id}\")\n\tpublic Optional<Pilot> getPilot(@PathVariable Integer id) {\n\t\treturn pilotRepository.findById(id);\n\t}",
"@GetMapping(\"/api/getByYear\")\n\tpublic int[] getProjectByYear()\n\t{\n\t\treturn this.integrationClient.getProjectByYear();\n\t}",
"@GetMapping(\"/byid/{id}\")\r\n public ResponseEntity<TaskStatus> getTaskStatusById(@PathVariable(value = \"id\") Long id) {\r\n\r\n TaskStatus tsk = dao.findOne(id);\r\n\r\n if (tsk == null) {\r\n return ResponseEntity.notFound().build();\r\n }\r\n return ResponseEntity.ok().body(tsk);\r\n\r\n }",
"@Delegate\n @Path(\"/projects/{project}/global\")\n SnapshotApi getSnapshotApi(@PathParam(\"project\") String projectName);",
"public ArrayList<Project> selectProject(String projectId) {\n\n try {\n ArrayList<Project> tasks = new ArrayList<Project>();\n\n String query = \"SELECT * FROM TASKS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(query);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n String hours = rs.getString(\"HOURS\");\n String hoursadded = rs.getString(\"HOURS_ADDED\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(description, hours, hoursadded,\n projectId);\n tasks.add(p);\n }\n rs.close();\n ps.close();\n return tasks;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }",
"@RequestMapping(value = \"/get/{id}\", method = RequestMethod.GET)\n public Song getSongById(@PathVariable(\"id\") long id) {\n String message = messageSource.getMessage(\"song.get.id\", null,\"locale not found\", Locale.getDefault());\n logger.info(message);\n return songService.findById(id);\n }",
"@GetMapping(\"/productos/{id}\")\n @Timed\n public ResponseEntity<Producto> getProducto(@PathVariable Long id) {\n log.debug(\"REST request to get Producto : {}\", id);\n Producto producto = productoRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(producto));\n }",
"@RequestMapping(value = \"/semesters/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Semester> get(@PathVariable Long id) {\n log.debug(\"REST request to get Semester : {}\", id);\n return Optional.ofNullable(semesterRepository.findOne(id))\n .map(semester -> new ResponseEntity<>(\n semester,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"@GetMapping(\"/statuts/{id}\")\n public Status selectByIdStatut(@PathVariable(\"id\") int id) {\n \tOptional<Status> statut = serviceStatut.selectByIdStatut(id);\n \tif(!statut.isPresent()) {\n \t\treturn null;\n \t}\n \treturn statut.get();\n }",
"@Override\r\n\tpublic Strumento getById(int id) throws StrumentoNotFoundException {\n\t\treturn strumentoRepository.getOne(id);\r\n\t}",
"public String getProjectno() {\r\n return projectno;\r\n }"
] | [
"0.71000695",
"0.69112885",
"0.65542734",
"0.63869",
"0.6335724",
"0.6202744",
"0.59746546",
"0.58558583",
"0.5684592",
"0.5642575",
"0.5620329",
"0.5615871",
"0.55261683",
"0.5463924",
"0.5454775",
"0.54378754",
"0.5395905",
"0.5393687",
"0.5331621",
"0.5326258",
"0.5325211",
"0.5264039",
"0.5256001",
"0.52284354",
"0.5177039",
"0.5167723",
"0.51647055",
"0.51453793",
"0.5126596",
"0.50974166",
"0.5090429",
"0.5085349",
"0.506788",
"0.5034825",
"0.5019561",
"0.5008051",
"0.49860314",
"0.49805576",
"0.49746263",
"0.49677712",
"0.4956522",
"0.49529546",
"0.49337542",
"0.49332863",
"0.49154735",
"0.49150938",
"0.49084842",
"0.49052328",
"0.489758",
"0.48972708",
"0.48959145",
"0.4895662",
"0.48940554",
"0.4890746",
"0.48895332",
"0.48840633",
"0.48833954",
"0.48810354",
"0.48791796",
"0.48752972",
"0.487397",
"0.48676416",
"0.48625383",
"0.48589623",
"0.4857832",
"0.48576823",
"0.48421758",
"0.48380417",
"0.48375377",
"0.483281",
"0.48317862",
"0.4817549",
"0.48111355",
"0.48106572",
"0.4809174",
"0.4806265",
"0.4785928",
"0.4778713",
"0.4768155",
"0.47404453",
"0.47388017",
"0.47382897",
"0.47363803",
"0.47296473",
"0.47271353",
"0.4722873",
"0.47199085",
"0.4714266",
"0.47132987",
"0.47095293",
"0.47074932",
"0.47036913",
"0.47036698",
"0.47030994",
"0.46994045",
"0.4698684",
"0.46980694",
"0.4688968",
"0.46886945",
"0.4686027"
] | 0.8547209 | 0 |
DELETE /projectreleasesprints/:id : delete the "id" projectreleasesprint. | @RequestMapping(value = "/projectreleasesprints/{id}",
method = RequestMethod.DELETE,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public ResponseEntity<Void> deleteProjectreleasesprint(@PathVariable Long id) {
log.debug("REST request to delete Projectreleasesprint : {}", id);
projectreleasesprintRepository.delete(id);
return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert("projectreleasesprint", id.toString())).build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/projectreleasesprints/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> getProjectreleasesprint(@PathVariable Long id) {\n log.debug(\"REST request to get Projectreleasesprint : {}\", id);\n Projectreleasesprint projectreleasesprint = projectreleasesprintRepository.findOne(id);\n return Optional.ofNullable(projectreleasesprint)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"void deleteTrackerProjects(final Integer id);",
"@Override\n public void delete(String id) {\n log.debug(\"Request to delete Projectproduct : {}\", id);\n projectproductRepository.delete(UUID.fromString(id));\n }",
"void deleteByProjectId(Long projectId);",
"@RequestMapping(value = \"/project/{id}\", method = RequestMethod.DELETE)\n\tpublic Response deleteProject(@PathVariable Integer id) {\n\t\tResponse response = new Response();\n\t\ttry {\n\t\t\tBoolean isDelete = projectService.removeProjectData(id);\n\t\t\tif (isDelete) {\n\t\t\t\tresponse.setCode(CustomResponse.SUCCESS.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.SUCCESS.getMessage());\n\t\t\t} else {\n\t\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\tlogger.error(\"error while project delete \", e);\n\t\t}\n\t\treturn response;\n\t}",
"public void deleteProject(Long projectId);",
"@DeleteMapping(\"/deleteProject/{projectId}\")\r\n\tpublic void deleteProject(@PathVariable String projectId) {\r\n\r\n\t\tpersistenceService.deleteProject(projectId);\r\n\t}",
"@RequestMapping(value = \"/shopressource/{id}\", method = RequestMethod.DELETE)\n String deleteShopRessourceById(@PathVariable Integer id);",
"@RequestMapping(value = \"/projectreleasesprints\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Projectreleasesprint> createProjectreleasesprint(@Valid @RequestBody Projectreleasesprint projectreleasesprint) throws URISyntaxException {\n log.debug(\"REST request to save Projectreleasesprint : {}\", projectreleasesprint);\n if (projectreleasesprint.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"projectreleasesprint\", \"idexists\", \"A new projectreleasesprint cannot already have an ID\")).body(null);\n }\n Projectreleasesprint result = projectreleasesprintRepository.save(projectreleasesprint);\n return ResponseEntity.created(new URI(\"/api/projectreleasesprints/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"projectreleasesprint\", result.getId().toString()))\n .body(result);\n }",
"@RequestMapping(value=\"/deleteproject/{id}\", method = RequestMethod.GET)\n\tpublic ModelAndView deleteProject(@PathVariable(\"id\") String projectId) {\n\n\t\tdreamHomeService.deleteProject(Integer.parseInt(projectId));\n\t\t//model.addObject(\"successMessage\",\"Project deleted successfully\");\n\t\treturn new ModelAndView(\"redirect:/project/homepage\");\n\n\t}",
"@RequestMapping(value = \"/hrProjectInfos/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteHrProjectInfo(@PathVariable Long id) {\n log.debug(\"REST request to delete HrProjectInfo : {}\", id);\n hrProjectInfoRepository.delete(id);\n hrProjectInfoSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"hrProjectInfo\", id.toString())).build();\n }",
"public int delete(String id) {\n\treturn projectmapper.delete(id);\n}",
"@DeleteMapping(\"/project/{projectId}\")\n public Object doDelete(@PathVariable(\"projectId\") Long projectId) throws InvalidIdentifierException {\n service.deleteProjectById(projectId);\n return new ResponseTemplate(true, null);\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete TaskProject : {}\", id);\n taskProjectRepository.delete(id);\n taskProjectSearchRepository.delete(id);\n }",
"@RequestMapping(value = \"/project-hours/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteProjectHour(@PathVariable Long id) {\n log.debug(\"REST request to delete ProjectHour : {}\", id);\n projectHourService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"projectHour\", id.toString())).build();\n }",
"@Path (\"project/{repositoryId}/{groupId}/{projectId}\")\n @DELETE\n @Produces ({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN })\n @RedbackAuthorization (noPermission = true)\n ActionStatus deleteProject( @PathParam (\"groupId\") String groupId, @PathParam (\"projectId\") String projectId,\n @PathParam (\"repositoryId\") String repositoryId )\n throws ArchivaRestServiceException;",
"void deleteProject(String projectKey);",
"public void eliminarProyecto(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tplantilla.delete(\"http://localhost:5000/proyectos/\" + id);\n\t\t}",
"@DeleteMapping(\"/project-attachemnts/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProjectAttachemnt(@PathVariable String id) {\n log.debug(\"REST request to delete ProjectAttachemnt : {}\", id);\n projectAttachemntService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete Competition : {}\", id);\n competitionRepository.deleteById(id);\n }",
"public void deleteProjectRecord(int pgId) {\n String sql = \"DELETE FROM Project_Commit_Record WHERE pgid=?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n preStmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@RequestMapping( value = \"/{id}\", method = RequestMethod.DELETE )\n public void delete(@PathVariable(value=\"id\") int id){\n classService.delete(id);\n }",
"@DeleteMapping(\"/{id}\")\n public ResponseEntity<?> deletePricing(@PathVariable(\"id\") long id) {\n\tcheckResourceFound(this.pricingService.get(id));\n\tpricingService.delete(id);\n\treturn ResponseEntity.ok().body(\"Pricing has been deleted successfully.\");\n }",
"@GetMapping(\"/deleteTeam/{id}\")\n public String deleteTeam(@Valid @PathVariable (value = \"id\") long id) {\n this.teamService.deleteTeamById(id);\n return \"redirect:/teamPage\";\n }",
"public void delete(String namespace, String id, long version) throws StageException;",
"void deletePostById(int id);",
"void deleteById(Integer id);",
"void deleteById(Integer id);",
"public List<ProgramScheduled> deleteProgramScheduleById(int scheduleId);",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/teams/{id}\")\n public void deleteTeam(@PathVariable Integer id) {\n teamService.deleteTeam(id);\n }",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"int deleteByPrimaryKey(Integer teamId);",
"@DeleteMapping(\"/boards/{id}\")\n public ResponseEntity<Void> deleteBoard(@PathVariable Long id){\n boardRepository.deleteById(id);\n return ResponseEntity.noContent().headers(HeaderUtil.createEntityDeletionAlert(applicationName, false, ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"{id}\")\n public Lesson deleteLesson(@PathVariable long id) {\n //code\n return null;\n }",
"public String handleDelete()\n throws HttpPresentationException, webschedulePresentationException\n {\n String projectID = this.getComms().request.getParameter(PROJ_ID);\n System.out.println(\" trying to delete a project \"+ projectID);\n \n\t try {\n\t Project project = ProjectFactory.findProjectByID(projectID);\n String title = project.getProj_name();\n project.delete();\n this.getSessionData().setUserMessage(\"The project, \" + title +\n \", was deleted\");\n // Catch any possible database exception as well as the null pointer\n // exception if the project is not found and is null after findProjectByID\n\t } catch(Exception ex) {\n this.getSessionData().setUserMessage(projectID + \" Please choose a valid project to delete\");\n }\n // Redirect to the catalog page which will display the error message,\n // if there was one set by the above exception\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n }",
"@DeleteMapping(\"/band-pruebas/{id}\")\n @Timed\n public ResponseEntity<Void> deleteBandPrueba(@PathVariable Long id) {\n log.debug(\"REST request to delete BandPrueba : {}\", id);\n bandPruebaService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Path (\"projectVersion/{repositoryId}/{namespace}/{projectId}/{version}\")\n @DELETE\n @Produces ({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN })\n @RedbackAuthorization (noPermission = true)\n ActionStatus removeProjectVersion( @PathParam ( \"repositoryId\" ) String repositoryId,\n @PathParam ( \"namespace\" ) String namespace, @PathParam ( \"projectId\" ) String projectId,\n @PathParam ( \"version\" ) String version )\n throws ArchivaRestServiceException;",
"@RequestMapping(value = \"/groupps/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public void delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Groupp : {}\", id);\n grouppRepository.delete(id);\n grouppSearchRepository.delete(id);\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ProjectTransactionRecord : {}\", id);\n projectTransactionRecordRepository.delete(id);\n }",
"public void delete(int id) \n{ \n\ttvShowRepo.deleteById(id); \n}",
"public void deleteById(String id);",
"@DeleteMapping(\"/delete_person/{id}\")\n public void delete(@PathVariable(\"id\") int id ){\n persons.remove(id);\n }",
"public void deleteCalendarProject(String id) {\n String sql = \"UPDATE calendar_projects SET deleted = true WHERE id = :id \";\n Map params = new HashMap();\n params.put(\"id\", id);\n int rows = jdbcTemplate.update(sql, params);\n if (rows != 1) {\n throw new DataAccessException(\"Unexpected rows. Expected: 1 Rows: \" + rows) {\n };\n }\n }",
"@Override\n\tpublic Integer removeProject(Integer projId) {\n\t\treturn sqlSession.delete(\"cn.sep.samp2.project.removeProject\", projId);\n\t}",
"@Override\n\tpublic Integer delProject(ProjectInfo project) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.delProject\", project);\n\t}",
"void deleteById(final String id);",
"@RequestMapping(value = \"/gradeSystems/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteGradeSystem(@PathVariable Long id) {\n log.debug(\"REST request to delete GradeSystem : {}\", id);\n gradeSystemRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"gradeSystem\", id.toString())).build();\n }",
"@DeleteMapping(\"/procesadors/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProcesador(@PathVariable Long id) {\n log.debug(\"REST request to delete Procesador : {}\", id);\n procesadorRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(value = \"/delete\", produces = \"application/json\")\n void delete(@RequestParam int id);",
"@POST(\"/DeleteShip\")\n\tint deleteShip(@Body Ship ship,@Body int id) throws GameNotFoundException;",
"@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}",
"@DELETE\n public void delete(@PathParam(\"id\") String id) {\n }",
"public void destroyPost(Long id);",
"void deleteById(int id);",
"@Transactional\n public void delete(Long id) {\n log.debug(\"Request to delete Port : {}\", id);\n Port.findByIdOptional(id).ifPresent(port -> {\n port.delete();\n });\n }",
"@DeleteMapping(\"/selo-cartaos/{id}\")\n public ResponseEntity<Void> deleteSeloCartao(@PathVariable Long id) {\n log.debug(\"REST request to delete SeloCartao : {}\", id);\n seloCartaoService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@DeleteMapping(\"/statuts/{id}\")\n public void deletStatut(@PathVariable(\"id\") int id) {\n \tserviceStatut.deletStatut(id);\n }",
"@DeleteMapping(\"/{id}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void deletePost(@PathVariable Long id){\n postService.deletePost(id);\n }",
"@DeleteMapping(\"/{id}\")\n public void deletePeriod(@PathVariable Long id){\n periodService.deletePeriod(id);\n }",
"@DeleteMapping(path = \"{id}\")\n public ResponseEntity<?> deleteById(@PathVariable Long id) {\n prescriptionService.deleteById(id);\n\n return ResponseEntity.ok().body(\"Prescription with id: \" + id + \" deleted!\");\n }",
"public HttpStatus deleteById(Long postId);",
"@DeleteMapping(\"/delete/{id}\")\n\tpublic void deleteById(@PathVariable(\"id\") int id) {\n\t\tSong song = songService.findById(id);\n\t\tif (song == null) {\n\t\t\tSystem.out.println(\"Not exsit ID! Don't delete!\");\n\t\t\treturn;\n\t\t}\n\t\tsongService.delete(id);\n\t\tSystem.out.println(\"Deleted id: \" + id);\n\t}",
"@RequestMapping(value =\"{id}\", method =RequestMethod.DELETE)\r\n public void delete(@PathVariable Long id){\n sessionRepository.delete(id);\r\n }",
"@DeleteMapping(\"projekat/{id}\")\n\tpublic ResponseEntity<Projekat> deleteProjekat(@PathVariable(\"id\") Integer id) {\n\t\tif (!projekatRepository.existsById(id))\n\t\t\treturn new ResponseEntity<>(HttpStatus.NO_CONTENT);\n\t\tprojekatRepository.deleteById(id);\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t}",
"@DeleteMapping(value=\"/ticket/{ticketId}\")\n\tpublic void deleteTicket(@PathVariable(\"ticketId\") Integer ticketId){\n\t\tticketBookingService.deleteTicket(ticketId);\n\t}",
"@DeleteMapping(\"/delete/{id}\")\n public ResponseEntity delete(@PathVariable int id){\n if(id < 1){\n return new ResponseEntity(HttpStatus.BAD_REQUEST);\n }\n service.delete(id);\n return new ResponseEntity(HttpStatus.OK);\n }",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"@DeleteMapping(\"/players/{id}/games\")\n\tpublic String deletePlayerGames(@PathVariable(name = \"id\") int id) throws ArgumentNotFoundException {\n\n\t\t// Instanciar jugador y buscar jugador por id sino existe lanzar excepcion\n\t\tPlayer newPlayer = playerService.findPlayerById(id);\n\n\t\t// Establecer successRate a 0 ya que el jugador no posee partidas\n\t\tnewPlayer.setSuccessRate(0);\n\n\t\t// Actualizar jugador\n\t\tplayerService.updatePlayer(newPlayer);\n\n\t\t// Lanzar excepción si no hay partidas para borrar.\n\t\tif (newPlayer.getGame().isEmpty()) {\n\t\t\tthrow new ArgumentNotFoundException(\n\t\t\t\t\t\"El jugador id \" + id + \" , no tiene ninguna partida. No hay partidas para borrar.\");\n\t\t} else {\n\t\t\t// Eliminar listado de partidas del jugador\n\t\t\tgameService.deleteGames(newPlayer.getGame());\n\t\t}\n\n\t\treturn \"Las partidas del jugador ID \" + id + \" han sido eliminadas exitosamente\";\n\n\t}",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete StockReport : {}\", id);\n\n stockReportRepository.deleteById(id);\n }",
"@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/projects\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionProject();",
"@DeleteMapping(\"/breakpoints/{id}\")\n @Timed\n public ResponseEntity<Void> deleteBreakpoints(@PathVariable Long id) {\n log.debug(\"REST request to delete Breakpoints : {}\", id);\n breakpointsRepository.delete(id);\n breakpointsSearchRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@RequestMapping(method = RequestMethod.POST, value = \"/deleteReport\")\r\n public String deleteReport(String rid) {\r\n logger.info(rid);\r\n Integer id = Integer.parseInt(rid);\r\n reportsRepository.deleteById(id);\r\n return \"deleted\";\r\n }",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(int id){\n assetRepository.deleteById(id);\n }",
"@RequestMapping(value=\"/delete/{id}\")\n\tpublic String delete(@PathVariable(\"id\") Integer id)\n\t{\n\t\tItemMap.remove(id);\n\t\tSystem.out.println(\"Item number \"+id+\" is Removed\");\n\t\t\n\t\treturn \"Item number \"+ id+\" is Removed\";\n\t}",
"@DeleteMapping(\"/product/{productid}\") \nprivate void deleteProduct(@PathVariable(\"productid\") int productid) \n{ \nproductsService.delete(productid); \n}",
"@DeleteMapping(\"/prix-tickets/{id}\")\n @Timed\n public ResponseEntity<Void> deletePrixTicket(@PathVariable Long id) {\n log.debug(\"REST request to delete PrixTicket : {}\", id);\n prixTicketService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void delete(Long id) {\n log.debug(\"Request to delete TechPractices : {}\", id);\n techPracticesRepository.deleteById(id);\n }",
"@RequestMapping(value = \"/semesters/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> delete(@PathVariable Long id) {\n log.debug(\"REST request to delete Semester : {}\", id);\n semesterRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"semester\", id.toString())).build();\n }",
"public void deleteProject(String projectId) {\n\t\tString args[] = { projectId };\n\n\t\t// delete tasks\n\t\tdatabase.delete(Constants.TABLE_TASKS, Constants.COLUMN_PROJECTS_ID + \" = ?\", args);\n\n\t\t// delete the project\n\t\tdatabase.delete(Constants.TABLE_PROJECTS, Constants.COLUMN_ID + \" = ?\", args);\n\t}",
"@DeleteMapping(\"/api/students\")\n public void deleteStudentById(@PathVariable(value = \"id\") Long id) {\n this.studentService.deleteStudentById(id);\n }",
"@DELETE(\"posts/{id}/\")\n Call<Void> delete(@Path(\"id\") int id);",
"@DeleteMapping(\"/projects/{projectName:\" + Constants.ENTITY_ID_REGEX + \"}\")\n @Timed\n public ResponseEntity<?> deleteProject(@PathVariable String projectName)\n throws NotAuthorizedException {\n checkPermission(token, PROJECT_DELETE);\n log.debug(\"REST request to delete Project : {}\", projectName);\n ProjectDTO projectDto = projectService.findOneByName(projectName);\n checkPermissionOnOrganizationAndProject(token, PROJECT_DELETE,\n projectDto.getOrganization().getName(), projectDto.getProjectName());\n\n try {\n projectService.delete(projectDto.getId());\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, projectName))\n .build();\n } catch (DataIntegrityViolationException ex) {\n return ResponseEntity.badRequest()\n .body(new ErrorVM(ERR_PROJECT_NOT_EMPTY, ex.getMessage()));\n }\n }",
"public void deleteByVaiTroID(long vaiTroId);",
"public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}"
] | [
"0.6237694",
"0.62353325",
"0.6221313",
"0.6138793",
"0.6108053",
"0.60894245",
"0.5955978",
"0.5941903",
"0.5917626",
"0.5905172",
"0.5895758",
"0.58821905",
"0.58541095",
"0.58507013",
"0.58380437",
"0.5836429",
"0.5802835",
"0.57788235",
"0.574338",
"0.5641989",
"0.5633723",
"0.5627168",
"0.56163985",
"0.5593135",
"0.55907387",
"0.5571773",
"0.5540326",
"0.5540326",
"0.5539262",
"0.5532809",
"0.5508869",
"0.5508869",
"0.5508869",
"0.5508869",
"0.5508869",
"0.5508869",
"0.5508869",
"0.5508869",
"0.5508869",
"0.5508869",
"0.5496791",
"0.5487592",
"0.54858375",
"0.547772",
"0.54572517",
"0.54389375",
"0.5427847",
"0.5427833",
"0.5423792",
"0.5415664",
"0.5412004",
"0.5405492",
"0.53967863",
"0.5387186",
"0.53832304",
"0.53703296",
"0.53700507",
"0.53607243",
"0.5360257",
"0.53554004",
"0.53503925",
"0.534669",
"0.5345989",
"0.5336084",
"0.5332972",
"0.53282183",
"0.5326275",
"0.5324473",
"0.5317094",
"0.5316918",
"0.53086823",
"0.529811",
"0.5290476",
"0.52885544",
"0.52764106",
"0.52689517",
"0.52689517",
"0.52689517",
"0.52689517",
"0.52689517",
"0.52606213",
"0.5248372",
"0.5242605",
"0.5241246",
"0.5240363",
"0.52341926",
"0.52341926",
"0.52341926",
"0.52292097",
"0.5228761",
"0.5221058",
"0.52186066",
"0.52157086",
"0.5214966",
"0.52051455",
"0.52048993",
"0.5199505",
"0.51980644",
"0.51950264",
"0.5187399"
] | 0.86478424 | 0 |
Construct a new ProductIndexQuery. | public ProductIndexQuery() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createProductIndex() {\n\t\tLinkedList<String> ids = new LinkedList<>(productIds.keySet());\n\t\tArrayList<ArrayList<Integer>> vals = new ArrayList<>(productIds.values());\n\t\tint k = 8;\n\t\tKFront kf = new KFront();\n\t\tkf.createKFront(k, ids);\n\t\tfor (int i = 0; i < vals.size(); i++) {\n\t\t\tkf.getTable().get(i).addAll(vals.get(i));\n\t\t}\n\n\t\tProductIndex pIndex = new ProductIndex(k);\n\t\tpIndex.insertData(kf.getTable(), kf.getConcatString());\n\t\tsaveToDir(PRODUCT_INDEX_FILE, pIndex);\n\t}",
"public Product() {}",
"public SimpleIndexFactory() {\n\t}",
"public SimilarProduct build() {\n return new SimilarProductImpl(product, variantId, meta);\n }",
"public Product() { }",
"public Product() { }",
"public static PrimaryIndexBuilder pkIndex() {\n return new PrimaryKeyBuilderImpl();\n }",
"public QueryOptions build() {\n return new QueryOptions(this.columns, this.excludeColumns, this.excludeAttributes, this.shards);\n }",
"public static SimilarProductBuilder of() {\n return new SimilarProductBuilder();\n }",
"public Query(String expression) {\r\n\t\t_product = Product.class;\r\n\t\t_variable = \"p\";\r\n\t\t_expression = expression;\r\n\r\n\t}",
"@Nonnull\n @Override\n protected ProductTypeQuery getQuery() {\n return ProductTypeReferenceReplacementUtils.buildProductTypeQuery(1);\n }",
"public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }",
"public Product() { \n initComponents();\n table();\n \n }",
"public Product() {\n\t}",
"public Product() {\n }",
"public Product() {\n }",
"public Query() {\r\n }",
"public H_index() {\n\t\tsuper();\n\t}",
"public Indexer() {\n }",
"public IndexBuilder(InvertedIndex index) {\n\t\tthis.index = index;\n\t}",
"@Override\n public void buildIndexes(Properties props)\n {\n Statement statement;\n try\n {\n statement = connection.createStatement();\n \n //Create Indexes\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITEEID ON CONFFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX CONFFRIENDSHIP_INVITERID ON CONFFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITEEID ON PENDFRIENDSHIP (INVITEEID)\");\n statement.executeUpdate(\"CREATE INDEX PENDFRIENDSHIP_INVITERID ON PENDFRIENDSHIP (INVITERID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_RID ON MANIPULATION (RID)\");\n statement.executeUpdate(\"CREATE INDEX MANIPULATION_CREATORID ON MANIPULATION (CREATORID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCES_WALLUSERID ON RESOURCES (WALLUSERID)\");\n statement.executeUpdate(\"CREATE INDEX RESOURCE_CREATORID ON RESOURCES (CREATORID)\");\n \n System.out.println(\"Indexes Built\");\n }\n catch (Exception ex)\n {\n Logger.getLogger(WindowsAzureClientInit.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Error in building indexes!\");\n }\n }",
"protected Product() {\n\t\t\n\t}",
"public PantryProducts() {\n this(DSL.name(\"pantry_products\"), null);\n }",
"public SolrQuery() {\n super(null);\n store = null;\n }",
"public Index initIndex(String indexName) {\n return new Index(this, indexName);\n }",
"public createIndex_result(createIndex_result other) {\n }",
"private Query getQuery(String index, String type, String query){\r\n\t\tSearchQuery esQuery = new SearchQuery();\r\n\t\tesQuery.setIndex(this.indexName);\r\n\t\t\r\n\t\tif(StringUtils.isNotEmpty(type))\r\n\t\t\tesQuery.setType(type);\r\n\t\t\r\n\t\tesQuery.setQuery(query);\r\n\t\t\r\n\t\treturn esQuery;\t\t\r\n\t}",
"@Override\n\tpublic void build(Index index) {\n\t\tthis.indexdir = index.getPath();\n\t\tLuceneIndex luceneIndex = (LuceneIndex) index;\n\t\tthis.indexSearcher = new IndexSearcher(luceneIndex.getReader());\n\n\t}",
"private SearchRequestBuilder createSearchBuilder(StoreURL storeURL, EsQuery esQuery) {\n SearchRequestBuilder searchBuilder = this.getClient(storeURL)\n .prepareSearch(esQuery.getGraph())\n .setQuery(RootBuilder.get(esQuery))\n .setFetchSource(true)\n .setFrom(esQuery.getPageNo())\n .setSize(esQuery.getPageSize());\n if(CollectionUtils.isNotEmpty(esQuery.getSchemas())){\n searchBuilder.setTypes(esQuery.getSchemas().toArray(new String[]{}));\n }\n this.addAggregations(esQuery, searchBuilder); // aggregation\n this.addSortFields(esQuery, searchBuilder); // sort\n this.addHighlightFields(esQuery, searchBuilder); // highlight\n return searchBuilder;\n }",
"public SuperProduct() {\n\t\tsuper();\n\t}",
"protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}",
"public ProductDaoHash() {\n\t\tproductTable = new HashMap<Integer, Product>();\n\t}",
"public NaturalLanguageSearchRequest(String query) throws IllegalArgumentException {\n if (query == null) {\n throw new IllegalArgumentException(\"query is required\");\n }\n\n this.query = query;\n this.section = \"Products\";\n this.page = 1;\n this.resultsPerPage = 30;\n }",
"LuceneMemoryIndex createLuceneMemoryIndex();",
"public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }",
"void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;",
"public ProductSearchCriteriaBean() {\n }",
"public static SimilarProductBuilder of(final SimilarProduct template) {\n SimilarProductBuilder builder = new SimilarProductBuilder();\n builder.product = template.getProduct();\n builder.variantId = template.getVariantId();\n builder.meta = template.getMeta();\n return builder;\n }",
"TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);",
"public Observable<SearchResult> findInternalProducts(String query) {\n\n Observable<Long> productIndexObservable =\n getProductIndexObservable(query);\n\n return productIndexObservable\n .flatMap(this::productDetails);\n\n }",
"public static ProductBuilder builder(final Product template) {\n return ProductBuilder.of(template);\n }",
"public List<Product> searchProducts(ProductDTO product) {\n String SQL_SEARCH_QUERY=prepareSql(product);\n List<Product> productList=new ArrayList<>();\n Product p;\n List<Object[]> objList=entityManager.createNativeQuery(SQL_SEARCH_QUERY).getResultList();\n for(Object[] o: objList) {\n p=new Product();\n p.setCategory(new Category());\n p.setId(((BigInteger)o[0]).longValue());\n p.setName(o[1].toString());\n p.setPrice(((BigInteger) o[2]).longValue());\n p.setQuantity((Integer) o[3]);\n p.setVolume(((BigInteger) o[4]).longValue());\n p.setWeight(((BigInteger) o[5]).longValue());\n p.getCategory().setId(((BigInteger) o[6]).longValue());\n productList.add(p);\n }\n return productList;\n }",
"public createIndex_args(createIndex_args other) {\n }",
"protected Product()\n\t{\n\t}",
"public void retrieveProductIndex(int productIndex) {\n this.productIndex = productIndex;\n }",
"TSearchResults createSearchResults(TSearchQuery searchQuery);",
"indexSet createindexSet();",
"public TbProductOperatorExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public static ProductBuilder builder() {\n return ProductBuilder.of();\n }",
"public static QueryInterface createQuery() {\n return new XmlQuery();\n }",
"public static IndexExpression makeIndex(Expression instance, PropertyInfo indexer, Iterable<Expression> arguments) { throw Extensions.todo(); }",
"public ProductDecorator() {}",
"static DbQuery createKeyQuery() {\n DbQuery query = new DbQuery();\n query.order = OrderBy.KEY;\n return query;\n }",
"public Product build() {\n Product product = new Product();\n product.product_id = this.product_id;\n product.product_name = this.product_name;\n product.price = this.price;\n product.in_stock = this.in_stock;\n product.amount = this.amount;\n product.ordered_amount = this.ordered_amount;\n product.order_price = this.order_price;\n\n return product;\n }",
"List<Product> queryProductListBySearch(@Param(\"productCondition\") Product productCondition, \n\t\t\t@Param(\"rowIndex\") int rowIndex, @Param(\"pageSize\") int pageSize);",
"public List<Product> searchProductOfShop(int shopId, String productId, String productName, String type, int startIndex, int count){\r\n\t\tSession session = getSessionFactory().openSession();\r\n\t\tTransaction tx = session.beginTransaction();\r\n\t\tString sql = \"select rl.count, p from \" + ProductTable.class.getName() + \" p, \" + ShopPartyRelationship.class.getName() + \" rl where p.id = rl.productId\";\r\n\t\tif(null == productId || productId.trim().length() == 0)\r\n\t\t\tsql += \" and rl.type=:type and rl.shopId=:shopId\";\r\n\t\telse sql += \" and rl.type=:type and rl.shopId=:shopId and rl.productId like :productId\"; \r\n\t\tif(null != productName && productName.trim().length() != 0)\r\n\t\t\tsql += \" and p.productName like :productName \";\r\n\t\tif(null != type && type.trim().length() != 0)\r\n\t\t\tsql += \" and p.categoryName = :groupName\";\r\n\t\tQuery query = session.createQuery(sql);\t\t\r\n\t\tquery.setParameter(\"type\", \"product\");\r\n\t\tquery.setParameter(\"shopId\", shopId);\r\n\t\tif(null != productId && productId.trim().length() != 0)\r\n\t\t\tquery.setParameter(\"productId\", \"%\" + productId + \"%\");\r\n\t\tif(null != productName && productName.trim().length() != 0)\r\n\t\t\tquery.setParameter(\"productName\", \"%\" + productName + \"%\");\r\n\t\tif(null != type && type.trim().length() != 0)\r\n\t\t\tquery.setParameter(\"groupName\", type);\r\n\t\tquery.setFirstResult(startIndex);\r\n\t\tquery.setMaxResults(count);\r\n\t\tList<Object[]> listObject = (List<Object[]>)query.list(); \r\n\t\ttx.commit();\r\n\t\tsession.close();\r\n\t\tList<Product> listProduct = new LinkedList<>();\r\n\t\tif(null != listObject && listObject.size()>0){\r\n\t\t\tfor(Object[] object : listObject){\r\n\t\t\t\tProduct productView = converToProductView((ProductTable)object[1]);\r\n\t\t\t\tproductView.setCount((Integer)object[0]);\r\n\t\t\t\tlistProduct.add(productView);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn listProduct;\r\n\t}",
"public static SolrIndexer indexerFromProperties(Properties indexingProperties, String searchPath[])\n {\n SolrIndexer indexer = new SolrIndexer();\n indexer.propertyFilePaths = searchPath;\n indexer.fillMapFromProperties(indexingProperties);\n\n return indexer;\n }",
"protected MultiPhraseQuery.Builder newMultiPhraseQueryBuilder() {\n return new MultiPhraseQuery.Builder();\n }",
"public QueryRequest<Review> byProductId(String productId);",
"public ATExpression base_indexExpression();",
"public Query<T, R> build() {\n // if criteria.size == 0, rootCriterion = null\n Criterion rootCriterion = null;\n if (criteria.size() == 1) {\n rootCriterion = criteria.get(0);\n } else if (criteria.size() > 1) {\n rootCriterion = Restrictions.and(criteria\n .toArray(new Criterion[criteria.size()]));\n }\n return new QueryImpl<T, R>(entityClass, returnType, rootCriterion,\n orderings, maxResults, returnFields);\n }",
"private void buildPKIndex() {\n // index PK\n Collection<DbAttribute> pks = getResolver()\n .getEntity()\n .getDbEntity()\n .getPrimaryKeys();\n this.idIndices = new int[pks.size()];\n\n // this is needed for checking that a valid index is made\n Arrays.fill(idIndices, -1);\n\n Iterator<DbAttribute> it = pks.iterator();\n for (int i = 0; i < idIndices.length; i++) {\n DbAttribute pk = it.next();\n\n for (int j = 0; j < columns.length; j++) {\n if (pk.getName().equals(columns[j].getName())) {\n idIndices[i] = j;\n break;\n }\n }\n\n // sanity check\n if (idIndices[i] == -1) {\n throw new CayenneRuntimeException(\"PK column is not part of result row: %s\", pk.getName());\n }\n }\n }",
"public SearchDocuments(String indexPath) throws IOException{\r\n this.setIndexPath(indexPath); \r\n \r\n //TO DO : add config.properties file\r\n //read configuration file and update static variables adequately\r\n// readConf();\r\n\r\n // Supported index Fields and their pubmed counterpart (\"Title\",\"ArticleTitle\") \r\n supportedIndexFields.put(\"Title\", \"ArticleTitle\");\r\n supportedIndexFields.put(\"TI\", \"ArticleTitle\");\r\n supportedIndexFields.put(\"Abstract\", \"AbstractText\");\r\n supportedIndexFields.put(\"AB\", \"AbstractText\");\r\n supportedIndexFields.put(\"PMID\", \"PMID\");\r\n supportedIndexFields.put(\"UID\", \"PMID\");\r\n //TO DO : add all supported index fields\r\n //TO DO : special words (i.e. nothascommenton etc) \r\n \r\n // Lucene objects\r\n \r\n /* Sorting */\r\n // Fields used for reverse chronological sorting of results\r\n // This Fields are indexed with no tokenization (for each element a StringField AND a SortedDocValuesField are added)\r\n // Using SortField.Type.STRING is valid (as an exception) beacause years are 4-digit numbers resulting in identical String-sorting and number-sorting.\r\n SortField sortFieldYear = new SortField(\"PubDate-Year\", SortField.Type.STRING, true);\r\n \r\n //TO DO : make custom comparators for the rest fields where lexilogical comparison is not valid\r\n // OR, store Pud Date as Date and use date comparison\r\n // Idealy one \"complex-field\" should be used for sorting, taking into account Year, Month, Day, Season and MedlineDate together)\r\n// SortField sortFieldMonth = new SortField(\"PubDate-Month\",SortField.Type.STRING,true);\r\n// SortField sortFieldDay = new SortField(\"PubDate-Day\",SortField.Type.STRING,true);\r\n// SortField sortFieldSeason = new SortField(\"PubDate-Season\",SortField.Type.STRING,true);\r\n// SortField sortFieldMedlineDate = new SortField(\"PubDate-MedlineDate\",SortField.Type.STRING,true);\r\n// this.setSort(new Sort(sortFieldYear, sortFieldMonth, sortFieldDay, sortFieldSeason, sortFieldMedlineDate));\r\n this.setSort(new Sort(sortFieldYear));\r\n \r\n /* Reading the index */\r\n// this.setReader(DirectoryReader.open(FSDirectory.open(Paths.get(getIndexPath()))));\r\n this.setReader(DirectoryReader.open(MMapDirectory.open(Paths.get(getIndexPath()))));\r\n this.setSearcher(new IndexSearcher(getReader()));\r\n this.setAnalyzer(new StandardAnalyzer());\r\n \r\n /* Caching */\r\n // these cache and policy instances can be shared across several queries and readers\r\n // it is fine to eg. store them into static variables\r\n // TO DO: Use stored (old) expert-queries (from mongoDB) and MESH terms to \"prepare\" cache.\r\n queryCache = new LRUQueryCache(maxNumberOfCachedQueries, maxRamBytesUsed);\r\n// defaultCachingPolicy = new UsageTrackingQueryCachingPolicy();\r\n defaultCachingPolicy = new QueryCachingPolicy.CacheOnLargeSegments(minIndexSize, minSizeRatio);\r\n this.getSearcher().setQueryCache(queryCache);\r\n this.getSearcher().setQueryCachingPolicy(defaultCachingPolicy);\r\n \r\n /* All fields as default for search */\r\n Iterator <String> allFieldsIterator = org.apache.lucene.index.MultiFields.getFields(reader).iterator();\r\n ArrayList <String> a = new ArrayList();\r\n String current = \"\";\r\n while(allFieldsIterator.hasNext()){\r\n current = allFieldsIterator.next();\r\n if(!current.startsWith(\"PubDate-\")){\r\n a.add(current);\r\n }\r\n }\r\n \r\n String[] allFields = new String[a.size()];\r\n allFields = a.toArray(allFields); //All index fields to be used as default search fields\r\n this.setParser( new MultiFieldQueryParser( allFields, getAnalyzer())); \r\n }",
"private DbQuery() {}",
"public PseudoQuery() {\r\n\t}",
"public static Criteria newAndCreateCriteria() {\n YoungSeckillPromotionProductRelationExample example = new YoungSeckillPromotionProductRelationExample();\n return example.createCriteria();\n }",
"public CorrelationQuery(String index, String query, String timestampField, List<String> tags) {\n this.index = index;\n this.query = query;\n this.timestampField = timestampField != null ? timestampField : \"_timestamp\";\n this.tags = tags;\n }",
"public IndexRecord()\n {\n }",
"public QueryBuilder()\n {\n\tlabel = null;\n\tqueryCondition = null;\n\tselectionLimiter = null;\n\tselectionSorter = null;\n\n\tvariablesMap = new HashMap<String, Expression>();\n\tselectionLabelsReferencedByStats = new HashSet<String>();\n }",
"public SearchRequestBuilder getListSearch(ESQuery query, String index) {\n\n\t\t// Group Aggregation\n\t\tString dimField = query.getDimField();\n\t\tTermsBuilder termsBuilder = AggregationBuilders.terms(dimField).field(dimField);\n\n\t\t// Group Filter\n\t\t/*List<ESFilter> aggFilter = query.getAggFilter();\n\t\tif (null != aggFilter) {\n\t\t\ttermsBuilder.collectMode(mode);\n\t\t}*/\n\t\t\n\t\t// Group Sum Aggregation\n\t\tfor (ConfigColumn column : query.getIdxList()) {\n\t\t\tString field = column.getField();\n\t\t\ttermsBuilder.subAggregation(AggregationBuilders.sum(field).field(field));\n\t\t}\n\n\t\t// Group Order\n\t\tConfigColumn sortField = query.getSortField();\n\t\tif (sortField != null) {\n\t\t\tif (sortField.getDim() == 1) {\n\t\t\t\ttermsBuilder.order(Terms.Order.term(query.isAsc()));\n\t\t\t} else {\n\t\t\t\tString fieldName = sortField.getField();\n\t\t\t\ttermsBuilder.order(Terms.Order.aggregation(fieldName, query.isAsc()));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Set Pagination\n\t\tPagination page = query.getPage();\n\t\tif (null != page) {\n\t\t\tint from = page.getFrom();\n\t\t\tint size = page.getPageSize();\n\t\t\ttermsBuilder.size(Math.max(max, from + size));\n\t\t} else {\n\t\t\ttermsBuilder.size(max);\n\t\t}\n\t\t\n\t\t// Construct Search Builder\n\t\tSearchRequestBuilder esSearch = getClient().prepareSearch(index).setTypes(type);\n\t\tesSearch.addAggregation(termsBuilder).setQuery(query.getQueryBuilder());\n\n\t\treturn esSearch;\n\t}",
"protected Query newTermQuery(Term term, float boost) {\n Query q = new TermQuery(term);\n if (boost == DEFAULT_BOOST) {\n return q;\n }\n return new BoostQuery(q, boost);\n }",
"private void createReviewIndex() {\n\t\t// Revise the review dictionary to the correct structure & change productIDs to product index\n\t\tLinkedList<List<Integer>> dictValues = new LinkedList<>();\n\t\tfor (int review : reviewIds.keySet()) {\n\t\t\tArrayList<String> vals = reviewIds.get(review);\n\t\t\tArrayList<Integer> new_vals = new ArrayList<>(List.of(0, 0, 0, 0, 0));\n\t\t\tnew_vals.set(ReviewIndex.PRODUCTID_INDEX, productIds.headMap(vals.get(0)).size());\n\t\t\tString[] helpf = vals.get(2).split(\"/\");\n\t\t\tnew_vals.set(ReviewIndex.HELPFNUM_INDEX, Integer.parseInt(helpf[0]));\n\t\t\tnew_vals.set(ReviewIndex.HELPFDNOM_INDEX, Integer.parseInt(helpf[1]));\n\t\t\tnew_vals.set(ReviewIndex.REVIEWLENGTH_INDEX, Integer.parseInt(vals.get(3)));\n\t\t\tnew_vals.set(ReviewIndex.SCORE_INDEX, (int) Float.parseFloat(vals.get(1)));\n\t\t\tdictValues.add(new_vals);\n\t\t}\n\t\tReviewIndex rIndex = new ReviewIndex();\n\t\trIndex.insertData(dictValues);\n\n\t\tsaveToDir(REVIEW_INDEX_FILE, rIndex);\n\t}",
"public static HashIndexBuilder hashIndex(String name) {\n return new HashIndexBuilderImpl(name);\n }",
"public Product(String name) {\n setName(name);\n setProductionNumber(currentProductionNumber);\n\n // Increment current production number in loop\n currentProductionNumber++;\n manufacturer = MANUFACTURER;\n manufacturedOn = new Date();\n }",
"private SearchSourceBuilder buildBaseSearchSource() {\n long histogramSearchStartTime = Math.max(0, context.start - ExtractorUtils.getHistogramIntervalMillis(context.aggs));\n\n SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder()\n .size(0)\n .query(ExtractorUtils.wrapInTimeRangeQuery(context.query, context.timeField, histogramSearchStartTime, context.end));\n\n context.aggs.getAggregatorFactories().forEach(searchSourceBuilder::aggregation);\n context.aggs.getPipelineAggregatorFactories().forEach(searchSourceBuilder::aggregation);\n return searchSourceBuilder;\n }",
"public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }",
"@Override\n public Object build() {\n return AggregationBuilders.filter(this.getName(),\n (org.opensearch.index.query.QueryBuilder)this.queryBuilder.seekRoot().query().filtered().filter().getCurrent().build());\n }",
"public PantryProducts(Name alias) {\n this(alias, PANTRY_PRODUCTS);\n }",
"private IndexSettings buildIndexSettings(IndexMetadata metadata) {\n return new IndexSettings(metadata, settings);\n }",
"public Producto() {\r\n }",
"public PcProductpropertyExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public InstanciaProductoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void createIndex(Configuration configuration){\n }",
"private Indexers()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"public Query(Class c, String variable, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = variable;\r\n\t\t_expression = expression;\r\n\r\n\t}",
"public static PartialIndexBuilder partialIndex(String name) {\n return new PartialIndexBuilderImpl(name);\n }",
"public static QueryResult build() {\n return new QueryResult(ImmutableList.of());\n }",
"public QueryLocator() {\n this(new Random().nextInt(1024));\n }",
"public GetProductoSrv() {\n\t\tsuper();\n\t\tinitializer();\n\t}",
"public Query(Class c, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = \"c\";\r\n\t\t_expression = expression;\r\n\r\n\t}",
"public CrkProductExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public Product()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.price = 0.0;\n\t\tthis.imported = false;\n\t\tthis.quantity = 0;\n\t\tthis.taxedCost = 0.0;\n\t}",
"public Producto (){\n\n }",
"public ProductImp() {\n insert(new Product(\"hammer\", 9.99));\n insert(new Product(\"screwdriver\", 9.99));\n insert(new Product(\"drill\", 19.99));\n }",
"public ProductDAO() {\n }",
"public InnodbIndexStatsExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public Product(){\n // Default constructor required for calls to DataSnapshot.getValue(Product.class)\n }",
"public interface IIndexBuilder {\n\n public IIndex getIndex( Class<?> searchable ) throws BuilderException;\n\n public IFieldVisitor getFieldVisitor();\n\n public void setFieldVisitor( IFieldVisitor visitor );\n\n}",
"public QueryGenerator(int num_attributes, int cardinality, int num_queries, int skew_att, int skew_bin) {\n\t\tsuper(num_attributes, cardinality);\n\t\tthis.num_queries = num_queries;\n\t\tthis.zipf_rng_att = new Zipf(num_attributes, skew_att);\n\t\tthis.zipf_rng_bin = new Zipf(cardinality, skew_bin);\n\t\tthis.uniform_rng = new Random(System.currentTimeMillis());\n\t\tthis.num_pt_queries = 0;\n\t\tthis.num_range_queries = 0;\n\t\tthis.num_attributes = 0;\n\t\tthis.num_bins = 0;\n\t\tthis.num_and_ops = 0;\n\t\tthis.num_or_ops = 0;\n\t}",
"public DIndexDescription() {\n super(COMMAND);\n }"
] | [
"0.69342875",
"0.55973953",
"0.5547636",
"0.5445938",
"0.5438577",
"0.5438577",
"0.54380435",
"0.53973633",
"0.5391584",
"0.5383508",
"0.5349049",
"0.5339025",
"0.53365993",
"0.53195345",
"0.5264467",
"0.5264467",
"0.5251162",
"0.5195546",
"0.5185667",
"0.5166552",
"0.5147313",
"0.5147099",
"0.5128945",
"0.5125204",
"0.510696",
"0.5101121",
"0.5093103",
"0.50908023",
"0.5086551",
"0.5085887",
"0.5081992",
"0.5063658",
"0.5059885",
"0.504592",
"0.5045694",
"0.5024077",
"0.50148886",
"0.4998813",
"0.49941358",
"0.4992416",
"0.49747705",
"0.49708846",
"0.49656427",
"0.4965145",
"0.4962391",
"0.4952146",
"0.494831",
"0.49460933",
"0.49285483",
"0.4925718",
"0.49256173",
"0.49214077",
"0.4907884",
"0.49014512",
"0.49010235",
"0.48892456",
"0.48796377",
"0.48760793",
"0.48572496",
"0.48492426",
"0.48274446",
"0.4817074",
"0.48152643",
"0.48149374",
"0.48043966",
"0.4803958",
"0.4795043",
"0.47886923",
"0.47807539",
"0.47798228",
"0.47794843",
"0.4776802",
"0.47650012",
"0.47353977",
"0.4729125",
"0.4720431",
"0.4719879",
"0.4717334",
"0.4715065",
"0.4711372",
"0.47083575",
"0.4706124",
"0.47045988",
"0.46996146",
"0.46959832",
"0.46940032",
"0.46925977",
"0.4683748",
"0.4682721",
"0.46815223",
"0.46790272",
"0.4673921",
"0.46592134",
"0.4657459",
"0.4657439",
"0.46530125",
"0.46506858",
"0.46495953",
"0.46445608",
"0.4640965"
] | 0.8146114 | 0 |
The ribbon required to wrap a present is the shortest distance around its sides, or the smallest perimeter of any one face. A present with dimensions 2x3x4 requires 2+2+3+3 = 10 A present with dimensions 1x1x10 requires 1+1+1+1 = 4 | private static double ribbonPresent(int l, int w, int h) {
int[] sides = {l, w, h};
Arrays.sort(sides);
return sides[0] + sides[0] + sides[1] + sides[1];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void calculateChevronTrim() {\n ToolBar tb = new ToolBar( parent, SWT.FLAT );\n ToolItem ti = new ToolItem( tb, SWT.PUSH );\n // Image image = new Image (display, 1, 1);\n // ti.setImage (image);\n Point size = tb.computeSize( SWT.DEFAULT, SWT.DEFAULT );\n size = parent.fixPoint( size.x, size.y );\n CHEVRON_HORIZONTAL_TRIM = size.x - 1;\n CHEVRON_VERTICAL_TRIM = size.y - 1;\n tb.dispose();\n ti.dispose();\n // image.dispose ();\n }",
"public int getWidth(){ return widthRadius; }",
"public RMShape divideShapeFromTop(double anAmount) { return divideShapeFromEdge(anAmount, RMRect.MinYEdge, null); }",
"public void i() {\n float f2;\n float f3 = 0.0f;\n RectF b2 = b(getDisplayMatrix());\n q.a(this.e, \"checkMatrixBounds cur rect: \" + b2.toString() + \" width: \" + b2.width() + \" height: \" + b2.height());\n if (b2 != null && getDrawable() != null) {\n float height = b2.height();\n float width = b2.width();\n int i2 = this.j;\n if (height <= ((float) i2)) {\n q.a(this.e, \"+1111111111111+: height<=cropperHeight\");\n switch (n.a[this.L.ordinal()]) {\n case 1:\n f2 = -b2.top;\n break;\n case 2:\n f2 = (((float) i2) - height) - b2.top;\n break;\n default:\n f2 = (((((float) i2) - height) / 2.0f) - b2.top) + ((float) getTopBottomGap());\n break;\n }\n } else if (b2.top > ((float) getTopBottomGap())) {\n f2 = (-b2.top) + ((float) getTopBottomGap());\n q.a(this.e, \"+2222222222222+: \" + b2.top + \" \" + getTopBottomGap());\n } else if (b2.bottom < ((float) (getTopBottomGap() + i2))) {\n f2 = ((float) (getTopBottomGap() + i2)) - b2.bottom;\n q.a(this.e, \"+333333333333333+: \" + i2 + \" \" + getTopBottomGap() + \" \" + b2.bottom);\n } else {\n f2 = 0.0f;\n }\n int i3 = this.i;\n if (width <= ((float) i3)) {\n switch (n.a[this.L.ordinal()]) {\n case 1:\n f3 = -b2.left;\n break;\n case 2:\n f3 = (((float) i3) - width) - b2.left;\n break;\n default:\n f3 = (((((float) i3) - width) / 2.0f) - b2.left) + ((float) getLeftRightGap());\n break;\n }\n } else if (b2.left > ((float) getLeftRightGap())) {\n f3 = (-b2.left) + ((float) getLeftRightGap());\n } else if (b2.right < ((float) (getLeftRightGap() + i3))) {\n f3 = ((float) (getLeftRightGap() + i3)) - b2.right;\n }\n q.a(this.e, \"correct: \" + f3 + Token.SEPARATOR + f2);\n this.x.postTranslate(f3, f2);\n }\n }",
"private double getPieceBoundingRectangleWidth(HomePieceOfFurniture piece, float additionalAngle) {\n return Math.abs(piece.getWidthInPlan() * Math.cos(additionalAngle + piece.getAngle())) \n + Math.abs(piece.getDepthInPlan() * Math.sin(additionalAngle + piece.getAngle()));\n }",
"public interface IncrementalShapeAggregator {\n\n /**\n * Returns coordinates which if occupied complete the shape.\n * @return\n */\n Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();\n\n /**\n * Add update to the aggregate.\n *\n * @param cell cells to be updated\n * @param newPlayerId new player ID\n */\n Integer update(BoardCell cell, int newPlayerId);\n\n /**\n * True if tracks a row.\n *\n * @return\n */\n default boolean isHorizontalLineSegment() {\n return false;\n }\n\n /**\n * True if track a vertical segment.\n * @return\n */\n default boolean isVerticalLineSegment() {\n return false;\n }\n\n /**\n * True if track all corners.\n * @return\n */\n default boolean isAllCorners() {\n return false;\n }\n\n /**\n * True if this aggregator tracks a diagonal.\n * @return\n */\n default boolean isDiagonalLineSegment() {\n return false;\n }\n\n /**\n *\n * @return winning player id\n */\n Integer getWinner();\n\n /**\n * Register cell.\n * @param cell\n */\n void addCell(BoardCell cell);\n\n /**\n * Any vacant cells?\n * @return if there is any free slots\n */\n boolean isCompletable();\n\n /**\n * Suggests a move for the given player and length of the segment.\n * @param player who is the guy\n * @param desiredLength size required to win\n * @return\n */\n PrioritizedMove getBestMoveFor(int player, int desiredLength);\n}",
"private Location[] overrunsTop () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), 0);\n nextCenter = new Location(getX(), myCanvasBounds.getHeight());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = FULL_TURN_DEGREES - getHeading();\n if (getHeading() < THREE_QUARTER_TURN_DEGREES) {\n angle = -(getHeading() - HALF_TURN_DEGREES);\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(getX() + getY() / Math.tan(angle), 0);\n nextCenter = new Location(getX() + getY() / Math.tan(angle),\n myCanvasBounds.getHeight());\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n \n return new Location[] { nextLocation, nextCenter };\n }",
"@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }",
"public interface BoundedObject {\n public BoundedCube getBounds();\n\n public static class BoundedCube implements Comparable<BoundedCube> {\n public long lx, ty, iz = 0;\n public long rx, by, oz = 0;\n\n public BoundedCube() {\n super();\n }\n\n public BoundedCube(long lx, long rx, long ty, long by, long iz, long oz) {\n super();\n this.lx = lx;\n this.rx = rx;\n this.ty = ty;\n this.by = by;\n this.iz = iz;\n this.oz = oz;\n }\n\n public BoundedCube(long[] coords, long radius) {\n super();\n this.lx = coords[0] - radius;\n this.rx = coords[0] + radius;\n this.ty = coords[1] - radius;\n this.by = coords[1] + radius;\n this.iz = coords[2] - radius;\n this.oz = coords[2] + radius;\n }\n\n public BoundedCube(BoundedCube l) {\n super();\n set(l);\n }\n\n public void set(BoundedCube l) {\n this.lx = l.lx;\n this.rx = l.rx;\n this.ty = l.ty;\n this.by = l.by;\n this.iz = l.iz;\n this.oz = l.oz;\n }\n\n public void union(BoundedCube l) {\n if (l.lx < lx)\n lx = l.lx;\n if (l.rx > rx)\n rx = l.rx;\n if (l.ty < ty)\n ty = l.ty;\n if (l.by > by)\n by = l.by;\n if (l.iz < iz)\n iz = l.iz;\n if (l.oz > oz)\n oz = l.oz;\n }\n\n public long radius() {\n return Math.round(Math.sqrt(((rx - lx) * (rx - lx))\n + ((by - ty) * (by - ty))\n + ((oz - iz) * (oz - iz))));\n }\n\n public BoundedCube expand(double[] direction, long distance) {\n final BoundedCube cube = new BoundedCube(this);\n final double x1 = Math.cos(direction[0]) * Math.sin(direction[1]);\n final double y1 = Math.sin(direction[0]) * Math.sin(direction[1]);\n final double z1 = Math.cos(direction[1]);\n final long[] oldCenter = new long[]{((lx + rx) / 2), ((ty + rx) / 2), ((iz + oz) / 2)};\n final long[] newCenter = new long[]{\n oldCenter[0] + Math.round(CMath.mul(distance, x1)),\n oldCenter[1] + Math.round(CMath.mul(distance, y1)),\n oldCenter[2] + Math.round(CMath.mul(distance, z1))};\n if (newCenter[0] > oldCenter[0])\n cube.rx += newCenter[0] - oldCenter[0];\n else\n cube.lx += newCenter[0] - oldCenter[0];\n if (newCenter[1] > oldCenter[1])\n cube.ty += newCenter[1] - oldCenter[1];\n else\n cube.by += newCenter[1] - oldCenter[1];\n if (newCenter[2] > oldCenter[2])\n cube.iz += newCenter[2] - oldCenter[2];\n else\n cube.oz += newCenter[2] - oldCenter[2];\n return cube;\n }\n\n public boolean intersects(BoundedCube two) {\n if (two == null)\n return false;\n return (\n ((lx <= two.lx && two.lx <= rx) || (two.lx <= lx && lx <= two.rx))\n && ((ty <= two.ty && two.ty <= by) || (two.ty <= ty && ty <= two.by))\n && ((iz <= two.iz && two.iz <= oz) || (two.iz <= iz && iz <= two.oz))\n );\n }\n\n public boolean contains(long x, long y, long z) {\n return ((x >= lx)\n && (x <= rx)\n && (y >= ty)\n && (y <= by)\n && (z >= iz)\n && (z <= oz));\n }\n\n public long width() {\n return rx - lx;\n }\n\n public long height() {\n return by - ty;\n }\n\n public long depth() {\n return oz - iz;\n }\n\n @Override\n public int compareTo(BoundedCube o) {\n if (lx < o.lx)\n return -1;\n if (lx > o.lx)\n return 1;\n if (rx < o.rx)\n return -1;\n if (rx > o.rx)\n return 1;\n if (ty < o.ty)\n return -1;\n if (ty > o.ty)\n return 1;\n if (by < o.by)\n return -1;\n if (by > o.by)\n return 1;\n if (iz < o.iz)\n return -1;\n if (iz > o.iz)\n return 1;\n if (oz < o.oz)\n return -1;\n if (oz > o.oz)\n return 1;\n return 0;\n }\n }\n}",
"public Shape getAreaColision();",
"public Pair<Queue<BaseSingle>, boolean[][]> getBorderTroops() {\n Queue<BaseSingle> borderTroops = new LinkedList<>();\n boolean[][] inDanger = new boolean[depth][width];\n int i = 0;\n int j = 0;\n\n // First, scan the first line.\n BaseSingle troop;\n boolean oneLineLeft = false;\n for (j = 0; j < width; j++) {\n troop = aliveTroopsFormation[i][j];\n if (troop != null) {\n borderTroops.add(troop);\n inDanger[i][j] = true;\n } else {\n oneLineLeft = true;\n }\n }\n if (oneLineLeft) return new Pair<>(borderTroops, inDanger);\n\n // Then scan downward from both sides\n int heightLeft = 0;\n int heightRight = 0;\n BaseSingle troopLeft;\n BaseSingle troopRight;\n for (i = 1; i < depth; i++) {\n troopLeft = aliveTroopsFormation[i][0];\n troopRight = aliveTroopsFormation[i][width - 1];\n if (troopLeft != null) {\n borderTroops.add(troopLeft);\n heightLeft += 1;\n inDanger[i][0] = true;\n }\n if (troopRight != null) {\n borderTroops.add(troopRight);\n heightRight += 1;\n inDanger[i][width - 1] = true;\n }\n if (troopLeft == null || troopRight == null) break;\n }\n\n // Last line\n int lastLine = Math.min(heightLeft, heightRight);\n if (lastLine == depth - 1) {\n for (j = 1; j < width - 1; j++) {\n inDanger[lastLine][j] = true;\n borderTroops.add(aliveTroopsFormation[lastLine][j]);\n }\n } else {\n for (j = 1; j < width - 1; j++) {\n if (aliveTroopsFormation[lastLine + 1][j] == null) {\n inDanger[lastLine][j] = true;\n borderTroops.add(aliveTroopsFormation[lastLine][j]);\n } else {\n inDanger[lastLine + 1][j] = true;\n borderTroops.add(aliveTroopsFormation[lastLine + 1][j]);\n }\n }\n }\n return new Pair<>(borderTroops, inDanger);\n }",
"@Override\n double areaFigure() {\n if (!isRealFigure()) {\n return -1;\n }\n //When the triangular prism is real\n double faceArea = (getA() + getB() + getC()) * getD();\n return faceArea + 2 * super.areaFigure();\n }",
"public double getAspect ()\r\n {\r\n return (double) getLength() / (double) getThickness();\r\n }",
"int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }",
"@Override\n public double perimeter() {\n return 2 * (width + length);\n }",
"int getBoundsWidth();",
"@Override\n public int getWidth() {\n return 260;\n }",
"public IRectangleBound getClipBound();",
"long getWidth();",
"private Location[] overrunLeft () {\n Location nextLocation;\n Location nextCenter;\n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(0, getY());\n nextCenter = new Location(myCanvasBounds.getWidth(), getY());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = getHeading() - ONE_QUARTER_TURN_DEGREES;\n if (getHeading() > HALF_TURN_DEGREES) {\n angle = -(THREE_QUARTER_TURN_DEGREES - getHeading());\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(0, getY() + getX() / Math.tan(angle));\n nextCenter = new Location(myCanvasBounds.getWidth(), getY() + getX() /\n Math.tan(angle));\n \n return new Location[] { nextLocation, nextCenter };\n }",
"public double getWidth();",
"public double getWidth();",
"private List<Integer> getInitialCorners_ShortStrawOversegment()\n\t\t\tthrows InvalidParametersException {\n\n\t\t// Store the original stroke\n\t\tStroke resampledStroke = new Stroke(m_stroke);\n\n\t\t// Initial processing (filtering, resampling) on the stroke\n\t\tresampledStroke = cleanStroke(resampledStroke);\n\n\t\tdouble resampledSpacing = determineResampleSpacing(m_stroke.getPoints());\n\n\t\t// The stroke is too short to resample\n\t\tif (resampledStroke.getPathLength() < S_SHORT_STROKE_THRESHOLD\n\t\t\t\t|| resampledStroke.getNumPoints() < IShortStrawThresholds.S_MIN_PTS_THRESHOLD\n\t\t\t\t|| resampledSpacing < IShortStrawThresholds.S_SMALL_RESAMPLE_SPACING_THRESHOLD) {\n\t\t\t// Do nothing...\n\t\t}\n\n\t\t// Resample the stroke\n\t\telse {\n\t\t\tList<Point> points = resamplePoints(resampledStroke,\n\t\t\t\t\tresampledSpacing);\n\t\t\tresampledStroke = new Stroke(points);\n\t\t}\n\n\t\tfinal double MEDIAN_PERCENTAGE = 1.0;\n\n\t\t// Initialize necessary variables\n\t\tdouble[] straws = new double[resampledStroke.getNumPoints()];\n\t\tdouble[] sortedStraws = new double[resampledStroke.getNumPoints()\n\t\t\t\t- (IShortStrawThresholds.S_WINDOW * 2)];\n\n\t\t// Calculate the straws\n\t\tfor (int i = IShortStrawThresholds.S_WINDOW; i < resampledStroke\n\t\t\t\t.getNumPoints() - IShortStrawThresholds.S_WINDOW; i++) {\n\n\t\t\tstraws[i] = resampledStroke.getPoint(\n\t\t\t\t\ti - IShortStrawThresholds.S_WINDOW).distance(\n\t\t\t\t\tresampledStroke\n\t\t\t\t\t\t\t.getPoint(i + IShortStrawThresholds.S_WINDOW));\n\n\t\t\t// For finding the median\n\t\t\tsortedStraws[i - IShortStrawThresholds.S_WINDOW] = straws[i];\n\t\t}\n\n\t\t// Initialize the corner array, with the start point\n\t\tList<Integer> corners = new ArrayList<Integer>();\n\t\tcorners.add(0);\n\n\t\t// Calculate our local minimum thresholds\n\t\tArrays.sort(sortedStraws);\n\t\tdouble medianDist = sortedStraws[sortedStraws.length / 2];\n\t\tdouble threshold = MEDIAN_PERCENTAGE * medianDist;\n\n\t\t// Find the shortest straws\n\t\tfor (int i = IShortStrawThresholds.S_WINDOW; i < straws.length\n\t\t\t\t- IShortStrawThresholds.S_WINDOW; i++) {\n\n\t\t\t// If we are below the median threshold\n\t\t\tif (straws[i] < threshold) {\n\n\t\t\t\tdouble localMinimum = Double.POSITIVE_INFINITY;\n\t\t\t\tint localMinimumIndex = i;\n\n\t\t\t\t// Find only the local minimum\n\t\t\t\t/*\n\t\t\t\t * while (i < straws.length - IShortStrawThresholds.S_WINDOW &&\n\t\t\t\t * straws[i] < threshold) { if (straws[i] < localMinimum) {\n\t\t\t\t * localMinimum = straws[i]; localMinimumIndex = i; }\n\t\t\t\t * \n\t\t\t\t * i++; }\n\t\t\t\t */\n\n\t\t\t\t// Add the index of the local minimum to our list\n\t\t\t\tcorners.add(new Integer(localMinimumIndex));\n\t\t\t}\n\t\t}\n\n\t\t// Add the end point\n\t\tcorners.add(resampledStroke.getNumPoints() - 1);\n\n\t\t// Map the resampled corners to original points\n\t\tList<Integer> allCorners = getOriginalStrokeCorners(corners,\n\t\t\t\tresampledStroke, m_stroke);\n\n\t\treturn allCorners;\n\t}",
"@Test\n\tpublic void checkImageBorders() {\n\t\tOrientationHistogramSift alg = new OrientationHistogramSift(36,2.5,1.5);\n\n\t\tGrowQueue_F64 found = alg.getOrientations();\n\n\t\tdouble theta = 1.2;\n\t\tdouble dx = Math.cos(theta);\n\t\tdouble dy = Math.sin(theta);\n\t\tsetAllDerivatives(dx,dy);\n\n\t\talg.setScaleSpace(ss);\n\n\t\talg.process(0,0,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(width-1,0,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(width-1,height-1,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t\talg.process(0,height-1,8);\n\t\tassertEquals(1,found.size);\n\t\tassertTrue(Math.abs(UtilAngle.distHalf(theta, found.get(0))) <= tol);\n\n\t}",
"public double getMinWidth() { return getMinWidth(-1); }",
"double getWidth();",
"double getWidth();",
"public int getWidth();",
"public int getWidth();",
"public int getWidth();",
"public double getWidth() { return _width<0? -_width : _width; }",
"@Override\n public int getMinimumWidth() {\n return patternDrawable.getMinimumWidth();\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public float getWidth()\n {\n return getUpperRightX() - getLowerLeftX();\n }",
"AngleSmaller createAngleSmaller();",
"private static Shape m25217a(int i) {\n r0 = new float[8];\n i = (float) i;\n r0[0] = i;\n r0[1] = i;\n r0[2] = i;\n r0[3] = i;\n r0[4] = i;\n r0[5] = i;\n r0[6] = i;\n r0[7] = i;\n return new RoundRectShape(r0, null, null);\n }",
"int bubbleBeam();",
"public float getWidth();",
"public float getWidth()\n {\n return getBounds().width();\n }",
"public RMRect getFrame() { return isRSS()? convertRectToShape(getBoundsInside(), _parent) : getBounds(); }",
"Shape getNext(int width);",
"public double getWidth() {\n return this.size * 2.0; \n }",
"Length getWidth();",
"double getNewWidth();",
"public double getWidthInDeg();",
"int getWidth1();",
"public double getWidth() {\n\t\tdouble width = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn width;\n\t}",
"public double minAreaFreeRect(int[][] points) {\n if (points.length < 4) {\n return 0;\n }\n\n //key: info of distance, x,y center positions\n double minVal = Double.MAX_VALUE;\n Map<String, List<int[]>> map = new HashMap<>();\n for (int i = 0; i < points.length - 1; i++) {\n for (int j = i + 1; j < points.length; j++) {\n long dis = (points[i][0] - points[j][0]) * (points[i][0] - points[j][0]) +\n (points[i][1] - points[j][1]) * (points[i][1] - points[j][1]);\n double centerX = (double)(points[i][0] + points[j][0]) / 2;\n double centerY = (double)(points[i][1] + points[j][1]) / 2;\n String key = dis + \" \" + centerX + \" \" + centerY;\n if (!map.containsKey(key)) {\n map.put(key, new ArrayList<int[]>());\n }\n map.get(key).add(new int[]{i,j});\n }\n }\n\n //therefore all vals stored in same key can form rectangles\n //just try all of them to find the one with smallest area\n for (String key: map.keySet()) {\n if (map.get(key).size() < 2) {\n continue;\n }\n List<int[]> values = map.get(key);\n for (int i = 0; i < values.size() - 1; i++) {\n for (int j = i + 1; j < values.size(); j++) {\n int p1 = values.get(i)[0];\n int p2 = values.get(i)[1];\n int p3 = values.get(j)[0];\n\n double len1 = Math.sqrt((points[p1][0] - points[p3][0]) * (points[p1][0] - points[p3][0]) + (points[p1][1] - points[p3][1]) * (points[p1][1] - points[p3][1]));\n double len2 = Math.sqrt((points[p2][0] - points[p3][0]) * (points[p2][0] - points[p3][0]) + (points[p2][1] - points[p3][1]) * (points[p2][1] - points[p3][1]));\n\n minVal = Math.min(minVal, len1 * len2);\n }\n }\n }\n return minVal == Double.MAX_VALUE? 0: minVal;\n\n }",
"@Override\r\n public double perimeter() {\n return (height+width)*2;\r\n }",
"public double getWidth() {\r\n \tif (this.x1 >= this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x1 - this.x3), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t} else if (this.x1 < this.x3) {\r\n \t\tif (this.y1 >= this.y3) {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y1 - this.y3), 2));\r\n \t\t} else {\r\n \t\t\twidth = Math.sqrt(Math.pow((this.x3 - this.x1), 2) + Math.pow((this.y3 - this.y1), 2));\r\n \t\t}\r\n \t}\r\n \treturn(width);\r\n }",
"private Corners findCorners(ArrayList<MatOfPoint> markers) {\n ArrayList<Point> corners = new ArrayList<>();\n for (MatOfPoint mrk : markers) {\n List<Point> list = mrk.toList();\n mrk.release();\n double sumx = 0, sumy = 0;\n for (Point p : list) {\n sumx += p.x;\n sumy += p.y;\n }\n corners.add(new Point(sumx/list.size(), sumy/list.size()));\n // System.out.println(list.size());\n }\n sortCorners(corners);\n // for (Point p : corners) System.out.println(p.x + \" \" + p.y);\n for (int i = 0; i < corners.size(); i++) {\n corners.get(i).x /= width;\n corners.get(i).y /= height;\n }\n if (corners.size() == 4) {\n return new Corners(corners.get(0), corners.get(1), corners.get(3), corners.get(2));\n }\n return null;\n }",
"double foil_lift () {\n return wing.lift + stab.lift + fuse.lift;\n }",
"public String whatShape();",
"public Point relativePoint(Point p){\n System.out.println(\"DENSITY:\"+getResources().getDisplayMetrics().density);\n DisplayMetrics dm = getResources().getDisplayMetrics();\n System.out.println(dm);\n\n //--good for MOUNTAIN_SIZE==1.5\n// float scale = 1 * getResources().getDisplayMetrics().density /( dm.xdpi/dm.densityDpi) ;\n// float y_move = mountain_max;\n//\n// System.out.println(\"POOOINT: \"+p+\" => \"+new Point((int)(p.x*scale/MOUNTAIN_SIZE), (int)((p.y)*scale/MOUNTAIN_SIZE-y_move)));\n// return new Point((int)(p.x*scale/MOUNTAIN_SIZE), (int)((p.y)*scale/MOUNTAIN_SIZE-y_move));\n\n\n //a bit too big when increasing mountine_size\n// float scale = 1 /( dm.xdpi/dm.densityDpi) ;\n// float y_move = mountain_max;\n//\n// Point ret = new Point((int)(p.x*MOUNTAIN_SIZE/scale), (int)((p.y)*MOUNTAIN_SIZE/scale-y_move));\n// System.out.println(\"POOOINT: \"+p+\" => \"+ret);\n// System.out.println(\"POOOINT: \"+icons.getLayoutParams().width+\", \"+ icons.getLayoutParams().height);\n\n float scale = 1 /( dm.xdpi/dm.densityDpi) ;\n float y_move = mountain_max;\n\n\n\n Point ret = new Point((int)(p.x*MOUNTAIN_SIZE/scale/mountain.getLayoutParams().width*icons.getLayoutParams().width),\n (int)((p.y)*MOUNTAIN_SIZE/scale/mountain.getLayoutParams().height*icons.getLayoutParams().height)-mountain_max);\n //Point ret = new Point((int)((float)p.x/(float)mountain.getLayoutParams().width*icons.getLayoutParams().width),\n // (int)((float)p.y/(float)mountain.getLayoutParams().height*icons.getLayoutParams().height)-(int)(mountain_max));\n System.out.println(\"POOOINT: \"+p+\" => \"+ret);\n System.out.println(\"POOOINT: \"+(float)p.x/(float)mountain.getLayoutParams().width+\", \"+ (float)p.y/(float)mountain.getLayoutParams().height);\n\n\n return ret;\n\n\n }",
"private ResizeContext getHoverArea(Point p) {\n ResizeContext toRet = null;\n ResizeType resizeType = null;\n Point resizePoint = null;\n for (Rectangle rectangle : originalAreas) {\n if (isMatch(new Point(rectangle.x, rectangle.y), p)) {\n resizeType = ResizeType.CORNER;\n resizePoint = new Point(rectangle.x, rectangle.y); \n } else if (isMatch(new Point(rectangle.x + rectangle.width, rectangle.y), p)) {\n resizeType = ResizeType.CORNER;\n resizePoint = new Point(rectangle.x + rectangle.width, rectangle.y); \n } else if (isMatch(new Point(rectangle.x, rectangle.y + rectangle.height), p)) {\n resizeType = ResizeType.CORNER;\n resizePoint = new Point(rectangle.x, rectangle.y + rectangle.height); \n } else if (isMatch(new Point(rectangle.x + rectangle.width, rectangle.y + rectangle.height), p)) {\n resizeType = ResizeType.CORNER;\n resizePoint = new Point(rectangle.x + rectangle.width, rectangle.y + rectangle.height);\n } \n // TODO The side resizing is not yet supported.\n// else if (isMatch(new Point(rectangle.x + rectangle.width / 2, rectangle.y), p)) {\n// resizeType = ResizeType.SIDE;\n// resizePoint = new Point(rectangle.x + rectangle.width / 2, rectangle.y); \n// } else if (isMatch(new Point(rectangle.x + rectangle.width, rectangle.y + rectangle.height / 2), p)) {\n// resizeType = ResizeType.SIDE;\n// resizePoint = new Point(rectangle.x + rectangle.width, rectangle.y + rectangle.height / 2); \n// } else if (isMatch(new Point(rectangle.x, rectangle.y + rectangle.height / 2), p)) {\n// resizeType = ResizeType.SIDE;\n// resizePoint = new Point(rectangle.x, rectangle.y + rectangle.height / 2); \n// } else if (isMatch(new Point(rectangle.x + rectangle.width / 2, rectangle.y + rectangle.height), p)) {\n// resizeType = ResizeType.SIDE;\n// resizePoint = new Point(rectangle.x + rectangle.width / 2, rectangle.y + rectangle.height); \n// }\n\n if (resizeType != null) {\n toRet = new ResizeContext(resizeType, resizePoint, rectangle);\n break;\n }\n }\n\n return toRet;\n }",
"public float getLeftRectF () { return atomSpriteBoundary.left; }",
"Long getResultMaskBoundary();",
"AngleResource inclination();",
"String getWidth();",
"String getWidth();",
"@Test\n public void testcalPerimeterRectangle4() {\n double ex = 8;\n \n startPoint.setX(-1);\n startPoint.setY(-1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calPerimeterRectangle(startPoint, endPoint);\n assertNotEquals(ex, ac, 0);\n }",
"@Override\n\tpublic void perimeter() {\n\t\tSystem.out.println(\"梯形的周长\"+getPerimeter());\n\t}",
"@Override\n int perimeterFigure() {\n if (!isRealFigure()) {\n return -1;\n }\n //When the triangular prism is real\n return 2 * super.perimeterFigure() + 3 * getD();\n }",
"@Override\r\n\t\tpublic int recArea() {\n\t\t\treturn length*width;\r\n\t\t}",
"@Override\n public int getIntrinsicWidth() {\n return patternDrawable.getIntrinsicWidth();\n }",
"public void buildInitialBand()\r\n\t{\n\t\r\n\tint bl = boundary.size();\r\n\tfor(int i=0; i<bl; i++) \r\n\t\t{\r\n\t\tInt2d bCur = boundary.get(i);\r\n\t\t//System.out.println(bCur.x + \", \" + bCur.y + \": size = \" + heap.size());\r\n\t\t\r\n\t\ttestPointsAround(bCur.x,bCur.y);\r\n\t\t}\r\n\t\r\n\t}",
"public TriangleBumper(Double x,Double y,Double orientation,List<Gadget>triggeredGadgets){\n this.x = x;\n this.y = y;\n this.collideCirc = new ArrayList<Circle>(); //corner that ball will collide with\n this.collideLine = new ArrayList<LineSegment>(); //side that ball will collide with\n this.orientation = orientation;\n this.triggeredGadgets = new ArrayList<>();\n for (Gadget gadget : triggeredGadgets){\n this.triggeredGadgets.add(gadget);\n }\n //circle at each corner\n //line segment at each side\n if(this.orientation == 0.0){\n this.circles = Arrays.asList(new Circle(x,y,0.0), new Circle(x, y+1, 0.0), new Circle(x+1, y, 0.0));\n this.lines = Arrays.asList(new LineSegment(x+1, y, x, y+1), new LineSegment(x, y, x, y+1), new LineSegment(x,y, x+1, y));\n }else if (this.orientation == 90.0){\n this.circles = Arrays.asList(new Circle(x,y,0.0), new Circle(x+1, y, 0.0), new Circle(x+1, y+1,0.0));\n this.lines = Arrays.asList(new LineSegment(x, y, x+1, y), new LineSegment(x+1, y, x+1, y+1), new LineSegment(x,y, x+1, y+1));\n }else if (this.orientation == 180.0){\n this.circles = Arrays.asList(new Circle(x,y+1, 0.0), new Circle(x+1, y, 0.0), new Circle(x+1, y+1, 0.0));\n this.lines = Arrays.asList(new LineSegment(x, y+1, x+1, y), new LineSegment(x+1, y, x+1, y+1), new LineSegment(x+1, y+1, x, y+1));\n }else{\n this.circles = Arrays.asList(new Circle(x,y,0.0), new Circle(x, y+1, 0.0), new Circle(x+1, y+1, 0.0));\n this.lines = Arrays.asList(new LineSegment(x,y,x, y+1), new LineSegment(x,y+1, x+1, y+1), new LineSegment(x+1, y+1, x, y));\n }\n checkRep();\n\n }",
"@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .7, 1.1, .3, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower inner corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1.1, .3, .7, .25, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> middle\r\n\t\tgetPositions().putAll(createSymmetricLines(.7, .25, .2, 1.35, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//inner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .5, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricLines(0.8, .4, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricPoints(0.9, .5, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_RIGHT, WingPart.INNER_RIGHT));\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_LEFT, WingPart.INNER_LEFT));\r\n\t}",
"@Test\r\n public void testGetEnclosingShapes() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n assertEquals(expectedOutput, screen.getEnclosingShapes(new Point(5, 5)));\r\n }",
"public ArrayList<Rect> useAllWidth(ArrayList<Rect> arrangedRectList) {\n\n if (arrangedRectList.size() == 1 ) {\n arrangedRectList.get(0).right = getWidth();\n return arrangedRectList;\n }\n\n ArrayList<Rect> modifiedRectList = arrangedRectList;\n ArrayList<Rect> currentRectList = arrangedRectList;\n\n int totalLeftMargin = mHourWidth + mEventMarginLeft;\n\n for(int i = 0; i < currentRectList.size(); i++) {\n int maxExtension = 0;\n int collisionCount = 0;\n for (int j = 0; j < modifiedRectList.size(); j++)\n {\n //check if it is compared to the same rect\n if (currentRectList.get(i).contains(modifiedRectList.get(j))) {\n Log.d(\"SAMERECT\", \"same rect\");\n continue;\n }\n\n //breaks loop when rect is not supposed to be extended\n if (currentRectList.get(i).left == totalLeftMargin && currentRectList.get(i).right == modifiedRectList.get(j).left\n// ||\n// currentRectList.get(i).top <= modifiedRectList.get(j).bottom && modifiedRectList.get(j).top <= currentRectList.get(i).bottom && currentRectList.get(i).right == modifiedRectList.get(i).left\n ||\n currentRectList.get(i).right + eventWidth > getWidth()\n ) {\n Log.d(\"SAMERECT\", \"break within condition\");\n maxExtension = currentRectList.get(i).right;\n// break;\n }\n\n\n if (currentRectList.get(i).right >= modifiedRectList.get(j).left) {\n if (currentRectList.get(i).top <= modifiedRectList.get(j).bottom && modifiedRectList.get(j).top <= currentRectList.get(i).bottom) {\n if (currentRectList.get(i).right == modifiedRectList.get(j).left) {\n maxExtension = currentRectList.get(i).right;\n break;\n } else {\n maxExtension = getWidth();\n }\n } else {\n maxExtension = getWidth();\n }\n } else {\n if (currentRectList.get(i).top <= modifiedRectList.get(j).bottom && modifiedRectList.get(j).top <= currentRectList.get(i).bottom) {\n maxExtension = modifiedRectList.get(j).left;\n } else {\n maxExtension = getWidth();\n break;\n }\n\n }\n\n }\n// if (maxExtension > 0 && collisionCount == 0) {\n// if (maxExtension == getWidth()) {\n// currentRectList.get(i).right = getWidth();\n// } else {\n currentRectList.get(i).right = maxExtension;\n// }\n// }\n\n\n }\n\n return currentRectList;\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"double getXLength();",
"protected void applyOffsetCorrection() {\n\t\t// Check collision with the left side of the window\n\t\tint overflow = -x;\n\t\tint balloonWidth = balloonTip.getWidth();\n\n\t\tif (overflow > 0) {\n\t\t\tx += overflow;\n\t\t\thOffset -= overflow;\n\t\t\t// Take into account the minimum horizontal offset\n\t\t\tif (hOffset < minimumHorizontalOffset) {\n\t\t\t\thOffset = minimumHorizontalOffset;\n\t\t\t\tif (flipX) {\n\t\t\t\t\tx += -overflow + (balloonWidth - preferredHorizontalOffset) - minimumHorizontalOffset;\n\t\t\t\t}else {\n\t\t\t\t\tx += -overflow + preferredHorizontalOffset - minimumHorizontalOffset;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check collision with the right side of the window\n\t\toverflow = (x+balloonWidth) - balloonTip.getTopLevelContainer().getWidth();\n\t\tif (overflow > 0) {\n\t\t\tx -= overflow;\n\t\t\thOffset += overflow;\n\n\t\t\t// Take into account the minimum horizontal offset\n\t\t\tif (hOffset > balloonWidth - minimumHorizontalOffset) {\n\t\t\t\thOffset = balloonWidth - minimumHorizontalOffset;\n\t\t\t\tif (flipX) {\n\t\t\t\t\tx += overflow + preferredHorizontalOffset + minimumHorizontalOffset;\n\t\t\t\t}else {\n\t\t\t\t\tx += overflow - (balloonWidth - preferredHorizontalOffset) + minimumHorizontalOffset;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}",
"@Override\n\tpublic void motionScheme(int a){\n\t\tint i;\n\t\tArrayList<Dimension> list = new ArrayList<Dimension>();\n\t\tCase t;\n\t\tboolean ok=true;\n\t\t\n\t\ti = this.x-1;\n\t\twhile((i>-1)&&ok){\n\t\t\tt = Window.getTabCase(i,y);\n\t\t\t\n\t\t\tif((t.getOccupant()==null)){\n\t\t\t\tlist.add(new Dimension(y,i));\n\t\t\t}else if(((t.getOccupant().getColor()!=this.col))){//Si la case est occupee par une piece de couleur differente\n\t\t\t\tif(a!=1){\n\t\t\t\t\tif(t.getOccupant().getRep().substring(0,3).equals(\"Roi\")){\n\t\t\t\t\t\tt.getOccupant().inChess(this);\n\t\t\t\t\t\tok=false;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlist.add(new Dimension(y,i));\n\t\t\t\t\t\tok=false;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(new Dimension(y,i));\n\t\t\t\t\tok=false;\n\t\t\t\t}\n\t\t\t}else if(((t.getOccupant().getColor()==this.col))){\n\t\t\t\tok=false;\n\t\t\t}\n\t\t\t--i;\n\t\t}\n\t\t\n\t\tok=true;\n\t\ti = this.x+1;\n\t\twhile((i<8)&&ok){\n\t\t\tt = Window.getTabCase(i,y);\n\t\t\t\n\t\t\tif((t.getOccupant()==null)){\n\t\t\t\tlist.add(new Dimension(y,i));\n\t\t\t}else if(((t.getOccupant().getColor()!=this.col))){//Si la case est occupee par une piece de couleur differente\n\t\t\t\tif(a!=1){\n\t\t\t\t\tif(t.getOccupant().getRep().substring(0,3).equals(\"Roi\")){\n\t\t\t\t\t\tt.getOccupant().inChess(this);\n\t\t\t\t\t\tok=false;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlist.add(new Dimension(y,i));\n\t\t\t\t\t\tok=false;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(new Dimension(y,i));\n\t\t\t\t\tok=false;\n\t\t\t\t}\n\t\t\t}else if(((t.getOccupant().getColor()==this.col))){\n\t\t\t\tok=false;\n\t\t\t}\n\t\t\t++i;\n\t\t}\n\t\t\n\t\tok=true;\n\t\ti = this.y-1;\n\t\twhile((i>-1)&&ok){\n\t\t\tt = Window.getTabCase(x,i);\n\t\t\t\n\t\t\tif((t.getOccupant()==null)){\n\t\t\t\tlist.add(new Dimension(i,x));\n\t\t\t}else if(((t.getOccupant().getColor()!=this.col))){//Si la case est occupee par une piece de couleur differente\n\t\t\t\tif(a!=1){\n\t\t\t\t\tif(t.getOccupant().getRep().substring(0,3).equals(\"Roi\")){\n\t\t\t\t\t\tt.getOccupant().inChess(this);\n\t\t\t\t\t\tok=false;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlist.add(new Dimension(i,x));\n\t\t\t\t\t\tok=false;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(new Dimension(i,x));\n\t\t\t\t\tok=false;\n\t\t\t\t}\n\t\t\t}else if(((t.getOccupant().getColor()==this.col))){\n\t\t\t\tok=false;\n\t\t\t}\n\t\t\t--i;\n\t\t}\n\t\t\n\t\t\n\t\tok=true;\n\t\ti = this.y+1;\n\t\twhile((i<8)&&ok){\n\t\t\tt = Window.getTabCase(x,i);\n\t\t\t\n\t\t\tif((t.getOccupant()==null)){\n\t\t\t\tlist.add(new Dimension(i,x));\n\t\t\t}else if(((t.getOccupant().getColor()!=this.col))){//Si la case est occupee par une piece de couleur differente\n\t\t\t\tif(a!=1){\t\n\t\t\t\t\tif(t.getOccupant().getRep().substring(0,3).equals(\"Roi\")){//piece dans la case == Roi\n\t\t\t\t\t\tt.getOccupant().inChess(this);\n\t\t\t\t\t\tok=false;\n\t\t\t\t\t}else{//occupant de la case different d'un Roi\n\t\t\t\t\t\tlist.add(new Dimension(i,x));\n\t\t\t\t\t\tok=false;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tlist.add(new Dimension(i,x));\n\t\t\t\t\tok=false;\n\t\t\t\t}\n\t\t\t}else if(((t.getOccupant().getColor()==this.col))){//case occupee par une piece de meme couleur\n\t\t\t\tok=false;\n\t\t\t}\n\t\t\t++i;\n\t\t}\n\t\t\n\t\tthis.dep = list;\n\t}",
"public FPointType calculateUpperLeft() {\n fRectBound = getBounds2D();\n FPointType fptUpperLeft = new FPointType(fRectBound.x, fRectBound.y);\n calculate(fptUpperLeft);\n \n rotateRadian = 0.0f;\n \n return fptUpperLeft;\n }",
"public Shape getClipShape() { return null; }",
"public int minAreaRect(int[][] points) {\n if (points.length < 4)\n return 0;\n\n // in order to check if a certain points exists.¬\n Set<Integer> allPointsHash = new HashSet<>(points.length);\n for (int i = 0; i < points.length; i++)\n allPointsHash.add(points[i][0] * 40001 + points[i][1]);\n\n int ans = Integer.MAX_VALUE;\n\n for (int i = 0; i < points.length; ++i)\n for (int j = i + 1; j < points.length; ++j)\n // not in the same x/y axis\n if (points[i][0] != points[j][0] && points[i][1] != points[j][1])\n // has another two points in order to form a rectangle\n if (allPointsHash.contains(40001 * points[i][0] + points[j][1])\n && allPointsHash.contains(40001 * points[j][0] + points[i][1]))\n ans = Math.min(ans, Math.abs(points[j][0] - points[i][0])\n * Math.abs(points[j][1] - points[i][1]));\n\n return ans == Integer.MAX_VALUE ? 0 : ans;\n }",
"private Floor getLowestButPan(LiftButton[] bP){\r\n\t\t\r\n\t\tint x=0;\r\n\t\twhile(x<numberOfFloors){\r\n\t\t\tif(bP[x]==LiftButton.ACTIVE)return new Floor(x);\r\n\t\t\tx++;\r\n\t\t}\r\n\t\treturn new Floor(numberOfFloors-1);\r\n\t}",
"public int getWidth() {\n // Replace the following line with your solution.\n return width;\n }",
"public double lineLenght() {\n\t\tdouble xdif = p1.getX() - p2.getX();\n\t\tdouble ydif = p1.getY() - p2.getY();\n\t\treturn Math.sqrt(xdif*xdif+ydif*ydif);\t\n\t\t\t\n\t}",
"public int leastBorders(int[] x, int[] y, int[] r, int x1, int y1, int x2, int y2) {\n\t\tint answer = 0;\r\n\t\tfor (int i = 0; i < x.length ; i++){\r\n\t\t\t\r\n\t\t\tboolean a = inCircle(x1,x[i],y1,y[i],r[i]);\r\n\t\t\tboolean b = inCircle(x2,x[i],y2,y[i],r[i]);\r\n\t\t\t\r\n\t\t\tif ((a || b) && !(a && b)) {\r\n\t\t\t\tanswer += 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn answer;\r\n\t}",
"public double getRectWidth() {\n double baseWidth = Hex.INNER_DIAMETER * hexWidth;\n double offset = Hex.INNER_RADIUS * (hexHeight - 1);\n return baseWidth + offset;\n }",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"private float getRunwayWidth() {\n\t\treturn runwayWidth;\n\t}"
] | [
"0.53536695",
"0.5326781",
"0.5257522",
"0.5151036",
"0.5095154",
"0.5076894",
"0.50728863",
"0.5044326",
"0.49851233",
"0.49606356",
"0.49262527",
"0.4920923",
"0.48557356",
"0.48402876",
"0.48382267",
"0.48308244",
"0.48306286",
"0.48262683",
"0.4821786",
"0.48042136",
"0.4796766",
"0.4796766",
"0.47955585",
"0.47945368",
"0.47928086",
"0.47887895",
"0.47887895",
"0.47886735",
"0.47886735",
"0.47886735",
"0.47789454",
"0.47789288",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47787136",
"0.47772017",
"0.47732866",
"0.4772868",
"0.47722983",
"0.47717825",
"0.4757892",
"0.47495034",
"0.47299966",
"0.47218224",
"0.47166157",
"0.47121653",
"0.47094303",
"0.46968418",
"0.46817014",
"0.46779603",
"0.4673469",
"0.46697515",
"0.46696624",
"0.46622157",
"0.46586448",
"0.46488908",
"0.46481252",
"0.464411",
"0.4641585",
"0.46334004",
"0.46279386",
"0.46279386",
"0.4625485",
"0.46205252",
"0.4618259",
"0.46134165",
"0.46114314",
"0.45999625",
"0.45981887",
"0.45885164",
"0.45871308",
"0.458407",
"0.45813802",
"0.45804733",
"0.45783213",
"0.45761564",
"0.45730072",
"0.45689297",
"0.45673507",
"0.45642555",
"0.4559841",
"0.45569003",
"0.4555894",
"0.454759",
"0.45448312",
"0.4544268"
] | 0.67897797 | 0 |
Constructor Sets the specifications of the possession | public Possession(String name, Image itemImg, float itemPrice) {
_name = name;
_img = itemImg;
_price = itemPrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PSRelation()\n {\n }",
"public Position() {\n\n\t}",
"public Competence() {\r\n\t\tsuper();\r\n\t}",
"public PppoeSessionInfo() {\n }",
"public Parametros() {\r\n semilla = SEMILLA_DEFECTO;\r\n numeroPistas = NUMERO_PISTAS_DEFECTO;\r\n duracionSlot = DURACION_SLOT_DEFECTO;\r\n frecuencia = FRECUENCIA_DEFECTO;\r\n duracionMedia = DURACION_MEDIA_DEFECTO;\r\n duracionDesviacion = DURACION_DESVIACION_DEFECTO;\r\n duracionMinima = DURACION_MINIMA_DEFECTO;\r\n demoraMedia = DEMORA_MEDIA_DEFECTO;\r\n demoraDesviacion = DEMORA_DESVIACION_DEFECTO;\r\n }",
"public Plato(){\n\t\t\n\t}",
"public FrameBodyTPOS()\n {\n setObjectValue(DataTypes.OBJ_TEXT_ENCODING, TextEncoding.ISO_8859_1);\n setObjectValue(DataTypes.OBJ_TEXT, new PartOfSet.PartOfSetValue());\n }",
"public SessionOpts() {\n traffic = TRAFFIC_MESSAGES;\n isMultipoint = false;\n proximity = PROXIMITY_ANY;\n transports = TRANSPORT_ANY;\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"public Partage() {\n }",
"public ParamShoppingCartTest(int precio1, int precio2) {\n \n this.precio1 = precio1;\n this.precio2 = precio2; \n }",
"public Potencial() {\r\n }",
"public SPIEL() \n {\n this( 800 , 600 , false , false , false );\n }",
"public Robot(Case pos, int vitesse){\n \tthis.position=pos;\n \tthis.vitesse=(int) (vitesse/3.6);\n \tthis.enDeplacement=false; \n \tthis.destination=new LinkedList<Direction>();\n }",
"public Pam() { //you dont need anything in this bc its only relvent for the class Alignment \n\n }",
"public Propuestas() {}",
"public Puppy() {\n\t\t//TODO\n\t}",
"public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }",
"public PennCnvSeq() {\n }",
"public SessionParameters () {\n\t\tsuper();\n\t\tlocale = Locale.getDefault();\n\t\tcustomDictionaries = new HashSet<>();\n\t}",
"public ExtractionParameters(){\n\t\tif (!subset){\n\t\t\tstartFrame = 1;\n\t\t}\n\t}",
"public MPaciente() {\r\n\t}",
"public Player(Playground_Registration pgr) {\n this.pgr = pgr;\n pgr.setPName(\"barca\");\n System.out.println(pgr.getPName());\n pgr.setLocation(\"naser city\");\n System.out.println(pgr.getLocation());\n pgr.setSize(5);\n System.out.println(pgr.getSize());\n pgr.setAvailable_Hour(3);\n System.out.println(pgr.getAvailable_Hour());\n pgr.setPrice_Of_hour(120);\n System.out.println(pgr.getPrice_Of_hour());\n pgr.setPlayground_Status(\"available\");\n System.out.println(pgr.getPlayground_Status());\n pgr.setCancelation_Perioud(\"\");\n System.out.println(pgr.getCancelation_Perioud());\n System.out.println(\"i want to book this play ground\");\n\n }",
"public Pose() {\n x = 0;\n y = 0;\n heading = 90;\n originalHeading = 90;\n }",
"public Question() {\r\n // This is the defult constructor b/c it takes no parameters\r\n firstPrompt = \"Please enter something:\";\r\n minScale = 1;\r\n maxScale = 10;\r\n secondPrompt = \"Additional comments:\";\r\n }",
"Paranormal(String name, String origin, int dangerrating, String foodType, int foodAmt){\n super(name, origin, dangerrating);\n foodType = \"meat\";\n foodAmt = 5;\n }",
"public POS(int position) {\n \t\tthis.position = position;\n \t}",
"public ParkingSpace() {}",
"public Arrangement() {\n\t}",
"public Pasien() {\r\n }",
"protected AbstractXmlSpecification() {\n\t\tthis.properties = new Properties();\n\t}",
"public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}",
"private TAPosition()\n {\n\n }",
"protected ParameterList(){\n //title = t;\n //cellWorld = cw;\n }",
"protected void setSequnce(ProtocolSequence ps) {\n\n\t\tps.add(\"result\", 0);\n\t\tps.add(\"fightId\", 0);\n\t\t// ps.add(\"landForm\", 0);\n\t\tps.addString(\"fightMapType\", \"flashCode\", 0);\n\t\tps.add(\"fightType\", 0);\n\t\tps.add(\"endTime1\", 0);\n\t\tps.add(\"endTime2\", 0);\n\t\tps.add(\"controlType\", 0);\n\t\tps.add(\"count\", 0);\n\t\tps.addObjectArray(\n\t\t\t\t\"list\",\n\t\t\t\t\"com.snail.webgame.engine.component.scene.protocal.fight.in.RoleInFightArmy\",\n\t\t\t\t\"count\");\n\t\t// ps.add(\"duelEndTime1\", 0);\n\t\t// ps.add(\"maxDeulRound\", 0);\n\t\t// ps.add(\"duelState\", 0);\n\t\t// ps.add(\"duelPhalanxCount\", 0);\n\t\t// ps.addObjectArray(\"duelPhalanxList\",\n\t\t// \"com.snail.webgame.game.protocal.fight.in.DuelPhalanxRe\",\n\t\t// \"duelPhalanxCount\");\n\t}",
"public Classroom() {\n\t\tseats = DEFAULT_SEATS;\n\t}",
"public Constructor(){\n\t\t\n\t}",
"public SimulationSettings() {\r\n\t\tmaxParticles = 50000;\r\n\t\ttimeStep = 0.0166667;\r\n\t\tradius = 5;\r\n\t\tcollisionRadius = 3;\r\n\t\tp0 = 10;\r\n\t\ts = 0.3;\r\n\t\tb = 0.5;\r\n\t\tk = 2;\r\n\t\tkNear = 0.4;\r\n\t\tfriction = 0.6;\r\n\t\tgravity = new Gravity(0, 9.81);\r\n\t}",
"@Override\r\n\tpublic void init() { \r\n\t\t\r\n\t\tsession = -1;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseLearn = 20;\r\n\t\tprogressLearn = 10;\r\n\t\tnoisLearn = 0.2;\r\n\t\t\r\n\t\treservationPanic = 0.2;\r\n\t\tmyBids = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\t\topponentBidsB = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\r\n\t\tdf = utilitySpace.getDiscountFactor();\r\n\t\tif (df==0) df = 1; \r\n\r\n\t\ttry {\r\n\t\t\tinitStates();\r\n\t\t} catch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}",
"public void constructor() {\n setEdibleAnimals();\n }",
"public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }",
"public DetonationPdu(edu.nps.moves.jaxb.dis.DetonationPdu x)\n {\n super(x); // Call superclass constructor\n\n\n edu.nps.moves.dis.EntityID foo_0;\n if(x.getMunitionID() == null)\n foo_0 = new edu.nps.moves.dis.EntityID();\n else\n foo_0 = new edu.nps.moves.dis.EntityID(x.getMunitionID() );\n this.setMunitionID(foo_0);\n\n\n edu.nps.moves.dis.EventID foo_1;\n if(x.getEventID() == null)\n foo_1 = new edu.nps.moves.dis.EventID();\n else\n foo_1 = new edu.nps.moves.dis.EventID(x.getEventID() );\n this.setEventID(foo_1);\n\n\n edu.nps.moves.dis.Vector3Float foo_2;\n if(x.getVelocity() == null)\n foo_2 = new edu.nps.moves.dis.Vector3Float();\n else\n foo_2 = new edu.nps.moves.dis.Vector3Float(x.getVelocity() );\n this.setVelocity(foo_2);\n\n\n edu.nps.moves.dis.Vector3Double foo_3;\n if(x.getLocationInWorldCoordinates() == null)\n foo_3 = new edu.nps.moves.dis.Vector3Double();\n else\n foo_3 = new edu.nps.moves.dis.Vector3Double(x.getLocationInWorldCoordinates() );\n this.setLocationInWorldCoordinates(foo_3);\n\n\n edu.nps.moves.dis.BurstDescriptor foo_4;\n if(x.getBurstDescriptor() == null)\n foo_4 = new edu.nps.moves.dis.BurstDescriptor();\n else\n foo_4 = new edu.nps.moves.dis.BurstDescriptor(x.getBurstDescriptor() );\n this.setBurstDescriptor(foo_4);\n\n this.detonationResult = x.getDetonationResult();\n this.numberOfArticulationParameters = x.getNumberOfArticulationParameters();\n this.pad = x.getPad();\n this.articulationParameters = new ArrayList();\n for(int idx = 0; idx < x.getArticulationParameters().size(); idx++)\n {\n this.articulationParameters.add( new edu.nps.moves.dis.ArticulationParameter((edu.nps.moves.jaxb.dis.ArticulationParameter) x.getArticulationParameters().get(idx)));\n }\n }",
"public Professor()\n\t{\n\t\t//stuff\n\t}",
"public TutorIndustrial() {}",
"public Supercar() {\r\n\t\t\r\n\t}",
"public Produto() {}",
"public TcgPlatformSpecification() {\n\t}",
"public ProposalSpecialReviewForm() {\r\n }",
"public PAP()\n {\n _fWindowControl = 1;\n //lspd[0] = 240;\n _lspd[1] = 1;\n _ilvl = 9;\n }",
"public static void initializePreqs() { \r\n\t\tlist = new ArrayList<Freebody>();\r\n\t\ttrackers = new ArrayList<TrackingPoint>();\r\n\t\tcamPos=new int[3];\r\n\t}",
"public Parameters() {\n\t}",
"protected void initialize() {\n\t\t// set the target for the PID subsystem\n\t\tRobot.minipidSubsystem.setSetpoint(90);\n\n\t\t// set the minimum and maximum output limits for the PID subsystem\n\t\tRobot.minipidSubsystem.setOutputLimits(-80, 80);\n\n\t\t// Disable safety checks on drive subsystem\n\t\tRobot.driveSubsystem.robotDrive.setSafetyEnabled(false);\n\t\t\n\t\tRobot.camera.setBrightness(0);\n\n\t}",
"public SimulationConfig() {\r\n\t}",
"public Position()\n\t{\n\t\t// do not remove bean constructor.\n\t}",
"@Before\r\n\tpublic void constructObj (){\r\n\t\tproteinSeq = new ProteinSequence(new char[]{'A','A','T','G','C','C','A','G','T','C','A','G','C','A','T','A','G','C','G'});\r\n\t}",
"public Pitonyak_09_02() {\r\n }",
"public DepictionParameters() {\n this(200, 150, true, DEFAULT_BACKGROUND);\n }",
"@Override\n public void init()\n {\n target.setAbsoluteTolerance(ANGLE_ABSOLUTE_TOLERANCE); // Configure the target's absolute tolerance\n /*\n Limit the speed on the target between these values to prevent overshooting and damage to motors\n Normally we would leave the output range without bounds because we wish for the end affector to reach the setpoint\n as fast as possible, in a constant time, which would mean having an output proportional to it's error, but in this case\n We don't care how long it takes to reach its target, we just want it to get there in one piece */\n //System.out.println(\"INITIALIZING PID CONTROL\");\n target.setOutputRange(-0.15, 0.15);\n\n /* load percent control in because output is simply a percentage */\n target.loadLeftController(\"percent\");\n target.loadRightController(\"percent\");\n }",
"public PanoramaConfig() {\n }",
"public Produit() {\n\t\tsuper();\n\t}",
"public Muur(int rijPos, int kolPos) {\n\t\tsuper(rijPos, kolPos);\n\t}",
"Petunia() {\r\n\t\t}",
"public TradeVariables() { /*gets default values*/ }",
"public Proion(String x,String y)\n {\n perigrafh=y;\n katasthma=x;\n }",
"public PPI() {\n \tsuper();\n this.goals = new ArrayList<String>();\n this.informed = new ArrayList<String>();\n }",
"private Room (String roomName,boolean isHealingPot, boolean isPit,boolean isEntrance, boolean isExit, boolean isPillar, Monster monster, int numMons, boolean isVisionPot){\n this.roomName = roomName;\n this.isHealingPot = isHealingPot;\n this.isPit = isPit;\n this.isEntrance = isEntrance;\n this.isExit = isExit;\n this.isPillar = isPillar;\n\n this.monster = monster;\n this.numMons = numMons;\n this.isVisionPot = isVisionPot;\n }",
"protected void initialize() {\n\t\tthis.position = Point3D.ZERO;\n\t\t// reset subclasses properties if any\n\t\treset();\n\t}",
"public Cohete() {\n\n\t}",
"public SlanjePoruke() {\n }",
"private void setUpFrom(){\n\t\tEPVentanaTemporal ven = new EPVentanaTemporal();\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\t//setemamos la ventana.\n\t\tven.setNombre(\"time_batch\");\n\t\tven.setValor(\"10\");\n\t\tven.setUnidadTemporal(\"seconds\");\n\t\tven.setPseudonombre(\"a1\");\n\t\tpro.setNombre(\"p4\");\n\t\tpro.setPseudonombre(\"\");\n\t\tpro.setVentana(ven);\n\t\texpresionesFrom.add(pro);\n\t}",
"public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}",
"public Prova() {}",
"public Spec() {\n super();\n // TODO Auto-generated constructor stub\n }",
"public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }",
"public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}",
"public PosicionArista() {\n this(new Posicion(), OrientacionArista.Este);\n }",
"public VivariumPanel()\n {\n // Call super constructor\n super();\n\n // Initialize properties\n this.turtles = new HashSet<>();\n this.isDebug = false;\n }",
"public Particle() {\n\t}",
"Vehicle() \n {\n System.out.println(\"Constructor of the Super class called\");\n noOfTyres = 5;\n accessories = true;\n brand = \"X\";\n counter++;\n }",
"public Classroom() {\n\t}",
"public SeqConditionSet() {\n\t}",
"public Property() {\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\t}",
"private Room (String roomName, boolean isHealingPot, boolean isPit,boolean isEntrance, boolean isExit, boolean isPillar, int numMons, boolean isVisionPot) {\n \t this.roomName = roomName;\n this.isHealingPot = isHealingPot;\n this.isPit = isPit;\n this.isEntrance = isEntrance;\n this.isExit = isExit;\n this.isPillar = isPillar;\n this.numMons = numMons;\n this.isVisionPot = isVisionPot;\n }",
"public PennyFarthing(int startCadence, int startSpeed) {\n // Call the parent constructor with super\n super(startCadence, startSpeed, 0, \"PennyFarthing\");\n System.out.println(\"PennyFarthing.PennyFarthing- constructor with arguments\");\n }",
"public Player(String s) //only constructor\n {\n \tsuper(s,1,false);\n \tposition=-1;\n \tship=false;\n \tSetHealth();\n \tSetWealth();\n }",
"public Prism(int numSides) {\n this(numSides, RADIUS, HEIGHT);\n }",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"public PessoaTest() {\n pessoa.setNome(\"Thiago\");\n pessoa.setSobrenome(\"Cury\"); \n pessoa.setIdade(36); \n }",
"public BattlefieldSpecification() {\n\t\tthis(800, 600);\n\t}",
"public OnionooParser() {\n\n\t}",
"public PropertyCriteria() {\n\t\tsuper();\n\t}",
"protected DTDSubset() { }",
"public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }",
"public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }",
"private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}",
"public SimOI() {\n super();\n }",
"protected void initialize() {\n translator = new PIDOutputTranslator();\n controller = new PIDController(0.0001, 0, 0, pitch.pitchEncoder, translator);\n \n //controller.setSetpoint(pitch.getEncoder() + angle);\n //controller.setPercentTolerance(1);\n \n //THIS IS NOT THE RIGHT RANGE\n //I made it this way so that we would not break the robot\n //we need to test the range of the encoder\n //we need to find where zero is\n //then we can update this input range!\n //controller.setInputRange(0, 1);\n //controller.enable();\n }",
"private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}",
"public Pacman() {\n int life = 50;\n int repro = 20;\n int maxCal = 500;\n int burn = 5;\n int strength = 50;\n myInfo = BasicMatrixModel.createCritterInfoInstance(this,life,repro,maxCal,burn,strength);\n }",
"public PavlovExpert(int playerNo)\n\t{\n\t\tsuper(playerNo);\n\t}",
"public Corso() {\n\n }"
] | [
"0.6178702",
"0.59318024",
"0.5881129",
"0.58758575",
"0.5842138",
"0.5822551",
"0.58136934",
"0.5761053",
"0.57424384",
"0.57393044",
"0.57227206",
"0.5692314",
"0.56676537",
"0.5660618",
"0.5653934",
"0.56448543",
"0.5642274",
"0.56415457",
"0.5606545",
"0.5602445",
"0.5598027",
"0.55635864",
"0.5554948",
"0.5552632",
"0.5542578",
"0.552307",
"0.55131865",
"0.55104876",
"0.5508139",
"0.55060554",
"0.55040306",
"0.54954386",
"0.5486854",
"0.5479613",
"0.5464128",
"0.5459513",
"0.5446911",
"0.5432365",
"0.5428433",
"0.5427659",
"0.54203856",
"0.5413301",
"0.54076606",
"0.5401434",
"0.5377629",
"0.53696847",
"0.5365638",
"0.53577733",
"0.5346506",
"0.5346395",
"0.53425974",
"0.53257155",
"0.53233004",
"0.532111",
"0.5314671",
"0.53139937",
"0.5311272",
"0.5310832",
"0.5306291",
"0.53050005",
"0.53010505",
"0.52938455",
"0.5290763",
"0.52898633",
"0.52841467",
"0.5283338",
"0.5283262",
"0.52773917",
"0.5275486",
"0.5272744",
"0.5269079",
"0.5267009",
"0.5266865",
"0.52638805",
"0.52532285",
"0.5249899",
"0.52479696",
"0.52450514",
"0.52422225",
"0.52408147",
"0.5239312",
"0.5233977",
"0.52329844",
"0.5226859",
"0.5221328",
"0.5219652",
"0.5219284",
"0.5216377",
"0.5211643",
"0.5201881",
"0.520161",
"0.519686",
"0.5196145",
"0.5189604",
"0.5188831",
"0.51851106",
"0.51842743",
"0.5182005",
"0.5181146",
"0.5179518",
"0.5172441"
] | 0.0 | -1 |
Methods Returns the price of the possession | public float getPrice() {
return _price;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double price() {\n return price;\n }",
"double getPrice();",
"double getPrice();",
"double getPrice();",
"public double getpPrice() {\n return pPrice;\n }",
"public double getPrice(){\r\n\t\treturn price;\r\n\t}",
"public BigDecimal getpPrice() {\n return pPrice;\n }",
"public double getPrice(){\n\t\t\n\t\treturn price;\n\t}",
"public double getPrice(){\n\t\t\treturn price;\n\t\t}",
"public BigDecimal\tgetPrice();",
"public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}",
"public double getPrice(){\n\t\treturn price;\n\t}",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public double getPrice()\n {\n \treturn price;\n }",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double getPrice() \n\t{\n\t\treturn price;\n\t}",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\r\n return price;\r\n }",
"public double getPrice(){\n\t\treturn this.price;\n\t}",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public double getPrice() {\n return price_;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice()\r\n {\r\n return price;\r\n }",
"@Override\n\tpublic double getPrice() {\n\t\treturn constantPO.getPrice();\n\t}",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public double getPrice() {\n return price;\n }",
"public Double getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\n return price_;\n }",
"public Double getPrice() {\r\n\t\treturn price;\r\n\t}",
"public float getPrice() {\n return price;\n }",
"public float getPrice() {\n return price;\n }",
"public float getPrice() {\n return price;\n }",
"protected float getPrice() {\n\t\t\treturn price;\n\t\t}",
"public double getPrice();",
"public Double getPrice() {\n return price;\n }",
"public Double getPrice() {\n return price;\n }",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice() {\n\t\treturn price;\n\t}",
"public double getPrice()\n {\n return this.price;\n }",
"public double getPrice()\n\t{\n\t\treturn this.price;\n\t}",
"public double getPrice() {\n return this.price;\n }",
"public Float getPrice() {\r\n return price;\r\n }",
"public double getPrice()\r\n {\r\n return this.price;\r\n }",
"public double getPrice() {\n\t\treturn this.price;\n\t\t\n\t}",
"public double getPrice()\n {\n return price;\n }",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"public double getPrice() {\r\n\t\treturn this.price;\r\n\t}",
"BigDecimal getPrice();",
"public Float getPrice() {\n return price;\n }",
"public Double getPrice() {\n\t\treturn price;\n\t}",
"public Double getPrice();",
"public int getPrice() {\n return price_;\n }",
"public java.lang.Integer getPrice()\n {\n return price;\n }",
"Price getTradePrice();",
"public double getPrice() {\n\t\treturn this.price;\n\t}",
"public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }",
"public long getPrice() {\n return price;\n }",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn price;\r\n\t}",
"public Money getPrice() {\n\t\treturn price;\n\t}",
"public Integer getPrice() {\r\n return price;\r\n }",
"public Integer getPrice() {\r\n return price;\r\n }",
"public double getPrice() {\n\t\t\treturn price;\n\t\t}",
"long getPrice();",
"public java.math.BigDecimal getPrice() {\n return price;\n }",
"int getPrice();",
"public double getPrice(){\n\t\treturn Price; // Return the product's price\n\t}",
"public float getPrice() \n {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"public Integer getPrice() {\n return price;\n }",
"double purchasePrice();",
"public int getPrice() {\n return price;\n }",
"String getPrice();",
"public int getPrice ( ) {\n return price;\n }",
"public int getPrice() {\r\n\t\treturn price;\r\n\t}",
"public String getPrice() {\n return price;\n }",
"public String getPrice() {\n return price;\n }",
"public Integer getTotalprice() {\n return totalprice;\n }",
"@Override\n\tpublic double getPrice() {\n\t\t\n\t\treturn 2000;\n\t}"
] | [
"0.77706444",
"0.7724834",
"0.7724834",
"0.7724834",
"0.7685772",
"0.7651285",
"0.7650169",
"0.76406986",
"0.76338315",
"0.7630972",
"0.7621086",
"0.7614106",
"0.7610411",
"0.7610411",
"0.759154",
"0.75788134",
"0.75788134",
"0.7572688",
"0.7572688",
"0.7572688",
"0.7572688",
"0.7568826",
"0.75518",
"0.75518",
"0.75518",
"0.75518",
"0.75518",
"0.75416046",
"0.75313747",
"0.75265527",
"0.75249875",
"0.7515358",
"0.7515358",
"0.7515358",
"0.7515358",
"0.7515358",
"0.7515358",
"0.7515358",
"0.7515358",
"0.7515358",
"0.7515358",
"0.7515358",
"0.7511624",
"0.74914336",
"0.748826",
"0.7485709",
"0.7485709",
"0.7485709",
"0.7483728",
"0.7480842",
"0.74691933",
"0.74691933",
"0.7469048",
"0.7469048",
"0.7469048",
"0.7469048",
"0.7469048",
"0.74688095",
"0.746503",
"0.74606365",
"0.74583876",
"0.7449218",
"0.7447678",
"0.7445078",
"0.74352276",
"0.74352276",
"0.74352276",
"0.7430769",
"0.7426462",
"0.7410314",
"0.74079984",
"0.7407272",
"0.74058634",
"0.7399328",
"0.7384431",
"0.738435",
"0.7381686",
"0.73662585",
"0.7358461",
"0.7348514",
"0.7348514",
"0.73429793",
"0.7336891",
"0.7332186",
"0.7314632",
"0.7311883",
"0.7310461",
"0.73101836",
"0.73101836",
"0.73101836",
"0.73101836",
"0.7300188",
"0.72947806",
"0.72922885",
"0.72845536",
"0.7268178",
"0.72618616",
"0.72618616",
"0.72612137",
"0.7256591"
] | 0.7451736 | 61 |
Sets the owner of the possession | public void setOwner(Person person) {
_owner = person;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOwner(User owner) {\n this.owner = owner;\n }",
"void setOwner(String owner);",
"public void setOwner(Player owner) {\n\t\tthis.owner = owner;\n\t}",
"public void setOwner(Owner owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\n this.owner = owner;\n }",
"public void setOwner (String owner) {\n\t\tthis.owner=owner;\n\t}",
"public void setOwner(String owner) {\n mOwner = owner;\n }",
"public void setOwner(Person owner)\n {\n this.owner = owner;\n }",
"public void setOwner(Player player) {\n owner = player;\n }",
"public void setOwner(com.sforce.soap.enterprise.sobject.SObject owner) {\r\n this.owner = owner;\r\n }",
"public void setOwner(int owner) { this.owner = owner; }",
"@Override\r\n\tpublic void setTheOwner(Player owner) {\n\t\t\r\n\t}",
"public void setOwner( String owner ){\r\n \ttry{\r\n \t\t_lockObject.lock();\r\n \t_owner = owner;\r\n \t_itDepartment.setDirector(_owner);\r\n \t}finally{\r\n \t\t_lockObject.unlock();\r\n \t}\r\n }",
"public void setOwner(String mOwner) {\r\n this.mOwner = mOwner;\r\n }",
"public synchronized void setOwner(String s) {\n owner = s;\n }",
"public void setOwner(EntityLivingBase owner) {\n\t\tthis.owner=owner;\n\t\tif(owner instanceof EntityPlayer){\n\t\t\tthis.dataManager.set(OWNER_UUID,Optional.of(owner.getUniqueID()));\n\t\t}\n\t}",
"public void setOwner(AbstractGameObject owner) {\r\n\t\tthis.owner = owner;\r\n\t}",
"void setOwner(Entity owner);",
"protected void setOwner(T owner) {\n this.owner = owner;\n }",
"public void changeOwner(String o){\n owner = o;\r\n }",
"public void setOwner(UserModel param) {\n localOwnerTracker = true;\n\n this.localOwner = param;\n }",
"public void setOwner(Person person) \n {\n owner = person;\n }",
"void setOwner(Subject owner)\n {\n this.owner = owner;\n }",
"public void setOwner(String owner) {\r\n this.owner = owner == null ? null : owner.trim();\r\n }",
"public void setOwnerPlayer( final PlayerModel ownerPlayer ) {\r\n\t\tthis.ownerPlayer = ownerPlayer;\r\n\t}",
"public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }",
"public void setOwner(String owner) {\n this.owner = owner == null ? null : owner.trim();\n }",
"public void setOwner(String newOwner) {\n\t\t_pcs.firePropertyChange(\"owner\", this.owner, newOwner); //$NON-NLS-1$\n\t\tthis.owner = newOwner;\n\t}",
"public void setOwner(ItunesPodcastOwner owner) {\n this.owner = owner;\n }",
"public void setOwner(com.hps.july.persistence.OrganizationAccessBean newOwner) {\n\towner = newOwner;\n}",
"public void setOwnerName( String name ) {\n\n ownerName = name;\n }",
"public void setOwner(RMParentShape anObj) { _owner = anObj; }",
"public void setOwnerName(String name) {\r\n this.ownerName = name;\r\n }",
"public void setIdOwner(Long idOwner) {\r\n this.idOwner = idOwner;\r\n }",
"public void setOwnerId(String ownerId) {\n this.ownerId = ownerId;\n }",
"public void setObjectOwner(User objectOwner) {\r\n\t\tthis.objectOwner = objectOwner;\r\n\t}",
"public void setOwner(SWActor newOwner) {\n\t\t//Set this SWActors' owner to newOwner\n\t\tthis.owner = newOwner;\n\t\t\n\t\t//Set humancontrolled boolean to true\n\t\tthis.humanControlled = true;\n\t}",
"public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}",
"public void setOwnerName(String ownerName) {\r\n\t\tthis.ownerName = ownerName;\r\n\t}",
"public void setOwner(TLPropertyOwner propertyOwner) {\n this.propertyOwner = propertyOwner;\n }",
"public void setIsowner(java.lang.Boolean newIsowner) {\n\tisowner = newIsowner;\n}",
"public void setownerName(String ownerName) {\n\t this.ownerName = ownerName;\n\t}",
"void SetOwner(int passedOwner) {\n if(passedOwner == 0 || passedOwner == 1) {\n owner = passedOwner;\n }\n else {\n Log.d(\"MyError\", \"Error in setting the owner of a build in the build class.\");\n }\n }",
"public String getOwner() {\r\n return owner;\r\n }",
"@JsonSetter(\"owner\")\r\n public void setOwner(String owner) {\r\n this.owner = owner;\r\n }",
"public String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public void setOwner(int pos, int turn) {\n\t\t((Property) tileList.get(pos)).setOwner(turn);\n\t}",
"public String getOwner() {\n\n return owner;\n\n }",
"public void setOwnerId(Integer ownerId) {\n this.ownerId = ownerId;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() {\n return owner;\n }",
"public String getOwner() { return owner; }",
"public String getOwner(){\n return owner;\r\n }",
"public void setOwnername(java.lang.String newOwnername) {\n\townername = newOwnername;\n}",
"public void setOwnerStatus(String ownerStatus)\n {\n // put your code here\n this.ownerStatus = ownerStatus;\n }",
"@Column(name=\"owner\")\n\tpublic String getOwner() {\n\t\treturn owner;\n\t}",
"public void setOwnerString(String s) {\n ownerString = s;\r\n }",
"public void setOwnerId(java.lang.String ownerId) {\r\n this.ownerId = ownerId;\r\n }",
"public String getOwner() {\n\n return Owner;\n }",
"protected Object getOwner(){\n return owner;\n }",
"private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}",
"public void setOwner(ListenerOwner owner)\n {\n super.setOwner(owner);\n if (owner != null)\n this.fieldChanged(DBConstants.DISPLAY, DBConstants.INIT_MOVE); // Do this\n }",
"public void setDataOwner(String sDataOwner);",
"public void setOwner(String s) {\n log(\"This option is not supported by ILASM as of Beta-2, \"\n + \"and will be ignored\", Project.MSG_WARN);\n }",
"public String getOwner() {\n return mOwner;\n }",
"public void setOwnerPermission(TUserPermission ownerPermission) {\n\n\t\tthis.ownerPermission = ownerPermission;\n\t}",
"public long getOwner() {\n\t\treturn owner;\n\t}",
"void setOwner(StatementContribution sc) {\n\t\tthis.owner_ = sc;\n\t}",
"public User getOwner() {\n return owner;\n }",
"public Owner getOwner() {\n return owner;\n }",
"public void setOwningUser(PersonAndOrganization owningUser)\r\n\t{\r\n\t\tthis.owningUser = owningUser;\r\n\t}",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public Builder setOwner(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n owner_ = value;\n onChanged();\n return this;\n }",
"public com.sforce.soap.enterprise.sobject.SObject getOwner() {\r\n return owner;\r\n }",
"public void setOwner(AbstractBuilding building) {\n\t\tthis.owner = building;\r\n\t}",
"public Owner getOwner()\n {\n return owner;\n }",
"public void setOwnerUserId(Long ownerUserId) {\n this.ownerUserId = ownerUserId;\n }",
"public Player getOwner() {\n return owner;\n }",
"@objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();",
"public String owner() {\n return this.owner;\n }",
"public String getOwnerName() {\r\n\t\treturn ownerName;\r\n\t}",
"public String getownerName() {\n\t return this.ownerName;\n\t}",
"public String getOwnerName() {\r\n return this.ownerName;\r\n }",
"public CustomDialogs owner(final Object owner)\n\t{\n\t\tthis.owner = owner;\t\t\n\t\treturn this;\n\t}",
"@Column (name=\"OWNER\", insertable = true, updatable = false)\r\n\tpublic String getOwner() {\r\n\t\treturn owner;\r\n\t}",
"public String getOwnerId() {\n return ownerId;\n }",
"final int GetOwner() {\n return owner;\n }",
"public void setOwnerType(OwnerType ownerType) {\n\t\tthis.ownerType = ownerType;\n\t}",
"public String getOwnerName() {\n\t\treturn ownerName;\n\t}",
"public String getOwnerName() {\n\n return ownerName;\n }",
"java.lang.String getOwner();",
"java.lang.String getOwner();",
"public void setProductOwner(String productOwner);"
] | [
"0.7917883",
"0.77974045",
"0.7794451",
"0.77700585",
"0.771465",
"0.771465",
"0.771465",
"0.771465",
"0.7689252",
"0.76873803",
"0.7564147",
"0.7556273",
"0.7519032",
"0.749728",
"0.7491165",
"0.74323076",
"0.74045247",
"0.74037254",
"0.738864",
"0.7382192",
"0.7304795",
"0.72939044",
"0.72267216",
"0.72139627",
"0.72048885",
"0.7200748",
"0.71748215",
"0.7157029",
"0.7148899",
"0.7148899",
"0.70438105",
"0.7028053",
"0.6938195",
"0.69354326",
"0.6902203",
"0.6891312",
"0.6840185",
"0.68042487",
"0.67980003",
"0.678039",
"0.67246217",
"0.67246217",
"0.67239445",
"0.6720552",
"0.6708335",
"0.6697578",
"0.6659555",
"0.6658205",
"0.6633546",
"0.6610384",
"0.6599119",
"0.65954995",
"0.6593116",
"0.6593116",
"0.6593116",
"0.6593116",
"0.6593116",
"0.6593116",
"0.658984",
"0.6578364",
"0.6571141",
"0.65594846",
"0.651675",
"0.6508754",
"0.64775646",
"0.64740777",
"0.6411727",
"0.64058036",
"0.63962716",
"0.6393532",
"0.6383408",
"0.63610196",
"0.63566613",
"0.6337845",
"0.6337804",
"0.633042",
"0.63226557",
"0.6321397",
"0.6299577",
"0.6299577",
"0.62852216",
"0.62805265",
"0.6244285",
"0.622951",
"0.62196416",
"0.6216424",
"0.62070084",
"0.6190262",
"0.6189859",
"0.6187544",
"0.6184135",
"0.6180195",
"0.61642796",
"0.6151308",
"0.61500496",
"0.6133484",
"0.61299103",
"0.61186075",
"0.61186075",
"0.610345"
] | 0.70994484 | 30 |
Constructor. Metadata and data objects are empty. | public TestsAsset() {
tests = new LinkedList<TestBean>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Data() {}",
"public Data() {\n }",
"public Data() {\n }",
"public Data() {\n \n }",
"public InitialData(){}",
"public MetadataResponse() {\n data = new HashMap<String, Object>();\n }",
"public JsonDataset() {\r\n\t\tsuper();\r\n\t\tlogger.trace(\"JsonDataset() - start\");\r\n\t\tlogger.trace(\"JsonDataset() - end\");\r\n\t}",
"public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }",
"public MetadataResponse() {\n }",
"public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }",
"public TradeData() {\r\n\r\n\t}",
"public DesastreData() { //\r\n\t}",
"public mainData() {\n }",
"DataHRecordData() {}",
"public SensorData() {\n\n\t}",
"public NetworkData() {\n }",
"public CompanyData() {\r\n }",
"protected VersionData() {}",
"public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public CompositeData()\r\n {\r\n }",
"public LocationData()\n {\n }",
"public ListingData() {\r\n\t\tsuper();\r\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"public MetaDataContract()\n {\n }",
"public UserData() {\n }",
"public StringData() {\n\n }",
"public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}",
"public DataSet() {\r\n \r\n }",
"public ArticleData() {\r\n\t\tid = Constants.EMPTY_STRING;\r\n\t\tname = Constants.EMPTY_STRING;\r\n\t\turl = Constants.EMPTY_STRING;\r\n\t\tdesc = Constants.EMPTY_STRING;\r\n\t\tlevels = Constants.EMPTY_STRING;\r\n\t\twebSiteId = Constants.EMPTY_STRING;\r\n\t\tmatched = Constants.EMPTY_STRING;\r\n\t\tcreateBy = Constants.EMPTY_STRING;\r\n\t\tcreateDate = Constants.EMPTY_STRING;\r\n\t\tlastUpdateBy = Constants.EMPTY_STRING;\r\n\t\tlastUpdateDate = Constants.EMPTY_STRING;\r\n\t\tenabled = Constants.EMPTY_STRING;\r\n\t\tpostTableName = Constants.EMPTY_STRING;\r\n\t\treturnPage = Constants.EMPTY_STRING;\r\n\t\twebSiteShowName = Constants.EMPTY_STRING;\r\n\t\treturnDirect = Constants.EMPTY_STRING;\r\n\t\tkeyWordTableName = Constants.EMPTY_STRING;\r\n\t\ttitle = Constants.EMPTY_STRING;\r\n\t\ttitleCounter = Constants.EMPTY_STRING;\r\n\t\tbufferStartCounter = Constants.EMPTY_STRING;\r\n\t\tbufferEndCounter = Constants.EMPTY_STRING;\r\n\t\tcatId = Constants.EMPTY_STRING;\r\n\t\tpostUrl = Constants.EMPTY_STRING;\r\n\t}",
"private TigerData() {\n initFields();\n }",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"public AppData() {\n super(0,Entry.DataColumn.values().length);\n setColumnIdentifiers(Arrays.stream(Entry.DataColumn.values()).map(Entry.DataColumn::getName).toArray());\n System.out.println(\"a new AppData has been constructed\");\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public DataAdapter() {\n }",
"protected @Override\r\n abstract void initData();",
"public StringDataList() {\n }",
"public AbstractCollectionMetaData()\n {\n }",
"public DataManage() {\r\n\t\tsuper();\r\n\t}",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"public StringData1() {\n }",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"public PollData() {\n\n\n super(TYPE_NAME);\n }",
"public DataRecord() {\n super(DataTable.DATA);\n }",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"public ActuatorData()\n\t{\n\t\tsuper(); \n\t}",
"public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}",
"@Override\r\n\tpublic void initData() {\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public ItemInfo () {}",
"public AnalysisDatasets() {\n }",
"public WorkDataFile()\n\t{\n\t\tsuper();\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"public ReferenceBasePUSData() {\n\t\tsuper();\n\t}",
"public FlexData() {\n entryCollectionList = null;\n entryCollectionMap = null;\n type = Type.UNKNOWN;\n standardDateFormat = \"yyyy-MM-dd\"; // DB2-Datum\n\t}",
"public Information()\n\t{\n\t\t// empty constructor\n\t}",
"public PthTestContentsInfo() {\n }",
"Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}",
"public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }",
"public ExperimentInfo() { }",
"public DataFactoryImpl() {\n\t\tsuper();\n\t}",
"public ReportVersionData() {\n this(\"report_version_data\", null);\n }",
"public AnalysisDef() {}",
"public DataTable() {\n\n\t\t// In this application, we use HashMap data structure defined in\n\t\t// java.util.HashMap\n\t\tdc = new HashMap<String, DataColumn>();\n\t}",
"public DataRequest() {\n\t\tfilters = new ArrayList<FilteringRule>();\n\t\tsort_by = new ArrayList<SortingRule>();\n\t}",
"public void initData() {\n }",
"public void initData() {\n }",
"public UnivariateStatsData() {\n super();\n }",
"public DataSet() {\n this.bars = new ArrayList<Bar>();\n this.reviews = new ArrayList<Review>();\n }",
"public AzureDataLakeStoreDataset() {\n }",
"public Model(DataHandler data){\n //assign the data parameter to the instance\n //level variable data. The scope of the parameter\n //is within the method and that is where the JVM \n //looks first for a variable or parameter so we \n //need to specify that the instance level variable \n //is to be used by using the keyword 'this' followed \n //by the '.' operator.\n this.data = data;\n }",
"public Gps_dataResource() {\n }",
"public Analysis() {\n this(\"analysis\", null);\n }",
"private void initData() {\n }",
"public LineData()\n\t{\n\t}",
"public ReferenceSystemMetadata() {\n }",
"public TurbineRunDataService()\n {\n super();\n }",
"public ChartData() {\n this.labels = new ArrayList<>();\n this.labelsDataMap = new HashMap<>();\n this.legend = new ArrayList<>();\n }",
"public FilterData() {\n }",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"public LoaderInfo( ) { \n\t\tsuper( null );\n\t}",
"public UsersDataSet() {}",
"private void initData() {\n\n }",
"public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }",
"private void initData() {\n\t}",
"public ObjectSchema() {\n }",
"public GraphInfo(){}",
"public Content() {\n\t}",
"private ServerEntityMetadataPacket() {}",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"public Data(IAtomContainer atomContainer) {\n this.atomContainer = atomContainer;\n }"
] | [
"0.77252656",
"0.7603507",
"0.7603507",
"0.75138545",
"0.7482779",
"0.7392807",
"0.7223141",
"0.7069647",
"0.70612663",
"0.70417523",
"0.70275515",
"0.696678",
"0.69623417",
"0.6957402",
"0.68583184",
"0.68340033",
"0.67795616",
"0.6749571",
"0.67364734",
"0.67207396",
"0.6706006",
"0.6702051",
"0.66695684",
"0.66695684",
"0.6668018",
"0.66503656",
"0.6649524",
"0.66459566",
"0.6626751",
"0.66260415",
"0.66093427",
"0.65984046",
"0.65984046",
"0.65984046",
"0.65984046",
"0.65984046",
"0.65984046",
"0.6590425",
"0.6589911",
"0.65753084",
"0.657441",
"0.6571022",
"0.65662557",
"0.6555027",
"0.6548606",
"0.65363365",
"0.65353245",
"0.65353245",
"0.65352184",
"0.65352184",
"0.65352184",
"0.65284544",
"0.65236497",
"0.65166986",
"0.651553",
"0.65112454",
"0.650994",
"0.65075505",
"0.65055215",
"0.649863",
"0.6494638",
"0.64936125",
"0.64936125",
"0.6469217",
"0.6467717",
"0.64650095",
"0.6446284",
"0.64459294",
"0.64416623",
"0.6438518",
"0.6427345",
"0.642479",
"0.6423747",
"0.64176315",
"0.64146143",
"0.6413837",
"0.6413837",
"0.640837",
"0.63991266",
"0.639651",
"0.6394964",
"0.6391108",
"0.63877654",
"0.63832384",
"0.6379837",
"0.63780373",
"0.6354386",
"0.6350043",
"0.6348157",
"0.63455284",
"0.63280714",
"0.6319696",
"0.6315153",
"0.6308907",
"0.63070613",
"0.63034415",
"0.62988937",
"0.6291917",
"0.62905467",
"0.6279832",
"0.62514293"
] | 0.0 | -1 |
Constructor. Creates resource metadata from test bean collection. | public TestsAsset(Collection<TestBean> data) {
this();
tests.addAll(data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ApplicationResourceProperties() {\n }",
"@BeforeEach\n public void initialize()\n {\n serviceProvider = new ServiceProvider();\n ResourceTypeFactory resourceTypeFactory = new ResourceTypeFactory();\n schemaFactory = Assertions.assertDoesNotThrow(resourceTypeFactory::getSchemaFactory);\n resourceTypeFactory.registerResourceType(null,\n JsonHelper.loadJsonDocument(ClassPathReferences.USER_RESOURCE_TYPE_JSON),\n JsonHelper.loadJsonDocument(ClassPathReferences.USER_SCHEMA_JSON),\n JsonHelper.loadJsonDocument(ClassPathReferences.ENTERPRISE_USER_SCHEMA_JSON));\n resourceTypeFactory.registerResourceType(null,\n JsonHelper.loadJsonDocument(ClassPathReferences.GROUP_RESOURCE_TYPE_JSON),\n JsonHelper.loadJsonDocument(ClassPathReferences.GROUP_SCHEMA_JSON));\n }",
"public TestsAsset() {\n tests = new LinkedList<TestBean>();\n }",
"CollectionResource createCollectionResource();",
"public ResourceFactory(){}",
"@BeforeClass\n public static void init() {\n InitializrMetadataBuilder initializrMetadataBuilder = InitializrMetadataBuilder.fromInitializrProperties(\n InitializerMetadataTest.load(\n InitializerMetadataTest.loadProperties(new ClassPathResource(\"application-test-default.yml\"))));\n initializrMetadata = initializrMetadataBuilder.build();\n }",
"public GenericResource() {\r\n }",
"@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }",
"public GenericResource() {\n }",
"public LoadTestProperties() {\n }",
"public GenericResource()\r\n {\r\n }",
"public BookResource() {\n }",
"@Test\n public void constructorTest() {\n assertEquals(1, stack.getResource(ResourceType.SHIELDS));\n assertEquals(2, stack.getResource(ResourceType.SERVANTS));\n assertEquals(3, stack.getResource(ResourceType.COINS));\n assertEquals(4, stack.getResource(ResourceType.STONES));\n }",
"public ProfileResource() {\n }",
"public GenericResource()\n {\n }",
"public ApplicationDefinitionProperties() {\n }",
"public ConsommersResource() {\r\n }",
"@Before\n public void initCommon() {\n try {\n ResourceSetImpl _resourceSetImpl = new ResourceSetImpl();\n this.rs = _resourceSetImpl;\n String _basePath = this.getBasePath();\n String _translatePath = this.translatePath(\"ISML-MDE/tool/co.edu.javeriana.isml.common/model/common/primitives/Primitives.isml\");\n String _plus = (_basePath + _translatePath);\n final URI uri = URI.createURI(_plus);\n final Resource resource = this.rs.createResource(uri);\n resource.load(CollectionLiterals.<Object, Object>emptyMap());\n String _basePath_1 = this.getBasePath();\n String _translatePath_1 = this.translatePath(\"ISML-MDE/tool/co.edu.javeriana.isml.common/model/common/primitives/Constraints.isml\");\n String _plus_1 = (_basePath_1 + _translatePath_1);\n this.rs.createResource(URI.createURI(_plus_1)).load(CollectionLiterals.<Object, Object>emptyMap());\n String _basePath_2 = this.getBasePath();\n String _translatePath_2 = this.translatePath(\"ISML-MDE/tool/co.edu.javeriana.isml.common/view/common/widgets/PrimitiveWidgets.isml\");\n String _plus_2 = (_basePath_2 + _translatePath_2);\n this.rs.createResource(URI.createURI(_plus_2)).load(CollectionLiterals.<Object, Object>emptyMap());\n String _basePath_3 = this.getBasePath();\n String _translatePath_3 = this.translatePath(\"ISML-MDE/tool/co.edu.javeriana.isml.common/services/common/services/Persistence.isml\");\n String _plus_3 = (_basePath_3 + _translatePath_3);\n this.rs.createResource(URI.createURI(_plus_3)).load(CollectionLiterals.<Object, Object>emptyMap());\n } catch (Throwable _e) {\n throw Exceptions.sneakyThrow(_e);\n }\n }",
"protected abstract T createTestResource();",
"public ProductResource() {\n }",
"public ModelResource() {\n }",
"public TestDataBean() {\n\t}",
"@Before \n\tpublic void initialize() {\n\t\tthis.itemHistorico = new ItemHistorico();\n\t}",
"public ResourceDesc() {\n }",
"public AbstractCollectionMetaData()\n {\n }",
"public AddResource() {\n }",
"@Override\n protected void setUpResources() throws Exception {\n setValue.setNewValue(NEW_VALUE);\n\n casValue.setExpectedValue(EXPECTED_VALUE);\n casValue.setNewValue(NEW_VALUE);\n\n Set<ClusterMember> members = KayVeeConfigurationFixture.KAYVEE_CONFIGURATION.getClusterConfiguration().getMembers();\n\n // set our own id\n self = KayVeeConfigurationFixture.KAYVEE_CONFIGURATION.getClusterConfiguration().getSelf();\n\n // set the leader for this test\n for (ClusterMember member : members) {\n if (!member.getId().equals(self)) {\n leader = member.getId();\n leaderUrl = member.getKayVeeUrl();\n break;\n }\n }\n\n checkState(leader != null, \"no leader set for test\");\n\n // setup the HttpServletRequest\n HttpServletRequest httpServletRequest = mock(HttpServletRequest.class);\n when(httpServletRequest.getRequestURI()).thenReturn(REQUEST_URI);\n\n // setup the DistributedStore\n distributedStore = mock(DistributedStore.class);\n\n // register all the providers and resources with the dropwizard ResourceTest\n\n // start off with our injector for HttpServletRequest\n addProvider(new HttpServletRequestInjector(httpServletRequest));\n // add the standard dropwizard mappers\n addProvider(new LoggingExceptionMapper<Throwable>() { });\n addProvider(new InvalidEntityExceptionMapper());\n addProvider(new JsonProcessingExceptionMapper());\n // add our exception mappers\n addProvider(KayVeeExceptionMapper.class);\n addProvider(IllegalArgumentExceptionMapper.class);\n // add the root resource\n addResource(new KeysResource(members, distributedStore)); // root resource; it'll return a KeyResource\n }",
"public AppUserResource() {\r\n }",
"public BookSearchResource() {\n }",
"public TestWebClient() {\n\t\tresources = new LinkedList<Resource>();\n\t}",
"@Override\n protected void before() {\n LOGGER.info(\"Creating resources {}, before test per @Resources annotation on {}\", Arrays.toString(resources.value()), name(element));\n kubeClient().create(resources.value());\n }",
"public ResourceProperties(Application app, String resourceName) {\n this.app = app;\n this.resourceName = resourceName;\n this.resources = new TreeSet(app.getResourceComparator());\n }",
"private ResourcePackage() {}",
"private ResourceSet createResourceSet() {\r\n \t\t// create the container resource set\r\n \t\tResourceSet resourceSet = new ResourceSetImpl();\r\n \t\t// Register the appropriate resource factory to handle all file\r\n \t\t// extensions.\r\n \t\tresourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap()\r\n \t\t\t\t.put(Resource.Factory.Registry.DEFAULT_EXTENSION, new XMIResourceFactoryImpl() {\r\n \t\t\t\t\tpublic Resource createResource(URI uri) {\r\n \t\t\t\t\t\treturn new XMIResourceImpl(uri) {\r\n \t\t\t\t\t\t\tprotected boolean useUUIDs() {\r\n \t\t\t\t\t\t\t\treturn true;\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t};\r\n \t\t\t\t\t}\r\n \t\t\t\t});\r\n \t\t\r\n \t\tActivator.fTracer.traceDebug(\"new Resourceset created: \" + resourceSet);\r\n \t\treturn resourceSet;\r\n \t}",
"private void init() throws Exception{\n mapper = new ObjectMapper();\n\n // Create the linkRequest\n attribute = AttributeFixture.standardAttribute();\n\n\n }",
"@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tArrayList<Test> tests = null;\n\t\tif (ClientController.getRoleFrame().equals(\"Teacher\")) {\n\t\t\tTeacher teacher = (Teacher) ClientController.getActiveUser();\n\t\t\tClientController.accept(\"TEST_BANK-\" + teacher.getFields());\n\t\t\ttests = ClientController.getTests();\n\t\t}\n\t\tif (ClientController.getRoleFrame().equals(\"Principle\")) {\n\t\t\tClientController.accept(\"GET_TESTS_TABLE-\");\n\t\t\ttests = ClientController.getTests();\n\t\t\tint addToColum = 39;\n\t\t\tIDcol.setPrefWidth(IDcol.getWidth() + addToColum);\n\t\t\tauthorCol.setPrefWidth(authorCol.getWidth() + addToColum);\n\t\t\tcourseCol.setPrefWidth(courseCol.getWidth() + addToColum);\n\t\t\tfieldCol.setPrefWidth(fieldCol.getWidth() + addToColum);\n\t\t\ttestNameCol.setPrefWidth(testNameCol.getWidth() + addToColum);\n\t\t\tauthorCol.setPrefWidth(authorCol.getWidth() - 12);\n\t\t\tviewCol.setPrefWidth(viewCol.getWidth() + 12);\n\t\t\tdeleteCol.setVisible(false);\n\t\t\teditCol.setVisible(false);\n\t\t\tsetDateCol.setVisible(false);\n\t\t}\n\t\tIDcol.setCellValueFactory(new PropertyValueFactory<>(\"testId\"));\n\t\tauthorCol.setCellValueFactory(new PropertyValueFactory<>(\"author\"));\n\t\tcourseCol.setCellValueFactory(new PropertyValueFactory<>(\"course\"));\n\t\tfieldCol.setCellValueFactory(new PropertyValueFactory<>(\"field\"));\n\t\ttestNameCol.setCellValueFactory(new PropertyValueFactory<>(\"testName\"));\n\t\tdeleteCol.setCellValueFactory(new PropertyValueFactory<>(\"deleteBtn\"));\n\t\tsetDateCol.setCellValueFactory(new PropertyValueFactory<>(\"setDateBtn\"));\n\t\tviewCol.setCellValueFactory(new PropertyValueFactory<>(\"viewBtn\"));\n\t\teditCol.setCellValueFactory(new PropertyValueFactory<>(\"editBtn\"));\n\t\tNode viewTest;\n\t\tFXMLLoader viewTestLoader = new FXMLLoader(getClass().getResource(Navigator.ADDING_NEW_TEST.getVal()));\n\t\tAddingNewTestUIController addingNewTestUIController = viewTestLoader.getController();\n\t\ttry {\n\t\t\tviewTest = viewTestLoader.load();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (tests != null) {\n\t\t\tfor (int i = 0; i < tests.size(); i++) {\n\t\t\t\tTestRow tr = new TestRow(tests.get(i));\n\t\t\t\ttestTable.getItems().add(tr);\n\t\t\t\tdataList.add(tr); // Add row to dataList to search field.\n\t\t\t\tdatarow.add(tr);\n\t\t\t\tif (!ClientController.getActiveUser().getName().equals(tr.getAuthor())) {\n\t\t\t\t\ttr.getEditBtn().setDisable(true);\n\t\t\t\t\ttr.getDeleteBtn().setDisable(true);\n\t\t\t\t}\n\t\t\t\t// View button\n\t\t\t\ttr.getViewBtn().setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(Navigator.TEST_FORM.getVal()));\n\t\t\t\t\t\ttestAnchor.setVisible(true);\n\t\t\t\t\t\ttestAnchor.toFront();\n\t\t\t\t\t\taddNewTestButton.setVisible(false);\n\t\t\t\t\t\tGeneralUIMethods.buildTestForm(testAnchor2, testScrollPane, tr.getTestId(), \"\", loader);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t// Edit button\n\t\t\t\ttr.getEditBtn().setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFXMLLoader loader = new FXMLLoader(\n\t\t\t\t\t\t\t\t\tgetClass().getResource(Navigator.ADDING_NEW_TEST.getVal()));\n\t\t\t\t\t\t\tAddingFormNode = loader.load();\n\t\t\t\t\t\t\tAddingNewTestUIController editTestController = loader.getController();\n\t\t\t\t\t\t\tSet<Question> picked = editTestController.getPickedQuestions();\n\t\t\t\t\t\t\tClientController.accept(\"GET_QUESTIONS_FROM_TEST-\" + tr.getTestId());\n\t\t\t\t\t\t\tfor (Question q : ClientController.getQuestions())\n\t\t\t\t\t\t\t\tpicked.add(q);\n\t\t\t\t\t\t\teditTestController.getSelectFieldCBox().getSelectionModel().select(tr.getField());\n\t\t\t\t\t\t\teditTestController.getSelectFieldCBox().setDisable(true);\n\t\t\t\t\t\t\teditTestController.getSelectFieldCBox().fireEvent(arg0);\n\t\t\t\t\t\t\teditTestController.getSelectCourseCBox().getSelectionModel().select(tr.getCourse());\n\t\t\t\t\t\t\teditTestController.getSelectCourseCBox().setDisable(true);\n\t\t\t\t\t\t\teditTestController.getTitleTxt().setText(tr.getTestName());\n\t\t\t\t\t\t\teditTestController.getDurationCbox().getSelectionModel()\n\t\t\t\t\t\t\t\t\t.select(tr.getTest().getTestDuration().toString());\n\t\t\t\t\t\t\teditTestController.getTeacherInstructionsTxtArea()\n\t\t\t\t\t\t\t\t\t.setText(tr.getTest().getTeacherInstructions());\n\t\t\t\t\t\t\teditTestController.getStudentInstructionsTxtArea()\n\t\t\t\t\t\t\t\t\t.setText(tr.getTest().getStudentInstructions());\n\n\t\t\t\t\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\teditTestController.setEditingTest(tr.getTestId());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tGeneralUIMethods.loadPage(contentPaneAnchor, AddingFormNode);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t// Schedule button\n\t\t\t\ttr.getSetDateBtn().setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(Navigator.SET_TEST_DATE.getVal()));\n\t\t\t\t\t\tPopUp scheduleTestPopUp = new PopUp(PopUp.TYPE.INFORM, \"ScheduleTest\", \"\", contentPaneAnchor,\n\t\t\t\t\t\t\t\tArrays.asList(new JFXButton(\"Cancel\")), loader);\n\t\t\t\t\t\tSetTestDateController cont = loader.getController();\n\t\t\t\t\t\tcont.getTestNameLbl().setText(tr.getTestName());\n\t\t\t\t\t\tcont.getSetDateBtn().setOnMouseClicked(e -> {\n\t\t\t\t\t\t\tJFXButton approveBtn = new JFXButton(\"Okay\");\n\t\t\t\t\t\t\tapproveBtn.addEventHandler(MouseEvent.MOUSE_CLICKED, (MouseEvent e1) -> {\n\t\t\t\t\t\t\t\tp.closePopUp();\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t// Check for empty fields\n\t\t\t\t\t\t\tif (cont.getCodeTxt().getText().isEmpty()\n\t\t\t\t\t\t\t\t\t|| cont.getDateDP().getValue() == null\n\t\t\t\t\t\t\t\t\t|| cont.getTimeTP().getValue() == null) {\n\t\t\t\t\t\t\t\tp = new PopUp(PopUp.TYPE.ALERT, \"Error\", \"Some fields are missing\", contentPaneAnchor,\n\t\t\t\t\t\t\t\t\t\tArrays.asList(approveBtn), null);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t} else if (cont.getCodeTxt().getText().length() != 4) {\n\t\t\t\t\t\t\t\tp = new PopUp(PopUp.TYPE.ALERT, \"Error\",\n\t\t\t\t\t\t\t\t\t\t\"Test code must be assembled from 4 chars and/or numbers\", contentPaneAnchor,\n\t\t\t\t\t\t\t\t\t\tArrays.asList(approveBtn), null);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// Set date for the test\n\t\t\t\t\t\t\tClientController.accept(\"SET_TEST_DATE-\" + tr.getTestId() + \",\"\n\t\t\t\t\t\t\t\t\t+ GeneralUIMethods.israeliDate(cont.getDateDP().getValue()) + \",\"\n\t\t\t\t\t\t\t\t\t+ cont.getTimeTP().getValue().toString() + \",\"\n\t\t\t\t\t\t\t\t\t+ ClientController.getActiveUser().getSSN() + \",\" + cont.getCodeTxt().getText());\n\t\t\t\t\t\t\tif (ClientController.isTestScheduled()) {\n\t\t\t\t\t\t\t\t// Show popup\n\t\t\t\t\t\t\t\tJFXButton okayBtn = new JFXButton(\"Okay\");\n\t\t\t\t\t\t\t\tokayBtn.addEventHandler(MouseEvent.MOUSE_CLICKED, (MouseEvent e1) -> {\n\t\t\t\t\t\t\t\t\tscheduleTestPopUp.hidePopUp();\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tnew PopUp(PopUp.TYPE.INFORM, \"Success\", \"Tests scheduled successfully\",\n\t\t\t\t\t\t\t\t\t\tcontentPaneAnchor, Arrays.asList(okayBtn), null);\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\tnew PopUp(PopUp.TYPE.ALERT, \"Failed\", \"Tests schedule failed, that code already exsist\",\n\t\t\t\t\t\t\t\t\t\tcontentPaneAnchor, null, null);\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t// Delete button\n\t\t\t\ttr.getDeleteBtn().setOnAction(new EventHandler<ActionEvent>() { // Delete form table and DB\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\t\tJFXButton yesBtn = new JFXButton(\"Yes\");\n\t\t\t\t\t\tyesBtn.addEventHandler(MouseEvent.MOUSE_CLICKED, (MouseEvent e) -> {\n\t\t\t\t\t\t\tClientController.accept(\"DELETE_TEST-\" + tr.test.getID());\n\t\t\t\t\t\t\tif (ClientController.isTestDeleted()) {\n\t\t\t\t\t\t\t\t\tJFXButton okayBtn = new JFXButton(\"Okay\");\n\t\t\t\t\t\t\t\t\tokayBtn.addEventHandler(MouseEvent.MOUSE_CLICKED, (MouseEvent e1) -> {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tGeneralUIMethods.loadPage(contentPaneAnchor, FXMLLoader\n\t\t\t\t\t\t\t\t\t\t\t\t\t.load(getClass().getResource(Navigator.TEST_BANK.getVal())));\n\t\t\t\t\t\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tnew PopUp(PopUp.TYPE.INFORM, \"Information\",\n\t\t\t\t\t\t\t\t\t\t\t\"The test \" + tr.getTestId() + \" has been deleted\", contentPaneAnchor,\n\t\t\t\t\t\t\t\t\t\t\tArrays.asList(okayBtn), null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tnew PopUp(PopUp.TYPE.ALERT, \"Alert\", \"Are you sure that you want to delete this test?\",\n\t\t\t\t\t\t\t\tcontentPaneAnchor, Arrays.asList(yesBtn, new JFXButton(\"No\")), null);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t// Search by data which is in a certain row.\n\t\t\tFilteredList<TestRow> filteredData = new FilteredList<>(dataList, p -> true);\n\n\t\t\t// Set the filter Predicate whenever the filter changes.\n\t\t\tsearchField.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\t\tfilteredData.setPredicate(myObject -> {\n\t\t\t\t\t// If filter text is empty, display all persons.\n\t\t\t\t\tif (newValue == null || newValue.isEmpty())\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t// Compares what we wrote in the text (we searched for) to the appropriate line.\n\t\t\t\t\tString lowerCaseFilter = newValue.toLowerCase();\n\n\t\t\t\t\tif (String.valueOf(myObject.getTestId()).toLowerCase().contains(lowerCaseFilter))\n\t\t\t\t\t\treturn true; // Filter matches code.\n\t\t\t\t\telse if (String.valueOf(myObject.getField()).toLowerCase().contains(lowerCaseFilter))\n\t\t\t\t\t\treturn true; // Filter matches field.\n\t\t\t\t\telse if (String.valueOf(myObject.getCourse()).toLowerCase().contains(lowerCaseFilter))\n\t\t\t\t\t\treturn true; // Filter matches course.\n\t\t\t\t\telse if (String.valueOf(myObject.getTestName()).toLowerCase().contains(lowerCaseFilter))\n\t\t\t\t\t\treturn true; // Filter matches name.\n\t\t\t\t\telse if (String.valueOf(myObject.getAuthor()).toLowerCase().contains(lowerCaseFilter))\n\t\t\t\t\t\treturn true; // Filter matches author.\n\t\t\t\t\treturn false; // Does not match.\n\t\t\t\t});\n\t\t\t});\n\n\t\t\t// Wrap the FilteredList in a SortedList.\n\t\t\tSortedList<TestRow> sortedData = new SortedList<>(filteredData);\n\t\t\t// Bind the SortedList comparator to the TableView comparator.\n\t\t\tsortedData.comparatorProperty().bind(testTable.comparatorProperty());\n\t\t\t// Add sorted (and filtered) data to the table.\n\t\t\ttestTable.setItems(sortedData);\n\t\t}\n\t}",
"@BeforeClass\n public static void startUp() {\n // \"override\" parent startUp\n resourceInitialization();\n }",
"@BeforeEach\n\tvoid init() {\n\t\tthis.repo.deleteAll();\n\t\tthis.testLists = new TDLists(listTitle, listSubtitle);\n\t\tthis.testListsWithId = this.repo.save(this.testLists);\n\t\tthis.tdListsDTO = this.mapToDTO(testListsWithId);\n\t\tthis.id = this.testListsWithId.getId();\n\t}",
"private ResourceFactory() {\r\n\t}",
"public ReferenceSystemMetadata() {\n }",
"public LinksResource() {\n }",
"private ResourceManager() {}",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n\n }",
"@Override\n public void initialize(URL location, ResourceBundle resources) {}",
"public void initialize(URL location, ResourceBundle resources) {\n\n }",
"public CarroResource() {\r\n }",
"@Override\n public void initialize() {\n emissary.core.MetadataDictionary.initialize();\n }",
"public ResourceProperties(Application app) {\n this.resources = new TreeSet(app.getResourceComparator());\n }",
"public Resource() {\n }",
"public Resource() {\n }",
"public ResourceUtils() {\r\n //stub\r\n }",
"public ContatosResource() {\n }",
"@Test\r\n\tpublic void constructorTests() {\n\t\tLibraryNode ln = ml.createNewLibrary(\"http://example.com/resource\", \"RT\", pc.getDefaultProject());\r\n\t\tBusinessObjectNode bo = ml.addBusinessObjectToLibrary(ln, \"MyBo\");\r\n\t\tNode node = bo;\r\n\t\tTLResource mbr = new TLResource();\r\n\t\tmbr.setName(\"MyTlResource\");\r\n\t\tmbr.setBusinessObjectRef(bo.getTLModelObject());\r\n\r\n\t\t// When - used in LibraryNode.generateLibrary()\r\n\t\tTLResource tlr = new ResourceBuilder().buildTL(); // get a populated tl resource\r\n\t\ttlr.setBusinessObjectRef(bo.getTLModelObject());\r\n\t\tResourceNode rn1 = new ResourceNode(tlr, ln);\r\n\r\n\t\t// When - used in tests\r\n\t\tResourceNode rn2 = ml.addResource(bo);\r\n\r\n\t\t// When - used in NodeFactory\r\n\t\tResourceNode rn3 = new ResourceNode(mbr);\r\n\t\tln.addMember(rn3);\r\n\r\n\t\t// When - used in ResourceCommandHandler to launch wizard\r\n\t\tResourceNode rn4 = new ResourceNode(node.getLibrary(), bo);\r\n\t\t// When - builder used as in ResourceCommandHandler\r\n\t\tnew ResourceBuilder().build(rn4, bo);\r\n\r\n\t\t// Then - must be complete\r\n\t\tcheck(rn1);\r\n\t\tcheck(rn2);\r\n\t\tcheck(rn3);\r\n\t\tcheck(rn4);\r\n\t}",
"@Test\n public void shouldInitializeBeans() throws Exception {\n FixtureAnnotations.initFixtures(this);\n\n assertThat(bean1.getStringProperty()).isEqualTo(\"property\");\n assertThat(bean1.getIntProperty()).isEqualTo(1);\n\n assertThat(bean2.getStringProperty()).isEqualTo(\"property2\");\n assertThat(bean2.getIntProperty()).isEqualTo(1);\n\n assertThat(bean3.getStringProperty()).isEqualTo(\"property\");\n assertThat(bean3.getIntProperty()).isEqualTo(1);\n assertThat(bean3.getListProperty()).containsExactly(\"element1\", \"element2\", \"element3\");\n\n assertThat(bean4.getStringProperty()).isEqualTo(\"property\");\n assertThat(bean4.getIntProperty()).isEqualTo(3);\n\n assertThat(beanList).hasSize(3);\n assertThat(beanList.get(0).getStringProperty()).isEqualTo(\"property1\");\n assertThat(beanList.get(0).getIntProperty()).isEqualTo(1);\n assertThat(beanList.get(1).getStringProperty()).isEqualTo(\"property2\");\n assertThat(beanList.get(1).getIntProperty()).isEqualTo(2);\n assertThat(beanList.get(2).getStringProperty()).isEqualTo(\"property3\");\n assertThat(beanList.get(2).getIntProperty()).isEqualTo(3);\n }",
"public Resources() {\n }",
"public DefaultCoupledResource() {\n }",
"@Before\n public void init() throws MxException {\n InjectorContainer.get().injectMembers( this );\n InjectorContainer.set( iInjector );\n testTaskDefinitionResource.setEJBContext( ejbContext );\n\n setAuthorizedUser( AUTHORIZED );\n setUnauthorizedUser( UNAUTHORIZED );\n\n initializeTest();\n\n Mockito.when( ejbContext.getCallerPrincipal() ).thenReturn( principal );\n Mockito.when( principal.getName() ).thenReturn( AUTHORIZED );\n constructTaskDefinitions();\n }",
"public StudentResource() {\n }",
"public ResourceExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"@Override\n public void initialize()\n {\n super.initialize();\n log.info(\"Initialize \" + name);\n Map<String, Collection<?>> beans;\n generator = service.getRandomSeedRepo().\n getRandomSeed(\"EvSocialClass-\" + name, 1, \"initialize\");\n\n Config.recycle();\n config = Config.getInstance();\n config.configure(service.getServerConfiguration());\n\n beans = config.getBeans();\n unpackBeans(beans);\n\n // Create and set up the customer instances\n evCustomers = new ArrayList<EvCustomer>();\n if (null == customerAttributeList) {\n // boot session - dynamic configuration\n configureForBoot(beans);\n }\n else {\n // sim session - restore from boot record\n configureForSim(beans);\n }\n }",
"@BeforeClass\n\tpublic static void init() {\n\t\ttestProduct = new Product();\n\t\ttestProduct.setPrice(1000);\n\t\ttestProduct.setName(\"Moto 360\");\n\t\ttestProduct.setDescrip(\"Moto 360 smart watch for smart generation.\");\n\n\t\ttestReview = new Review();\n\t\ttestReview.setHeadline(\"Excellent battery life\");\n\t\ttestReview.setContent(\"Moto 360 has an excellent battery life of 10 days per full charge.\");\n\t}",
"@Override\r\n public void initialize(URL location, ResourceBundle resources) {\r\n\r\n }",
"public BoletajeResource() {\n }",
"@PostConstruct\n protected void init() {\n // Look up the associated batch data\n job = batchService.findByInstanceId(jobContext.getInstanceId());\n }",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n }",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n }",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n }",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n }",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n }",
"public TarefaResource() {\r\n }",
"public ResourceProperties() {\n // TODO: we can't use TreeSet because we don't have the app's resource comparator\n // Since resources don't implement Comparable, we can't add them to a \"naked\" TreeSet\n // As a result, resource ordering is random when updating.\n this.resources = new LinkedHashSet();\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n setUp();\n }",
"public SourceInterestMapResource() {\n }",
"@Override\r\n public void initialize(URL location, ResourceBundle resources)\r\n {\n }",
"@Before\n public void init() {\n final Map<String, DataType> defaultTypes = new HashMap<>();\n defaultTypes.put(\"frieda\", StringCell.TYPE);\n defaultTypes.put(\"berta\", StringCell.TYPE);\n ReadAdapterFactory<String, String> readAdapterFactory = new ReadAdapterFactory<String, String>() {\n\n @Override\n public ReadAdapter<String, String> createReadAdapter() {\n return new TestReadAdapter();\n }\n\n @Override\n public ProducerRegistry<String, ? extends ReadAdapter<String, String>> getProducerRegistry() {\n return m_producerRegistry;\n }\n\n @Override\n public Map<String, DataType> getDefaultTypeMap() {\n return defaultTypes;\n }\n\n };\n m_testInstance = new DefaultTypeMappingFactory<>(readAdapterFactory);\n }",
"public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}",
"public void initialize() {\n\t\tcompartmentName = new SimpleStringProperty(compartment.getName());\t\t\n\t\tcompartmentId = new SimpleStringProperty(compartment.getId());\n\t\tcompartmentSBOTerm = new SimpleStringProperty(compartment.getSBOTermID());\n\t}",
"public BooksSchema() {\n super();\n\n Managers.getManager(IBeansManager.class).inject(this);\n }",
"public void init(String collectionName) {\n\r\n }",
"private PropertySetFactory() {}",
"public TestManageBean() {\n }",
"public WifisResource() {\r\n\r\n }",
"@Before\r\n public void setupTestCases() {\r\n instance = new ShoppingListArray();\r\n }",
"@Override\r\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tinitBasicTable();\r\n\t}",
"@Override\n public Resource init() throws ResourceInstantiationException {\n\n // based on info from\n // http://www.iana.org/assignments/media-types/application/fastinfoset\n\n // Register XML mime type\n MimeType mime = new MimeType(\"application\", \"fastinfoset\");\n\n // Register the class handler for this mime type\n mimeString2ClassHandlerMap.put(mime.getType() + \"/\" + mime.getSubtype(),\n this);\n\n // Register the mime type with mine string\n mimeString2mimeTypeMap.put(mime.getType() + \"/\" + mime.getSubtype(), mime);\n\n // Register file sufixes for this mime type\n suffixes2mimeTypeMap.put(\"finf\", mime);\n\n // Register magic numbers for this mime type\n // this should be E0 00 00 01\n // but I can't seem to get it to work\n\n // Set the mimeType for this language resource\n setMimeType(mime);\n\n return this;\n }",
"@Before\n\tpublic void initialize() {\n\t\tCategory category= new Category();// = SAMPLE_CATEGORY1;\n\t\tcategory.setCategoryName(SAMPLE_CATEGORY1.getCategoryName());\n\t\tcategory.setCompanyReferenceNumber(SAMPLE_COMPANY.getCompanyReferenceNumber());\n\t\tcomServ.saveOrUpdate(SAMPLE_COMPANY);\n\t\tcatServ.saveOrUpdate(category);\n\t\tappServ.saveOrUpdate(SAMPLE_APPLICATION1);\n\t\t\n\t}",
"public GlobalSetup(){\n\t\t\n\t\tpropertyData = new Properties();\n\t\t\n\t\ttry{\n\t\t\tInputStream propertyPath = new FileInputStream(\"src/test/resources/properties/categoriesData.properties\");\n\t\t\tpropertyData.load(propertyPath);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}",
"public BuildingResource() {\n }",
"public Builder(CollectionMetadata metadata, List<SecretMetadata> resources) {\n this.metadata = metadata;\n this.resources = resources;\n }",
"public CarResource() {\n }",
"public PSBeanProperties()\n {\n loadProperties();\n }",
"public void testInit() {\n System.out.println(\"init\");\n CloudResourceFactoryFactory instance = new CloudResourceFactoryFactory();\n instance.init();\n\n WebDavResponseHandler result = instance.createResponseHandler();\n assertNotNull(result);\n\n\n ResourceFactory result2 = instance.createResourceFactory();\n assertNotNull(result2);\n\n }",
"public JhoveResources() {\n\t\tsuper();\n\t}",
"public EnterpriseBeansItem() {\n super();\n }",
"ServiceDataResource createServiceDataResource();",
"public TestProperties() {\n\t\tthis.testProperties = new Properties();\n\t}",
"@Override\r\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tquestion.setItems(questionlist);\r\n\t}",
"private Resource() {}",
"public WorkflowResource() {\r\n\t}",
"@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\ttry {\n\t\t\tClass.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\");\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:sqlserver://YASIN;database=Employee;integratedSecurity=true\");\n\t\t\tquery = connection.prepareStatement(\"SELECT * FROM Employees\");\n\t\t\tsolutionCluster = query.executeQuery();\n\t\t\twhile (solutionCluster.next()) {\n\t\t\t\temployees.add(new Employee(solutionCluster.getString(1), solutionCluster.getString(2), solutionCluster.getString(3)));\n\t\t\t}\n\t\t\tcolumnName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\n\t\t\tcolumnSurname.setCellValueFactory(new PropertyValueFactory<>(\"surname\"));\n\t\t\tcolumnEmail.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\n\t\t\ttblEmployee.setItems(employees);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}"
] | [
"0.6582043",
"0.6264803",
"0.6196862",
"0.58995223",
"0.58550876",
"0.5839124",
"0.57481724",
"0.57193905",
"0.57176626",
"0.5711818",
"0.57017684",
"0.5695558",
"0.5679999",
"0.567134",
"0.56643194",
"0.5635187",
"0.5627782",
"0.5618018",
"0.5612388",
"0.56069016",
"0.5604869",
"0.55995035",
"0.5595629",
"0.55884856",
"0.55759394",
"0.55299133",
"0.55187774",
"0.5515223",
"0.55097073",
"0.54987377",
"0.54898703",
"0.5475933",
"0.5463091",
"0.54468024",
"0.54442054",
"0.5428523",
"0.5427185",
"0.53982717",
"0.5394376",
"0.53873175",
"0.53799033",
"0.5377609",
"0.5373694",
"0.5372314",
"0.53657347",
"0.53655523",
"0.53608996",
"0.5358825",
"0.5352914",
"0.5352914",
"0.5346808",
"0.5338136",
"0.5335762",
"0.5326505",
"0.5325569",
"0.5322338",
"0.53174067",
"0.5314523",
"0.53049177",
"0.5302006",
"0.52897656",
"0.5288825",
"0.52881354",
"0.528149",
"0.5271145",
"0.5271145",
"0.5271145",
"0.5271145",
"0.5271145",
"0.52664757",
"0.5257941",
"0.5254547",
"0.524388",
"0.52413183",
"0.5236676",
"0.5228847",
"0.52227074",
"0.5220703",
"0.5208724",
"0.5203969",
"0.5201702",
"0.51970136",
"0.5195762",
"0.5195608",
"0.51843387",
"0.5184044",
"0.5174753",
"0.51744276",
"0.5173833",
"0.5170458",
"0.5160981",
"0.51487005",
"0.5148698",
"0.51459414",
"0.5139924",
"0.5134192",
"0.5130077",
"0.51223266",
"0.51192594",
"0.5116821"
] | 0.5313178 | 58 |
Create a constructor and initialize the fields | public LinkedQueue()
{
this.size = 0;
this.head = null;
this.tail = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Constructor(){\n\t\t\n\t}",
"private Instantiation(){}",
"private void __sep__Constructors__() {}",
"Constructor() {\r\n\t\t \r\n\t }",
"protected abstract void construct();",
"defaultConstructor(){}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"public Field() {\r\n\t}",
"Reproducible newInstance();",
"public ObjectFactory() {\n\t}",
"public Hello()\n {\n // initialise instance variables\n \n }",
"public ObjectFactory() {\r\n\t}",
"public Clade() {}",
"public InitialData(){}",
"private Constructor getConstructor() throws Exception {\r\n return type.getConstructor(Contact.class, label, Format.class);\r\n }",
"public PSRelation()\n {\n }",
"public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }",
"protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }",
"public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }",
"public Data() {\n \n }",
"public CyanSus() {\n\n }",
"public Pasien() {\r\n }",
"public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }",
"void DefaultConstructor(){}",
"public Factory() {\n\t\tsuper();\n\t}",
"public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}",
"@Test\n public void constructor(){\n /**Positive tests*/\n Road road = new Road(cityA, cityB, 4);\n assertEquals(road.getFrom(), cityA);\n assertEquals(road.getTo(), cityB);\n assertEquals(road.getLength(), 4);\n }",
"public AirField() {\n\n\t}",
"@Test\n public void constructorComplete() {\n final String NAME = \"name\";\n final String PICTURE = \"pic\";\n final Integer POSITION = 5;\n final Integer STATUS = 1;\n final CourseType courseType = new CourseType(NAME, PICTURE, POSITION, STATUS);\n\n assertNull(courseType.getId());\n assertSame(NAME, courseType.getName());\n assertSame(PICTURE, courseType.getPicture());\n assertSame(POSITION, courseType.getPosition());\n assertSame(STATUS, courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }",
"public Libro() {\r\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] | [
"0.7382893",
"0.7299265",
"0.706776",
"0.70420986",
"0.67650896",
"0.67472315",
"0.66825265",
"0.66622794",
"0.66268444",
"0.6621912",
"0.6599109",
"0.657594",
"0.65233505",
"0.64985716",
"0.648659",
"0.6479012",
"0.646217",
"0.6457677",
"0.6456918",
"0.64518744",
"0.64440376",
"0.6438614",
"0.6424063",
"0.64189774",
"0.6417784",
"0.6411286",
"0.64057606",
"0.6401577",
"0.63898367",
"0.63775706",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073",
"0.63638073"
] | 0.0 | -1 |
Mock response for jadler. | private String getResponseBody() throws IOException {
return IOUtils.toString(
Issue86IT.class.getResourceAsStream(QUERY_RESOURCE),
"UTF-8");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void useFakeResponse() {\n EmployeeApp.useFakeResponse = true;\n ResponseObject responseObject = new ResponseObject();\n responseObject.setReturnCode(200);\n responseObject.setType(ResponseObject.ResponseType.JSON);\n responseObject.setResponseBodyString(new CompanyEmployeesResponse().getRandomResponse());\n FakeInterceptor.addTest(\"-mobile-\", responseObject);\n }",
"public Object answer(InvocationOnMock invocation) throws Throwable {\n return craftResponse(invocation);\n }",
"@Override\n\tpublic BaseResponse testResponse() {\n\t\treturn setResultSuccess();\n\t}",
"public abstract String getResponse();",
"java.lang.String getResponse();",
"public GrizzletResponse getResponse();",
"@Test\n public void authenResultTest() {\n assertEquals(\"R\", authResponse.getAuthenResult());\n }",
"void onSuccess(int responseCode, int requestCode, Response<JsonElement> response);",
"void faild_response();",
"public void mock(){\n\n }",
"@Override\n public void onResponseSuccess(final String resp) {\n }",
"@Test\n\t@Ignore\n\tpublic void testResponse() throws UnsupportedEncodingException {\n\t\tws = resource().path(\"omxdata\");\n\t\tClientResponse response = ws.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);\n\t\tassertEquals(200, response.getStatus());\n\t\tSystem.out.println(response.getStatus());\n\t}",
"void stubNextResponse(HttpExecuteResponse nextResponse, Duration delay);",
"private CallResponse() {\n initFields();\n }",
"public int getResponse() {return response;}",
"String getResponse();",
"@Override\n public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) {\n }",
"@Test\n public void DrugInteractionsShouldReturnBlankIfNoResponseBody() throws IOException {\n Response mockResponse = mock(Response.class);\n //mock of the underlying classes not visible from source code\n Call mockCall = mock(Call.class);\n ResponseBody mockResponseBody = mock(ResponseBody.class);\n //set behaviours\n when(mockClient.newCall(any(Request.class))).thenReturn(mockCall);\n when(mockCall.execute()).thenReturn(mockResponse);\n when(mockResponseBody.string()).thenReturn(null);\n when(mockResponse.body()).thenReturn(mockResponseBody);\n\n String result = requester.getDrugInteractions(\"water\", \"milk\");\n\n verify(mockCall, times(1)).execute();\n assert (result.equals(\"\"));\n }",
"@Test\n public void testGetResponse_1()\n throws Exception {\n Transaction fixture = new Transaction();\n fixture.setResponse(new Response());\n fixture.setRequest(new Request());\n\n Response result = fixture.getResponse();\n\n assertNotNull(result);\n assertEquals(null, result.getBody());\n assertEquals(null, result.getFirstLine());\n assertEquals(null, result.getBodyAsString());\n assertEquals(\"\", result.extractContentType());\n }",
"Response createResponse();",
"public Object getResponse ()\r\n {\r\n\r\n return response_;\r\n }",
"protected abstract Object buildJsonObject(R response);",
"@Test\n public void givenName_whenGetName_thenReturnResponseEntity() throws Exception {\n String expected = new ObjectMapper().writeValueAsString(new DriscollResponse<>(HttpStatus.OK.value(), nameResponse));\n\n //Mock what needs to be mocked\n when(budgetService.dummyFunction(name)).thenReturn(nameResponse);\n\n //Do test\n MvcResult result = mockMvc.perform(get(String.format(\"/%s\", name))\n .contentType(MediaType.APPLICATION_JSON))\n .andExpect(status().isOk())\n .andReturn();\n\n //Assert if test worked\n String actual = result.getResponse().getContentAsString();\n assertEquals(expected, actual);\n }",
"@Test\n public void DrugInteractionsShouldSendDrugInteractionsRequest() throws IOException {\n Response mockResponse = mock(Response.class);\n //mock of the underlying classes not visible from source code\n Call mockCall = mock(Call.class);\n ResponseBody mockResponseBody = mock(ResponseBody.class);\n //set behaviours\n when(mockClient.newCall(any(Request.class))).thenReturn(mockCall);\n when(mockCall.execute()).thenReturn(mockResponse);\n when(mockResponse.body()).thenReturn(mockResponseBody);\n when(mockResponseBody.string()).thenReturn(\"test body\");\n String result = requester.getDrugInteractions(\"Panadol\", \"Tramadol\");\n\n verify(mockCall, times(1)).execute();\n assert (result.equals(\"test body\"));\n }",
"@Override\n public void onResponse(String response) {\n }",
"@Override\n public void onResponse(String response) {\n }",
"@Override\n public void onResponse(String response) {\n }",
"@Override\n public void onResponse(String response) {\n }",
"@Override\n\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\tJSONArray response) {\n\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tgetJsonObj(response);\n\t\t\t\t\t\tLog.e(\"lory.....\", \"\"+fans.toString());\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t}",
"void stubNextResponse(HttpExecuteResponse nextResponse);",
"@Override\n public void onResponse(String response)\n {\n\n }",
"public void parseResponse();",
"@Test\n public void testResetJadler() throws IOException {\n initJadler();\n\n try {\n onRequest().respond().withStatus(EXPECTED_STATUS);\n assertExpectedStatus();\n\n resetJadler();\n\n onRequest().respond().withStatus(201);\n assertExpectedStatus(201);\n }\n finally {\n closeJadler();\n }\n }",
"@Override\n\t\t\t\t\tpublic void onResponse(String response) {\n\n\t\t\t\t\t}",
"private void getResponse() {\n response = new Response();\n\n getResponseCode();\n getResponseMessage();\n getResponseBody();\n\n LOG.info(\"--- RESPONSE ---\");\n LOG.info(\"Code: \" + response.getResponseCode());\n LOG.info(\"Message: \" + response.getResponseMessage());\n LOG.info(\"Body: \" + response.getResponseBody());\n LOG.info(\"*************************************\");\n }",
"@Override\n\tpublic void handleResponse() {\n\t\t\n\t}",
"@Test\n\tpublic void testResponse() {\n\t\tquestions.setResponse(\"No\");\n\t\tassertEquals(\"No\",questions.getResponse());\n\t}",
"@Test\n\tpublic void testResponse() throws IOException {\n\t\tConfigurationManager config = new ConfigurationManager();\n\t\tHashMap<String, Handler> map = new HashMap<String,Handler>();\n\t\tHashMap<String, String> parameters = new HashMap<String, String>();\n\t\tcheckResponse(new RequestObject(\"\", \"\", parameters), HTTPConstants.BAD_REQUEST, map);\n\t\tcheckResponse(new RequestObject(\"PUT\", \"/reviewsearch\", parameters), HTTPConstants.NOT_ALLOWED, map);\n\t\tcheckResponse(new RequestObject(\"PULL\", \"/slackbot\", parameters), HTTPConstants.NOT_ALLOWED, map);\n\t\tcheckResponse(new RequestObject(\"GET\", \"/slackbot\", parameters), HTTPConstants.NOT_FOUND, map);\n\t\tcheckResponse(new RequestObject(\"POST\", \"/slackbot\", parameters), HTTPConstants.NOT_FOUND, map);\n\t\tmap.put(\"/slackbot\", new ChatHandler(config.getConfig()));\n\t\tcheckResponse(new RequestObject(\"POST\", \"/slackbot\", parameters), HTTPConstants.OK_HEADER, map);\n\t\tcheckResponse(new RequestObject(\"POST\", \"/reviewsearch\", parameters), HTTPConstants.NOT_FOUND, map);\n\t\tmap.put(\"/reviewsearch\", new ReviewSearchHandler(config.getConfig(), new InvertedIndex()));\n\t\tcheckResponse(new RequestObject(\"POST\", \"/reviewsearch\", parameters), HTTPConstants.OK_HEADER, map);\n\t\tparameters.put(\"query\", \"jumpers\");\n\t\tcheckResponse(new RequestObject(\"POST\", \"/reviewsearch\", parameters), HTTPConstants.OK_HEADER, map);\n\t\tparameters.put(\"unknown\", \"unknown\");\n\t\tcheckResponse(new RequestObject(\"POST\", \"/reviewsearch\", parameters), HTTPConstants.OK_HEADER, map);\n\t\tparameters.remove(\"query\");\n\t\tcheckResponse(new RequestObject(\"GET\", \"/reviewsearch\", parameters), HTTPConstants.OK_HEADER, map);\n\t\tcheckResponse(new RequestObject(\"GET\", \"/\", parameters), HTTPConstants.NOT_FOUND, map);\n\t}",
"@Override\n public void onResponse(String response) {\n }",
"@Test\n public void getLinkTest_returnsTrue() throws JSONException{\n LinkHandler test = mock(LinkHandler.class);\n FilteredFoodFeed testLink = new FilteredFoodFeed();\n //expected\n String foodCorrect = \"italian\";\n String priceCorrect = \"$\";\n // create json object to test\n JSONObject link = new JSONObject();\n //retrieval is a success\n link.put(\"linkSuccess\", new Boolean(true));\n\n\n\n when(test.getLink(foodCorrect, priceCorrect)).thenReturn(link);\n Assert.assertEquals(testLink.tryRecieving(foodCorrect,priceCorrect,test),link.getBoolean(\"linkSuccess\"));\n }",
"Response mo35726n0() throws IOException;",
"@Override\r\n public void onSuccess(OrderProxy response)\r\n {\n }",
"@Override\r\n public void onSuccess(OrderProxy response)\r\n {\n }",
"private Response() {}",
"private Response() {}",
"@Override\n public void onResponse(String response) {\n }",
"public void testGetJSON() {\n\t}",
"@Test\n\t\tpublic void testRestSuccessfulResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getValidResponse();\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertFalse(flag);\n\t\t\t\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"public void onResponse(Response response) throws Exception;",
"@Test\n public void atsdTest() {\n assertEquals(\"a\", authResponse.getAtsd());\n }",
"@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\terweimaJsonInfo(arg0.result);\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onResponse(String s) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n public void onSuccess(int statusCode, Header[] headers, byte[] response) {\n Log.e(\"JSON\", new String(response));\n\n\n }",
"@Test\n\tpublic void testRenderData() throws Exception\n\t{\n\t\tfinal HttpServletRequest request = mock(HttpServletRequest.class);\n\t\tfinal HttpServletResponse response = mock(HttpServletResponse.class);\n\n\t\t// servlet mock responses\n\t\tfinal Map<String, String> map = new HashMap<String, String>();\n\t\tmap.put(\"__action\", \"download_json\");\n\t\tmap.put(\"__target\", \"jqGridView\");\n\t\tmap.put(\"Operation\", \"RENDER_DATA\");\n\t\tmap.put(\"rows\", \"10\");\n\t\tmap.put(\"page\", \"1\");\n\t\tfor (final Entry<String, String> entry : map.entrySet())\n\t\t{\n\t\t\twhen(request.getParameter(entry.getKey())).thenReturn(entry.getValue());\n\t\t}\n\t\twhen(request.getParameterMap()).thenReturn(map);\n\t\twhen(request.getMethod()).thenReturn(\"GET\");\n\n\t\tfinal ServletContext context = mock(ServletContext.class);\n\t\tfinal HttpSession session = mock(HttpSession.class);\n\t\twhen(request.getSession()).thenReturn(session);\n\t\twhen(session.getServletContext()).thenReturn(context);\n\n\t\tfinal ServletOutputStream mockOutstream = mock(ServletOutputStream.class);\n\t\twhen(response.getOutputStream()).thenReturn(mockOutstream);\n\n\t\tfinal Tuple molRequest = new MolgenisRequest(request, response);\n\t\tplugin.handleRequest(db, molRequest, mockOutstream);\n\n\t\t// final HttpServletResponse realRequest = ((MolgenisRequest)\n\t\t// molRequest).getResponse();\n\t\t// System.out.println(realRequest.toString());\n\t\tverify(mockOutstream)\n\t\t\t\t.print(\"{\\\"page\\\":1,\\\"total\\\":3067,\\\"records\\\":30670,\\\"rows\\\":[{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Dutch\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"5.300000190734863\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"English\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"9.5\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Papiamento\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"76.69999694824219\\\"},{\\\"Country.Code\\\":\\\"ABW\\\",\\\"Country.Name\\\":\\\"Aruba\\\",\\\"Country.Continent\\\":\\\"North America\\\",\\\"Country.Region\\\":\\\"Caribbean\\\",\\\"Country.SurfaceArea\\\":\\\"193.0\\\",\\\"Country.IndepYear\\\":\\\"null\\\",\\\"Country.Population\\\":\\\"103000\\\",\\\"Country.LifeExpectancy\\\":\\\"78.4000015258789\\\",\\\"Country.GNP\\\":\\\"828.0\\\",\\\"Country.GNPOld\\\":\\\"793.0\\\",\\\"Country.LocalName\\\":\\\"Aruba\\\",\\\"Country.GovernmentForm\\\":\\\"Nonmetropolitan Territory of The Netherlands\\\",\\\"Country.HeadOfState\\\":\\\"Beatrix\\\",\\\"Country.Capital\\\":\\\"129\\\",\\\"Country.Code2\\\":\\\"AW\\\",\\\"City.ID\\\":\\\"129\\\",\\\"City.Name\\\":\\\"Oranjestad\\\",\\\"City.CountryCode\\\":\\\"ABW\\\",\\\"City.District\\\":\\\"Ð\\\",\\\"City.Population\\\":\\\"29034\\\",\\\"CountryLanguage.CountryCode\\\":\\\"ABW\\\",\\\"CountryLanguage.Language\\\":\\\"Spanish\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"7.400000095367432\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"3\\\",\\\"City.Name\\\":\\\"Herat\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Herat\\\",\\\"City.Population\\\":\\\"186800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"4\\\",\\\"City.Name\\\":\\\"Mazar-e-Sharif\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Balkh\\\",\\\"City.Population\\\":\\\"127800\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Balochi\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"F\\\",\\\"CountryLanguage.Percentage\\\":\\\"0.8999999761581421\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"1\\\",\\\"City.Name\\\":\\\"Kabul\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Kabol\\\",\\\"City.Population\\\":\\\"1780000\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"},{\\\"Country.Code\\\":\\\"AFG\\\",\\\"Country.Name\\\":\\\"Afghanistan\\\",\\\"Country.Continent\\\":\\\"Asia\\\",\\\"Country.Region\\\":\\\"Southern and Central Asia\\\",\\\"Country.SurfaceArea\\\":\\\"652090.0\\\",\\\"Country.IndepYear\\\":\\\"1919\\\",\\\"Country.Population\\\":\\\"22720000\\\",\\\"Country.LifeExpectancy\\\":\\\"45.900001525878906\\\",\\\"Country.GNP\\\":\\\"5976.0\\\",\\\"Country.GNPOld\\\":\\\"null\\\",\\\"Country.LocalName\\\":\\\"Afganistan/Afqanestan\\\",\\\"Country.GovernmentForm\\\":\\\"Islamic Emirate\\\",\\\"Country.HeadOfState\\\":\\\"Mohammad Omar\\\",\\\"Country.Capital\\\":\\\"1\\\",\\\"Country.Code2\\\":\\\"AF\\\",\\\"City.ID\\\":\\\"2\\\",\\\"City.Name\\\":\\\"Qandahar\\\",\\\"City.CountryCode\\\":\\\"AFG\\\",\\\"City.District\\\":\\\"Qandahar\\\",\\\"City.Population\\\":\\\"237500\\\",\\\"CountryLanguage.CountryCode\\\":\\\"AFG\\\",\\\"CountryLanguage.Language\\\":\\\"Dari\\\",\\\"CountryLanguage.IsOfficial\\\":\\\"T\\\",\\\"CountryLanguage.Percentage\\\":\\\"32.099998474121094\\\"}]}\");\n\t}",
"@Test\n public void resultTest() {\n assertEquals(Integer.valueOf(1), authResponse.getResult());\n }",
"public String getResponseMessage();",
"@Override\n\t\t\tpublic void onSuccess(Method method, JSONValue response) {\n\t\t\t}",
"@Test\r\n public void testParseResult() throws Exception \r\n {\r\n System.out.println(\"parseResult\");\r\n JsonObject data = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n JsonArray expResult = null;\r\n // instance.parseResult(data, null);\r\n }",
"@Test\n public void testGetItem() throws Exception {\n RequestBuilder request = MockMvcRequestBuilders\n .get(\"/dummy-item\").accept(MediaType.APPLICATION_JSON);\n MvcResult mvcResult = mockMvc.perform(request)\n // perform request and check status\n .andExpect(status().isOk())\n // check content \n // if response is easy check directly\n .andExpect(content().json(\"{\\\"id\\\": 123,\\\"name\\\": \\\"Indarpreet\\\",\\\"price\\\": 120,\\\"quantity\\\": 1}\"))\n // return the object\n .andReturn();\n\n // if response is complex check using Assert Equals and other libraries \n // assertEquals(\"Hello World\", mvcResult.getResponse().getContentAsString());\n }",
"public String provideAlwasDefResponse()\n {\n return (\"d\") ;\n }",
"@Test\n public void getOembedResponseForShouldWork4() throws IOException {\n\tString embeddableUrl = \"http://biking.michael-simons.eu/tracks/1\";\n\t\n\tOembedEndpoint oembedEndpoint = new OembedEndpoint();\n\toembedEndpoint.setName(\"biking\");\n\toembedEndpoint.setEndpoint(\"http://biking.michael-simons.eu/oembed\");\n\toembedEndpoint.setMaxWidth(480);\n\toembedEndpoint.setMaxHeight(360);\n\toembedEndpoint.setUrlSchemes(Arrays.asList(\"http://biking\\\\.michael-simons\\\\.eu/tracks/.*\"));\n\t\n\tHttpResponse r = Mockito.mock(HttpResponse.class, Mockito.RETURNS_DEEP_STUBS);\n\twhen(r.getStatusLine().getStatusCode()).thenReturn(200);\n\twhen(r.getEntity().getContentType()).thenReturn(null);\n\twhen(r.getEntity().getContent()).thenReturn(new ByteArrayInputStream(responseString.getBytes()));\n\n\twhen(defaultHttpClient.execute(any(HttpGet.class))).thenReturn(r);\n\t\n\tEhcache cache = Mockito.mock(Ehcache.class);\t\n\twhen(cache.get(embeddableUrl)).thenReturn(null);\n\twhen(cacheManager.addCacheIfAbsent(\"testCache\")).thenReturn(cache);\n\t\n\tOembedService oembedService = new OembedService(defaultHttpClient, cacheManager, Arrays.asList(oembedEndpoint), null);\n\toembedService.setCacheName(\"testCache\");\n\tAssert.assertTrue(oembedService.getOembedResponseFor(embeddableUrl).isPresent());\t\n\tArgumentCaptor<HttpGet> argumentCaptor = ArgumentCaptor.forClass(HttpGet.class);\n\tverify(defaultHttpClient).execute(argumentCaptor.capture());\n\tAssert.assertEquals(\"http://biking.michael-simons.eu/oembed?format=json&url=http%3A%2F%2Fbiking.michael-simons.eu%2Ftracks%2F1&maxwidth=480&maxheight=360\", argumentCaptor.getValue().getURI().toString());\t\n\t\n\tverify(cacheManager, times(2)).addCacheIfAbsent(\"testCache\");\n\tverify(cacheManager).cacheExists(OembedService.class.getName());\t\n\tverify(cache).get(embeddableUrl);\n\tverify(cache).put(any(Element.class));\n\t\n\tverifyNoMoreInteractions(cache, cacheManager, defaultHttpClient);\t\t\n }",
"@Override\n public void onSuccess(int statusCode , Header[] headers , JSONArray response)\n {\n }",
"private CityResponse mockCityResponse() {\n List<String> cityLocales = new ArrayList<String>(Collections.singleton(\"en\"));\n Map<String, String> cityNames = new HashMap<>();\n cityNames.put(\"en\", \"New York\");\n City city = new City(cityLocales, 1, 1, cityNames);\n\n List<String> countryNames = new ArrayList<>(Collections.singleton(\"United States\"));\n Country country = new Country(countryNames, 1, 1, \"US\", new HashMap());\n\n Location location = new Location(1, 1, 40.760498D, -73.9933D, 501, 1, \"EST\");\n\n Postal postal = new Postal(\"10036\", 1);\n\n return new CityResponse(city, new Continent(), country, location, new MaxMind(), postal,\n country, new RepresentedCountry(), new ArrayList<>(0),\n new Traits());\n }",
"@Test\n public void authcodeTest() {\n assertEquals(\"12345\", authResponse.getAuthcode());\n }",
"@Override\n public void onResponse(Response response) throws IOException {\n }",
"@Override\n public void processResult(HttpResponseMessage response) {\n }",
"@Override\n\tpublic void sendResponse() {\n\n\t}",
"@Override\n\tpublic boolean isResponseExpected() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void sendResponse() {\n\t\t\n\t}",
"@Test\n public void oneSpartanPojo(){\n Response response = given().accept(ContentType.JSON)\n .and().pathParam(\"id\", 15)\n .and().get(\"http://18.232.145.26:8000/api/spartans/{id}\");\n\n // Verify response status code should be 200\n Assert.assertEquals(response.statusCode(), 200 , \"Verify status code : \");\n\n // Convert Json to POJO( Our custom Spartan java class )\n Spartan spartan15 = response.body().as(Spartan.class);\n System.out.println(\"spartan15 = \" + spartan15);\n System.out.println(\"spartan15.getNames() = \" + spartan15.getName());\n System.out.println(\"spartan15.getId() = \" + spartan15.getId());\n\n\n }",
"@Nullable\n public abstract T response();",
"@Test\n public void testGetUserInfoResponse() {\n // TODO: test GetUserInfoResponse\n }",
"@Override\n\t\t\tprotected void deliverResponse(String response) {\n\n\t\t\t}",
"ResponseHandler createResponseHandler();",
"private Response() {\n initFields();\n }",
"@Test\n public void shouldReturnOKStatus() throws Exception{\n Mockito.when(itemService.getItemById(1)).thenReturn(new Item(1,\"Item1\",12,25));\n RequestBuilder requestBuilder= MockMvcRequestBuilders.get(\"/item?id=1\").accept(MediaType.APPLICATION_JSON);\n mockMvc.perform(requestBuilder).andExpect(status().isOk()).andExpect(content().json(\"{\" +\n \"id:1,name:Item1,price:12,quantity:25}\"));\n }",
"@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}",
"@Test\n public void resultCodeTest() {\n assertEquals(\"000\", authResponse.getResultCode());\n }",
"public GetResponseTest() {\n\t\t/*\n\t\t * This constructor should not be modified. Any initialization code\n\t\t * should be placed in the setUp() method instead.\n\t\t */\n\n\t}",
"@Test\n void executeMoneyTransfer() throws ParseException, JsonProcessingException {\n\n String idAccount = \"14537780\";\n String receiverName = \"Receiver Name\";\n String description = \"description text\";\n String currency = \"EUR\";\n String amount = \"100\";\n String executionDate = \"2020-12-12\";\n MoneyTransfer moneyTransfer = Utils.fillMoneyTransfer(idAccount, receiverName, description, currency, amount, executionDate);\n\n Response response = greetingWebClient.executeMoneyTransfer(moneyTransfer, idAccount);\n assertTrue(response.getStatus().equals(\"KO\"));\n\n\n }",
"public void setResponse(JSONObject res) { response = res; }",
"public void setResponse(String response) {\n this.response = response;\n }",
"public void setResponse(String response) {\n this.response = response;\n }",
"protected T getResponse() {\n return responseData;\n }",
"@Test\n void getAccountBalance() throws JsonProcessingException {\n\n String idAccount = \"14537780\";\n\n Response response = greetingWebClient.getAccountBalance(idAccount);\n assertTrue(response.getPayload().getList().size()>0 && response.getStatus().equals(\"OK\"));\n\n }",
"private void POSTTest(Map<String, Object> inputBody, int expectedStatus, Map<String, Object> expectedResponse, boolean strict) throws Exception{\n CloseableHttpResponse response = createUser(inputBody);\n int status = response.getStatusLine().getStatusCode();\n\n if (status == expectedStatus) {\n HttpEntity entity = response.getEntity();\n String strResponse = EntityUtils.toString(entity);\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n if (expectedStatus == 201) {\n expectedResponse.put(\"id\", Long.parseLong(getIdFromStringResponse(strResponse)));\n JSONObject json = new JSONObject(expectedResponse);\n JSONAssert.assertEquals(json.toString() ,strResponse, strict);\n } else {\n // // shouldnt be comaring response for an invalid request\n // if (!\"\".equals(strResponse)){\n // throw new ClientProtocolException(\"Unexpected response body: \" + strResponse);\n // }\n } \n\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n\n EntityUtils.consume(response.getEntity());\n response.close();\n }",
"@Override\r\n\tprotected GuardarSustentoResponse responseText(String json) {\n\t\tGuardarSustentoResponse guardarSustentoResponse = JSONHelper.desSerializar(json, GuardarSustentoResponse.class);\r\n\t\treturn guardarSustentoResponse;\r\n\t}",
"@Test\n public void getOembedResponseForShouldWork3() throws IOException {\n\tString embeddableUrl = \"http://biking.michael-simons.eu/tracks/1\";\n\t\n\tOembedEndpoint oembedEndpoint = new OembedEndpoint();\n\toembedEndpoint.setName(\"biking\");\n\toembedEndpoint.setEndpoint(\"http://biking.michael-simons.eu/oembed\");\n\toembedEndpoint.setMaxWidth(480);\n\toembedEndpoint.setMaxHeight(360);\n\toembedEndpoint.setUrlSchemes(Arrays.asList(\"http://biking\\\\.michael-simons\\\\.eu/tracks/.*\"));\n\t\n\tHttpResponse r = Mockito.mock(HttpResponse.class, Mockito.RETURNS_DEEP_STUBS);\n\twhen(r.getStatusLine().getStatusCode()).thenReturn(200);\n\twhen(r.getEntity().getContentType()).thenReturn(null);\n\twhen(r.getEntity().getContent()).thenReturn(new ByteArrayInputStream(\"Hallo, Welt\".getBytes()));\n\n\twhen(defaultHttpClient.execute(any(HttpGet.class))).thenReturn(r);\n\t\n\tEhcache cache = Mockito.mock(Ehcache.class);\t\n\twhen(cache.get(embeddableUrl)).thenReturn(null);\n\twhen(cacheManager.addCacheIfAbsent(\"testCache\")).thenReturn(cache);\n\t\n\tOembedService oembedService = new OembedService(defaultHttpClient, cacheManager, Arrays.asList(oembedEndpoint), null);\n\toembedService.setCacheName(\"testCache\");\n\tAssert.assertFalse(oembedService.getOembedResponseFor(embeddableUrl).isPresent());\t\n\tArgumentCaptor<HttpGet> argumentCaptor = ArgumentCaptor.forClass(HttpGet.class);\n\tverify(defaultHttpClient).execute(argumentCaptor.capture());\n\tAssert.assertEquals(\"http://biking.michael-simons.eu/oembed?format=json&url=http%3A%2F%2Fbiking.michael-simons.eu%2Ftracks%2F1&maxwidth=480&maxheight=360\", argumentCaptor.getValue().getURI().toString());\t\n\t\n\tverify(cacheManager, times(2)).addCacheIfAbsent(\"testCache\");\n\tverify(cacheManager).cacheExists(OembedService.class.getName());\t\n\tverify(cache).get(embeddableUrl);\n\tverify(cache).put(any(Element.class));\n\t\n\tverifyNoMoreInteractions(cache, cacheManager, defaultHttpClient);\t\t\n }",
"@Test\n public void testSynchronousScoresWithNoAbuseTypes() throws Exception {\n String expectedRequestBody = \"{\\n\" +\n \" \\\"$type\\\" : \\\"$create_order\\\",\\n\" +\n \" \\\"$api_key\\\" : \\\"YOUR_API_KEY\\\",\\n\" +\n \" \\\"$user_id\\\" : \\\"billy_jones_301\\\"\\n\" +\n \"}\";\n\n // Start a new mock server and enqueue a mock response.\n MockWebServer server = new MockWebServer();\n MockResponse response = new MockResponse();\n response.setResponseCode(HTTP_OK);\n String bodyStr = \"{\\n\" +\n \" \\\"status\\\" : 0,\\n\" +\n \" \\\"error_message\\\" : \\\"OK\\\",\\n\" +\n \" \\\"time\\\" : 1327604222,\\n\" +\n \" \\\"request\\\" : \\\"\" + TestUtils.unescapeJson(expectedRequestBody) + \"\\\",\\n\" +\n \" \\\"score_response\\\": {\\n\" +\n \" \\\"status\\\": 0, \\n\" +\n \" \\\"error_message\\\": \\\"OK\\\", \\n\" +\n \" \\\"user_id\\\": \\\"billy_jones_301\\\",\\n\" +\n \" \\\"scores\\\": {\\n\" +\n \" \\\"payment_abuse\\\": {\\n\" +\n \" \\\"score\\\": 0.898391231245,\\n\" +\n \" \\\"reasons\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"name\\\": \\\"UsersPerDevice\\\",\\n\" +\n \" \\\"value\\\": 4,\\n\" +\n \" \\\"details\\\": {\\n\" +\n \" \\\"users\\\": \\\"a, b, c, d\\\"\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" ]\\n\" +\n \" },\\n\" +\n \" \\\"promotion_abuse\\\": {\\n\" +\n \" \\\"score\\\": 0.472838192111,\\n\" +\n \" \\\"reasons\\\": []\\n\" +\n \" }\\n\" +\n \" },\\n\" +\n \" \\\"latest_labels\\\": {\\n\" +\n \" \\\"payment_abuse\\\": {\\n\" +\n \" \\\"is_bad\\\": true,\\n\" +\n \" \\\"time\\\": 1352201880,\\n\" +\n \" \\\"description\\\": \\\"received a chargeback\\\"\\n\" +\n \" },\\n\" +\n \" \\\"promotion_abuse\\\": {\\n\" +\n \" \\\"is_bad\\\": false,\\n\" +\n \" \\\"time\\\": 1362205000\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \"}\";\n response.setBody(bodyStr);\n server.enqueue(response);\n server.start();\n\n // Create a new client and link it to the mock server.\n SiftClient client = new SiftClient(\"YOUR_API_KEY\", \"YOUR_ACCOUNT_ID\",\n new OkHttpClient.Builder()\n .addInterceptor(OkHttpUtils.urlRewritingInterceptor(server))\n .build());\n\n // Build and execute the request against the mock server.\n EventRequest request = client.buildRequest(\n new CreateOrderFieldSet().setUserId(\"billy_jones_301\")).withScores();\n EventResponse siftResponse = request.send();\n\n // Verify the request.\n RecordedRequest request1 = server.takeRequest();\n Assert.assertEquals(\"POST\", request1.getMethod());\n Assert.assertEquals(\"/v205/events?return_score=true\", request1.getPath());\n JSONAssert.assertEquals(expectedRequestBody, request.getFieldSet().toJson(), true);\n\n // Verify the response.\n Assert.assertEquals(HTTP_OK, siftResponse.getHttpStatusCode());\n Assert.assertEquals(0, (int) siftResponse.getBody().getStatus());\n JSONAssert.assertEquals(response.getBody().readUtf8(),\n siftResponse.getBody().toJson(), false);\n Assert.assertEquals(siftResponse.getAbuseScore(\"payment_abuse\").getScore(),\n (Double) 0.898391231245);\n\n server.shutdown();\n }",
"String getAnswerResponse();",
"Object visitorResponse();",
"private void setupStubs() {\n wireMockServer.stubFor(get(urlEqualTo(BRITISH_LONG_HAIR))\n .willReturn(aResponse().withHeader(\"Content-Type\", \"application-json\")\n .withStatus(200)\n .withBodyFile(\"json/british-long-hair.json\")));\n }",
"public Result apply(WSResponse response) {\n\n if (response.getStatus() >= 400) {\n Logger.info(\"Error status [\" + response.getStatusText() + \"] from proxied request \" + holder.getUrl());\n return getCachedResponse(response.getStatus());\n }\n /**\n * Check the content type of the response. Current policy is that only JSON types are supported. Other types should not be\n * cached. u\n */\n if (!response.getHeader(Http.HeaderNames.CONTENT_TYPE).contains(Http.MimeTypes.JSON)) {\n //TODO: Remove\n Logger.warn(\"Response contains unsupported mediatype: \" + response.getHeader(Http.HeaderNames.CONTENT_TYPE));\n return status(UNSUPPORTED_MEDIA_TYPE, \"Response contains an unsupported media type [\" + response.getHeader(Http.HeaderNames.CONTENT_TYPE) + \"]\");\n }\n\n //TODO: get request and response headers into a string to cache\n CachedResponse resp = new CachedResponse(\n request().toString(),\n response.getBody(),\n response.getStatus(),\n \"application/json\"\n );\n\n Logger.debug(\"Response headers are \" + response.getAllHeaders());\n for (String key : response.getAllHeaders().keySet()) {\n final String val = StringUtils.join(response.getAllHeaders().get(key), \";\");\n response().setHeader(key, val);\n }\n _responseCache.put(getCacheKeyFromRequest(), resp);\n Logger.debug(\"Cached Response for [\" + holder.getUrl() + \"] from proxied request \" + holder.getUrl());\n return status(response.getStatus(), response.getBody()).as(Http.MimeTypes.JSON);\n }",
"@Override\r\n\tpublic SampleResponse getSomedata() {\r\n\r\n\t\tsampleResponse.setMoney(SampleConstants.MONEY);\r\n\t\t\r\n\t\tMap<String, String> hashmap = new HashMap<String, String>();\r\n\t\thashmap.put(\"testkey\", \"testValue\");\r\n\t\thashmap.put(\"testkey1\", \"testValue1\");\r\n\t\tsampleResponse.setAdditionalPorperties(hashmap);\r\n\r\n\t\treturn sampleResponse;\r\n\t}",
"private void setupOkMock() throws Exception {\n mockEndpoint = EasyMock.createMock(OpportunitiesApi.class);\n\n // Set up LPs\n List<GetCharactersCharacterIdOpportunities200Ok> opList = Arrays.stream(oppTestData)\n .map(x -> {\n GetCharactersCharacterIdOpportunities200Ok newOpp = new GetCharactersCharacterIdOpportunities200Ok();\n newOpp.setTaskId((int) x[0]);\n newOpp.setCompletedAt(\n new DateTime(new Date((long) x[1])));\n return newOpp;\n })\n .collect(Collectors.toList());\n\n // Setup retrieval mock calls\n Map<String, List<String>> headers = createHeaders(\"Expires\", \"Thu, 21 Dec 2017 12:00:00 GMT\");\n ApiResponse<List<GetCharactersCharacterIdOpportunities200Ok>> apir = new ApiResponse<>(200, headers, opList);\n EasyMock.expect(mockEndpoint.getCharactersCharacterIdOpportunitiesWithHttpInfo(\n EasyMock.eq((int) charSyncAccount.getEveCharacterID()),\n EasyMock.isNull(),\n EasyMock.isNull(),\n EasyMock.anyString()))\n .andReturn(apir);\n\n // Setup server mock\n mockServer = EasyMock.createMock(ESIAccountClientProvider.class);\n EasyMock.expect(mockServer.getOpportunitiesApi())\n .andReturn(mockEndpoint);\n }",
"public T getResponse() {\n return response;\n }",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Test\n public void test003() {\n String name = response.extract().path(\"data[4].name\");\n\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.printf(\"The 5th sore name is: %s%n\", name);\n System.out.println(\"------------------End of Test---------------------------\");\n }",
"@Override\n public void onSuccess(int statusCode , Header[] headers , JSONObject response)\n {\n }",
"public interface IResponse {\n\n // abstract method for returning a String message in JSON format\n String getJSON();\n\n // abstract method to initialize code JSON property\n void setCode(String code);\n\n // abstract method to initialize message JSON property\n void setMessage(String message);\n}"
] | [
"0.68147576",
"0.6615946",
"0.64302427",
"0.62815356",
"0.60587144",
"0.6055986",
"0.6026458",
"0.6020648",
"0.6007469",
"0.59906316",
"0.5963107",
"0.59498006",
"0.59282655",
"0.592645",
"0.59115076",
"0.5885102",
"0.5872342",
"0.5826858",
"0.5816008",
"0.5814449",
"0.5803744",
"0.5802224",
"0.57949466",
"0.57738423",
"0.57711196",
"0.57704186",
"0.57704186",
"0.57704186",
"0.5762097",
"0.5751309",
"0.57468957",
"0.573617",
"0.573136",
"0.5727176",
"0.5714539",
"0.56935245",
"0.56845504",
"0.5677014",
"0.56763273",
"0.5670223",
"0.56658226",
"0.56580335",
"0.56580335",
"0.5648327",
"0.5648327",
"0.5638426",
"0.5622967",
"0.5622011",
"0.56204784",
"0.5613274",
"0.56110173",
"0.5599145",
"0.55986667",
"0.55897003",
"0.558714",
"0.5567554",
"0.55632824",
"0.55600244",
"0.55463535",
"0.5529249",
"0.55255157",
"0.55184114",
"0.55172575",
"0.5516134",
"0.55096895",
"0.5509187",
"0.55017036",
"0.550148",
"0.5500993",
"0.5494651",
"0.54834676",
"0.5465155",
"0.5465149",
"0.54643494",
"0.5462446",
"0.5461543",
"0.54609436",
"0.54562926",
"0.5455567",
"0.5445714",
"0.54394704",
"0.5427821",
"0.5427821",
"0.54234",
"0.5421763",
"0.5419527",
"0.5418586",
"0.541816",
"0.54175806",
"0.54129416",
"0.5392849",
"0.53886855",
"0.5387927",
"0.53846616",
"0.53809524",
"0.5378147",
"0.53546596",
"0.53546596",
"0.5353317",
"0.53528434",
"0.5350133"
] | 0.0 | -1 |
/ Set the Nimbus look and feel / If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. For details see | public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(kullaniciEkrani.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new kullaniciEkrani().setVisible(true);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setLookAndFeel() {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n\n // TODO: Configure theming colors. UIManager.put(property, new Color(...));\n // {@see http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/_nimbusDefaults.html}\n\n\t\t\tfinal NimbusLookAndFeel laf = new NimbusLookAndFeel();\n UIManager.setLookAndFeel(laf);\n UIDefaults defaults = laf.getDefaults();\n defaults.put(\"List[Selected].textForeground\",\n laf.getDerivedColor(\"nimbusLightBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List[Selected].textBackground\",\n laf.getDerivedColor(\"nimbusSelectionBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List[Disabled+Selected].textBackground\",\n laf.getDerivedColor(\"nimbusSelectionBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List[Disabled].textForeground\",\n laf.getDerivedColor(\"nimbusDisabledText\", 0.0f, 0.0f, 0.0f, 0, false));\n defaults.put(\"List:\\\"List.cellRenderer\\\"[Disabled].background\",\n laf.getDerivedColor(\"nimbusSelectionBackground\", 0.0f, 0.0f, 0.0f, 0, false));\n\n } catch (Exception e) {}\n }",
"@SuppressWarnings(\"unused\")\n private static void activateNimbus() //just for testing reasons\n {\n try {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (Exception e) {\n log.warn(\"error in nimbus activation?\", e);\n }\n }",
"static void customizeNimbus()\r\n\t\tthrows Exception\r\n\t{\n\t\tUIManager.put(\"control\", BACKGROUND);\r\n\r\n\t\t// TODO: imilne 04/SEP/2009 - No longer working since JRE 1.6.0_u13\r\n\t\tif (SystemUtils.isWindows())\r\n\t\t{\r\n\t\t\tUIManager.put(\"defaultFont\", FONT);\r\n\t\t\tUIManager.put(\"Label[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"Table[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TableHeader[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TabbedPane[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"ComboBox[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"Button[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"ToggleButton[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"TextField[Enabled].font\", FONT);\r\n\t\t\tUIManager.put(\"CheckBox[Enabled].font\", FONT);\r\n\t\t}\r\n\r\n\t\tfor (UIManager.LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels())\r\n\t\t\tif (laf.getName().equals(\"Nimbus\"))\r\n\t\t\t\tUIManager.setLookAndFeel(laf.getClassName());\r\n\r\n\r\n\t\tUIManager.put(\"SplitPane[Enabled].size\", 8);\r\n\r\n\t\tUIManager.put(\"nimbusOrange\", new Color(51, 98, 140));\r\n//\t\tUIManager.put(\"nimbusOrange\", new Color(57, 105, 138));\r\n//\t\tUIManager.put(\"nimbusOrange\", new Color(115, 164, 209));\r\n\r\n\r\n\t\t// Reset non-Aqua look and feels to use CMD+C/X/V rather than CTRL for copy/paste stuff\r\n\t\tif (SystemUtils.isMacOS())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Setting OS X keyboard shortcuts\");\r\n\r\n\t\t\tInputMap textField = (InputMap) UIManager.get(\"TextField.focusInputMap\");\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_DOWN_MASK), DefaultEditorKit.copyAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_DOWN_MASK), DefaultEditorKit.pasteAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.META_DOWN_MASK), DefaultEditorKit.cutAction);\r\n\t\t\ttextField.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.META_DOWN_MASK), DefaultEditorKit.selectAllAction);\r\n\r\n\t\t\tInputMap textArea = (InputMap) UIManager.get(\"TextArea.focusInputMap\");\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_C, KeyEvent.META_DOWN_MASK), DefaultEditorKit.copyAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, KeyEvent.META_DOWN_MASK), DefaultEditorKit.pasteAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_X, KeyEvent.META_DOWN_MASK), DefaultEditorKit.cutAction);\r\n\t\t\ttextArea.put(KeyStroke.getKeyStroke(KeyEvent.VK_A, KeyEvent.META_DOWN_MASK), DefaultEditorKit.selectAllAction);\r\n\t\t}\r\n\t}",
"public final static void setDesign() {\n\t\t\ttry{\n\t\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(\"Prob with setDesign()\");\n\t\t\t}\n\t\t\t\n\t\t}",
"public static void LookAndFeel() {\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); // uniformed\n\t\t} catch (Exception exc) {\n\t\t}\n\t}",
"public examreports() {\n dblogincred();\n initComponents();\n try {\n for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n} catch (Exception e) {\n // If Nimbus is not available, you can set the GUI to another look and feel.\n}\n }",
"private static void setLook() {\r\n try {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n } catch (IllegalAccessException ex) {\r\n ex.printStackTrace();\r\n } catch (UnsupportedLookAndFeelException ex) {\r\n ex.printStackTrace();\r\n } catch (ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n } catch (InstantiationException ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"private boolean isNimbus()\n/* */ {\n/* 152 */ return UIManager.getLookAndFeel().getName().contains(\"Nimbus\");\n/* */ }",
"private void LookAndFeel() {\n try {\n // Set System L&F\n BasicLookAndFeel darcula = new DarculaLaf();\n UIManager.setLookAndFeel(darcula);\n } catch (UnsupportedLookAndFeelException e) {\n // handle exception\n }\n }",
"private String getLookAndFeelClassName(String nimbus) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"protected static void initLnF() {\r\n try {\r\n if (!\"com.sun.java.swing.plaf.motif.MotifLookAndFeel\".equals(UIManager.getSystemLookAndFeelClassName())\r\n && !\"com.sun.java.swing.plaf.gtk.GTKLookAndFeel\".equals(UIManager.getSystemLookAndFeelClassName())\r\n && !UIManager.getSystemLookAndFeelClassName().equals(UIManager.getLookAndFeel().getClass().getName())) {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private static void setLookAndFeel() { \r\n try {\r\n UIManager.setLookAndFeel(\"javax.swing.plaf.metal.MetalLookAndFeel\"); \r\n } catch (final UnsupportedLookAndFeelException e) {\r\n System.out.println(\"UnsupportedLookAndFeelException\");\r\n } catch (final ClassNotFoundException e) {\r\n System.out.println(\"ClassNotFoundException\");\r\n } catch (final InstantiationException e) {\r\n System.out.println(\"InstantiationException\");\r\n } catch (final IllegalAccessException e) {\r\n System.out.println(\"IllegalAccessException\");\r\n } \r\n }",
"private void configuraInterface() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\ttry\t{\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"Falhou o carregamento do L&F: \");\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}",
"public static void windowLookAndFeel(){\r\n\t try{\r\n\t UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t }catch (Exception e) {\r\n\t System.out.println(\"Look and Feel error: \" + e);\r\n\t }\r\n\t}",
"private static void setLookAndFeel() {\n\tSystem.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n\n\ttry {\n\t UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\n\t //copy progress bar of System LAF\n\t HashMap<Object, Object> progressDefaults = new HashMap<Object, Object>();\n\t for (Map.Entry<Object, Object> entry : UIManager.getDefaults()\n\t\t .entrySet()) {\n\t\tif (entry.getKey().getClass() == String.class\n\t\t\t&& ((String) entry.getKey()).startsWith(\"ProgressBar\")) {\n\t\t progressDefaults.put(entry.getKey(), entry.getValue());\n\t\t}\n\t }\n\n\t prepareLayout();\n\n\t UIManager\n\t\t .setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\n\t // copy back progress bar of metal Look and Feel\n\t for (Map.Entry<Object, Object> entry : progressDefaults.entrySet()) {\n\t\tUIManager.getDefaults().put(entry.getKey(), entry.getValue());\n\t }\n\t} catch (ClassNotFoundException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (InstantiationException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (IllegalAccessException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t} catch (UnsupportedLookAndFeelException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\n }",
"private void nativeLookAndFeel() {\n\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException e) {\n e.printStackTrace();\n }\n }",
"private void setNativeLAndF() {\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception e) {\r\n\t\t\t//do nothing. It will default to normal\r\n\t\t}\r\n\t}",
"public void applyLookAndFeel() {\n\r\n\t\tLookAndFeelInfo[] infos = UIManager.getInstalledLookAndFeels();\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"NIMBUS\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"WINDOW\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlook = (Math.abs(look) % infos.length);\r\n\r\n\t\tString lookName = infos[look].getName();\r\n\r\n\t\ttry {\r\n \t\tUIManager.setLookAndFeel(infos[look].getClassName());\r\n \t\tsetTitle(JMTKResizer.ABOUT + \" - \" + lookName);\r\n \tSwingUtilities.updateComponentTreeUI(this);\r\n \t\t//pack();\r\n\r\n \t} catch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n\t}",
"private void menuNimbusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuNimbusActionPerformed\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.motif.MotifLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private static void initLookAndFeel()\n {\n try \n {\n UIManager.setLookAndFeel(\"de.javasoft.plaf.synthetica.SyntheticaAluOxideLookAndFeel\");\n }\n \n catch(ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e)\n {\n JOptionPane.showMessageDialog(null, \"Failed to load resource package\");\n }\n }",
"private void setupLookAndFeel() {\n SwingUtilities.invokeLater(() -> {\n model.getUserPreferences().getThemeSubject().subscribe((skin) -> {\n try {\n UIManager.setLookAndFeel(new SubstanceLookAndFeel(\n (SubstanceSkin) skin.getTheme().newInstance()\n ) {\n });\n if (frame != null) {\n frame.repaint();\n }\n } catch (UnsupportedLookAndFeelException | InstantiationException | IllegalAccessException e) {\n ExceptionHandler.get().handle(e);\n }\n });\n });\n }",
"public static void setLookAndFeel(){\n\t\t\n\t\tUIManager.put(\"nimbusBase\", new Color(0,68,102));\n\t\tUIManager.put(\"nimbusBlueGrey\", new Color(60,145,144));\n\t\tUIManager.put(\"control\", new Color(43,82,102));\n\t\tUIManager.put(\"text\", new Color(255,255,255));\n\t\tUIManager.put(\"Table.alternateRowColor\", new Color(0,68,102));\n\t\tUIManager.put(\"TextField.font\", new Font(\"Font\", Font.BOLD, 12));\n\t\tUIManager.put(\"TextField.textForeground\", new Color(0,0,0));\n\t\tUIManager.put(\"PasswordField.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"TextArea.foreground\", new Color(0,0,0));\n\t\tUIManager.put(\"FormattedTextField.foreground\", new Color(0,0,0));\n\t\t\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\".background\", new Color(0,68,102));\n\t\tUIManager.put(\"ComboBox:\\\"ComboBox.listRenderer\\\"[Selected].background\", new Color(0,0,0));\n\t\t\n\t\t//TODO nie chca dzialac tooltipy na mapie\n\t\tBorder border = BorderFactory.createLineBorder(new Color(0,0,0)); //#4c4f53\n\t\tUIManager.put(\"ToolTip.border\", border);\n\n\t\t//UIManager.put(\"ToolTip.foregroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.backgroundInactive\", new Color(0,0,0));\n\t\t//UIManager.put(\"ToolTip.background\", new Color(0,0,0)); //#fff7c8\n\t\t//UIManager.put(\"ToolTip.foreground\", new Color(0,0,0));\n\t\t Painter<Component> p = new Painter<Component>() {\n\t\t public void paint(Graphics2D g, Component c, int width, int height) {\n\t\t g.setColor(new Color(20,36,122));\n\t\t //and so forth\n\t\t }\n\t\t };\n\t\t \n\t\tUIManager.put(\"ToolTip[Enabled].backgroundPainter\", p);\n\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new Color(255, 255, 255));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new Color(255, 255, 255)); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new Color(255, 255, 255));\n//\t\t\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foregroundInactive\",new ColorUIResource(new Color(255, 255, 255)));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"backgroundInactive\", new ColorUIResource((new Color(255, 255, 255))));\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.background\", new ColorUIResource(new Color(255, 255, 255))); //#fff7c8\n//\t\tUIManager.getLookAndFeelDefaults().put(\"ToolTip.foreground\", new ColorUIResource(new Color(255, 255, 255)));\n\t\t\n\t \n\t\ttry {\n\t\t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n\t\t if (\"Nimbus\".equals(info.getName())) {\n\t\t UIManager.setLookAndFeel(info.getClassName());\n\t\t break;\n\t\t }\n\t\t }\n\t\t} catch (Exception e) {\n\t\t // If Nimbus is not available, you can set the GUI to another look and feel.\n\t\t}\n\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table:\\\"Table.cellRenderer\\\".background\", new ColorUIResource(new Color(74,144,178)));\n\t\tUIManager.getLookAndFeelDefaults().put(\"Table.background\", new ColorUIResource(new Color(74,144,178)));\n\t\t\n\n\t}",
"public static String setLookAndFeel(String look) {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); //$NON-NLS-1$\n // Display slider value is set to false (already in all LAF by the panel title), used by GTK LAF\n UIManager.put(\"Slider.paintValue\", Boolean.FALSE); //$NON-NLS-1$\n\n String laf = getAvailableLookAndFeel(look);\n try {\n UIManager.setLookAndFeel(laf);\n } catch (Exception e) {\n laf = UIManager.getSystemLookAndFeelClassName();\n LOGGER.error(\"Unable to set the Look&Feel\", e); //$NON-NLS-1$\n }\n // Fix font issue for displaying some Asiatic characters. Some L&F have special fonts.\n setUIFont(new javax.swing.plaf.FontUIResource(\"SansSerif\", Font.PLAIN, 12)); //$NON-NLS-1$\n return laf;\n }",
"public JFind2() {\n try {\n String metal = \"javax.swing.plaf.metal.MetalLookAndFeel\";\n String synth = \"javax.swing.plaf.synth.SynthLookAndFeel\"; // --> since JDK-1.5\n\n String gtk = \"com.sun.java.swing.plaf.gtk.GTKLookAndFeel\"; // -> since JDK-1.4\n\n String motif = \"com.sun.java.swing.plaf.motif.MotifLookAndFeel\";\n String windows = \"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\";\n\n String os = System.getProperty(\"os.name\");\n if (os.startsWith(\"Linux\")) {\n try // Install client system look and feel.\n {\n UIManager.setLookAndFeel(metal);\n } catch (Exception e) {\n }\n } else {\n try // Install client system look and feel.\n {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n }\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n preInit();\n initComponents();\n postInit();\n\n }",
"public void lookandfeel(){\n \n try{\n UIManager.setLookAndFeel(seta_look);\n SwingUtilities.updateComponentTreeUI(this);\n }\n catch(Exception erro){\n JOptionPane.showMessageDialog(null, erro);\n \n }\n}",
"public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException,\n\t\t\tUnsupportedLookAndFeelException {\n\t\tdetermineOS();\n\t\tif (currentOs == MAC_OS) {\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.apple.menu.about.name\", \"UP-Admin\");\n\t\t\tSystem.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.live-resize\", \"true\");\n\n\t\t\ttry {\n\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnsupportedLookAndFeelException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else if ((currentOs == WIN_OS) || (currentOs == null)) {\n\n\t\t\tUIManager.put(\"nimbusBase\", new Color(0x525252));\n\t\t\tUIManager.put(\"control\", new Color(0x949494));\n\t\t\tUIManager.put(\"nimbusSelectionBackground\", new Color(0x171717));\n\t\t\tUIManager.put(\"Menu.background\", new Color(0x2B2B2B));\n\t\t\tUIManager.put(\"background\", new Color(0x171717));\n\t\t\tUIManager.put(\"DesktopIcon.background\", new Color(0x171717));\n\t\t\tUIManager.put(\"nimbusLightBackground\", new Color(0xE3E3E3));\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t\t\n\t\t}\n\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tFrame frame = new Frame();\n\t\t\t\t\tframe.setVisible(true);\n\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void setupSwing() {\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n \r\n try {\r\n for (LookAndFeelInfo info: UIManager.getInstalledLookAndFeels()) {\r\n if (info.getName().equals(\"Windows\")) {\r\n UIManager.setLookAndFeel(info.getClassName());\r\n }\r\n }\r\n } catch (ClassNotFoundException \r\n | InstantiationException\r\n | IllegalAccessException \r\n | UnsupportedLookAndFeelException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n \r\n window = new ManagerWindow(MetagridManager.this);\r\n window.pack();\r\n window.setVisible(true);\r\n }\r\n });\r\n }",
"public static void main(String[] args) {\r\n SageLife sagelife = new SageLife();\r\n\r\n try {\r\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (Exception e) {\r\n // If Nimbus is not available, you can set the GUI to another look and feel.\r\n }\r\n\r\n sagelife.createLayout();\r\n }",
"private LookAndFeelManager() {}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n \n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(home.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n \n \n /* Create and display the form */ \n \n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new home().setVisible(true);\n }\n });\n }",
"public Q4() {\n initComponents();\n looks=UIManager.getInstalledLookAndFeels();\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n UI tesis = new UI();\n tesis.setVisible(true);\n try {\n tesis.inicializar(); \n } catch (NullPointerException e) {\n System.out.println(\"Ejecución terminada forzosamente\");\n System.exit(1);\n }\n }\n });\n }",
"@Override\n public void init() {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(TugasB.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the applet */\n try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"@Override\r\n public void init() {\r\n /* Set the Nimbus look and feel */\r\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\r\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\r\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \r\n */\r\n try {\r\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(IMC.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n\r\n /* Create and display the applet */\r\n try {\r\n java.awt.EventQueue.invokeAndWait(new Runnable() {\r\n public void run() {\r\n initComponents();\r\n }\r\n });\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"private void configureUI() {\r\n // UIManager.put(\"ToolTip.hideAccelerator\", Boolean.FALSE);\r\n\r\n Options.setDefaultIconSize(new Dimension(18, 18));\r\n\r\n Options.setUseNarrowButtons(settings.isUseNarrowButtons());\r\n\r\n // Global options\r\n Options.setTabIconsEnabled(settings.isTabIconsEnabled());\r\n UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY,\r\n settings.isPopupDropShadowEnabled());\r\n\r\n // Swing Settings\r\n LookAndFeel selectedLaf = settings.getSelectedLookAndFeel();\r\n if (selectedLaf instanceof PlasticLookAndFeel) {\r\n PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme());\r\n PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle());\r\n PlasticLookAndFeel.setHighContrastFocusColorsEnabled(\r\n settings.isPlasticHighContrastFocusEnabled());\r\n } else if (selectedLaf.getClass() == MetalLookAndFeel.class) {\r\n MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());\r\n }\r\n\r\n // Work around caching in MetalRadioButtonUI\r\n JRadioButton radio = new JRadioButton();\r\n radio.getUI().uninstallUI(radio);\r\n JCheckBox checkBox = new JCheckBox();\r\n checkBox.getUI().uninstallUI(checkBox);\r\n\r\n try {\r\n UIManager.setLookAndFeel(selectedLaf);\r\n } catch (Exception e) {\r\n System.out.println(\"Can't change L&F: \" + e);\r\n }\r\n\r\n }",
"public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(siniestro.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new siniestro());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n }\n });\n }",
"@Override\n public void init() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Registration.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n getContentPane().setBackground(Color.BLUE);\n this.setSize(450, 350);\n\n /* Create and display the applet */\n /*try {\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n public void run() {\n initComponents();\n }\n });\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n */\n run();\n }",
"public static void start() {\n\t\ttry {\n\t\t\tfor (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n\t\t\t\tif (\"Nimbus\".equals(info.getName())) {\n\t\t\t\t\tjavax.swing.UIManager.setLookAndFeel(info.getClassName());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (InstantiationException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (IllegalAccessException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n\t\t\tjava.util.logging.Logger.getLogger(GUInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n\t\t}\n //</editor-fold>\n\n\t\t/* Create and display the form */\n\t\tjava.awt.EventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew GUInterface().setVisible(true);\n\t\t\t}\n\t\t});\n\t}",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(HFGUI.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new HFGUI().setVisible(true);\n }\n });\n }",
"public void setTheme(String name) {\n\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (name.equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UserInterface.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(InicioSesion.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new InicioSesion().setVisible(true);\n }\n });\n }",
"public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(JFrame_Accueil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n \n /* Create and display the form */\n java.awt.EventQueue.invokeLater(() -> {\n try {\n new JFrame_Accueil(0).setVisible(true);\n } catch (Exception ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }\n });\n }",
"public static void main(String[] args) {\r\n /* Set the Nimbus look and feel */\r\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\r\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\r\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html\r\n */\r\n try {\r\n javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(FrameCuentasContablesAdmin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n //</editor-fold>\r\n\r\n /* Create and display the form */\r\n EventQueue.invokeLater(new Runnable() {\r\n public void run() {\r\n JFrame frame = new JFrame();\r\n frame.setContentPane(new FrameCuentasContablesAdmin());\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.pack();\r\n frame.setVisible(true);\r\n }\r\n });\r\n }",
"private void changeUIdefaults() {\n\t\tUIManager.put(\"TaskPaneContainer.useGradient\", Boolean.FALSE);\n\t\tUIManager.put(\"TaskPaneContainer.background\",\n\t\t\t\tColors.LightGray.color(0.5f));\n\n\t\t// setting taskpane defaults\n\t\tUIManager.put(\"TaskPane.font\", new FontUIResource(new Font(\"Verdana\",\n\t\t\t\tFont.BOLD, 16)));\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientStart\",\n\t\t\t\tColors.White.color());\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientEnd\",\n\t\t\t\tColors.LightBlue.color());\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n \n\n}\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new NewJFrame1().setVisible(true);\n }\n });\n }",
"@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tLookAndFeelInfo look[] = UIManager.getInstalledLookAndFeels();\r\n\t\t\tfor (LookAndFeelInfo lookAndFeelInfo : look) {\r\n\r\n\t\t\t\tSystem.out.println(lookAndFeelInfo.getClassName());\r\n\t\t\t}\r\n\t\t\tUIManager.setLookAndFeel(this.config.getLookAndFeel());\r\n\t\t} catch (ClassNotFoundException | InstantiationException\r\n\t\t\t\t| IllegalAccessException | UnsupportedLookAndFeelException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tsetVisible(true);\r\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n Logger.getLogger(InterpreterGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(() -> {\n new InterpreterGui().setVisible(true);\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Calculator.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Calculator().setVisible(true);\n }\n } \n );\n}",
"public void setLAF(String lookAndFeelStr) {\n String exceptionNotice = \"\";\n try {\n // Set the font for Metal LAF to non-bold, in case Metal is used\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n if (lookAndFeelStr == null || lookAndFeelStr.equalsIgnoreCase(\"Metal\")) {\n UIManager.setLookAndFeel(new MetalLookAndFeel());\n } else\n if (lookAndFeelStr.equalsIgnoreCase(\"Nimbus\")) {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (info.getName().equals(\"Nimbus\")) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } else {\n UIManager.setLookAndFeel(lookAndFeelStr);\n }\n } catch (UnsupportedLookAndFeelException e) {\n exceptionNotice = \"UnsupportedLookAndFeelException\";\n } catch (ClassNotFoundException e) {\n exceptionNotice = \"ClassNotFoundException\";\n } catch (InstantiationException e) {\n exceptionNotice = \"InstantiationException\";\n } catch (IllegalAccessException e) {\n exceptionNotice = \"IllegalAccessException\";\n } finally {\n if (! exceptionNotice.isEmpty()) {\n try {\n // The desired LAF was not created, so try to use the Metal LAF as a default.\n UIManager.setLookAndFeel(new MetalLookAndFeel());\n } catch (UnsupportedLookAndFeelException e) {\n logger.error(\"Could not initialize the Swing Look and Feel settings, MCT is closing.\");\n System.exit(1);\n }\n }\n }\n // Look and Feel has been successfully created, now set colors\n initializeColors(UIManager.getLookAndFeel());\n Properties props = new Properties();\n String filename = System.getProperty(viewColor,\"resources/properties/viewColor.properties\");\n FileReader reader = null;\n try {\n \treader = new FileReader(filename);\n \tprops.load(reader);\n BASE_PROPERTIES = new ColorScheme(props);\n BASE_PROPERTIES.applyColorScheme(); // Apply top-level color bindings\n } catch (Exception e) {\n logger.warn(\"Using default color and font properties because could not open viewColor properties file :\"+filename);\n BASE_PROPERTIES = new ColorScheme();\n } finally {\n \ttry {\n if (reader != null) reader.close();\n } catch(IOException ioe1){ }\n }\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Form.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Form().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(LibroDiario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new LibroDiario().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(KamarFrom.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new KamarFrom().setVisible(true);\n }\n });\n }",
"protected void installDefaults() {\n this.controlPanel.setBackground(null);\n\n Font font = this.controlPanel.getFont();\n if (font == null || font instanceof UIResource) {\n Font toSet = RadianceThemingCortex.GlobalScope.getFontPolicy().getFontSet().\n getControlFont();\n this.controlPanel.setFont(toSet);\n }\n }",
"static public LookAndFeelManager createDefaultLookAndFeelManager()\n {\n LookAndFeelManager manager = new LookAndFeelManager();\n\n /* =-=AEW DO NOT register the external look-and-feels; these\n class names are UIX 2.2 look-and-feels, which won't (and can't)\n work in UIX 3, given the different class names. Only uncomment\n if and when such classes are ported to UIX 3.\n // support requests from iasWireless if laf can be found\n _registerExternalLookAndFeel(manager, iaswLaf, _IASW_SCORER);\n\n // register OA's Text LAF if laf can be found\n _registerExternalLookAndFeel(manager, _OA_TEXT_LAF, _OA_TEXT_SCORER);\n */\n\n // Base lafs\n BaseDesktopUtils.registerLookAndFeel(manager);\n\n SimpleDesktopUtils.registerLookAndFeel(manager);\n SimplePdaUtils.registerLookAndFeel(manager);\n\n return manager;\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Puntos.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Puntos().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(HW3.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new HW3().setVisible(true);\n }\n });\n }",
"public Vista_Login() {\n \t\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Vista_Login.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(FrmLoguin.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new FrmLoguin().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Musica.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Musica().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Register().setVisible(true);\n }\n });\n }",
"public static void main(String[] args) throws Exception{\n\t\tUIManager.setLookAndFeel(new NimbusLookAndFeel());\n\t\t\n\t\t\n\t\tMyWindow myWindow = new MyWindow();\n\t\tmyWindow.setVisible(true);\n\n\t}",
"public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(CadContasReceitasDespesasView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new CadContasReceitasDespesasView());\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n frame.setTitle(args[0]);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Setup.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Setup().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(sinavlar2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /*\n * Create and display the form\n */\n java.awt.EventQueue.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n new sinavlar2().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Registracija.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Registracija().setVisible(true);\n }\n });\n }",
"private void applyInitialLook() {\r\n\t\tthis.control.setFont(this.initialFont);\r\n\t\tthis.control.setBackground(this.initialBackgroundColor);\r\n\t\tthis.control.setForeground(this.initialForegroundColor);\r\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new main().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UsuarioView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n JFrame frame = new JFrame(\"Inscrição\");\n frame.add(new InscricaoView());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false);\n frame.pack();\n frame.setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(cusRegister.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new cusRegister().setVisible(true);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(cusRegister.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(RamkaGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new RamkaGui().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(adminhome.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new adminhome().setVisible(true);\n }\n });\n }",
"public static void main(String[] args) \n\t{\n\t\tCommonMethods.openConnection();\n\t\ttry {\n \t for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n \t if (\"Nimbus\".equals(info.getName())) {\n \t UIManager.setLookAndFeel(info.getClassName());\n \t break;\n \t }\n \t }\n \t} catch (Exception e) {\n \t // If Nimbus is not available, you can set the GUI to another look and feel.\n \t}\n\t\t\n\t\tnew AddNewCustomer();\n\n\t}",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Stock_Management.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Stock_Management().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UIHorariosLista.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new UIHorariosLista().setVisible(true);\n }\n });\n }",
"public static void startTrayIcon() {\r\n try {\r\n \tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n } catch (Exception ex) {\r\n \tJOptionPane.showMessageDialog(null, \"Error setting Look & Feel \"+ex, \"Error setting Look & Feel\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n /* Turn off metal's use of bold fonts */\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n //Schedule a job for the event-dispatching thread:\r\n //adding TrayIcon.\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n createAndShowGUI();\r\n }\r\n });\r\n }",
"protected void installDefaults() {\n spinner.setLayout(createLayout());\n LookAndFeel.installBorder(spinner, \"Spinner.border\");\n LookAndFeel.installColorsAndFont(spinner, \"Spinner.background\", \"Spinner.foreground\", \"Spinner.font\"); }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(UrunListele.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new UrunListele().setVisible(true);\n }\n });\n }",
"public static void main(final String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ClienteView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new ClienteView());\n frame.pack();\n frame.setVisible(true);\n frame.setTitle(args[0]);\n \n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Register.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new Register().setVisible(true);\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }",
"public static void main(String[] args) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n// * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n// */\n// try {\n// for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n// if (\"Nimbus\".equals(info.getName())) {\n// javax.swing.UIManager.setLookAndFeel(info.getClassName());\n// break;\n// }\n// }\n// } catch (ClassNotFoundException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (InstantiationException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (IllegalAccessException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n// java.util.logging.Logger.getLogger(CatcTitles.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// }\n //</editor-fold>\n\n /* Create and display the form */\n EventQueue.invokeLater(new Runnable() {\n public void run() {\n JFrame frame = new JFrame();\n frame.setContentPane(new CatcTitles());\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n }\n });\n }",
"public CalculatorGUI() {\n initComponents();\n setTitle(\"Calculator\");\n //setLookAndFeel(\"Windows\");\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Kayıt_Sil.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold> \n\n /* Create and display the form */\n \n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Kayıt_Sil().setVisible(true);\n }\n });\n }",
"private void menuMotifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuMotifActionPerformed\n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n SwingUtilities.updateComponentTreeUI(this);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n Logger.getLogger(MoneyMinderDesktopMainGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(TelaDelProduto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(SpaceSim.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() {\n new SpaceSim().setVisible(true);\n }\n });\n }",
"private void setAppearance(String className) {\n DweezilUIManager.setLookAndFeel(className, new Component[]{MainFrame.getInstance(), StatusWindow.getInstance(),\n PrefsSettingsPanel.this.getParent().getParent()});\n\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(segundapartepestaña5.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new segundapartepestaña5().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(frmBuscarRemitentes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n frmBuscarRemitentes dialog = new frmBuscarRemitentes(new javax.swing.JFrame(), true);\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent e) {\n System.exit(0);\n }\n });\n dialog.setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(FRM_Venta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new FRM_Venta().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(JFMenu_principal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new TelaCliente().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ImagenesProducto.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ImagenesProducto().setVisible(true);\n }\n });\n }",
"protected void installDefaults() {\n\t\tColor bg = this.controlPanel.getBackground();\n\t\tif (bg == null || bg instanceof UIResource) {\n\t\t\tthis.controlPanel.setBackground(FlamingoUtilities.getColor(\n\t\t\t\t\tColor.lightGray, \"ControlPanel.background\",\n\t\t\t\t\t\"Panel.background\"));\n\t\t}\n\n\t\tBorder b = this.controlPanel.getBorder();\n\t\tif (b == null || b instanceof UIResource) {\n\t\t\tBorder toSet = UIManager.getBorder(\"ControlPanel.border\");\n\t\t\tif (toSet == null)\n\t\t\t\tnew BorderUIResource.EmptyBorderUIResource(1, 2, 1, 2);\n\t\t\tthis.controlPanel.setBorder(toSet);\n\t\t}\n\t\t\n\t\tFont font = this.controlPanel.getFont();\n if (font == null || font instanceof UIResource) {\n Font toSet = UIManager.getFont(\"Panel.font\");\n this.controlPanel.setFont(toSet);\n }\n\t}",
"public MainFrame() throws Exception {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n //SynthLookAndFeel laf = new SynthLookAndFeel();\r\n //UIManager.setLookAndFeel(laf);\r\n initComponents();\r\n }",
"public static void main(String args[]) {\r\n try {\r\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\r\n if (\"Nimbus\".equals(info.getName())) {\r\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (ClassNotFoundException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (InstantiationException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (IllegalAccessException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\r\n java.util.logging.Logger.getLogger(Roysched.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n //</editor-fold>\r\n\r\n /* Create and display the form */\r\n java.awt.EventQueue.invokeLater(new Runnable() {\r\n public void run() {\r\n new Roysched().setVisible(true);\r\n }\r\n });\r\n }",
"protected void uninstallDefaults() {\n\t\tLookAndFeel.uninstallBorder(this.controlPanel);\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(jfmActividades.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(() -> {\n new jfmActividades().setVisible(true);\n });\n }",
"public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception ex) {\r\n\t\t}\r\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ThermalInfo.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ThermalInfo().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(HomePage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new HomePage().setVisible(true);\n }\n });\n }",
"public static void main(String args[]) {\n /* Set the Nimbus look and feel */\n //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n */\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(VentaForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new VentaForm().setVisible(true);\n }\n });\n }"
] | [
"0.79498166",
"0.7769115",
"0.77021354",
"0.7506062",
"0.72881013",
"0.72290856",
"0.7223878",
"0.7221606",
"0.7181334",
"0.7157133",
"0.7119354",
"0.7112824",
"0.7099883",
"0.70614386",
"0.7050636",
"0.6914184",
"0.68172616",
"0.6706356",
"0.6696525",
"0.65859324",
"0.6574605",
"0.65296525",
"0.6527041",
"0.65052754",
"0.6417265",
"0.6405356",
"0.62612975",
"0.6260253",
"0.62211645",
"0.61910325",
"0.6169244",
"0.6139759",
"0.6136215",
"0.60789067",
"0.6061119",
"0.60574174",
"0.603129",
"0.6027707",
"0.599656",
"0.594713",
"0.5900698",
"0.5885197",
"0.5862692",
"0.5855369",
"0.5806662",
"0.5793401",
"0.5785901",
"0.57719004",
"0.57450324",
"0.5739963",
"0.5727213",
"0.5659949",
"0.5655276",
"0.56534433",
"0.5651148",
"0.56227297",
"0.56057054",
"0.5600491",
"0.55857414",
"0.55738896",
"0.55719167",
"0.5568786",
"0.55680937",
"0.55629086",
"0.55473727",
"0.55455625",
"0.5517767",
"0.55155605",
"0.5512744",
"0.54986143",
"0.5490825",
"0.5490162",
"0.5473954",
"0.5455712",
"0.54532",
"0.5451793",
"0.5447276",
"0.5444061",
"0.54383343",
"0.54322976",
"0.5429922",
"0.5425587",
"0.54209185",
"0.5416287",
"0.5402544",
"0.540189",
"0.5386234",
"0.5377548",
"0.5364228",
"0.53635645",
"0.53537375",
"0.5352324",
"0.5334801",
"0.5330419",
"0.53221846",
"0.53220344",
"0.5321488",
"0.5320853",
"0.53205585",
"0.5313855"
] | 0.5471973 | 73 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.printf("아이디 입력: ");
String id = sc.nextLine();
System.out.printf("비밀번호 입력: ");
String pw = sc.nextLine();
//아이디가 root, pw-1234 이면 로그인 성공이라고 출력 그렇지 않으면 로그인 실패라고 출력
if (id.equals("root") && pw.equals("1234")) {
System.out.printf("로그인 성공\n");
}
else {
System.out.printf("로그인 실패\n");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Instantiates a new world gen grass cloud. | public WorldGenGrassUnderbean()
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MapGen()//Collect images, create Platform list, create grassy array and generate a random integer as the map wideness\n\t{\n\t\tblocksWide= ThreadLocalRandom.current().nextInt(32, 64 + 1);\n\t\tclouds=kit.getImage(\"Resources/SkyBackground.jpg\");\n\t\tdirt=kit.getImage(\"Resources/Dirt.png\");\n\t\tgrass[0]=kit.getImage(\"Resources/Grass.png\");\n\t\tgrass[1]=kit.getImage(\"Resources/Grass1.png\");\n\t\tgrass[2]=kit.getImage(\"Resources/Grass2.png\");\n\t\tplatforms=new ArrayList<Platform>();\n\t\tgrassy=new int[blocksWide];\n\t\tgrassT=new int[blocksWide];\n\t\tgenerateTerrain();\n\t\t\n\t\t\n\t\t\n\t}",
"public World() {\n\t\tblockIDArray = new byte[WORLD_SIZE][WORLD_HEIGHT][WORLD_SIZE];\n\t\tentities\t = new ArrayList<Entity>();\n\t\trand\t\t = new Random();\n\t\t\n new GravityThread(this);\n\t\t\t\t\n\t\tgenerateWorld();\n\t}",
"public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 800, 1); \n GreenfootImage bg = new GreenfootImage(\"background.jpg\");\n bg.scale(getWidth(), getHeight());\n setBackground(bg);\n initialize();\n \n }",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n for( int i = 0; i < IMAGE_COUNT; i++)\n {\n images[i] = new GreenfootImage(\"frame_\" + i + \"_delay-0.06s.gif\");\n }\n \n setBackground(images [0]); \n \n }",
"public World()\n\t{\n\t\tinitWorld();\t\n\t}",
"public StormCloud() {\n moveStop = true;\n stormCloud = new Sprite();\n cloudRectangle = new Rectangle(0,0,1280,384);\n stormCloud.setPosition(0, -stormCloud.getHeight() * 2);\n }",
"public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }",
"@Override\n\tpublic void init() {\n\t\tworld = new World(gsm);\n\t\tworld.init();\n\t\t\n\t\tif(worldName == null){\n\t\t\tworldName = \"null\";\n\t\t\tmap_name = \"map\";\n\t\t} \n\t\tworld.generate(map_name);\n\t}",
"public void newGameWorld()\r\n {\r\n addObject(new Blackout(\"Fade\"), getWidth() / 2, getHeight() / 2);\r\n removeAllObjects();\r\n\r\n GameWorld gameWorld = new GameWorld();\r\n Greenfoot.setWorld(gameWorld);\r\n }",
"public WaterWorld()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n populateWorld();\r\n }",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"public GameWorld(){\r\n\t\t\r\n\t}",
"public abstract World create(World world);",
"Fog createFog();",
"private void createWorld() {\n world = new World();\n world.setEventDeliverySystem(new BasicEventDeliverySystem());\n //world.setSystem(new MovementSystem());\n world.setSystem(new ResetPositionSystem());\n world.setSystem(new RenderingSystem(camera, Color.WHITE));\n\n InputSystem inputSystem = new InputSystem();\n InputMultiplexer inputMultiplexer = new InputMultiplexer();\n inputMultiplexer.addProcessor(inputSystem);\n inputMultiplexer.addProcessor(new GestureDetector(inputSystem));\n Gdx.input.setInputProcessor(inputMultiplexer);\n world.setSystem(inputSystem);\n world.setSystem(new MoveCameraSystem(camera));\n\n world.initialize();\n }",
"public static Gng init() {\n return new Gng();\n }",
"public MyWorld()\n {\n super(600, 400, 1);\n }",
"@Override\n\tpublic void create() {\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t\n\t\t//Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\t\n\t\t//initialize controller and renderer\n\t\tworldController = new WorldController();\n\t\tworldRenderer= new WorldRenderer(worldController);\n\t\t\n\t\t//The world is not paused on start\n\t\tpaused = false;\n\t}",
"private void spawnStart() {\n\t\tswitch (gameType) {\n\t\t\n\t\t}\n\t\tspawnCloud(10,1,0,0); //spawns base cloud\n\t\tspawnCloud(rng(7,10),6,rng(1,2),rng(2,3)); //spawns first clouds\n\t\tspawnCloud(rng(9,12),6,rng(1,2),rng(2,3));\n\t\t//spawnCloud(10,6,16,0);\n\t}",
"public Grid()\n {\n dest = new GridReference[2];\n dest[0] = new GridReference(Game.GRID_WIDTH-(int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.2));\n dest[1] = new GridReference(Game.GRID_WIDTH-(int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.8));\n //dest[2] = new GridReference(5,50);\n defaultStart = new GridReference((int)((double)Game.GRID_WIDTH*0.05),\n Game.GRID_HEIGHT-(int)((double)Game.GRID_HEIGHT*0.5));\n defaultWalker = Walkers.WEIGHTED2;\n \n createField();\n \n walkers = new ArrayList<>();\n //addUnits(randDest(), randDest());\n /*for (int i = 0; i < grassPatches.length; i++)\n {\n System.out.println(i + \":\" + grassPatches[i]);\n }*/\n }",
"public World makeWorld() {\n World world = new World(1000, 1000);\n world.createEntity().addComponent(new CursorComponent());\n \n ProjectileSystem projectileSystem = new ProjectileSystem();\n world.addSystem(projectileSystem, 1);\n \n return world;\n }",
"public SaboWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(counter, 100, 380); //Add the scoreboard\n addObject(healthBar, 300, 370); //Add the health bar\n addObject(turret, getWidth()/2-5, getHeight()-turret.getImage().getWidth()); \n }",
"public void createWorld(){\n\n }",
"public Egrga() {\r\n\t}",
"public OverWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(1024, 600, 1, false);\n Setup();\n }",
"public GridWorld()\n\t{\n\t\tadd(grid = new Grid());\n\t\tfade = new Fade();\n\t\tfade.fadeIn();\n\t\tbackground.color().setAlpha(0.6f);\n\t}",
"public PantallaVictoria()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(400, 600, 1); \n prepare();\n }",
"public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }",
"public World() {\n\t\tbackgroundLoader.submit(new Callable<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object call() throws Exception {\n\t\t\t\tItemDefinition.load();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t\tbackgroundLoader.submit(new Callable<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object call() throws Exception {\n\t\t\t\tNPCDefinition.load();\n\t\t\t\tNPCStyle.init();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t\tbackgroundLoader.submit(new Callable<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object call() throws Exception {\n\t\t\t\tDegradeSystem.init();\n\t\t\t\tProjectileManager.init();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t\tbackgroundLoader.submit(new Callable<Object>() {\n\t\t\t@Override\n\t\t\tpublic Object call() throws Exception {\n\t\t\t\tShops.loadShopFile();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t});\n\t}",
"public World (){\n\t\tpattern = new ShapePattern (PATTERN_SIZE);\n\t\tscroll = new ShapeScroll (SCROLL_SIZE);\n\t}",
"public Main()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n\n prepare();\n }",
"private static WorldDescription createWorld() {\r\n \t\tWorldDescription world = new WorldDescription();\t \r\n \t\tworld.setPlaneSize(100);\t\t\r\n \t \tObstacleGenerator generator = new ObstacleGenerator();\r\n \t generator.obstacalize(obstacleType, world); // activate to add obstacles\r\n \t // world.setPlaneTexture(WorldDescription.WHITE_GRID_TEXTURE);\r\n \t\treturn world;\r\n \t}",
"public salida()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n }",
"SkyGroup() {\n }",
"public Square createGround() {Collect.Hit(\"BoardFactory.java\",\"createGround()\"); Collect.Hit(\"BoardFactory.java\",\"createGround()\", \"1746\");return new Ground(sprites.getGroundSprite()) ; }",
"public MapGenWoodChest()\n {\n// this.scatteredFeatureSpawnList = Lists.<Biome.SpawnListEntry>newArrayList();\n this.maxChunkDistanceBetweenF = 32;\n// this.minChunkDistanceBetweenF = 8;\n// this.scatteredFeatureSpawnList.add(new Biome.SpawnListEntry(EntityWitch.class, 1, 1, 1));\n }",
"TGG createTGG();",
"public WorldGenerator getRandomWorldGenForGrass(Random par1Random)\n {\n return new WorldGenTallGrass(Blocks.tallgrass, 1);\n }",
"private void addClouds()\n {\n Cloud cloud1 = new Cloud(170, 125);\n addObject(cloud1, 170, 125);\n Cloud cloud2 = new Cloud(450, 175);\n addObject(cloud2, 450, 175);\n Cloud cloud3 = new Cloud(775, 50);\n addObject(cloud3, 775, 50);\n }",
"public Grass (int xCoordinant, int yCoordinant,int xGrass, int yGrass)\n {\n xLength = xGrass;\n yWidth = yGrass;\n xCord = xCoordinant;\n yCord = yCoordinant;\n }",
"public Game() { \n // Create the new environment. Must be done in the same\n // method as the game loop\n env = new Env();\n \n // Sets up the camera\n env.setCameraXYZ(25, 50, 55);\n env.setCameraPitch(pitch);\n\n // Turn off the default controls\n env.setDefaultControl(false);\n\n // Make the room 50 x 50.\n env.setRoom(new Room());\n creatures = new ArrayList<Creature>();\n }",
"public VolcanoWorld() {\n this(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n }",
"public CrabWorld()\n {\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n musica=new GreenfootSound(\"Ufo-t-balt.mp3\");\n super(560,560, 1);\n }",
"protected WorldController(Rectangle bounds, Vector2 gravity) {\n\t\tassets = new Array<String>();\n\t\tworld = new World(gravity,false);\n\t\tthis.bounds = new Rectangle(bounds);\n\t\tthis.scale = new Vector2(1,1);\n\t\tcomplete = false;\n\t\tfailed = false;\n\t\tdebug = false;\n\t\tactive = false;\n\t\tcountdown = -1;\n\t}",
"public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }",
"public Cenario1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(900, 600, 1);\n adicionar();\n \n }",
"public WorldScene makeScene() {\n // WorldCanvas c = new WorldCanvas(300, 300);\n WorldScene s = new WorldScene(this.width, this.height);\n s.placeImageXY(newImg, this.width / 2, this.height / 2);\n return s;\n }",
"private IWorld worldCreator(){\n if (gameWorld == GameWorld.NORMAL) return\n new Normal();\n else return\n new Nether();\n }",
"public MyWorld()\n { \n // Create a new world with 600x550 cells with a cell size of 1x1 pixels.\n super(600, 550, 1);\n // Set the order in which Actors are drawn on the screen in this World\n setPaintOrder ( Counter.class, HighScore.class, Fader.class);\n // Counter\n counter = new Counter (\"Score: \");\n addObject (counter, 50, 30);\n // Initialize the player\n player = new Player ();\n addObject (player, 300, 530); \n platforms = new Platform[10]; \n startingPlatform = new Platform();\n addObject (startingPlatform, 300, 550);\n // Loop through as many Meteors as there are on this level\n for (int i = 0; i < platforms.length; i++)\n {\n // Initialize a new Platform object for each spot in the array\n platforms[i] = new Platform ();\n // Add each platform at a random position anywhere on the X axis and at intervals of 15 on the Y axis\n addObject (platforms[i], Greenfoot.getRandomNumber(600), platformCounter);\n platformCounter = platformCounter - 55;\n }\n }",
"public RobotWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n prepare();\n }",
"public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }",
"public WinningWorld(GreenfootSound bgm)\n { \n // Create a new world with 800x540 cells with a cell size of 1x1 pixels.\n super(800, 540, 1); \n this.bgm = bgm;\n prepare();\n }",
"public Stage() {\n\n for (int i = 0; i < 20; i++) { // Generate the basic grid array\n ArrayList<Cell> cellList = new ArrayList<Cell>();\n cells.add(cellList);\n for (int j = 0; j < 20; j++) {\n cells.get(i).add(new Cell(10 + 35 * i, 10 + 35 * j));\n }\n }\n\n for (int i = 0; i < cells.size(); i++) { // Generate the list of environment blocks\n ArrayList<Environment> envList = new ArrayList<Environment>();\n environment.add(envList);\n for (int j = 0; j < cells.size(); j++) {\n int cellGenerator = (int) (Math.random() * 100) + 1;\n environment.get(i).add(generateCell(cellGenerator, cells.get(i).get(j)));\n }\n }\n\n grid = new Grid(cells, environment); // Initialise the grid with the generated cells array\n }",
"Cloud createCloud();",
"private void newGame(long seed) {\n ter.initialize(WIDTH, HEIGHT, 0, -3);\n GameWorld world = new GameWorld(seed);\n String toSave = \"N\" + seed + \"S\";\n world.setSaveScript(toSave);\n for (int x = 0; x < WIDTH; x += 1) {\n for (int y = 0; y < HEIGHT; y += 1) {\n world.world[x][y] = Tileset.NOTHING;\n }\n }\n world.buildManyRandomSq();\n GameWorld.Position avatarPosition = randomAvatarPosition(world);\n ter.renderFrame(world.world);\n loadAvatar(world, avatarPosition);\n }",
"public WiuWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1xpixels.\n super(WIDTH_WORLD, HEIGHT_WORLD, 1); \n }",
"void createWorld(Scanner console){\r\n\t\tRandom r = new Random();\r\n\t // System.out.println(\"Welcome to Sushi Time!\");\r\n\t\t//System.out.println(\"Number of fish: \"); \r\n\t\tint fish = r.nextInt(40)+1;\r\n\t\t//System.out.println(\"Number of sharks: \"); \r\n\t\tint shark = r.nextInt(10)+1;\r\n\t\t//create random int for creating random number of seaweed\r\n\t\tint seaweed=r.nextInt(3)+1;\r\n\t\t//create fish, sharks, seaweed, net and sushibar, add them to GameCollection\r\n\t\tSystem.out.println(\"Creating \"+fish+\" fish\");\r\n\t\tfor(int i=0; i<fish; i++){\r\n\t\t\tSystem.out.println(\"Creating fish\");\r\n\t\t\tFish f = new Fish(this);\r\n\t\t\taddToWorldList(f);\r\n\t\t}\r\n\t\tSystem.out.println(\"Creating \"+shark+\" sharks\");\r\n\t\tfor(int i=0; i<shark; i++){\r\n\t\t\tSystem.out.println(\"Creating shark\");\r\n\t\t\tShark s = new Shark(this);\r\n\t\t\taddToWorldList(s);\r\n\t\t}\r\n\t\tSystem.out.println(\"Creating \"+seaweed+\" seaweed\");\r\n\t\tfor(int i=0; i<seaweed; i++){\r\n\t\t\tSystem.out.println(\"Creating seaweed\");\r\n\t\t\tSeaweed sw=new Seaweed(this);\r\n\t\t\taddToWorldList(sw);\r\n\t\t}\r\n\t\tSystem.out.println(\"Creating net\");\r\n\t\t\tNet n = new Net();\r\n\t\t\taddToWorldList(n);\r\n\t\tSystem.out.println(\"Creating sushibar\");\r\n\t\t Sushibar sb = new Sushibar();\r\n\t\t\taddToWorldList(sb);\r\n\t }",
"public World(Game game, int levelPack, int levelNumber) {\n\t\tdiamondBlocks = new ArrayList<Diamond>();\n\t\tsilverBlocks = new ArrayList<Silver>();\n\t\tgoldBlocks = new ArrayList<Gold>();\n\t\tregTiles = new ArrayList<RegTile>();\n\t\tupSpikes = new ArrayList<Spike>();\n\t\tdownSpikes = new ArrayList<Spike>();\n\t\trightSpikes = new ArrayList<Spike>();\n\t\tleftSpikes = new ArrayList<Spike>();\n\t\tcheckpoints = new ArrayList<Checkpoint>();\n\t\teflags = new ArrayList<EndingFlag>();\n\t\t\n\t\t//init player missing\n\t\t\n\t\tgenerateLevel(game, levelPack, levelNumber);\n\t}",
"public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }",
"public void generate() {\n currentlyGenerating = true;\n Bukkit.broadcastMessage(ChatColor.GREEN + \"The world generation process has been started!\");\n createUhcWorld();\n }",
"public Level1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(560, 560, 1); \n prepare();\n gfs_level1 = new GreenfootSound(\"main.wav\");\n\n }",
"public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }",
"@Override\n\tpublic TileEntity createNewTileEntity(World world) {\n\t\treturn new TileEntityGrinder();\n\t}",
"protected WorldController() {\n\t\tthis(new Rectangle(0,0,DEFAULT_WIDTH,DEFAULT_HEIGHT), \n\t\t\t\tnew Vector2(0,DEFAULT_GRAVITY));\n\t}",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }",
"public Genetic() {\r\n }",
"public EarthGeometry(){\n\t\tgcl1 = new GeodeticCalculator();\n\t\trnd1 = new Random(56789);\n\t}",
"public Universe()\n\t{\n\t\tthis.dimension = 3;\n\t\tthis.particles = new ArrayList<Particle>();\n\t\tthis.timebase = DEF_TIMEBASE;\n\t}",
"public PigLocalGame() {\n pgs = new PigGameState();\n }",
"@Override\n\tpublic void create () {\n\t\tgempiresAssetHandler = new GempiresAssetHandler(this);\n\t\tbatch = new SpriteBatch();\n\t\tcastle = new CastleScreen(this);\n\t\tsetScreen(new MainMenuScreen(this));\n\t}",
"private void createGun() {\n gun = new Node(\"Gun\");\n Box b = new Box(.25f, .25f, 1.25f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Gray);\n bg.setMaterial(bm);\n gun.attachChild(bg);\n }",
"public GhostManager(Map map) {\n int ghostNumber = map.get_ghostNumber();\n // Initialize members\n ghostList = new ArrayList<Ghost>();\n random = new Random();\n colors = new String[]{\"#fc7703\", \"#f003fc\",\"#03fcf4\",\"#65fc00\",\"#fca503\",\"#fba6ff\",\"#03fc98\",\"#187010\"};\n\n // Add ghosts to the list\n for(int i=0; i<ghostNumber; i++) {\n ghostList.add(ghostFactory(map));\n }\n }",
"public StoneSummon() {\n// ArrayList<BufferedImage> images = SprssssssaasssssaddddddddwiteUtils.loadImages(\"\"\n createStones();\n\n }",
"public GameInstance(int gameID, World world) {\r\n this.gameID = gameID;\r\n this.world = world;\r\n }",
"public Background() {\n\t\ttime = 0;\n\t\tRandom rand = new Random();\n\t\trandomGrid = new Vector2[101][101];\n\t\tfor (int i = 0; i < randomGrid.length; i++) {\n\t\t\tfor (int j = 0; j < randomGrid[0].length; j++) {\n\t\t\t\trandomGrid[i][j] = new Vector2(rand.nextFloat() - 0.5f, rand.nextFloat() - 0.5f).nor();\n\t\t\t}\n\t\t}\n\n\t\tshapeRenderer = new ShapeRenderer();\n\t}",
"public WorldScene makeScene() {\n WorldScene ws = new WorldScene(ForbiddenIslandWorld.ISLAND_SIZE,\n ForbiddenIslandWorld.ISLAND_SIZE);\n for (Cell c : this.board) {\n ws.placeImageXY(c.drawCell(waterHeight), c.x * 10, c.y * 10);\n }\n for (Target t : this.helicopterpieces) {\n ws.placeImageXY(t.drawPiece(), t.x * 10, t.y * 10);\n }\n ws.placeImageXY(this.player.drawPerson(), player.x * 10, player.y * 10);\n ws.placeImageXY(this.player2.drawPerson2(), player2.x * 10, player2.y * 10);\n return ws;\n }",
"public Gasto() {\r\n\t}",
"public lv3()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n //super(950, 600, 1); \n //prepare();\n prepare();\n stopped();\n started();\n }",
"public World(){\r\n locations = new Location[3][3];\r\n for(int r=0; r<3; r+=1){\r\n for(int c=0; c<3; c+=1){\r\n locations[r][c] = new EmptyLocation(new Position(r,c), \"Nothing here to see.\");\r\n }\r\n }\r\n home = locations[0][0];\r\n players = new ArrayList<Player>();\r\n }",
"public World(int width, int height, Element bgElement)\n { \n // construct parent\n\n super(width, height, TYPE_INT_ARGB);\n\n // get world parameters\n\n this.background = bgElement.getValue();\n this.width = width;\n this.height = height;\n\n // fill background \n\n fill(background);\n\n // get the pixel array for the world\n\n pixels = ((DataBufferInt)getRaster().getDataBuffer()).getData();\n \n // fill random index array with lots of random indicies\n\n xRndIndex = new int[RND_INDEX_CNT][getWidth()];\n for (int[] row: xRndIndex)\n for (int i = 0; i < row.length; ++i)\n row[i] = rnd.nextInt(row.length);\n }",
"public Grass() throws Exception {\n super(setColumns(JumpCanvas.DISP_WIDTH), 1, Image\n .createImage(\"/images/grass.png\"), TILE_WIDTH, TILE_WIDTH);\n TOP_Y = JumpManager.DISP_HEIGHT - TILE_WIDTH;\n setPosition(0, TOP_Y);\n myAnimatedTileIndex = createAnimatedTile(2);\n for (int i = 0; i < COLUMNS; i++) {\n if ((i % CYCLE == 0) || (i % CYCLE == 2)) {\n setCell(i, 0, myAnimatedTileIndex);\n } else {\n setCell(i, 0, 1);\n }\n }\n }",
"public void create() {\n\t\trandomUtil = new RandomUtil();\n\t\t// create the camera using the passed in viewport values\n\t\tcamera = new OrthographicCamera(viewPortWidth, viewPortHeight);\n\t\tbatch.setProjectionMatrix(camera.combined);\n\t\tdebugRender = new Box2DDebugRenderer(true, false, false, false, false, true);\n\t\ttestWorld = new TestWorld(assetManager.blockManager(), new Vector2(0, 0f));\n\t\ttestWorld.genWorld(debugUtil);\n\t\ttestWorld.setCamera(getCamera());\n\t\tplayer.createBody(testWorld.getWorld(), BodyType.DynamicBody);\n\t\ttestWorld.getPlayers().add(player);\n\t\tworldParser = new WorldParser(testWorld, \"Test World\");\n\t\tworldParser = new WorldParser(testWorld, \"Test Write\");\n\t\tworldParser.parseWorld();\n\t\twriter = new WorldWriter(\"Test Write\", testWorld);\n\t}",
"private GameWorld getGameWorld(){\n\t\tHashMap<String, Location> locations = new HashMap<String, Location>();\n\t\tHashMap<Avatar, Location> avatarLocations = new HashMap<Avatar, Location>();\n\t\tArrayList<Avatar> avatars = new ArrayList<Avatar>();\n\t\t\n\t\tLocation testLocation = new Location(\"Test Location\");\n\t\tAvatar testAvatar = new Avatar(\"Slim\", 1);\n\t\t\n\t\tlocations.put(\"testLocation\", testLocation);\n\t\tavatarLocations.put(testAvatar, testLocation);\n\t\tavatars.add(testAvatar);\n\t\t\n\t\treturn new GameWorld(locations, avatarLocations, avatars);\n\t}",
"World getWorld();",
"@Override\n public void init(GLAutoDrawable gld) {\n GL2 gl = gld.getGL().getGL2();\n glu = new GLU();\n\n gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n gl.glViewport(-500, -500, 500, 500);\n gl.glMatrixMode(GL2.GL_PROJECTION);\n gl.glLoadIdentity();\n glu.gluOrtho2D(-500, 500, -500, 500);\n }",
"public GeneticEngine() {\n avgFitnesses = new ArrayList<Double>();\n highFitnesses = new ArrayList<Double>();\n population = null;\n crossoverProbability = 0.07;\n mutationProbability = 0.001;\n maxGenerations = Integer.MAX_VALUE;\n }",
"@Override\n\tpublic void init(graph g) {\n\t\tthis.GA = g;\n\t}",
"public static void main(String [] args)\n\t{\n\t\tWorld newWorld = new World();\n\n\t\t//Adding everything into the world\n\t\tnewWorld.treesShrubsToWorld();\n\t\tnewWorld.grassToWorld();\n\t\tnewWorld.caterpillarToWorld();\n\t\tnewWorld.grasshopperToWorld();\n\t\tnewWorld.deerToWorld();\n\t\tnewWorld.bluejayToWorld();\n\t\tnewWorld.squirrelToWorld();\n\t\tnewWorld.mouseToWorld();\n\t\tnewWorld.rabbitToWorld();\n\t\tnewWorld.hawkToWorld();\n\t\tnewWorld.foxToWorld();\n\t\tnewWorld.wolfToWorld();\n\n\t\t//Printing out the world onto the console\n\t\tnewWorld.printWorld();\n\t\t\n\t}",
"public MyWorld()\n { \n super(1200, 600, 1); \n prepare();\n bienvenida();\n instrucciones();\n sonido();\n }",
"public Minus(Background myWorld)\n {\n super(myWorld);\n }",
"public God() {}",
"public static GFG getInstance() \n { \n if (instance == null) \n { \n // if instance is null, initialize \n instance = new GFG();\n } \n return instance; \n }",
"private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }",
"public ShamWorld(WorldSettings settings) {\n super(null, name, null, settings, null);\n }",
"@Override\n protected void initGame() {\n\n// entityBuilder()\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(getAppWidth() - 64, getAppHeight() - 64)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(0, getAppHeight() / 2 - 32)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .with(new ProjectileComponent(new Point2D(1, 0), 150))\n// .buildAndAttach();\n }",
"@DISPID(1611005956) //= 0x60060004. The runtime will prefer the VTID if present\n @VTID(32)\n void newWithGS(\n boolean oGSCreated);",
"public Game()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1, false); \n Greenfoot.start(); //Autostart the game\n Greenfoot.setSpeed(50); // Set the speed to 30%\n setBackground(bgImage);// Set the background image\n \n //Create instance\n \n Airplane gameplayer = new Airplane ();\n addObject (gameplayer, 100, getHeight()/2);\n \n }",
"public OrchardGame() {\n\t\t\n\t}"
] | [
"0.60275096",
"0.5991094",
"0.5988175",
"0.5988041",
"0.59449023",
"0.5867451",
"0.58493024",
"0.5825913",
"0.57712084",
"0.57711715",
"0.57497823",
"0.5724286",
"0.57138824",
"0.57075065",
"0.56932855",
"0.5683142",
"0.5662319",
"0.5582412",
"0.5575202",
"0.55693835",
"0.5559794",
"0.55572265",
"0.55485815",
"0.55413085",
"0.55320704",
"0.5523902",
"0.5516139",
"0.54810405",
"0.5454529",
"0.54486144",
"0.5445845",
"0.54377544",
"0.5435811",
"0.54348373",
"0.543142",
"0.5426584",
"0.541941",
"0.5414273",
"0.5412182",
"0.5408595",
"0.54027313",
"0.5396579",
"0.5390328",
"0.53897923",
"0.5376602",
"0.53677464",
"0.5366601",
"0.5356394",
"0.53548443",
"0.53405106",
"0.5333406",
"0.53309405",
"0.53031546",
"0.5284874",
"0.5283509",
"0.5278386",
"0.5277445",
"0.5259576",
"0.52574193",
"0.52544355",
"0.5250464",
"0.5240979",
"0.52356505",
"0.5228002",
"0.52263814",
"0.5206458",
"0.5182938",
"0.5181573",
"0.5177725",
"0.51758283",
"0.5158069",
"0.5152721",
"0.5150297",
"0.51410395",
"0.51364017",
"0.5135287",
"0.5127055",
"0.5115121",
"0.51119834",
"0.51105845",
"0.5106622",
"0.5093031",
"0.50841045",
"0.5083461",
"0.5082316",
"0.50814486",
"0.50648266",
"0.50633913",
"0.5061005",
"0.50441295",
"0.5041391",
"0.50410354",
"0.50373316",
"0.5028186",
"0.5025457",
"0.5024923",
"0.5022087",
"0.50219136",
"0.5019559",
"0.50172615"
] | 0.65655655 | 0 |
The Factory for the model. It provides a create method for each nonabstract class of the model. | public interface AliciaTest5Factory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
AliciaTest5Factory eINSTANCE = aliciaTest5.impl.AliciaTest5FactoryImpl.init();
/**
* Returns a new object of class '<em>Alicia Lab</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Alicia Lab</em>'.
* @generated
*/
AliciaLab createAliciaLab();
/**
* Returns a new object of class '<em>Project</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Project</em>'.
* @generated
*/
Project createProject();
/**
* Returns a new object of class '<em>Student</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Student</em>'.
* @generated
*/
Student createStudent();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
AliciaTest5Package getAliciaTest5Package();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"TestModelFactory getTestModelFactory();",
"public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public SqliteModelFactoryImpl()\n {\n super();\n }",
"public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"ModelsFactory getModelsFactory();",
"public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}",
"protected abstract IModel<T> createModel(T object);",
"public interface ConfigModelFactory\n{\n\t/**\n\t * Create an instance of the <code>ConfigModel</code>\n\t *\n\t * @return an instance of the configuration model\n\t */\n\tConfigModel createInstanceOfConfigModel();\n\n\t/**\n\t * Create an instance of the <code>InstanceModel</code>\n\t *\n\t * @return an instance of the instance model\n\t */\n\tInstanceModel createInstanceOfInstanceModel();\n\n\t/**\n\t * Create an instance of the <code>CsticModel</code>\n\t *\n\t * @return an instance of the characteristic model\n\t */\n\tCsticModel createInstanceOfCsticModel();\n\n\t/**\n\t * Create an instance of the <code>CsticValueModel</code>\n\t *\n\t * @param valueType\n\t * The containing Cstic value type\n\t * @return an instance of the characteristic value model\n\t */\n\tCsticValueModel createInstanceOfCsticValueModel(int valueType);\n\n\t/**\n\t * Create an instance of the <code>CsticGroupModel</code>\n\t *\n\t * @return an instance of the characteristic group model\n\t */\n\tCsticGroupModel createInstanceOfCsticGroupModel();\n\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel createInstanceOfPriceModel();\n\n\t/**\n\t * Create an instance of the <code>SolvableConflictModel</code>\n\t *\n\t * @return an instance of the Solvable Conflict Model\n\t */\n\tSolvableConflictModel createInstanceOfSolvableConflictModel();\n\n\t/**\n\t * Create an instance of the <code>ConflictingAssumptionModel</code>\n\t *\n\t * @return an instance of the Conflicting Assumption Model\n\t */\n\tConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel getZeroPriceModel();\n\n\t/**\n\t * Create an instance of the <code>PriceSummaryModel</code>\n\t *\n\t * @return an instance of the price summary model\n\t */\n\tPriceSummaryModel createInstanceOfPriceSummaryModel();\n\n\t/**\n\t * @return a builder to construct {@link ProductConfigMessage} objects\n\t */\n\tdefault ProductConfigMessageBuilder createProductConfigMessageBuilder()\n\t{\n\t\treturn new ProductConfigMessageBuilder();\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t * uses the <code>DEFAULT</code> ProductConfigMessageSourceSubType\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tdefault ProductConfigMessage createInstanceOfProductConfigMessage(final String message, final String key,\n\t\t\tfinal ProductConfigMessageSeverity severity, final ProductConfigMessageSource source)\n\t{\n\t\treturn createInstanceOfProductConfigMessage(message, key, severity, source, ProductConfigMessageSourceSubType.DEFAULT);\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @param subType\n\t * optional sub type of the message source\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tProductConfigMessage createInstanceOfProductConfigMessage(String message, String key, ProductConfigMessageSeverity severity,\n\t\t\tProductConfigMessageSource source, ProductConfigMessageSourceSubType subType);\n\n\n\t/**\n\t * Create an instance of the <code>VariantConditionModel</code>\n\t *\n\t * @return an instance of the variant condition model\n\t */\n\tVariantConditionModel createInstanceOfVariantConditionModel();\n\n\t/**\n\t * @return class name of the {@link PriceSummaryModel} implementation\n\t */\n\tString getTargetClassNamePriceSummaryModel();\n\n\n\t/**\n\t * @return class name of the {@link PriceModel} implementation\n\t */\n\tString getTargetClassNamePriceModel();\n\n\t/**\n\t * @return class name of the {@link CsticGroupModel} implementation\n\t */\n\tString getTargetClassNameCsticGroupModel();\n\n\t/**\n\t * @return class name of the {@link CsticValueModel} implementation\n\t */\n\tString getTargetClassNameCsticValueModel();\n\n\t/**\n\t * @return class name of the {@link CsticModel} implementation\n\t */\n\tString getTargetClassNameCsticModel();\n\n\t/**\n\t * @return class name of the {@link InstanceModel} implementation\n\t */\n\tString getTargetClassNameInstanceModel();\n\n\t/**\n\t * @return class name of the {@link ConfigModel} implementation\n\t */\n\tString getTargetClassNameConfigModel();\n\n\t/**\n\t * @return class name of the {@link SolvableConflictModel} implementation\n\t */\n\tString getTargetClassNameSolvableConflictModel();\n\n\t/**\n\t * @return class name of the {@link ConflictingAssumptionModel} implementation\n\t */\n\tString getTargetClassNameConflictingAssumptionModel();\n\n\t/**\n\t * @return class name of the {@link VariantConditionModel} implementation\n\t */\n\tString getTargetClassNameVariantConditionModel();\n}",
"@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}",
"public Factory() {\n\t\tsuper();\n\t}",
"public interface ModelFactory <ModelObject> {\n public void createElement(ModelObject object);\n}",
"EisModel createEisModel();",
"BehaviouralModelFactory getBehaviouralModelFactory();",
"CsticModel createInstanceOfCsticModel();",
"public abstract void create();",
"InstanceModel createInstanceOfInstanceModel();",
"public M create(P model);",
"void create(Model model) throws Exception;",
"public void create(){}",
"public static MusicModel createModel() {\n return new MusicModelImpl();\n }",
"public interface AbstractFactory {\n /**\n * Create cpu cpu.\n *\n * @return the cpu\n */\n Cpu createCpu();\n\n /**\n * Create main board main board.\n *\n * @return the main board\n */\n MainBoard createMainBoard();\n}",
"public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }",
"public interface AbstractFactory<T> {\n /**\n * Create a new Object of type T\n * @return the created object\n */\n T create();\n}",
"private ConcreteFactory() {}",
"DataModel createDataModel();",
"public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public interface Factory<T> {\n T create();\n}",
"T create();",
"T create();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"public static SqliteModelFactory init()\n {\n try\n {\n SqliteModelFactory theSqliteModelFactory = (SqliteModelFactory)EPackage.Registry.INSTANCE.getEFactory(SqliteModelPackage.eNS_URI);\n if (theSqliteModelFactory != null)\n {\n return theSqliteModelFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new SqliteModelFactoryImpl();\n }",
"interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }",
"private EntityFactory() {}",
"Klassenstufe createKlassenstufe();",
"public interface Factory {\n Product create();\n}",
"public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }",
"@Override\n\tpublic void create() {\n\n\t}",
"public abstract void create(T t);",
"For createFor();",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"public static Factory factory() {\n return ext_dbf::new;\n }",
"public interface Factory {\r\n}",
"PriceModel createInstanceOfPriceModel();",
"ZenModel createZenModel();",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"public interface Creator<T> {\n\t\tpublic T create() throws APIException;\n\n\t\tpublic void destroy(T t);\n\n\t\tpublic boolean isValid(T t);\n\n\t\tpublic void reuse(T t);\n\t}",
"public EntityFactoryImpl() {\n\t\tsuper();\n\t}",
"DomainModel createDomainModel();",
"@Override\n\tpublic void create () {\n\n\t}",
"public interface Factory {\n LeiFeng createLeiFeng();\n}",
"public void create() {\n\t\t\n\t}",
"public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static PetrinetmodelFactory init() {\r\n\t\ttry {\r\n\t\t\tPetrinetmodelFactory thePetrinetmodelFactory = (PetrinetmodelFactory)EPackage.Registry.INSTANCE.getEFactory(PetrinetmodelPackage.eNS_URI);\r\n\t\t\tif (thePetrinetmodelFactory != null) {\r\n\t\t\t\treturn thePetrinetmodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new PetrinetmodelFactoryImpl();\r\n\t}",
"protected abstract ENTITY createEntity();",
"public static UsermodelFactory init() {\r\n\t\ttry {\r\n\t\t\tUsermodelFactory theUsermodelFactory = (UsermodelFactory)EPackage.Registry.INSTANCE.getEFactory(UsermodelPackage.eNS_URI);\r\n\t\t\tif (theUsermodelFactory != null) {\r\n\t\t\t\treturn theUsermodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new UsermodelFactoryImpl();\r\n\t}",
"ConfigModel createInstanceOfConfigModel();",
"public abstract T create(T obj);",
"public static Factory factory() {\n return ext_h::new;\n }",
"public interface DebuggerModelFactory\n\t\textends ExtensionPoint, ConfigurableFactory<DebuggerObjectModel> {\n\n\t/**\n\t * Get the priority for selecting this factory by default for the given program\n\t * \n\t * <p>\n\t * A default factory is selected when the current factory and the last successful factory are\n\t * incompatible with the current program, or if this is the very first time connecting. Of those\n\t * factories compatible with the current program, the one with the highest priority (larger\n\t * numerical value) is selected. If none are compatible, then the current selection is left as\n\t * is.\n\t * \n\t * <p>\n\t * Note that negative priorities imply the factory is not compatible with the given program or\n\t * local system.\n\t * \n\t * @param program the current program, or null\n\t * @return the priority, higher values mean higher priority\n\t */\n\tdefault int getPriority(Program program) {\n\t\treturn 0;\n\t}\n\n\t/**\n\t * Check if this factory is compatible with the local system and given program.\n\t * \n\t * <p>\n\t * <b>WARNING:</b> Implementations should not likely override this method. If one does, it must\n\t * behave in the same manner as given in this default implementation: If\n\t * {@link #getPriority(Program)} would return a non-negative result for the program, then this\n\t * factory is compatible with that program. If negative, this factory is not compatible.\n\t * \n\t * @param program the current program, or null\n\t * @return true if compatible\n\t */\n\tdefault boolean isCompatible(Program program) {\n\t\treturn getPriority(program) >= 0;\n\t}\n}",
"public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }",
"public interface IFactory {\n IUser createUser();\n IDepartment createDepartment();\n}",
"public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}",
"public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}",
"public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"Factory<? extends T> buildPersonFactory(String type);",
"public PedidoFactoryImpl() {\n\t\tsuper();\n\t}",
"public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public interface Creator {\n public abstract Item factoryMethod();\n public abstract Item factoryMethod(String name);\n public abstract Item factoryMethod(String name, List<Flower> flowerList);\n}",
"public abstract ProductFactory getFactory();",
"public Model() {\n\t}",
"public Model() {\n\t}",
"public LanterneFactoryImpl() {\n\t\tsuper();\n\t}",
"public interface Factory {\n Animal createAnimal();\n}",
"public interface AbstractFactory {\n Bmw produceBmw();\n Benz produceBenz();\n}",
"public MystFactoryImpl()\r\n {\r\n super();\r\n }",
"public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }",
"public interface IFactory<T extends MaterialCastingRecipe> {\n T create(ResourceLocation id, String group, @Nullable Ingredient cast, int itemCost, IMaterialItem result,\n boolean consumed, boolean switchSlots);\n }",
"private VegetableFactory() {\n }",
"protected MoneyFactory() {\n\t}",
"public EnotationFactoryImpl() {\n\t\tsuper();\n\t}",
"public Model() {\n this(DSL.name(\"model\"), null);\n }",
"public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public TypeAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = TypePackage.eINSTANCE;\n\t\t}\n\t}",
"interface Create {}",
"public GameDomainFactory() {\r\n\t\t\r\n\t\tCreateGameDomain = new HashMap<String, GameDomainFactory.gameDomainCreator>();\r\n\t\tCreateGameDomain.put(\"TicTacToe\" , new ticTacToeCreator());\r\n\t\tCreateGameDomain.put(\"Reversi\", new CreatorReversi());\r\n\t}",
"public abstract <T> T create(Object object, Class<T> clazz);",
"public EcoreFactoryImpl() {\n super();\n }",
"public static Factory factory() {\n return text::new;\n }",
"public FvFactoryImpl() {\n\t\tsuper();\n\t}",
"public abstract Product productFactory(String type);"
] | [
"0.71565163",
"0.71565163",
"0.71565163",
"0.71565163",
"0.71565163",
"0.71565163",
"0.71565163",
"0.70742077",
"0.7051943",
"0.6983852",
"0.69748455",
"0.6965496",
"0.69568366",
"0.69481784",
"0.6860293",
"0.6811446",
"0.6807123",
"0.6756206",
"0.6694741",
"0.6656823",
"0.6654312",
"0.6640736",
"0.6595195",
"0.6580549",
"0.65715563",
"0.6555794",
"0.6534009",
"0.648342",
"0.64748156",
"0.6450784",
"0.6445946",
"0.64300567",
"0.6421489",
"0.64043415",
"0.6400982",
"0.63907266",
"0.63907266",
"0.6368747",
"0.6349325",
"0.63468486",
"0.6345672",
"0.63069546",
"0.6302681",
"0.6292132",
"0.6289528",
"0.6275873",
"0.6264616",
"0.6250081",
"0.623463",
"0.62291795",
"0.62248415",
"0.6222761",
"0.6219561",
"0.62143695",
"0.62126905",
"0.62034976",
"0.61920136",
"0.61674654",
"0.61650974",
"0.6154887",
"0.61427796",
"0.61426824",
"0.6140671",
"0.61348015",
"0.6117416",
"0.6079516",
"0.6065549",
"0.60619617",
"0.60616994",
"0.6044366",
"0.60355604",
"0.60280776",
"0.6026859",
"0.6021375",
"0.60200113",
"0.60140157",
"0.60013527",
"0.5987638",
"0.5981197",
"0.59794974",
"0.59472996",
"0.59472996",
"0.59399843",
"0.5938128",
"0.59361154",
"0.59327817",
"0.59254813",
"0.59222776",
"0.5919654",
"0.59025806",
"0.5900669",
"0.5895235",
"0.5894421",
"0.5892311",
"0.5877348",
"0.58726925",
"0.5863833",
"0.58636236",
"0.5861607",
"0.585989",
"0.58558"
] | 0.0 | -1 |
Returns a new object of class 'Alicia Lab'. | AliciaLab createAliciaLab(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Lab create();",
"public Laboratorio() {}",
"public static Livro criarLivro() {\n\n\t\tLivro livro = new Livro();\n\n\t\tString codigo = Console.recuperaTexto(\"Informe o código:\");\n\t\tlivro.setCodigo(codigo);\n\t\tString titulo = Console.recuperaTexto(\"Informe o título:\");\n\t\tlivro.setTitulo(titulo);\n\n\t\tArrayList<String> autores = new ArrayList<>();\n\t\tInteger quantidade = Console.recuperaInteiro(\"Quantos autores?\");\n\t\tfor (int i = 0; i < quantidade; i++) {\n\t\t\tString autor = Console.recuperaTexto(\"Informe o autor \" + (i + 1) + \":\");\n\t\t\tautores.add(autor);\n\t\t}\n\t\tlivro.setAutores(autores);\n\n\t\tString isbn = Console.recuperaTexto(\"Informe o ISBN:\");\n\t\tlivro.setIsbn(isbn);\n\t\tInteger ano = Console.recuperaInteiro(\"Informe o ano:\");\n\t\tlivro.setAno(ano);\n\n\t\treturn livro;\n\n\t}",
"Lab create(Context context);",
"public Aritmetica(){ }",
"public Laboratorio getLaboratoriobyID(int idlab) throws LabNotFoundException {\n Laboratorio lab = new Laboratorio();\n for (int j= 0; j< numeroLabs; j++)\n {\n if(laboratorios[j].getIDlab() == idlab){\n lab = laboratorios[j];\n break;\n }\n\n }\n if(lab==null)\n {\n throw new LabNotFoundException();\n }\n else{\n return lab;\n }\n\n }",
"public Livro() {\n\n\t}",
"public Laboratorio(String nombre) {\r\n\t\tsuper();\r\n\t\tthis.nombre = nombre;\r\n\t}",
"public interface Lab {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * Gets the name property: The name of the resource.\n *\n * @return the name value.\n */\n String name();\n\n /**\n * Gets the type property: The type of the resource.\n *\n * @return the type value.\n */\n String type();\n\n /**\n * Gets the location property: The geo-location where the resource lives.\n *\n * @return the location value.\n */\n String location();\n\n /**\n * Gets the tags property: Resource tags.\n *\n * @return the tags value.\n */\n Map<String, String> tags();\n\n /**\n * Gets the systemData property: Metadata pertaining to creation and last modification of the lab.\n *\n * @return the systemData value.\n */\n SystemData systemData();\n\n /**\n * Gets the provisioningState property: Current provisioning state of the lab.\n *\n * @return the provisioningState value.\n */\n ProvisioningState provisioningState();\n\n /**\n * Gets the networkProfile property: The network profile for the lab, typically applied via a lab plan. This profile\n * cannot be modified once a lab has been created.\n *\n * @return the networkProfile value.\n */\n LabNetworkProfile networkProfile();\n\n /**\n * Gets the state property: The lab state.\n *\n * @return the state value.\n */\n LabState state();\n\n /**\n * Gets the autoShutdownProfile property: The resource auto shutdown configuration for the lab. This controls\n * whether actions are taken on resources that are sitting idle.\n *\n * @return the autoShutdownProfile value.\n */\n AutoShutdownProfile autoShutdownProfile();\n\n /**\n * Gets the connectionProfile property: The connection profile for the lab. This controls settings such as web\n * access to lab resources or whether RDP or SSH ports are open.\n *\n * @return the connectionProfile value.\n */\n ConnectionProfile connectionProfile();\n\n /**\n * Gets the virtualMachineProfile property: The profile used for creating lab virtual machines.\n *\n * @return the virtualMachineProfile value.\n */\n VirtualMachineProfile virtualMachineProfile();\n\n /**\n * Gets the securityProfile property: The lab security profile.\n *\n * @return the securityProfile value.\n */\n SecurityProfile securityProfile();\n\n /**\n * Gets the rosterProfile property: The lab user list management profile.\n *\n * @return the rosterProfile value.\n */\n RosterProfile rosterProfile();\n\n /**\n * Gets the labPlanId property: The ID of the lab plan. Used during resource creation to provide defaults and acts\n * as a permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab provides\n * organization..\n *\n * @return the labPlanId value.\n */\n String labPlanId();\n\n /**\n * Gets the title property: The title of the lab.\n *\n * @return the title value.\n */\n String title();\n\n /**\n * Gets the description property: The description of the lab.\n *\n * @return the description value.\n */\n String description();\n\n /**\n * Gets the region of the resource.\n *\n * @return the region of the resource.\n */\n Region region();\n\n /**\n * Gets the name of the resource region.\n *\n * @return the name of the resource region.\n */\n String regionName();\n\n /**\n * Gets the name of the resource group.\n *\n * @return the name of the resource group.\n */\n String resourceGroupName();\n\n /**\n * Gets the inner com.azure.resourcemanager.labservices.fluent.models.LabInner object.\n *\n * @return the inner object.\n */\n LabInner innerModel();\n\n /** The entirety of the Lab definition. */\n interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithLocation,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithCreate {\n }\n /** The Lab definition stages. */\n interface DefinitionStages {\n /** The first stage of the Lab definition. */\n interface Blank extends WithLocation {\n }\n /** The stage of the Lab definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(String location);\n }\n /** The stage of the Lab definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the Lab definition which contains all the minimum required properties for the resource to be\n * created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithNetworkProfile,\n DefinitionStages.WithAutoShutdownProfile,\n DefinitionStages.WithConnectionProfile,\n DefinitionStages.WithVirtualMachineProfile,\n DefinitionStages.WithSecurityProfile,\n DefinitionStages.WithRosterProfile,\n DefinitionStages.WithLabPlanId,\n DefinitionStages.WithTitle,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Lab create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Lab create(Context context);\n }\n /** The stage of the Lab definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n /** The stage of the Lab definition allowing to specify networkProfile. */\n interface WithNetworkProfile {\n /**\n * Specifies the networkProfile property: The network profile for the lab, typically applied via a lab plan.\n * This profile cannot be modified once a lab has been created..\n *\n * @param networkProfile The network profile for the lab, typically applied via a lab plan. This profile\n * cannot be modified once a lab has been created.\n * @return the next definition stage.\n */\n WithCreate withNetworkProfile(LabNetworkProfile networkProfile);\n }\n /** The stage of the Lab definition allowing to specify autoShutdownProfile. */\n interface WithAutoShutdownProfile {\n /**\n * Specifies the autoShutdownProfile property: The resource auto shutdown configuration for the lab. This\n * controls whether actions are taken on resources that are sitting idle..\n *\n * @param autoShutdownProfile The resource auto shutdown configuration for the lab. This controls whether\n * actions are taken on resources that are sitting idle.\n * @return the next definition stage.\n */\n WithCreate withAutoShutdownProfile(AutoShutdownProfile autoShutdownProfile);\n }\n /** The stage of the Lab definition allowing to specify connectionProfile. */\n interface WithConnectionProfile {\n /**\n * Specifies the connectionProfile property: The connection profile for the lab. This controls settings such\n * as web access to lab resources or whether RDP or SSH ports are open..\n *\n * @param connectionProfile The connection profile for the lab. This controls settings such as web access to\n * lab resources or whether RDP or SSH ports are open.\n * @return the next definition stage.\n */\n WithCreate withConnectionProfile(ConnectionProfile connectionProfile);\n }\n /** The stage of the Lab definition allowing to specify virtualMachineProfile. */\n interface WithVirtualMachineProfile {\n /**\n * Specifies the virtualMachineProfile property: The profile used for creating lab virtual machines..\n *\n * @param virtualMachineProfile The profile used for creating lab virtual machines.\n * @return the next definition stage.\n */\n WithCreate withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile);\n }\n /** The stage of the Lab definition allowing to specify securityProfile. */\n interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n WithCreate withSecurityProfile(SecurityProfile securityProfile);\n }\n /** The stage of the Lab definition allowing to specify rosterProfile. */\n interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n WithCreate withRosterProfile(RosterProfile rosterProfile);\n }\n /** The stage of the Lab definition allowing to specify labPlanId. */\n interface WithLabPlanId {\n /**\n * Specifies the labPlanId property: The ID of the lab plan. Used during resource creation to provide\n * defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId\n * on an existing lab provides organization...\n *\n * @param labPlanId The ID of the lab plan. Used during resource creation to provide defaults and acts as a\n * permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab\n * provides organization..\n * @return the next definition stage.\n */\n WithCreate withLabPlanId(String labPlanId);\n }\n /** The stage of the Lab definition allowing to specify title. */\n interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }\n /** The stage of the Lab definition allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }\n }\n /**\n * Begins update for the Lab resource.\n *\n * @return the stage of resource update.\n */\n Lab.Update update();\n\n /** The template for Lab update. */\n interface Update\n extends UpdateStages.WithTags,\n UpdateStages.WithAutoShutdownProfile,\n UpdateStages.WithConnectionProfile,\n UpdateStages.WithVirtualMachineProfile,\n UpdateStages.WithSecurityProfile,\n UpdateStages.WithRosterProfile,\n UpdateStages.WithLabPlanId,\n UpdateStages.WithTitle,\n UpdateStages.WithDescription {\n /**\n * Executes the update request.\n *\n * @return the updated resource.\n */\n Lab apply();\n\n /**\n * Executes the update request.\n *\n * @param context The context to associate with this operation.\n * @return the updated resource.\n */\n Lab apply(Context context);\n }\n /** The Lab update stages. */\n interface UpdateStages {\n /** The stage of the Lab update allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(List<String> tags);\n }\n /** The stage of the Lab update allowing to specify autoShutdownProfile. */\n interface WithAutoShutdownProfile {\n /**\n * Specifies the autoShutdownProfile property: The resource auto shutdown configuration for the lab. This\n * controls whether actions are taken on resources that are sitting idle..\n *\n * @param autoShutdownProfile The resource auto shutdown configuration for the lab. This controls whether\n * actions are taken on resources that are sitting idle.\n * @return the next definition stage.\n */\n Update withAutoShutdownProfile(AutoShutdownProfile autoShutdownProfile);\n }\n /** The stage of the Lab update allowing to specify connectionProfile. */\n interface WithConnectionProfile {\n /**\n * Specifies the connectionProfile property: The connection profile for the lab. This controls settings such\n * as web access to lab resources or whether RDP or SSH ports are open..\n *\n * @param connectionProfile The connection profile for the lab. This controls settings such as web access to\n * lab resources or whether RDP or SSH ports are open.\n * @return the next definition stage.\n */\n Update withConnectionProfile(ConnectionProfile connectionProfile);\n }\n /** The stage of the Lab update allowing to specify virtualMachineProfile. */\n interface WithVirtualMachineProfile {\n /**\n * Specifies the virtualMachineProfile property: The profile used for creating lab virtual machines..\n *\n * @param virtualMachineProfile The profile used for creating lab virtual machines.\n * @return the next definition stage.\n */\n Update withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile);\n }\n /** The stage of the Lab update allowing to specify securityProfile. */\n interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n Update withSecurityProfile(SecurityProfile securityProfile);\n }\n /** The stage of the Lab update allowing to specify rosterProfile. */\n interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n Update withRosterProfile(RosterProfile rosterProfile);\n }\n /** The stage of the Lab update allowing to specify labPlanId. */\n interface WithLabPlanId {\n /**\n * Specifies the labPlanId property: The ID of the lab plan. Used during resource creation to provide\n * defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId\n * on an existing lab provides organization...\n *\n * @param labPlanId The ID of the lab plan. Used during resource creation to provide defaults and acts as a\n * permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab\n * provides organization..\n * @return the next definition stage.\n */\n Update withLabPlanId(String labPlanId);\n }\n /** The stage of the Lab update allowing to specify title. */\n interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n Update withTitle(String title);\n }\n /** The stage of the Lab update allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }\n }\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @return the refreshed resource.\n */\n Lab refresh();\n\n /**\n * Refreshes the resource to sync with Azure.\n *\n * @param context The context to associate with this operation.\n * @return the refreshed resource.\n */\n Lab refresh(Context context);\n\n /**\n * Publish or re-publish a lab.\n *\n * <p>Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.\n *\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void publish();\n\n /**\n * Publish or re-publish a lab.\n *\n * <p>Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.\n *\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void publish(Context context);\n\n /**\n * Manually sync the lab group.\n *\n * <p>Action used to manually kick off an AAD group sync job.\n *\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void syncGroup();\n\n /**\n * Manually sync the lab group.\n *\n * <p>Action used to manually kick off an AAD group sync job.\n *\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n void syncGroup(Context context);\n}",
"public Libreria() {\n\t\tnumLibs = 0;\n\t\tlb = new Libro[CAP_INICIAL];\n\t}",
"public Corrida(){\n\n }",
"Vaisseau_abscisseLaPlusADroite createVaisseau_abscisseLaPlusADroite();",
"@Override\n\tpublic DAOPedido_Lab crearDAOPedido() {\n\t\treturn null;\n\t}",
"private static Dog createLabrador(){\n try {\n UtilityMethods.print(\"Creating labrador for you...!\"); \n DogGenerator dogGenerator = new DogGenerator();\n DogBuilder labradorDogBuilder = new LabradorBuilder();\n dogGenerator.setDogBuilder(labradorDogBuilder);\n dogGenerator.constructDog(\n \"Animal\",\n \"Male\",\n 20,\n \"Carnivores\"\n );\n Dog labradordog = dogGenerator.getDog();\n UtilityMethods.print(\"\\n\"); \n labradordog.eat();\n UtilityMethods.print(\"\\n\"); \n labradordog.speak();\n UtilityMethods.print(\"\\n\"); \n labradordog.walk();\n UtilityMethods.print(\"\\n\"); \n return labradordog;\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage()); \n }\n return null;\n }",
"LectureProject createLectureProject();",
"public AllLaboTest() {\n }",
"public Project() {\n this.name = \"Paper plane\";\n this.description = \" It's made of paper.\";\n }",
"public Alojamiento() {\r\n\t}",
"public static CrimeLab get(Context context) {\n if (sCrimeLab == null) {\n sCrimeLab = new CrimeLab(context);\n }\n return sCrimeLab;\n }",
"Compleja createCompleja();",
"static public GUIAltaHabitacion obtenerInstancia(){\r\n\t\t if(altaHabitacion == null){\r\n\t\t\t altaHabitacion = new GUIAltaHabitacion();\r\n\t\t }\r\n\t\t \r\n\t\t return altaHabitacion;\r\n\t }",
"Vaisseau_abscisseLaPlusAGauche createVaisseau_abscisseLaPlusAGauche();",
"public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }",
"public Aktie() {\n }",
"public TelaPrincipal() {\n initComponents();\n }",
"public TelaPrincipal() {\n initComponents();\n }",
"Oracion createOracion();",
"Petunia() {\r\n\t\t}",
"public TelaPrincipalLocutor() {\n initComponents();\n\n }",
"Reproducible newInstance();",
"public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }",
"public static ColaTF1 cargarCola() {\n ColaTF1 cola = new ColaTF1();\n cola.InicializarCola();\n cola.Acolar(3);\n cola.Acolar(45);\n cola.Acolar(76);\n\n return cola;\n }",
"public Libreria(String nombre)\n {\n libros = new ArrayList<>();\n this.nombre = nombre;\n\n }",
"public TelaInicial() {\n initComponents();\n }",
"public TelaInicial() {\n initComponents();\n }",
"public Lectura(String libro) {\n this.libro = libro;\n }",
"public static LabNotes newInstance() {\n LabNotes fragment = new LabNotes();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public AirlineCompany() {\n\t}",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"Vaisseau_longueur createVaisseau_longueur();",
"public Curso() {\r\n }",
"public static void main(String[] args) {\r\n\r\n // create new Lab3 objects\r\n Lab3 lab = new Lab3();\r\n\r\n Lab3 lab2 = new Lab3(24);\r\n\r\n Lab3 lab3 = new Lab3(\"James\");\r\n\r\n\r\n // Display lab 3 objects\r\n System.out.println(lab);\r\n\r\n System.out.println(lab2);\r\n\r\n System.out.println(lab3);\r\n }",
"public AdsbPlane(int icao) {\r\n\t\tmIcao = icao;\r\n\t\tmCprs[0] = new CprRec();\r\n\t\tmCprs[1] = new CprRec();\r\n\t}",
"public Libro() {\r\n }",
"Clase createClase();",
"public Livre() {\r\n super();\r\n }",
"public String getLab(){\n return lab;\n }",
"public Lecture() {\n\t\tthis.name = \"default lecture name\";\n\t\tthis.credits = 1.0;\n\t\tSystem.out.println(\"lecture created\");\n\t}",
"public TelaPrincipalADM() {\n initComponents();\n }",
"Compuesta createCompuesta();",
"public College(int number) {\n this.number = number;\n labs = new Lab[number];\n }",
"public static LoCurso GetInstancia(){\n if (instancia==null)\n {\n instancia = new LoCurso();\n \n }\n\n return instancia;\n }",
"public VentanaPrincipal() {\n initComponents();\n }",
"public abstract Anuncio creaAnuncioGeneral();",
"public AfiliadoVista() {\r\n }",
"public OVChipkaart() {\n\n }",
"public Tela() {\n initComponents();\n }",
"@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}",
"@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}",
"public CMObject newInstance();",
"public JanelaPrincipal() {\n initComponents();\n }",
"public Labyrinth(Labyrinth lab) {\n\t\tthis.squares = lab.getSquares();\n\t\tthis.width = lab.width;\n\t\tthis.height = lab.height;\n\t}",
"public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}",
"public AoDai chooseFactory(){\n\t\treturn new ModernAoDai();\n\t}",
"public FruitStand() {}",
"public IStoreLane classic();",
"public String getLaboratorio() {\n return laboratorio;\n }",
"public EnsembleLettre() {\n\t\t\n\t}",
"private void createNewLab(){\n String newLabName = NewLabNameTextfield.getText();\n // If lab doesn't exist make the new lab\n if(!Arrays.asList(labsPath.list()).contains(newLabName)){ \n try{\n LabExistLabel.setVisible(false);\n NewLabDialog.revalidate();\n //call python new_lab_script: new_lab_setup.py -b basename \n File labdir = new File(labsPath+File.separator+newLabName);\n labdir.mkdir();\n this.labName = newLabName;\n String cmd = \"new_lab_setup.py -b \"+NewLabBaseImageComboBox.getSelectedItem();\n doLabCommand(cmd);\n \n // Close the new lab dialog and open the new lab\n NewLabDialog.setVisible(false);\n openLab(new File(labsPath+File.separator+newLabName));\n } \n catch (IOException e){\n System.out.println(e);\n }\n }\n else{\n LabExistLabel.setVisible(true);\n NewLabDialog.revalidate();\n System.out.println(\"Lab already exists. Make the lab with a different name other than:\");\n printExistingLabs();\n }\n }",
"public TelaPrincipal() {\n initComponents();\n Consultorio.Instance().efetuaBalanco(false);\n setSize(1029,764);\n }",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }",
"public Airplane (){\n \n }",
"public YellowTea() {\n super();\n this.setName(\"Yellow Tea\");\n this.setPrice(3.50);\n\n this.brewFirstLiquid = new BrewHotWater();\n this.brewSecondLiquid = new BrewNoLiquid();\n this.brewThirdLiquid = new BrewNoLiquid();\n\n System.out.println(\"Brewing Yellow Tea...\");\n }",
"public Camp newEntity() { return new Camp(); }",
"public AccidentFrame(){\r\n super(\"Motor Vehicle Registration Application\");\r\n accidentPanel = new AccidentPanel();\r\n JTabbedPane tabbedPane = new JTabbedPane();\r\n tabbedPane.addTab(\"Add new accident\", accidentPanel); \r\n tabbedPane.addTab(\"View all accidents\", new DisplayAccident());\r\n JLabel titleLabel=new JLabel(\"Queensland Road and Transport Authority\");\r\n \r\n this.add(tabbedPane);\r\n \r\n }",
"public Facility() {\n }",
"private void createAndShowGUI (){\n\n JustawieniaPowitalne = new JUstawieniaPowitalne();\n }",
"@Override\n\tpublic Airport createNew()\n\t{\n\t\treturn new Airport();\n\t}",
"private TMCourse() {\n\t}",
"public Institution() {\n this.name = \"Institution\";\n }",
"private UsineJoueur() {}",
"public Cgg_jur_anticipo(){}",
"public Plantas() {\r\n initComponents();\r\n limpiar();\r\n \r\n hilor = new HiloReloj(lbhora);\r\n hilor.start();\r\n }",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"public Manusia() {}",
"public Idea create() {\n \t\t\tIdea idea = new Idea();\n \n \t\t\treturn idea;\n \t\t}",
"public Lanceur() {\n\t}",
"public Persona() {\n\t}",
"public Ablak() {\n initComponents();\n }",
"private void openLab(File lab) throws IOException{ \n // Load data\n currentLab = lab;\n labName = lab.toString().substring(lab.toString().lastIndexOf(File.separator)+1);\n labDataCurrent = new LabData(this, lab, labName); \n\n // Load UI\n closeAllDialogs(); \n resetWindow();\n loadLab();\n }",
"public Persona(){\n \n }",
"public Persona(){\n \n }",
"public VistaInicial crearventanaInicial(){\n if(vistaInicial==null){\n vistaInicial = new VistaInicial();\n }\n return vistaInicial;\n }",
"public Carrera(){\n }",
"public static void newProject() {\n\n //create the arena representation\n //populateBlocks();\n //populateSensors();\n }",
"public Argonian()\n\t{\n\t\tthis.race = \"Argonian\";\n\t}",
"public AI(){\n super();\n }",
"public Boleta(){\r\n\t\tsuper();\r\n\t}",
"private Project(){}"
] | [
"0.73537225",
"0.67863196",
"0.65544176",
"0.65343887",
"0.61740154",
"0.61337996",
"0.6097561",
"0.60752666",
"0.60361993",
"0.59894675",
"0.5925207",
"0.588757",
"0.58756775",
"0.58686286",
"0.585492",
"0.5822431",
"0.5821679",
"0.5815137",
"0.5788448",
"0.57816356",
"0.57313424",
"0.57204133",
"0.5716016",
"0.57158476",
"0.56986606",
"0.56986606",
"0.56978536",
"0.5697237",
"0.5681746",
"0.56687784",
"0.5649448",
"0.56404084",
"0.56319827",
"0.5627754",
"0.5627754",
"0.5625398",
"0.5610323",
"0.5605324",
"0.55973256",
"0.5589398",
"0.5587968",
"0.5585839",
"0.5583557",
"0.5578546",
"0.55703145",
"0.5548534",
"0.5541209",
"0.5530073",
"0.55230755",
"0.55175376",
"0.55136096",
"0.5508175",
"0.5498391",
"0.5489535",
"0.54888344",
"0.5478981",
"0.547626",
"0.5472408",
"0.5472408",
"0.5469445",
"0.5466033",
"0.54600394",
"0.5456222",
"0.545096",
"0.544684",
"0.544097",
"0.5434905",
"0.54197556",
"0.5414018",
"0.54095715",
"0.5408552",
"0.54013",
"0.5392754",
"0.53854495",
"0.5384106",
"0.53838843",
"0.5381367",
"0.5378166",
"0.5376279",
"0.537528",
"0.53701264",
"0.536916",
"0.5367961",
"0.5363924",
"0.53621906",
"0.5361764",
"0.53574973",
"0.5356685",
"0.5355953",
"0.5355449",
"0.5354227",
"0.53496265",
"0.53496265",
"0.5340563",
"0.5340176",
"0.5340154",
"0.53340477",
"0.53315127",
"0.5328446",
"0.53256005"
] | 0.85325223 | 0 |
Returns a new object of class 'Project'. | Project createProject(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createProject(Project newProject);",
"public IProject getNewProject() {\r\n\t\treturn newProject;\r\n\t}",
"public Project build() {\n return new Project(descriptor.build());\n }",
"private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\t\t}\r\n\r\n\t\t// get a project handle\r\n\t\tfinal IProject newProjectHandle = mainPage.getProjectHandle();\r\n\r\n\t\t// get a project descriptor\r\n\t\tURI location = mainPage.getLocationURI();\r\n\r\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\r\n\t\tfinal IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName());\r\n\t\tdescription.setLocationURI(location);\r\n\r\n\t\tlog.info(\"Project name: \" + newProjectHandle.getName());\r\n\t\t//log.info(\"Location: \" + location.toString());\r\n\t\t\r\n\t\t// create the new project operation\r\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\r\n\t\t\tpublic void run(IProgressMonitor monitor)\r\n\t\t\t\t\tthrows InvocationTargetException {\r\n\t\t\t\tCreateProjectOperation op = new CreateProjectOperation(description, ResourceMessages.NewProject_windowTitle);\r\n\t\t\t\ttry {\r\n\t\t\t\t\top.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));\r\n\t\t\t\t} catch (ExecutionException e) {\r\n\t\t\t\t\tthrow new InvocationTargetException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// run the new project creation operation\r\n\t\ttry {\r\n\t\t\tgetContainer().run(true, true, op);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tnewProject = newProjectHandle;\r\n\r\n\t\treturn newProject;\r\n\t}",
"public static Projects createEntity() {\n Projects projects = new Projects();\n projects = new Projects()\n .name(DEFAULT_NAME)\n .startDate(DEFAULT_START_DATE)\n .endDate(DEFAULT_END_DATE)\n .status(DEFAULT_STATUS);\n return projects;\n }",
"public static Project creer(String name){\n\t\treturn new Project(name);\n\t}",
"private Project(){}",
"public static AddProject newInstance() {\n AddProject fragment = new AddProject();\n return fragment;\n }",
"public Project() {\n\n }",
"public static Project Construct(String id)\n\t{\n\t\treturn new Project(id);\n\t}",
"@Test\n @org.junit.Ignore\n public void testProject_1()\n throws Exception {\n\n Project result = new Project();\n\n assertNotNull(result);\n assertEquals(null, result.getName());\n assertEquals(null, result.getWorkloadNames());\n assertEquals(null, result.getProductName());\n assertEquals(null, result.getComments());\n assertEquals(null, result.getCreator());\n assertEquals(0, result.getId());\n assertEquals(null, result.getModified());\n assertEquals(null, result.getCreated());\n }",
"public Project() {\n\t}",
"public Project() {\n\t}",
"public Project() {\n\t\t\n\t}",
"private Project compileProject() {\n\t\t\tProject p = null;\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new OngoingProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pDeadline.getText()), Double.parseDouble(pBudget.getText()), Integer.parseInt(pCompletion.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new FinishedProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pEndDate.getText()), Double.parseDouble(pTotalCost.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\n\t\t\treturn p;\n\t\t}",
"public Project()\n {\n\n }",
"public Project() { }",
"public IProject getProject();",
"@SuppressWarnings(\"synthetic-access\")\n\t\tpublic GitHubProject build() {\n\t\t\treturn new GitHubProject(this);\n\t\t}",
"Project getProject();",
"public static Project Create(String id)\n\t{\n\t\t// Need to use an ancestor query to do this inside a transaction.\n\t\t// But the ancestor of project is project.\n\t\t// So we just create a normal key with only the type and id\n\t\tproject = ofy().load().key(Key.create(Project.class, id)).now();\n\n\t\treturn project;\n\t}",
"public Project getProjectByName(String name);",
"public Project createProjectFromPRJ() {\n\n\t\tSystem.out.println(\"Trying to load prj file with : \" + data_path + \" \" + projectName + \" \" + conceptName + \" \");\n\n\t\tProject project = null;\n\n\t\ttry {\n\n\t\t\tproject = new Project(data_path + projectName);\n\n\t\t\t// Sehr wichtig hier das Warten einzubauen, sonst gibts leere\n\t\t\t// Retrieval Results, weil die Faelle noch nicht geladen sind wenn\n\t\t\t// das\n\t\t\t// Erste Retrieval laueft\n\t\t\twhile (project.isImporting()) {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\"); // console pretty print\n\t\t} catch (Exception ex) {\n\n\t\t\tSystem.out.println(\"Error when loading the project\");\n\t\t}\n\t\treturn project;\n\t}",
"public ProjectViewController(){\n InputStream request = appController.httpRequest(\"http://localhost:8080/project/getProject\", \"GET\");\n try {\n String result = IOUtils.toString(request, StandardCharsets.UTF_8);\n Gson gson = new Gson();\n this.projectModel = gson.fromJson(result, ProjectModel.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public CreateProject() {\n\t\tsuper();\n\t}",
"com.appscode.api.auth.v1beta1.Project getProject();",
"@Override\n\tpublic IProject getProject() {\n\t\treturn fProject;\n\t}",
"Project getById(Long id);",
"LectureProject createLectureProject();",
"public static Builder newProject(String name) {\n return new Builder(name);\n }",
"public Project getProject()\n {\n \treturn project;\n }",
"public Project getProject()\n {\n return project;\n }",
"public Project getProject(Long projectId);",
"@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.getId();\n final Queue queue = QueueFactory.getDefaultQueue();\n \n // Start transactions\n Project project = ofy().transact(new Work<Project>(){\n \t@Override\n \tpublic Project run(){\n \t\tProject project = new Project(projectId, projectForm);\n ofy().save().entities(project).now();\n \n return project;\n \t}\n }); \n return project;\n }",
"public Project(String name) {\n this.name = name;\n }",
"public Project getProject() {\r\n return project;\r\n }",
"public IProject getProject() {\n return mProject;\n }",
"@Override\n public Project getProject() {\n return super.getProject();\n }",
"public Project getProject() {\n return project;\n }",
"public Project getProject() {\n return project;\n }",
"public Project() {\n this.name = \"Paper plane\";\n this.description = \" It's made of paper.\";\n }",
"public ProjectFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"Project findProjectById(String projectId);",
"private static IProject createBaseProject(String projectName, URI location) {\n // it is acceptable to use the ResourcesPlugin class\n IProject newProject = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);\n \n if (!newProject.exists()) {\n URI projectLocation = location;\n IProjectDescription desc = newProject.getWorkspace().newProjectDescription(newProject.getName());\n if (location != null && ResourcesPlugin.getWorkspace().getRoot().getLocationURI().equals(location)) {\n projectLocation = null;\n }\n \n desc.setLocationURI(projectLocation);\n try {\n newProject.create(desc, null);\n if (!newProject.isOpen()) {\n newProject.open(null);\n }\n } catch (CoreException e) {\n e.printStackTrace();\n }\n }\n \n return newProject;\n }",
"public Project(String name){\n\t\tthis.pName = name;\n\t}",
"public Project(String name, String description){\n this.name = name;\n this.description = description; \n }",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"public Project(Long projectId) {\n this.id = projectId;\n this.groups = new HashSet<>();\n this.nextGroupId = 0L;\n this.symbols = new HashSet<>();\n this.nextSymbolId = 1L;\n\n this.userId = 0L;\n this.mirrorUrls = \"\";\n }",
"public static Project exampleProject() throws ParseException {\n Person willem = new Person(\"Contractor\", \"Willem du Plessis\", \"074 856 4561\", \"[email protected]\",\n \"452 Tugela Avenue\");\n Person rene = new Person(\"Architect\", \"Rene Malan\", \"074 856 4561\", \"rene@malan\", \"452 Tugela Avenue\");\n Person tish = new Person(\"Client\", \"Tish du Plessis\", \"074 856 4561\", \"[email protected]\", \"452 Tugela Avenue\");\n Date deadline = dateformat.parse(\"30/03/2021\");\n Project housePlessis = new Project(789, \"House Plessis\", \"House\", \"102 Jasper Avenue\", \"1025\", 20000, 5000,\n deadline, willem, rene, tish);\n ProjectList.add(housePlessis);\n\n return housePlessis;\n }",
"public Project getProject() {\n\t\treturn project;\n\t}",
"@Deprecated\n public ProjectBean getProject(Object proj) {\n Project project;\n ProjectBean newProjectBean;\n // System.out.println(proj);\n // System.out.println(this.projectMap);\n\n if (proj instanceof Project) {\n project = (Project) proj;\n newProjectBean = this.createProjectBean(project);\n this.projectMap.put(newProjectBean.getId(), newProjectBean);\n } else {\n if (this.projectMap.get((String) proj) != null) {\n\n newProjectBean = this.projectMap.get(proj);\n } else {\n project = this.getOpenBisClient().getProjectByIdentifier((String) proj);\n newProjectBean = this.createProjectBean(project);\n this.projectMap.put(newProjectBean.getId(), newProjectBean);\n }\n }\n return newProjectBean;\n }",
"public static ProjectTeam createSampleProjectTeam() {\n ProjectTeam team = new ProjectTeam();\n team.setProjectName(\"Rule the Galaxy\");\n team.addMember(new ProjectMember(\n \"Emperor Palpatine\", \"lead\", \"[email protected]\"));\n team.addMember(new ProjectMember(\n \"Lord Darth Vader\", \"Jedi-Killer\", \"[email protected]\"));\n team.addMember(new ProjectMember(\n \"Grand Moff Tarkin\", \"Planet-Killer\", \"[email protected]\"));\n team.addMember(new ProjectMember(\n \"Admiral Motti\", \"Death Star operations\", \"[email protected]\"));\n return team;\n }",
"public ProjectDto(Project project){\n this.id = project.getId();\n this.name = project.getName();\n this.company = new CompanyDto(project.getCompany());\n this.start_date = project.getStart_date();\n this.status = project.getStatus();\n }",
"public IProject getProject() {\n\treturn this.project;\n }",
"public Project(String name) {\r\n\t\tsuper(name);\r\n\t\tthis.opened = true;\r\n\t\tthis.projectFile = null;\r\n\t}",
"public Project getProject(){\n\t\treturn this.project;\n\t}",
"public static ProjectsFragment newInstance() {\n ProjectsFragment fragment = new ProjectsFragment();\n// Bundle args = new Bundle();\n// fragment.setArguments(args);\n return fragment;\n }",
"public Project getProject()\n\t{\n\t\treturn this.project;\n\t}",
"public FlexoProject getProject() {\n \t\treturn findCurrentProject();\n \t}",
"public Project getProjectById(String id) {\n\t\tSQLiteQueryBuilder q = new SQLiteQueryBuilder();\n\t\tq.setTables(Constants.TABLE_PROJECTS);\n\n\t\tCursor cursor = q.query(database, null, Constants.COLUMN_ID + \" = ?\", new String[] { id }, null, null, null);\n\t\tcursor.moveToFirst();\n\n\t\tif (cursor.getCount() > 0)\n\t\t\treturn new Project(cursor);\n\t\telse\n\t\t\treturn null;\n\t}",
"public jkt.hrms.masters.business.MstrProject getProject () {\n\t\treturn project;\n\t}",
"public static IProject createProject(String projectName, URI location) {\n \n IProject project = createBaseProject(projectName, location);\n try {\n addNature(project);\n String[] paths = {CLASSES_FOLDER};\n addToProjectStructure(project,paths);\n addProjectFiles(project);\n } catch (CoreException e) {\n e.printStackTrace();\n project = null;\n }\n \n return project;\n }",
"Project findProjectById(Long projectId);",
"public static void newProject() {\n\n //create the arena representation\n //populateBlocks();\n //populateSensors();\n }",
"public Project getProject(int projectId) throws EmployeeManagementException;",
"public Project findProjectById(String projectId) {\n\t\tProject project = null;\r\n\t\tString query = \"SELECT FROM TA_PROJECTS WHERE PROJECT_ID='\" + projectId + \"'\";\r\n\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(query);\r\n\t\twhile(srs.next()){\r\n\t\t\tproject = new Project();\r\n\t\t\tproject.setProjectID(srs.getString(1));\r\n\t\t\tproject.setProjectName(srs.getString(2));\r\n\t\t\tproject.setManagerID(srs.getString(3));\r\n\t\t}\r\n\t\treturn project;\r\n\t}",
"private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }",
"public ApiProject() {\n super();\n }",
"public PanelNewProject getNewProject(){\n return nuevoProyecto;\n }",
"public abstract ProjectBean getSystemProject();",
"public static FavoriteProject createEntity(EntityManager em) {\n FavoriteProject favoriteProject = new FavoriteProject()\n .user(DEFAULT_USER)\n .project(DEFAULT_PROJECT);\n return favoriteProject;\n }",
"@RequestMapping(value = \"/create/project/{projectId}\", method = RequestMethod.GET)\r\n public ModelAndView create(@PathVariable(\"projectId\") String projectId) {\r\n ModelAndView mav = new ModelAndView(\"creates2\");\r\n int pid = -1;\r\n try {\r\n pid = Integer.parseInt(projectId);\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n Project project = hibernateTemplate.get(Project.class, pid);\r\n if (!dataAccessService.isProjectAvailableToUser(project, user)) {\r\n return accessdenied();\r\n }\r\n List<SubProject> subProjects = dataAccessService.getResearcherSubProjectsForUserInProject(user, project);\r\n mav.addObject(\"projectId\", projectId);\r\n mav.addObject(\"methods\", project.getMethods());\r\n mav.addObject(\"subProjects\", subProjects);\r\n return mav;\r\n }",
"@Override\n\tpublic Project getProjectByName(String name) {\n\t\treturn projectDao.getProjectByName(name);\n\t}",
"public org.eclipse.core.resources.IProject getProject() {\n \t\treturn project;\n \t}",
"@Deprecated\n ProjectBean createProjectBean(Project project) {\n\n ProjectBean newProjectBean = new ProjectBean();\n\n List<Experiment> experiments =\n this.getOpenBisClient().getExperimentsOfProjectByIdentifier(project.getIdentifier());\n\n ProgressBar progressBar = new ProgressBar();\n progressBar.setValue(this.getOpenBisClient().computeProjectStatus(project));\n\n Date registrationDate = project.getRegistrationDetails().getRegistrationDate();\n\n newProjectBean.setId(project.getIdentifier());\n newProjectBean.setCode(project.getCode());\n String desc = project.getDescription();\n if (desc == null)\n desc = \"\";\n newProjectBean.setDescription(desc);\n newProjectBean.setRegistrationDate(registrationDate);\n newProjectBean.setProgress(progressBar);\n newProjectBean.setRegistrator(project.getRegistrationDetails().getUserId());\n newProjectBean.setContact(project.getRegistrationDetails().getUserEmail());\n\n BeanItemContainer<ExperimentBean> experimentBeans =\n new BeanItemContainer<ExperimentBean>(ExperimentBean.class);\n\n List<String> experiment_identifiers = new ArrayList<String>();\n\n for (Experiment experiment : experiments) {\n experimentBeans.addBean(this.getExperiment(experiment));\n experiment_identifiers.add(experiment.getIdentifier());\n }\n List<DataSet> datasets = (experiment_identifiers.size() > 0)\n ? getOpenBisClient().getFacade().listDataSetsForExperiments(experiment_identifiers)\n : new ArrayList<DataSet>();\n newProjectBean.setContainsData(datasets.size() != 0);\n\n newProjectBean.setExperiments(experimentBeans);\n newProjectBean.setMembers(this.getOpenBisClient().getSpaceMembers(project.getSpaceCode()));\n\n return newProjectBean;\n }",
"@Override\n\tpublic Project getProjectById(int id) {\n\t\treturn null;\n\t}",
"public ProjectModel getCurrentProject() {\n if (projects.size() > 0) {\n return projects.get(0);\n }\n else return null;\n }",
"public static Project createProject() throws ParseException {\n System.out.println(\"Please enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the project name: \");\n String projName = input.nextLine();\n\n System.out.println(\"Please enter the type of building: \");\n String buildingType = input.nextLine();\n\n System.out.println(\"Please enter the physical address for the project: \");\n String address = input.nextLine();\n\n System.out.println(\"Please enter the ERF number: \");\n String erfNum = input.nextLine();\n\n System.out.println(\"Please enter the total fee for the project: \");\n int totalFee = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the total amount paid to date: \");\n int amountPaid = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the deadline for the project (dd/MM/yyyy): \");\n String sdeadline = input.nextLine();\n Date deadline = dateformat.parse(sdeadline);\n\n Person architect = createPerson(\"architect\", input);\n Person contractor = createPerson(\"contractor\", input);\n Person client = createPerson(\"client\", input);\n\n // If the user did not enter a name for the project, then the program will\n // concatenate the building type and the client's surname as the new project\n // name.\n\n if (projName == \"\") {\n String[] clientname = client.name.split(\" \");\n String lastname = clientname[clientname.length - 1];\n projName = buildingType + \" \" + lastname;\n }\n\n return new Project(projNum, projName, buildingType, address, erfNum, totalFee, amountPaid, deadline, contractor,\n architect, client);\n\n }",
"public ProjectFile getProject()\r\n {\r\n return m_project;\r\n }",
"private Project getProject(ModelInfo<Project> info) {\n return data.get(info);\n }",
"public static Project get(String name, Output<String> id, @Nullable ProjectState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new Project(name, id, state, options);\n }",
"ProjectDTO findProjectById(Long id);",
"@Override\n\tpublic Project getProjectById(int id) {\n\t\treturn projectDao.getProjectById(id);\n\t}",
"HibProject getProject(InternalActionContext ac);",
"ProjectRepresentation getWorkingProject();",
"public void createProject(String name) {\n Project project = new Project(name);\n Leader leader = new Leader(this, project);\n project.addLeader(leader);\n }",
"public ProjectsList getProjects() {\n return projects.clone();\n }",
"@ManyToOne(optional = false)\n @JsonIgnore\n public Project getProject() {\n return project;\n }",
"public Long createProject(ProjectTo projectTo) {\n\t\tprojectTo = new ProjectTo();\n\t\tprojectTo.setOrg_id(1L);\n\t\tprojectTo.setOrg_name(\"AP\");\n\t\tprojectTo.setName(\"Menlo\");\n\t\tprojectTo.setShort_name(\"Pioneer Towers\");\n\t\tprojectTo.setOwner_username(\"Madhapur\");\n\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(userOptixURL + \"CreateProject\");\n\t\t\tprojectTo = webResource.type(MediaType.APPLICATION_JSON).post(ProjectTo.class, projectTo);\n\t\t\tif(projectTo != null && projectTo.getProject_id() != null) {\n\t\t\t\treturn projectTo.getProject_id() ;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in getting the response from REST call CreateProject : \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public Project getProjectWithEmployee(int projectId) throws EmployeeManagementException;",
"public TeamProject getProject(\r\n final String projectId, \r\n final Boolean includeCapabilities, \r\n final Boolean includeHistory) {\r\n\r\n final UUID locationId = UUID.fromString(\"603fe2ac-9723-48b9-88ad-09305aa6c6e1\"); //$NON-NLS-1$\r\n final ApiResourceVersion apiVersion = new ApiResourceVersion(\"2.1\"); //$NON-NLS-1$\r\n\r\n final Map<String, Object> routeValues = new HashMap<String, Object>();\r\n routeValues.put(\"projectId\", projectId); //$NON-NLS-1$\r\n\r\n final NameValueCollection queryParameters = new NameValueCollection();\r\n queryParameters.addIfNotNull(\"includeCapabilities\", includeCapabilities); //$NON-NLS-1$\r\n queryParameters.addIfNotNull(\"includeHistory\", includeHistory); //$NON-NLS-1$\r\n\r\n final Object httpRequest = super.createRequest(HttpMethod.GET,\r\n locationId,\r\n routeValues,\r\n apiVersion,\r\n queryParameters,\r\n APPLICATION_JSON_TYPE);\r\n\r\n return super.sendRequest(httpRequest, TeamProject.class);\r\n }",
"public ProjectsPage() {\n\t\tthis.driver = DriverManager.getDriver();\n\t\tElementFactory.initElements(driver, this);\n\t\t// sets the name of the project to add, with a random integer ending for slight\n\t\t// ease on multiple test runs\n\t\tnameOfProject = \"testz2018\" + (int) Math.random() * 500;\n\t}",
"public Project getTasks(String projectId) {\n try {\n\n String selectProject = \"select * from PROJECTS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectProject);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String startdate = rs.getString(\"STARTDATE\");\n String invoicesent = rs.getString(\"INVOICESENT\");\n String hours = rs.getString(\"HOURS\");\n String client = \"\";\n String duedate = rs.getString(\"DUEDATE\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(client, description, projectId,\n duedate, startdate, hours, duedate, duedate,\n invoicesent, invoicesent);\n rs.close();\n ps.close();\n return p;\n } else {\n return null;\n }\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }",
"protected Project getProject() {\n return getConfiguration().getProject();\n }",
"public void getProject(){\n\t\n\t String getList[] = clientFacade.GetProjects().split(\"\\n\");\n\t DefaultComboBoxModel addPro = new DefaultComboBoxModel();\n\t\tfor(int i=1; i<getList.length; i+=2) \n\t\t\t addPro.addElement(getList[i]);\n\t\t\t \n\t\tcPro.setModel(addPro);\t\n\t}",
"Project findProjectByIdAndConvert(String projectId);",
"public void setProject(org.eclipse.core.resources.IProject newProject) {\n \t\tproject = newProject;\n \t}",
"public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }"
] | [
"0.7584945",
"0.7551854",
"0.7549684",
"0.75401187",
"0.74671805",
"0.7432529",
"0.7270543",
"0.71195436",
"0.71105796",
"0.70749086",
"0.70686734",
"0.7064501",
"0.7064501",
"0.7017828",
"0.698956",
"0.6983459",
"0.69682777",
"0.6962118",
"0.695292",
"0.69281733",
"0.6908292",
"0.6908247",
"0.6850521",
"0.67775667",
"0.675675",
"0.6753827",
"0.6752735",
"0.67388725",
"0.6728009",
"0.6726459",
"0.67241806",
"0.6706398",
"0.6700271",
"0.66827804",
"0.66752595",
"0.66721916",
"0.6651068",
"0.663622",
"0.6635673",
"0.6635673",
"0.6576781",
"0.6553004",
"0.65197885",
"0.64909273",
"0.64692426",
"0.64620686",
"0.6413021",
"0.64080286",
"0.6404347",
"0.6389118",
"0.6381736",
"0.6360625",
"0.6359877",
"0.6356617",
"0.6337588",
"0.63240844",
"0.6305229",
"0.6301587",
"0.6297352",
"0.6283826",
"0.6267107",
"0.6265382",
"0.6252845",
"0.62470335",
"0.6244694",
"0.6223397",
"0.6200594",
"0.6194443",
"0.61650646",
"0.6137253",
"0.61224645",
"0.61180454",
"0.6098953",
"0.60920453",
"0.6089398",
"0.6079728",
"0.6072001",
"0.6057282",
"0.6040572",
"0.60331815",
"0.6023497",
"0.6014232",
"0.6012935",
"0.6012761",
"0.60127026",
"0.60041964",
"0.59685636",
"0.59601736",
"0.59476596",
"0.59450865",
"0.594275",
"0.5906629",
"0.5893368",
"0.5888586",
"0.588694",
"0.58859295",
"0.58804613",
"0.58535665"
] | 0.79533494 | 2 |
Returns a new object of class 'Student'. | Student createStudent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Student getRandomStudentObject() {\n return new Student(\"Abc\", \"99\", \"10th\");\n }",
"public Student(){}",
"public Student() {\n \n }",
"public Student() {\n }",
"public Student() {\n }",
"public Student() {\n }",
"private Student createStudent(Element studentNode) {\n String serialNumber = studentNode.getAttribute(\"serialNumber\");\n Student b = new Student();\n b.setSerialNumber(serialNumber);\n\n b.setName(getTextFromTagName(studentNode, \"name\"));\n b.setGroup(Integer.valueOf(getTextFromTagName(studentNode, \"group\")));\n b.setId(Long.valueOf(getTextFromTagName(studentNode, \"id\")));\n\n return b;\n }",
"public Student() {\r\n }",
"Student(String name){\n this.name = name;\n }",
"public Student build() { \n\t return new Student(this); \n\t }",
"public Student(String name) {\n this.name = name;\n }",
"public Student(String name) {\n\n this.name = name;\n }",
"public Student( String name ) {\n sname=name;\n }",
"public Student(String studentId){\n id = studentId;\n }",
"public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp = \"\";\n id = 42;\n grade = 1.0;\n }",
"public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }",
"public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }",
"public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}",
"public Student(String studentID) {\r\n\t\tthis.studentID = studentID;\r\n\t}",
"Student(int i, String n) {\n id = i;\n name = n;\n }",
"Student getStudentById(Long id);",
"public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }",
"public Student(String name) { // constructor\n\t\tthis.name = name; \n\t}",
"public StudentRecord() {}",
"Student() {\n // Set all to \"undefined\"/0, but assign unique student ID\n this.firstName = \"Undefined\";\n this.lastName = \"Undefined\";\n this.grade = 0;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }",
"public StudentDemo(){\r\n \r\n \r\n \r\n }",
"public Student(int studentId) \r\n {\r\n\r\n this.studentId = studentId;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }",
"Student4(int i, String n) {\n id = i;\n name = n;\n\n }",
"Student get(long id);",
"public Student(int studentId, String studentName, String studentMajor) \r\n {\r\n\r\n setId(studentId);\r\n setName(studentName);\r\n setMajor(studentMajor);\r\n\r\n }",
"public static void testStudent() {\n Student test = new Student(-1930026144, \"Simon\");\r\n // test the id number\r\n System.out.println(test.getID() == 0);\r\n System.out.println(test.getName() == \"Simon\");\r\n // reset a name\r\n test.setName(\"John\");\r\n // test the new name\r\n System.out.println(test.getName() == \"John\");\r\n // set a grade\r\n test.setGrade('A');\r\n System.out.println(test.getGrade() == 'A');\r\n }",
"public ArrayList makeStudentList() {\r\n ArrayList<String> studenter = new ArrayList();\r\n Student student = new Student();\r\n \r\n \r\n \r\n return studenter;\r\n}",
"public Student build() {\n return mStudent;\n }",
"public Student getStudent() {\n return student; //XXX-CHANGE-XXX\n }",
"public Student insertStudent() {\n\t\tSystem.out.print(\"\\n--- 학생 정보 등록 ---\\n\");\n\t\tSystem.out.print(\"학생 이름 입력 \");\n\t\tString name = sc.next();\n\t\tSystem.out.print(\"학생 나이 입력 \");\n\t\tint age = sc.nextInt();\n\t\tSystem.out.print(\"학생 주소 입력 \");\n\t\tString addr= sc.next();\n\t\tStudent st = new Student(name, age, addr);\n\t\treturn st;\n\t}",
"public Student(int id) {\n\t\tthis.id = id;\n\t}",
"void create(Student entity);",
"public Student getStudent() { return student; }",
"public Student getStudent() {\n return student;\n }",
"public E returnStudent(String studentID){}",
"public Student(String name, String gender, String email){\n this.name = name;\n this.gender = gender;\n this.email = email;\n this.course1 = new Course();\n this.course2 = new Course();\n this.course3 = new Course();\n }",
"Student(String name) {\n\t\tthis.name = name;\n\t\tregisteredCourses = new Course[30];\n\t}",
"public Student()\r\n {\r\n //This is intended to be empty\r\n }",
"public static DAO getStudentDAO() {\n return new StudentDAO(entityManager, Student.class);\n }",
"public TeamStudent() {\r\n\t\t// Default constructor\r\n\t}",
"@Bean\n\tpublic Student getStudent() {\n\t\treturn new Student(getSamosa());\n\t}",
"Student findById(String id);",
"Student(String firstName, String lastName, int grade) {\n // Standard constructor assignments\n this.firstName = firstName;\n this.lastName = lastName;\n this.grade = grade;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }",
"public Student (String first, String last, String id)\r\n\t{\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.studentId = id;\r\n\t}",
"public Student convertStudentRowToStudent(ResultSet myResultSet) throws SQLException {\n String firstName = myResultSet.getString(\"firstName\");\n String lastName = myResultSet.getString(\"lastName\");\n String bcsYear = myResultSet.getString(\"bcsYear\");\n String email = myResultSet.getString(\"email\");\n\n Student student = new Student(firstName, lastName, bcsYear, email);\n\n return student;\n }",
"public Student(int studentID, String firstName, String lastName) {\n this.studentID = studentID;\n this.firstName = firstName;\n this.lastName = lastName;\n }",
"public static final Account createDefaultStudentAccount() {\n Name name = new Name(\"Bob\");\n Credential credential = new Credential(\"student\", \"student\");\n MatricNumber matricNumber = new MatricNumber(\"A0123456X\");\n PrivilegeLevel privilegeLevel = new PrivilegeLevel(1);\n Account student = new Account(name, credential, matricNumber, privilegeLevel);\n return student;\n }",
"public Student(int id, String name, String course) {\n this.id = id;\n this.name = name;\n this.course = course;\n }",
"Student4(int i, String n, int t) {\n id = i;\n name = n;\n age = t;\n\n }",
"public Student(String name, int studentId) {\n this.name = name;\n this.studentId = studentId;\n this.numberOfCredits = 0;\n this.gpa = 0.0;\n }",
"public Student getStudent() {\r\n\t\treturn student;\r\n\t}",
"public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}",
"public static Student getStudent(String studentId) {\n\t\tStudent student = new Student();\n\n\t\ttry {\n\t\t\tClass.forName(driverName);\n\n\t\t\tConnection con = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:hive://localhost:10000/default\", \"\", \"\");\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tString tableName = \"eclsk\";\n\n\t\t\t// select * query\n\t\t\tString sql = \"select * from \" + tableName\n\t\t\t\t\t+ \" where childid = '\" + studentId + \"'\";\n\t\t\t\n\t\t\tLogger.log(\"Running: \" + sql);\n\t\t\t\n\t\t\tResultSet res = stmt.executeQuery(sql);\n\t\t\twhile (res.next()) {\n\t\t\t\tpopulateRecord(student, res);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn student;\n\t}",
"public Student() {\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter Student first name: \");\r\n\t\tthis.firstName=in.nextLine();\r\n\t\tSystem.out.print(\"Enter Student last name: \");\r\n\t\tthis.lastName=in.nextLine();\r\n\t\tSystem.out.print(\"1.Infant\\n2.child\\n3.junior\\n4.senior\\nEnter student class level: \");\r\n\t\tthis.gradeYear=in.nextInt();\r\n\t\r\n\t\tsetStudentId();\r\n\t\t\r\n\t\t\r\n\t}",
"public Student(int userId, String firstName, String lastName, String email, String password, int schoolId)\n {\n super(firstName, lastName, email, password, schoolId);\n this.setUserId(userId);\n this.setFirstName(firstName);\n this.setLastName(lastName);\n this.setEmail(email);\n this.setPassword(password);\n this.setSchoolId(schoolId);\n }",
"public Student(String name, String SSN) {\n this.name = name;\n this.SSN = SSN;\n System.out.println(\"Student: \" + name + \", email: \" + generateEmail(name) + \", ID: \" + generateID(SSN));\n }",
"public Student(String name) {\n this.nameProp.set(name);\n }",
"public Student getStudent(String theStudentId)throws Exception {\n\t\tStudent theStudent=null;\n\t\tConnection conn=null;\n\t\tPreparedStatement myStmt=null;\n\t\tResultSet myRs=null;\n\t\tint studentId;\n\t\ttry{\n\t\t\t// convert student id to int\n\t\t\tstudentId=Integer.parseInt(theStudentId);\n\t\t\t//get connection to database\n\t\t\tconn=dataSource.getConnection();\n\t\t\t//create sql to get selected student\n\t\t\tString sql=\"select * from student where id=?\";\n\t\t\t//create prepared statement\n\t\t\tmyStmt=conn.prepareStatement(sql);\n\t\t\t// set parameters\n\t\t\tmyStmt.setInt(1, studentId);\n\t\t\t//execute statement\n\t\t\tmyRs=myStmt.executeQuery();\n\t\t\t//retrieve data from result set row\n\t\t\tif(myRs.next()) {\n\t\t\t\tString firstName=myRs.getString(\"first_name\");\n\t\t\t\tString lastName=myRs.getString(\"last_name\");\n\t\t\t\tString email=myRs.getString(\"email\");\n\t\t\t\ttheStudent=new Student(studentId,firstName,lastName,email);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Could'nt find the student id:\"+ studentId);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tclose(conn,myStmt,myRs);\n\t\t}\n\t\treturn theStudent;\n\t}",
"public Student() { //Default Constructor\n\t\tthis.roll_no=0;\n\t\tthis.full_name=\"\";\n\t\tthis.grade=\"\";\n\t}",
"public Student retrieveStudentObject(String studentID) {\r\n\t\tStudent studentToRetrieve = null;\r\n\t\tStudent student = new Student();\r\n\r\n\t\ttry {\r\n\t\t\tList<Student> listOfStudents = student.retrieveAllStudentObjects();\r\n\r\n\t\t\tfor (int i = 0; i < listOfStudents.size(); i++) {\r\n\t\t\t\tif (listOfStudents.get(i).getStudentID().equals(studentID)) {\r\n\t\t\t\t\tstudentToRetrieve = listOfStudents.get(i);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (studentToRetrieve == null) {\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn studentToRetrieve;\r\n\t}",
"public void createStudent(String name, String ID){}",
"@Override\n protected Student initialValue() {\n return new Student();\n }",
"public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalArgumentException, InvocationTargetException, CloneNotSupportedException {\n\t\tStudent st = new Student();\n\t\tst.setName(\"Madan\");\n\t\t\n\t\t//2 Using new instance method of class\n\t\tStudent st1 = (Student) Class.forName(\"com.home.Student\").newInstance();\n\t\tst1.setName(\"Mohan\");\n\t\t\n\t\t\n\t\t//3 using new instance of constructor\n\t\tConstructor<Student> cs = Student.class.getConstructor();\t\t\n\t\tStudent st2 = cs.newInstance();\n\t\tst2.setName(\"Nautiyal\");\n\t\t\n\t\t//4 using clone method\n\t\tStudent st3 = (Student) st.clone();\n\t\t\n\t\t\n\t\tSystem.out.println(\"Object 1 \" + st.getName());\n\t\tSystem.out.println(\"Object 2 \"+ st1.getName());\n\t\tSystem.out.println(\"Object 3 \"+st2.getName());\n\t\tSystem.out.println(\"Object 4 \"+st3.getName());\n\n\t\t\n\t}",
"public interface Student {\n}",
"private Student addStudent(String name, ArrayList<String> studentBranch) {\n\t\treturn new Student(name, studentBranch);\n\t}",
"@Override\r\n\tpublic Student clone() \r\n\t{\n\t\ttry {\r\n\t\t\treturn (Student)super.clone();\r\n\t\t}\r\n\t\tcatch (CloneNotSupportedException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"@Override\n public Student get(int SID) throws Exception {\n ResultSet rst = CrudUtil.executeQuery(\"Select * From Student where SID = ?\", SID);\n if (rst.next())\n return new Student(\n rst.getInt(\"SID\"),\n rst.getString(\"sName\"),\n rst.getBoolean(\"gender\"),\n rst.getDate(\"DOB\"),\n rst.getString(\"class\"),\n rst.getString(\"father_name\"),\n rst.getString(\"mother_name\"),\n rst.getString(\"note\"),\n rst.getInt(\"house\"),\n rst.getString(\"address\"),\n rst.getBoolean(\"quit\"),\n rst.getInt(\"BCID\")\n );\n return null;\n }",
"Student(String name, double cgpa, int token){\n this.name=name;\n this.cgpa=cgpa;\n this.token=token;\n }",
"public void setStudent(Student s) {\r\n student = s;\r\n }",
"@Override\n\t\t\tpublic Student executor(Object... parameters) {\n\t\t\t\tStudent s=new Student();\n\t\t\t\ts.setId(Integer.parseInt(parameters[0].toString()));\n\t\t\t\ts.setName(parameters[1].toString());\n\t\t\t\treturn s;\n\t\t\t}",
"public Student getStudent() {\n\t\treturn student;\n\t}",
"public student getstudent(Integer id);",
"public Student() {\n\t\tthis.firstName = \"no name entered\";\n\t\tthis.lastName = \"no name entered\";\n\t\tthis.wId = \"no WID\";\n\t\tthis.labScore = 0;\n\t\tthis.projScore = 0;\n\t\tthis.examScore = 0;\n\t\tthis.codeLabScore = 0;\n\t\tthis.finalExamScore = 0;\n\t\tthis.scorePercent = 0;\n\t}",
"public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }",
"public Student(String name, String gender,String rollNumber,String mobileNumber){\n this.name = name;\n this.gender = gender;\n this.rollNumber = rollNumber;\n this.mobileNumber = mobileNumber;\n }",
"public Student(String fullName,Student_Status stStatus)\n {\n this.fullName = fullName;\n this.stStatus = stStatus;\n }",
"public Student(\n int userId, String firstName, String lastName, String email, String password, int\n schoolId,\n double gpa)\n {\n super(firstName, lastName, email, password, schoolId);\n this.setUserId(userId);\n this.setFirstName(firstName);\n this.setLastName(lastName);\n this.setEmail(email);\n this.setPassword(password);\n this.setSchoolId(schoolId);\n this.setGpa(gpa);\n }",
"@Override\r\n\tpublic Student getStudentById(Long id) {\n\t\treturn studentRepository.findById(id).get();\r\n\t}",
"public Student(String firstName, String lastName, int age, double gpa, String major, String department, List<Course> courses) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.age = age;\n this.gpa = gpa;\n this.major = major;\n this.department = department;\n this.courses = courses;\n }",
"public Student setStudentName(String studentName) {\n this.studentName = studentName;\n return this;\n }",
"private static Student[] makeStudents() {\n\t\treturn null;\n\t}",
"@Bean(initMethod=\"initMethod\",destroyMethod=\"destroyMethod\")\r\n\tpublic Student getStudent() {\n\t\treturn new Student();\r\n\r\n\t}",
"List<Student> getStudent();",
"public Student ( int rollno, String name, String course ) {\n\t\tthis.rollno = rollno;\n\t\tthis.name = name;\n\t\tthis.course = course;\n\t}",
"public Student(int id, String firstName, String middleName, String lastName, String email, String ssn, int age,\n\t\t\tString major) {\n\n\t\tsuper(id, firstName, middleName, lastName, email, ssn, age);\n\t\tthis.major = major;\n\t}",
"public Student findStudent(int id);",
"public static void main(String args[]){\n Student Student1 = new Student (\"Josh\", 80);\n System.out.println(Student1.getGrade());\nSystem.out.println(Student1);\n }",
"public Student findById(int theStudent_id);",
"@Override\n\tpublic StudentDao GetStudentInstance() throws Exception {\n\t\treturn null;\n\t}",
"@Override\r\n\t\tpublic student mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\tstudent stud = new student();\r\n\t\t\tstud.setid(rs.getInt(\"id\"));\r\n\t\t\tstud.setName(rs.getString(\"name\"));\r\n\t\t\treturn stud;\r\n\t\t}",
"@Override\n\tpublic Student getStudent(int id) {\n\t\treturn null;\n\t}",
"public StudentAthlete() {\n }",
"public Student getModel() {\n\t\treturn student;\n\t}",
"abstract public void getStudent();",
"public Student(String id, String firstName, String lastName, String email, String username, String password) {\n super(id, firstName, lastName, email, username, password, \"student\");\n }"
] | [
"0.76032346",
"0.7406106",
"0.71950287",
"0.71757096",
"0.71757096",
"0.71757096",
"0.7167949",
"0.71571535",
"0.7027916",
"0.69447076",
"0.69348747",
"0.68708336",
"0.6861685",
"0.67898476",
"0.6741306",
"0.67233807",
"0.67154056",
"0.66852874",
"0.66752714",
"0.66452146",
"0.6632756",
"0.66165024",
"0.66133034",
"0.6579308",
"0.65613693",
"0.6555646",
"0.65308696",
"0.6516333",
"0.6505292",
"0.64723116",
"0.6461778",
"0.6452621",
"0.64345604",
"0.64329845",
"0.6421394",
"0.641514",
"0.6408345",
"0.6391479",
"0.6389777",
"0.63838375",
"0.63623655",
"0.635222",
"0.6330254",
"0.6324875",
"0.62912",
"0.62906903",
"0.62852526",
"0.62757754",
"0.62576646",
"0.6255111",
"0.622237",
"0.6217832",
"0.6212149",
"0.61997205",
"0.6198828",
"0.61933285",
"0.61889356",
"0.6187276",
"0.6183329",
"0.6168963",
"0.6154447",
"0.6131198",
"0.6127038",
"0.61154336",
"0.6113523",
"0.6112455",
"0.6105252",
"0.6102351",
"0.60986936",
"0.6094833",
"0.6079209",
"0.60783696",
"0.6066998",
"0.6062168",
"0.6057596",
"0.60539377",
"0.605283",
"0.6035074",
"0.60340625",
"0.6030767",
"0.6029382",
"0.60214686",
"0.6006517",
"0.5991754",
"0.5982524",
"0.5982472",
"0.5974403",
"0.59559274",
"0.59489334",
"0.5944684",
"0.5940963",
"0.5938298",
"0.59367985",
"0.5934808",
"0.5929797",
"0.5927344",
"0.591528",
"0.5915066",
"0.59131074",
"0.59065586"
] | 0.78052455 | 0 |
Returns the package supported by this factory. | AliciaTest5Package getAliciaTest5Package(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PackageType getRequiredPackage();",
"public PackageNode getPackage();",
"java.lang.String getPackage();",
"public String getPackageName();",
"public String getPackageName() {\n return pkg;\n }",
"String getPackageName();",
"public DsByteString getPackage() {\n return m_strPackage;\n }",
"java.lang.String getPackageName();",
"public String getPackageName() {\n\t\treturn pkgField.getText();\n\t}",
"private static String getPackage() {\n\t\tPackage pkg = EnergyNet.class.getPackage();\n\n\t\tif (pkg != null) {\n\t\t\tString packageName = pkg.getName();\n\n\t\t\treturn packageName.substring(0, packageName.length() - \".api.energy\".length());\n\t\t}\n\n\t\treturn \"ic2\";\n\t}",
"io.deniffel.dsl.useCase.useCase.Package getPackage();",
"public String getPackageInfomartion() {\n\t\treturn packageInfomartion;\n\t}",
"protected abstract String getPackageName();",
"default String getPackageName() {\n return declaringType().getPackageName();\n }",
"public String getPackageName() {\n return packageName.get();\n }",
"String getPackager();",
"public Short getPackageType() {\n\t\treturn packageType;\n\t}",
"public static String getPackageName() {\n return CELibHelper.sPackageName;\n }",
"String getPackage() {\n return mPackage;\n }",
"public String getBasePackage() {\n\t\treturn this.basePackage;\n\t}",
"String pkg();",
"public static String getPackageName() {\n return mPackageName;\n }",
"public String getAppPackage() {\n\t\treturn fnh.getOutputAppPackage();\n\t}",
"public abstract String getTargetPackage();",
"public abstract String getTargetPackage();",
"public java.lang.Boolean getServicePackageInfoSupported() {\r\n return servicePackageInfoSupported;\r\n }",
"EisPackage getEisPackage();",
"private String getPkgName () {\n return context.getPackageName();\n }",
"@NonNull\n RepoPackage getPackage();",
"public UMLPackageBean getPackage() {\n return umlPkg;\n }",
"public String getPackagedJava();",
"public String getPackageName() {\n return packageName;\n }",
"public String getPackageName() {\n return packageName;\n }",
"PiviPackage getPiviPackage();",
"public Package.Builder getBuilder() {\n return pkgBuilder;\n }",
"public String getPackageName() {\n\t\treturn this.PackageName;\n\t}",
"public String getPackaging();",
"public String getPackageName() {\n\t\treturn packageName;\n\t}",
"public String getPackage() {\n return carrierPackage;\n }",
"public abstract String packageName();",
"PackageConfiguration getPackageConfiguration();",
"protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }",
"public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }",
"public PersistedBmmPackage getPackage(String packageName) {\n return packages.get(packageName.toUpperCase());\n }",
"public abstract String getAndroidPackage();",
"NfrPackage getNfrPackage();",
"@NonNull\n public String getPackageName() {\n return mPackageName;\n }",
"public String getBasePackage() {\n\t\treturn DataStore.getInstance().getBasePackage();\n\t}",
"public static String getBukkitPackage() {\n return Bukkit.getServer().getClass().getPackage().getName().split(\"\\\\.\")[3];\n }",
"boolean hasPackageName();",
"public String getPackageName() {\n Object ref = packageName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n }\n }",
"ApiPackage getApiPackage();",
"public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n if (lastDotIdx > 0) {\n return name.substring(0, lastDotIdx);\n } else {\n throw new CodeGenException(String.format(\"Couldn't determine package name of '%s'\", name));\n }\n }",
"public String getPackageName() {\n if (mPackageName == null) {\n try {\n mPackageName = mSessionBinder.getPackageName();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getPackageName.\", e);\n }\n }\n return mPackageName;\n }",
"public String getPackageName() {\n Object ref = packageName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"IrSpecificPackage getIrSpecificPackage();",
"public String getPackages() {\n\t\treturn this.packages;\n\t}",
"public String getPackageName() {\n return mAppEntry.info.packageName;\n }",
"com.google.protobuf.ByteString\n getPackageBytes();",
"public static String getCraftBukkitPackage() {\n \t\t// Ensure it has been initialized\n \t\tgetMinecraftPackage();\n \t\treturn CRAFTBUKKIT_PACKAGE;\n \t}",
"NgtPackage getNgtPackage();",
"public String getProductPack() {\n return (String)getAttributeInternal(PRODUCTPACK);\n }",
"public String getModelPackageStr() {\n\t\tString thepackage = getModelXMLTagValue(\"package\");\n\t\treturn thepackage != null ? thepackage + \".\" : \"\";\n\t}",
"VmPackage getVmPackage();",
"String packageName() {\n return name;\n }",
"private PackageService getPackageService() {\n\t\treturn packageService;\n\t}",
"private Package_c getPackage(final String name) {\n\t\tPackage_c communication = Package_c.PackageInstance(modelRoot,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(name);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\treturn communication;\n\t}",
"ParkingPackage getParkingPackage();",
"public int getWMCPackaged(){\r\n\t\t \r\n\t\treturn mccabe.getWMCPackage();\t\t\r\n\t}",
"private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }",
"PackageClause getPackageClause();",
"NassishneidermanPackage getNassishneidermanPackage();",
"public String getPackageDesc() {\n\t\treturn packageDesc;\n\t}",
"public String getPkgId() {\n return pkgId;\n }",
"public String getVersionsSupported();",
"public static String getMinecraftPackage() {\n \t\t// Speed things up\n \t\tif (MINECRAFT_FULL_PACKAGE != null) {\n \t\t\treturn MINECRAFT_FULL_PACKAGE;\n \t\t}\n \n \t\tfinal Server craftServer = Bukkit.getServer();\n \n \t\t// This server should have a \"getHandle\" method that we can use\n \t\tif (craftServer != null) {\n \t\t\ttry {\n \t\t\t\tfinal Class<?> craftClass = craftServer.getClass();\n \t\t\t\tfinal Method getHandle = craftClass.getMethod(\"getHandle\");\n \n \t\t\t\tfinal Class<?> returnType = getHandle.getReturnType();\n \t\t\t\tfinal String returnName = returnType.getCanonicalName();\n \n \t\t\t\t// The return type will tell us the full package, regardless of\n \t\t\t\t// formating\n \t\t\t\tCRAFTBUKKIT_PACKAGE = getPackage(craftClass.getCanonicalName());\n \t\t\t\tMINECRAFT_FULL_PACKAGE = getPackage(returnName);\n \t\t\t\treturn MINECRAFT_FULL_PACKAGE;\n \n \t\t\t} catch (final SecurityException e) {\n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\t\"Security violation. Cannot get handle method.\", e);\n \t\t\t} catch (final NoSuchMethodException e) {\n \t\t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\t\"Cannot find getHandle() method on server. Is this a modified CraftBukkit version?\",\n \t\t\t\t\t\te);\n \t\t\t}\n \n \t\t} else {\n \t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\"Could not find Bukkit. Is it running?\");\n \t\t}\n \t}",
"protected EPackage getEPackage() {\r\n return Wps10Package.eINSTANCE;\r\n }",
"CommunicationsprogramsPackage getCommunicationsprogramsPackage();",
"Shipment_Package getShipment_Package();",
"TggPackage getTggPackage();",
"List<String> getSystemPackages();",
"public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }",
"public String getSupportedVersion() {\n return supportedVersion;\n }",
"ICpPackInfo getPackInfo();",
"TypePackage getTypePackage();",
"public String getPackingType() {\n return (String)getAttributeInternal(PACKINGTYPE);\n }",
"GramaticaPackage getGramaticaPackage();",
"default String getPackageId() {\n return getIdentifier().getPackageId();\n }",
"Quality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();",
"MatchModelPackage getMatchModelPackage();",
"public String getProjectPackageName() {\n\t\treturn projectPackageName;\n\t}",
"ICpPack getPack();",
"public PackageName getRootPackageName() {\n return rootPackageName;\n }",
"public GeoPackage getGeoPackage() {\n\t\treturn this.geoPackage;\n\t}",
"ReactNativePackage getReactNativePackage();",
"HiphopsPackage getHiphopsPackage();",
"protected UMLPackage getUMLPackage() {\r\n return currentPackage;\r\n }",
"MystPackage getMystPackage();",
"public Short getPackageSeries() {\n\t\treturn packageSeries;\n\t}",
"public String getPackageId()\n {\n return packageId;\n }",
"ThingMLPackage getThingMLPackage();"
] | [
"0.7031596",
"0.6824025",
"0.6818806",
"0.6752645",
"0.67181015",
"0.6704875",
"0.6698022",
"0.6678774",
"0.6635858",
"0.6556546",
"0.65183675",
"0.6501405",
"0.6496429",
"0.6481852",
"0.6376274",
"0.63505894",
"0.6338929",
"0.63388515",
"0.6327788",
"0.6314242",
"0.63126606",
"0.6282504",
"0.6273947",
"0.625018",
"0.625018",
"0.6246106",
"0.6218379",
"0.62113875",
"0.61974704",
"0.6187816",
"0.6176801",
"0.6166096",
"0.6166096",
"0.61538076",
"0.61370236",
"0.61311126",
"0.6119505",
"0.6110087",
"0.6095738",
"0.60568917",
"0.60403836",
"0.6006883",
"0.5988912",
"0.59846574",
"0.5971428",
"0.596663",
"0.59435695",
"0.59422004",
"0.5939782",
"0.5931478",
"0.59234554",
"0.59193766",
"0.5917696",
"0.5896124",
"0.58916557",
"0.5884717",
"0.5883739",
"0.5870814",
"0.58519596",
"0.584893",
"0.58416474",
"0.584001",
"0.5839548",
"0.5827061",
"0.5818055",
"0.58170223",
"0.5803712",
"0.5787864",
"0.5782273",
"0.5762003",
"0.57582545",
"0.575813",
"0.5757836",
"0.5753817",
"0.5746635",
"0.57362497",
"0.57329035",
"0.57273763",
"0.57260066",
"0.57190484",
"0.57188034",
"0.57182175",
"0.57047856",
"0.57030493",
"0.5689773",
"0.56865156",
"0.56835216",
"0.5674978",
"0.56738055",
"0.56653726",
"0.56578237",
"0.5646589",
"0.56433535",
"0.5642557",
"0.563893",
"0.5638249",
"0.56340986",
"0.563228",
"0.56135017",
"0.5610743",
"0.5606374"
] | 0.0 | -1 |
WebDriver driver = new FirefoxDriver(); driver.get(" | @Test
public void forgot(){
driver.findElement(By.partialLinkText("Forgot")).click();
System.out.println("the forgotpage title is "+" "+driver.getTitle());
String expectedTitle = "Forgot Password | Can't Log In | Facebook";
String actualTitle = driver.getTitle();
softassert.assertEquals(actualTitle, expectedTitle);
softassert.assertAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\nWebDriver driver = new FirefoxDriver();\nSystem.out.println(\"hai\");\ndriver.get(\"https://www.google.com\");\nSystem.out.println(driver.getTitle());\ndriver.close();\n\t}",
"public static WebDriver firefox()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",System.getProperty(\"user.dir\")+\"\\\\Gecko\\\\geckodriver.exe\");\r\n\t\tgk = new FirefoxDriver();\r\n\t\treturn gk;\r\n\t}",
"@Test\n public void test(){\n\n\n FirefoxProfile profile = new FirefoxProfile();\n // profile.EnableNativeEvents = true;\n\n WebDriver driver = new FirefoxDriver(profile);\n driver.get(\"http://www.baidu.com\");\n }",
"@BeforeClass\n\tpublic void openFirefoxBrowser(){\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t//wait = new WebDriverWait(driver,5);\n\t}",
"private static WebDriver getFirefoxriver() {\n\t\treturn null;\n\t}",
"@Override\n public WebDriver getWebDriver() {\n return new FirefoxDriver();\n }",
"public static void main(String[] args) {\nSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\Users\\\\v-poori\\\\Desktop\\\\selenium\\\\geckodriver-v0.11.1-win64\\\\geckodriver.exe\");\n\tdriver = new FirefoxDriver();\n\tdriver.manage().window().maximize();\n\n\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\n\tdriver.get(\"https://www.google.co.in/\");\n\t}",
"@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}",
"@BeforeMethod\r\n public void setUp() {\n WebDriver driver = new FirefoxDriver();\r\n driver.get(\"http://selenium.polteq.com/testshop/index.php\");\r\n }",
"public static void main(String[] args) {\n\n\n WebDriver driver = WebDriverFactory.getDriver(\"CHROME\");\n driver.get(\"http://google.com\");\n driver.navigate().to(\"https://amazon.com\");\n driver.navigate().back();\n\n driver.close();\n\n WebDriver driver2 = WebDriverFactory.getDriver(\"FIREFOX\");\n driver2.get(\"https://www.mozilla.org\");\n\n\n driver2.close();\n }",
"@Test\r\n\tpublic void f()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Data_Program//Selenium_Dependencies//chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t}",
"public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}",
"@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}",
"public FirefoxDriver openBrowser(String site){\n System.setProperty(\"webdriver.gecko.driver\", \"c:\\\\Utils\\\\geckodriver.exe\");\n FirefoxDriver browser = new FirefoxDriver();\n browser.get(site);\n return browser;\n }",
"public static void main(String[] args) {\n\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\t//driver.navigate().to(\"https://www.facebook.com/\");\r\n\r\n\t}",
"@BeforeClass\r\n\tpublic void browser() {\r\n\tdriver = new FirefoxDriver();\r\n\t}",
"@Before\n public void start(){\n DesiredCapabilities caps = new DesiredCapabilities();\n driver = new FirefoxDriver(new FirefoxBinary(new File(\"C:\\\\Program Files (x86)\\\\Nightly\\\\firefox.exe\")), new FirefoxProfile(), caps);\n wait = new WebDriverWait(driver, 10);\n\n //IE\n// DesiredCapabilities caps = new DesiredCapabilities();\n// caps.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, true);\n// WebDriver driver = new InternetExplorerDriver(caps);\n\n\n }",
"public static void main(String[] args) {\n\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"./sotware/geckodriver.exe\");\r\n\t\tFirefoxDriver driver=new FirefoxDriver();\r\n\t}",
"@Before\n public void setUp() throws Exception {\n\t //driver = WebDriverFactory.getDriver(DesiredCapabilities.firefox());\n\t driver = new FirefoxDriver();\n baseUrl = \"https://my.roboforex.com/\";\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n }",
"@Test \n public void executeSessionTwo(){\n System.out.println(\"open the browser: FIREFOX \");\n final String GECKO_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/geckodriver.exe\";\n System.setProperty(\"webdriver.gecko.driver\", GECKO_DRIVER_DIRECTORY);\n final WebDriver driver = new FirefoxDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }",
"@Test\n\tpublic void TC_01_Run_On_Firefox() {\n\t\tdriver = new FirefoxDriver();\n\t\t\n\t\t//(>=48) lastest version \n\t\t//System.setProperty(\"webdriver.gecko.driver\",\"//geckodriver_path\");\n\t\t//driver = new FirefoxDriver();\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.get(\"http://demo.guru99.com/v4/\");\n\t\tdriver.quit();\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tWebDriver driver;\n\t\t\n\t\t// Used to launch Firefox Driver\n\t\t// WebDriver driver = new FirefoxDriver();\n\t\tFile file = new File(\"driver//geckodriver.exe\");\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", file.getAbsolutePath());\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(\"marionette\",true);\n\t\tdriver = new FirefoxDriver(capabilities);\n\t\t \n\t\t//Launching the URL in to the firefox address bar\n\t\tdriver.get(\"http://www.seleniumhq.org/download/\");\n\t\t\n\t\t//Get the Title of the page\n\t\tString TitleValue = driver.getTitle();\n\t\tSystem.out.println(\"Title of the page is \"+ TitleValue);\n\t\t\n\t\t// Used to maximize the window\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.navigate().back();\n\t\tSystem.out.println(\"Navigated back to the page\");\n\t\t\n\t\tdriver.navigate().forward();\n\t\tSystem.out.println(\"Forwared page \");\n\t\t\n\t\tdriver.navigate().refresh();\n\t\tSystem.out.println(\"Refresh the page\");\n\t\t\n\t\t//Close the driver\n\t\tdriver.close();\n\t}",
"@Test\r\n\t\tpublic static void LaunchUrl()\r\n\t\t{\r\n\t\t\tdriver.manage().deleteAllCookies();\r\n\t\t\tdriver.get(prop.getProperty(\"url\"));\r\n\t\t\tdriver.manage().window().maximize();\t\r\n\t\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\r\n\t\t\r\n\t\t}",
"@Override\n protected RemoteWebDriver createLocalDriver() {\n return new FirefoxDriver();\n }",
"@Test\n public void test() throws MalformedURLException {\n System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\"); \n WebDriver driver=new ChromeDriver();\n // WebDriver driver=new RemoteWebDriver(url,cap);\n driver.manage().window().maximize(); \n driver.get(\"https://curiedoctorapp.firebaseapp.com\");\n System.out.println(\"The title is\"+ driver.getTitle());\n driver.quit();\n \n }",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.firefox.bin\", \"C:\\\\Program Files\\\\Nightly\\\\firefox.exe\");\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"G:\\\\WebUITests\\\\src\\\\test\\\\resources\\\\Drivers\\\\geckodriver.exe\");\n\t\t//System.setProperty(\"webdriver.gecko.driver\", \"G:\\\\geckodriver-v0.18.0-win64\\\\geckodriver.exe\");\n\t\t\n\t\tDesiredCapabilities capabilities=DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(\"marionette\", true);\n\t\tWebDriver driver = new FirefoxDriver(capabilities);\n\t\t//driver.navigate().to(\"http://www.google.com\");\n\t\tdriver.get(\"http://www.google.com\");\n\t\tdriver.quit();\n\t}",
"public static void main(String[] args) throws InterruptedException {\nWebDriver driver=new FirefoxDriver();\ndriver.get(\"file:/// C:/Users/viprava/Desktop/sample1.html\");\n//driver.findElement(By.id(\"/n\")).click();\n//Thread.sleep(2000);\n//driver.navigate().back();\nThread.sleep(2000);\ndriver.findElement(By.name(\"uname\")).click();\nThread.sleep(2000);\ndriver.navigate().back();\nThread.sleep(2000);\ndriver.findElement(By.className(\"abc\")).click();\nThread.sleep(2000);\ndriver.navigate().back();\nThread.sleep(2000);\ndriver.close();\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\r\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\t\r\n\t\tdriver.get(\"http://www.mail.yahoo.com\");\r\n\t\tThread.sleep(5000);\r\n\t\tSystem.out.println(\"Title :\"+driver.getTitle());\r\n\t\t\r\n\t\t\r\n\t}",
"public void get() {\n\t\tdriver.get(\"http://compendiumdev.co.uk/selenium/basic_ajax.html\");\t\n\t}",
"private static WebDriver driver() {\n\t\treturn null;\r\n\t}",
"SeleniumFactory getSeleniumFactory();",
"public static void main(String[] args) {\n\t\tWebDriver driver = new FirefoxDriver();\r\n\t\tdriver.get(\"http://demo.actitime.com\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\r\n\t\t//driver.get(\"http://demo.actitime.com\");\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(\"admin\");\r\n\t\tdriver.findElement(By.name(\"pwd\")).sendKeys(\"manager\");\r\n\t\tdriver.findElement(By.id(\"loginButton\")).click();\r\n\t\t\r\n\tString str=\tdriver.getPageSource();\r\n\t\tif(driver.equals(str))\r\n\t\t{\r\n\t\t\tdriver.findElement(By.className(\"logout\")).click();\r\n\t\t}\r\n\t\t\r\n\r\n\t}",
"@BeforeMethod\r\n\tpublic void setUp() {\n\t\tdriver = new FirefoxDriver();\r\n\t\tbaseUrl = \"https://www.google.com/\";\r\n\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().window().maximize();\r\n\r\n\t\tdriver.get(baseUrl);\r\n\t}",
"@Test\n public void testBrowser() {\n driver.get(BASE_URL);\n assertEquals(\"My AngularJS App\", driver.getTitle());\n }",
"@Test\r\n\tpublic void tc1(){\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tdriver=new ChromeDriver();\r\n\t\tdriver.get(\"https://www.seleniumhq.org/download/\");\r\n\t\tString title = driver.getTitle();\r\n\t\tSystem.out.println(title);\r\n\t\tdriver.close();\r\n\t}",
"public void driverStart(String baseURL) {\n// FirefoxDriverManager.getInstance().setup();\n// driver = new FirefoxDriver();\n// driver.manage().window().maximize();\n// webDriverWait = new WebDriverWait(driver, 10);\n//\n//// ChromeDriverManager.getInstance().setup();\n//// driver = new ChromeDriver();\n//// driver.manage().window().maximize();\n//// webDriverWait = new WebDriverWait(driver, 5);\n//\n// driver.get(baseURL);\n\n FirefoxDriverManager.getInstance().setup();\n WebDriver driver = new FirefoxDriver();\n driver.get(\"http://localhost/litecart/\");\n\n\n }",
"private void setFirefoxDriver() throws Exception {\n\t\t// Disable cache\n\t\tffProfile.setPreference(\"browser.cache.disk.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.disk_cache_ssl\", false);\n\t\tffProfile.setPreference(\"browser.cache.memory.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.offline.enable\", false);\n\t\t// Set to download automatically\n\t\tffProfile.setPreference(\"browser.download.folderList\", 2);\n\t\tffProfile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n\t\tffProfile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"application/zip\");\n\t\tffProfile.setPreference(\"browser.download.dir\", BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X support\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\t\t// Disable hardware acceleration\n\t\tffProfile.setPreference(\"gfx.direct2d.disabled\", false);\n\t\tffProfile.setPreference(\"layers.acceleration.disabled\", false);\n\t\tFirefoxOptions ffOptions = new FirefoxOptions();\n\n\t\t/*\n\t\t * Set FF to run headless -- Need to make conditional from browser\n\t\t * parameter -- Does NOT work properly with all necessary tests.\n\t\t */\n\t\t// ffOptions.setHeadless(true);\n\n\t\tffOptions.setProfile(ffProfile);\n\t\tcapabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, ffProfile);\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", firefoxDriverLocation);\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" FF-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}",
"@ BeforeTest \n\tpublic void Amazon() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\resources\\\\chromedriver.exe\"); // to make the path portable create folder reources and put the element to it \n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.amazon.com/\");\n\t\tSystem.out.println(driver.getCurrentUrl());\t\n\t\tdriver.manage().window().maximize();\n\n}",
"public static void main(String[] args) {\n WebDriverManager.chromedriver().setup();\n\n // create object for using selenium driver;\n WebDriver driver=new ChromeDriver();\n\n //open browser\n driver.get(\"http://amazon.com\");// bumu exlaydu\n //driver.get(\"http://google.com\");\n // open website\n System.out.println(driver.getTitle());\n\n\n\n\n }",
"public void open(){\n driver.get(\"https://demoqa.com/slider\");\n }",
"@Test\n public void test1() {\n FirefoxBinary binary =\n new FirefoxBinary(new File(FIREFOX_PATH));\n driver = TestBench.createDriver(\n new FirefoxDriver(binary, new FirefoxProfile()));\n setDriver(driver);\n getDriver().get(URL);\n ButtonElement button = $(ButtonElement.class).first();\n button.click();\n LabelElement label = $(LabelElement.class).id(\"result\");\n\n Assert.assertEquals(\"Thanks , it works!\",label.getText());\n driver.quit();\n }",
"public void open() {\n setWebDriver();\n }",
"WebDriver modify(WebDriver webDriver);",
"@Test \n public void executSessionOne(){\n\t System.out.println(\"open the browser: chrome\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }",
"@BeforeMethod\n\tpublic void launch()\n\t{\n\t\t\n\t\tdriver=new FirefoxDriver();\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.get(\"https://www.facebook.com/\");\n\t\t\n\t}",
"private void initFirefoxDriver(String appUrl) {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"Drivers\\\\geckodriver.exe\");\n\t\tdriver = new FirefoxDriver();\n\t\tdriver.get(appUrl);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t}",
"@Test\n public void test1(){\n\n WebDriverManager.chromedriver().setup();\n WebDriver driver2 = new ChromeDriver();\n\n\n\n driver2.get(url);\n bekle(2000);\n driver2.quit();\n\n\n\n }",
"@Before\n public void setUp() throws Exception {\n driver = new FirefoxDriver();\n driver.get(\"http://stackoverflow.com\");\n driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n }",
"private static WebDriver launchFirefox()\n\t{\n\t\tif (REMOTE_URL != null && !REMOTE_URL.equals(\"\")) {\n\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t\t\ttry {\n\n\t\t\t\treturn new RemoteWebDriver(new URL(System.getProperty(\"RemoteUrl\")), capabilities);\n\t\t\t}\n\n\n\t\t\tcatch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setAcceptUntrustedCertificates(true);\n\n\t\t\treturn new FirefoxDriver(profile);\n\n\t\t}\n\n\n\t}",
"@BeforeClass\n public static void setUpClass() throws Exception {\n\t driver = new FirefoxDriver();\n\t \n baseUrl = \"http://localhost/\";\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n }",
"@BeforeMethod\n public void beforeMethod() {\n \tdriver = new FirefoxDriver();\n \t\n \t// Set a wait time\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n // 2) Open ToolsQA.com\n driver.get(\"http://www.ToolsQA.com\");\n }",
"public void WakeFirefox() {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"D://geckodriver.exe\" );\n\t\t\n\t\t// We have to import Webdriver class from library to create object named driver below\n\t\tWebDriver driver = new FirefoxDriver();\n\t\t\n\t\t//Open URL\n\t\tdriver.get(\"https://technoticle.wordpress.com/\");\n\t\t\n\t\t//To get title of Website\n\t\tSystem.out.println(driver.getTitle());\n\t\t\n\t\t//Verification to know whether we are not getting redirected anywhere else. This will print hit URL\n\t\tSystem.out.println(driver.getCurrentUrl());\n\t\t\n\t\t//Close the browser\n\t\tdriver.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"C:\\\\Users\\\\DR\\\\Desktop\\\\seli\\\\geckodriver.exe\");\r\n\t\tWebDriver d=new FirefoxDriver();\r\n\t\t\t\td.get(\"https://www.google.com/\");\r\nd.findElement(By.xpath(\".//*[@id='gs_htif0']\")).sendKeys(\"Sam\");\r\nd.findElement(By.xpath(\".//*[@id='tsf']/div[2]/div[3]/center/input[1]\")).click();\r\n\r\n\r\n\t}",
"@Test\n\tpublic void launchSite()\t{\n\t\t\n\t\tSystem.setProperty(EdgeDriverService.EDGE_DRIVER_EXE_PROPERTY, \"D:\\\\Selenium Drivers\\\\MicrosoftWebDriver.exe\");\n\t\tEdgeDriver driver = new EdgeDriver();\n\t\tdriver.get(\"http://google.com\");\n\t\t\n\t}",
"@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}",
"public static void main(String[] args) {\n\n\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Users\\\\COMPAQ\\\\Downloads\\\\chromedriver_win32\\\\chromedriver.exe\");\n\nWebDriver driver =new ChromeDriver();\n\n//WebDriverWait wait = new WebDriverWait(driver, 40);\n\n driver.get(\"http://qatestingtips.com/\");\n\t\n\n}",
"public void loadDriver() {\n\t\t\n\t\t//get() method is used to open an URL and it will wait till the whole page gets loaded.\n\t\twebDriver.get(\"https://www.google.co.in/\");\n\t}",
"@Given(\"^Launch the page$\")\r\n\tpublic void launch_the_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedrivernew.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"http://realestate.upskills.in\");\r\n\t \t}",
"public static void main(String[] args) \r\n\t{\n\t\tString path=\"browser_drivers\\\\chromedriver.exe\";\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\r\n\t\tWebDriver driver=new ChromeDriver(); //Launch browser\r\n\t\tdriver.get(\"http://seleniumhq.org\"); //Load webpage\r\n\t\tdriver.manage().window().maximize(); //maximize browser window\r\n\t\t\r\n\t\t\r\n\t\tString Exp_url=\"https://www.seleniumhq.org/\";\r\n\t\t\r\n\t\t//Capture runtime url\r\n\t\tString Runtime_url=driver.getCurrentUrl();\r\n\t\t\t\t\r\n\t\tif(Runtime_url.equals(Exp_url))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Expected url presented for selenium homepage\");\r\n\t\t\t\r\n\t\t\tWebElement Download_tab=driver.findElement(By.xpath(\"//a[@title='Get Selenium']\"));\r\n\t\t\tDownload_tab.click();\r\n\t\t\t\r\n\t\t\tif(driver.getCurrentUrl().contains(\"download/\"))\r\n\t\t\t\tSystem.out.println(\"expected url presented, Downlaod page verified\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"expected url not presented, download page not verified\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Wrong url presnted for selenium hompage\");\r\n\t\t}\r\n\t\r\n\t}",
"@Test \n public void executSessionThree(){\n System.out.println(\"open the browser: chrome III\");\n final String CHROME_DRIVER_DIRECTORY = System.getProperty(\"user.dir\") + \"/src/test/java/BrowserDrivers/chromedriver.exe\";\n System.setProperty(\"webdriver.chrome.driver\", CHROME_DRIVER_DIRECTORY);\n final WebDriver driver = new ChromeDriver();\n //Goto guru99 site\n driver.get(\"http://demo.guru99.com/V4/\");\n //find user name text box and fill it\n driver.quit();\n }",
"public void LauncUrl(String url) {\ndriver.get(url);\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\tFirefoxProfile prof = new FirefoxProfile();\r\n\t\tprof.setAcceptUntrustedCertificates(false);\r\n//the above 2 lines will allow you to get past an unsecured site (The connection is untusted. Remember to pass the object in the line below..) Only in FF, IE and Chrome handles it fine \r\n\t\t\r\n\t\tWebDriver driver = new FirefoxDriver(prof);\r\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\r\n\t\t//the global 5 second implicit wait above applies for all code below\r\n\t\t\r\n\t\tdriver.get(\"www.ebay.com\");\r\n\t\tdriver.findElement(By.tagName(\"a\")).click();\r\n\t\tThread.sleep(5000L);//explicit wait to wait for 5 seconds to do other tasks\r\n\t\t//But if you need to keep adding sleeps like this it can cause performance issues. So instead let's set a global implicit wait\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public RegisterPage(WebDriver driver){ this.driver = driver; }",
"public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}",
"@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }",
"@Test\n public void basic() throws Exception {\n driver.get(baseUrl);\n assertEquals(\"World's Largest Professional Network | LinkedIn\", driver.getTitle());\n\n\n }",
"@Test\n\tpublic void loginTest() throws IOException\n\t{\n\t\t\n\t\tdriver=new FirefoxDriver();\n\t\tdriver.get(\"http://www.google.com\");\n\t\tSystem.out.println(\"title is \"+driver.getTitle());\n\t\tAssert.assertTrue(driver.getTitle().contains(\"Mukesh\"));\n\t}",
"public static WebDriver setUp() {\n\t\n \t\n \tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\"); //if it doesn't work we can check with user.dir...\n \tdriver = new ChromeDriver(); //launch the Browser it opens empty page\n \tdriver.manage().window().maximize();\n \tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); //to wait globally\n \tdriver.get(\"http://166.62.36.207/humanresources/symfony/web/index.php/auth/login\");\n \t \n \treturn driver; //return object of the driver \t\n}",
"@Given(\"user is on the login page\")\n public void user_is_on_the_login_page() {\n //according to POM, driver cannot be instantiated here\n// WebDriverManager.chromedriver().setup(); //makes the setup of webdriver, it is setting up chromedriver and connects the WebDriver object with the browser\n// driver = new ChromeDriver();\n// driver.get(ConfigurationReader.getProperty(\"url\"));\n\n Driver.getDriver().get(\"http://qa2.vytrack.com\");\n\n }",
"public void setUpDriver(final String browser) throws MalformedURLException{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString gridUrl=System.getProperty(\"gridurl\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//check if parameter passed from TestNg is 'firefox'\r\n\t\t\r\n//\t\tif (BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n//\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t if(StringUtils.isNotEmpty(gridUrl)){\r\n//\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t }\r\n//\t\t else{\r\n//\t\t\t driver =new FirefoxDriver(capabilities);\r\n//\t\t }\r\n\t\t \r\n\t\t\r\n\t\tif(BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n\t\t\t\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t \r\n\t\t\t final String firebugpath1=\"src//main//resource//firepath-0.9.7.1-fx.xpi\";\r\n\t\t\t final String firebugpath =\"src//main//resource//firebug-1.12.8.xpi\";\r\n\t\t\t FirefoxProfile profile=new FirefoxProfile();\r\n//\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\r\n\t\t\t \r\n\t\t\t try{\r\n\t\t\t\t profile.addExtension(new File(firebugpath));\r\n\t\t\t\t profile.addExtension(new File(firebugpath1));\t \r\n\t\t\t }catch (IOException e){\r\n\t\t\t\t logger.error(\"Exception:\",e);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t profile.setPreference(\"extensions.firebug.allpagesActivation\", \"on\");\r\n//\t\t\t capabilities.setCapability(FirefoxDriver.PROFILE,profile);\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\t\t\t //if (StringUtils.isNotEmpty(gridUrl)){\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t}else if(BrowserLib.CHROME.equalsIgnoreCase(browser)){\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.chrome();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new ChromeDriver();\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else if(BrowserLib.INTERNET_EXP.equalsIgnoreCase(browser)){\r\n//\t\t\tset path to iedriver.exe you may need to download it from 32 bits\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webDriver.ie.driver\", System.getProperty(\"user.dir\")+\"/src/main/resource/\"+ \"IEDriverserver.exe\");\r\n//\t\t\t create ie instance\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.internetExplorer();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t\t if (StringUtils.isNotEmpty(gridUrl)){\r\n// \t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t\t }else{\r\n//\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n//\t\t\t }\r\n\t\t\t if(gridUrl.isEmpty()){\r\n\t\t\t\t driver =new InternetExplorerDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t}else{\r\n//\t\t\tif no browser passed throw exception\r\n\t\t\tthrow new UnsupportBrowserException();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tthis.driver.manage().deleteAllCookies();\r\n\t\tthis.browserMaximize();\r\n\t\tthis.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}",
"@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }",
"@Test\n public void TestToPass(){\n System.out.println(\"This method to pass test\");\n driver.get(\"https://www.softwaretestingmaterial.com/100-software-testing-interview-questions/\");\n driver.getTitle();\n driver.quit();\n }",
"public void geturl() {\n\t \t\n\t \t driver.get(prop.getProperty(\"url\"));\n\t \t \n\t \t String title=driver.getTitle();\n\t \t \n\t \t System.out.println(title);\n\t \t\t\n\t\t\t driver.manage().window().maximize();\n\t\t\t \n\t\t\t driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\t \n\t\t\t driver.manage().deleteAllCookies();\n\t \t\n\t \t\n\t }",
"@Given(\"I open a browser and launch the application\")\n public void open_a_browser_and_launch_the_application() throws MalformedURLException\n {\n try {\n if(System.getProperty(\"exemode\").equals(\"remote\")) {\n if(System.getProperty(\"browser\").equals(\"firefox\")){\n System.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver\");\n DesiredCapabilities dc = DesiredCapabilities.firefox();\n dc.setBrowserName(\"firefox\");\n dc.setPlatform(Platform.LINUX);\n driver = new RemoteWebDriver(new URL(UtilConstants.ENDPOINT_SELENIUM_HUB), dc);\n }\n else if(System.getProperty(\"browser\").equals(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver\");\n DesiredCapabilities dc = DesiredCapabilities.chrome();\n dc.setBrowserName(\"chrome\");\n dc.setPlatform(Platform.LINUX);\n driver = new RemoteWebDriver(new URL(UtilConstants.ENDPOINT_SELENIUM_HUB), dc);\n }\n }\n else{\n if(System.getProperty(\"browser\").equals(\"firefox\")){\n System.setProperty(\"webdriver.gecko.driver\", \"./drivers/geckodriver\");\n driver = new FirefoxDriver();\n }\n else if(System.getProperty(\"browser\").equals(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\", \"./drivers/chromedriver\");\n driver = new ChromeDriver();\n }\n }\n\n if(driver!=null){\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n //driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);\n driver.get(ENDPOINT_PHPTRAVELS);\n }\n }\n catch(Exception e){\n e.printStackTrace();\n// System.exit(1);\n }\n }",
"@BeforeTest\n\tpublic void OpenBrowser() throws InterruptedException {\n\t\t\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\PSQA\\\\Desktop\\\\driver\\\\chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.get(\"https://www.booking.com/\");\n\t\n\t\t\n\t\tdriver.manage().window().maximize();\n\t\tThread.sleep(100);\n\t\t\n}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\tWebDriver driver=launchBrowser(\"http://www.seleniumframework.com/Practiceform/\");\r\n\tdriver.findElement(By.id(\"alert\")).click();\r\n\t\r\n\tAlert alert=driver.switchTo().alert();\r\n\tString alertText=alert.getText();\r\n\tSystem.out.println(alertText);\r\n\talert.accept();\r\n\t\r\n\tdriver.findElement(By.name(\"name\")).sendKeys(\"Selenium\");\r\n\t\r\n\tdriver.switchTo().frame(0);\r\n\t//adfasdfasdf\r\n\tdriver.switchTo().defaultContent();\r\n\t\r\n\t\r\n\t\r\n\t}",
"@Test\n @When(\"I open URL\")\n public void s02_UrlOpen() {\n driver.get(urlHP);\n System.out.println(\"Step02 PASSED\");\n }",
"@Test\n\tpublic void openGoogle(){\n\t\tSystem.out.println(\"Starting test \" + \n\t\t\t\tnew Object(){}.getClass().getEnclosingMethod().getName().toString());\n\t\tdriver.get(\"http://www.google.com\");\n\t\tSystem.out.println(\"Ending test \" + \n\t\t\t\tnew Object(){}.getClass().getEnclosingMethod().getName().toString());\n\t}",
"public static WebDriverFactory getFactory(){\r\n\t\treturn new FirefoxWebDriverFactory();\r\n\t}",
"protected FirefoxDriver createFirefoxDriver() {\n FirefoxProfile firefoxProfile = new FirefoxProfile();\n firefoxProfile.setPreference(\"intl.accept_languages\",\n getSystemLanguage());\n FirefoxDriver firefoxDriver = new FirefoxDriver(firefoxProfile);\n firefoxDriver.manage().window().maximize();\n return firefoxDriver;\n }",
"public WebDriver getWebdriver() {\n return driver.get();\n }",
"public static void main(String[] args) {\n\r\n\t\tWorkingwithfirefox wc = new Workingwithfirefox();\r\n\t\t\r\n\t\twc.invokeBroser();\r\n\t\twc.getTitleOfThePage();\r\n\t\twc.closeBrowser();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) throws IOException {\n\r\n\r\n\t WebDriver driver;\r\n\t ChromeOptions options=new ChromeOptions();\r\n\t options.addArguments(\"C:\\\\chromedriver.exe\"); \r\n\t\tDesiredCapabilities capabilities=DesiredCapabilities.chrome();\r\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY,options);\r\n\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n driver.get(\"http://www.baidu.com\");\r\n \r\n \r\n \r\n//\t\tWebDriver driver;\r\n//\t\tProfilesIni allProfiles =new ProfilesIni();\r\n// FirefoxProfile profile=allProfiles.getProfile(\"default\");\r\n// DesiredCapabilities capabilities=DesiredCapabilities.firefox();\r\n//\t\tdriver=new RemoteWebDriver(new URL(\"http://192.168.71.1:5555/wd/hub\"),capabilities);\r\n//\t\tdriver.get(\"http://www.baidu.com\");\r\n\t}",
"public static void main(String[] args) throws InterruptedException {\n\t\t\n\t\t\n\t\tSystem.setProperty(\"webdriver.firefox.bin\", \"/usr/bin/firefox\");\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", System.getProperty(\"user.dir\") + \"/Driver/geckodriver\");\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(\"marionette\", true);\n\t\tWebDriver driver = new FirefoxDriver();\n\t\tdriver.get(\"www.google.com\");\n\t}",
"@BeforeTest\r\n\r\n\tpublic void setUp() throws Exception {\r\n\t\t// PropertyConfigurator.configure(\"log4j.properties\");\r\n\t\tdriver = new FirefoxDriver();\r\n\t\tbaseUrl = \"https://pghvm-vr7-www1.omnyx.com/Omnyx.Web/login\";\r\n\r\n\t\t// Maximize the browser's window\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(15, TimeUnit.SECONDS);\r\n\r\n\t}",
"public WebDriver login() {\r\n System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n //System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Users\\\\sa841\\\\Documents\\\\chromedriver_win32\\\\phantomjs.exe\");\r\n String URL = \"http://Admin:[email protected]:8080/phenotips123/bin/loginsubmit/XWiki/XWikiLogin/\";\r\n ChromeOptions options = new ChromeOptions();\r\n options.addArguments(\"window-size=1024,768\");\r\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\r\n WebDriver driver = new ChromeDriver(capabilities);\r\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\r\n //WebDriver driver = new PhantomJS();\r\n driver.get(URL);\r\n driver.findElement(By.id(\"j_username\")).sendKeys(\"Admin\");\r\n driver.findElement(By.id(\"j_password\")).sendKeys(\"admin\");\r\n driver.findElement(By.className(\"button\")).click();\r\n return driver;\r\n }",
"public static void main(String[] args) throws InterruptedException {\n\t\t\tSystem.out.print(\"Hello WOrld\");\r\n\t\t\tWebDriver driver; \r\n\t\t\tSystem.setProperty(\"webdriver.firefox.marionette\",\"C:\\\\ccc\\\\seleniumsetup\\\\geckodriver.exe\");\r\n\t\t\tdriver = new FirefoxDriver();\r\n\t\t\t//driver.get(\"http://demo.guru99.com/selenium/deprecated.html\");\r\n\t\t\tdriver.get(\"https://freecrm.co.in/\");\r\n\t\t\tThread.sleep(5000);\r\n\t\t\tdriver.findElement(By.xpath((\"//a[@class='btn btn-sm btn-white btn-icon btn-icon-left btn-shadow btn-border btn-rect offset-sm-top-60 offset-top-30']\"))).click();\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"D:\\\\QA\\\\seleniumjars\\\\geckodriver.exe\");\n//Firefox driver//non static methods\n\t\tFirefoxDriver driver=new FirefoxDriver();\n\t\t\n\t\tdriver.get(\"https://www.facebook.com/\");\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(\"affgchgdhg\");\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(\"aaaasss\");\n\t\tdriver.findElement(By.name(\"login\")).click();\n\t}",
"public static void chromeTest() throws Exception{\n driver = BrowserFactory.getDriver(\"chrome\");\n Thread.sleep(2000);\n\n driver.get(\"http://google.com\");\n Thread.sleep(3000);\n String title = driver.getTitle();\n driver.navigate().to(\"https://etsy.com\");\n Thread.sleep(2000);\n String title2 = driver.getTitle();\n driver.navigate().back();\n title = driver.getTitle();\n Thread.sleep(2000);\n driver.navigate().to(\"https://etsy.com\");\n title2 = driver.getTitle();\n driver.quit();\n }",
"@BeforeMethod\r\n public void backendJobListing() {\n driver = new FirefoxDriver();\r\n \r\n //Open browser\r\n driver.get(\"https://alchemy.hguy.co/jobs/wp-admin\");\r\n \r\n }",
"@BeforeMethod\n public void setupMethod(){\n driver = WebDriverFactory.getDriver(\"chrome\");\n //maximize the page\n driver.manage().window().maximize();\n //implicit wait\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n //get the page\n driver.get(\"http://practice.cybertekschool.com/dropdown\");\n }",
"public WebDriver createWebDriver()\n {\n WebDriver result = null;\n \n LoggingHelper.LogInfo(getClass().getName(), \"Initializing the FirefoxDriver instance.\");\n try \n { \n result = new FirefoxDriver(); \n } \n catch(Exception e)\n {\n LoggingHelper.LogError(getClass().getName(), \"Cannot initialize the FirefoxDriver: %s\", e.toString());\n throw e;\n }\n \n LoggingHelper.LogVerbose(getClass().getName(), \"Succesfully initialized the FirefoxDriver instance.\"); \n return result;\n }",
"@Test\n\tpublic void start() {\n\t\t\n\t\tSeleniumUtil.startDriverFirefox(\"DEV_ROBO\");\n\t\t\n\t\tSeleniumUtil.openURL(\"https://www.cadesp.fazenda.sp.gov.br/(S(aljupn5501cd5jefroucepm3))/Pages/Cadastro/Consultas/ConsultaPublica/ConsultaPublica.aspx\");\n\n\t}",
"@Test\n\tpublic void LoginToYoutube() {\n\t\tdriver.get(\"http://www.youtube.com\");\n\t}",
"private WebDriver getDriver() {\n return new ChromeDriver();\n }",
"public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}",
"@BeforeTest\n\tpublic void beforeTest() {\n\t\t\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",\".\\\\lib\\\\geckodriver.exe\");\n\t\tdriver = new FirefoxDriver(); \n//\t\tSystem.setProperty(\"webdriver.ie.driver\",\".\\\\lib\\\\IEDriverServer.exe\");\n//\t\tdriver = new InternetExplorerDriver();\n\t\t\n//\t\tSystem.setProperty(\"webdriver.chrome.driver\",\".\\\\lib\\\\chromedriver.exe\");\n//\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t}",
"public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}",
"public void irNoSiteN11 (){\n driver.get(URLbase);\n }",
"public static void main(String[] args) {\n\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\DRIVERS\\\\chrome driver\\\\chromedriver.exe\");\r\n\tWebDriver\tdriver = new ChromeDriver();// creating object referring to interface to call methods in interface \r\n\tdriver.get(\"https://www.google.com/\"); \t// hit url on browsera\r\n\tSystem.out.println(driver.getCurrentUrl()); // to validate if you are landed on correct url\r\n\tSystem.out.println(driver.getTitle());\t\t// to validate title of page\r\n\tSystem.out.println(driver.getPageSource());\r\n\tdriver.get(\"http://yahoo.com\");\r\n\tdriver.navigate().back();\r\n\tdriver.navigate().forward();\r\n//\tdriver.close(); \t//Close the current window, quitting the browser if it's the last window currently open\r\n//\tdriver.quit();\t\t// Quits this driver, closing every associated window (this will close all browsers windows which are opened by selenium script\r\n\r\n//\t//\tfor locators ID, name, classname,linktext, xpath, css\r\n//\tdriver.get(\"https://www.facebook.com/\");\r\n//\tdriver.findElement(By.id(\"email\")).sendKeys(\"mounika\");\r\n\t\r\n//\t//driver.findElement(By.name(\"pass\")).sendKeys(\"maggie\");\r\n\t\r\n//\t//driver.findElement(By.xpath(\"//input[@type='password']\")).sendKeys(\"mounika\");\r\n\t\r\n//\tdriver.findElement(By.cssSelector(\"input[type='password']\")).sendKeys(\"pass\"); // difference between xpath and ccs is in css we wont use // and @ , give space or don't mention in the place of * not need of mentioning tag in css\r\n//\t// css 1)tagname#id or #id 2)tagname.classname\r\n//\tdriver.findElement(By.id(\"loginbutton\")).click();\r\n//\tdriver.findElement(By.linkText(\"Forgotten password?\")).click();\r\n//\t// selenium will not accept classname will spaces it will throw error compound class name is not permitted \r\n//\tSystem.out.println(\"pass\");\r\n//\t//driver.quit();\r\n//\t// regular expression when attribute value is changing and some part is constant and when it is very long\r\n//\tdriver.get(\"http://rediff.com\");\r\n//\tdriver.findElement(By.cssSelector(\"a[title*='Sign in']\")).click(); // regular expression for css same as normal css except * symbol\r\n//\tdriver.findElement(By.xpath(\"//input[@id='login1']\")).sendKeys(\"hello\");\r\n//\tdriver.findElement(By.cssSelector(\"input#password\")).sendKeys(\"goodbye\");\r\n//\tdriver.findElement(By.xpath(\"//input[contains(@name,'procee')]\")).click(); //regular expression for xpath it uses contains\r\n\t// if we need to move to particular column in row using css (write css till row space childtagname:nth-child(3) ( child(3) is the coulmns on which we will be performing \r\n\t//eg:table.findElements(By.className(\"div[class='rt-tr-group'] div:nth-child(3)\")\r\n\t\t\t// note : how to transverse to one sibling to another sibling write xpath till firstlsibling/following-sibling::tagnameofnextsibling\r\n\t\r\n\t\r\n\t\r\n\t\r\n\r\n\t}",
"private static WebDriver newHtmlUnitDiver() {\n\t\tcapabilities = new DesiredCapabilities().htmlUnit();\n\t\tcapabilities.setBrowserName(\"HtmlUnit\");\n\t\tsetCommonCapabilities();\n\n//\t\treturn new HtmlUnitDriver(capabilities);\n\t\treturn new HtmlUnitDriver(true);\n\t}"
] | [
"0.77924156",
"0.75749373",
"0.7497043",
"0.74759156",
"0.74415094",
"0.7307571",
"0.7209472",
"0.7199303",
"0.7176145",
"0.716767",
"0.713256",
"0.7115738",
"0.7086317",
"0.7078819",
"0.70484966",
"0.70343596",
"0.6993773",
"0.69827807",
"0.69757545",
"0.69677913",
"0.6948459",
"0.6925704",
"0.687355",
"0.68698007",
"0.6861933",
"0.6859088",
"0.68434227",
"0.6837407",
"0.6796965",
"0.6790912",
"0.6782972",
"0.67753386",
"0.6756122",
"0.6729039",
"0.6726651",
"0.67224586",
"0.67060375",
"0.66897917",
"0.66834074",
"0.6679041",
"0.66589606",
"0.6658862",
"0.6646357",
"0.6626597",
"0.6624567",
"0.66160846",
"0.6607942",
"0.6605749",
"0.66051304",
"0.6591693",
"0.65907353",
"0.6587231",
"0.655605",
"0.6555933",
"0.6552385",
"0.65364766",
"0.65300095",
"0.6513246",
"0.6507623",
"0.64953166",
"0.6494138",
"0.6486888",
"0.64766467",
"0.6463285",
"0.64604145",
"0.6452719",
"0.64483887",
"0.6432019",
"0.64295846",
"0.6429255",
"0.6427449",
"0.6414972",
"0.6407767",
"0.6405598",
"0.6400757",
"0.63771254",
"0.6371591",
"0.6370718",
"0.63666964",
"0.6365088",
"0.6363863",
"0.63600814",
"0.6358667",
"0.63479406",
"0.63458246",
"0.63431686",
"0.6341962",
"0.63413",
"0.6337727",
"0.633724",
"0.6329022",
"0.63284475",
"0.63266426",
"0.63240916",
"0.63171995",
"0.63138264",
"0.6312243",
"0.63076663",
"0.6307413",
"0.6294905",
"0.6286543"
] | 0.0 | -1 |
Joins the channel of the room | public void joinChannel() {
String userId = AuthenticationSingleton.getAdaptedInstance().getUid();
String token1 = generateToken(userId);
mRtcEngine.setAudioProfile(Constants.AUDIO_SCENARIO_SHOWROOM, Constants.AUDIO_SCENARIO_GAME_STREAMING);
int joinStatus = mRtcEngine.joinChannelWithUserAccount(token1, appointment.getId(), userId);
if (joinStatus == SUCCESS_CODE) {
appointment.addInCallUser(new DatabaseUser(userId));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void joinChannel() {\n // Get the User Id for the current user\n final String userId = mUser.getUid();\n // User Id set to 0 for auto handling by Agora\n int uid = 0;\n // Token object\n RtcTokenBuilder token = new RtcTokenBuilder();\n // Time stamp used for length of token\n int timestamp = (int)(System.currentTimeMillis() / 1000 + expirationTimeInSeconds);\n\n String uId = Objects.requireNonNull(mAuth.getCurrentUser()).getUid();\n\n addCallToDb(uId); // Add current user to db for active calls\n\n try {\n // Create a token using Agora Sdk\n agora_token = token.buildTokenWithUid(getString(R.string.agora_app_id), getString(R.string.agora_app_certificate),\n channelName, uid, RtcTokenBuilder.Role.Role_Publisher, timestamp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n // Join the channel with the given token and channel name\n mRtcEngine.joinChannel(agora_token, channelName, \"\", uid);\n }",
"protected void onJoin(String channel, String sender, String login, String hostname) {}",
"public void joinChatRoom(IChatroom room) {\n\t\tview.append(\"Join ChatRoom\" + room.getName());\n\t\tcountRoom++;\n\t\tIChatroom chatroom = new Chatroom(\"Chatroom\" + countRoom);\n\t\tIChatServer chatServer = new ChatServer(user, chatroom);\n\t\ttry {\n\t\t\tview.append(\"Start joining..\");\n\t\t\tIChatServer chatStub = (IChatServer) UnicastRemoteObject.exportObject(chatServer,\n\t\t\t\t\tIChatServer.BOUND_PORT + countRoom);\n\t\t\tfor (IChatServer members : room.getChatServers()) {\n\t\t\t\tchatroom.addChatServer(members);\n\t\t\t\tmembers.joinChatroom(chatStub);\n\t\t\t}\n\t\t\tchatroom.addChatServer(chatStub);\n\t\t\tuser.addRoom(chatroom);\n\t\t\tregistry.rebind(IChatServer.BOUND_NAME + chatroom.hashCode(), chatStub);\n\t\t\tHashSet<IChatServer> proxyChatServers = new HashSet<IChatServer>();\n\t\t\tfor (IChatServer stub : chatroom.getChatServers()) {\n\t\t\t\tProxyIChatServer proxyChatServer = new ProxyIChatServer(stub);\n\t\t\t\tproxyChatServers.add(proxyChatServer);\n\t\t\t}\n\t\t\tIMain2MiniAdpt miniMVCAdpt = view.makeMini(chatServer, proxyChatServers);\n\t\t\tminiMVCAdpts.put(chatroom, miniMVCAdpt);\n\t\t\tcountRoom++;\n\t\t\tview.append(\"Success!\");\n\t\t\t//\t\t\tminiMVCAdpt.refresh();\n\t\t} catch (Exception e) {\n\t\t\tview.append(\"Fail to join the room!\");\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic SocketIOSocket join(String room) {\n\t\tString roomName = namespace.getName() + \"/\" + room;\n\t\tthis.manager.onJoin(this.id, roomName);\n//\t\tthis.manager.store.publish('join', this.id, name);\n\t\treturn this;\n\t}",
"private void UserJoinChannel(ClientData d)\n\t{\n\t\tApplicationManager.textChat.writeLog(d.ClientName + \" Join to \" + currentChannel.ChannelName);\n\t\tSendMessage(null, MessageType.channelInfo);\n\n\t}",
"private void doJoin(){\n\n final String aggHost = System.getProperty(\"aggregate.host.uri\", \"\");\n if (aggHost.isEmpty()) {\n command(\"/aggregate\", \"addBot\", Record.of()\n .slot(\"node\", nodeUri().toString())\n .slot(\"key\", System.getProperty(\"device.name\", \"\")));\n } else {\n command(aggHost, \"/aggregate\", \"addBot\", Record.of()\n .slot(\"host\", hostUriHack().toString()) // ws://192.168.0.151:9001\n .slot(\"node\", nodeUri().toString()) // /bot/6\n .slot(\"key\", System.getProperty(\"device.name\", \"\")));// RaspiBot6|192.168.0.151:9001\n }\n }",
"public void join() throws OperationFailedException\n {\n if (chatRoomSession == null && chatInvitation == null)\n { // the session is not set and we don't have a chatInvitatoin\n // so we try to join the chatRoom again\n ChatRoomManager chatRoomManager =\n provider.getAimConnection().getChatRoomManager();\n chatRoomSession = chatRoomManager.joinRoom(this.getName());\n chatRoomSession.addListener(new AdHocChatRoomSessionListenerImpl(\n this));\n }\n else if (chatInvitation != null)\n {\n chatRoomSession = chatInvitation.accept();\n chatRoomSession.addListener(new AdHocChatRoomSessionListenerImpl(\n this));\n }\n\n // We don't specify a reason.\n opSetMuc.fireLocalUserPresenceEvent(this,\n LocalUserAdHocChatRoomPresenceChangeEvent.LOCAL_USER_JOINED, null);\n }",
"private void joinRoom(int roomId) {\n // Reset room state variables\n messages.clear();\n\n ChatAdapter adapter = new ChatAdapter(getApplicationContext(),messages);\n adapter.notifyDataSetChanged();\n\n chatRecyclerView.setAdapter(adapter);\n this.destinationPublicKey = null;\n\n // Emit room join request.\n this.socket.emit(\"join\", roomId, nickname);\n }",
"private void joinNewClient() {\r\n\t\t\tString clientName = _clientView.getUserName();\r\n\t\t\tif(clientName == null)\r\n\t\t\t\treturn;\r\n\t\t\t_clientModel.connectToServer();\r\n\t\t\t_clientModel.joinChat(clientName);\r\n\t\t}",
"public void sendJoiningPlayer() {\r\n Player p = nui.getPlayerOne();\r\n XferJoinPlayer xfer = new XferJoinPlayer(p);\r\n nui.notifyJoinConnected();\r\n networkPlayer.sendOutput(xfer);\r\n }",
"public void joinChannel(String chName) {\n\t\tstdGroup.fireEventStatus(new StatusEvent(this,\"Joining channel \"+ chName + \"..wait...\"));\n\t\tmkChannel(chName, \"\",userName , emailAddress);\n\t}",
"@Override\n public void onClick(View v) {\n Log.d(TAG,\"JOINING ROOMID\" + chat_list.get(position).roomhash );\n mSocket.emit(\"CreateRoom\",chat_list.get(position).roomhash,chat_list.get(position).gcmID);\n Intent intent2 = new Intent(CTX, ChatInstance.class);\n intent2.putExtra(\"roomnum\", chat_list.get(position).roomhash);\n\n CTX.startActivity(intent2);\n\n }",
"Client join(Participant participant);",
"private void joinGame() {\n\t\tgame.connect(list.getSelectedValue());\n\t\tdispose();\n\t}",
"public static WebSocket<JsonNode> join() {\n return new WebSocket<JsonNode>() {\n @Override\n public void onReady(In<JsonNode> in, Out<JsonNode> out) {\n ConnectedPlayer lowerPlayer = new ConnectedPlayer(in, out);\n log.trace(\"Incoming {}.\", lowerPlayer);\n\n // Tell the player that we are trying to find a pair.\n new WaitingForOpponent(lowerPlayer.getId()).write(out);\n\n // Try to pair the incoming player with another player.\n ConnectedPlayer upperPlayer = pendingPlayers.poll();\n if (upperPlayer != null) {\n Game game = new Game(\n upperPlayer, lowerPlayer,\n new Game.ShutdownListener() {\n @Override\n public void onGameShutdown(String gameId) {\n Application.onGameShutdown(gameId);\n }\n });\n game.start();\n games.put(game.getId(), game);\n log.trace(\"Started {} with {} and {}.\", game, upperPlayer, lowerPlayer);\n }\n\n // Else, queue the player into the waiting list.\n else {\n pendingPlayers.add(lowerPlayer);\n log.trace(\"Queued {}.\", lowerPlayer);\n }\n }\n };\n }",
"@Override\n public void onGuildMemberJoin(@NotNull GuildMemberJoinEvent event) {\n super.onGuildMemberJoin(event);\n event.getMember().getUser().openPrivateChannel().queue((channel) -> {\n channel.sendMessage(Settings.WELCOME_MESSAGE).queue();\n });\n }",
"void joinRoom(int roomId) throws RoomNotFoundException, RoomPermissionException, IOException;",
"@Override\n public void messageArrived(IChatMessage msg) {\n try { \n if (msg.getText().matches(\"JOIN .*\")) {\n //Obtenir el canal on s'ha unit.\n IChatChannel channel = server.getChannel(conf.getChannelName()); \n //Crear el missatge per a donar la benvinguda al usuari\n IChatMessage message = new ChatMessage(user, channel,\n \"Benvingut, \" + msg.getText().substring(ChatChannel.JOIN.length() + 1));\n //Enviar el missatge\n channel.sendMessage(message);\n }\n } catch (RemoteException e) {\n \n }\n }",
"private void openChannel() {\n database.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n String channelUrl = (String) dataSnapshot.child(\"channelUrl\").getValue();\n joinChannel(channelUrl);\n } else {\n createChannel();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }",
"GameJoinResult join(Player player);",
"public void setJoined() {\n\t\tstate = State.JOINED;\n\t}",
"public boolean joinLobby(Lobby lobby)\n {\n if (lobby.assignSlot(this))\n {\n this.currentLobby = lobby;\n return true;\n }\n return false;\n }",
"public void join(LobbyPlayer player) {\n if (listener == null) listener = Firebase.registerListener(\"lobbies/\" + player.getLobbyCode(), onLobbyChange);\n DocumentReference doc = Firebase.docRefFromPath(\"lobbies/\" + player.getLobbyCode());\n ObjectMapper mapper = new ObjectMapper();\n Map<String, Object> kv = mapper.convertValue(LobbyPlayerDTO.fromModel(player), new TypeReference<Map<String, Object>>() {});\n doc.update(\"players.\" + player.getUsername(), kv);\n }",
"@Override\n\tpublic void joinLobby(int playerID, int sessionID){\n\t\tif(sessionID == NO_LOBBY_ID)\n\t\t\treturn;\n\t\t//check if the player is already in an other lobby\n\t\tint playerSession = getSessionFromClient(playerID);\n\n\t\tif(playerSession == NO_LOBBY_ID){\n\t\t\tlobbyMap.get(sessionID).addPlayer(getPlayerMap().get(playerID));\n\t\t\tDebugOutputHandler.printDebug(\"Player \"+getPlayerMap().get(playerID).getName()+\" now is in lobby \" + getPlayerMap().get(playerID).getSessionID());\n\t\t}\n\t}",
"public void join(Player player) {\n\t\tGamePlayer gamePlayer = new GamePlayer(player);\n\t\tthis.gamePlayers.add(gamePlayer);\n\n\t\tif (getEmptyPad() != null) ß{\n\t\t\tPad pad = getEmptyPad();\n\t\t\tgamePlayer.setPad(pad);\n\t\t\tpad.setFree(false);\n\t\t\tLocation loc = pad.getLocation();\n\n\t\t\tplayer.teleport(new Location(loc.getWorld(), loc.getX(), loc.getY(), loc.getZ()));\n\t\t\tsetupPlayerInventory(player);\n\t\t\tplayer.sendMessage(\"You have joined the game\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Not enough room for \" + player.getName() + \" to join. Kicking...\");\n\t\t\tplayer.kickPlayer(\"Game Full\");\n\t\t}\n\t}",
"void join(User user);",
"private boolean joinGame() throws RemoteException{\n\t\tgui.showLoginWindow(playerDetails);\n\n\t\twhile(!gui.isUserDataAvailable()){\n\t\t\t// wait for user to enter details\n\t\t\tDebug.log(\"MainMenu\", \"waiting for player details\");\n\t\t\ttry{\n\t\t\t\tThread.sleep(1000);\n\t\t\t}catch(InterruptedException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t}\n\t\t}\n\t\tplayerDetails = gui.getPlayerDetails();\n\t\tDebug.log(\"MainMenu\", \"player details received!\");\n\n\t\tif(playerDetails == null) quitGame(false); // quit if player declined/cancelled to enter details\n\n\t\t/* Get preferred position */\n\t\tpreferredPosition = gui.getPreferredPosition();\n\n\t\t/* Register this client as Callback */\n\t\treturn server.connect(this, myHost, myPort, preferredPosition, false, playerDetails.getFirstName(), playerDetails.getSurname(),\n\t\t\t\tplayerDetails.getAddress(), playerDetails.getPhone(), playerDetails.getUsername(), playerDetails.getPassword());\n\t}",
"void onJoin(String joinedNick);",
"@Override\n\tpublic void run() {\n\t\tSocket s = null;\n\t\tDataOutputStream dos = null;\n\t\tDataInputStream dis = null;\n\t\tString clientName = \"\";\n\t\tString userid = null;\n\t\tString password = null;\n\t\t\n\t\ttry {\n\t\t\ts = ss.accept(); // wait for a client\n\t\t\tnew Thread(this).start(); // make a thread to connect the NEXT client - somewhat recursive\n\t\t\tdis = new DataInputStream(s.getInputStream());\n\t\t\tString firstMsg = dis.readUTF();\n\t\t\tdos = new DataOutputStream(s.getOutputStream());\n\t\t\t\n\t\t\t// validate connection \n\t\t\tif (firstMsg.charAt(0) == '\\u0274') { // char startsWith()\n\t\t\t\tfirstMsg = firstMsg.substring(1); // drop unicode char\n\t\t\t\tint slashOffset = firstMsg.indexOf(\"/\");\n\t\t\t\tuserid = firstMsg.substring(0, slashOffset).toLowerCase();\n\t\t\t\tpassword = firstMsg.substring(slashOffset + 1);\n\t\t\t\tSystem.out.println(userid + \" is attempting to join with password \" + password);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdos.writeUTF(\"Invalid protocol. \" + \"Are you calling the right address and port?\");\n\t\t\t\tdos.close(); // close connection\n\t\t\t\tSystem.out.println(\"Invalid 1st msg received: \" + firstMsg);\n\t\t\t\treturn; // kill this client thread\n\t\t\t}\n\t\t\t\n\t\t\t// validate username then get chatName from this collection: \n\t\t\tif (authorizedClients.containsKey(userid)) clientName = authorizedClients.get(userid);\n\t\t\t else { //The submitted userid is not in the collection...\n\t\t\t\t dos.writeUTF(\"user id \" + userid + \" is not authorized to join the PrivateChatRoom.\");\n\t\t\t\t System.out.println(userid + \" is not authorized to join.\");\n\t\t\t\t dos.close(); // hang up.\n\t\t\t\t return; // and kill this client thread\n\t\t\t }\n\t\t\tif (clients.containsKey(clientName)) {\n\t\t\t\t dos.writeUTF(clientName + \" is already in the chat room. Cannot be joined from two locations concurrently.\");\n\t\t\t\t System.out.println(\"Received join request for a userid (\" + userid + \"=\" + clientName + \" that is already in the chat room.\" );\n\t\t\t\t dos.close(); // hang up.\n\t\t\t\t return; // and kill this client thread\n\t\t\t}\n\t\t\telse { // process this request\n\t\t\t\tSystem.out.println(clientName + \" is joining.\"); // trace\n\t\t\t\tsendToAllClients(\"Welcome to \" + clientName + \" who has just joined the chat room!\"); // let everyone know you're flossing\n\t\t\t\tclients.put(clientName, dos); // add to collection\n\t\t\t}\n\t\t\tObjectOutputStream oos = null;\n\t\t\tif (!passwords.containsKey(userid)) // stored password not found\n\t\t\t\t\t { // That's OK! This is just a first-time join!\n\t\t\t\t\t passwords.put(userid, password);//add to collection\n\t\t\t\t\t //And save the updated passwords collection to disk:\n\t\t\t\t\t oos= new ObjectOutputStream(new FileOutputStream(\"ChatRoomPasswords.ser\"));\n\t\t\t\t\t oos.writeObject(passwords);\n\t\t\t\t\t oos.close();\n\t\t\t\t\t }\n\t\t\t\t\t else // a stored password for this userid is found\n\t\t\t\t\t {\n\t\t\t\t\t String storedPassword = passwords.get(userid);\n\t\t\t\t\t if(!storedPassword.equals(password))\n\t\t\t\t\t {\n\t\t\t\t\t dos.writeUTF(\"Join rejected. The submitted password does not match the password stored for this user id.\");\n\t\t\t\t\t return; // and kill this client's thread.\n\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\tdos.writeUTF(\"Welcome to the chat room \" + clientName + \"!\");\t\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Client connection failure: \" + e);\n\t\t\tif (s.isConnected()) {\n\t\t\t\ttry {\n\t\t\t\t\ts.close(); // hang up\n\t\t\t\t}\n\t\t\t\tcatch (IOException ioe){\n\t\t\t\t\t// Already hung up\n\t\t\t\t}\n\t\t\t} // end if\n\t\t} // end catch\n\t\t\n\t\t// Send Receive loop\n\t\ttry {\n\t\t\twhile (true) {\n\t\t\t\tString inChat = dis.readUTF();\n\t\t\t\tString outChat = clientName + \" says: \" + inChat;\n\t\t\t\tSystem.out.println(outChat); // trace\n\t\t\t\tsendToAllClients(outChat); // send it to everyone\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ioe){ // leave processing\n\t\t\tSystem.out.println(clientName + \" is leaving.\"); // trace\n\t\t\tsendToAllClients(\"Goodbye to \" + clientName + \" who has just left the chat room!\"); // let everyone know you're leaving\n\t\t\tclients.remove(clientName); // remove from collection\n\t\t\treturn; // kill thread since we're done now for w/e reason\n\t\t}\n\t}",
"private void joinLobby(ActionEvent actionEvent, String name) throws ExecutionException, InterruptedException {\n FireStoreController fireStoreController = (FireStoreController) ControllerRegistry.get(FireStoreController.class);\n PlayerController playerController = (PlayerController) ControllerRegistry.get(PlayerController.class);\n if(!fireStoreController.checkExistence(token)){\n JoinLobbyViewTokenTextField.setText(\"This lobby does not exist\");\n }\n\n if(fireStoreController.getLobbySize(token) >= 8){\n LobbyAlreadyFullPopup.setVisible(true);\n }\n\n }",
"private void providerJoinRoom(String roomName) {\n Room room = roomManager.getRoomOrCreate(roomName);\n\n WebUserSession provider = room.getProvider();\n\n // Start the session\n WebRtcEndpoint providerWebRtcEp = room.createProviderWebRtcEp(provider);\n\n if (room.getAlexaWebRtcEp() != null) {\n room.setUpPipeline();\n }\n\n // Generate SDP answer for caller(Provider)\n log.info(\"Provider SDP: {} \", provider.getSdpOffer());\n String callerSdpAnswer = providerWebRtcEp.processOffer(provider.getSdpOffer());\n JsonObject startCommunication = new JsonObject();\n startCommunication.addProperty(\"id\", \"startCommunication\");\n startCommunication.addProperty(\"sdpAnswer\", callerSdpAnswer);\n\n try {\n provider.sendMessage(startCommunication);\n } catch (IOException e) {\n e.printStackTrace();\n }\n log.info(\"SDP answer is generated for provider. \" + callerSdpAnswer);\n providerWebRtcEp.gatherCandidates();\n }",
"public void joinWave(String roomID) {\n\t\t\r\n\t}",
"@EventHandler\n public void onPlayerJoin(PlayerJoinEvent event) {\n Player player = event.getPlayer();\n String motd = config.getString(\"motd\");\n if (motd != null && !motd.trim().isEmpty()) {\n motd = ChatColor.translateAlternateColorCodes('&', motd);\n player.sendMessage(motd.split(\"\\\\\\\\n\"));\n }\n }",
"public void joinGame(int lobbyId)\n {\n //call Client controller's joinLobby method with the selected lobby's\n //id\n clientController.joinGame(lobbyId);\n }",
"@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)\n {\n \n Channel connectedChannel = e.getChannel();\n allChannels.add(connectedChannel);\n \n msg = StringAppender.mergeToStr(connectedMsg, e.getChannel().getLocalAddress().toString(), \" , Connections:\", String.valueOf(allChannels.size()));\n logger.info(msg);\n \n }",
"@Override\n\tpublic void onJoinLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onJoinLobbyDone\");\n\t}",
"BaseComponent[] getChannelsJoinedMessage();",
"@Override\r\n public void onPlayerJoin(PlayerJoinEvent event) {\r\n Player player = event.getPlayer();\r\n \r\n // Play back messages stored in this player's maildir (if any)\r\n String[] messages = plugin.getMessages(player);\r\n if (messages.length > 0) {\r\n \tfor (String message : messages) {\r\n \t\tplayer.sendMessage(message);\r\n \t}\r\n \tplayer.sendMessage(\"[Pe] §7Use /petition to view, comment or close\");\r\n }\r\n }",
"public static void join(Session session){\n _sessionRef.set(session); \n if(!session.isConnected())session.reconnect();\n }",
"@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Channel channel = ctx.getChannel();\n //session.setAttachment(new Player(session));\n Client client = new Client(channel);\n channel.setAttachment(client);\n engine.addClient(client);\n }",
"public void joinGameRoom(String roomCode) {\n try {\n roomCode = roomCode.toLowerCase();\n DataOutputStream out = new DataOutputStream(socket.getOutputStream());\n DataInputStream in = new DataInputStream(socket.getInputStream());\n out.writeUTF(\"Conn\" + roomCode);\n String response = in.readUTF();\n\n switch (response.substring(0, 4)) {\n case \"Conf\":\n String start = \"YELLOW\";\n String you = \"YELLOW\";\n\n if (response.charAt(4) == 'R')\n start = \"RED\";\n if (response.charAt(5) == 'R')\n you = \"RED\";\n\n ObjectInputStream inObj = new ObjectInputStream(socket.getInputStream());\n ArrayList<String> gameChat = new ArrayList<>((ArrayList<String>) inObj.readObject());\n inObj = new ObjectInputStream(socket.getInputStream());\n ArrayList<String> mainChat = new ArrayList<>((ArrayList<String>) inObj.readObject());\n new GameGUI().start(stage, mainMenuGUI, socket, roomCode, gameChat, mainChat, start, you);\n break;\n case \"Full\":\n AlertHandler.show(Alert.AlertType.ERROR, \"Room Full\", \"Room Full\", \"The room you tried to join is full.\");\n break;\n case \"Invl\":\n AlertHandler.show(Alert.AlertType.ERROR, \"Invalid Code\", \"Invalid Code\", \"The selected room does not exist\");\n break;\n\n }\n\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n }",
"public void join(Node chord);",
"@EventHandler\r\n\tpublic void onJoin(final PlayerJoinEvent e){\n\t\tBukkit.getScheduler().runTaskLater(QuickShop.instance, new Runnable(){\r\n\t\t\t@Override\r\n\t\t\tpublic void run(){\r\n\t\t\t\tMsgUtil.flush(e.getPlayer());\r\n\t\t\t}\r\n\t\t}, 60);\r\n\t}",
"@Override\n\tpublic void onUserJoinedRoom(RoomData arg0, String arg1) {\n\t\t\n\t}",
"public void testChannelHopping() throws RemoteException {\n List<Channel> channelList = mBinder.getChannelList();\n for(Channel channel : channelList) {\n mBinder.joinChannel(channel.getId());\n }\n try {\n Thread.sleep(TEST_OBSERVATION_DELAY);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"void sendJoinWorld(String worldName);",
"@Override\n\tpublic void onUserJoinedLobby(LobbyData arg0, String arg1) {\n\t\t\n\t}",
"public synchronized void join() {\n try {\n connection.close();\n listener.join();\n } catch (Exception io) {\n System.err.println(io.getMessage());\n io.printStackTrace();\n } \n }",
"public void actionPerformed(ActionEvent e) {\n try {\r\n if (roomOrUser == 1) {\r\n // send message to a room\r\n sock.executeCommand(new RoomMessageCommand(new LongInteger(name), textArea_1.getText()\r\n .getBytes()));\r\n textArea_2.setText(textArea_2.getText() + textField.getText() + \": \" + textArea_1.getText()\r\n + \"\\n\");\r\n } else if (roomOrUser == 2) {\r\n // send message to a user\r\n sock.executeCommand(new UserMessageCommand(new LongInteger(name), textArea_1.getText()\r\n .getBytes(), true));\r\n textArea_2.setText(textArea_2.getText() + textField.getText() + \": \" + textArea_1.getText()\r\n + \"\\n\");\r\n }\r\n } catch (InvalidCommandException ex) {\r\n JOptionPane.showMessageDialog(null, \"Unable to join or leave room.\", \"alert\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n }",
"public boolean joinGame(){\n\t\tJoinGameBean resultBean = new JoinGameBean();\n\t\tresultBean.setTo(jid);\n\t resultBean.setFrom(fromJID);\n\t resultBean.setType(XMPPBean.TYPE_RESULT);\n\t connection.sendPacket(new BeanIQAdapter(resultBean));\n//\t System.out.println(\"JoinGameBean vom typ RESULT an \" + jid + \" gesendet\");\n\t return true;\n\t}",
"private void onJoinRoom(String roomName) {\n if (roomEntries.containsKey(roomName)) {\n backBTN.setEnabled(chatController.getJoinedRooms().size() > 0);\n JPanel panel = roomEntries.get(roomName);\n panel.removeAll();\n renderRoom(roomName, panel);\n panel.revalidate();\n panel.repaint();\n }\n }",
"@Override\n public void onTombstoneLinkClicked(String roomId, String senderId) {\n showInitLoading();\n\n // Extract the server name\n String serverName = MXPatterns.extractServerNameFromId(senderId);\n\n List<String> viaServers = null;\n\n if (serverName != null) {\n viaServers = Collections.singletonList(serverName);\n }\n\n mSession.joinRoom(roomId, viaServers, new ApiCallback<String>() {\n @Override\n public void onNetworkError(Exception e) {\n hideInitLoading();\n Toast.makeText(getActivity(), e.getLocalizedMessage(), Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onMatrixError(MatrixError e) {\n hideInitLoading();\n Toast.makeText(getActivity(), e.getLocalizedMessage(), Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onUnexpectedError(Exception e) {\n hideInitLoading();\n Toast.makeText(getActivity(), e.getLocalizedMessage(), Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onSuccess(String info) {\n hideInitLoading();\n\n // Open the room\n if (isAdded()) {\n Intent intent = new Intent(getActivity(), VectorRoomActivity.class);\n intent.putExtra(VectorRoomActivity.EXTRA_ROOM_ID, info);\n intent.putExtra(VectorRoomActivity.EXTRA_MATRIX_ID, mSession.getCredentials().userId);\n getActivity().startActivity(intent);\n getActivity().finish();\n }\n }\n });\n }",
"public IRCSocketManager join(String channel)\n\t{\n\t\t// If it's less than two (it doesn't have a prefix or is just the\n\t\t// prefix)\n\t\tif (channel.length() < 2)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Channel name too short.\");\n\t\t}\n\t\t\n\t\t// Get the first char of the channel\n\t\tchar c = channel.charAt(0);\n\n\t\t// Check if they gave us a valid channel prefix\n\t\tif (!BotUtils.arrayContains(IRC_CHANPREFIXES, c))\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"Channel prefix invalid.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsendRaw(\"JOIN \" + channel);\n\t\t}\n\t\treturn this;\n\t}",
"@Override\n public void handleTextMessage(WebSocketSession client, TextMessage message) throws IOException {\n System.out.println(\"connecting\");\n String [] parseMessage = message.getPayload().split(\" \",2);\n boolean found = false;\n System.out.println(parseMessage[0]);\n System.out.println(parseMessage[0].equals(\"join\"));\n if (parseMessage[0].equals(\"join\")) {\n System.out.println(\"joinning\");\n for (Room room: rooms) {\n System.out.println(room.name);\n if (room.name.equals(parseMessage[1])) {\n System.out.println(\"room found\");\n room.addClient(client);\n\n found = true;\n }\n }\n if (found == false) {\n System.out.println(\"making new room\");\n Room newRoom = new Room(parseMessage[1], client);\n rooms.add(newRoom);\n }\n TextMessage newMessage;\n String json = \"{\\\"user\\\" : \\\"\" + parseMessage[0] + \"\\\", \\\"message\\\": \\\"\"\n + parseMessage[1] + \"\\\"}\";\n newMessage = new TextMessage(json);\n client.sendMessage(newMessage);\n\n }else{\n for (Room room: rooms) {\n if(room.clientInRoom(client))\n System.out.println(\"send message\");\n room.forwardMessage(message);\n }\n\n\n }\n }",
"@EventHandler\r\n\tpublic void onJoin(PlayerJoinEvent e) {\r\n\t\tBukkit.broadcastMessage(ChatColor.GRAY + \"Fellow Gamer \" +\r\n\t\t\t\t\t\t\t\tChatColor.YELLOW + e.getPlayer().getDisplayName() + \r\n\t\t\t\t\t\t\t\tChatColor.GRAY + \" has joined.\");\r\n\t}",
"@Override\n\tpublic void channelActive(GaoContext context) {\n\t\t\n\t}",
"private void sendMessage(String content, String room) {\n }",
"public static void main(String[] args) throws Exception {\n String server = \"irc.chat.twitch.tv\";\r\n String nick = \"hackpolyplaystwitch\";\r\n String login = \"hackpolyplaystwitch\";\r\n // The channel which the bot will join.\r\n String channel = \"#hackpolyplaystwitch\";\r\n\r\n Socket socket = new Socket(server, 6667);\r\n BufferedWriter writer = new BufferedWriter(\r\n new OutputStreamWriter(socket.getOutputStream( )));\r\n BufferedReader reader = new BufferedReader(\r\n new InputStreamReader(socket.getInputStream( )));\r\n // Join the channel.\r\n\r\n // Create pubsub object\r\n JedisPubSub pubsub = new JedisPubSub() {\r\n @Override\r\n // Fired off when receiving a message from redis\r\n public void onMessage(String redisChannel, String message) {\r\n System.out.println(\"Received Message from Redis Channel: \" + redisChannel + \" - \" + message);\r\n String[] botMsg = message.split(\":\");\r\n if (botMsg[0].equals(\"say\")){\r\n String msg = \"PRIVMSG \" + channel + \" :\" + botMsg[1] + \"\\r\\n\";\r\n System.out.println(msg);\r\n try {\r\n writer.write(msg);\r\n writer.flush();\r\n } catch(IOException ioe){\r\n System.out.println(\"We got exception\");\r\n //Handle exception here, most of the time you will just log it.\r\n }\r\n } else if (botMsg[0].equals(\"whisper\")){\r\n String msg = \"PRIVMSG \" + channel + \" :/w \" + botMsg[1] + \" \" + botMsg[2] + \"\\r\\n\";\r\n System.out.println(msg);\r\n try {\r\n writer.write(msg);\r\n writer.flush();\r\n } catch(IOException ioe){\r\n System.out.println(\"We got exception\");\r\n //Handle exception here, most of the time you will just log it.\r\n }\r\n }\r\n }\r\n };\r\n // Run new thread to connect to redis server\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n // log(\"Connecting\");\r\n Jedis jedis = new Jedis(\"redis://:[email protected]:6379/0\");\r\n // log(\"subscribing\");\r\n jedis.subscribe(pubsub, \"game\");\r\n // log(\"subscribe returned, closing down\");\r\n jedis.quit();\r\n } catch (Exception e) {\r\n System.out.println(\"Exception thread\");\r\n // log(\">>> OH NOES Sub - \" + e.getMessage());\r\n // e.printStackTrace();\r\n }\r\n }\r\n }, \"game\").start();\r\n // Connect directly to the IRC server.\r\n System.out.println(\"Reading from server\");\r\n // Log on to the server.\r\n writer.write(\"PASS oauth:os78xr7aqmuzyfxiskm9wql2armqsh\\r\\n\");\r\n writer.write(\"NICK \" + nick + \"\\r\\n\");\r\n writer.write(\"CAP REQ :twitch.tv/commands\\r\\n\");\r\n // writer.write(\"USER \" + login + \" 8 * : Java IRC Hacks Bot\\r\\n\");\r\n writer.flush( );\r\n writer.write(\"JOIN \" + channel + \"\\r\\n\");\r\n writer.flush( );\r\n // Read lines from the server until it tells us we have connected.\r\n String line = line = reader.readLine();\r\n System.out.println(\"Waiting for response now\");\r\n while ((line = reader.readLine( )) != null) {\r\n System.out.println(line);\r\n break;\r\n // if (line.indexOf(\"004\") >= 0) {\r\n // // We are now logged in.\r\n // break;\r\n // }\r\n // else if (line.indexOf(\"433\") >= 0) {\r\n // System.out.println(\"Nickname is already in use.\");\r\n // return;\r\n // }\r\n }\r\n System.out.println(\"We are done\");\r\n // Join the channel.\r\n //writer.write(\"JOIN \" + channel + \"\\r\\n\");\r\n //writer.flush( );\r\n // Keep reading lines from the server.\r\n while ((line = reader.readLine( )) != null) {\r\n if (line.toLowerCase( ).startsWith(\"ping \")) {\r\n // We must respond to PINGs to avoid being disconnected.\r\n writer.write(\"PONG tmi.twitch.tv\\r\\n\");\r\n // writer.write(\"PRIVMSG \" + channel + \" :I got pinged!\\r\\n\");\r\n writer.flush();\r\n }\r\n else {\r\n // Print the raw line received by the bot.\r\n //TODO DM\r\n //writer.write(\"PRIVMSG #2ggaming :/w vikas3321 aaaaaaaaaaaaaaa\\r\\n\");\r\n //writer.flush();\r\n System.out.println(line);\r\n String[] msg = line.split(\":\",3);\r\n String[] user = msg[1].split(\"!\", 2);\r\n try{\r\n System.out.println(\"USER: \" + user[0]);\r\n System.out.println(\"MSG: \" + msg[2]);\r\n if (msg[2].charAt(0) == '!'){\r\n Commands.checkCommands(msg[2], user[0]);\r\n }\r\n } catch (ArrayIndexOutOfBoundsException e){\r\n }\r\n }\r\n }\r\n }",
"@Override\n\tpublic void doChat(LoginDetails loginDetails) {\n\tSystem.out.println(\"Boomer chat\");\t\n\t}",
"public void executeJoiningPlayer(Player player) {\r\n nui.setupNetworkPlayer(player);\r\n }",
"@Override\n\tpublic void playerJoining(String playerID) {\n\t}",
"public void sendChat(String message) {\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch \"+message);\n\t}",
"void joinGame(String playeruuid);",
"public boolean join(){\n\t\tif (joined) return true;\n\t\t\n StructuredDocument creds = null;\n try {\n AuthenticationCredential authCred = new AuthenticationCredential(peerGroup, null, creds );\n MembershipService membership = peerGroup.getMembershipService();\n Authenticator auth = membership.apply( authCred );\n \n // Check if everything is okay to join the group\n if (auth.isReadyForJoin()){\n Credential myCred = membership.join(auth);\n StructuredTextDocument doc = (StructuredTextDocument)\n myCred.getDocument(new MimeMediaType(\"text/plain\"));\n }\n else\n log.error(\"You cannot join repository\");\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n log.info(\"Joined to Virtual Repository (low-level)\");\n //change DatabaseDiscovery\n DatabaseDiscovery dd = new DatabaseDiscovery(peerGroup.getParentGroup());\n \n try {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n //looking for cmu service\n try {\n\t\t\tmanagementModule = dd.obtainManagementServ(peerGroup.getPeerID().toString());\n\t\t} catch (GridException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n \n \n //point to discovery service in joined group\n new DatabaseDiscovery(peerGroup);\n\n this.joined = true; \n \n\t\treturn true;\n\t}",
"public void sendRequest() {\r\n\t\t\r\n\t\tclient.join(this, isHost, gameCode, playerName, playerNumber);\r\n\t\t\r\n\t}",
"public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }",
"public void playerJoins(final SonicPlayer sP) {\n\t\t_T.run_ASync(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (!checkConnection()) {\n\t\t\t\t\t//Something is wrong, kick the player\n\t\t\t\t\t_.badMsg(sP.getPlayer(), \"Something is wrong with the game.. Sorry! Contact Stoux if he is online!\");\n\t\t\t\t\tsonic.playerQuit(sP);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void joinQuorum() {\n AddQuorumServerRequest request = AddQuorumServerRequest.newBuilder()\n .setServerAddress(NetAddress.newBuilder()\n .setHost(mLocalAddress.getHostString())\n .setRpcPort(mLocalAddress.getPort()))\n .build();\n RaftClient client = createClient();\n client.async().sendReadOnly(Message.valueOf(\n UnsafeByteOperations.unsafeWrap(\n JournalQueryRequest\n .newBuilder()\n .setAddQuorumServerRequest(request)\n .build().toByteArray()\n ))).whenComplete((reply, t) -> {\n if (t != null) {\n LogUtils.warnWithException(LOG, \"Exception occurred while joining quorum\", t);\n }\n if (reply != null && reply.getException() != null) {\n LogUtils.warnWithException(LOG,\n \"Received an error while joining quorum\", reply.getException());\n }\n try {\n client.close();\n } catch (IOException e) {\n LogUtils.warnWithException(LOG, \"Exception occurred closing raft client\", e);\n }\n });\n }",
"@Override\n public void channelActive(final ChannelHandlerContext ctx) throws UnknownHostException {\n System.err.println(\"处于活连接\");\n //ctx.writeAndFlush(\"Welcome to secure chat service!\\n\");\n }",
"@EventHandler\n\tpublic void OnPlayerJoin (PlayerJoinEvent e) throws SQLException{\n\t\tPlayer p = e.getPlayer();\n\t\te.setJoinMessage(null);\n\t\tJoinedServer(p);\n\t}",
"public\tvoid\tuserJoined(UIRosterEntry user)\n\t{\n\t\t\n\t\tNewChatPanel panel = this.getDiscussionPanel();\n\t\n\t\tString joinedUserName = user.getDisplayName();\n\t\tString joinedUserId = user.getUserId();\n\t\t\n\t\tString senderId = this.rosterModel.getCurrentActivePresenter().getUserId();\n\t\tString senderName = this.rosterModel.getCurrentActivePresenter().getDisplayName();\n\t\t\n\t\t//Window.alert(\"senderId = \"+senderId+\":senderName:\"+senderName);\n\t\t//Window.alert(\"User Joined:joinedUserName :\"+joinedUserName+\":joinedUser Status:\"+user.getJoinedStatus());\n\t\t//Window.alert(\"lastUserJoined = \"+lastUserJoined);\n\t\tif((joinedUserId != senderId ) && (joinedUserId != lastUserJoined ) && (senderName != \"Not Available\") && (joinedUserId != me.getUserId()) && (!user.getJoinedStatus()))\n\t\t{\n\t\t//\tpanel.receiveChatMessage(\"\", sender,joinedUser + \" has joined the conference\");\n\t \t String s = ConferenceGlobals.getDisplayString(\"user_joined_message\",\"has joined the dimdim web meeting.\");\n\t \t //Window.alert(\"adding \"+s);\n\t\t\tpanel.receiveWelcomeMessage(joinedUserName + \" \"+s);\n\t\t\tlastUserJoined = joinedUserId;\n\t\t}\n\t\telse if((joinedUserId == senderId) && lastUserJoined == null && (joinedUserId != lastUserJoined))\n\t\t{\n\t \t String s = ConferenceGlobals.getDisplayString(\"user_welcome_message\",\"Welcome to the Dimdim Web Meeting.\");\n\t \t //Window.alert(\"adding welcom message...\");\n\t\t\tpanel.receiveWelcomeMessage(s);\n\t\t\tlastUserJoined = joinedUserId;\n\t\t}\n\t}",
"@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)\n public void onPlayerJoin(PlayerJoinEvent ev) {\n ObjectiveSender.handleLogin(ev.getPlayer().getUniqueId());\n }",
"private void doConnect() throws Exception {\n try {\n Registry reg = LocateRegistry.getRegistry(conf.getNameServiceHost(), conf.getNameServicePort());\n server = (IChatServer) reg.lookup(conf.getServerName());\n } catch (RemoteException e) {\n throw new Exception(\"rmiregistry not found at '\" + conf.getNameServiceHost() + \":\" +\n conf.getNameServicePort() + \"'\");\n } catch (NotBoundException e) {\n throw new Exception(\"Server '\" + conf.getServerName() + \"' not found.\");\n }\n\n //Unir al bot al canal com a usuari\n //el Hashcode li afig un valor unic al nom, per a que ningu\n //li copie el nom com a usuari\n user = new ChatUser(\"bot \" + this.hashCode(), this);\n if (!server.connectUser(user))\n throw new Exception(\"Nick already in use\");\n\n //Comprovar si hi ha canals en el servidor.\n IChatChannel[] channels = server.listChannels();\n if (channels == null || channels.length == 0)\n throw new Exception(\"Server has no channels\");\n \n //Unir el bot a cadascun dels canals\n for (IChatChannel channel : channels) {\n channel.join(user);\n }\n\n System.out.println(\"Bot unit als canals i preparat.\");\n }",
"@Override\r\n\tpublic void join() {\n\r\n\t}",
"@EventHandler(ignoreCancelled = true)\n public void onPlayerJoin(PlayerJoinEvent event) {\n new AtlasTask() {\n @Override\n public void run() {\n if (event.getPlayer().isOnline()) {\n update(event.getPlayer());\n }\n }\n }.later(20);\n }",
"public void kickStart() {\n startLobby();\n }",
"public void addRoom(Chatroom room){\n\n }",
"@Test\n public void getAllMessages() {\n IUser userOne = new User(\"UserOne\", \"password\");\n IUser userTwo = new User(\"UserTwo\", \"password\");\n\n IMessageContent textMessageOne = new MessageContent(\"Hello my friends\", MessageType.TEXT);\n IMessageContent textMessageTwo = new MessageContent(\"Hi how are you?\", MessageType.TEXT);\n\n IMessage messageOne = new Message(userOne,textMessageOne);\n IMessage messageTwo = new Message(userTwo,textMessageTwo);\n\n //User needs to be a part of channel to send message\n channel.join(userOne);\n channel.join(userTwo);\n\n channel.sendMessage(messageOne);\n channel.sendMessage(messageTwo);\n\n\n //2 sent messages, 2 join message from base user joining.\n assertTrue(channel.getAllMessages().size() == 4);\n\n }",
"public void sendeLobby();",
"public void destination(JoinData joinData){\n WelcomeData welcome = new WelcomeData();\n NodeInfo nodeInfo = joinData.joinInfo;\n welcome.joinTable = joinData.joinTable;\n System.out.println(\"WELCOME!\");\n send(welcome, nodeInfo);\n }",
"public void addParty(L2Party party)\r\n\t{\r\n\t\t_partys.add(party);\r\n\t\tif (party.getLevel() > _channelLvl)\r\n\t\t\t_channelLvl = party.getLevel();\r\n\t\tparty.setCommandChannel(this);\r\n\t\tif (_partys.size() > 2)\r\n\t\t\tparty.broadcastToPartyMembers(new SystemMessage(SystemMessageId.JOINED_CHANNEL_ALREADY_OPEN));\r\n\t\telse\r\n\t\t\tparty.broadcastToPartyMembers(new SystemMessage(SystemMessageId.JOINED_COMMAND_CHANNEL));\r\n\t\tparty.broadcastToPartyMembers(ExOpenMPCC.STATIC_PACKET);\r\n\r\n\t\tif (_partys.size() < 5)\r\n\t\t{\r\n\t\t\tSystemMessage sm = new SystemMessage(SystemMessageId.COMMAND_CHANNEL_ONLY_AT_LEAST_5_PARTIES);\r\n \t\tbroadcastToChannelMembers(sm);\r\n \t\tsm = new SystemMessage(SystemMessageId.S1_PARTIES_REMAINING_UNTIL_CHANNEL);\r\n \t\tsm.addNumber(5 - _partys.size());\r\n\t\t}\r\n\t\tbroadcastToChannelMembers(new ExMultiPartyCommandChannelInfo(this));\r\n\t}",
"public void connectLobbyServer()\n {\n try {\n LobbyServerConnection.getInstance().connect();\n\n lobbymanager = LobbyServerConnection.getInstance().getLobbyManager();\n\n //verkrijgt alle lobbys\n List<Lobby> lobbyList = LobbyServerConnection.getInstance().getAllLobbys();\n LobbyManager.getInstance().addLobbys(lobbyList);\n update();\n subscribeTry();\n }\n catch (Exception e)\n {\n\n btnCreateLobby.setDisable(true);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Lobby server\");\n\n // Header Text: null\n alert.setHeaderText(\"connection error\");\n alert.setContentText(\"Couldn't connect to the lobbyserver. \\nGames cannot be played right now but you can still check your history\");\n\n alert.showAndWait();\n }\n }",
"@Override\n\tpublic void joinGame(CatanColor color) \n\t{\n\t\tReference ref = Reference.GET_SINGLETON();\n\t\tJSONObject model;\n\t\ttry \n\t\t{\n\t\t\tString model_string =ref.proxy.joinGame(ref.game_id, color);\n\t\t\tmodel = new JSONObject(model_string);\n\t\t\tif(model.equals(\"FAILED\\n\"))\n\t\t\t{\n\t\t\t\tthrow new JoinExceptions(\"Join Refused by server\");\n\t\t\t}\n\t\t\tif(getSelectColorView().isModalShowing())\n\t\t\t{\n\t\t\t\tgetSelectColorView().closeModal();\n\t\t\t\tsetSelectColorView(null);\n//\t\t\t\tif(this.getJoinGameView().isModalShowing())\n//\t\t\t\t{\n//\t\t\t\t\tgetJoinGameView().closeModal();\n//\t\t\t\t}\n\t\t\t}\n\t\t\tModelPopulator.populateModel(model, ref.getFascade());\n\t\t\t// If join succeeded\n\t\t\tReference.GET_SINGLETON().player_color = color;\n\n\t\t\t//joinAction.execute();\n\t\t} \n\t\tcatch (JSONException | JoinExceptions e) \n\t\t{\n\t\t\tString error = \"Sorry, Failed to Join Game. Please try again or contact your system administrator.\";\n\t\t\tthis.messageView.setTitle(\"Join Failed\");\n\t\t\tthis.messageView.setMessage(error);\n\t\t\tSystem.err.print(\"ERROR: FAILED TO JOIN GAME\");\n\t\t\te.printStackTrace();\n\n\t\t\tif(!this.messageView.isModalShowing())\n\t\t\t{\n\t\t\t\tthis.messageView.showModal();\n\t\t\t}\n\t\t\tif(getSelectColorView().isModalShowing())\n\t\t\t{\n\t\t\t\tgetSelectColorView().closeModal();\n\t\t\t}\n\t\t} \n\t}",
"private void join(String address)\n\t{\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tif (stdGroup.groupExist() == null)\n\t\t\t\t{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstdGroup.createPeerGroup(WatchDog.PIPEIDSTR);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\tlog.severe(\"I cannot create standard chat group! Bye...\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (StdChatException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tstdGroup.join(address);\n\t\t\t} catch (StdChatException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t} catch (PeerGroupException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tlog.severe(\"I cannot create standard chat group! Bye...\");\n\t\t\tSystem.exit(0);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"public L2CommandChannel(L2PcInstance leader) \r\n\t{\r\n\t\t_commandLeader = leader;\r\n\t\t_partys = new FastList<L2Party>();\r\n\t\t_partys.add(leader.getParty());\r\n\t\t_channelLvl = leader.getParty().getLevel();\r\n\t\tleader.getParty().setCommandChannel(this);\r\n\t\tleader.getParty().broadcastToPartyMembers(new SystemMessage(SystemMessageId.COMMAND_CHANNEL_FORMED));\r\n\t\tleader.getParty().broadcastToPartyMembers(ExOpenMPCC.STATIC_PACKET);\r\n\t\tleader.getParty().broadcastToPartyMembers(new ExMultiPartyCommandChannelInfo(this));\r\n\t}",
"public boolean isJoined() {\n\t\treturn state == State.JOINED;\n\t}",
"public void onJoinMeetingButtonClick(android.view.View view) {\n // Hide keyboard\n InputMethodHelper.hideSoftKeyBoard(this.getApplication().getApplicationContext(),\n view.getWindowToken());\n\n if (meetingJoined) {\n // Leave the meeting.\n try {\n this.anonymousConversation.leave();\n this.meetingJoined = false;\n this.updateUiState();\n\n } catch (SFBException e) {\n e.printStackTrace();\n }\n } else {\n //Join the meeting.\n // Get the display name.\n final android.widget.TextView displayNameTextView =\n (android.widget.TextView) findViewById(R.id.displayNameEditTextId);\n\n // Get the meeting uri\n final android.widget.EditText joinMeetingEditText =\n (android.widget.EditText) findViewById(R.id.meetingUriEditTextId);\n String meetingUriString = joinMeetingEditText.getText().toString();\n URI meetingUri = URI.create(meetingUriString);\n\n // Join meeting and monitor conversation state to determine meeting join completion.\n try {\n\n // Set the default device to Speaker\n //this.devicesManager.setActiveEndpoint(DevicesManager.Endpoint.LOUDSPEAKER);\n\n // To join an Online meeting use the discover URL method. Please refer the documentation for\n // the overall procedure of getting the discover URL and authorization token for a meeting.\n //\n // final URL discoverUrl = new URL(\"https://meetings.lync.com/platformService/discover?...\");\n // final String authToken = \"psat=...\";\n // this.anonymousSession = this.application.joinMeetingAnonymously(\n // displayNameTextView.getText().toString(), discoverUrl, authToken);\n\n this.anonymousSession = this.application.joinMeetingAnonymously(\n displayNameTextView.getText().toString(), meetingUri);\n\n this.anonymousConversation = this.anonymousSession.getConversation();\n SFBDemoApplication application = (SFBDemoApplication)getApplication();\n application.setAnonymousConversation(this.anonymousConversation);\n\n // Conversation begins in Idle state. It will move from Idle->Establishing->InLobby/Established\n // depending on meeting configuration.\n // We will monitor property change notifications for State property.\n // Once the conversation is Established, we will move to the next activity.\n this.conversationPropertyChangeListener = new ConversationPropertyChangeListener();\n this.anonymousConversation.addOnPropertyChangedCallback(this.conversationPropertyChangeListener);\n } catch (SFBException e) {\n e.printStackTrace();\n }\n }\n }",
"public void setLobby(Lobby lobby)\r\n\t{\r\n\t\treceiver.setLobby(lobby);\t\r\n\t}",
"@Override\r\n\tpublic void updateNiakworkClientWantJoin(NiakworkPlayerSocket npsocket, String pseudo) {\n\t\t\r\n\t}",
"public void createChat(String roomname, String nickname) {\n\t\t\n\t\tboolean successful = false;\n\t\tString errormessage = \"\";\n\t\t\n\t\t// set default value for roomname\n\t\tif (roomname.equals(\"\")){\n\t\t\troomname = \"default\";\n\t\t}\n\t\t\n\t\t// set default value for nickname\n\t\tif (nickname.equals(\"\")){\n\t\t\tnickname = chatConnection.getConnectedUserID();\n\t\t}\n\t\t// if connection to room already exists, only change the nickname\n\t\tif (roomlist.containsKey(roomname)){ // room already exists\n\t\t\tChatRoom room = roomlist.get(roomname);\n\t\t\tif (!room.getNickname().equals(nickname)){\n\t\t\t\ttry {\n\t\t\t\t\troom.changeNickname(nickname);\n\t\t\t\t\tsuccessful = true;\n\t\t\t\t\troomlist.fireTableDataChanged();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\terrormessage = e.getMessage();\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t}\n\t\telse { // make new connection\n\t\t\tChatRoom groupchat;\n\t\t\ttry {\n\t\t\t\tgroupchat = new ChatRoom(roomname, nickname);\n\t\t\t\troomlist.put(roomname, groupchat);\n\t\t\t\troomlist.fireTableDataChanged();\n\t\t\t\tsuccessful = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\terrormessage = e.getMessage();\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}\n\t\tif (!successful){\n\t\t\tcreateChatConnectDialog(errormessage);\n\t\t}\n\t}",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n\t\tif (sender instanceof ConsoleCommandSender){\n\t\t\t\n\t\t\tsender.sendMessage(\"§r ARRETE DE FAIRE LE CON\");\n\t\t\t\n\t\t}\n\t\t//si c'est un joueur on gère la commandes\n\t\telse if(sender instanceof Player){\n\t\t\t\n\t\t\tPlayer player = (Player) sender;\n\t\t\t\n\t\t\t//on verifie que la commende est la bonne\n\t\t\tif(cmd.getName().equalsIgnoreCase(\"castejoin\")){\n\t\t\t\t\n\t\t\t\t//on verifie que l'on a bien des arguments\n\t\t\t\tif(args.length != 0){\n\t\t\t\t\t\n\t\t\t\t\t//on recupère la caste en argument\n\t\t\t\t\tString caste = args[0];\n\t\t\t\t\t\n\t\t\t\t\t//le message que le joueur recevra s'il ne peut pas rejoindre la caste au cas ou il y aurais plusieur raison\n\t\t\t\t\tString message = \"\"; \n\t\t\t\t\t\n\t\t\t\t\t//si le joueur peut rejoindre une caste\n\t\t\t\t\tif( (message = playerCanJoinCaste(player,caste)).equals(\"ok\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\tint indexCaste = -1;\n\t\t\t\t\t\t//si la caste existe elle nous renvoie l'id de la position dans la liste des Caste sinon -1\n\t\t\t\t\t\tif( (indexCaste = isCasteExiste(caste)) != -1){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//on recupère la class caste qui correspond pour la mettre dans la hashmap\n\t\t\t\t\t\t\tCaste casteClass = Caste.castes.get(indexCaste);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//on l'ajoute a la liste des joueur et des caste qui leur corespond\n\t\t\t\t\t\t\tMain.playerCaste.put(player, casteClass);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//on ecrit le changement dans le fichier player .yml\n\t\t\t\t\t\t\tPlayerManager.createEntryYml(player);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//message de confirmation\n\t\t\t\t\t\t\tplayer.sendMessage(\"vous avez rejoins la caste : \"+caste);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//la caste demander n'existe pas\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tplayer.sendMessage(\"la caste : \"+caste+\" n'existe pas\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//le joueur ne peut pas pretendre a aller dans cette caste\n\t\t\t\t\telse{\n\t\t\t\t\t\t\n\t\t\t\t\t\tplayer.sendMessage(message);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tplayer.sendMessage(\"/casteJoin <nom_de_la_caste>\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tsender.sendMessage(\"impossible Oo\");\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"public void join(String ip,int port, int myPort){\r\n\t\ttry{\r\n\t\t\tXmlRpcSender.execute(\"joinRequest\", new Object[] { this.ip, String.valueOf(this.port), this.id }, ip, port);\r\n\t\t\tthis.isJoined = true;\r\n\t\t}catch(Exception e ){e.printStackTrace();}\t\r\n\t}",
"private void connectToCS(int port, String host)throws Exception{\n socket = new Socket(host, port);\n inStream = new PDUInputStream(socket.getInputStream());\n outStream = new PDUOutputStream(socket.getOutputStream());\n\n PduJoin join = new PduJoin(nickName);\n outStream.writeToServer(join.getByteArray());\n\n chatCS();\n }",
"@Override\n\t\t\t\tpublic void isComposingReceived(LinphoneCore lc, LinphoneChatRoom cr) {\n\t\t\t\t\t\n\t\t\t\t}",
"@EventHandler\n public void onPlayerConnect(PlayerJoinEvent e){\n Player p = e.getPlayer();\n GuildMCFunctions functions = new GuildMCFunctions();\n if (p.hasPlayedBefore()){\n functions.displayGuildInfo(p);\n GuildPlayer gp = GuildPlayer.getGuildPlayer(p);\n if(gp.getRole() != GuildRole.NONGUILDED) {\n Guild guild = Guild.getGuildByName(gp.getGuild());\n String[] messages = {\"§6§l[§a§lGuildMC§6§l] §r§e==-==-==-==-==-==-==-==-==-==-==\", ChatColor.BLUE + \"-= \" + guild.getName() + \" =-\", ChatColor.AQUA + \"Your role: \" + gp.getRole(), ChatColor.GREEN + \"Guild Level: \" + guild.getExperience()};\n for (String i : messages) {\n p.sendMessage(i);\n }\n } else {\n p.sendMessage(\"§f[§aGuildMC§f] You don't have guild.\");\n }\n } else {\n GuildPlayer newgplayer = new GuildPlayer(p.getName(),GuildRole.NONGUILDED,false, \"default\");\n SerializationManager serializationManager = new SerializationManager();\n String json = serializationManager.serializeGuildProfile(newgplayer);\n File file = new File(Main.savePlayerDir, p.getName()+\".json\");\n FileUtils.save(file,json);\n }\n\n }",
"static void goRoom(Command command) throws InterruptedException {\n if (currentRoom == airport) {\n lockRoom(command);\n }\n if (!command.hasSecondWord()) {\n System.out.println(\"Go where?\");\n return;\n }\n\n String direction = command.getSecondWord();\n\n Room nextRoom = currentRoom.getExit(direction);\n player.setCurrentRoom(nextRoom);\n /* loop that when next room is equel to null it print a message that says \"there is no door\" \n but if nextRoom is not equel null set currentRoom to nextRoom and print the description of the new room*/\n if (nextRoom == null) {\n System.out.println(\"There is no path!\");\n } else {\n currentRoom = nextRoom;\n System.out.println(player.getCurrentRoom().getLongDescription());\n\n }\n\n forceDialog();\n }",
"private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }",
"private void uponInConnectionUp(InConnectionUp event, int channelId) {\n }",
"public void joinGame(Socket clientSocket){\n\t\t//spawn a new thread that would listen to this client's requests\n\t\tClientListener listener = new ClientListener(clientSocket);\n\t\t\n\t\tsynchronized (joinGameLock) {\n\t\t\t//Will be used by session to get answers from client\n\t\t\tclientListeners.add(listener);\n\t\t\t\n\t\t\t//add socket to collection of connected clientSockets\n\t\t\tconnectedClientSockets.add(clientSocket);\n\t\t\t\n\t\t\t//start the clientListener thread to listen for game inputs\n\t\t\tlistener.start(); \n\t\t\t\n\t\t\tif(connectedClientSockets.size()==MIN_PLAYERS){\n\t\t\t\t//Session is ready to be started. Wake up the session thread to start game. \n\t\t\t\tjoinGameLock.notifyAll();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//signal the client that they have joined the gameSession\n\t\tString message = String.format(\"@joinAck %d\", this.sessionID);\n\t\tsendMsgToSocket(message, clientSocket);\n\t\t\n\t}",
"public void startPrivateChannelBtn(View v) {\n String myName = FirebaseAuth.getInstance().getCurrentUser().getDisplayName();\n String hisName = user.getDisplayName();\n String cidun;\n\n if (myName.compareTo(hisName) < 0) {\n cidun = myName + \"-\" + hisName;\n } else {\n cidun = hisName + \"-\" + myName;\n }\n\n String cid = cidun.replaceAll(\"\\\\s\",\"\")\n .replaceAll(\"[åäöÅÄÖ]\",\"\");\n\n\n Database.setPrivate(cid, true, res -> {\n Map<String, Boolean> data = new HashMap<String, Boolean>() {{\n put(myName, true);\n put(hisName, true);\n }};\n Database.channelSubscribe(cid, data, r -> {});\n });\n\n Fragment fragment = ChatFragment.newInstance(cid);\n AppCompatActivity activity = (AppCompatActivity)v.getContext();\n\n activity.getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment_container, fragment, cid)\n .addToBackStack(cid)\n .commit();\n\n Log.d(\"New channel\" , \"\" + cid);\n\n }"
] | [
"0.7561529",
"0.7104037",
"0.7102015",
"0.6992715",
"0.6844648",
"0.67624813",
"0.6653998",
"0.66522986",
"0.6569982",
"0.6461444",
"0.63839895",
"0.6303393",
"0.6249874",
"0.6241402",
"0.62101585",
"0.61777747",
"0.61596376",
"0.6093923",
"0.60646397",
"0.5947007",
"0.59442836",
"0.5920172",
"0.59070694",
"0.5885971",
"0.5838332",
"0.5791873",
"0.57887954",
"0.57886827",
"0.57818294",
"0.57623273",
"0.5758549",
"0.57414484",
"0.5728849",
"0.5727265",
"0.57132214",
"0.5707163",
"0.568839",
"0.56883496",
"0.5682054",
"0.5678922",
"0.56647724",
"0.56642956",
"0.5656124",
"0.5650843",
"0.56395817",
"0.56312513",
"0.5630101",
"0.5626992",
"0.5613455",
"0.5592199",
"0.55810916",
"0.5562073",
"0.554869",
"0.5541458",
"0.5524916",
"0.5524877",
"0.5514555",
"0.5509476",
"0.55045235",
"0.5492136",
"0.54919416",
"0.5481275",
"0.5476763",
"0.5475919",
"0.54680353",
"0.5458931",
"0.5427661",
"0.5425206",
"0.542372",
"0.54006827",
"0.53852993",
"0.5377098",
"0.53715044",
"0.5367559",
"0.5367057",
"0.53670514",
"0.5340471",
"0.53386545",
"0.53371316",
"0.5327163",
"0.53056204",
"0.5302696",
"0.5301815",
"0.53011346",
"0.5299925",
"0.5297652",
"0.52878165",
"0.5284559",
"0.5282025",
"0.52756715",
"0.52680093",
"0.5266073",
"0.52582717",
"0.52513474",
"0.5245795",
"0.52422583",
"0.5241324",
"0.5241221",
"0.5238648",
"0.5235068"
] | 0.75740945 | 0 |
Leaves the channel of the room | public void leaveChannel() {
mRtcEngine.leaveChannel();
appointment.removeOfCall(new DatabaseUser(MainUser.getMainUser().getId()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void leaveChannel() {\n // Leave the current channel\n mRtcEngine.leaveChannel();\n }",
"public void leaveChat(){\n toServer.println(\"leavechat\" + \" \" + chatID + \" \" + username);\n toServer.flush();\n gui.dispose();\n clientModel.activeChats.remove(chatID);\n }",
"@Override\n\tpublic SocketIOSocket leave(String room) {\n\t\tString roomName = namespace.getName() + \"/\" + room;\n\t\tthis.manager.onLeave(this.id, roomName);\n//\t\tthis.manager.store.publish('leave', this.id, name);\n\t\treturn this;\n\t}",
"public void leave()\n {\n if (chatRoomSession != null)\n { // manually close the chat room session\n // and set the chat room session to null.\n chatRoomSession.close();\n chatRoomSession = null;\n }\n\n Iterator<Entry<String, Contact>> membersSet =\n participants.entrySet().iterator();\n\n while (membersSet.hasNext())\n {\n Map.Entry<String, Contact> memberEntry = membersSet.next();\n\n Contact participant = memberEntry.getValue();\n\n fireParticipantPresenceEvent(participant,\n AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_LEFT,\n \"Local user has left the chat room.\");\n }\n\n // Delete the list of members\n participants.clear();\n }",
"void leaveRoom(int roomId) throws IOException;",
"private void ExitRoom() {\n stopFirestoreListenerService();\n\n SharedPreferences roomInfo = getSharedPreferences(\"PreviousRoom\", 0);\n SharedPreferences.Editor roomInfoEditor = roomInfo.edit();\n\n roomInfoEditor.putString(\"roomID\", \"\");\n\n roomInfoEditor.apply();\n\n SelectRoomActivity.recentRooms.remove(roomId);\n }",
"private void ChatLeave() {\n\t\t\r\n\t\tClose();\r\n\t}",
"private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }",
"public boolean quit(TBGPProtocolCallback callback) {\n\t\tif(!isActive()) {\n\t\t\tString removedPlayer = players.remove(callback);\n\t\t\tlogger.info(removedPlayer + \" left the room\");\n\t\t\tbroadcast(removedPlayer + \" left room \"+this.thisRoomName, TBGPCommand.SYSMSG);\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogger.info(\"Unable to leave room in a middle of a game\");\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic void onGuildMemberLeave(GuildMemberLeaveEvent event) {\n\t\tupdateChannel(event.getGuild());\n\t}",
"public abstract void leaveRoom();",
"public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}",
"@Override\n\t\tpublic boolean leaveChatroom(IChatServer chatStub) throws RemoteException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\treturn stub.leaveChatroom(chatStub);\n\t\t}",
"@Override\n public void channelIdle(ChannelHandlerContext ctx, IdleStateEvent e) {\n Player player = (Player) ctx.getAttachment();\n if (!player.destroyed()) {\n player.destroy(false);\n }\n ctx.getChannel().close();\n }",
"void channelInactive() throws Exception;",
"void channelInactive() throws Exception;",
"@Override\n public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Client client = (Client) ctx.getChannel().getAttachment();\n Player player = client.getPlayer();\n if (player != null && !player.destroyed()) {\n player.destroy(false);\n }\n if(engine.getClients().contains(client)) {\n \tSystem.out.println(\"Remove client\");\n \tengine.removeClient(client);\n }\n }",
"@SideOnly(Side.CLIENT)\n private void channelEndClient()\n {\n }",
"public void EleaveRoom(Enemy1 x)\n\t{\n\t\toccupant = null;\n\t}",
"public void leaveRoom(Person x) {\n\t\toccupant = null;\n\t}",
"@Override\n\tpublic void checkOutRoom() {\n\t\t\n\t}",
"void leave(Client client);",
"public void leaveConference();",
"public void leaveGame() {\n if (gameId != null) {\n logger.info(\"Left game: \" + gameId.toString());\n if (connectionHandler != null) connectionHandler.getMessageEmitter().sendLeaveGameMessage(gameId);\n else logger.warn(\"MessageEmitter is null in leaveGame()!\");\n } else logger.warn(\"GameId is null in leaveGame()!\");\n reset();\n }",
"void end(String roomId);",
"private void goAway() {\n CollaborationConnection connection = CollaborationConnection\n .getConnection();\n Presence presence = connection.getPresence();\n if (presence.getMode().equals(Mode.available)) {\n previousPresence = presence;\n Presence newPresence = new Presence(presence.getType(),\n presence.getStatus(), presence.getPriority(), Mode.away);\n Tools.copyProperties(presence, newPresence);\n timerSetAway = sendPresence(connection, newPresence);\n }\n }",
"public Builder clearChannel() {\n bitField0_ = (bitField0_ & ~0x00000002);\n channel_ = 1;\n onChanged();\n return this;\n }",
"public void E1leaveRoom(Enemy2 x)\n\t{\n\t\toccupant = null;\n\t}",
"public void leaveBridge() {\n lock.unlock();\n }",
"public void endTurn() {\n if (getActiveColor() == Piece.COLOR.RED) {\n setActivePlayer(Piece.COLOR.WHITE);\n } else {\n setActivePlayer(Piece.COLOR.RED);\n }\n }",
"boolean leaveGuild(long characterId);",
"public Builder clearChannel() {\n \n channel_ = getDefaultInstance().getChannel();\n onChanged();\n return this;\n }",
"public void disconnect()\n\t{\n\t\t_active = false;\n\t\t_leader.setObjectHandler(null);\n\t\t_leader.close();\n\t\ttry\n\t\t{\n\t\t\t_pos.close();\n\t\t}\n\t\tcatch (IOException ioe)\n\t\t{\n\t\t\t// nothing to do here, doesn't matter\n\t\t}\n\t}",
"public void goAway() {\n Enumeration<ChatClientRoom> cc = clientSessionList.elements();\n while (cc.hasMoreElements()) {\n ChatClientRoom ccr = cc.nextElement();\n ccr.goAway();\n }\n this.dispose();\n try {\n rpc.disconnect();\n } catch (Exception e) {\n System.err.println(\"ChatClientLogin could not disconnect from GMI\");\n }\n System.exit(0);\n }",
"@Override\r\n\tpublic void leave() {\n\t\t\r\n\t}",
"private void onLeaveRoom(String roomName) {\n if (roomEntries.containsKey(roomName)) {\n backBTN.setEnabled(chatController.getJoinedRooms().size() > 0);\n JPanel panel = roomEntries.get(roomName);\n panel.removeAll();\n renderRoom(roomName, panel);\n panel.revalidate();\n panel.repaint();\n }\n }",
"@Override\n\tpublic void onGuildVoiceLeave(GuildVoiceLeaveEvent event) {\n\t\tif(event.getChannelLeft().equals(event.getGuild().getAudioManager().getConnectedChannel())) {\n\t\t\tif(event.getChannelLeft().getMembers().size() == 1) {\n\t\t\t\tpause(event.getGuild(), lastMessageChannel);\n\t\t\t\tevent.getGuild().getAudioManager().closeAudioConnection();\n\t\t\t}\n\t\t}\n\t}",
"void closeLeftDoor()\n {\n openingLeft = false;\n leftDoorTimeline.play();\n }",
"protected void leaveArena(ArenaPlayer p){\n \t\tinsideArena.remove(p.getName());\n \t\tinsideWaitRoom.remove(p.getName());\n \t\tstopTracking(p);\n \t\tTeam t = getTeam(p);\n \t\tPerformTransition.transition(this, MatchState.ONLEAVE, p, t, false);\n \t\tarenaInterface.onLeave(p,t);\n \t\tnotifyListeners(new PlayerLeftEvent(p));\n \t\tif (woolTeams)\n \t\t\tPlayerStoreController.removeItem(p, TeamUtil.getTeamHead(getTeamIndex(t)));\n \t}",
"public void releaseLeftRooms() {\n if (mAreLeftRoomsSynced) {\n mLeftRoomsStore.clear();\n mAreLeftRoomsSynced = false;\n }\n }",
"public void removeParty(L2Party party)\r\n\t{\r\n\t\t_partys.remove(party);\r\n\t\t_channelLvl = 0;\r\n\t\tfor (L2Party pty : _partys)\r\n\t\t{\r\n\t\t\tif (pty.getLevel() > _channelLvl)\r\n\t\t\t\t_channelLvl = pty.getLevel();\r\n\t\t}\r\n\t\tparty.setCommandChannel(null);\r\n\t\tparty.broadcastToPartyMembers(ExCloseMPCC.STATIC_PACKET);\r\n\r\n\t\tSystemMessage sm;\r\n\t\tif (_partys.size() < 2)\r\n\t\t{\r\n\t\t\tsm = new SystemMessage(SystemMessageId.COMMAND_CHANNEL_DISBANDED);\r\n \t\tbroadcastToChannelMembers(sm);\r\n\t\t\tdisbandChannel();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse if (_partys.size() < 5)\r\n\t\t{\r\n\t\t\tsm = new SystemMessage(SystemMessageId.COMMAND_CHANNEL_ONLY_AT_LEAST_5_PARTIES);\r\n \t\tbroadcastToChannelMembers(sm);\r\n \t\tsm = new SystemMessage(SystemMessageId.S1_PARTIES_REMAINING_UNTIL_CHANNEL);\r\n \t\tsm.addNumber(5 - _partys.size());\r\n\t\t}\r\n\t\tbroadcastToChannelMembers(new ExMultiPartyCommandChannelInfo(this));\r\n\t}",
"@Override\n public void onPeerLeft(Room room, List<String> strings) {\n if (!mPlaying && shouldCancelGame(room)) {\n if (timer!= null)\n timer.cancel();\n if (mRoomId != null)\n Games.RealTimeMultiplayer.leave(getApiClient(), this, mRoomId);\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n if (!dialogShown)\n finish();\n }\n }",
"public void deleteChatRoom(ChatRoom cr);",
"public void characterLeaves(Character character, Direction direction) {\n characters.remove(character);\n message(Message.action(character.getName(), \"leaves chamber in the \" + direction + \" direction.\"));\n }",
"public void leaveRoom(Person x)\n {\n occupant = null;\n }",
"public void leaveRoom(Person x)\n {\n occupant = null;\n }",
"@Override\n \tpublic boolean leave(ArenaPlayer p) {\n \t\treturn true;\n \t}",
"public void leave() throws InterruptedException {\n inship.clear();\n // your code here\n\n }",
"public void onClientDisconnected(Channel channel);",
"@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {\n ctx.getChannel().getRemoteAddress();\n System.out.println(ctx.getChannel().getRemoteAddress()+\" Disconnected..\");\n Client user = ServerTools.getClientByChannel(ctx.getChannel());\n if(Server.live_clients.contains(user)){\n Server.live_clients.remove(user);\n System.out.println(\"User removed\");\n }\n }",
"private void onLeaveChannel(int reason) {\r\n\t\tfor (RecordingEventHandler oberserver : recordingEventHandlers) {\r\n\t\t\toberserver.onLeaveChannel(reason);\r\n\t\t}\r\n\t}",
"public void leaveServer()\n\t{\n\t\ttry {\n\t\t\tSocket toServer = new Socket(server, directorySocket);\n\t\t\tObjectOutputStream outToServer = new ObjectOutputStream(toServer.getOutputStream());\n\n\t\t\tServerMessage m = new ServerMessage();\n\t\t\tm.setCommand(LEAVE);\n\t\t\tm.setUser(new UserBean(this.hostName,this.userName, ipAddress)); //Username could be null but shouldn't read it on server\n\n\t\t\toutToServer.writeObject(m);\n\t\t\t\n\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void removeUnavailableRooms(){\n\t}",
"public void leave() {\n FacesContext fc = FacesContext.getCurrentInstance();\n try {\n UbikeUser current = (UbikeUser) BaseBean.getSessionAttribute(\"user\");\n ExternalContext exctx = fc.getExternalContext();\n HttpServletRequest request = (HttpServletRequest) exctx.getRequest();\n long groupId = Long.parseLong(request.getParameter(\"groupId\"));\n long userId = current.getId();\n MemberShip memberShip = memberShipService.getMemberShip(userId, groupId);\n\n if (memberShip == null) {\n fc.addMessage(\"join:join_status\", new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"You are not member of this group yet\",\n \"You are not member of this group yet\"));\n return;\n }\n\n memberShipService.remove(memberShip.getId());\n fc.addMessage(\"join:join_status\", new FacesMessage(FacesMessage.SEVERITY_INFO,\n \"You leaved the group successfully!\",\n \"You leaved the group successfully!\"));\n\n List<MemberShip> members = (List<MemberShip>) BaseBean.getSessionAttribute(\"tmp_members\");\n members.remove(memberShip);\n\n } catch (Exception exp) {\n logger.log(Level.SEVERE, \"An error occurs while leaving group\", exp);\n fc.addMessage(\"join:join_status\", new FacesMessage(FacesMessage.SEVERITY_ERROR,\n \"An error occurs while processing your request\",\n \"An error occurs while processing your request\"));\n }\n }",
"public void endTurn() {\n controller.endTurn();\n }",
"@EventHandler\r\n\tpublic void Playerleave(PlayerQuitEvent e) {\r\n\t\tPlayer p = e.getPlayer();\r\n\t\tString pname = p.getName();\r\n\t\tp.getInventory().clear();\r\n\t\t Bukkit.broadcastMessage(\"\" + ChatColor.RED + ChatColor.WHITE + \"BMT | \" + pname + ChatColor.RESET + \"Heeft de server verlaten!\" + \"\");\r\n\t}",
"public void removeActiveChannel(String channel)\n {\n if (activeChannels.contains(channel))\n {\n activeChannels.remove(channel);\n }\n }",
"public void back()\n {\n if(!moveRooms.empty()){\n currentRoom = moveRooms.pop();\n look();\n } \n }",
"@Override\n protected void disconnect(SelectionKey key) {\n SocketChannel channel = (SocketChannel) key.channel();\n NetworkDestination destination = socketToDestination.get(channel);\n destinationToSocket.remove(destination);\n socketToDestination.remove(channel);\n socketToTracker.remove(channel);\n super.disconnect(key);\n }",
"public void removeActiveChannel(NetworkManager manager, String channel)\n {\n if (connections.containsKey(manager))\n {\n ConnectionInstance con = getConnection(manager);\n con.removeActiveChannel(channel);\n }\n }",
"private void disconnect() {\n System.out.println(String.format(\"連線中斷,%s\",\n clientSocket.getRemoteSocketAddress()));\n final int delete = thisPlayer.id - 1;\n player[delete] = null;\n empty.push(delete);\n }",
"@Transactional(readOnly = false)\n\tpublic void leaveChatroom(User user, Chatroom chatroom) throws BadRequestException {\n\t\tif (isOwner(user, chatroom)) {\n\t\t\tthrow new BadRequestException(\n\t\t\t\t\t\"Cannot leave a room you own, transfer ownership to someone else before leaving, or delete the chatroom\");\n\t\t}\n\t\tif (!isMember(user, chatroom)) {\n\t\t\tthrow new BadRequestException(\"Need to be a member of a chatroom to leave it.\");\n\t\t}\n\t\t// delete member relation\n\t\tdeleteMembership(user, chatroom);\n\t\t// delete admin relation\n\t\tdeleteAdminship(user, chatroom);\n\t}",
"public void resetLastRoom(){this.aLastRooms.clear();}",
"@Override\r\n\tpublic void endTurn() {\n\t\t\r\n\t}",
"public void connectionLost(String channelID);",
"public void leaveTheBus(int pid, int seat);",
"public boolean leaveLobby(Lobby lobby)\n {\n if (lobby.removeUser(this) == 1)\n {\n this.currentLobby = null;\n return true;\n }\n return false;\n }",
"public Builder clearChannel() {\n bitField0_ = (bitField0_ & ~0x00000200);\n channel_ = getDefaultInstance().getChannel();\n onChanged();\n return this;\n }",
"void leave();",
"void leave();",
"void leave();",
"public export.serializers.avro.DeviceInfo.Builder clearRoom() {\n room = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tsuper.windowClosing(e);\r\n\t//\t\t\tdispose();\r\n\t\t\t\tChatLeave();\r\n\t\t\t\t\r\n\t\t\t}",
"public void endGame() {\r\n\t\tthis.gameStarted = false;\r\n\t\tthis.sendMessages = false;\r\n\t\tthis.centralServer.removeServer(this);\r\n\t}",
"public native boolean leaveChannel(long nativeHandle);",
"private void removeKeyAndSession(SelectionKey key) {\n\t\t\tSSLClientSession session = ((SSLClientSession)key.attachment());\n\t\t\tString username = session.getUsername();\n\t\t\t\n\t\t\topen_client_channels.remove(key); // remove the open channel\n\t\t\tsession.disconnect(); // shutdown the ssl socket channel\n\t\t\tkey.cancel(); //cancel the key\n\t\t\t\n\t\t\tif(username == null)\n\t\t\t\tSystem.out.println(\"Unknown user has disconnected.\");\n\t\t\telse\n\t\t\t\tSystem.out.println(username+\" has disconnected from the communication server.\");\n\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tgetPlayer().leaveArena();\n\t\t\t}",
"public Room goDown() {\n return goDir(Side.DOWN);\n }",
"public void deleteRoom(Room room);",
"@FXML\n private void ConfirmLeaveLobby(ActionEvent actionEvent) throws InterruptedException, ExecutionException, LobbyException {\n PlayerController playerController = (PlayerController) ControllerRegistry.get(PlayerController.class);\n FireStoreController fireStoreController = (FireStoreController) ControllerRegistry.get(FireStoreController.class);\n\n fireStoreController.removePlayer(token, playerController.getPlayerByPlayersEnum(playerController.getClientPlayersEnum())\n .orElseThrow(() -> new LobbyException(\"PLAYERS NOT HERE HELP\", null)));\n returnToMainMenu(actionEvent);\n }",
"public void endTurn() {\r\n\t\tcontraband.clear();\r\n\t\tactions = 1;\r\n\t\tbuys = 1;\r\n\t\tif(treasure > 0) treasure = 0;\r\n\t\tpotion = 0;\r\n\t\tcoppersmith = 0;\r\n\t\tbridge = 0;\r\n\t\tquarry = 0;\r\n\t\tdeck.cleanUp();\r\n\t\taccess.log(getPlayerName() + \"'s Deck: \" + deck.toString());\r\n\t\taccess.log(getPlayerName() + \"'s turn ended\");\r\n\t\tnotifyObservers();\r\n\t}",
"public void endTurn(){\n game.setNextActivePlayer();\n myTurn = false;\n\n stb.updateData(\"playerManager\", game.getPlayerManager());\n stb.updateData(\"aktivePlayer\", game.getPlayerManager().getAktivePlayer());\n stb.updateData(\"roomList\", game.getRoomManager().getRoomList());\n\n getIntent().putExtra(\"GAME\",game);\n getIntent().putExtra(\"myTurn\", false);\n finish();\n if(!game.getPlayerManager().getPlayerList().get(whoAmI).isDead())\n startActivity(getIntent());\n else\n fcm.unbindListeners();\n }",
"public Builder clearChannel() {\n if (channelBuilder_ == null) {\n channel_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n channelBuilder_.clear();\n }\n return this;\n }",
"private void stop() {\n System.out.println(\"Stopping on \"+ _currentFloor.floorName() +\" floor \" );\n _currentFloor.clearDestinationRequest();\n _passengersOnboard = _passengersOnboard - _currentFloor.queuedPassengers();\n _currentFloor.clearQueuedPassengers();\n System.out.println(this);\n\n }",
"@Override\n\tpublic void onLeaveLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onLeaveLobbyDone\");\n\t}",
"@Override\n public void endTurn() {\n battle.setState(new EnemyTurn(battle));\n battle.continueBattle();\n }",
"public ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source) {\n/* 475 */ return leaveGroup(multicastAddress, networkInterface, source, newPromise());\n/* */ }",
"void closeChat();",
"private void deleteRoomClicked() {\n postRequestDelete();\n sessionManager.removeRoom(sessionManager.getRoom(), sessionManager.getID());\n sessionManager.leaveRoom();\n }",
"public void endTurn() {\n }",
"public void close() {\r\n channel.close();\r\n }",
"private void endTurn() {\n currentTurn = getNextPlayer();\n }",
"@Override\n public void onPeerDeclined(Room room, List<String> strings) {\n if (!mPlaying && shouldCancelGame(room)) {\n if (timer!= null)\n timer.cancel();\n if (mRoomId != null)\n Games.RealTimeMultiplayer.leave(getApiClient(), this, mRoomId);\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n }\n }",
"@Override\n\tpublic void channelInactive(ChannelHandlerContext ctx) throws Exception {\n\t\tsuper.channelInactive(ctx);\n\t\tif(connectListener != null) {\n\t\t\tconnectListener.onDisconnect(ctx.channel());\n\t\t}\n\t}",
"private void UserDisconnectChannel(ClientData d)\n\t{\n\t\tApplicationManager.textChat.writeLog(d.ClientName + \" Quit \" + currentChannel.ChannelName);\n\t\tSendMessage(null, MessageType.channelInfo);\n\n\t}",
"public void endGame()\r\n {\r\n mode = 2;\r\n }",
"public void deleteRoom(String roomId) {\n // copy the room from a store to another one\n Room r = getStore().getRoom(roomId);\n\n if (null != r) {\n if (mAreLeftRoomsSynced) {\n Room leftRoom = getRoom(mLeftRoomsStore, roomId, true);\n leftRoom.setIsLeft(true);\n\n // copy the summary\n RoomSummary summary = getStore().getSummary(roomId);\n if (null != summary) {\n mLeftRoomsStore.storeSummary(new RoomSummary(summary, summary.getLatestReceivedEvent(), summary.getLatestRoomState(), getUserId()));\n }\n\n // copy events and receiptData\n // it is not required but it is better, it could be useful later\n // the room summary should be enough to be displayed in the recent pages\n List<ReceiptData> receipts = new ArrayList<>();\n Collection<Event> events = getStore().getRoomMessages(roomId);\n\n if (null != events) {\n for (Event e : events) {\n receipts.addAll(getStore().getEventReceipts(roomId, e.eventId, false, false));\n mLeftRoomsStore.storeLiveRoomEvent(e);\n }\n\n for (ReceiptData receipt : receipts) {\n mLeftRoomsStore.storeReceipt(receipt, roomId);\n }\n }\n\n // copy the state\n leftRoom.getTimeline().setState(r.getTimeline().getState());\n }\n\n // remove the previous definition\n getStore().deleteRoom(roomId);\n }\n }",
"public void unbookRoom(int room) {\n availableRooms.add(availableRooms.size(), room);\n unavailableRooms.remove(unavailableRooms.indexOf(room));\n unavailableRooms = unavailableRooms.stream().sorted().collect(Collectors.toList());\n availableRooms = availableRooms.stream().sorted().collect(Collectors.toList());\n System.out.println(\"Thank you for staying! See you next time.\");\n }",
"public void endTurn(MapPanel caller) {\n\t\tlog.log(\"Ending turn for \" + toMove);\n\t\ts.unexamine(caller);\n\t\ttoMove = Alignment.opposing(toMove);\n\t\tif(toMove == Alignment.FRIENDLY)\n\t\t\tcaller.setGameStatus(GameState.PLAYER_MOVING);\n\t\telse\n\t\t\tcaller.setGameStatus(GameState.ENEMY_TURN);\n\t\tstartTurn(caller);\n\t}",
"private void uponInConnectionDown(InConnectionDown event, int channelId) {\n Node dead = controlView.removeHost(event.getNode());\n if(dead != null && activeView.removeNode(dead)) {\n repair(dead);\n }\n }"
] | [
"0.7663053",
"0.66020936",
"0.64192426",
"0.6337451",
"0.62547785",
"0.607704",
"0.6064072",
"0.6059356",
"0.60109186",
"0.59771764",
"0.5943373",
"0.59068495",
"0.5869874",
"0.58537495",
"0.58533144",
"0.58533144",
"0.582818",
"0.5814443",
"0.57644546",
"0.57504994",
"0.57305527",
"0.57274187",
"0.5719825",
"0.56581545",
"0.5652138",
"0.56505257",
"0.5582724",
"0.5563719",
"0.5562911",
"0.5540286",
"0.5530651",
"0.55277324",
"0.55055946",
"0.54882526",
"0.5486393",
"0.54408574",
"0.5434828",
"0.54245794",
"0.5418715",
"0.5415784",
"0.5411945",
"0.5409364",
"0.53965926",
"0.5394792",
"0.53859895",
"0.53859895",
"0.5378779",
"0.53670424",
"0.5355304",
"0.5341787",
"0.5339834",
"0.5329507",
"0.53152597",
"0.53152496",
"0.53121996",
"0.5304781",
"0.5298491",
"0.5293115",
"0.5293031",
"0.5292619",
"0.5277681",
"0.52730256",
"0.52662563",
"0.52639556",
"0.52482086",
"0.52408224",
"0.5235548",
"0.522866",
"0.52246535",
"0.52246535",
"0.52246535",
"0.52231586",
"0.52195406",
"0.52175546",
"0.5216953",
"0.521219",
"0.5211777",
"0.5210698",
"0.52052754",
"0.5196254",
"0.51861554",
"0.5183843",
"0.5174065",
"0.5167041",
"0.51511",
"0.51483893",
"0.51448625",
"0.51433843",
"0.5134943",
"0.512781",
"0.5124243",
"0.51237226",
"0.5118921",
"0.511877",
"0.5114182",
"0.51075053",
"0.51035154",
"0.50913393",
"0.5090086",
"0.50889796"
] | 0.74043596 | 1 |
Mute (unmute) local user if mute arg is set to true (false) | public int mute(boolean mute) {
int result = mRtcEngine.muteLocalAudioStream(mute);
appointment.muteUser(new DatabaseUser(MainUser.getMainUser().getId()), mute);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mute() {\n execute(\"player.muted = true\");\n }",
"void unmute() {\n execute(\"player.muted = false\");\n }",
"public void setMute(boolean mute);",
"public void setMute(boolean mute) {\n \t\tthis.mute = mute;\n \t}",
"public void mute() {\n\t\tstate.mute();\n\t}",
"@Override\r\n\t\tpublic void dmr_setMute(boolean mute) throws RemoteException {\n\t\t\tmAmanager.setStreamMute(AudioManager.STREAM_MUSIC, mute);\r\n\t\t\tUtils.printLog(TAG, \"mAmanager.setStreamMute()\" + mute);\r\n\t\t}",
"public static void toggleMute()\n\t{\n\t\tmute = !mute;\n\t\tif (mute)\n\t\t{\n\t\t\t// Stop all sounds\n\t\t\tmusic.stop();\n\t\t\tlaserContinuous.stop();\n\t\t\tlaser.stop();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Start sounds\n\t\t\tstartMusic();\n\t\t\tif (laserRunning)\n\t\t\t{\n\t\t\t\tlaserContinuous.loop();\n\t\t\t}\n\t\t}\n\t}",
"public boolean getMute();",
"public void muteUserLocally(boolean muted, String id) {\n for (int uid : usersCallId.keySet()) {\n if (usersCallId.get(uid).equals(id)) {\n mRtcEngine.adjustUserPlaybackSignalVolume(uid, muted ? VOLUME_OFF : STANDARD_VOLUME);\n }\n }\n }",
"public void mute() {\n\t\tif (isMute) {\n\t\t\tplaybin.setVolume(0);\n\t\t\tisMute = false;\n\t\t} else {\n\t\t\tplaybin.setVolume(volume);\n\t\t\tisMute = true;\n\t\t}\n\t}",
"public void onLocalAudioMuteClicked(View view) {\n // Toggle audio mute.\n setAudioState(!mMuted);\n }",
"public void onLocalAudioMuteClicked(View view) {\n // Change the value of muted\n mMuted = !mMuted;\n // Update the agora engine with the mute\n mRtcEngine.muteLocalAudioStream(mMuted);\n // Get the correct mute button\n int res = mMuted ? R.drawable.btn_mute : R.drawable.btn_unmute;\n // Apply the correct img\n mMuteBtn.setImageResource(res);\n }",
"public boolean isMuted(User u) {\n return bot\n .getCreditsFile()\n .getInt(\"Mutes.\" + u + \".Mute\") > 0;\n }",
"public void setMuted(boolean b)\n\t{\n\t\tm_isMuted = b;\n\t}",
"public boolean setPropertyMute(boolean aValue);",
"Boolean isMuted() {\n return execute(\"player.muted\");\n }",
"public void setMute(boolean mute) throws IllegalStateException,\n\t\t\tRemoteException {\n\t\tgetService().setMute(mute, mVolume, mIsMute);\n\t}",
"public void mute() {\n this.tv.setVolume(0);\r\n }",
"@Override\n public void onSetMute(int result) {\n Log.d(\"DLNA\", \"onSetMute result:\" + result);\n }",
"public boolean toggleMute() {\n SoundPlayer.toggleMusicMute();\n SoundPlayer.toggleSoundFxMute();\n muted = !muted;\n return muted;\n }",
"public boolean getPropertyMute();",
"@Override\n public void onGetMute(int result, boolean mute) {\n Log.d(\"DLNA\", \"onGetMute result:\" + result);\n }",
"@Test\n\tpublic void muteTest() throws IllegalArgumentException, IllegalAccessException {\n\n\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime &&\n\t\t\t\tConfiguration.mute) {\n\t\t\tstart();\n\t\t\tdemo.menuItemWithPath(\"Datei\", \"Datei \\u00F6ffnen\").click();\n\t\t\tdemo.fileChooser().setCurrentDirectory(new File(\"media/\"));\n\t\t\tFile file = new File(\"note.mp3\");\n\t\t\tdemo.fileChooser().selectFile(file);\n\t\t\tdemo.fileChooser().approveButton().click();\n\t\t\tdemo.button(\"play\").click();\n\t\t\tassertFalse(gui.muted);\n\t\t\tdemo.button(\"mute\").click();\n\t\t\tassertTrue(gui.muted);\n\t\t\tint oldVolume= (int) MemberModifier.field(Application.class, \"oldVolume\").get(gui);\n\t\t\tassertEquals(oldVolume, 100);\n\t\t\t//assertEquals(gui.getVolume(),0);\n\t\t\tJSlider slider= (JSlider) MemberModifier.field(Application.class, \"slider\").get(gui);\n\t\t\tassertFalse(slider.isEnabled());\n\t\t\n\t\t\tJButton btnmute= (JButton) MemberModifier.field(Application.class, \"btnmute\").get(gui);\n\t\t\tassertTrue(btnmute.getIcon().toString().contains(\"mute.png\"));\n\t\t\tdemo.button(\"mute\").click();\n\t\t\tassertFalse(gui.muted);\n\t\t\tassertTrue(slider.isEnabled()); \n\t\t\tassertEquals(gui.getVolume(),100);\n\t\t\tbtnmute= (JButton) MemberModifier.field(Application.class, \"btnmute\").get(gui);\n\t\t\tassertTrue(btnmute.getIcon().toString().contains(\"unmute.png\"));\n\t\t\tdemo.slider(\"slider\").slideToMinimum();\n\t\t\tassertEquals(gui.getVolume(),0);\n\t\t\tdemo.slider(\"slider\").slideToMaximum();\n\t\t\tassertEquals(gui.getVolume(),100);\n\t\t\tdemo.slider(\"slider\").slideTo(50);\n\t\t\tassertEquals(gui.getVolume(),50);\n\t\t\t\n\t\t}\n\t}",
"public boolean setPropertyMute(boolean aValue)\n {\n return setPropertyBool(iPropertyMute, aValue);\n }",
"protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateSetMute = new DoSetMute();\n enableAction(action, iDelegateSetMute);\n }",
"private void setAudioState(boolean muted) {\n mMuted = muted;\n mRtcEngine.muteLocalAudioStream(mMuted);\n if (mMuted) {\n mMuteBtn.setImageResource(R.drawable.btn_mic_muted);\n } else {\n mMuteBtn.setImageResource(R.drawable.btn_mic_unmuted);\n }\n }",
"private void handleMute(Call c)\n {\n // handle only established call\n if(c.getCallState() != CallState.CALL_IN_PROGRESS)\n return;\n\n // handle only connected peer (no on hold peer)\n if(c.getCallPeers().next().getState() != CallPeerState.CONNECTED)\n return;\n\n MediaAwareCall<?,?,?> cc = (MediaAwareCall<?,?,?>)c;\n if(mute != cc.isMute())\n {\n cc.setMute(mute);\n }\n }",
"@Override\n\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\tAtcSettings.Audio.SetMicMute(arg1);\n\t\tif (arg1) {\n\t\t\tm_micmute_cb.setChecked(true);\n\t\t}else{\n\t\t\tm_micmute_cb.setChecked(false);\n\t\t}\n\t}",
"@Resource(resourceId = 2215, operation = Operation.Read)\n public Boolean readMute()\t{\n ActionInvocation actionInvocation =\n new ActionInvocation(renderingControlService.getAction(ACTION_GET_MUTE));\n actionInvocation.setInput(ARG_INSTANCE_ID, new UnsignedIntegerFourBytes(0));\n actionInvocation.setInput(ARG_CHANNEL, VALUE_CHANNEL_MASTER);\n Map<String, ActionArgumentValue> output = UpnpController.getInstance().executeUpnpAction(actionInvocation);\n return (Boolean) output.get(ARG_CURRENT_MUTE).getValue();\n }",
"@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\n if(arg1){\n Log.d(TAG,\"Set audio mute ON.\");\n mAudioControl.setMute(true);\n }\n else{\n Log.d(TAG,\"set audio mute OFF.\");\n mAudioControl.setMute(false);\n }\n }",
"private void mute(String[] command) {\n\t\ttry {\n\t\t\tnew ProcessBuilder(Constants.CH_PATH_NIRCMD, \"mutesysvolume\", \"1\")\n\t\t\t\t\t.start();\n\t\t\tSystem.out.println(\"Muting sound.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean sendMute(char ch) {\n\t\tCmdRet ret = busyboxCmd(\"echo \\\"m\" + ch + \"\\\" > \" + PATH);\n\t\treturn ret.retCode == 0;\n\t}",
"protected void enableActionMute()\n {\n Action action = new Action(\"Mute\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateMute = new DoMute();\n enableAction(action, iDelegateMute);\n }",
"public void muteUser(User user, int seconds) {\n bot.getCreditsFile().set(\"Mutes.\" + user.getId() + \".Name\", user.getName());\n bot.getCreditsFile().set(\"Mutes.\" + user.getId() + \".Mute\", seconds);\n data.saveFile(bot.getCreditsFile(), \"credits\");\n GuildUtils.controller().modifyMemberRoles(GuildUtils.guild().getMember(user), Collections.singleton(Roles.MUTED), Collections.emptySet()).queue();\n }",
"@Override\r\n\t\tpublic boolean dmr_getMute() throws RemoteException {\n\t\t\tboolean mute = soundManager.getAudioMuteEnabled();\r\n\t\t\tUtils.printLog(TAG, \"soundManager.getAudioMuteEnabled()\" + mute);\r\n\t\t\treturn mute;\r\n\t\t}",
"default void toggle(boolean fromUser) {\n if (isPlaying()) {\n pause(fromUser);\n } else {\n play(fromUser);\n }\n }",
"public void muteTimer(){\n\t\t//TODO: impl.\n\t\t/*\n\t\tThread worker;\n\t\t//do it in its own thread\n\t\tworker = new Thread() {\n \tpublic void run() {\n \t\t//mute and wait a bit (2s)\n \t\tmute();\n \t\ttry { Thread.sleep(2000); } catch (InterruptedException e) { e.printStackTrace(); }\n \t\t//then start checking for ILA actions\n \t\tint counter=100;\t\t//max wait 20s\n \t\twhile( (ILA_interface.avatar.isILAspeaking() || ILA_interface.avatar.is_recording==1) & counter>1 ){\n \t\t\tcounter--;\n \t\t\tILA_debug.println(\"ADDON-KODI - mute timer is waiting...\",2);\t\t\t//debug\n \t\t\ttry { Thread.sleep(200); } catch (InterruptedException e) { e.printStackTrace(); }\n \t\t}\n \t\t//timers are over: unmute\n \t\tunmute();\n \t}\n };\n worker.start();\n */\n\t}",
"public void setMuteDisabeld(boolean checked) {\n volumeControl.disable(checked);\r\n }",
"boolean unblockUser(User user);",
"void play(boolean fromUser);",
"public void updateMute() {\n if (game.isMuted()) {\n mute.setIcon(muted);\n } else {\n mute.setIcon(unmuted);\n }\n }",
"@Override\n\tpublic void onMute(String clientName) {\n\t\t// TODO Auto-generated method stub\n\t\tlog.log(Level.INFO, \"Tiggered sendMute()\");\n\t\tIterator<User> iter = users.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\t// try {\n\t\t\tString name = clientName;\n\t\t\tUser client = iter.next();\n\t\t\tif (name.equals(client.getName())) {\n\t\t\t\tmuteName = client.getName();\n\t\t\t\tmuteClient = client;\n\t\t\t\tlog.log(Level.INFO, \"Passed name check\");\n\t\t\t}\n\t\t\t// } catch (ConcurrentModificationException e) {\n\t\t\t// log.log(Level.INFO, \"Caught ConcurrentModification\");\n\t\t\t// }\n\t\t}\n\t\treplaceClient(\"<font color=silver>\" + muteName + \"</font>\", muteClient);\n\t\tlog.log(Level.INFO, \"Reached replaceClient with \" + muteName + \" and \" + muteClient.getName());\n\t}",
"public CommonAlert muted(Boolean muted) {\n this.muted = muted;\n return this;\n }",
"public static boolean muteNeighbor(Neighbor neighbor) throws NullPointerException{\n boolean isMuted = false;\n if(!isUserMuted(neighbor)) {\n if (UDPpacketListner.doesAddressExist(neighbor.getDeviceAddress())) {\n //Get the neighbor's IP\n neighbor.setIpAddress(UDPpacketListner.getPeerAddress(neighbor.getDeviceAddress()).getHostAddress());\n\n isMuted = mutedNeighbors.add(neighbor);\n Log.i(\"mute\", neighbor.getInstanceName() + \" is muted? \" + isMuted);\n if(isMuted)\n Toast.makeText(TabsActivity.ctx, neighbor.getInstanceName()+\" has been muted\", Toast.LENGTH_LONG).show();\n\n }\n }\n return isMuted;\n }",
"public void setAudioMuteOn(int streamType) {\n mAudioManager.setStreamMute(streamType, true);\n }",
"public void updateMuteTime() {\n for (Member m : GuildUtils.members()) {\n final User u = m.getUser();\n if (isMuted(u)) {\n muteUser(u, getTimeLeftForMute(u) - 4);\n } else {\n GuildUtils.controller().modifyMemberRoles(GuildUtils.guild().getMember(u), Collections.emptySet(), Collections.singleton(Roles.MUTED)).queue();\n }\n }\n }",
"public boolean isMuted()\n\t{\n\t\treturn m_isMuted;\n\t}",
"@Override\n public void onClick(View v) {\n Log.d(TAG, \"Set LCD mute ON. (display OFF)\");\n mDisplayControl.setMute(true);\n try{\n Thread.sleep(3000); //3000É~ÉäïbSleepÇ∑ÇÈ\n }catch(InterruptedException e){}\n\n Log.d(TAG, \"Set LCD mute OFF. (display ON)\");\n mDisplayControl.setMute(false);\n }",
"protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }",
"public void enablePropertyMute()\n {\n iPropertyMute = new PropertyBool(new ParameterBool(\"Mute\"));\n addProperty(iPropertyMute);\n }",
"@Override\n public void handleNodeMuted() {\n setLocalFlowUnit(SymptomFlowUnit.generic());\n }",
"public static void triggerHushMute(Context context) {\n // We can't call AudioService#silenceRingerModeInternal from here, so this is a partial copy of it\n int silenceRingerSetting = Settings.Secure.getIntForUser(context.getContentResolver(),\n Settings.Secure.VOLUME_HUSH_GESTURE, Settings.Secure.VOLUME_HUSH_OFF,\n UserHandle.USER_CURRENT);\n\n int ringerMode;\n int toastText;\n if (silenceRingerSetting == Settings.Secure.VOLUME_HUSH_VIBRATE) {\n ringerMode = AudioManager.RINGER_MODE_VIBRATE;\n toastText = com.android.internal.R.string.volume_dialog_ringer_guidance_vibrate;\n } else {\n // VOLUME_HUSH_MUTE and VOLUME_HUSH_OFF\n ringerMode = AudioManager.RINGER_MODE_SILENT;\n toastText = com.android.internal.R.string.volume_dialog_ringer_guidance_silent;\n }\n AudioManager audioMan = (AudioManager)\n context.getSystemService(Context.AUDIO_SERVICE);\n audioMan.setRingerModeInternal(ringerMode);\n Toast.makeText(context, toastText, Toast.LENGTH_SHORT).show();\n }",
"public void setAudioMuteOff(int streamType) {\n mAudioManager.setStreamMute(streamType, false);\n }",
"public static boolean isUserMuted(Neighbor user){\n Iterator<Neighbor> it = mutedNeighbors.iterator();\n while (it.hasNext()) {\n Neighbor peer = it.next();\n if(peer.getDeviceAddress().equals(user.getDeviceAddress())) {\n Log.i(TAG,\"User is muted\");\n return true;\n }\n }\n Log.i(TAG,\"User is NOT muted\");\n return false;\n }",
"public JWebResult setParticipantAudioMute(final String userToken,\r\n final String confId,\r\n final String partId,\r\n final boolean connectionState) {\r\n System.out.println(\"Invoking setParticipantAudioMute...\");\r\n logger.info(\"Invoking setParticipantAudioMute...\");\r\n final JCredentials _setParticipantAudioMute_credentials = new JCredentials();\r\n _setParticipantAudioMute_credentials.setUserToken(userToken);\r\n final String _setParticipantAudioMute_confId = confId;\r\n final String _setParticipantAudioMute_partId = partId;\r\n final boolean _setParticipantAudioMute_connectionState = connectionState;\r\n final JWebResult _setParticipantAudioMute__return = port\r\n .setParticipantAudioMute(_setParticipantAudioMute_credentials,\r\n _setParticipantAudioMute_confId,\r\n _setParticipantAudioMute_partId,\r\n _setParticipantAudioMute_connectionState);\r\n System.out.println(\"setParticipantAudioMute.result=\"\r\n + _setParticipantAudioMute__return);\r\n return _setParticipantAudioMute__return;\r\n }",
"public boolean getPropertyMute()\n {\n return iPropertyMute.getValue();\n }",
"public boolean isMute() throws IllegalStateException {\n\t\tcheckConnectedDeviceThrowable();\n\t\treturn mIsMute;\n\t}",
"private void showMuteMessage() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.mute_msg_text);\n builder.setCancelable(false);\n builder.setNegativeButton(R.string.mute_msg_no, this);\n builder.setPositiveButton(R.string.mute_msg_yes, this);\n\n AlertDialog alert = builder.create();\n alert.show();\n }",
"public static boolean unmuteNeighbor(Neighbor neighbor){\n if(isUserMuted(neighbor))\n {\n Toast.makeText(TabsActivity.ctx, neighbor.getInstanceName()+\" has been unmuted\", Toast.LENGTH_LONG).show();\n return mutedNeighbors.remove(neighbor);}\n return false;\n }",
"public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}",
"@EventHandler(priority = EventPriority.HIGH)\n\tpublic void onPlayerChat(AsyncPlayerChatEvent e) {\n\t\tif (e.isCancelled()) return;\n\t\t\n\t\tPlayer player = e.getPlayer();\n\t\tString uuid = player.getUniqueId().toString();\n\t\t\n\t\t// stop the method here if the player is muted\n\t\tif (!Banana.getMuteCache().isMuted(uuid)) return;\n\t\t\n\t\tif (!Banana.getMuteCache().isTempMuted(uuid)) {\n\t\t\t\n\t\t\t// if the player is muted, stop the event and don't run any checks\n\t\t\te.setCancelled(true);\n\t\t\t\n\t\t\t// checking to make sure the config allows the notification to muted players\n\t\t\tif (Values.MUTE_NOTIFY_ON_CHAT) {\n\t\t\t\t// tell the player that they are muted\n\t\t\t\tplayer.sendMessage(Lang.NO_SPEAK_MUTED.toString());\n\t\t\t}\n\t\t\treturn;\n\t\t\t\n\t\t}\n\t\t\n\t\t// this will continue to run if the player is temp muted\n\t\t\n\t\tCalendar currentDate = Calendar.getInstance();\n\t\t\n\t\tcurrentDate.setTimeInMillis(System.currentTimeMillis());\n\t\t\n\t\tDate systemDate = currentDate.getTime();\n\t\tDate unMuteDate = Banana.getMuteCache().getTempMuteRemovalDate(uuid);\n\t\t\n\t\tif (systemDate.equals(unMuteDate) || systemDate.after(unMuteDate)) {\n\t\t\t\n\t\t\t// check to see if this option is enabled in the config\n\t\t\t\n\t\t\tif (Values.NOTIFY_UNMUTE) {\n\t\t\t\t// this will run if the player will be allowed to chat because their mute time is up\n\t\t\t\tAction.notifyPlayer(Action.UNMUTE, player, Lang.MUTE_TIME_EXPIRED.toString());\n\t\t\t}\n\t\t\t\n\t\t\t// remove the mutes in the database and cache\n\t\t\tBanana.getDatabaseManager().asyncRemoveMute(uuid);\n\t\t\tBanana.getMuteCache().unMutePlayer(uuid);\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// cancel the event because the player is still muted!\n\t\t\te.setCancelled(true);\n\t\t\t\n\t\t\t// check to see if this option is enabled\n\t\t\tif (Values.MUTE_NOTIFY_ON_CHAT) {\n\t\t\t\n\t\t\t\t// tell the player that they are muted\n\t\t\t\tplayer.sendMessage(Lang.NO_SPEAK_MUTED.toString());\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"boolean blockUser(User user);",
"@Override\n public void unsuspendPlayer(String username) {\n if (match != null && username != null) {\n match.unsuspendPlayer(username);\n }\n }",
"public void setSinglePlayer(){\n isSinglePlayer = true;\n }",
"public void notifyBuildProblemsMuted(Collection<BuildProblemInfo> arg0,\r\n\t\t\tMuteInfo arg1, Set<SUser> arg2) {\n\t\t\r\n\t}",
"public static boolean setSilentMode (final boolean bSilentMode)\n {\n return SILENT_MODE.getAndSet (bSilentMode);\n }",
"void setShowUnlockOption(boolean b);",
"public void setCurrentUserCanUnlock(boolean currentUserCanUnlock) {\r\n this.currentUserCanUnlock = currentUserCanUnlock;\r\n }",
"@Override\n\tpublic void onUnmute(String clientName) {\n\t\t// TODO Auto-generated method stub\n\t\tlog.log(Level.INFO, \"Tiggered sendUnmute()\");\n\t\tIterator<User> iter = users.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\t// try {\n\t\t\tString name = \"<font color=silver>\" + clientName + \"</font>\";\n\t\t\tUser client = iter.next();\n\t\t\tif (name.equals(client.getName())) {\n\t\t\t\tunmuteName = clientName;\n\t\t\t\tunmuteClient = client;\n\t\t\t\tlog.log(Level.INFO, \"Passed name check\");\n\t\t\t}\n\t\t\t// } catch (ConcurrentModificationException e) {\n\t\t\t// log.log(Level.INFO, \"Caught ConcurrentModification\");\n\t\t\t// }\n\t\t}\n\t\treplaceClient(unmuteName, unmuteClient);\n\t\tlog.log(Level.INFO, \"Reached replaceClient with \" + unmuteName + \" and \" + unmuteClient.getName());\n\t}",
"public JWebResult setParticipantVideoMute(final String userToken,\r\n final String confId,\r\n final String partId,\r\n final boolean connectionState) {\r\n System.out.println(\"Invoking setParticipantVideoMute...\");\r\n logger.info(\"Invoking setParticipantVideoMute...\");\r\n final JCredentials _setParticipantVideoMute_credentials = new JCredentials();\r\n _setParticipantVideoMute_credentials.setUserToken(userToken);\r\n final String _setParticipantVideoMute_confId = confId;\r\n final String _setParticipantVideoMute_partId = partId;\r\n final boolean _setParticipantVideoMute_connectionState = connectionState;\r\n final JWebResult _setParticipantVideoMute__return = port\r\n .setParticipantVideoMute(_setParticipantVideoMute_credentials,\r\n _setParticipantVideoMute_confId,\r\n _setParticipantVideoMute_partId,\r\n _setParticipantVideoMute_connectionState);\r\n System.out.println(\"setParticipantVideoMute.result=\"\r\n + _setParticipantVideoMute__return);\r\n return _setParticipantVideoMute__return;\r\n }",
"void setUserLocked(boolean b);",
"public void notifyBuildProblemsUnmuted(Collection<BuildProblemInfo> arg0,\r\n\t\t\tMuteInfo arg1, SUser arg2, Set<SUser> arg3) {\n\t\t\r\n\t}",
"public void setOnlyManageUser(boolean enable) {\n\t\t_onlyManageUser = enable;\n\t}",
"public void resetUser() {\n\t\ttry {\n\t\t\tif(null != rawSrv){\n\t\t\trawSrv.resetCfgGroup(ConfigType.RESET_USER);\n\t\t\t}\n\t\t} catch (TVMException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void setAdminStatus(User user, boolean adminStatus);",
"@Override\n public boolean logout(String username) throws RemoteException {\n Player p = getPlayer(username);\n if (p != null) {\n p.setOnline(false);\n p.setReady(false);\n }\n return p != null;\n }",
"public void switchPlayer() {\n \tisWhitesTurn = !isWhitesTurn;\n }",
"public void setMuser(String muser) {\n this.muser = muser;\n }",
"public void setSoundAmbience(final boolean sAmbience) { soundAmbience = sAmbience; }",
"public void toggleMusic() {\n this.musicEnabled = !this.musicEnabled;\n }",
"public void setHideSettings(String un, boolean friends, boolean posts, boolean age, boolean status){\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n // updating user database\n collRU.findOneAndUpdate(\n eq(\"username\", un),\n and(\n Updates.set(\"hidefriends\", friends),\n Updates.set(\"hideposts\",posts),\n Updates.set(\"hideage\",age),\n Updates.set(\"hidestatus\",status)\n )\n );\n }",
"public void propertyChange(PropertyChangeEvent evt)\n {\n String propertyName = evt.getPropertyName();\n \n if (propertyName.equals(CallPeer.MUTE_PROPERTY_NAME))\n {\n boolean isMute = (Boolean) evt.getNewValue();\n \n renderer.setMute(isMute);\n \n // Update the state of the mute button.\n renderer.getCallDialog().updateMuteButtonState();\n }\n }",
"@JsAccessible\n public void onVolumeChanged(double volume, boolean muted) {\n volumeChangedListeners.forEach(listener -> listener.accept(muted));\n }",
"private int getTimeLeftForMute(User u) {\n if (!isMuted(u)) return 0;\n return bot.getCreditsFile().getInt(\"Mutes.\" + u + \".Mute\");\n }",
"@Override // com.oculus.messengervr.interfaces.MessengerThread\n @androidx.annotation.Nullable\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Boolean isMuted() {\n /*\n r6 = this;\n com.oculus.messenger.models.Thread r0 = r6.mOcThread\n r3 = 0\n if (r0 != 0) goto L_0x0017\n r1 = 0\n L_0x0008:\n long r4 = java.lang.System.currentTimeMillis()\n int r3 = (r1 > r4 ? 1 : (r1 == r4 ? 0 : -1))\n r0 = 0\n if (r3 <= 0) goto L_0x0012\n L_0x0011:\n r0 = 1\n L_0x0012:\n java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)\n return r0\n L_0x0017:\n long r1 = r0.mMuteExpireTime\n int r0 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r0 < 0) goto L_0x0011\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.messengervr.oc.models.OcMessengerThread.isMuted():java.lang.Boolean\");\n }",
"public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }",
"void kick(String user);",
"public void putSilentOn() {\n StartupService.mode.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n }",
"private void channelPrivilegedUserUpdate() {\n String userKey = builder.getPersonalUser().getUserKey();\n if (channel.getPrivilegedUsers().size() != 0) {\n ArrayList<String> members = new ArrayList<>();\n for (User user : channel.getPrivilegedUsers()) {\n members.add(user.getId());\n }\n String[] membersArray = members.toArray(new String[0]);\n // send update to server\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), channel.isPrivilege(), membersArray, response -> {\n });\n } else {\n channel.setPrivilege(false);\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), false, null, response -> {\n });\n }\n }",
"public final void mo5699d(boolean z, String str) {\n AppMethodBeat.m2504i(16649);\n if (z) {\n C4990ab.m7416i(\"MicroMsg.PermissionWarningDialog\", \"set MicroPhone unmute.\");\n ((AudioManager) C4996ah.getContext().getSystemService(SlookAirButtonRecentMediaAdapter.AUDIO_TYPE)).setMicrophoneMute(false);\n }\n PermissionWarningDialog.this.finish();\n AppMethodBeat.m2505o(16649);\n }",
"public void setManagingUser(String managingUser, boolean isManagingUser) {\n this.managingUserDisplay.setText(managingUser);\n if (!isManagingUser) {\n btnResetGame.setEnabled(false);\n btnLockGame.setEnabled(false);\n } else {\n if (isLocked) {\n btnLockGame.setEnabled(false);\n btnResetGame.setEnabled(true);\n } else {\n btnLockGame.setEnabled(true);\n btnResetGame.setEnabled(true);\n }\n }\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"final /* synthetic */ void m36063c(String str) throws Exception {\n this.f29981a.showUnMuteSuccessful();\n this.f29988h.a(str);\n }",
"public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}",
"private boolean setPasswordPrivileged(@NonNull String password, int flags,\n CallerIdentity caller) {\n if (isLockScreenSecureUnchecked(caller.getUserId())) {\n throw new SecurityException(\"Cannot change current password\");\n }\n return resetPasswordInternal(password, 0, null, flags, caller);\n }",
"public boolean onTouch(View v, MotionEvent event) {\n\n Log.d(TAG, \"onTouch: \");\n if (SIP_Audio_Call == null) {\n return false;\n } else if (event.getAction() == MotionEvent.ACTION_DOWN && SIP_Audio_Call != null && SIP_Audio_Call.isMuted()) {\n SIP_Audio_Call.toggleMute();\n Toast.makeText(this, \"ACTION_DOWN\", Toast.LENGTH_SHORT).show();\n } else if (event.getAction() == MotionEvent.ACTION_UP && !SIP_Audio_Call.isMuted()) {\n SIP_Audio_Call.toggleMute();\n Toast.makeText(this, \"ACTION_UP\", Toast.LENGTH_SHORT).show();\n }\n return false;\n }",
"@Override\n\tpublic void sudo(User user)\n\t{\n\t\tthis.user = user;\n\t}",
"@Override\r\n\tpublic void setDontSendLocalSecurityUpdates(boolean arg0)\r\n\t\t\tthrows NotesApiException {\n\r\n\t}"
] | [
"0.7788543",
"0.76745266",
"0.76353186",
"0.74734557",
"0.71868414",
"0.7167538",
"0.7122241",
"0.69244766",
"0.6872338",
"0.67843187",
"0.67821354",
"0.66947407",
"0.66401833",
"0.65390646",
"0.65283555",
"0.6504299",
"0.6491386",
"0.6467265",
"0.63314545",
"0.6184803",
"0.61776716",
"0.6170943",
"0.612956",
"0.6100217",
"0.6089087",
"0.6072561",
"0.60313684",
"0.6027177",
"0.60156137",
"0.59740895",
"0.5973084",
"0.5962565",
"0.59479785",
"0.59331894",
"0.5874561",
"0.5867842",
"0.5844394",
"0.584044",
"0.5763591",
"0.57545793",
"0.5725394",
"0.5716706",
"0.5695869",
"0.5647722",
"0.5620731",
"0.56168",
"0.56155777",
"0.5593627",
"0.55914205",
"0.5558855",
"0.55547136",
"0.5465838",
"0.5437895",
"0.54344106",
"0.5432773",
"0.5401606",
"0.5373004",
"0.53425413",
"0.53226423",
"0.52692574",
"0.5234546",
"0.52117527",
"0.51990414",
"0.51934993",
"0.5173095",
"0.51454973",
"0.5102918",
"0.51017827",
"0.50737613",
"0.5062549",
"0.5045177",
"0.5040042",
"0.50366175",
"0.50313413",
"0.5003144",
"0.49734324",
"0.49710217",
"0.4962161",
"0.49517244",
"0.49380392",
"0.49318764",
"0.49152955",
"0.49151817",
"0.4912046",
"0.49026746",
"0.48972124",
"0.48934498",
"0.48896796",
"0.48882288",
"0.4871319",
"0.48676497",
"0.48559508",
"0.48559508",
"0.48559508",
"0.4850176",
"0.48389786",
"0.48202863",
"0.48179823",
"0.48163578",
"0.4809038"
] | 0.75089175 | 3 |
Sets the audio effect to the effect whose index is given | public void setVoiceEffect(int effectIndex) {
mRtcEngine.setAudioEffectPreset(VOICE_EFFECTS[effectIndex]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEffect(int effectIndex, int filterIndex) {\n\t\talSource3i(musicSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(musicSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(reverseSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(reverseSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(flangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(flangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(distortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(distortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(distortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(distortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahDistortSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahDistortSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(wahDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(wahDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t\talSource3i(revWahDistortFlangeSourceIndex, AL_AUXILIARY_SEND_FILTER, effectIndex, 0, AL_FILTER_NULL);\n\t\talSourcei(revWahDistortFlangeSourceIndex, AL_DIRECT_FILTER, filterIndex);\n\t}",
"public void ChangeMusic(int musicnum, boolean looping);",
"void setValueMixerSound(int value);",
"public void selectMixer(final int index) {\n\t\tif (currentClip != null) {\n\t\t\tif (currentClip.isOpen()) {\n\t\t\t\tthrow new IllegalStateException(\"The player has a music loaded : cannot change the output\");\n\t\t\t}\n\t\t\tclose();\n\t\t}\n\t\tcurrentClip = MixersUtilities.getClipByMixerIndex(index);\n\t}",
"public void setEffect(String effect){\n this.effect = effect;\n }",
"public void setEffectType(int i) {\n this.mEffectType = i;\n }",
"public static void playSound(Activity a, int index) {\n MediaPlayer mp = new MediaPlayer();\n mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n mp.reset(); // fix bug app show warning \"W/MediaPlayer: mediaplayer went away with unhandled events\"\n mp.release();\n mp = null;\n }\n });\n try {\n String []listMusic = a.getAssets().list(AppConstant.ASSETSMUSIC);\n AssetFileDescriptor afd = a.getAssets().openFd(\"music\"\n + System.getProperty(\"file.separator\") + listMusic[index]);\n mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());\n afd.close();\n mp.prepare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n mp.start();\n }",
"private void playSound(int index, float pitch) {\n try {\n metaObject.playSound(index, pitch, 1f);\n } catch (NullPointerException | IndexOutOfBoundsException ex) {\n System.out.println(\"Could not play sound with index \" + index + \" for \" + this.toString() + \".\");\n }\n }",
"public abstract void setEffects(Tank t);",
"void playOnCondition(int soundIndex, boolean condition) {\n\t\tsounds.get(soundIndex).playOnCondition(condition);\n\t}",
"void changeMusic(AudioTrack newSong);",
"private static void playEffect(Clip effect) {\n\n\t\tif (GameFrame.settingsPanel.effectsOn() && effect != null) {\n\t\t\teffect.start();\n\t\t\teffect.setFramePosition(0);\n\t\t}\n\n\t}",
"SoundEffect(final String soundEffectName) throws MediaException {\n audio = new AudioClip(Paths.get(SFX_PATH + soundEffectName).toUri().toString());\n }",
"void play(int soundIndex) {\n\t\tsounds.get(soundIndex).play();\n\t}",
"public void effect() {\n }",
"void setPositionEffect(PositionEffect inPositionEffect);",
"private void applyEffect(Event.Effect effect) {\n\t\tint change = (int) effect.getValue();\n\t\t\n\t\tswitch(effect.getType()) {\t\t\n\t\tcase INCREASE_MONEY:\n\t\t\tplayer.setMoney(player.getMoney() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_MONEY:\n\t\t\tplayer.setMoney(player.getMoney() - change);\n\t\t\tbreak;\n\t\tcase INCREASE_AGENTS:\n\t\t\tplayer.setAgentNumber(player.getAgentNumber() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_AGENTS:\n\t\t\tplayer.setAgentNumber(player.getAgentNumber() - change);\n\t\t\tbreak;\n\t\tcase INCREASE_AGENT_SKILL:\n\t\t\tplayer.setAgentSkill(player.getAgentSkill() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_AGENT_SKILL:\n\t\t\tplayer.setAgentSkill(player.getAgentSkill() - change);\t\t\t\n\t\t\tbreak;\n\t\tcase INCREASE_MEDIA_REACH:\n\t\t\tplayer.setMediaReach(player.getMediaReach() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_MEDIA_REACH:\n\t\t\tplayer.setMediaReach(player.getMediaReach() - change);\t\t\t\n\t\t\tbreak;\n\t\tcase INCREASE_MEDIA_INFLUENCE:\n\t\t\tplayer.setMediaPerception(player.getMediaPerception() + change);\n\t\t\tbreak;\n\t\tcase DECREASE_MEDIA_INFLUENCE:\n\t\t\tplayer.setMediaPerception(player.getMediaPerception() - change);\t\t\t\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// TODO handle error\n\t\t}\n\t\t\n\t}",
"public void setSelMixer(int d, int index) {\n\tif (index < 0 || index >= mixers[d].size()) {\n\t if (DEBUG) out(\"setSelMixer out of range: index=\"+index);\n\t return;\n\t} else {\n\t mixer[d] = mixers[d].get(index);\n\t}\n }",
"@Override\r\n\tpublic void setMusic() {\r\n\t\tmanager.getMusicManager().setMusic((Music) Gdx.audio.newMusic(Gdx.files.internal(\"Music/Bandit Camp.mp3\")));\r\n\t}",
"@Override\n\tpublic void setEffect(Effect effect) {\n\t\tthis.effect = effect;\n\t\tthis.txtEffectName.setText(this.effect.getName());\n\t\tthis.txtEffectValue.setText(Integer.toString(this.effect.getValue()));\n\t\tthis.txtaDescription.setText(((FeintActionEffect)this.effect).getDescription());\n\t}",
"public void pauseMusic() {\n\t\talSourcePause(musicSourceIndex);\n\t\talSourcePause(reverseSourceIndex);\n\t\talSourcePause(flangeSourceIndex);\n\t\talSourcePause(revFlangeSourceIndex);\n\t\talSourcePause(wahSourceIndex);\n\t\talSourcePause(revWahSourceIndex);\n\t\talSourcePause(wahFlangeSourceIndex);\n\t\talSourcePause(revWahFlangeSourceIndex);\n\t\talSourcePause(distortSourceIndex);\n\t\talSourcePause(revDistortSourceIndex);\n\t\talSourcePause(distortFlangeSourceIndex);\n\t\talSourcePause(revDistortFlangeSourceIndex);\n\t\talSourcePause(wahDistortSourceIndex);\n\t\talSourcePause(revWahDistortSourceIndex);\n\t\talSourcePause(wahDistortFlangeSourceIndex);\n\t\talSourcePause(revWahDistortFlangeSourceIndex);\n\t}",
"public void updateCurrentSongIndex(int index) {\n\t\tthis.currentSongIndex = index;\n\t}",
"public SoundEffect adjust(float volume, float pitch) {\n \t\treturn new SoundEffect(this, volume, pitch);\n \t}",
"SoundEffect(String n) {\n\t\ttry{\n\t\t\tURL url = this.getClass().getClassLoader().getResource(n); //Create url with filename\n\t\t\tAudioInputStream audioInputStream = AudioSystem.getAudioInputStream(url); //Create AudioInputStream with url\n\t\t\tclip = AudioSystem.getClip(); //Assign the wav to clip\n\t\t\tclip.open(audioInputStream); //Open the clip\n\t\t}\n\t\tcatch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace(); //Print stack trace for debugging\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace(); //Print stack trace for debugging\n\t\t}\n\t\tcatch (LineUnavailableException e) {\n\t\t\te.printStackTrace(); //Print stack trace for debugging\n\t\t}\n\t}",
"public void playAudio() {\n\t\tmusic[currentSong].stop();\n\t\tcurrentSong++;\n\t\tcurrentSong %= music.length;\n\t\tmusic[currentSong].play();\n\t}",
"public abstract SoundPlayer setVolume(int volume);",
"public void addLayer(int index, int effect, float param){\n history.addAtIndex(index, effect);\n historyValues.addAtIndex(index, param);\n }",
"public static void setSoundEffectVolume(int volume)\n\t{\n\t\tPreconditions.checkArgument(volume >= 0, \"Sound effect volume was less than zero: %s\", volume);\n\t\tPreconditions.checkArgument(volume <= 100, \"Sound effect volume was greater than 100: %s\", volume);\n\t\t\n\t\tsoundEffectVolume = volume;\n\t}",
"public void setMaterialIndex(int index) { materialIndex = index; }",
"public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}",
"public void setAudioDescriptor( AudioDescriptor audioDescriptor );",
"public void setIndex(int index) {\n nativeSetDCChangeSpeedLevel2Index(index);\n }",
"public int playAsEffectAt(float pitch, float volume, float x, float y, float z) {\n if (!isStream) {\n return AudioController.INSTANCE.playAsSoundAt(buffer, pitch, volume, false, x, y, z);\n } else {\n System.err.println(\"It is not advised to play a stream as a sound effect\");\n return AudioController.INSTANCE.playAsStreamAt(path, pitch, volume, false, x, y, z);\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp3.play(sound_id3, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"@Override\n public void effect() {\n\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void setEffectsVolume(float volume){\n\t\tvolume = volume / 100;\n\t\tif (volume < 0){\n\t\t\tvolume = 0;\n\t\t}\t\n\t\tif (volume > 1){\n\t\t\tvolume = 1;\n\t\t}\n\t\t\n\t\tthis.mLeftVolume = this.mRightVolume = volume;\n\t\t\n\t\t// change the volume of playing sounds\n\t\tIterator<?> iter = this.mSoundIdStreamIdMap.entrySet().iterator();\n\t\twhile (iter.hasNext()){\n\t\t\tMap.Entry<Integer, Integer> entry = (Map.Entry<Integer, Integer>)iter.next();\n\t\t\tthis.mSoundPool.setVolume(entry.getValue(), mLeftVolume, mRightVolume);\n\t\t}\n\t}",
"public void mp3(View view) {\n mp1 = MediaPlayer.create(this, R.raw.heyjude);\n mp1.setLooping(false);\n mp1.setVolume(100, 100);\n mp1.start();\n }",
"static void afinar(Instrument1 i) { i.play(Note.MIDDLE_C); }",
"public void StartMusic(int music_id);",
"public void playMusic() {\r\n try {\r\n File mFile = new File(Filepath);\r\n if (mFile.exists()) {\r\n AudioInputStream audioInput = AudioSystem.getAudioInputStream(mFile);\r\n Clip clip = AudioSystem.getClip();\r\n clip.open(audioInput);\r\n FloatControl gainControl = (FloatControl) clip.getControl(FloatControl.Type.MASTER_GAIN);\r\n gainControl.setValue(-25.0f); //reduces the volume by 25 decibels\r\n clip.start();\r\n clip.loop(Clip.LOOP_CONTINUOUSLY);\r\n\r\n } else {\r\n System.out.println(\"Music File not found\"); // will be thrown if music file is not in the file\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"public void playSound(int soundIndex, float volume)\r\n {\r\n mSoundManager.playSound(soundIndex, volume);\r\n \t//mSoundManager.setSoundFlag(soundIndex, volume);\r\n }",
"private static AudioEffectParam[] m125912a(int i) {\n return new AudioEffectParam[i];\n }",
"private void initialMusic(){\n\n }",
"public void setAmbientLightIntensity(float i) {\n ambientLightIntensity = i;\n }",
"public void setEffect(BGMTransition effect)\n\t{\n\t\tthis.effect = effect;\n\t}",
"public void explosion(){\n explosionEffect.play(pitch, volume);\n }",
"public void setMusic(Music music);",
"public void updateVolume(){\r\n if(currentLoop0) backgroundMusicLoop0.gainControl.setValue(Window.musicVolume);\r\n else backgroundMusicLoop1.gainControl.setValue(Window.musicVolume);\r\n }",
"public synchronized void addEffect(SpellEffect effect) {\n effects.add(effect);\n }",
"public default void doEffectStart(SpellData data, World world, Side onSide){ }",
"void startMusic(AudioTrack newSong);",
"public void AudioMuerte() {\r\n\t\ttry {\r\n\t\t\tdeath.AbrirFichero(\"C:\\\\Temp\\\\Sonidos\\\\golpe.wav\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error: \" + e);\r\n\t\t}\r\n\t}",
"private void musicClicked() {\n MatchScreen.setMusicVolume(MatchScreen.getMusicVolume() == 0 ? 0.5f : 0);\n setSoundButtonColor(MatchScreen.getMusicVolume() == 0, music);\n }",
"public interface ISoundEffect {\n\n ResourceReference getSoundReference();\n\n boolean canRepeat();\n\n int getRepeatDelay();\n\n float getVolume();\n\n float getPitch();\n\n Vect3d getPosition();\n\n AttenuationType getAttenuationType();\n\n default void play() {\n Game.getClientHandler().getSoundHandler().playSound(this);\n }\n\n enum AttenuationType {\n NONE(0),\n LINEAR(2);\n\n private int type;\n\n AttenuationType(int type) {\n this.type = type;\n }\n\n public int getType() {\n return this.type;\n }\n }\n}",
"private void autofixEffect(int barra) {\n float val = barra / -20f + 5f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_AUTOFIX);\n effect.setParameter(\"scale\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }",
"@Override\n\tpublic void effectAdded(Effect effect) {\n\t}",
"public void reSurrect(){\n\t\tcanvas = Canvas.getInstance();\n\t\tfor(int i = 0; i < myEffects.size(); i++){\n\t\t\tmyEffects.get(i).reSurrect();\n\t\t}\n\t}",
"public void setSongIndex(int songIndex)\r\n\t{\r\n\t\tthis.songIndex = songIndex;\r\n\t}",
"public void activate(float a, int which, float freq, int wf) {\n if (wf == MultiWave.VARIABLE)\n if (freq > highCutoff) {\n mixingCoefficients[which][MultiWave.SINE] = 1.0;\n mixingCoefficients[which][MultiWave.SAW] = mixingCoefficients[which][MultiWave.SQUARE] = mixingCoefficients[which][MultiWave.TRIANGLE] = 0.0;\n } else if (freq < lowCutoff) {\n mixingCoefficients[which][MultiWave.SAW] = 0.5;\n mixingCoefficients[which][MultiWave.TRIANGLE] = 1.0;\n mixingCoefficients[which][MultiWave.SINE] = mixingCoefficients[which][MultiWave.SQUARE] = 0.0;\n } else {\n mixingCoefficients[which][MultiWave.SINE] = (freq - lowCutoff)/(highCutoff - lowCutoff);\n mixingCoefficients[which][MultiWave.TRIANGLE] = 1.0 - mixingCoefficients[which][MultiWave.SINE];\n if (freq < midCutoff) {\n mixingCoefficients[which][MultiWave.SAW] = 0.5*(midCutoff - freq)/(midCutoff - lowCutoff);\n } else\n mixingCoefficients[which][MultiWave.SAW] = 0.0;\n }\n\n if (!isActive[which]) {\n numActive++;\n isActive[which] = true;\n } // end if\n\n frequencies[which] = freq;\n amplitudes[which] = a;\n whichWaveForm[which] = wf;\n deltaPhases[which] = TWO_PI * freq / frameRate;\n }",
"public void playIvtEffect() {\n if (this.isVibrateImplemented && 1 == Settings.System.getInt(this.mContext_Vibrate.getContentResolver(), \"touch_vibrate_mode\", 1)) {\n if (this.mContext_Vibrate.checkCallingOrSelfPermission(\"android.permission.VIBRATE\") != 0) {\n Log.e(TAG, \"playIvtEffect Method requires android.Manifest.permission.VIBRATE permission\");\n return;\n }\n try {\n Class<?> mClazz_vibetonzImpl = mClassLoader.loadClass(\"com.immersion.VibetonzImpl\");\n Object object_vibetonzImpl = mClazz_vibetonzImpl.getMethod(\"getInstance\", new Class[0]).invoke(null, new Object[0]);\n mClazz_vibetonzImpl.getMethod(\"playIvtEffect\", new Class[]{String.class}).invoke(object_vibetonzImpl, new Object[]{\"NUMBERPICKER_ITEMSCROLL\"});\n } catch (ClassNotFoundException e) {\n Log.e(TAG, \"ClassNotFoundException in reflect playIvtEffect in set object\");\n } catch (NoSuchMethodException e2) {\n Log.e(TAG, \"no field in reflect playIvtEffect in set object\");\n } catch (IllegalAccessException e3) {\n e3.printStackTrace();\n } catch (IllegalArgumentException e4) {\n Log.e(TAG, \"IllegalArgumentException in reflect playIvtEffect in set object\");\n } catch (InvocationTargetException e5) {\n Log.e(TAG, \"InvocationTargetException in reflect playIvtEffect in set object\");\n } catch (RuntimeException e6) {\n Log.e(TAG, \"RuntimeException in reflect playIvtEffect in set object\");\n } catch (Exception e7) {\n Log.e(TAG, \"Exception in reflect playIvtEffect in set object\");\n }\n }\n }",
"public void setUpSound() {\n try {\n generateTone();\n setFrequencyLabel();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }",
"Builder addAudio(AudioObject value);",
"public void setShuffleSongIndex(int index) {\n\t\tthis.shuffleSongIndex = index;\n\t}",
"protected void applyEffects()\n\t{\n\t\tfor(int i = 0; i < effects.length; i++)\n\t\t{\n\t\t\tif(effects[i] != null)\n\t\t\t{\n\t\t\t\teffects[i].applyEffect();\n\t\t\t}\n\t\t}\n\t}",
"int getEffect();",
"public ArrayList<Effect> getEnemyEffects(int index){\n return enemyController.seeEnemyEffect(index);\n }",
"public void StartSound(ISoundOrigin origin, sfxenum_t sound_id);",
"void changeSetting(int idx) {\n currentIdx = idx;\n }",
"@Override\n public void setAudioVolumeInsideVolumeSeekBar(int i) {\n float currentVolume = 1.0f;\n if (i < PlayerConstants.MaxProgress) {\n currentVolume = (float)(1.0f - (Math.log(PlayerConstants.MaxProgress - i) / Math.log(PlayerConstants.MaxProgress)));\n }\n setAudioVolume(currentVolume);\n //\n }",
"public static void playSoundEffect(String path) {\n Thread thread = new Thread(() -> {\n Player soundEffectPlayer = new Player();\n soundEffectPlayer.setSourceLocation(path);\n soundEffectPlayer.play();\n });\n thread.setDaemon(true);\n thread.start();\n }",
"public void setFilter3(int index, java.lang.String value) {\n\t\tthis.setValue(FILTER3, index, value);\n\t}",
"public synchronized void resetCurrentIndex()\n {\n // Reset the current index to start from 1 (speechgen0001.mp3)\n currentIndex = 1;\n }",
"@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\t// TODO Auto-generated method stub\n \t\t\t\tthis.mPlayer = new MediaPlayer();\n \t\t\t\tthis.mPlayer\n \t\t\t\t\t\t.setOnCompletionListener(new OnCompletionListener() {\n \n \t\t\t\t\t\t\t@Override\n \t\t\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n \t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n \t\t\t\t\t\t\t\tNoteEditView.this.mAudioPlay\n \t\t\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.audiologo);\n \t\t\t\t\t\t\t\tmPlayer.stop();\n \t\t\t\t\t\t\t\tmPlayer.release();\n \t\t\t\t\t\t\t\tmPlayer = null;\n \t\t\t\t\t\t\t\tanim.stop();\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t});\n \t\t\t\ttry {\n \t\t\t\t\tmPlayer.setDataSource(NoteEditView.this.mNoteItemModel\n \t\t\t\t\t\t\t.getAudio());\n \t\t\t\t\tmPlayer.prepare();\n \t\t\t\t\tmPlayer.start();\n \t\t\t\t\tNoteEditView.this.mAudioPlay\n \t\t\t\t\t\t\t.setBackgroundResource(R.anim.audio_play);\n \t\t\t\t\tanim = (AnimationDrawable) NoteEditView.this.mAudioPlay\n \t\t\t\t\t\t\t.getBackground();\n \t\t\t\t\tanim.stop();\n \t\t\t\t\tanim.start();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t}\n \t\t\t}",
"void applyEffects();",
"private void setItem(String material, String nameKey, Sound music, int x, int y) {\r\n\t\tMaterial loadedMaterial = Material.valueOf(plugin.getSettings().getString(material));\r\n\t\tthis.setAction(new VanillaMusicItem(\r\n\t\t\t\trenameItem(new ItemStack(loadedMaterial, 1), nameKey), \r\n\t\t\t\tmusic), x, y);\r\n\t}",
"@Override\n public void playSound(int soundId) {\n\n }",
"public void setCurrentImage(int index) {\n if ((index >= 0) && (index < mTexIdArray.length)) {\n mTexId = mTexIdArray[index];\n }\n }",
"private void sharpenEffect(int barra) {\n float val = barra / 100f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_SHARPEN);\n effect.setParameter(\"scale\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }",
"public void updateAmbient(AmbientLight amb) {\r\n ambientLight = amb;\r\n }",
"Builder addAudio(String value);",
"@Override\n\tpublic void ontick(Player p) {\n\t\tp.pos = move; // port to move vector\n\t\t\n\t\tfor(Effect ef:p.effects){\n\t\t\tef.ttl = 1;\n\t\t}\n\t}",
"public void setEffect(RMEffect anEffect)\n{\n if(RMUtils.equals(getEffect(), anEffect)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_effect!=null) { _effect.removePropertyChangeListener(this);\n removePropertyChangeListener(_effect); removeDeepChangeListener(_effect); }\n firePropertyChange(\"Effect\", _effect, _effect = anEffect, -1); // Set value and fire PropertyChange\n if(_effect!=null) { _effect.addPropertyChangeListener(this);\n addPropertyChangeListener(_effect); addDeepChangeListener(_effect); }\n}",
"public void setAudioPort(int port);",
"private void playAudio(int audioIndex) {\n if (!serviceBound) {\n //Store Serializable audioList to SharedPreferences\n\n new StorageUtil(QuranListenActivity.this).storeAudio(audios);\n new StorageUtil(QuranListenActivity.this).storeAudioIndex(audioIndex);\n\n Intent playerIntent = new Intent(this, MediaPlayerService.class);\n startService(playerIntent);\n bindService(playerIntent, serviceConnection, Context.BIND_AUTO_CREATE);\n } else {\n //Store the new audioIndex to SharedPreferences\n // Log.e(\"servvv\",\"SERVICE IS ACTIVE\");\n new StorageUtil(QuranListenActivity.this).storeAudio(audios);\n new StorageUtil(QuranListenActivity.this).storeAudioIndex(audioIndex);\n\n //Service is active\n //Send a broadcast to the service -> PLAY_NEW_AUDIO\n Intent broadcastIntent = new Intent(Broadcast_PLAY_NEW_AUDIO);\n sendBroadcast(broadcastIntent);\n }\n }",
"public void play(int i) {\n if(i > 2) throw new ArrayIndexOutOfBoundsException(OUTOFINDEXERROR);\n else userPickNumber = i ;\n }",
"public static void setSound(boolean tempSound) {\n sound = tempSound;\n }",
"public void toggleSound()\n\t{\n\t\tif (sound)\n\t\t\tsound = false;\n\t\telse\n\t\t\tsound = true;\n\t\tnotifyObservers();\n\t}",
"@Override\n\tpublic void OnAttackCommand() {\n\t\tsuper.OnAttackCommand();\n\t\tSoundManage.playSound(atkSound1);\n\t}",
"public void ReproduceAudio() { \r\n\t\ttry {\r\n\t\t\t//en caso de que como nombre pongas \"undertale\" la musica sera diferente.\r\n\t\t\tif (Menu.jugador.equals(\"undertale\") || Menu.jugador.equals(\"Undertale\")) {\r\n\t\t\t\trepro.AbrirFichero(\"C:\\\\Temp\\\\Sonidos\\\\undertale.wav\");\r\n\t\t\t\t//emppieza la musica\r\n\t\t\t\trepro.Play();\r\n\t\t\t//musica por defecto\r\n\t\t\t} else {\r\n\t\t\t\trepro.AbrirFichero(\"C:\\\\Temp\\\\Sonidos\\\\tetris.mp3\");\r\n\t\t\t\trepro.Play();\r\n\t\t\t}\t\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Error: \" + ex.getMessage());\r\n\t\t}\r\n\t}",
"public String getMusic(int index){\r\n\t\treturn myMusics.get(index);\r\n\t}",
"@Override\n public void onClick(View image) {\n YoYo.with(Techniques.Pulse).duration(300).playOn(image);\n Toast.makeText(context, namesArray[position], Toast.LENGTH_SHORT).show();\n }",
"public void play (int index) {\n try {\n sendHeader (PLAYER_MSGTYPE_CMD, PLAYER_SOUND_CMD_IDX, 4);\n XdrBufferEncodingStream xdr = new XdrBufferEncodingStream (4);\n xdr.beginEncoding (null, 0);\n xdr.xdrEncodeInt (index);\n xdr.endEncoding ();\n os.write (xdr.getXdrData (), 0, xdr.getXdrLength ());\n xdr.close ();\n os.flush ();\n } catch (IOException e) {\n throw new PlayerException\n (\"[Sound] : Couldn't send play command request: \" +\n e.toString (), e);\n } catch (OncRpcException e) {\n throw new PlayerException\n (\"[Sound] : Couldn't XDR-encode play command request: \" +\n e.toString (), e);\n }\n }",
"@Result\n public int setTone(@Tone int tone) {\n synchronized (mLock) {\n TunerUtils.checkResourceState(TAG, mIsClosed);\n return nativeSetTone(tone);\n }\n }",
"public void play() {\n if (audio != null) {\n audio.play(sfxVolume);\n }\n }",
"public void setParticleTextureIndex(int p_70536_1_) {\n/* 232 */ if (getFXLayer() != 0)\n/* */ {\n/* 234 */ throw new RuntimeException(\"Invalid call to Particle.setMiscTex\");\n/* */ }\n/* */ \n/* */ \n/* 238 */ this.particleTextureIndexX = p_70536_1_ % 16;\n/* 239 */ this.particleTextureIndexY = p_70536_1_ / 16;\n/* */ }",
"public void mutate(String chromSeq){\n\t\teffects = new String[alleles.length];\n\t\tfor (int i=0; i< alleles.length; i++){\n\t\t\teffects[i] = alleles[i].affect(geneModel, chromSeq);\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp1.play(sound_id1, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}",
"public void audioAction() {\n getSelectedCell().toggleAudio();\n }",
"SoundEffects(String[] soundEffectNames){\n\t\tArrayLength = soundEffectNames.length;\n\t\tsounds = new ArrayList<Sound>();\n\t\tEZSounds = new EZSound[ArrayLength];\n\t\t\n\t\t//load each sound into sound[] slots\n\t\tfor (int i = 0;i < soundEffectNames.length;i++) {\n\t\t\tSound sound = new Sound(soundEffectNames[i]);\n\t\t\tsounds.add(sound);\n\t\t}\n\t\t\n\t\t//load each sound into an EZSound Array\n\t\tfor (int i = 0;i < sounds.size();i++) {\n\t\t\tEZSounds[i] = sounds.get(i).getSound();\n\t\t}\n\t}",
"public void toggleMusic() {\n this.musicEnabled = !this.musicEnabled;\n }"
] | [
"0.6854357",
"0.6308804",
"0.6300108",
"0.6196117",
"0.61407703",
"0.6063085",
"0.6061641",
"0.58686197",
"0.58354276",
"0.58211803",
"0.5819084",
"0.57964605",
"0.578159",
"0.575312",
"0.5710071",
"0.567008",
"0.5649056",
"0.5641876",
"0.56257457",
"0.5537578",
"0.5512155",
"0.5483408",
"0.54810953",
"0.5451122",
"0.54481494",
"0.54366463",
"0.542741",
"0.53673744",
"0.53589994",
"0.5333665",
"0.5331386",
"0.5307573",
"0.53023094",
"0.5295495",
"0.52856284",
"0.52800417",
"0.52722394",
"0.5235586",
"0.52317864",
"0.523123",
"0.52226275",
"0.52218837",
"0.5214166",
"0.52037597",
"0.52028775",
"0.51967514",
"0.5189212",
"0.51707083",
"0.5168437",
"0.5165252",
"0.5165067",
"0.5164567",
"0.5159353",
"0.51458853",
"0.5143851",
"0.51425076",
"0.51408124",
"0.5139451",
"0.51388687",
"0.51273745",
"0.5127207",
"0.5115105",
"0.5114246",
"0.5113954",
"0.5105861",
"0.5103565",
"0.51013595",
"0.5101038",
"0.5097099",
"0.50885093",
"0.5081223",
"0.5076862",
"0.50725126",
"0.50680083",
"0.5066891",
"0.50614583",
"0.5057019",
"0.50563186",
"0.5046763",
"0.5045615",
"0.50451833",
"0.5036613",
"0.5017133",
"0.50031495",
"0.5002271",
"0.49996278",
"0.49988183",
"0.49938262",
"0.49906754",
"0.49842316",
"0.49828762",
"0.4977461",
"0.49768054",
"0.49689302",
"0.496616",
"0.4964815",
"0.4963098",
"0.49627754",
"0.495447",
"0.49495354"
] | 0.70209616 | 0 |
Mutes (unmutes) the given user locally if muted is set to true (false) | public void muteUserLocally(boolean muted, String id) {
for (int uid : usersCallId.keySet()) {
if (usersCallId.get(uid).equals(id)) {
mRtcEngine.adjustUserPlaybackSignalVolume(uid, muted ? VOLUME_OFF : STANDARD_VOLUME);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isMuted(User u) {\n return bot\n .getCreditsFile()\n .getInt(\"Mutes.\" + u + \".Mute\") > 0;\n }",
"void mute() {\n execute(\"player.muted = true\");\n }",
"void unmute() {\n execute(\"player.muted = false\");\n }",
"public static boolean isUserMuted(Neighbor user){\n Iterator<Neighbor> it = mutedNeighbors.iterator();\n while (it.hasNext()) {\n Neighbor peer = it.next();\n if(peer.getDeviceAddress().equals(user.getDeviceAddress())) {\n Log.i(TAG,\"User is muted\");\n return true;\n }\n }\n Log.i(TAG,\"User is NOT muted\");\n return false;\n }",
"public void muteUser(User user, int seconds) {\n bot.getCreditsFile().set(\"Mutes.\" + user.getId() + \".Name\", user.getName());\n bot.getCreditsFile().set(\"Mutes.\" + user.getId() + \".Mute\", seconds);\n data.saveFile(bot.getCreditsFile(), \"credits\");\n GuildUtils.controller().modifyMemberRoles(GuildUtils.guild().getMember(user), Collections.singleton(Roles.MUTED), Collections.emptySet()).queue();\n }",
"public int mute(boolean mute) {\n int result = mRtcEngine.muteLocalAudioStream(mute);\n appointment.muteUser(new DatabaseUser(MainUser.getMainUser().getId()), mute);\n\n return result;\n }",
"Boolean isMuted() {\n return execute(\"player.muted\");\n }",
"public void setMuted(boolean b)\n\t{\n\t\tm_isMuted = b;\n\t}",
"public void mute() {\n\t\tstate.mute();\n\t}",
"public void onLocalAudioMuteClicked(View view) {\n // Change the value of muted\n mMuted = !mMuted;\n // Update the agora engine with the mute\n mRtcEngine.muteLocalAudioStream(mMuted);\n // Get the correct mute button\n int res = mMuted ? R.drawable.btn_mute : R.drawable.btn_unmute;\n // Apply the correct img\n mMuteBtn.setImageResource(res);\n }",
"public CommonAlert muted(Boolean muted) {\n this.muted = muted;\n return this;\n }",
"public void setMute(boolean mute);",
"public void onLocalAudioMuteClicked(View view) {\n // Toggle audio mute.\n setAudioState(!mMuted);\n }",
"private void setAudioState(boolean muted) {\n mMuted = muted;\n mRtcEngine.muteLocalAudioStream(mMuted);\n if (mMuted) {\n mMuteBtn.setImageResource(R.drawable.btn_mic_muted);\n } else {\n mMuteBtn.setImageResource(R.drawable.btn_mic_unmuted);\n }\n }",
"public void updateMuteTime() {\n for (Member m : GuildUtils.members()) {\n final User u = m.getUser();\n if (isMuted(u)) {\n muteUser(u, getTimeLeftForMute(u) - 4);\n } else {\n GuildUtils.controller().modifyMemberRoles(GuildUtils.guild().getMember(u), Collections.emptySet(), Collections.singleton(Roles.MUTED)).queue();\n }\n }\n }",
"public boolean getMute();",
"public void setMute(boolean mute) {\n \t\tthis.mute = mute;\n \t}",
"default void toggle(boolean fromUser) {\n if (isPlaying()) {\n pause(fromUser);\n } else {\n play(fromUser);\n }\n }",
"public static boolean muteNeighbor(Neighbor neighbor) throws NullPointerException{\n boolean isMuted = false;\n if(!isUserMuted(neighbor)) {\n if (UDPpacketListner.doesAddressExist(neighbor.getDeviceAddress())) {\n //Get the neighbor's IP\n neighbor.setIpAddress(UDPpacketListner.getPeerAddress(neighbor.getDeviceAddress()).getHostAddress());\n\n isMuted = mutedNeighbors.add(neighbor);\n Log.i(\"mute\", neighbor.getInstanceName() + \" is muted? \" + isMuted);\n if(isMuted)\n Toast.makeText(TabsActivity.ctx, neighbor.getInstanceName()+\" has been muted\", Toast.LENGTH_LONG).show();\n\n }\n }\n return isMuted;\n }",
"boolean unblockUser(User user);",
"public boolean isMuted()\n\t{\n\t\treturn m_isMuted;\n\t}",
"public static void toggleMute()\n\t{\n\t\tmute = !mute;\n\t\tif (mute)\n\t\t{\n\t\t\t// Stop all sounds\n\t\t\tmusic.stop();\n\t\t\tlaserContinuous.stop();\n\t\t\tlaser.stop();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Start sounds\n\t\t\tstartMusic();\n\t\t\tif (laserRunning)\n\t\t\t{\n\t\t\t\tlaserContinuous.loop();\n\t\t\t}\n\t\t}\n\t}",
"public void mute() {\n\t\tif (isMute) {\n\t\t\tplaybin.setVolume(0);\n\t\t\tisMute = false;\n\t\t} else {\n\t\t\tplaybin.setVolume(volume);\n\t\t\tisMute = true;\n\t\t}\n\t}",
"private void channelPrivilegedUserUpdate() {\n String userKey = builder.getPersonalUser().getUserKey();\n if (channel.getPrivilegedUsers().size() != 0) {\n ArrayList<String> members = new ArrayList<>();\n for (User user : channel.getPrivilegedUsers()) {\n members.add(user.getId());\n }\n String[] membersArray = members.toArray(new String[0]);\n // send update to server\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), channel.isPrivilege(), membersArray, response -> {\n });\n } else {\n channel.setPrivilege(false);\n restClient.updateChannel(server.getId(), channel.getCategories().getId(), channel.getId(), userKey,\n channel.getName(), false, null, response -> {\n });\n }\n }",
"public boolean setPropertyMute(boolean aValue);",
"public void updateMute() {\n if (game.isMuted()) {\n mute.setIcon(muted);\n } else {\n mute.setIcon(unmuted);\n }\n }",
"public boolean toggleMute() {\n SoundPlayer.toggleMusicMute();\n SoundPlayer.toggleSoundFxMute();\n muted = !muted;\n return muted;\n }",
"@Override\n public void handleNodeMuted() {\n setLocalFlowUnit(SymptomFlowUnit.generic());\n }",
"private int getTimeLeftForMute(User u) {\n if (!isMuted(u)) return 0;\n return bot.getCreditsFile().getInt(\"Mutes.\" + u + \".Mute\");\n }",
"@Override\r\n\t\tpublic void dmr_setMute(boolean mute) throws RemoteException {\n\t\t\tmAmanager.setStreamMute(AudioManager.STREAM_MUSIC, mute);\r\n\t\t\tUtils.printLog(TAG, \"mAmanager.setStreamMute()\" + mute);\r\n\t\t}",
"public void setMuser(String muser) {\n this.muser = muser;\n }",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"void play(boolean fromUser);",
"@Override // com.oculus.messengervr.interfaces.MessengerThread\n @androidx.annotation.Nullable\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public java.lang.Boolean isMuted() {\n /*\n r6 = this;\n com.oculus.messenger.models.Thread r0 = r6.mOcThread\n r3 = 0\n if (r0 != 0) goto L_0x0017\n r1 = 0\n L_0x0008:\n long r4 = java.lang.System.currentTimeMillis()\n int r3 = (r1 > r4 ? 1 : (r1 == r4 ? 0 : -1))\n r0 = 0\n if (r3 <= 0) goto L_0x0012\n L_0x0011:\n r0 = 1\n L_0x0012:\n java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)\n return r0\n L_0x0017:\n long r1 = r0.mMuteExpireTime\n int r0 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r0 < 0) goto L_0x0011\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.messengervr.oc.models.OcMessengerThread.isMuted():java.lang.Boolean\");\n }",
"public void mute() {\n this.tv.setVolume(0);\r\n }",
"public static boolean unmuteNeighbor(Neighbor neighbor){\n if(isUserMuted(neighbor))\n {\n Toast.makeText(TabsActivity.ctx, neighbor.getInstanceName()+\" has been unmuted\", Toast.LENGTH_LONG).show();\n return mutedNeighbors.remove(neighbor);}\n return false;\n }",
"public boolean getPropertyMute();",
"private void handleMute(Call c)\n {\n // handle only established call\n if(c.getCallState() != CallState.CALL_IN_PROGRESS)\n return;\n\n // handle only connected peer (no on hold peer)\n if(c.getCallPeers().next().getState() != CallPeerState.CONNECTED)\n return;\n\n MediaAwareCall<?,?,?> cc = (MediaAwareCall<?,?,?>)c;\n if(mute != cc.isMute())\n {\n cc.setMute(mute);\n }\n }",
"public void setCurrentUserCanUnlock(boolean currentUserCanUnlock) {\r\n this.currentUserCanUnlock = currentUserCanUnlock;\r\n }",
"public boolean setPropertyMute(boolean aValue)\n {\n return setPropertyBool(iPropertyMute, aValue);\n }",
"@Override\n\tpublic void onMute(String clientName) {\n\t\t// TODO Auto-generated method stub\n\t\tlog.log(Level.INFO, \"Tiggered sendMute()\");\n\t\tIterator<User> iter = users.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\t// try {\n\t\t\tString name = clientName;\n\t\t\tUser client = iter.next();\n\t\t\tif (name.equals(client.getName())) {\n\t\t\t\tmuteName = client.getName();\n\t\t\t\tmuteClient = client;\n\t\t\t\tlog.log(Level.INFO, \"Passed name check\");\n\t\t\t}\n\t\t\t// } catch (ConcurrentModificationException e) {\n\t\t\t// log.log(Level.INFO, \"Caught ConcurrentModification\");\n\t\t\t// }\n\t\t}\n\t\treplaceClient(\"<font color=silver>\" + muteName + \"</font>\", muteClient);\n\t\tlog.log(Level.INFO, \"Reached replaceClient with \" + muteName + \" and \" + muteClient.getName());\n\t}",
"public void setUserPart(MtpUser mtpUser) {\n this.mtpUser = mtpUser;\n }",
"public void muteTimer(){\n\t\t//TODO: impl.\n\t\t/*\n\t\tThread worker;\n\t\t//do it in its own thread\n\t\tworker = new Thread() {\n \tpublic void run() {\n \t\t//mute and wait a bit (2s)\n \t\tmute();\n \t\ttry { Thread.sleep(2000); } catch (InterruptedException e) { e.printStackTrace(); }\n \t\t//then start checking for ILA actions\n \t\tint counter=100;\t\t//max wait 20s\n \t\twhile( (ILA_interface.avatar.isILAspeaking() || ILA_interface.avatar.is_recording==1) & counter>1 ){\n \t\t\tcounter--;\n \t\t\tILA_debug.println(\"ADDON-KODI - mute timer is waiting...\",2);\t\t\t//debug\n \t\t\ttry { Thread.sleep(200); } catch (InterruptedException e) { e.printStackTrace(); }\n \t\t}\n \t\t//timers are over: unmute\n \t\tunmute();\n \t}\n };\n worker.start();\n */\n\t}",
"void setAdminStatus(User user, boolean adminStatus);",
"@Override\r\n\t\tpublic boolean dmr_getMute() throws RemoteException {\n\t\t\tboolean mute = soundManager.getAudioMuteEnabled();\r\n\t\t\tUtils.printLog(TAG, \"soundManager.getAudioMuteEnabled()\" + mute);\r\n\t\t\treturn mute;\r\n\t\t}",
"@Override\n public void onSetMute(int result) {\n Log.d(\"DLNA\", \"onSetMute result:\" + result);\n }",
"boolean blockUser(User user);",
"@Resource(resourceId = 2215, operation = Operation.Read)\n public Boolean readMute()\t{\n ActionInvocation actionInvocation =\n new ActionInvocation(renderingControlService.getAction(ACTION_GET_MUTE));\n actionInvocation.setInput(ARG_INSTANCE_ID, new UnsignedIntegerFourBytes(0));\n actionInvocation.setInput(ARG_CHANNEL, VALUE_CHANNEL_MASTER);\n Map<String, ActionArgumentValue> output = UpnpController.getInstance().executeUpnpAction(actionInvocation);\n return (Boolean) output.get(ARG_CURRENT_MUTE).getValue();\n }",
"@Override\n\tpublic void modifierUser(User c) {\n\t\t\n\t}",
"public void updateUser(User detachedUser) throws Exception;",
"private void mute(String[] command) {\n\t\ttry {\n\t\t\tnew ProcessBuilder(Constants.CH_PATH_NIRCMD, \"mutesysvolume\", \"1\")\n\t\t\t\t\t.start();\n\t\t\tSystem.out.println(\"Muting sound.\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public JWebResult setParticipantAudioMute(final String userToken,\r\n final String confId,\r\n final String partId,\r\n final boolean connectionState) {\r\n System.out.println(\"Invoking setParticipantAudioMute...\");\r\n logger.info(\"Invoking setParticipantAudioMute...\");\r\n final JCredentials _setParticipantAudioMute_credentials = new JCredentials();\r\n _setParticipantAudioMute_credentials.setUserToken(userToken);\r\n final String _setParticipantAudioMute_confId = confId;\r\n final String _setParticipantAudioMute_partId = partId;\r\n final boolean _setParticipantAudioMute_connectionState = connectionState;\r\n final JWebResult _setParticipantAudioMute__return = port\r\n .setParticipantAudioMute(_setParticipantAudioMute_credentials,\r\n _setParticipantAudioMute_confId,\r\n _setParticipantAudioMute_partId,\r\n _setParticipantAudioMute_connectionState);\r\n System.out.println(\"setParticipantAudioMute.result=\"\r\n + _setParticipantAudioMute__return);\r\n return _setParticipantAudioMute__return;\r\n }",
"@Override\n\tpublic void onUnmute(String clientName) {\n\t\t// TODO Auto-generated method stub\n\t\tlog.log(Level.INFO, \"Tiggered sendUnmute()\");\n\t\tIterator<User> iter = users.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\t// try {\n\t\t\tString name = \"<font color=silver>\" + clientName + \"</font>\";\n\t\t\tUser client = iter.next();\n\t\t\tif (name.equals(client.getName())) {\n\t\t\t\tunmuteName = clientName;\n\t\t\t\tunmuteClient = client;\n\t\t\t\tlog.log(Level.INFO, \"Passed name check\");\n\t\t\t}\n\t\t\t// } catch (ConcurrentModificationException e) {\n\t\t\t// log.log(Level.INFO, \"Caught ConcurrentModification\");\n\t\t\t// }\n\t\t}\n\t\treplaceClient(unmuteName, unmuteClient);\n\t\tlog.log(Level.INFO, \"Reached replaceClient with \" + unmuteName + \" and \" + unmuteClient.getName());\n\t}",
"private void updateUserStatus(boolean online)\n {\n }",
"public void setHideSettings(String un, boolean friends, boolean posts, boolean age, boolean status){\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n // updating user database\n collRU.findOneAndUpdate(\n eq(\"username\", un),\n and(\n Updates.set(\"hidefriends\", friends),\n Updates.set(\"hideposts\",posts),\n Updates.set(\"hideage\",age),\n Updates.set(\"hidestatus\",status)\n )\n );\n }",
"@Override\n public void onGetMute(int result, boolean mute) {\n Log.d(\"DLNA\", \"onGetMute result:\" + result);\n }",
"void clearCurrentUser() {\n currentUser = null;\n }",
"@Override\n\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\tAtcSettings.Audio.SetMicMute(arg1);\n\t\tif (arg1) {\n\t\t\tm_micmute_cb.setChecked(true);\n\t\t}else{\n\t\t\tm_micmute_cb.setChecked(false);\n\t\t}\n\t}",
"public void setManagingUser(String managingUser, boolean isManagingUser) {\n this.managingUserDisplay.setText(managingUser);\n if (!isManagingUser) {\n btnResetGame.setEnabled(false);\n btnLockGame.setEnabled(false);\n } else {\n if (isLocked) {\n btnLockGame.setEnabled(false);\n btnResetGame.setEnabled(true);\n } else {\n btnLockGame.setEnabled(true);\n btnResetGame.setEnabled(true);\n }\n }\n }",
"@JsAccessible\n public void onVolumeChanged(double volume, boolean muted) {\n volumeChangedListeners.forEach(listener -> listener.accept(muted));\n }",
"public void setMuteDisabeld(boolean checked) {\n volumeControl.disable(checked);\r\n }",
"public void makeCurrentUser() {\n // Remove the Add Friend ImageView\n mFriendIv.setVisibility(View.GONE);\n\n // Show the \"You\" TextView\n mYouTv.setVisibility(View.VISIBLE);\n }",
"public void resetUser() {\n\t\ttry {\n\t\t\tif(null != rawSrv){\n\t\t\trawSrv.resetCfgGroup(ConfigType.RESET_USER);\n\t\t\t}\n\t\t} catch (TVMException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void sudo(User user)\n\t{\n\t\tthis.user = user;\n\t}",
"public void setMute(boolean mute) throws IllegalStateException,\n\t\t\tRemoteException {\n\t\tgetService().setMute(mute, mVolume, mIsMute);\n\t}",
"public JWebResult setParticipantVideoMute(final String userToken,\r\n final String confId,\r\n final String partId,\r\n final boolean connectionState) {\r\n System.out.println(\"Invoking setParticipantVideoMute...\");\r\n logger.info(\"Invoking setParticipantVideoMute...\");\r\n final JCredentials _setParticipantVideoMute_credentials = new JCredentials();\r\n _setParticipantVideoMute_credentials.setUserToken(userToken);\r\n final String _setParticipantVideoMute_confId = confId;\r\n final String _setParticipantVideoMute_partId = partId;\r\n final boolean _setParticipantVideoMute_connectionState = connectionState;\r\n final JWebResult _setParticipantVideoMute__return = port\r\n .setParticipantVideoMute(_setParticipantVideoMute_credentials,\r\n _setParticipantVideoMute_confId,\r\n _setParticipantVideoMute_partId,\r\n _setParticipantVideoMute_connectionState);\r\n System.out.println(\"setParticipantVideoMute.result=\"\r\n + _setParticipantVideoMute__return);\r\n return _setParticipantVideoMute__return;\r\n }",
"public void setCurrentUserPremium() {\n\t\tcurrentUser.setPremium(true);\n\t\tuserCatalog.modifyUser(currentUser);\n\t}",
"@Test\n\tpublic void muteTest() throws IllegalArgumentException, IllegalAccessException {\n\n\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime &&\n\t\t\t\tConfiguration.mute) {\n\t\t\tstart();\n\t\t\tdemo.menuItemWithPath(\"Datei\", \"Datei \\u00F6ffnen\").click();\n\t\t\tdemo.fileChooser().setCurrentDirectory(new File(\"media/\"));\n\t\t\tFile file = new File(\"note.mp3\");\n\t\t\tdemo.fileChooser().selectFile(file);\n\t\t\tdemo.fileChooser().approveButton().click();\n\t\t\tdemo.button(\"play\").click();\n\t\t\tassertFalse(gui.muted);\n\t\t\tdemo.button(\"mute\").click();\n\t\t\tassertTrue(gui.muted);\n\t\t\tint oldVolume= (int) MemberModifier.field(Application.class, \"oldVolume\").get(gui);\n\t\t\tassertEquals(oldVolume, 100);\n\t\t\t//assertEquals(gui.getVolume(),0);\n\t\t\tJSlider slider= (JSlider) MemberModifier.field(Application.class, \"slider\").get(gui);\n\t\t\tassertFalse(slider.isEnabled());\n\t\t\n\t\t\tJButton btnmute= (JButton) MemberModifier.field(Application.class, \"btnmute\").get(gui);\n\t\t\tassertTrue(btnmute.getIcon().toString().contains(\"mute.png\"));\n\t\t\tdemo.button(\"mute\").click();\n\t\t\tassertFalse(gui.muted);\n\t\t\tassertTrue(slider.isEnabled()); \n\t\t\tassertEquals(gui.getVolume(),100);\n\t\t\tbtnmute= (JButton) MemberModifier.field(Application.class, \"btnmute\").get(gui);\n\t\t\tassertTrue(btnmute.getIcon().toString().contains(\"unmute.png\"));\n\t\t\tdemo.slider(\"slider\").slideToMinimum();\n\t\t\tassertEquals(gui.getVolume(),0);\n\t\t\tdemo.slider(\"slider\").slideToMaximum();\n\t\t\tassertEquals(gui.getVolume(),100);\n\t\t\tdemo.slider(\"slider\").slideTo(50);\n\t\t\tassertEquals(gui.getVolume(),50);\n\t\t\t\n\t\t}\n\t}",
"@Override\n public void unsuspendPlayer(String username) {\n if (match != null && username != null) {\n match.unsuspendPlayer(username);\n }\n }",
"private void setPrivilagesToModifyUser(User user){\n\t\tsetFields(false);\n\t\tif (!LoginWindowController.loggedUser.getPermissions().equals(\"administrator\"))\n\t\t{\n\t\t\tif (LoginWindowController.loggedUser.getId() != user.getId()){\n\t\t\t\tif ((user.getPermissions().equals(\"manager\")) \n\t\t\t\t\t\t|| (user.getPermissions().equals(\"administrator\"))){\n\t\t\t\t\tsetFields(true);\n\t\t\t\t}\n\t\t\t\tif (user.getPermissions().equals(\"pracownik\")){\n\t\t\t\t\tsetFields(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tsetFields(false);\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (LoginWindowController.loggedUser.getId() == user.getId()){\n\t\t\t\tdeleteMenuItem.setDisable(true);\n\t\t\t\tuserPermissionsBox.setDisable(true);\n\t\t\t}\n\t\t}\n\t}",
"public void toggleAntiThief(boolean isOn) {\n if (!isOn) {\n DeviceUtils.sendSms(GlobalConstant.DEVICE_PHONE_NUMBER,GlobalConstant.CONTENT_UNLOCK);\n }else {\n DeviceUtils.sendSms(GlobalConstant.DEVICE_PHONE_NUMBER,GlobalConstant.CONTENT_LOCK);\n }\n }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n session = new Session(getActivity());\n sessionManager = SessionManager.getInstance(getActivity());\n userInfoSession = new UserInfoSession(getActivity());\n\n mCurrentUserId = sessionManager.getCurrentUserID();\n\n Bundle getBundle = getArguments();\n muteUserList = (ArrayList<MuteUserPojo>) getBundle.getSerializable(\"MuteUserList\");\n\n rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n if (rb1.isChecked()) {\n muteDuration = \"8 Hours\";\n } else if (rb2.isChecked()) {\n muteDuration = \"1 Week\";\n } else if (rb3.isChecked()) {\n muteDuration = \"1 Year\";\n }\n }\n });\n\n if (muteUserList != null && muteUserList.size() == 1) {\n MuteUserPojo muteUserItem = muteUserList.get(0);\n String toUserId = muteUserItem.getReceiverId();\n ContactDB_Sqlite contactDB_sqlite = CoreController.getContactSqliteDBintstance(getActivity());\n\n MuteStatusPojo muteData = null;\n\n if (muteUserItem.getChatType().equalsIgnoreCase(\"group\")) {\n muteData = contactDB_sqlite.getMuteStatus(mCurrentUserId, null, toUserId, false);\n } else {\n String docId = mCurrentUserId + \"-\" + toUserId;\n String convId = userInfoSession.getChatConvId(docId);\n muteData = contactDB_sqlite.getMuteStatus(mCurrentUserId, toUserId, convId, false);\n Log.e(\"DataBase-->\", muteData + \"\");\n// muteData = contactsDB.getMuteStatus(mCurrentUserId, toUserId, convId, false);\n }\n\n\n if (muteData != null && muteData.getMuteStatus().equals(\"1\")) {\n if (muteData.getDuration().equalsIgnoreCase(\"8 Hours\")) {\n rb1.setChecked(true);\n } else if (muteData.getDuration().equalsIgnoreCase(\"1 Week\")) {\n rb2.setChecked(true);\n } else if (muteData.getDuration().equalsIgnoreCase(\"1 Year\")) {\n rb3.setChecked(true);\n }\n if (muteData.getNotifyStatus().equals(\"1\")) {\n check.setChecked(true);\n }\n }\n } else {\n rb1.setChecked(true);\n }\n\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (ConnectivityInfo.isInternetConnected(getActivity())) {\n listener.onMuteDialogClosed(false);\n getDialog().dismiss();\n } else {\n Toast.makeText(getActivity(), \"Check Your Network Connection\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n ok.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (ConnectivityInfo.isInternetConnected(getActivity())) {\n if (muteDuration == null || muteDuration.equals(\"\")) {\n Toast.makeText(getActivity(), \"Please choose duration\", Toast.LENGTH_SHORT).show();\n } else {\n for (MuteUserPojo muteUserItem : muteUserList) {\n String receiverId = muteUserItem.getReceiverId();\n String chatType = muteUserItem.getChatType();\n String secretType = muteUserItem.getSecretType();\n mLastMuteUserId = receiverId;\n\n String locDbDocId = getLocDBDocId(muteUserItem);\n// session.setMuteDuration(locDbDocId, muteDuration);\n\n String convId = null;\n if (chatType.equalsIgnoreCase(MessageFactory.CHAT_TYPE_SINGLE)) {\n if (userInfoSession.hasChatConvId(locDbDocId)) {\n convId = userInfoSession.getChatConvId(locDbDocId);\n }\n } else {\n // For group --- Group id and conversation id are same\n convId = receiverId;\n }\n\n if (!muteDuration.equals(\"\")) {\n int notifyStatus = 0;\n String value = getString(R.string.Default_ringtone);\n session.putTone(value);\n session.putgroupTone(value);\n if (check.isChecked()) {\n notifyStatus = 1;\n session.putTone(\"None\");\n session.putgroupTone(\"None\");\n }\n\n MuteUnmute.muteUnmute(EventBus.getDefault(), mCurrentUserId, receiverId, convId,\n chatType, secretType, 1, muteDuration, notifyStatus);\n\n } else {\n listener.onMuteDialogClosed(false);\n }\n\n /*if (!check.isChecked()) {\n session.setNotificationOnMute(locDbDocId, true);\n\n } else {\n session.setNotificationOnMute(locDbDocId, false);\n }*/\n\n mActivity.showProgressDialog();\n }\n }\n } else {\n Toast.makeText(getActivity(), \"Check Your Network Connection\", Toast.LENGTH_SHORT).show();\n }\n }\n\n });\n }",
"public void updateDuration(User user);",
"public void notifyBuildProblemsUnmuted(Collection<BuildProblemInfo> arg0,\r\n\t\t\tMuteInfo arg1, SUser arg2, Set<SUser> arg3) {\n\t\t\r\n\t}",
"public void updateCurrentTrempitUser() {\n\n // create the trempituser object\n TrempitUser currentUser = new TrempitUser();\n currentUser.setFullName(Profile.getCurrentProfile().getName());\n currentUser.setId(Long.valueOf(Profile.getCurrentProfile().getId()));\n\n // update the global variable so all activities can access the user\n globalState.setCurrentUser(currentUser);\n\n // insert the user to the server\n insertTrempitUserToServer(currentUser);\n\n Toast.makeText(this, \"logged in to facebook:\" + globalState.getCurrentUser().getFullName(), Toast.LENGTH_LONG).show();\n }",
"protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }",
"public void setUserFreePlayTimePreference(long userFreePlayTime) {\n if (currentContext != null) {\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(USER_FREE_PLAY_TIME_SHARED_PREF_NAME, 0);\n sharedPrefs.edit().putLong(USER_FREE_PLAY_TIME_SHARED_PREF_NAME, userFreePlayTime).apply();\n }\n }",
"void setUserLocked(boolean b);",
"@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}",
"@EventHandler(priority = EventPriority.HIGH)\n\tpublic void onPlayerChat(AsyncPlayerChatEvent e) {\n\t\tif (e.isCancelled()) return;\n\t\t\n\t\tPlayer player = e.getPlayer();\n\t\tString uuid = player.getUniqueId().toString();\n\t\t\n\t\t// stop the method here if the player is muted\n\t\tif (!Banana.getMuteCache().isMuted(uuid)) return;\n\t\t\n\t\tif (!Banana.getMuteCache().isTempMuted(uuid)) {\n\t\t\t\n\t\t\t// if the player is muted, stop the event and don't run any checks\n\t\t\te.setCancelled(true);\n\t\t\t\n\t\t\t// checking to make sure the config allows the notification to muted players\n\t\t\tif (Values.MUTE_NOTIFY_ON_CHAT) {\n\t\t\t\t// tell the player that they are muted\n\t\t\t\tplayer.sendMessage(Lang.NO_SPEAK_MUTED.toString());\n\t\t\t}\n\t\t\treturn;\n\t\t\t\n\t\t}\n\t\t\n\t\t// this will continue to run if the player is temp muted\n\t\t\n\t\tCalendar currentDate = Calendar.getInstance();\n\t\t\n\t\tcurrentDate.setTimeInMillis(System.currentTimeMillis());\n\t\t\n\t\tDate systemDate = currentDate.getTime();\n\t\tDate unMuteDate = Banana.getMuteCache().getTempMuteRemovalDate(uuid);\n\t\t\n\t\tif (systemDate.equals(unMuteDate) || systemDate.after(unMuteDate)) {\n\t\t\t\n\t\t\t// check to see if this option is enabled in the config\n\t\t\t\n\t\t\tif (Values.NOTIFY_UNMUTE) {\n\t\t\t\t// this will run if the player will be allowed to chat because their mute time is up\n\t\t\t\tAction.notifyPlayer(Action.UNMUTE, player, Lang.MUTE_TIME_EXPIRED.toString());\n\t\t\t}\n\t\t\t\n\t\t\t// remove the mutes in the database and cache\n\t\t\tBanana.getDatabaseManager().asyncRemoveMute(uuid);\n\t\t\tBanana.getMuteCache().unMutePlayer(uuid);\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// cancel the event because the player is still muted!\n\t\t\te.setCancelled(true);\n\t\t\t\n\t\t\t// check to see if this option is enabled\n\t\t\tif (Values.MUTE_NOTIFY_ON_CHAT) {\n\t\t\t\n\t\t\t\t// tell the player that they are muted\n\t\t\t\tplayer.sendMessage(Lang.NO_SPEAK_MUTED.toString());\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\n if(arg1){\n Log.d(TAG,\"Set audio mute ON.\");\n mAudioControl.setMute(true);\n }\n else{\n Log.d(TAG,\"set audio mute OFF.\");\n mAudioControl.setMute(false);\n }\n }",
"private void m116777o(User user) {\n if (this.f94799au != null && user != null) {\n this.f94535U.mo93194a(user);\n this.f94799au.mo91623a(user);\n this.f94749u.setVisibility(8);\n if (ProfileNewStyleExperiment.INSTANCE.getCOMMOM_M()) {\n this.f94787aG.mo93213a(user);\n }\n }\n }",
"public boolean isMute() throws IllegalStateException {\n\t\tcheckConnectedDeviceThrowable();\n\t\treturn mIsMute;\n\t}",
"public boolean getPropertyMute()\n {\n return iPropertyMute.getValue();\n }",
"public void sendUserSwitchBroadcasts(int oldUserId, int newUserId) {\n int i = oldUserId;\n int i2 = newUserId;\n long ident = Binder.clearCallingIdentity();\n if (i >= 0) {\n try {\n List<UserInfo> profiles = this.mInjector.getUserManager().getProfiles(i, false);\n int count = profiles.size();\n for (int i3 = 0; i3 < count; i3++) {\n int profileUserId = profiles.get(i3).id;\n Intent intent = new Intent(\"android.intent.action.USER_BACKGROUND\");\n intent.addFlags(1342177280);\n intent.putExtra(\"android.intent.extra.user_handle\", profileUserId);\n Intent intent2 = intent;\n this.mInjector.broadcastIntent(intent, null, null, 0, null, null, null, -1, null, false, false, ActivityManagerService.MY_PID, 1000, profileUserId);\n }\n } catch (Throwable th) {\n Binder.restoreCallingIdentity(ident);\n throw th;\n }\n }\n if (i2 >= 0) {\n List<UserInfo> profiles2 = this.mInjector.getUserManager().getProfiles(i2, false);\n int count2 = profiles2.size();\n for (int i4 = 0; i4 < count2; i4++) {\n int profileUserId2 = profiles2.get(i4).id;\n Intent intent3 = new Intent(\"android.intent.action.USER_FOREGROUND\");\n intent3.addFlags(1342177280);\n intent3.putExtra(\"android.intent.extra.user_handle\", profileUserId2);\n Intent intent4 = intent3;\n this.mInjector.broadcastIntent(intent3, null, null, 0, null, null, null, -1, null, false, false, ActivityManagerService.MY_PID, 1000, profileUserId2);\n }\n Intent intent5 = new Intent(\"android.intent.action.USER_SWITCHED\");\n intent5.addFlags(1342177280);\n intent5.putExtra(\"android.intent.extra.user_handle\", i2);\n this.mInjector.broadcastIntent(intent5, null, null, 0, null, null, new String[]{\"android.permission.MANAGE_USERS\"}, -1, null, false, false, ActivityManagerService.MY_PID, 1000, -1);\n }\n Binder.restoreCallingIdentity(ident);\n }",
"private boolean setLoggedInUser(String userId) {\n if (currentContext != null) {\n //Set the user Id when user is successfully logged_in\n if (mFireBaseAnalytics != null)\n mFireBaseAnalytics.setUserId(userId);\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(LOGIN_SHARED_PREF_NAME, 0);\n return sharedPrefs.edit().putString(USER_ID_SHARED_PREF_NAME, userId).commit() &&\n setLoggedInTime();\n }\n return false;\n }",
"public void setUser(Motile user) {\n\n this.user = user;\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"@Override\n\tpublic boolean modifyUser(Account account) {\n\t\treturn false;\n\t}",
"public void setSinglePlayer(){\n isSinglePlayer = true;\n }",
"public boolean unlockUserCleared(int userId, byte[] token, byte[] secret, IProgressListener listener) {\n boolean z;\n ISDCardCryptedHelper helper;\n UserState uss;\n UserState uss2;\n int[] userIds;\n int[] userIds2;\n boolean isSuccess;\n int i = userId;\n byte[] bArr = token;\n byte[] bArr2 = secret;\n IProgressListener iProgressListener = listener;\n UserInfo userInfo = getUserInfo(userId);\n IStorageManager storageManager = getStorageManager();\n if (!StorageManager.isUserKeyUnlocked(userId)) {\n try {\n if (!this.mIsSupportISec) {\n storageManager.unlockUserKey(i, userInfo.serialNumber, bArr, bArr2);\n } else {\n storageManager.unlockUserKeyISec(i, userInfo.serialNumber, bArr, bArr2);\n }\n if (userInfo != null) {\n }\n } catch (RemoteException | RuntimeException e) {\n Slog.w(\"ActivityManager\", \"Failed to unlock: \" + e.getMessage() + \" ,SupportISec: \" + this.mIsSupportISec);\n if (userInfo != null) {\n }\n } catch (Throwable th) {\n if (userInfo != null && userInfo.isClonedProfile()) {\n Slog.i(\"ActivityManager\", \"ClonedProfile user unlock, set mHaveTryCloneProUserUnlock true!\");\n this.mHaveTryCloneProUserUnlock = true;\n }\n throw th;\n }\n } else if (this.mIsSupportISec) {\n if (bArr == null && bArr2 == null) {\n Slog.w(\"ActivityManager\", \"is SupportISec,Failed to unlockUserScreenISec: token is null And secret is null\");\n } else {\n try {\n isSuccess = storageManager.setScreenStateFlag(i, userInfo.serialNumber, 2);\n } catch (RemoteException | RuntimeException e2) {\n Slog.w(\"ActivityManager\", \"is SupportISec,Failed to setScreenStateFlag: \" + e2.getMessage());\n isSuccess = false;\n }\n if (isSuccess) {\n final IStorageManager iStorageManager = storageManager;\n final int i2 = i;\n AnonymousClass7 r15 = r1;\n final UserInfo userInfo2 = userInfo;\n boolean z2 = isSuccess;\n Handler handler = this.mHandler;\n final byte[] bArr3 = bArr;\n z = true;\n final byte[] bArr4 = bArr2;\n AnonymousClass7 r1 = new Runnable() {\n public void run() {\n try {\n iStorageManager.unlockUserScreenISec(i2, userInfo2.serialNumber, bArr3, bArr4, 1);\n } catch (RemoteException | RuntimeException e) {\n Slog.w(\"ActivityManager\", \"is SupportISec,Failed to unlockUserScreenISec: \" + e.getMessage());\n }\n }\n };\n handler.post(r15);\n helper = HwServiceFactory.getSDCardCryptedHelper();\n if (helper != null) {\n UserInfo info = getUserInfo(userId);\n if (info != null) {\n helper.unlockKey(i, info.serialNumber, bArr, bArr2);\n }\n }\n synchronized (this.mLock) {\n uss = this.mStartedUsers.get(i);\n if (uss != null) {\n uss.mUnlockProgress.addListener(iProgressListener);\n uss.tokenProvided = bArr != null ? z : false;\n }\n }\n uss2 = uss;\n if (uss2 != null) {\n notifyFinished(i, iProgressListener);\n return false;\n }\n int i3 = 0;\n finishUserUnlocking(uss2);\n synchronized (this.mLock) {\n userIds = new int[this.mStartedUsers.size()];\n for (int i4 = 0; i4 < userIds.length; i4++) {\n userIds[i4] = this.mStartedUsers.keyAt(i4);\n }\n }\n int length = userIds.length;\n while (i3 < length) {\n int testUserId = userIds[i3];\n UserInfo parent = this.mInjector.getUserManager().getProfileParent(testUserId);\n if (parent == null || parent.id != i || testUserId == i) {\n userIds2 = userIds;\n } else {\n StringBuilder sb = new StringBuilder();\n userIds2 = userIds;\n sb.append(\"User \");\n sb.append(testUserId);\n sb.append(\" (parent \");\n sb.append(parent.id);\n sb.append(\"): attempting unlock because parent was just unlocked\");\n Slog.d(\"ActivityManager\", sb.toString());\n maybeUnlockUser(testUserId);\n }\n i3++;\n userIds = userIds2;\n }\n return z;\n }\n }\n }\n z = true;\n helper = HwServiceFactory.getSDCardCryptedHelper();\n if (helper != null) {\n }\n synchronized (this.mLock) {\n }\n uss2 = uss;\n if (uss2 != null) {\n }\n }",
"public static void wipeGuestSession(Context context, int userId) {\n UserManager userManager = (UserManager) context.getSystemService(\"user\");\n try {\n UserInfo currentUser = ActivityManagerCompat.getService().getCurrentUser();\n if (currentUser.id != userId) {\n Log.w(\"GuestResumeSessionReceiver\", \"User requesting to start a new session (\" + userId + \") is not current user (\" + currentUser.id + \")\");\n } else if (!currentUser.isGuest()) {\n Log.w(\"GuestResumeSessionReceiver\", \"User requesting to start a new session (\" + userId + \") is not a guest\");\n } else if (!userManager.markGuestForDeletion(currentUser.id)) {\n Log.w(\"GuestResumeSessionReceiver\", \"Couldn't mark the guest for deletion for user \" + userId);\n } else {\n UserInfo newGuest = userManager.createGuest(context, currentUser.name);\n if (newGuest == null) {\n try {\n Log.e(\"GuestResumeSessionReceiver\", \"Could not create new guest, switching back to system user\");\n ActivityManagerCompat.getService().switchUser(0);\n userManager.removeUser(currentUser.id);\n WindowManagerGlobal.getWindowManagerService().lockNow(null);\n } catch (RemoteException e) {\n Log.e(\"GuestResumeSessionReceiver\", \"Couldn't wipe session because ActivityManager or WindowManager is dead\");\n }\n } else {\n ActivityManagerCompat.getService().switchUser(newGuest.id);\n userManager.removeUser(currentUser.id);\n }\n }\n } catch (RemoteException e2) {\n Log.e(\"GuestResumeSessionReceiver\", \"Couldn't wipe session because ActivityManager is dead\");\n }\n }",
"public void notifyBuildProblemsMuted(Collection<BuildProblemInfo> arg0,\r\n\t\t\tMuteInfo arg1, Set<SUser> arg2) {\n\t\t\r\n\t}",
"@Override // com.android.server.wm.WindowContainer\n public void switchUser() {\n super.switchUser();\n this.mWmService.mWindowsChanged = true;\n this.mDisplayPolicy.switchUser();\n }",
"@Override\n\tpublic Boolean updateUser(User user) {\n\t\treturn null;\n\t}",
"public void setAudioMuteOn(int streamType) {\n mAudioManager.setStreamMute(streamType, true);\n }",
"public void logoutCurrentUser() {\n currentUser = null;\n }",
"public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}"
] | [
"0.6718854",
"0.6647389",
"0.661372",
"0.65056294",
"0.63005936",
"0.6179542",
"0.60493356",
"0.60406977",
"0.59984976",
"0.58876336",
"0.5872054",
"0.58691156",
"0.5825653",
"0.5809746",
"0.5795166",
"0.5777804",
"0.56586295",
"0.5644376",
"0.5630547",
"0.5513673",
"0.5500712",
"0.5453682",
"0.544584",
"0.5403013",
"0.5380023",
"0.53461283",
"0.5327709",
"0.53253174",
"0.53096926",
"0.5300497",
"0.5264685",
"0.5223389",
"0.5185703",
"0.5173847",
"0.5142814",
"0.5142051",
"0.5127157",
"0.5121293",
"0.51210827",
"0.511527",
"0.50957614",
"0.50882155",
"0.5035579",
"0.50312567",
"0.502",
"0.5017041",
"0.5000841",
"0.4995003",
"0.4960975",
"0.4949917",
"0.49041668",
"0.48950607",
"0.48924538",
"0.48764303",
"0.48514134",
"0.4848538",
"0.48483354",
"0.48254034",
"0.47894338",
"0.4770538",
"0.47677132",
"0.47550237",
"0.47484985",
"0.474627",
"0.47461665",
"0.47378057",
"0.472516",
"0.47237465",
"0.46568337",
"0.46524453",
"0.4650661",
"0.46386772",
"0.46369943",
"0.4634317",
"0.4630101",
"0.46294338",
"0.46269912",
"0.4616973",
"0.46159562",
"0.46122003",
"0.45912784",
"0.457251",
"0.4555105",
"0.45525816",
"0.45495942",
"0.45495522",
"0.4535658",
"0.45319745",
"0.45319745",
"0.45319745",
"0.4527737",
"0.4526986",
"0.4522876",
"0.45218036",
"0.4518591",
"0.4516622",
"0.45163864",
"0.45139357",
"0.45124772",
"0.4512476"
] | 0.70562184 | 0 |
Sets the command attribute to the value given This command is used to run on the UI thread the update of the users who are currently talking | public void setCommand(@NonNull Command<Boolean, String> command) {
this.command = command;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCommand(String command){\r\n commandUpdate=command;\r\n }",
"protected void setCommand(String command)\n {\n Command = command;\n }",
"public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}",
"public void setCommand(String command) {\n this.command = command;\n }",
"@Override\n public Message commandOn(){\n viewController.setNickName(this.nickname);\n return new UsernameMessage(this.nickname);\n }",
"public void setCommand(String command) {\n _command = command;\n }",
"public void setCommand(String command)\n {\n this.command = command;\n }",
"public void setCommand(String command)\r\n\t{\r\n\t\tthis.command = command;\r\n\t}",
"public void setCommand(int command)\n\t{\n\t\tthis.command = command;\n\t}",
"public void updateCommand(Command command) {\n this.command = command;\n }",
"public abstract void setCommand(String cmd);",
"public void setCommand(String command) {\n this.command = command;\n }",
"public Builder setCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n command_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}",
"@Override\n\tpublic void setCommand(String command) {\n\t\tmodel.setCommand(command);\n\t}",
"protected void setCommand(CommandManager command) {\n\tthis.command = command;\n }",
"protected void setInteracting(CommandSender sender) {\n this.sender = sender;\n setChanged();\n notifyObservers();\n }",
"public Builder setCommand(int value) {\n bitField0_ |= 0x00000004;\n command_ = value;\n onChanged();\n return this;\n }",
"public Builder setCommand(network.message.PlayerResponses.Command value) {\n if (commandBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n commandBuilder_.setMessage(value);\n }\n responseCase_ = 2;\n return this;\n }",
"void\t\tsetCommandVisibility(String command, boolean flag);",
"@Override\n public void sendSelectionMessage(CommandHandler commandHandler) {\n try {\n commandHandler.update(new Response(null, true, Constants.MAIN_ACTION));\n } catch (Observer.CommunicationError error) {\n error.printStackTrace();\n }\n }",
"void\t\tsetCommandLabel(String command, String label);",
"void setNewCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myNewCommand);\n }",
"void update(String message, Command command, String senderNickname);",
"private void setGoCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myNewCommand);\n myCanvas.addCommand(myGoCommand);\n }",
"public String getCommand(){\r\n return commandUpdate;\r\n }",
"public Button(String command, String name)\n {\n //command that will activate the infrared remote on the pi when this is sent to the command line\n this.command = \"irsend SEND_ONCE \" + name + \" KEY_\" + command.toUpperCase(); \n }",
"@Override\n int setImmediate(ImmediateCommand command) {\n\n int handle = addCommand(command);\n postMessage(window, MESSAGE_PREFIX + handle);\n return handle;\n }",
"public Builder setCmd(int value) {\n \n cmd_ = value;\n onChanged();\n return this;\n }",
"public void setCommand1(Command command1) {\n this.command1 = command1;\n }",
"public void addCommand(Object cmd) {\n Message msg = this.handler.obtainMessage(0);\n msg.obj = cmd;\n this.handler.sendMessage(msg);\n }",
"final public void setActionCommand(String command) {\n this.command = command;\n }",
"public Command(User owner, String value) {\n this(owner, \"Untitled\", \"None\", LocalDate.now(), false, value);\n }",
"void\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);",
"@Override\r\n\tpublic final void receiveCommand(Command cmd) {\n\t\tif (cmd.getCommand().equals(Constants.CMD_PARAMETER)) {\r\n\t\t\tString param = cmd.getParameter(\"NAME\");\r\n\t\t\tString value = cmd.getParameter(\"VALUE\");\r\n\t\t\tif (param != null && value != null && parameters.containsKey(param)) {\r\n\t\t\t\t// Calls user method\r\n\t\t\t\tif (!parameterUpdate(param, value)) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t// TODO Alguns parâmetros não podem ser mudados!\r\n\t\t\t\tparameters.put(param, value);\r\n\t\t\t\t// Let the console knows about the updated parameter\r\n\t\t\t\tcmd = new Command(getAddress(), \"/console\", \"UPDATE\");\r\n\t\t\t\tcmd.addParameter(\"AGENT\", getAgent().getAgentName());\r\n\t\t\t\tcmd.addParameter(\"COMPONENT\", getComponentName());\r\n\t\t\t\tcmd.addParameter(\"NAME\", param);\r\n\t\t\t\tcmd.addParameter(\"VALUE\", value);\r\n\t\t\t\tsendCommand(cmd);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tprocessCommand(cmd);\r\n\t\t}\r\n\t}",
"public String getCommand() { return command; }",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}",
"public void setProperty(String key, Object value) {\n commandData.put(key, value);\n }",
"public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);",
"public String getCommand(){\n return command;\n }",
"public void setCommandString(String cs)\n\t{\n\t\tcommandString = new String(cs);\n\t}",
"void sendCommand(CommandEvent event);",
"public void setCmd(String cmd) {\r\n this.cmd = cmd;\r\n }",
"void setUserUsername(String username);",
"private void setPauseCommand() {\n myCanvas.removeCommand(myNewCommand);\n myCanvas.removeCommand(myGoCommand);\n myCanvas.addCommand(myPauseCommand);\n }",
"public void m9830a(C2604b commandSender) {\n this.f8626l = commandSender;\n }",
"public static void sendMessage(int command) {\n\t\tfindWindow();\n\t\t\n\t\tuser32.SendMessageA(handle, IUser32.WM_COMMAND, command, 0x00000000);\n\t}",
"public void sendCommand(String command){\n sendCommand(command, true);\n fromPlugin = false;\n\n }",
"public void setActionCommand(String command) {\n this.command = command;\n }",
"public SetValueCommand(String name) {\n\t\tthis.name = name;\n\t}",
"public SnoozeCommand(String userInputCommand) {\n this.userInputCommand = userInputCommand;\n }",
"public Builder setCommand(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.set(index, value);\n onChanged();\n return this;\n }",
"void setCurrentrun(java.lang.String currentrun);",
"public void setCommandKey(String commandKey)\n\t{\n\t\tthis.commandKey = Toolbox.trim(commandKey, 1);\n\t}",
"public void updateCommands ( ) {\n\t\texecute ( handle -> handle.updateCommands ( ) );\n\t}",
"public void run () {\n\t\t\t\t//This is the method that gets called everytime the GUI needs to be updated.\n\t\t\t\t\n\t\tuserText.setEditable(tof);\n\t\t\t}",
"@FXML\n\tprivate void userClicked(MouseEvent event) {\n\t\tuserList.getSelectionModel().getSelectedItem();\n\t\tString newConversation = userList.getSelectionModel().getSelectedItem();\n\t\tif (newConversation.equals(this.currentConversation)) {\n\t\t\treturn;\n\t\t}\n\t\tif (!sassiBot) {\n\t\t\tconversantName.setText(userList.getSelectionModel().getSelectedItem());\n\t\t\tSystem.out.println(this.conversations);\n\t\t\tSystem.out.println(newConversation);\n\t\t\tchatView.setText(\"\");\n\t\t\tfor (ArrayList <String> conversation : this.conversations) {\n\t\t\t\tif (newConversation.equals(String.join(\", \", conversation))) {\n\t\t\t\t\tclient.updateGroup(conversation);\n\t\t\t\t\tSystem.out.println(\"UPDATE GROUP\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.currentConversation = newConversation;\n\t\tif (!sassiBot) {\n\t\t\tconversantImage.setVisible(true);\n\t\t\tgreenCircle.setVisible(true);\n\t\t}\n\t}",
"private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }",
"public void execute(){\n\t \tif(type == ClickableType.USERNAME)\n\t \t\tUserModerationWindow.createUserWindow(UserList.getUser(Window.getCurrentConnection(), ((String)value).toLowerCase()));\n\t \t//Emote was clicked: Opens window displaying information about the emote\n\t \telse if(type == ClickableType.EMOTE){\n\t \t\tEmote emote = (Emote)value;\n\t \t\tString print = \"Name: \" + emote.getName() + \n\t \t\t\t\t\"\\nChannel: \" + emote.getChannel() + \n\t \t\t\t\t\"\\nID: \" + emote.getID() + \n\t \t\t\t\t\"\\nFrom: \" + emote.getEmoteType().name();\n\t \t\t//If emote is Twitch emote\n\t \t\tif(emote.getEmoteType()!=EmoteType.TWITCH)\n\t \t\t\tprint += \"\\nCreator: \" + emote.getCreator(); \n\t \t\tDialogs.iconMessage(\"Emote - \" + emote.getName(), print, emote.getIcon());\n\t \t}\n\t \t//Badge icon was clicked: Opens window displaying information about the badge\n\t \telse if(type == ClickableType.BADGE){\n\t \t\tBadgeType type = (BadgeType)value;\n\t \t\tDialogs.iconMessage(\"Badge - \" + type.getAPIName(), \n\t \t\t\t\t\"Name: \" + type.getName() + \n\t \t\t\t\t\"\\nVersion: \" + type.getVersion() + \n\t \t\t\t\t\"\\nDescription: \"+ type.getDescription() + \n\t \t\t\t\t\"\\nShort Name: \" + type.getBadge().getShortName(), \n\t \t\t\t\ttype.getAttribute().getIcon());\n\t \t}\n\t \t//Ban icon was clicked: Bans the user from chat\n\t \telse if(type == ClickableType.BAN){\n\t \t\tUser user = (User)value;\n\t \t\tModerationTools.ban(user);\n\t \t}\n\t \t//Timeout icon was clicked: Bans user for 10 minutes\n\t \telse if(type == ClickableType.TIMEOUT){\n\t \t\tUser user = (User)value;\n\t \t\tModerationTools.timeout(user, 600);\n\t \t}\n\t }",
"public void addCommand(final String key, final String value) {\n this.commands.put(key, value);\n }",
"public void getCommandsUpdate() {\n\t\t\r\n\t}",
"public Builder addCommand(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCommandIsMutable();\n command_.add(value);\n onChanged();\n return this;\n }",
"public Builder setCommand(\n network.message.PlayerResponses.Command.Builder builderForValue) {\n if (commandBuilder_ == null) {\n response_ = builderForValue.build();\n onChanged();\n } else {\n commandBuilder_.setMessage(builderForValue.build());\n }\n responseCase_ = 2;\n return this;\n }",
"boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);",
"public void onCommandReceived(AbstractCommand command) {\n\t\t\t\t\t\tif (command instanceof GrantedSessionCommand) {\n\t\t\t\t\t\t\t// Print our our unique key, this will be used for\n\t\t\t\t\t\t\t// subsequent connections\n\t\t\t\t\t\t\tUtilities.log(\"Your instanceId is \" + ((GrantedSessionCommand) command).getInstanceId());\n\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//let's make the dock show up on the TV\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_yahoo\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(2000); //sleep for 2 seconds so the animation to dock finishes\n\n\t\t\t\t\t\t\t\t// Lets do something cool, like tell the TV to navigate to the right. Then do a little dance\n\t\t\t\t\t\t\t\t// This is the same as pressing \"right\" on your remote\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t// slide to the left\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//slide to the right\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//take it back now, y'all\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\t//cha cha cha\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\tUtilities.log(\"Problem writing to the network connection\");\n\t\t\t\t\t\t\t\tconn.close();\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Notify the main thread that everything we wanted to\n\t\t\t\t\t\t\t// do is done.\n\t\t\t\t\t\t\tsynchronized (conn) {\n\t\t\t\t\t\t\t\tconn.notifyAll();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else { // print out the others for educational purposes\n\t\t\t\t\t\t\tUtilities.log(\"Received: \" + command.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public Command(User owner, String name, String group, LocalDate dateModified, boolean shared, String value) {\n this.name = name;\n this.group = group;\n this.dateModified = dateModified;\n this.value = value;\n this.shared = shared;\n this.owner = owner;\n }",
"public String getCommand() {\r\n return command;\r\n }",
"void\t\tsetCommandState(String command, boolean flag);",
"protected final void setGUIAttributes(){\r\n\t\t\r\n\t\tbtnOnOff.setEnabled( device.getOn() != null && device.getOn().getActor() != null);\r\n\t\tif(device.getOn() == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// if the device is On\r\n\t\tif( device.getOnValue()){\r\n\t\t\tbtnOnOff.setText( \"Turn device Off\");\r\n\t\t// if the device is Off\r\n\t\t}else{\r\n\t\t\tbtnOnOff.setText( \"Turn device On\");\r\n\t\t}\r\n\t\tsetGUIAttributesHelper();\r\n\t}",
"public String getUserCommand();",
"public void startCommand() {\r\n _playing = true;\r\n }",
"public void setCommand(int slot, Command onCommand, Command offCommand) {\n onCommands[slot] = onCommand;\n offCommands[slot] = offCommand;\n }",
"public xCommandOnText(String command){ this.init(command); }",
"public void sendCommand(Command cmd);",
"public String getCommand() {\n return this.command;\n }",
"public void setDelegateCmd(PmCommand delegateCmd) {\n this.delegateCmd = delegateCmd;\n }",
"public void initDefaultCommand() {\n\t\tsetDefaultCommand(new UserDriveCommand());\n\t}",
"void\t\tsetCommandState(String command, String state);",
"public void handleCommand() {\n\t\tif (Client.isLoggedIn() == false)\n\t\t\treturn;\n\t\t\n\t\tClientUser user = Client.getUserByName(argument);\n\t\tif (user == Client.getThisUser()) {\n\t\t\tSystem.err.println(\"Trying to remove this user? This should never happen!\");\n\t\t}\n\t\tif (user != null) {\n\t\t\tClient.removeUser(user);\n\t\t\tClient.getMainWindow().getMainChatPanel().displayInfo(user.getName() + \" has logged off!\");\n\t\t} else {\n\t\t\tSystem.err.println(\"cquit used with a non-exisitng username!\");\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t if(e.getActionCommand().equals(\"提交UID\")){\n\t\t\t\t\tif(!UserID.useruidtext.getText().equals(\"\")) {\n\t\t\t\t\t\tBILIBILIAPI.Userid=UserID.useruidtext.getText();\n\t\t\t\t\t\tsetVisible(false);\n\t\t\t\t\t}else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"不能为空\");\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(BILIBILIAPI.Userid);\n\t\t\t\t}\n\t\t\t}",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"@Override\r\n public void onMessage(MessageEvent message) {\r\n String newMessage = message.getMessage();\r\n String response;\r\n\r\n //split the message on spaces to identify the command\r\n String[] messageArray = newMessage.split(\" \");\r\n \r\n switch (messageArray[0]) {\r\n case \"!command\":\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n if (messageArray.length == 2) {\r\n if (messageArray[1].equals(\"off\")) {\r\n commandsActive = false;\r\n } \r\n if (messageArray[1].equals(\"on\")) {\r\n commandsActive = true;\r\n }\r\n }\r\n }\r\n break;\r\n //command to make a custom command for the bot\r\n case \"!addcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = addCom(messageArray, message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to add commands.\");\r\n }\r\n }\r\n break;\r\n case \"!commands\":\r\n if (commandsActive) {\r\n if (messageArray.length ==1) {\r\n ArrayList<String> commands = manager.getCommands(message.getChannel().getName());\r\n String commandList = \"The custom commands available to everyone for this channel are: \";\r\n while (!commands.isEmpty()) {\r\n commandList += commands.remove(0) + \", \";\r\n }\r\n message.getChannel().send().message(commandList);\r\n }\r\n }\r\n break;\r\n //command to delete a custom command from the bot\r\n case \"!delcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = delCom(messageArray[1], message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to remove commands.\");\r\n }\r\n }\r\n break;\r\n //command to edit a custom command the bot has\r\n case \"!editcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = editCom(messageArray, message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to edit commands.\");\r\n }\r\n }\r\n break;\r\n\r\n //default message handling for custom commands\r\n default:\r\n if (commandsActive) {\r\n if (message.getMessage().startsWith(\"!\") && !messageArray[0].equals(\"!permit\")&& !messageArray[0].equals(\"!spam\")) {\r\n customCommands(message);\r\n }\r\n }\r\n break;\r\n }\r\n }",
"void setColor(ChatColor color);",
"public void setSelectedUser(String selected) {\n selectedUser = selected;\n\n //this.removeAllEvents();\n //loadEvents();\n }",
"public void setUsername(String username) {\n mUsernameTv.setText(username);\n }",
"public Command(){\n \n comando.put(\"!addGroup\", 1);\n comando.put(\"!addUser\", 2);\n comando.put(\"!delFromGroup\", 3);\n comando.put(\"!removeGroup\", 4);\n comando.put(\"!upload\", 5);\n comando.put(\"!listUsers\",6);\n comando.put(\"!listGroups\",7);\n\n }",
"public void setChannelLeader(L2PcInstance leader)\r\n\t{\r\n\t\t_commandLeader = leader;\r\n\t}",
"@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"wain\", \"Without this user \");\r\n\t\t\t\t\t\t}",
"private void setSendDataButton() {\n\t\tsetDataInDB();\n\t\tif (!alreadyPushed)\n\t\t\tsendDataToServer();\n\t\treturnOnWorkoutList();\n\t}",
"public void setMessage(String word){\r\n message.setText(word);\r\n }",
"public void initDefaultCommand() {\n\t\t//System.out.println(\"initDefaultCommand()\");\n\t\tJoystickControlCommand JCC = new JoystickControlCommand();\n\t\tthis.setDefaultCommand(JCC);\n\t}",
"public AGameCommand(Command command) {\n this.game = Game.getInstance();\n this.command = command;\n }",
"@FXML private void setToNewUser(){\n\t\tshowPassword();\n\t\tclearFields();\n\t\thideLackMessages();\n\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\tnewUser = true;\n\t}",
"void setCommandProperties(String commandID, AttributeList properties);",
"public String Command() {\n\treturn command;\n }",
"@FXML\n\tpublic void onProcessCommand() {\n\t\tString command = prompt.getText().trim();\n\t\tif (!command.isEmpty()) {\n\t\t\t// Print what the user entered to the screen\n\t\t\tscreen.appendText(\"> \" + command + \"\\n\");\n\t\t\tswitch (command) {\n\t\t\t\tcase \"clear\":\n\t\t\t\t\tscreen.clear();\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Print the output of the commandName\n\t\t\t\t\tscreen.appendText(commandDispatch.processCommand(command) + \"\\n\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Clear the prompt - ready for new input\n\t\t\tprompt.clear();\n\t\t}\n\t}",
"@Override\r\n public void run() {\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseRGBCmd(msAccessColor(color)), 0, 0, item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n runCommand = true;\r\n }",
"@Override\n public void update(Observable o, Object arg) {\n // DESIGN PATTERN: command\n movieListView.setListView((ObservableList<Movie>) arg);\n }"
] | [
"0.7024638",
"0.65121907",
"0.6434788",
"0.6428093",
"0.6348056",
"0.6268606",
"0.62447345",
"0.6210542",
"0.6191056",
"0.6135298",
"0.6129538",
"0.61052436",
"0.6055744",
"0.60463667",
"0.6024055",
"0.59424657",
"0.5904403",
"0.5818696",
"0.5808361",
"0.57843226",
"0.5732953",
"0.5717586",
"0.5706953",
"0.5703857",
"0.567612",
"0.56417215",
"0.56015426",
"0.55916584",
"0.55652833",
"0.55520165",
"0.5534399",
"0.5530137",
"0.5516641",
"0.54901385",
"0.5478299",
"0.54726094",
"0.54520124",
"0.54520124",
"0.54512364",
"0.54444844",
"0.54291725",
"0.5419508",
"0.54172474",
"0.54035085",
"0.5391307",
"0.5369039",
"0.5359858",
"0.5347427",
"0.53434104",
"0.5325069",
"0.53130525",
"0.53110147",
"0.5310272",
"0.5302292",
"0.52941465",
"0.5287",
"0.5251048",
"0.5234632",
"0.5227479",
"0.5219542",
"0.52123517",
"0.5211386",
"0.5209115",
"0.5202458",
"0.5200827",
"0.52005035",
"0.51997334",
"0.5182018",
"0.5181198",
"0.5180605",
"0.5171554",
"0.5135529",
"0.51063985",
"0.50994134",
"0.50942975",
"0.50718874",
"0.50651544",
"0.5064956",
"0.5063403",
"0.50555485",
"0.5053046",
"0.50510484",
"0.50510484",
"0.5039391",
"0.5036454",
"0.50347674",
"0.5032077",
"0.5023866",
"0.5021503",
"0.50032014",
"0.500226",
"0.5002032",
"0.4999819",
"0.4999776",
"0.49995682",
"0.499917",
"0.49968234",
"0.49949974",
"0.49930924",
"0.49882773"
] | 0.58285695 | 17 |
Check the users who are currently talking and run the command to make them appear as talking | @Override
public void onAudioVolumeIndication(AudioVolumeInfo[] speakers, int totalVolume) {
Set<Integer> newUsersInCall = new HashSet<Integer>();
if (speakers != null) {
for (AudioVolumeInfo audioVolumeInfo : speakers) {
int uid = audioVolumeInfo.uid;
if (audioVolumeInfo.volume > VOLUME_OFF && usersCallId.containsKey(uid)) {
String userId = usersCallId.get(uid);
command.execute(true, userId);
newUsersInCall.add(uid);
}
}
}
//Run the command on the users who stopped talking to adapt the UI
for (int uid : usersInCall) {
if (!newUsersInCall.contains(uid)) {
if (talking.contains(uid)) {
talking.remove(uid);
} else {
command.execute(false, usersCallId.get(uid));
}
}
}
talking.addAll(newUsersInCall);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n woundedSurvivor();\n } else if (mysteriousCrab.getCurrentRoom() == currentRoom && inventory.getInventory().containsKey(\"Shroom\")) {\n System.out.println(mysteriousCrab.getDescription() + \"\\n\" + mysteriousCrab.getDialog(0));\n } else {\n System.out.println(\"There is nobody to communicate with in this Room\");\n }\n\n }",
"private void cs0() {\n\t\t\tif(!Method.isChatiing()){\n\t\t\t\tMethod.npcInteract(RUNESCAPEGUIDE, \"Talk-to\");\n\t\t\t}\n\t\t\t\n\t\t}",
"private void broadcast(String msg) {\n\t\tIterator i = onlineUsers.entrySet().iterator();\n\t\t\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry p = (Map.Entry)i.next();\n\t\t\tUser u = (User)p.getValue();\n\t\t\t\n\t\t\tu.output.println(msg);\n\t\t}\n\t}",
"public void updateActiveUsers() {\r\n\t\tif (commandsQueue.isEmpty()) {\r\n\t\t\tString currentDoc = this.toString();\r\n\t\t\tfor (Socket socket : activeClients) {\r\n\t\t\t\tif (!socket.isClosed())\r\n\t\t\t\t\tServer.outs.get(socket).println(id + \"A\" + currentDoc);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"boolean processChatCmd( String s )\n\t{\n\t\t\n\t\tman.getOpponent(this).out.println(s);\n\t\tman.getOpponent(this).out.flush();\n\t\tout.println(\"Message sent.\");\n\t\tout.flush();\n\t\treturn true;\n\t}",
"public void run() \r\n {\r\n String talkingPartner = \"server\";\r\n String message = \"\";\r\n boolean keepGoing = true;\r\n while(keepGoing) \r\n {\r\n\r\n try \r\n {\r\n message = (String) in.readObject();\r\n System.out.println(message);\r\n displayMessage(message);\r\n }\r\n catch (IOException e)\r\n {\r\n displayMessage(username + \" Exception reading Streams: \" + e);\r\n break;\r\n }\r\n catch(ClassNotFoundException e2)\r\n {\r\n break;\r\n }\r\n //logout command \r\n if (message.equals(\"/logout\"))\r\n {\r\n broadcast(\"***ATTEMPTING LOGOUT***\", talkingPartner);\r\n removeClient(id);\r\n keepGoing = false;\r\n }\r\n //help command\r\n if (message.equals(\"/help\"))\r\n {\r\n broadcast(\"***COMMANDS /help /logout /chat***\", talkingPartner);\r\n\r\n }\r\n //private chat command then takes a follow up name\r\n if (message.equals(\"/chat\"))\r\n {\r\n broadcast(\"***PLEASE TYPE THE NAME OF A USER***\", talkingPartner);\r\n String name = \"unselected\";\r\n try {\r\n\r\n name = (String) in.readObject();\r\n }\r\n catch (IOException e)\r\n {\r\n displayMessage(username + \" Exception reading Streams: \" + e);\r\n break;\r\n }\r\n catch(ClassNotFoundException e2) \r\n {\r\n break;\r\n }\r\n for(int i = 0; i < userNames.size(); i++ )\r\n {\r\n if(name.equals(userNames.get(i))){\r\n broadcast(\"user found starting chat!\", talkingPartner);\r\n }\r\n }\r\n\r\n }\r\n //broadcasts the message to everyone for group chat\r\n broadcast(username + \": \" + message, \"server\");\r\n }\r\n\r\n //shuts it down\r\n removeClient(id);\r\n close();\r\n }",
"public static void main(String[] args) {\n String username = \"\";\n boolean guest = true;\n boolean first = true;\n Logic logic = new Logic();\n\n while (true)\n {\n if(guest)\n {\n if(first)\n {\n System.out.println(\"Selamat Datang di Tweet with Mongo Database by Akhmad Fakhoni Listiyan Dede\");\n first = false;\n }\n Scanner in = new Scanner(System.in);\n System.out.print(\"guest:~$ \");\n String command = in.nextLine();\n\n String [] com = command.split(\" \");\n switch(com[0])\n {\n case \"reg\":\n if(logic.register(com[1], com[2]))\n {\n username = com[1];\n first = true;\n guest = false;\n }\n else\n {\n System.out.println(\"User exist\");\n }\n break;\n case \"login\":\n if(logic.login(com[1], com[2]))\n {\n username = com[1];\n first = true;\n guest = false;\n }\n else\n System.out.println(\"Password salah. Coba lagi.\");\n break;\n case \"exit\":\n System.exit(0);\n break;\n case \"help\":\n Print.guestHelp();\n break;\n default:\n System.out.println(\"Wrong command. Ketik 'help' untuk bantuan.\");\n }\n }\n else\n {\n if(first)\n {\n System.out.println(\"Selamat datang \" + username);\n first = false;\n }\n Scanner in = new Scanner(System.in);\n System.out.print(username + \":~$ \");\n String command = in.nextLine();\n\n String [] com = command.split(\" \",2);\n switch(com[0])\n {\n case \"follow\":\n if(logic.follow(username, com[1]))\n {\n System.out.println(\"You follow \" + com[1]);\n }\n else\n {\n System.out.println(com[1] + \" not exist. Coba lagi.\");\n }\n break;\n case \"tweet\":\n if(logic.postTweet(username, com[1]))\n {\n System.out.println(\"Tweet successfully posted\");\n }\n else\n {\n System.out.println(\"Tweet not successfully posted\");\n }\n break;\n case \"userline\":\n logic.printUserline(username);\n break;\n case \"timeline\":\n logic.printTimeline(username);\n break;\n case \"logout\":\n guest = true;\n break;\n case \"help\":\n Print.userHelp();\n break;\n default:\n System.out.println(\"Wrong command. Ketik 'help' untuk bantuan.\");\n }\n }\n }\n }",
"private void commandCheck() {\n\t\t//add user command\n\t\tif(cmd.getText().toLowerCase().equals(\"adduser\")) {\n\t\t\t/*\n\t\t\t * permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\t * There will be more user level commands added in version 2, like changing rename to allow a\n\t\t\t * user to rename themselves, but not any other user. Admins can still rename all users.\n\t\t\t */\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\taddUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//delete user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"deluser\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdelUser();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t};\n\t\t}\n\t\t//rename user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"rename\")) {\n\t\t\t//permissions check: if user is an admin, allow the user o chose a user to rename.\n\t\t\t//If not, allow the user to rename themselves only.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\trename(ALL);\n\t\t\t}\n\t\t\telse {\n\t\t\t\trename(SELF);\n\t\t\t}\n\t\t}\n\t\t//promote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"promote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tpromote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//demote user command\n\t\telse if(cmd.getText().toLowerCase().equals(\"demote\")) {\n\t\t\t//permissions check: if user is an admin, proceed. If not, error with a permission error.\n\t\t\tif(type.equals(\"admin\")) {\n\t\t\t\tdemote();\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(PERMISSIONS);\n\t\t\t}\n\t\t}\n\t\t//the rest of the commands are user level, no permission checking\n\t\telse if(cmd.getText().toLowerCase().equals(\"ccprocess\")) {\n\t\t\tccprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"cprocess\")) {\n\t\t\tcprocess();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opentill\")) {\n\t\t\topenTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"closetill\")) {\n\t\t\tcloseTill();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"opendrawer\")) {\n\t\t\topenDrawer();\n\t\t}\n\t\telse if(cmd.getText().toLowerCase().equals(\"sale\")) {\n\t\t\tsale();\n\t\t}\n\t\t//if the command that was entered does not match any command, return an error.\n\t\telse {\n\t\t\terror(CMD_NOT_FOUND);\n\t\t}\n\t}",
"public void askForSpeaker(){\n System.out.println(\"Enter the speaker username\");\n }",
"public void run() {\n String host = \"localhost\";\n String ip = \"127.0.0.1\";\n String name = \"Console\";\n String nick = plugin.console_id + \"|Console\";\n\n // If we're not console, use the player's info.\n if (player != null) {\n my_name = player.getName();\n ip = player.getAddress().getAddress().getHostAddress();\n host = player.getAddress().getHostName();\n name = my_name;\n nick = my_name + \"|\" + plugin.console_tag + \"|MC\";\n if (!Character.isLetter(nick.charAt(0))) {\n nick = \"_\" + nick;\n }\n }\n\n // Set the nickname.\n setName(nick);\n setLogin(name);\n\n // Pass in the user's info via WEBIRC.\n //setPreNick(\"WEBIRC \" + plugin.webirc_pass + \" IRCBridge \" + host\n // + \" \" + ip);\n\n // Speak to the default channel.\n speaking_to = plugin.default_channel;\n\n // Get an initial user list from the default channel.\n who_target = speaking_to;\n\n // Connect to the server.\n try {\n connect(plugin.server_address, plugin.server_port,\n plugin.server_pass);\n tellUser(ChatColor.GREEN + \"Connected to IRC.\", true);\n } catch (IOException e) {\n tellUser(ChatColor.RED + \"Unable to connect to IRC.\", true);\n plugin.complain(\"unable to connect to IRC\", e);\n } catch (IrcException e) {\n tellUser(ChatColor.RED + \"Unable to connect to IRC.\", true);\n plugin.complain(\"unable to connect to IRC\", e);\n }\n\n if (player == null) {\n // Console doesn't need a hostmask.\n setMode(nick, \"-x\");\n\n // Join the console channel.\n joinChannel(plugin.console_channel);\n }\n\n // Join the default channel.\n joinChannel(plugin.default_channel);\n\n // Join autojoin channels.\n for (String channel : plugin.autojoin_channels) {\n joinChannel(channel);\n }\n \n //Join the allowed channels\n for (String channel : this.AllowedChannels)\n {\n \tjoinChannel(channel);\n }\n \n }",
"@Override\n public Message commandOn(){\n viewController.setNickName(this.nickname);\n return new UsernameMessage(this.nickname);\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Would you like to talk to Bob? (Y/N)\");\n String userInput = scanner.next();\n boolean willTalk = userInput.equalsIgnoreCase(\"y\");\n scanner.nextLine();\n if (willTalk) {\n do {\n System.out.println(\"What do you want to say?\");\n String talkToBob = scanner.nextLine();\n\n if (talkToBob.endsWith(\"?\")) {\n System.out.println(\"Sure\");\n } else if (talkToBob.endsWith(\"!\")) {\n System.out.println(\"Whoa, chill out!\");\n } else if (talkToBob.equals(\"\")) {\n System.out.println(\"Fine, Be that way!\");\n } else {\n System.out.println(\"Whatever\");\n }\n\n System.out.println(\"Keep chatting? (Y/N)\");\n userInput = scanner.next();\n willTalk = userInput.equalsIgnoreCase(\"y\");\n scanner.nextLine();\n } while (willTalk);\n }\n }",
"@PermitAll\n public void cmdWho(User teller) {\n Formatter msg = new Formatter();\n Collection<Player> playersOnline = tournamentService.findOnlinePlayers();\n for (Player player : playersOnline) {\n msg.format(\" %s \\\\n\", player);\n }\n command.qtell(teller, msg);\n }",
"private void listenOnlineUsers() {\n final String username = MyAccount.getInstance().getName();\n new Subscriber(Constants.ONLINE_TOPIC, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n // Get current user in chat box\n ChatBox currentChatBox = getCurrentChat();\n final String current = currentChatBox != null ? currentChatBox.getTarget() : null;\n\n boolean isCurrentOnline = current == null;\n\n // Clear all exist chat item\n lvUserItem.getItems().clear();\n\n // Retrieve online users\n List<String> onlineUsers = (List<String>) message.data;\n\n // Clear all offline user chat messages in MessageManager\n MessageManager.getInstance().clearOffline(onlineUsers);\n MessageSubscribeManager.getInstance().clearOffline(onlineUsers);\n\n for (String user : onlineUsers) {\n // Add user (not your self) into listview\n if (!username.equals(user)) {\n ChatItem item = new UserChatItem();\n item.setName(user);\n lvUserItem.getItems().add(item);\n\n // Check whether current user still online\n if (user.equals(current))\n isCurrentOnline = true;\n else {\n String topic = String.format(\"chat/%s\", user);\n if (!MessageSubscribeManager.getInstance().containsKey(topic)) {\n // with other user listen message\n Subscriber subscriber = subscribeMessages(username, topic);\n MessageSubscribeManager.getInstance().put(topic, subscriber);\n }\n }\n }\n }\n\n // In case current user offline\n // Clear chat box\n if (!isCurrentOnline) {\n clearChatBox();\n }\n }\n })\n .listen();\n }",
"public void doChatMessage(GameServer gameServer, User user, String name, String message) {\n if (message.startsWith(\"/\")) {\n String toSend = \"\";\n if (message.startsWith(\"/help\")) {\n //Todo: do help\n toSend = \"List of all inner chat commands:\\n\" +\n \"/help (Command) --> Gets help for that command\\n\" +\n \"/list [all, online, RankName, lobby, clients, propertys] --> get a list of users that meet the criteria\\n\" +\n \"/ping --> Pong!\";\n }\n if (message.startsWith(\"/list all\")) {\n List<String> toSendList = Authenticate.getUserList();\n //toSend = Authenticate.getUserList();\n for (String string: toSendList) {\n toSend += string + \"\\n\";\n }\n }\n else if (message.startsWith(\"/ping\")) {\n toSend = \"Pong\";\n }\n else if (message.startsWith(\"/list lobby\")) {\n Lobby lobby = user.getCurrentLobby();\n if (lobby != null) {\n List<User> users = lobby.getUsers();\n for (User u: users) {\n toSend += u.chatFormatDisplay() + \"\\n\";\n }\n }\n }\n else if (message.startsWith(\"/list clients\")) {\n if (Authenticate.checkRank(user.getRank(), Rank.Op)) {\n for (ClientWorker w: gameServer.getClients()) {\n toSend += w.toString() + \"\\n\";\n }\n }\n }\n else if (message.startsWith(\"/list propertys\")) {\n if (Authenticate.checkRank(user.getRank(), Rank.Op)) {\n toSend = Settings.listPropertys();\n }\n }\n else if (message.startsWith(\"/changeproperty\")) {\n if (Authenticate.checkRank(user.getRank(), Rank.Op)) {\n String[] split = message.split(\" \");\n Settings.setProperty(split[1], split[2]);\n toSend = \"Changed property: \" + split[1] + \" to \" + split[2] + \".\\n\" + Settings.listPropertys();\n }\n }\n else if (message.startsWith(\"/loadpropertys\")) {\n if (Authenticate.checkRank(user.getRank(), Rank.Op)) {\n Settings.load();\n toSend = \"Loaded propertys.\\n\" + Settings.listPropertys();\n }\n }\n\n else if (message.startsWith(\"/snake\")) {\n if (user.getCurrentLobby() == null) {\n SingleUserChatContext chatContext = new SingleUserChatContext(user, \"Snake-->\" + user.getName(), \"Snake\");\n addNewContext(chatContext);\n SnakeLobby snakeLobby = new SnakeLobby(user, chatContext);\n user.setCurrentLobby(snakeLobby);\n gameServer.lobbys.addNewLobby(snakeLobby);\n snakeLobby.start();\n }\n }\n\n else if (message.startsWith(\"/statesnake\")) {\n if (user.getCurrentLobby() == null) {\n SingleUserChatContext chatContext = new SingleUserChatContext(user, \"Snake-->\" + user.getName(), \"Snake\");\n addNewContext(chatContext);\n StateSnakeLobby snakeLobby = new StateSnakeLobby(user, chatContext);\n user.setCurrentLobby(snakeLobby);\n gameServer.lobbys.addNewLobby(snakeLobby);\n snakeLobby.start();\n }\n }\n\n else if (message.startsWith(\"/leavelobby\")) {\n Lobby lobby = user.getCurrentLobby();\n if (lobby != null) {\n gameServer.lobbys.removeUser(lobby, user);\n toSend = \"Left the lobby\";\n }\n }\n\n// else if (message.startsWith(\"/load\")) {\n// String[] split = message.split(\" \");\n// File file = new File(split[1]);\n// System.out.println(file.exists());\n// if (file.exists()) {\n// try {\n// String in = \"\";\n// BufferedReader reader = new BufferedReader(new FileReader(file));\n// while ((in = reader.readLine()) != null) {toSend += in + \"\\n\";}\n// reader.close();\n// //toSend = in;\n// //Get the chat context, if it exists send the chat message\n// ChatContext chatContext = getContext(name);\n// if (chatContext == null) return;\n// chatContext.sendMessage(toSend);\n// toSend = \"\";\n// }\n// catch (Exception e) {\n// e.printStackTrace();\n// }\n// }\n// }\n\n if (!toSend.isEmpty()) {\n StringWriter stringWriter = new StringWriter();\n new JSONWriter(stringWriter).object()\n .key(\"argument\").value(\"chatmessage\")\n .key(\"name\").value(\"Server-->\" + user.getName())\n .key(\"displayname\").value(\"Server\")\n .key(\"message\").value(toSend)\n .endObject();\n user.clientWorker.sendMessage(stringWriter.toString());\n }\n\n }\n else {\n //Get the chat context, if it exists send the chat message\n ChatContext chatContext = getContext(name);\n if (chatContext == null) return;\n chatContext.sendMessage(user.chatFormatDisplay() + \" \" + message);\n }\n }",
"public void talk() {\n\t try{\t\n\t \twhile(exit) {\n\t\t \t\t//Definizione stream per la comunicazione\n\t\t \t\ttastiera = new BufferedReader(new InputStreamReader(System.in));\n\t\t \t\tout = new DataOutputStream(connection.getOutputStream());\n\t\t\t\t in = new DataInputStream(connection.getInputStream());\n\t\t\t\t \n\t\t \t\t//Invio messaggio\n\t\t\t\t System.out.println(\"Inserisci il messaggio da mandare al server: \\n\");\n\t\t\t\t mess = tastiera.readLine();\n\t\t\t\t\tout.writeUTF(mess + \"\\n\");\n\t\t\t\t\t\n\t\t\t\t\t//Ricezione risposta server\n\t\t\t\t\tservermess = in.readUTF();\n\t\t\t System.out.println(\"Risposta dal server: \"+servermess);\n\t\t\t if(mess.equals(\"FINE\")) {\n\t\t\t \texit = false;\n\t\t\t }\n\t\t\t\t}\n\t\t }\n\t\t catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t }\n\t \tfinally {\n\t\t\t try {\n\t\t\t\t if (connection!=null)\n\t\t\t\t {\n\t\t\t\t connection.close();\n\t\t\t\t System.out.println(\"Connessione chiusa!\");\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t catch(IOException e){\n\t\t\t System.err.println(\"Errore nella chiusura della connessione!\");\n\t\t\t }\n\t \t}\t\n \t}",
"public void enableChat();",
"public void startSocial() {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tSystem.out.println(Constants.Message.WELCOME_MESSAGE);\n\t\tSystem.out.println(Constants.Message.DO_ACTION_MESSAGE);\n\n\t\twhile(scanner.hasNext()) {\n\t\t\tString command = scanner.nextLine();\n\t\t\tCommandStrategy commandStrategy = chooseStrategy(command);\n\t\t\tif(commandStrategy != null) {\n\t\t\t\tcommandStrategy.execute(command);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(Constants.Message.DO_ACTION_MESSAGE);\n\t\t}\n\t}",
"private void whileChatting() throws IOException{\n\t\tString message = \" You are now connected! Say hello :) \";\n\t\tsendMessage(message);\n\t\tableToType(true);\n\t\tdo{\n\t\t\t//have a conversation\n\t\t\ttry{\n\t\t\t\tmessage = (String) input.readObject();\n\t\t\t\tshowMessage(\"\\n\" + message);\n\t\t\t}catch(ClassNotFoundException cnf){\n\t\t\t\tshowMessage(\"\\n Server could not understand the message...\");\n\t\t\t}\n\t\t}while(!message.equals(\"CLIENT - END\"));\n\t}",
"public void broadcastInfo(String msg){\n\t\tfor (User u : Servidor.users) {\n\t\t\ttry {\t\t\t\t\n\t\t\t\tDataOutputStream o = new DataOutputStream(u.getSocket().getOutputStream());\n\t\t\t\to.writeUTF(msg);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void doChat(LoginDetails loginDetails) {\n\tSystem.out.println(\"Boomer chat\");\t\n\t}",
"void bot_check_on_user() { // using Watson Speech-to-Text and text-to-Speech functions\r\n String output;\r\n String input;\r\n output: \"Are you okay?\";\r\n input = get voice input;\r\n if (input = \"Yes I’m okay.\") {} // nothing to do\r\n else if (input = \"A bit unwell.\") {\r\n output = \"Please list your symptoms.\";\r\n String symptoms;\r\n symptoms = get voice input;\r\n CFR_check(symptoms);\r\n }\r\n else if (input = …(no sound)) {\r\n CFR_check(\"No response, might be unconscious.\");\r\n else output : \"Please repeat.\";\r\n }",
"public void playHoomans() {\r\n System.out.println(\"Thanks for killing each other, human!\");\r\n }",
"static void who(DataOutputStream os, Socket clientSocket){\n int userQuery = -1;\n try {\n for(int i = 0; i < num_clients; i++) { //searches for the socket that sent the command\n if (sockets[i] == clientSocket) {\n userQuery = i;\n break;\n }\n } \n os = new DataOutputStream(clientSocket.getOutputStream());\n os.writeUTF(\"200 OK \\nThe list of the active users:\");\n for(int i = 0; i < active_users.length; i++) {//writes a list of users logged into the system\n os.writeUTF(active_users[i] + \"\\t\" + sockets[i].getInetAddress());\n }\n } catch (IOException ex) {\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void requestChat(String otherUsername) {\n System.out.println(\"Requesting chat with \" + otherUsername);\n toServer.println(\"newchat\" + \" \" + username + \" \" + otherUsername);\n toServer.flush();\n }",
"public void interact(Human user)\n {\n System.out.println(\"You will have to talk to the Starbucks(c) cashier to get a cup of COFFEE\"); \n }",
"private static void getJokeOrProverb(String username, String userkey, String servername, int port){\n\t\tSocket socket;\n\t\tBufferedReader fromServer;\n\t\tPrintStream toServer;\n\n\t\ttry{\n\t\t\t// Open a new socket connection to the server with the specified port number\n\t\t\tsocket = new Socket(servername, port);\n\t\t\tfromServer = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\ttoServer = new PrintStream(socket.getOutputStream());\n\t\t\t// Send user name and user key to server\n\t\t\ttoServer.println(username + \" \" + userkey);\n\t\t\ttoServer.flush();\n\n\t\t\t// There is nothing special for the number(50) of iteration times\n\t\t\tString strOutput;\n\t\t\tfor (int ix = 1; ix <= 50; ix++){\n\t\t\t\tstrOutput = fromServer.readLine();\n\t\t\t\tif (strOutput == null){ // There is no more messages\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// Write log and print\n\t\t\t\t\twriteLog(strOutput);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Close the socket\n\t\t\tsocket.close();\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\twriteLog(\"Exception occurs, see the below details:\");\n\t\t\tex.printStackTrace ();\n\t\t}\n\t}",
"public void onlinerequest() {\r\n int size = Server.getUsers().size();\r\n \r\n try {\r\n this.output.flush();\r\n this.output.writeUTF(\"ONLINE\");\r\n this.output.flush();\r\n this.output.writeUTF(Integer.toString(size));\r\n this.output.flush();\r\n// Log.print(\"Sending the data\");\r\n for(int x = 0; x < Server.getUsers().size(); x++){\r\n if(Server.getUsers().get(x).getName().equals(this.name)){\r\n this.output.writeUTF(Server.getUsers().get(x).getName() + \" (You)\");\r\n }\r\n else{\r\n this.output.writeUTF(Server.getUsers().get(x).getName());\r\n this.output.flush();\r\n }\r\n \r\n \r\n }\r\n// Log.print(\"Successfully sent\");\r\n } catch (IOException ex) {\r\n Log.error(ex.getMessage());\r\n }\r\n }",
"public static void aviUsers() {\n\t\tsendNotification();\r\n\t}",
"@Override\n public void run() {\n\n try {\n LocalDateTime now = LocalDateTime.now();\n voda bot = new voda();\n\n List<Integer> notifyTime = Arrays.asList(7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23);\n int currentHour = now.getHour();\n\n ArrayList<Integer> consulted = dbmodel.MysqlCon.getFollowers();\n\n for (Integer ntime : notifyTime) {\n if (ntime == currentHour) {\n for (Integer consultedUser : consulted) {\n bot.sendTextToIdMessage(consultedUser, dbmodel.MysqlCon.getEveryDayWaterUserWaterCountView(consultedUser));\n }\n }\n }\n\n\n } catch (Exception e) {\n System.out.println();\n }\n }",
"public static void main(String[] args) {\n\n System.out.println(\"Hi. This is a greeting.\");\n Scanner scanner = new Scanner(System.in);\n\n String name = \"\";\n String address = \"localhost\";\n int portNum = 1500;\n\n if (args.length == 1)\n name = args[0];\n else {\n System.out.print(\"Please type a username. \");\n name = scanner.nextLine();\n }\n if (args.length == 2){\n name = args[0];\n try {\n portNum = Integer.parseInt(args[1]);\n } catch (Exception e) {\n System.out.println(\"Invalid port number!\");\n return;\n }\n }\n if (args.length == 3){\n address = args[2];\n try {\n portNum = Integer.parseInt(args[1]);\n } catch (Exception e) {\n System.out.println(\"Invalid port number!\");\n return;\n }\n name = args[0];\n }\n\n\n // Create your client and start it\n ChatClient client = new ChatClient(address, portNum, name);\n if (!client.start()) {\n return;\n }\n\n\n // Send an empty message to the server\n\n while (true) {\n String message = scanner.nextLine();\n message = message.toLowerCase();\n if (message.contains(\"/ttt\")) {\n String[] messageArray = message.split(\" \");\n if (messageArray.length <= 1) {\n System.out.println(\"Dude do this right!!!\");\n continue;\n }\n if(messageArray[1].equals(name)) {\n System.out.println(\"Error.\");\n continue;\n }\n client.sendMessage(new ChatMessage(ChatMessage.TICTACTOE,message, messageArray[1]));\n\n\n /// /tt <recipent> <placement>\n\n\n } else if (message.equals(\"/logout\")){\n client.sendMessage(new ChatMessage(ChatMessage.LOGOUT, \" \" + name + \" disconnected\", name));\n client.close();\n break;\n\n } else if (message.equals(\"/list\")) {\n// System.out.println(name + \"requested a list of users.\");\n client.sendMessage(new ChatMessage(ChatMessage.LIST, \" \",name));\n\n } else if (message.contains(\"/msg\")){\n String[] messageArray = message.split(\" \");\n if(messageArray[1].equals(name)) {\n System.out.println(\"Error. You cannot slide into your own DM.\");\n }\n\n else {\n int index = message.indexOf(messageArray[2]);\n client.sendMessage(new ChatMessage(ChatMessage.DM, message.substring(index), messageArray[1]));\n }\n } else {\n client.sendMessage(new ChatMessage(ChatMessage.MESSAGE, message, name));\n }\n }\n }",
"public void runCommand(List<String> tokens) {\n\t\tUserCommand usrCommand;\n\t\tapp.setTwitteruser(TwitterUserFactory.getTwitterUser(tokens.get(0).toString(), userCollection));\n\t\tif (tokens.contains(\"->\")) {\n\t\t\tusrCommand = new PostMessage(TwitterAssignmentHelper.getCombinedString(tokens, 2), app);\n\t\t} else if (tokens.contains(\"follows\")) {\n\t\t\tusrCommand = new FollowUser(tokens.get(2).toString() ,app);\n\t\t} else if (tokens.contains(\"wall\")) {\n\t\t\tusrCommand = new Wall(app);\n\t\t} else if (tokens.size() == 1) {\n\t\t\tusrCommand = new ReadMessage(app);\n\t\t} else {\n\t\t\tusrCommand = new InvalidCommand(tokens.get(0).toString(),\n\t\t\t\t\tuserCollection);\n\t\t}\n\t\tusrCommand.execute();\n\t\tSystem.out.print(\">\");\n\t}",
"@Override\n public void notifyUsers(String authorName, String messageContent) {\n if (!messageContent.equals(IChat.SEND_MESSAGE_COMMAND)) {\n Message message = new Message(authorName, messageContent);\n this.chatMessages.add(message);\n for (Socket socket : getChatUsers()) {\n try {\n PrintWriter messageOut = new PrintWriter(socket.getOutputStream(), true);\n messageOut.println(message.toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"private void individualSend(UserLogic t) {\n if(t != UserLogic.this && t != null && ((String)UI.getContacts().getSelectedValue()).equals(t.username)){\r\n if(((String)t.UI.getContacts().getSelectedValue()).equals(username)) { //If both users are directly communicating\r\n t.UI.getProperList().addElement(username + \"> \" + UI.getMessage().getText()); //Send message\r\n t.UI.getContacts().setCellRenderer(clearNotification); //Remove notification\r\n }\r\n else{ //If the user are not directly communicating\r\n t.UI.getContacts().setCellRenderer(setNotification); //Set notification\r\n }\r\n if(t.chats.containsKey(username)){ //Store chats in other users database (When database exists)\r\n ArrayList<String> arrayList = t.chats.get(username); //Get data\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>(); //create new database\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n }\r\n //This writes on my screen\r\n if(t == UserLogic.this && t!=null){ //On the current user side\r\n UI.getProperList().addElement(\"Me> \" + UI.getMessage().getText()); //Write message to screen\r\n String currentChat = (String) UI.getContacts().getSelectedValue(); //Get selected user\r\n if(chats.containsKey(currentChat)){ //check if database exists\r\n ArrayList<String> arrayList = chats.get(currentChat);\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n }\r\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n \tif (cmd.getName().equalsIgnoreCase(\"notifier\")) { // The menu and plugin info\n \t\tString[] say = {\n \t\t\t\t\"/-------------------------/\",\n \t\t\t\t\"-\" + PLUGIN_NAME + \" is running version \" + PLUGIN_VERSION,\n \t\t\t\t\"- Commands:\",\n \t\t\t\t\"- /notifier - Shows this\",\n \t\t\t\t\"- /notify - Toggle notifications\",\n \t\t\t\t\"/-------------------------/\"};\n \t\tsender.sendMessage(say);\n \t\treturn true;\n \t}\n \tif (cmd.getName().equalsIgnoreCase(\"notify\")) { // enable and disable notifications\n \t\tif (!(sender instanceof Player)) {\n \t\t\tsender.sendMessage(\"This command can only be run by a player.\");\n \t\t} else {\n \t\t\tPlayer player = (Player) sender;\n \t\t\tPlayerHandler todisable = null;\n \t\t\tfor(PlayerHandler ph : players){\n \t\t\t\tif(ph.getPlayerName().equals(player.getName())){\n \t\t\t\t\ttodisable = ph; // Found a player thread already running\n \t\t\t\t}\n \t\t\t}\n \t\t\tif(todisable != null){\n \t\t\t\t// Disable it and remove it from the ArrayList\n \t\t\t\ttodisable.disable();\n \t\t\t\tplayers.remove(todisable);\n \t\t\t\ttodisable.notify(1);\n \t\t\t\ttodisable = null;\n \t\t\t\tplayer.sendMessage(PLUGIN_NAME + \" disabled!\");\n \t\t\t\tshowConsole(\"Disabled player: \" + player.getName());\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\t// Enable\n \t\t\tPlayerHandler ph = new PlayerHandler(player, true);\n \t\t\tplayers.add(ph);\n \t\t\tplayer.sendMessage(PLUGIN_NAME + \" enabled!\");\n \t\t\tshowConsole(\"Enabled player: \" + player.getName());\n \t\t}\n \t\treturn true;\n \t}\n \tif(cmd.getName().equalsIgnoreCase(\"nudge\")){\n \t\tif(args.length != 1) return false;\n \t\tString name = args[0];\n \t\tif (!(sender instanceof Player)) {\n \t\t\tsender.sendMessage(\"Notifying player!\");\n this.notifyPlayer(name);\n \t\t} else {\n \t\t\tPlayer player = (Player) sender;\n \t\t\tplayer.sendMessage(\"This command is only available for the console!\");\n // this.notifyPlayer(name);\n // TODO Set delay for players without the right permission.\n \t\t}\n \t\treturn true;\n \t}\n \treturn false; \n }",
"public void onConnected() {\n userName = conn.getUsername();\n tellManagers(\"I have arrived.\");\n tellManagers(\"Running {0} version {1} built on {2}\", BOT_RELEASE_NAME, BOT_RELEASE_NUMBER, BOT_RELEASE_DATE);\n command.sendCommand(\"set noautologout 1\");\n command.sendCommand(\"set style 13\");\n command.sendCommand(\"-notify *\");\n Collection<Player> players = tournamentService.findScheduledPlayers();\n for (Player p : players) {\n command.sendCommand(\"+notify {0}\", p);\n }\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_ARRIVED);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_LEFT);\n\n Runnable task = new SafeRunnable() {\n\n @Override\n public void safeRun() {\n onConnectSpamDone();\n }\n };\n //In 2 seconds, call onConnectSpamDone().\n scheduler.schedule(task, 4, TimeUnit.SECONDS);\n System.out.println();\n }",
"public void mem_list() {\n synchronized(chat_room) {\n Set id_set = cur_chat_room.keySet();\n Iterator iter = id_set.iterator();\n clearScreen(client_PW);\n client_PW.println(\"------------online member-----------\");\n while(iter.hasNext()) {\n String mem_id = (String)iter.next();\n if(mem_id != client_ID) {\n client_PW.println(mem_id);\n }\n }\n client_PW.flush();\n }\n }",
"public List<String> allUsersInteractedWith(String owner)\n\t{\n\t\tSet<String> users = new HashSet<>();\n\t\tfor (Chat chat : db.findBySenderOrReceiver(owner, owner))\n\t\t{\n\t\t\t// if the receiver is the owner, the sender is someone else (the user)\n\t\t\t// and vice versa\n\t\t\tString receiver = chat.getReceiver();\n\t\t\tString sender = chat.getSender();\n\t\t\tusers.add(sender.equals(owner) ? receiver : sender);\n\t\t}\n\t\treturn new ArrayList<String>(users);\n\t}",
"@Override\n public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @NotNull String s, @NotNull String[] args) {\n if (args.length == 0) {\n sender.sendMessage(ChatColor.BLUE + \"=============={\" + ChatColor.GREEN + \"Ultra Chat\" + ChatColor.BLUE + \"}==============\");\n sender.sendMessage(ChatColor.BLUE + \"Plugin developed by:\" + ChatColor.GREEN + \" Ryandw11\");\n sender.sendMessage(ChatColor.BLUE + \"Version: \" + ChatColor.GREEN + String.format(\"%s\", plugin.getDescription().getVersion()));\n sender.sendMessage(ChatColor.BLUE + \"Plugin wiki:\" + ChatColor.GREEN + \" https://github.com/ryandw11/UltraChat/wiki\");\n sender.sendMessage(ChatColor.BLUE + \"Do \" + ChatColor.GREEN + \" /chat help \" + ChatColor.BLUE + \"for the list of commands!\");\n sender.sendMessage(ChatColor.BLUE + \"=============={\" + ChatColor.GREEN + \"Ultra Chat\" + ChatColor.BLUE + \"}==============\");\n\n } else if (args.length == 1 && args[0].equalsIgnoreCase(\"stop\")) {\n if (sender.hasPermission(\"ultrachat.stopchat\")) {\n\n if (plugin.isChatStopped) {\n plugin.isChatStopped = false;\n sender.sendMessage(Lang.CHAT_UNSTOP_PERSONAL.toString());\n Bukkit.getServer().broadcastMessage(Lang.CHAT_STOP_OFF.toString().replace(\"%p\", sender instanceof Player ? ((Player) sender).getDisplayName() :\n \"CONSOLE\"));\n } else {\n plugin.isChatStopped = true;\n sender.sendMessage(Lang.CHAT_STOP_PERSONAL.toString());\n Bukkit.getServer().broadcastMessage(Lang.CHAT_STOP_ON.toString().replace(\"%p\", sender instanceof Player ? ((Player) sender).getDisplayName() :\n \"CONSOLE\"));\n }\n\n\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n\n\n } else if (args.length > 1 && args[0].equalsIgnoreCase(\"broadcast\")) {\n if (sender.hasPermission(\"ultrachat.broadcast\")) {\n StringBuilder message = new StringBuilder();\n for (int i = 1; i < args.length; i++) {\n message.append(\" \").append(args[i]);\n }\n Bukkit.getServer().broadcastMessage(Lang.BROADCAST_PREFIX.toString() + ChatColor.translateAlternateColorCodes('&', message.toString()));\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n\n } else if (args.length == 1 && args[0].equalsIgnoreCase(\"broadcast\")) {\n if (sender.hasPermission(\"ultrachat.broadcast\")) {\n sender.sendMessage(ChatColor.RED + \"Invalid Usage: /chat broadcast (broadcast)\");\n return true;\n }\n sender.sendMessage(Lang.NO_PERM.toString());\n } else if (args.length == 1 && args[0].equalsIgnoreCase(\"clear\")) {\n if (sender.hasPermission(\"ultrachat.clearchat\")) {\n for (int i = 0; i < 100; i++) {\n for (Player pl : Bukkit.getOnlinePlayers()) {\n pl.sendMessage(\" \");\n }\n }\n Bukkit.getServer().broadcastMessage(Lang.CHAT_CLEAR.toString().replace(\"%p\", sender.getName()));\n\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n } else if (args.length == 1 && args[0].equalsIgnoreCase(\"sjoin\")) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(ChatColor.RED + \"This command is for players only!\");\n return true;\n }\n Player p = (Player) sender;\n if (sender.hasPermission(\"ultrachat.sjoin\")) {\n if (plugin.data.getBoolean(p.getUniqueId().toString() + \".sjoin\")) {\n sender.sendMessage(Lang.SJOIN_SHOWN.toString());\n plugin.data.set(p.getUniqueId().toString() + \".sjoin\", false);\n plugin.saveFile();\n } else {\n plugin.data.set(p.getUniqueId().toString() + \".sjoin\", true);\n plugin.saveFile();\n sender.sendMessage(Lang.SJOIN_HIDE.toString());\n }\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n\n } else if (args.length == 2 && args[0].equalsIgnoreCase(\"sjoin\")) {\n if (sender.hasPermission(\"ultrachat.sjoin.others\")) {\n Player pl = Bukkit.getServer().getPlayer(args[1]);\n if (pl == null) {\n sender.sendMessage(ChatColor.RED + \"Player can not be null!\");\n return true;\n }\n if (plugin.data.getBoolean(pl.getUniqueId().toString() + \".sjoin\")) {\n sender.sendMessage(String.format(Lang.SJOIN_OTHER_SHOW.toString(), pl.getName()));\n plugin.data.set(pl.getUniqueId().toString() + \".sjoin\", false);\n plugin.saveFile();\n } else {\n plugin.data.set(pl.getUniqueId().toString() + \".sjoin\", true);\n plugin.saveFile();\n sender.sendMessage(String.format(Lang.SJOIN_OTHER_HIDE.toString(), pl.getName()));\n }\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n\n } else if (args.length == 2 && args[0].equalsIgnoreCase(\"join\")) {\n if (sender.hasPermission(\"ultrachat.fakejoin\")) {\n Bukkit.getServer().broadcastMessage(ChatColor.translateAlternateColorCodes('&', Objects.requireNonNull(plugin.getConfig().getString(\"Join_Message\")).replace(\"%player%\", args[1])));\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n } else if (args.length == 2 && args[0].equalsIgnoreCase(\"leave\")) {\n if (sender.hasPermission(\"ultrachat.fakeleave\")) {\n Bukkit.getServer().broadcastMessage(ChatColor.translateAlternateColorCodes('&', Objects.requireNonNull(plugin.getConfig().getString(\"Leave_Message\")).replace(\"%player%\", args[1])));\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n } else if (args.length == 1 && args[0].equalsIgnoreCase(\"help\")) {\n if (!sender.hasPermission(\"ultrachat.help\")) {\n \tsender.sendMessage(Lang.NO_PERM.toString());\n \treturn true;\n\t\t\t}\n sender.sendMessage(ChatColor.BLUE + \"-------------------=[\" + ChatColor.GREEN + \"Ultra Chat\" + ChatColor.BLUE + \"]=-------------------\");\n sender.sendMessage(ChatColor.GREEN + \"/chat help\" + ChatColor.BLUE + \" The help command.\");\n sender.sendMessage(ChatColor.GREEN + \"/chat stop\" + ChatColor.BLUE + \" Stop the chat.\");\n sender.sendMessage(ChatColor.GREEN + \"/chat broadcast (message)\" + ChatColor.BLUE + \" Send a message to every player.\");\n sender.sendMessage(ChatColor.GREEN + \"/sc (message)\" + ChatColor.BLUE + \" Talk in staff chat.\");\n sender.sendMessage(ChatColor.GREEN + \"/sctoggle\" + ChatColor.BLUE + \" Toggle staff chat.\");\n sender.sendMessage(ChatColor.GREEN + \"/spy\" + ChatColor.BLUE + \" Enable or disable command spy.\");\n sender.sendMessage(ChatColor.GREEN + \"/chat clear\" + ChatColor.BLUE + \" Clear the chat.\");\n sender.sendMessage(ChatColor.GREEN + \"/chat sjoin\" + ChatColor.BLUE + \" Silently join and leave the server.\");\n sender.sendMessage(ChatColor.BLUE + \"Do\" + ChatColor.GREEN + \" /chat help 2\" + ChatColor.BLUE + \" for more help pages!\");\n sender.sendMessage(ChatColor.BLUE + \"Plugin made by: \" + ChatColor.GREEN + \"Ryandw11\" + ChatColor.BLUE + \"! Help Page: \" + ChatColor.GREEN + \"1/2\" + ChatColor.BLUE + \".\");\n sender.sendMessage(ChatColor.BLUE + \"---------------------------------------------------\");\n\n } else if (args.length == 2 && args[0].equalsIgnoreCase(\"help\")) {\n if (sender.hasPermission(\"ultrachat.help\")) {\n if (args[1].equals(\"2\")) {\n sender.sendMessage(ChatColor.BLUE + \"-------------------=[\" + ChatColor.GREEN + \"Ultra Chat\" + ChatColor.BLUE + \"]=-------------------\");\n sender.sendMessage(ChatColor.GREEN + \"/chat leave (player)\" + ChatColor.BLUE + \" Send a fake leave message.\");\n sender.sendMessage(ChatColor.GREEN + \"/chat join (player) \" + ChatColor.BLUE + \" Send a fake join message.\");\n sender.sendMessage(ChatColor.GREEN + \"/chat color\" + ChatColor.BLUE + \" Change your chat color.\");\n sender.sendMessage(ChatColor.GREEN + \"/chat raw {Message}\" + ChatColor.BLUE + \" Send a message in the chat without a prefix.\");\n sender.sendMessage(ChatColor.GREEN + \"/chat reload\" + ChatColor.BLUE + \" Reload the config file.\");\n sender.sendMessage(ChatColor.GREEN + \"/chat hooks\" + ChatColor.BLUE + \" Get the current plugin hooks!\");\n sender.sendMessage(ChatColor.GREEN + \"/channels\" + ChatColor.BLUE + \" The channel command.\");\n sender.sendMessage(ChatColor.BLUE + \"Plugin made by: \" + ChatColor.GREEN + \"Ryandw11\" + ChatColor.BLUE + \"! Help Page: \" + ChatColor.GREEN + \"2/2\" + ChatColor.BLUE + \".\");\n sender.sendMessage(ChatColor.BLUE + \"---------------------------------------------------\");\n }\n if (!(args[1].equals(\"1\") || args[1].equals(\"2\"))) {\n sender.sendMessage(Lang.HELP_PAGE_ERROR.toString());\n }\n } else {\n sender.sendMessage(ChatColor.translateAlternateColorCodes('&', Objects.requireNonNull(plugin.getConfig().getString(\"No_Permission\"))));\n }\n } else if (args.length > 1 && args[0].equalsIgnoreCase(\"raw\")) {\n if (sender.hasPermission(\"ultrachat.raw\")) {\n StringBuilder message = new StringBuilder();\n for (int i = 1; i < args.length; i++) {\n if (i == 1) {\n message.append(args[i]);\n } else {\n message.append(\" \").append(args[i]);\n }\n }\n Bukkit.getServer().broadcastMessage(ChatColor.translateAlternateColorCodes('&', ChatColor.translateAlternateColorCodes('&', message.toString())));\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n } else if (args.length == 1 && args[0].equalsIgnoreCase(\"reload\")) {\n if (sender.hasPermission(\"ultrachat.reload\")) {\n plugin.reloadConfig();\n plugin.loadChannel();\n sender.sendMessage(Lang.CONFIG_RELOAD.toString());\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n } else if (args.length == 1 && args[0].equalsIgnoreCase(\"color\")) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(ChatColor.RED + \"This command is for players only!\");\n return true;\n }\n if (sender.hasPermission(\"ultrachat.color\"))\n plugin.getColorGUI().openGUI((Player) sender, 1);\n else\n sender.sendMessage(Lang.NO_PERM.toString());\n } else if (args.length == 1 && args[0].equalsIgnoreCase(\"hooks\")) {\n if (sender.hasPermission(\"ultrachat.hooks\")) {\n UltraChatAPI uapi = new UltraChatAPI();\n sender.sendMessage(ChatColor.BLUE + \"Ultra Chat Hooks:\");\n if (uapi.getActiveHooks() == null) {\n sender.sendMessage(ChatColor.GREEN + \"No hooks are currently active!\");\n } else {\n for (String st : uapi.getActiveHooks()) {\n sender.sendMessage(ChatColor.GREEN + \" - \" + st);\n }\n }\n } else {\n sender.sendMessage(Lang.NO_PERM.toString());\n }\n } else {\n sender.sendMessage(Lang.CHAT_CMD_NOT_VALID.toString());\n }\n\n return false;\n }",
"public String interpretador(String comando){\n\t\tif(comando.equals(\"list\")){\n\t\t\t\n\t\t\tStringBuffer usuariosOnline = new StringBuffer();\n\t\t\t\n\t\t\tfor (User u : Servidor.users) {\n\t\t\t\tusuariosOnline.append(\"\\n -\" + u.getNome());\n\t\t\t}\n\t\t\t\n\t\t\treturn \"\\n======================\\n\"\n\t\t\t\t\t+ \"Usuarios online: \" + usuariosOnline\n\t\t\t\t\t+ \"\\n======================\";\n\t\t}\n\t\t\n\t\t// envia uma mensagem para todos que estao online\n\t\telse if(comando.contains(\"send -all\")){\n\t\t\tString mensagem = comando.substring(9);\n\t\t\t\n\t\t\tString emitente = null;\n\t\t\tfor (User u : Servidor.users) {\n\t\t\t\tif(u.getSocket() == socket){\n\t\t\t\t\temitente = u.getNome();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tbroadcast(mensagem, emitente);\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\t// envia uma mensagem para apenas um usuario especifico (mensagem privada)\n\t\telse if(comando.contains(\"send -user\")){\n\t\t\tString temp = comando.substring(11);\n\t\t\tString user = temp.substring(0, temp.indexOf(\" \"));\n\t\t\tString msg = temp.substring(temp.indexOf(\" \"));\n\t\t\t\n\t\t\tUser remetente = null;\n\t\t\tfor (User u : Servidor.users) {\n\t\t\t\tif (u.getNome().equals(user)) {\n\t\t\t\t\tremetente = u;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tString emitente = null;\n\t\t\tfor (User u : Servidor.users) {\n\t\t\t\tif (u.getSocket() == socket) {\n\t\t\t\t\temitente = u.getNome();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsendTo(remetente, emitente, msg);\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\t// renomeia o nome do usuario atual\n\t\telse if(comando.contains(\"rename\")){\n\t\t\tString novonome = comando.substring(7);\n\t\t\tboolean usado = false;\n\t\t\t\n\t\t\tfor (User u : Servidor.users) {\n\t\t\t\tif(novonome.equals(u.getNome())){\n\t\t\t\t\tusado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(usado == true){\n\t\t\t\treturn \"\\n**Nome de usuario ja em uso.\";\n\t\t\t}\n\t\t\telse{\n\t\t\t\tthis.user.setNome(novonome);\n\t\t\t\treturn \"\\n**Renomeado com sucesso.\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t// remove o usuario do chat e encerra a comunicacao com o mesmo (fechando o socket)\n\t\telse if(comando.equals(\"bye\")){\n\t\t\t\n\t\t\tbroadcastInfo(\"** \" + this.user.getNome() + \" saiu.\");\n\t\t\tServidor.users.remove(user);\n\t\t\tThreadCliente.this.stop();\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t\telse{\n\t\t\treturn \"** Comando não reconhecido pelo servidor.\";\n\t\t}\n\t}",
"void printUsers() {\n if (server.hasUsers()) {\n writer.println(\"Connected users: \" + server.getUserNames());\n } else {\n writer.println(\"No other users connected\");\n }\n }",
"public void listen(){\n \ttry{ \t\t\n \t\twhile(true){\n \t \t\tSocket socket = server.accept();\n \t \t\tString nickname = new String(\"Guest_\" + String.valueOf(nextId));\n \t \t\t\n \t \t\t// Create a server connection and connect it to the appropriate user.\n \t \t\tServerConnection userConnection = new ServerConnection(nextId, socket, this);\n \t \t\tUser user = new User(nextId, nickname, userConnection);\n \t \t\tuserConnection.setUser(user);\n \t \t\t\n \t \t\tsynchronized(userMap){\n \t \t\t\tuserMap.put(nextId, user);\n \t \t\t}\n \t \t\t// Send a response that connection was successful;\n \t \t\tuserConnection.sendMessage(new Message(Command.REPLY_SUCCESS, \"\", Calendar.getInstance(), \"\"));\n \t \t\t\n \t \t\tnextId++;\n \t\t}\n \t}\n \tcatch(IOException e){\n \t\te.printStackTrace();\n \t}\n }",
"void notifyPlayerJoined(String username);",
"public void sendGameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}",
"void kick(String user);",
"@Override\n public void getMessages(Username user, StreamObserver<MessageText> responseObserver) {\n while (isRunning) {\n synchronized (newMessageMutex) {\n try {\n newMessageMutex.wait();\n } catch (Exception e) {\n e.printStackTrace();\n responseObserver.onCompleted();\n }\n Message lastMsg = userManager.getLastMessage();\n\n System.out.println(\"Sending message to everyone: '\" + lastMsg.getText() + \"' for \" + user.getName());\n responseObserver.onNext(MessageText.newBuilder()\n .setSender(lastMsg.getSender())\n .setText(lastMsg.getText()).build());\n }\n }\n }",
"public void joinChannel() {\n String userId = AuthenticationSingleton.getAdaptedInstance().getUid();\n String token1 = generateToken(userId);\n mRtcEngine.setAudioProfile(Constants.AUDIO_SCENARIO_SHOWROOM, Constants.AUDIO_SCENARIO_GAME_STREAMING);\n int joinStatus = mRtcEngine.joinChannelWithUserAccount(token1, appointment.getId(), userId);\n if (joinStatus == SUCCESS_CODE) {\n appointment.addInCallUser(new DatabaseUser(userId));\n }\n }",
"public static void MCommand() {\n if (Interface.songs.size(Interface.songs) == 0) {\n System.out.println(\"There are not any songs have been liked before.\");\n return;\n }\n System.out.println(Interface.songs.size(Interface.songs) == 1 ? \"Song has been added: \" : \"Songs have been added: \");\n Interface.songs.printList(Interface.songs);\n }",
"static void speak(String words) {\n\t\ttry {\n\t\t\tRuntime.getRuntime().exec(\"say \" + words).waitFor();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void broadcastmsg(String msg){\r\n Server.getUsers().forEach((user) -> {\r\n user.sendmsg(msg);\r\n });\r\n }",
"public void run() {\n\t\tTestTool.log(mPort + \"[AutoSender] waiting...\");\n\t\twhile (mUserList.size() < 2) {\n\t\t\ttry {\n\t\t\t\tmClientEvent.trigger(EE.client_command_getListUser, null);\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tif (mUserList.size() >= 2) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) { e.printStackTrace(); }\n\t\t}\n\t\tTestTool.log(mPort + \"[AutoSender] ...okay\");\n\n\t\t\n\t\tint count = 0;\n\t\twhile (mIsRunning && count++ < 5) {\n\t\t\tJSONObject msg = autoCreateMessage(count);\n\t\t\tTestTool.log(mPort + \"[AutoSender: run] sending message:\", msg);\n\t\t\tmMessengerUser.addMessage(msg);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep((int) Math.random() * 1000);\n\t\t\t} catch (InterruptedException e) { e.printStackTrace(); }\n\t\t}\n\t}",
"public void talk() {\n\n\t}",
"@Override\n\tpublic void talk() {\n\t\tSystem.out.println(\"黄种人-说\");\n\t}",
"public void sendNameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}",
"public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }",
"@Override\r\n public void onMessage(MessageEvent message) {\r\n String newMessage = message.getMessage();\r\n String response;\r\n\r\n //split the message on spaces to identify the command\r\n String[] messageArray = newMessage.split(\" \");\r\n \r\n switch (messageArray[0]) {\r\n case \"!command\":\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n if (messageArray.length == 2) {\r\n if (messageArray[1].equals(\"off\")) {\r\n commandsActive = false;\r\n } \r\n if (messageArray[1].equals(\"on\")) {\r\n commandsActive = true;\r\n }\r\n }\r\n }\r\n break;\r\n //command to make a custom command for the bot\r\n case \"!addcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = addCom(messageArray, message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to add commands.\");\r\n }\r\n }\r\n break;\r\n case \"!commands\":\r\n if (commandsActive) {\r\n if (messageArray.length ==1) {\r\n ArrayList<String> commands = manager.getCommands(message.getChannel().getName());\r\n String commandList = \"The custom commands available to everyone for this channel are: \";\r\n while (!commands.isEmpty()) {\r\n commandList += commands.remove(0) + \", \";\r\n }\r\n message.getChannel().send().message(commandList);\r\n }\r\n }\r\n break;\r\n //command to delete a custom command from the bot\r\n case \"!delcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = delCom(messageArray[1], message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to remove commands.\");\r\n }\r\n }\r\n break;\r\n //command to edit a custom command the bot has\r\n case \"!editcom\":\r\n if (commandsActive) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n response = editCom(messageArray, message.getChannel().getName());\r\n message.getChannel().send().message(response);\r\n } \r\n else {\r\n message.respond(\"You are not allowed to edit commands.\");\r\n }\r\n }\r\n break;\r\n\r\n //default message handling for custom commands\r\n default:\r\n if (commandsActive) {\r\n if (message.getMessage().startsWith(\"!\") && !messageArray[0].equals(\"!permit\")&& !messageArray[0].equals(\"!spam\")) {\r\n customCommands(message);\r\n }\r\n }\r\n break;\r\n }\r\n }",
"public void handleCommand() {\n\t\tif (Client.isLoggedIn() == false)\n\t\t\treturn;\n\t\t\n\t\tClientUser user = Client.getUserByName(argument);\n\t\tif (user == Client.getThisUser()) {\n\t\t\tSystem.err.println(\"Trying to remove this user? This should never happen!\");\n\t\t}\n\t\tif (user != null) {\n\t\t\tClient.removeUser(user);\n\t\t\tClient.getMainWindow().getMainChatPanel().displayInfo(user.getName() + \" has logged off!\");\n\t\t} else {\n\t\t\tSystem.err.println(\"cquit used with a non-exisitng username!\");\n\t\t}\n\t}",
"void play(boolean fromUser);",
"private void broadcastVoiceCommandAction() {\n\t\tVoiceCommandStartIntent.putExtra(\"command\", mApplications.get(CurIndex).title);\r\n\t\tcontext.sendBroadcast(VoiceCommandStartIntent);\r\n\t}",
"private void customCommands(MessageEvent message) {\r\n String command = message.getMessage();\r\n \r\n if (!reservedCommands.contains(command)) {\r\n String[]info;\r\n info = manager.getCommandFromDatabase(command, message.getChannel().getName());\r\n\r\n //checks if the command is in custom mod commands\r\n if (info[1].matches(\"-m\")) {\r\n if (message.getChannel().getOps().contains(message.getUser())) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"You're not allowed to use this command.\");\r\n }\r\n }\r\n //checks if the command is in the custom commands available to everyone\r\n else if (info[1].matches(\"-e\")) {\r\n message.getChannel().send().message(info[0]);\r\n } \r\n else {\r\n message.respond(\"No such command exists\");\r\n }\r\n }\r\n }",
"public void whileChatting() throws IOException{\n\t\t\n\t\tString message = \"You are now connected. Gear up to chat like never before...\";\n\t\tsendMessage(message);\n\t\tableToType(true);\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tmessage = (String) input.readObject();\n\t\t\t\t//Anything coming in the input stream is treated as an object and then will be stored in the variable message as a string.\n\t\t\t\tshowMessage(\"\\n\" + message);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcatch(ClassNotFoundException cnfException) {\n\t\t\t\t\n\t\t\t\tshowMessage (\"\\n An error occured with the message sent.\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (!message.equalsIgnoreCase(\"CLIENT - END\"));\n\t\t//While the client has not sent a message saying \"END\".\n\t\t\n\t}",
"static synchronized void SendMessage(String message, ClientHandler user, boolean same) throws IOException\r\n {\r\n String mes = message;\r\n if(!same)\r\n mes = user.username + \": \" + mes;\r\n //System.out.println(mes);\r\n\r\n chatLogWriter.write(mes + \"\\n\");\r\n chatLogWriter.flush();\r\n\r\n for (ClientHandler ch : users)\r\n {\r\n if(!ch.equals(user))\r\n ch.WriteCypherMessage(mes);\r\n else if(same)\r\n ch.WriteCypherMessage(message);\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tusers.add(socket);\r\n\t\t\t\t\t\r\n\t\t\t\t\tBufferedReader mBuf = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\t\t\t\twhile (socket.isConnected()) {\r\n\t\t\t\t\t\tString msg = mBuf.readLine();\r\n\t\t\t\t\t\tcastChatMsg(msg);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.getStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"private void command(){\n out.println(\"Enter command: \");\n String comInput = in.nextLine();\n\n if (comInput.toLowerCase().equals(\"vote\")) {\n voteCommand();\n }else if (comInput.toLowerCase().equals(\"trade\")){\n tradeCommand();\n }else if (comInput.toLowerCase().equals(\"next\")){\n out.println(waitPrint());\n await();\n// nextRound();\n }else if(comInput.toLowerCase().equals(\"logout\")){\n// login = false;\n logout();\n }\n }",
"public void printTitleAndPrompt(){\n System.out.println(\"\\n\\nSimple Chat System (CLIENT)\");\n System.out.println(\"Programmed by Kelvin Watson, OSU ID 932540242, onid: watsokel)\");\n System.out.println(\"**************************************************************\");\n System.out.println(\"TCP Connection established. Welcome to Simple Chat.\");\n System.out.print(\"Enter a user name (max 10 characters): \");\n }",
"private void broadcastData(String data, User currentUser) throws IOException {\n Set<User> keySet = connectedUsers.keySet();\n int count = 0;\n\n for (User temp : keySet) {\n if (temp.equals(currentUser)) {\n continue;\n }\n\n SocketChannel socketChannel = connectedUsers.get(temp);\n OperationHandler.sendData(socketChannel, currentUser.getUserName() + \": \" + data);\n count++;\n }\n\n // Send feedback to the user.\n SocketChannel socketChannel = connectedUsers.get(currentUser);\n OperationHandler.sendData(socketChannel, String.format(Constants.MESSAGE_SENT, count));\n }",
"void onWhisper(TwitchUser sender, TwitchMessage message);",
"public void chat_list() {\n\n synchronized(chat_room) {\n Set chat_room_set = chat_room.keySet();\n Iterator iter = chat_room_set.iterator();\n\n clearScreen(client_PW);\n client_PW.println(\"------------Chat Room List-----------\");\n while(iter.hasNext()) {\n client_PW.println(iter.next());\n }\n client_PW.flush();\n }\n }",
"@Override\r\n\t\tpublic void run() {\r\n\t\t\tString[] line;\r\n\t\t\tString msg = \"\";\r\n\t\t\ttry {\r\n\t\t\t\tString time1 = dispTime.format(System.currentTimeMillis());\r\n\t\t\t\t// parse the time to the date format\r\n\t\t\t\tdate1 = dispTime.parse(time1);\r\n\t\t\t\t/*\r\n\t\t\t\t * check for the whole message line and split it with : the\r\n\t\t\t\t * first element is username the second is connect/disconnect\r\n\t\t\t\t * message and if the client clicks on connect button it sends\r\n\t\t\t\t * connect message and if client hits disconnect button it sends\r\n\t\t\t\t * disconnect message all the messages are splitted with :,if\r\n\t\t\t\t * the message is to broadcast all current users then :Chat is\r\n\t\t\t\t * used at the end read the inputstream\r\n\t\t\t\t */\r\n\t\t\t\twhile ((msg = in.readLine()) != null) {\r\n\t\t\t\t\t// split the line with :\r\n\t\t\t\t\tline = msg.split(\":\");\r\n\t\t\t\t\tString usern = line[1];// get username\r\n\r\n\t\t\t\t\tif (line[3].equals(\"Connect\")) {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * if the request is connect then add the username to\r\n\t\t\t\t\t\t * arraylist users\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tusers.add(usern);\r\n\t\t\t\t\t} else if (line[3].equals(\"Disconnect\")) {\r\n\t\t\t\t\t\ttextarea.append(usern + \" has disconnected.\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// else if (line[3].equals(\"Chat\"))\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * the message coming from server is in HTTP format then\r\n\t\t\t\t\t\t * extract the message only and display it on users\r\n\t\t\t\t\t\t * window\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ttextarea.append(line[1] + line[2] + \"\\n\");\r\n\t\t\t\t\t\ttextarea.setCaretPosition(textarea.getDocument().getLength());\r\n\t\t\t\t\t}\r\n\t\t\t\t} // try\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"public void tellEveryone(String message) \r\n\t{\r\n\t\tIterator it = Output_Streams_Client.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tPrintWriter writer = (PrintWriter) it.next();\r\n\t\t\t\twriter.println(message);\r\n\t\t\t\tChat.append(\"Sending : \" + message + \"\\n\");\r\n\t\t\t\twriter.flush();\r\n\t\t\t\tChat.setCaretPosition(Chat.getDocument().getLength());\r\n\r\n\t\t\t} \r\n\t\t\tcatch (Exception ex) \r\n\t\t\t{\r\n\t\t\t\tChat.append(\"Mistake to tell everyone \\n\");\r\n\t\t\t}\r\n\t\t} \r\n\t}",
"@Override\n public void broadcast(T msg) {\n for (Integer i : activeUsers.keySet()) {\n this.send(Integer.valueOf(i), msg);\n }\n\n }",
"protected boolean processShout(String username, String titles, String message){return false;}",
"String getOnlineUsers(String senderName)\n {\n List<String> users = new ArrayList<>();\n for (CommunicationLink node : allNodes.values())\n {\n NodeInfo currentNodeInfo = node.getInfo();\n if (currentNodeInfo.getName().equals(senderName))\n {\n users.add(senderName);\n } else\n {\n node.sendMessage(new Message(\"Checking if you are alive\", currentNodeInfo, myInfo, NAME));\n try\n {\n users.add(node.readMessage().getContent());\n } catch (IOException e)\n {\n handleNodeDeath(currentNodeInfo);\n logger.error(\"Node \" + myInfo + \"\\n - \" + currentNodeInfo.getName() + \" disconnected unexpectedly.\");\n }\n }\n }\n users.add(0, myInfo.getName());\n return String.join(\", \", users);\n }",
"public boolean isChatEnabled();",
"protected boolean processCShout(String username, String titles, String message){return false;}",
"public void sendChat(String client, String message) {\n\t\t//enqueue(\"PRIVMSG #\"+myself+\" :.w \"+client + \" imGlitch \" + message); //whisper\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch (@\"+client + \") \" + message);\n\t}",
"public void notifyTurn(String name) {\n if(name.equals(username) && !(client.getPlayer() instanceof ComputerPlayer)) {\n JOptionPane.showMessageDialog(frame, \"It's your turn!\");\n } else if(!(client.getPlayer() instanceof ComputerPlayer)) {\n JOptionPane.showMessageDialog(frame, \"It's \" + name + \"'s turn!\");\n }\n inventoryArea.append(\"\\n\\nIt's \" + name + \"'s turn\");\n }",
"void showOtherUserTyping();",
"public void run( Operation operation )\r\n {\r\n String[] commands = operation.getinputArray();\r\n GamePlayer player = Engine.currentPlayer();\r\n boolean spoken = false;\r\n for ( GameComponent component : Engine.componentList() )\r\n {\r\n if ( component instanceof GameSpeaker && component.getName().equalsIgnoreCase( commands[ 2 ] ) &&\r\n player.getLocation().hasSpeaker( commands[ 2 ], false ) )\r\n {\r\n GameSpeaker speaker = ( GameSpeaker ) component;\r\n speaker.initiateDialog();\r\n spoken = true;\r\n break;\r\n }\r\n }\r\n if ( !spoken )\r\n {\r\n IO.add( \"There is no \" + commands[ 2 ] + \" to speak to here.\" );\r\n }\r\n }",
"public String getUserCommand();",
"public static void main(String[] args) {\n\n\t\n\tSlackUser su=new SlackUser(\"Nadir\");\n\tAdminUser au=new AdminUser(\"Florian\");\n\t\n\t\n\tsu.sendAMessage(\"Hello\");\n\tau.sendAMessage(\"Thank U\");\n\t\n\t\n\t\n\t\n\t\n\t}",
"public void speak() {\r\n\t\tSystem.out.print(\"This Goose speaks\");\r\n\t}",
"public static Vector<String> allUsersWhoTalkingWith(String user) {\n\t\t\n\t\t//Initialization\n\t\tSet<Entry<String, WebSocketThread>> set = Session.allSessions.entrySet();\n\t\tVector<String> result = new Vector<String>();\n\t\t\n\t\t//Parse all connected users\n\t\tfor (Entry<String, WebSocketThread> e : set) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t//Get the user\n\t\t\t\tString username = e.getKey();\n\t\t\t\t\n\t\t\t\tif (WebSocketThread.target.get(username).contains(user)) {\n\t\t\t\t\t\n\t\t\t\t\tresult.add(username);\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t} catch (Exception f) {};\n\t\t\t\n\t\t}\n\t\t\n\t\treturn result;\n\t\t\n\t}",
"@Override\n\tpublic void onMute(String clientName) {\n\t\t// TODO Auto-generated method stub\n\t\tlog.log(Level.INFO, \"Tiggered sendMute()\");\n\t\tIterator<User> iter = users.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\t// try {\n\t\t\tString name = clientName;\n\t\t\tUser client = iter.next();\n\t\t\tif (name.equals(client.getName())) {\n\t\t\t\tmuteName = client.getName();\n\t\t\t\tmuteClient = client;\n\t\t\t\tlog.log(Level.INFO, \"Passed name check\");\n\t\t\t}\n\t\t\t// } catch (ConcurrentModificationException e) {\n\t\t\t// log.log(Level.INFO, \"Caught ConcurrentModification\");\n\t\t\t// }\n\t\t}\n\t\treplaceClient(\"<font color=silver>\" + muteName + \"</font>\", muteClient);\n\t\tlog.log(Level.INFO, \"Reached replaceClient with \" + muteName + \" and \" + muteClient.getName());\n\t}",
"public void speak() {\r\n\t\tSystem.out.print(\"This Tiger speaks\");\r\n\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"wain\", \"you already has this friend\");\r\n\t\t\t\t\t\t\t}",
"void showWaitingRoom(ArrayList<String> usernames);",
"public void talk() throws IOException, InterruptedException{\n\t\ttoServer.println(\"PICKUP\");\n\t\ttoServer.println(\"HELLO\");\n\t\ttoServer.println(\"LOOK\");\n\t\twhile (!gameOver){\n\t\t\tThread.sleep(500);\n\t\t\ttoServer.println(queue.take());\n\t\t\ttoServer.println(\"LOOK\");\n\t\t}\n\t}",
"private void fetchChatContact(){\n chatRemoteDAO.getAllChatRequestHandler(profileRemoteDAO.getUserId());\n }",
"private void handleWhiteboardSynchronization() {\n String userName = EventMessageParser.extractUserName(this.message);\n\n if (StringHelper.isNullOrEmpty(userName)) {\n for (SocketConnection peer : SocketManager.getInstance()\n .getNotManagerConnectionList()) {\n peer.send(this.message);\n }\n } else {\n SocketConnection connection = SocketManager.getInstance()\n .getUserConnection(userName);\n connection.send(this.message);\n }\n }",
"@Override\r\n public void onPrivmsg(User user, Channel channel, String message) {\r\n if (channel == null || !channel.getName().equals(\"#it06\")) {\r\n return;\r\n }\r\n for (String s : message.split(\" \")) {\r\n /* check if the message contains a username, if so: change the message */\r\n /* to something in the blacklist */\r\n for (User u : channel.getUsers().keySet()) {\r\n if (s.contains(u.getNickname())) {\r\n s = \"hej\";\r\n }\r\n }\r\n \r\n /* if the message is in the blacklist, go to the next one */\r\n if (blackList.contains(s)) {\r\n continue;\r\n }\r\n \r\n /* do we have this word in our \"vocabulary\" (old), else we check google */\r\n String t;\r\n if (old.containsKey(s)) {\r\n t = old.get(s);\r\n } else {\r\n t = getSuggestion(s);\r\n }\r\n old.put(s, t);\r\n \r\n /* if we have found a suggestion, print it to the channel */\r\n if (t != null) {\r\n channel.sendPrivmsg(t);\r\n }\r\n }\r\n }",
"private void showHelp(CommandSender sender) {\n StringBuilder user = new StringBuilder();\n StringBuilder admin = new StringBuilder();\n\n for (Command cmd : commands.values()) {\n CommandInfo info = cmd.getClass().getAnnotation(CommandInfo.class);\n if(!PermHandler.hasPerm(sender, info.permission())) continue;\n\n StringBuilder buffy;\n if (info.permission().startsWith(\"dar.admin\"))\n buffy = admin;\n else \n buffy = user;\n \n buffy.append(\"\\n\")\n .append(ChatColor.RESET).append(info.usage()).append(\" \")\n .append(ChatColor.YELLOW).append(info.desc());\n }\n\n if (admin.length() == 0) {\n \tMessenger.sendMessage(sender, \"Available Commands: \"+user.toString());\n } else {\n \tMessenger.sendMessage(sender, \"User Commands: \"+user.toString());\n \tMessenger.sendMessage(sender, \"Admin Commands: \"+admin.toString());\n }\n }",
"public boolean chatEnabled();",
"public void run() {\n SimpleChatUI firstWin = new SimpleChatUI();\n windows.add(firstWin);\n firstWin.setVisible(true);\n hub = new HubSession(new LoginCredentials(new ChatKeyManager(CHAT_USER)));\n\n firstWin.setStatus(\"No active chat\");\n }",
"public void sendDirectedPresence() {\n Cursor cursor = getContentResolver().query(\n Roster.CONTENT_URI,\n new String[]{Roster.LAST_UPDATED},\n null, null, \"last_updated desc\"\n );\n if (cursor.moveToFirst()) {\n long after = cursor.getLong(\n cursor.getColumnIndex(Roster.LAST_UPDATED));\n Presence presence = new Presence(Type.available);\n presence.setTo(\"broadcaster.buddycloud.com\");\n client.sendFromAllResources(presence);\n }\n cursor.close();\n }",
"@Override\n public void run(){\n passwordChecker();\n System.out.println(\"you are connected\");\n System.out.println(\"Welcome :\" + UserName);\n\n try{\n PrintWriter toClient = new PrintWriter(socket.getOutputStream(), false);\n InputStream fromClient = socket.getInputStream();\n Scanner serverIn = new Scanner(fromClient);\n\n while(!socket.isClosed()){\n if(fromClient.available() > 0){\n if(serverIn.hasNextLine()){\n System.out.println(serverIn.nextLine());\n }\n }\n if(hasMessages){\n String nextMessage = \"\";\n synchronized(ChatMessage){\n nextMessage = ChatMessage.pop();\n hasMessages = !ChatMessage.isEmpty();\n }\n toClient.println(UserName + \" --> \" + nextMessage);\n toClient.flush();\n }\n }\n }\n catch(IOException e){\n e.printStackTrace();\n }\n\n }",
"public void start()\n\t{\n\t\tChatbotPanel myAppPanel = (ChatbotPanel) baseFrame.getContentPane();\n\t\tmyAppPanel.displayTextToUser(startMessage);\n\t\t\n\t\t\n//\t\tString result = applicationView.showChatbot(startMessage);\n\t\t\t\n//\t\twhile(!mySillyChatbot.quitChecker(result))\n//\t\t{\n//\t\t\tresult = mySillyChatbot.processText(result);\n//\t\t\tresult = applicationView.showChatbot(result);\n//\t\t}\n//\t\tquit();\n\t}",
"private void userMessageEvent(){\n message = UI.getMessage(); //Get object\r\n message.addKeyListener(new KeyListener() {\r\n @Override\r\n public void keyTyped(KeyEvent e) {}\r\n\r\n @Override\r\n public void keyPressed(KeyEvent e) {\r\n if(e.getKeyCode() == KeyEvent.VK_ENTER){ //Check if enter button is pressed\r\n if(!UI.getMessage().getText().equalsIgnoreCase(\"\")){ //If the message is not empty\r\n for (UserLogic t : threads) { //Go through users\r\n if(((String)UI.getContacts().getSelectedValue()).equals(groupChat)) { //If the chat is a group chat\r\n groupChatSend(t);\r\n }\r\n else { //Current User\r\n individualSend(t);\r\n }\r\n }\r\n UI.getMessage().setText(\"\"); //Clear message\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void keyReleased(KeyEvent e) {}\r\n });\r\n }",
"private void help(String[] command) {\n\t\tSystem.out.println(\"Sending list of available commands via Twitter.\");\n\t\tTwitterComm.sendDirectMessage(Constants.AUTH_USER, listOfCommands);\n\t}",
"public void printVictoryMessage() { //main playing method\r\n System.out.println(\"Congrats \" + name + \" you won!!!\");\r\n }"
] | [
"0.5949657",
"0.59091014",
"0.58352244",
"0.57828826",
"0.57785773",
"0.57347655",
"0.5704035",
"0.56648487",
"0.5658699",
"0.5634555",
"0.5634535",
"0.5634421",
"0.5626194",
"0.5625182",
"0.56091267",
"0.55765074",
"0.55086344",
"0.5503736",
"0.5486919",
"0.54658765",
"0.545969",
"0.5446398",
"0.54419076",
"0.5439688",
"0.5421486",
"0.5421423",
"0.5404404",
"0.5397846",
"0.539388",
"0.5375854",
"0.5365624",
"0.5351831",
"0.5346954",
"0.5345788",
"0.5325585",
"0.53189045",
"0.53132826",
"0.53085935",
"0.53047717",
"0.5301395",
"0.52997553",
"0.5295344",
"0.52942944",
"0.5283508",
"0.52814394",
"0.5280419",
"0.52789676",
"0.52772707",
"0.5276998",
"0.5270052",
"0.5267706",
"0.5266221",
"0.5259031",
"0.5251567",
"0.52502203",
"0.5246724",
"0.52449447",
"0.5213923",
"0.5205132",
"0.52013123",
"0.5201212",
"0.51986706",
"0.51806265",
"0.51784813",
"0.51754904",
"0.51663554",
"0.5164776",
"0.51592356",
"0.5157515",
"0.5145438",
"0.5143417",
"0.5138634",
"0.5134359",
"0.5134155",
"0.5134103",
"0.5129496",
"0.5127183",
"0.5112822",
"0.5098585",
"0.5094109",
"0.5091002",
"0.508586",
"0.50837576",
"0.50740725",
"0.50736326",
"0.5072732",
"0.5072135",
"0.5068035",
"0.50654805",
"0.5064713",
"0.5063524",
"0.50551087",
"0.5053637",
"0.5053545",
"0.50489223",
"0.50484824",
"0.50476456",
"0.50461626",
"0.50452507",
"0.504491"
] | 0.5780619 | 4 |
Time code is set at a given frequency | @Override
public void onLocalAudioStats(LocalAudioStats stats) {
if (timeCodeIndicator % TIME_CODE_FREQUENCY == 0) {
appointment.setTimeCode(new DatabaseUser(MainUser.getMainUser().getId()), System.currentTimeMillis());
}
timeCodeIndicator += 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFrequency(int f){\n this.frequency = f;\n }",
"public void set(int symbol, int freq);",
"public void setFrequency(java.lang.Integer value) {\n this.frequency = value;\n }",
"FrequencyRegister(String subId) {\n \n reg2 = new FrequencySubRegister(\"FREQ2\" + subId);\n reg1 = new FrequencySubRegister(\"FREQ1\" + subId);\n reg0 = new FrequencySubRegister(\"FREQ0\" + subId);\n \n setFrequency(0x75a0cb); // default frequency is 0b 01111 0101 1010 0000 1100 1011,\n }",
"public void clockChange(int time);",
"public int getTimeInFrequency(int frequency) {\n\t\t\tint[][] times = getTimeInFrequency();\n\t\t\tif (times == null || times.length == 0) return 0;\n\t\t\tfor (int[] f : times) {\n\t\t\t\tif (f[0] == frequency) return f[1];\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"bool setFrequency(double newFrequency);",
"private short[] generateSineInTimeDomain(float frequency) {\n short sample[] = new short[sample_size];\n for(int i = 0; i < sample.length; ++i) {\n float currentTime = (float)(i) / samplingRate;\n sample[i] = (short) (Short.MAX_VALUE * sin(Math.PI * 2 * frequency * currentTime));\n }\n return sample;\n }",
"float getFrequency();",
"private static double freqOfKey(int index) {\n return 440 * Math.pow(2, (double) (index - 12) / 24);\n }",
"void setTime(final int time);",
"public void setFrequency(String frequency)\n {\n this.frequency = frequency;\n }",
"public void mo133110n() {\n this.f113321t = System.currentTimeMillis();\n }",
"java.lang.String getFrequency();",
"public void newTimeKey() {\r\n\t\ttimeKeyA = System.nanoTime();\r\n\t}",
"bool setFrequency(double newFrequency)\n {\n if (newFrequency > 534 && newFrequency < 1606)\n {\n frequency = newFrequency\n return true;\n }\n return false;\n }",
"void setRecurrenceFrequency(long seconds) throws NoUserSelectedException;",
"public void clock(double period);",
"public void setFrequency(Double frequency) {\n this.frequency = frequency;\n }",
"@Override\n public void ptt(int value, int timestamp) {\n }",
"public void setTime(int t){\r\n\t\t\t\ttime = t;\r\n\t\t\t}",
"public int getFreq(){ return frequency;}",
"public void presetTime(long tick,int ento){\r\n\r\n\t}",
"public edu.pa.Rat.Builder setFrequency(int value) {\n validate(fields()[1], value);\n this.frequency = value;\n fieldSetFlags()[1] = true;\n return this; \n }",
"@Test\n public void testDFTOneFreq() {\n for (int freq = 0; freq < 1000; freq += 200) {\n SoundWave wave = new SoundWave(freq, 5, 0.5, 0.1);\n double maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq, maxFreq, 0.00001);\n }\n }",
"public void freq(int freq) {\n\t\tfrequency = freq;\n\t\ttry {\n\t\t\tserver.send(concatAll(FREQCOMMAND, intToBytes(freq)));\n\t\t} catch (IOException e) {\n\t\t\tLog.e(TAG, \"Error transmitting data to the PIC32\", e);\n\t\t}\n\n\t}",
"int getFreq();",
"public void setMeasFrequencyHz(long value) {\r\n this.measFrequencyHz = value;\r\n }",
"public void setFrequency (jkt.hms.masters.business.MasFrequency frequency) {\n\t\tthis.frequency = frequency;\n\t}",
"void note(float start, float duration, float freq){\n\t out.playNote(start,duration,freq); \n\t }",
"public float setServoPWMFrequencyHz(float freq){\r\n checkServoCommandThread();\r\n if(freq<=0) {\r\n log.log(Level.WARNING, \"freq={0} is not a valid value\", freq);\r\n return 0;\r\n }\r\n int n=Math.round(SYSCLK_MHZ*1e6f/65536f/freq); // we get about 2 here with freq=90Hz\r\n if(n==0) {\r\n log.log(Level.WARNING, \"freq={0} too high, setting max possible of 183Hz\", freq);\r\n n=1;\r\n }\r\n float freqActual=SYSCLK_MHZ*1e6f/65536/n; // n=1, we get 183Hz\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[2];\r\n cmd.bytes[0]=CMD_SET_TIMER0_RELOAD_VALUE;\r\n cmd.bytes[1]=(byte)(n-1); // now we use n-1 to give us a reload value of 0 for max freq\r\n submitCommand(cmd);\r\n pcaClockFreqMHz=SYSCLK_MHZ/n;\r\n return freqActual;\r\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void getFrequency(){\r\n try {\r\n BufferedReader reader = new BufferedReader(new FileReader(IConfig.FREQUENCY_PATH));\r\n String line;\r\n while((line = reader.readLine()) != null){\r\n frequency.put(line.split(\" \")[0], (Double.parseDouble(line.split(\" \")[1])/ IConfig.TOTAL_NEWS));\r\n }\r\n reader.close();\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }",
"static double sawtoothWave(double timeInSeconds, double frequency) {\r\n\t\treturn 0;\t\t\r\n\t}",
"public void setTime(double time) {_time = time;}",
"public int getClockFrequency() {\n return clockFrequency;\n }",
"public void increaseAttackFrequency(int f) {\r\n\t\tattackFrequency -= f;\r\n\t\tif(attackFrequency < 0) {\r\n\t\t\tattackFrequency = 0;\r\n\t\t}\r\n\t}",
"public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}",
"public int getFrequency_(){\r\n\t\treturn frequency_;\r\n\t}",
"void updateActiveTime(int T);",
"public void timer()\n{\n textSize(13);\n controlP5.getController(\"time\").setValue(runtimes);\n line(400, 748, 1192, 748);\n fill(255,0,0);\n for (int i =0; i<25; i++)\n {\n line(400+i*33, 743, 400+i*33, 753);\n text(i, 395 +i*33, 768);\n }\n if ((runtimes < 1 || runtimes > 28800) && s == true)\n {\n //origint = 0;\n runtimes = 1;\n //pausets = 0;\n runtimep = 0;\n } else if (runtimes > 0 && runtimes < 28800 && s == true)\n {\n runtimep = runtimes;\n runtimes = runtimes + speed;\n }\n timeh= runtimes/1200;\n timem= (runtimes%1200)/20;\n}",
"private void setAccelFrequency(String f, BandInfo bandInfo) {\n accManager.setFrequency(f, bandInfo);\n\n // Unsubscribe and resubscribe if necessary\n if (bandStreams.containsKey(bandInfo) && bandStreams.get(bandInfo).contains(ACCEL_REQ_EXTRA)) {\n accManager.unSubscribe(bandInfo);\n try {\n Thread.sleep(100);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n accManager.subscribe(bandInfo);\n }\n\n }",
"public void setFrequency(SummaryFrequencyCodeType frequency) {\n\t this.frequency = frequency;\n\t}",
"private static void test3() {\n for (int noteNumber = 0; noteNumber < 128; noteNumber++) {\n double frequency = 440 * Math.pow(2, (noteNumber - 69) / 12.0);\n \n boolean clipMax = false;\n int block = 0;\n \n if (frequency <= 48.503) {\n block = 0;\n }\n else if (frequency <= 97.006) {\n block = 1;\n }\n else if (frequency <= 194.013) {\n block = 2;\n }\n else if (frequency <= 388.026) {\n block = 3;\n }\n else if (frequency <= 776.053) {\n block = 4;\n }\n else if (frequency <= 1552.107) {\n block = 5;\n }\n else if (frequency <= 3104.215) {\n block = 6;\n }\n else if (frequency <= 6208.431) {\n block = 7;\n \n }\n else {\n //throw new RuntimeException(\"invalid frequency !\");\n //System.out.println(\"unsupported frequency \" + frequency + \" !\");\n //System.exit(-1);\n block = 7;\n clipMax = true;\n }\n \n double f_num = frequency * Math.pow(2, (20 - block)) / 49716;\n if (clipMax) {\n f_num = 1023;\n }\n String f_num_hex = \"0000\" + Integer.toHexString((int) f_num);\n f_num_hex = f_num_hex.substring(f_num_hex.length() - 4, f_num_hex.length());\n //System.out.println(noteNumber + \" = \" + frequency + \" ---> block: \" + block + \" f_num_hex = \" + f_num_hex);\n //System.out.println(noteNumber + \" = \" + frequency);\n \n String block_hex = \"000\" + Integer.toHexString(block);\n block_hex = block_hex.substring(block_hex.length() - 3, block_hex.length());\n\n if (noteNumber % 4 == 0) {\n System.out.print(\"\\r\\n\\t\\t\\tdb \");\n }\n System.out.print(block_hex + \"h, 000h, 0\" + f_num_hex.subSequence(2, 4) + \"h, 0\" + f_num_hex.substring(0, 2) + \"h\" + ((noteNumber % 4 != 3) ? \", \" : \"\"));\n \n }\n System.out.println(\"\");\n }",
"public void setTime(java.lang.Integer value) {\n this.time = value;\n }",
"public void setTime( int value ) {\n final int oldTime = currentTime;\n currentTime = value;\n selectedThingsChanged( oldTime );\n\n mapComponent.getOptionContainer().getTimeCode().setText( DataExporter.generateTimeCode( value ) );\n\n mapComponent.getRadiantGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, true ) ) );\n mapComponent.getDireGoldLabel().setText( Integer.toString( appState.getReplay().getTeamGold( value, false ) ) );\n\n mapComponent.getRadiantXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, true ) ) );\n mapComponent.getDireXPLabel().setText( Integer.toString( appState.getReplay().getTeamXP( value, false ) ) );\n\n }",
"public void timeLogic(int time){\n //Add logic to decide time increments at which tickets will be granted\n }",
"void playTone(){\n t = new Thread() {\n public void run(){\n isRunning = true;\n setPriority(Thread.MAX_PRIORITY);\n\n\n\n audioTrack.play();\n\n for (int i = 0; i < message.length(); i++) {\n\n ASCIIBreaker breaker = new ASCIIBreaker((int)message.charAt(i));\n\n int frequencies[] = breaker.ASCIIToFrequency();\n\n //Generate waves for all different frequencies\n for(int fre : frequencies) {\n audioTrack.write(generateSineInTimeDomain(fre),0,sample_size);\n }\n\n audioTrack.write(generateSineInTimeDomain(7000),0,sample_size);\n }\n\n audioTrack.stop();\n audioTrack.release();\n }\n };\n t.start();\n }",
"public void setClockFrequency(int clockFrequency) {\n this.clockFrequency = clockFrequency;\n this.syncUptimeThresholdCpuTicks = nanosToCpuTime(SYNC_UPTIME_THRESHOLD);\n }",
"public abstract double samplingFrequency();",
"public final void mo118712a() {\n f97549f = System.currentTimeMillis();\n }",
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}",
"void updateFrequencyCount() {\n //Always increments by 1 so there is no need for a parameter to specify a number\n this.count++;\n }",
"public Builder setFreq(int value) {\n bitField0_ |= 0x00000008;\n freq_ = value;\n onChanged();\n return this;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"private void setTime(long value) {\n \n time_ = value;\n }",
"public void setTime(long time,int ento){ \r\n\t}",
"public void setChannelRFfreq(int freq){\n this.channelRF=freq;\n }",
"java.lang.String getFrequencyOffset();",
"public void next( long time );",
"public void increaseFrequency(int stackHeight, int value);",
"@Override\n public long checkFrequencyMillis()\n {\n return TimeUnit.DAYS.toMillis( 1 );\n }",
"@Test\n public void testDFTMultipleFreq() {\n int freq1;\n int freq2;\n int freq3;\n for (int i = 1; i < 10; i += 2) {\n freq1 = i * 100;\n freq2 = i * 200;\n freq3 = i * 300;\n SoundWave wave1 = new SoundWave(freq1, 0, 0.3, 0.1);\n SoundWave wave2 = new SoundWave(freq2, 2, 0.3, 0.1);\n SoundWave wave3 = new SoundWave(freq3, 3, 0.3, 0.1);\n SoundWave wave = wave1.add(wave2.add(wave3));\n\n double maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq3, maxFreq, 0.00001);\n }\n }",
"public void setTime(){\r\n \r\n }",
"public void mo1524a(int newRate) {\n this.f3854l = (long) (1000 / newRate);\n }",
"private void m6669y() {\n long currentTimeMillis = System.currentTimeMillis();\n long j = this.f5381A;\n if (currentTimeMillis - j > 200 || j == 0) {\n this.f5381A = currentTimeMillis;\n AudioManager audioManager = this.f5405Y;\n if (audioManager != null) {\n if (this.f5414ea) {\n audioManager.setParameters(\"audio_recordaec_enable=0\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_off_selector);\n this.f5414ea = false;\n C1492b.m7433a((Context) AppFeature.m6734b(), getResources().getString(R.string.aec_close), 0);\n } else {\n audioManager.setParameters(\"audio_recordaec_enable=1\");\n this.f5410ca.setImageResource(R.drawable.btn_aec_on_selector);\n this.f5414ea = true;\n C1492b.m7433a((Context) AppFeature.m6734b(), getResources().getString(R.string.aec_open), 0);\n }\n C1387D.m6763a(this.f5414ea);\n }\n }\n }",
"static double squareWave(double timeInSeconds, double frequency) {\r\n\t\treturn 0;\r\n\t}",
"private int buildSawtoothForFrequency(int freq,int sampleRate, short[] buffer) {\n\t\t\tint cycleLength=sampleRate/freq;\n\t\t\tint startPosition=cycleLength/2;\n\t\t\t\n\t\t\tint noOfCycles=buffer.length/cycleLength;\n\t\t\tif(noOfCycles<=0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\t\n\t\t\tint i;\n\t\t\tfor(i=0;i<noOfCycles*cycleLength;++i) {\n\t\t\t\tbuffer[i]=(short)(32767*(-2.0/Math.PI)*Math.atan(1/Math.tan((Math.PI * (i+startPosition) / (sampleRate))/(1.0/freq))));\n\t\t\t}\n\t\t\t\n\t\t\treturn i;\n\t\t\t\n\t\t}",
"void setTick(int tick);",
"private static long getClockFrequency(String target) throws IOException, InterruptedException {\n return pi4jSystemInfoConnector.getClockFrequency(target);\r\n }",
"public void setFPS(double frequency) {\n\t\tif (frequency > MAX_FREQUENCY) {\n\t\t\tfrequency = MAX_FREQUENCY;\n\t\t}\n\t\tif (frequency < MIN_FREQUENCY) {\n\t\t\tfrequency = MIN_FREQUENCY;\n\t\t}\n\t\tthis.frequency = frequency;\n\t}",
"public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }",
"public void setTime(int time) {\n\t\tthis.time = time;\n\t}",
"@Override\n\tpublic Float getFrequency() {\n\t\treturn 3.8f;\n\t}",
"public void timeChanged( int newTime );",
"private HashMap<String,String> getFrequency(String code) {\n HashMap<String,String> response = new HashMap<String,String>();\n\n HashMap<String,String> kindOfFrequency = new HashMap<String,String>();\n kindOfFrequency.put(\"name\",code);\n //Get the value of the frequency according to its name\n HashMap<Integer,HashMap<String,String>> freq\n = dbController.getFrequency(kindOfFrequency);\n if (freq == null)\n return null;\n for (Map.Entry<Integer,HashMap<String,String>> objs : freq.entrySet()){\n HashMap<String,String> obj = objs.getValue();\n\n response.put(\"name\",obj.get(\"name\"));\n response.put(\"frequency\",obj.get(\"frequency\"));\n //Returns a map containing the name frequency and its value\n return response;\n }\n return null;\n }",
"public long getFreq() {\n return freq;\n }",
"public void setAudioJittcomp(int milliseconds);",
"private void setupFireRate(double fireRatePerSecond)\n\t\t{\n\t\tthis.startTime = 0;\n\t\tthis.fireDelay = 1 / fireRatePerSecond * 1000;\n\t\t}",
"public int getIndexFromTime(float time) {\n return (int) ((int)(time - this.startCode) * this.READINGSPERSECOND);\n }",
"private Integer updateFrequency(int freq, Denominator moneyType) {\r\n\t\tif(freq == 0){\r\n\t\t\tthis.denominatorFrequencyMap.put(moneyType, new DenominatorCombination(moneyType, ++freq));\r\n\t\t}else{\r\n\t\t\tDenominatorCombination value = this.denominatorFrequencyMap.get(moneyType);\r\n\t\t\tint frequency = 0;\r\n\t\t\tif(value != null){\r\n\t\t\t\tfrequency = value.getFrequency();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.denominatorFrequencyMap.put(moneyType, new DenominatorCombination(moneyType, frequency +1));\r\n\t\t\tfreq++;\r\n\t\t}\r\n\t\treturn freq;\r\n\t}",
"public double getTime(int timePt);",
"public void SetFrequency(int Frequency, String ElementID){\n\t\t_TEST stack = new _TEST();\t\t\t\t\t\t\t\t\t \t\t/* TEST */\n\t\tstack.PrintHeader(ID,Frequency+\":int, \" + ElementID+\":String\",\"\");\t/* TEST */\n\t\tGENERATOR GEN_to_setsfrequency;\t\n\t\tGEN_to_setsfrequency = new GENERATOR(0,0,null);\t\t\t/* Temporalis valtozo */\n\t\tGetElementByID(GEN_to_setsfrequency.ID);\t\t\t\t\t/* GetElemetByIDvel megkapjuk, az objektumot\t*/\t\t\n\t\tGEN_to_setsfrequency.SetSequence(Frequency); \t\t\t\t /* az generator objektum SetFrequency(...) metodusat meghivjuk */\n\t\tstack.PrintTail(ID,Frequency+\":int, \" + ElementID+\":String\",\"\");\t /* TEST */\t\n\t}",
"private float hzToPeriod(float hz ) {\n\t\tint sampling = 44100;\n\t\treturn sampling / hz;\n\t}",
"public void handleRecordTime(int type, long time) {\n if (type == 4) {\n this.mFingerDown = time;\n } else if (type == 5) {\n this.mFingerSuccess = time;\n } else if (this.mStartTime != 0) {\n if (type != 0) {\n if (type != 1) {\n if (type != 2) {\n if (type != 3) {\n if (type != 6) {\n if (type != 7) {\n if (type == 8 && this.mKeyExitAnim == 0 && this.mKeyGoingAway > 0) {\n this.mKeyExitAnim = time;\n }\n } else if (this.mKeyGoingAway == 0) {\n this.mKeyGoingAway = time;\n }\n } else if (this.mKeyguardDrawn == 0 && this.mBlockScreenOnBegin > 0) {\n this.mKeyguardDrawn = time;\n }\n } else if (this.mBlockScreenOnEnd == 0 && this.mBlockScreenOnBegin > 0) {\n this.mBlockScreenOnEnd = time;\n }\n } else if (this.mBlockScreenOnBegin == 0) {\n this.mBlockScreenOnBegin = time;\n }\n } else if (this.mSetDisplayStateEnd == 0 && this.mSetDisplayStateBegin > 0) {\n this.mSetDisplayStateEnd = time;\n }\n } else if (this.mSetDisplayStateBegin == 0) {\n this.mSetDisplayStateBegin = time;\n }\n }\n }",
"long getMessageFrequency();",
"void setBeat(int beat);",
"public int getFrequency(){\n return this.frequency;\n }",
"public void setTickFreq(long tickFreq) {\n\t\tthis.tickFreq = tickFreq;\n\t}",
"@Test\n public void testApplication() {\n assertEquals(440.0, GuitarHeroLite.frequency(24), 0.05);\n }",
"private float calculateSensorFrequency() {\n if (startTime == 0) {\n startTime = System.nanoTime();\n }\n\n long timestamp = System.nanoTime();\n\n // Find the sample period (between updates) and convert from\n // nanoseconds to seconds. Note that the sensor delivery rates can\n // individually vary by a relatively large time frame, so we use an\n // averaging technique with the number of sensor updates to\n // determine the delivery rate.\n float hz = (count++ / ((timestamp - startTime) / 1000000000.0f));\n\n return hz;\n }",
"@Override\n\tpublic void handlePitch(PitchDetectionResult pitchDetectionResult, AudioEvent audioEvent) {\n\t\tif(pitchDetectionResult.getPitch() != -1){\n\t\t\tdouble timeStamp = audioEvent.getTimeStamp();\n\t\t\tfloat pitch = pitchDetectionResult.getPitch();\n\t\t\tpitch *= 2; // Because of bit of file\n\t\t\tfloat probability = pitchDetectionResult.getProbability();\n\t\t\tdouble rms = audioEvent.getRMS() * 100;\n\t\t\tint pMinute = (int) (timeStamp/60);\n\t\t\tint pSecond = (int) (timeStamp%60);\n\t\t\tint intvNum = -1;\n\t\t\tString tInterval = new String();\n \n\t\t\tif(pitch >= 127.142 && pitch < 134.702) {\n\t\t\t\ttInterval = \"C3\";\n\t\t\t\tintvNum = 1;\n\t\t\t}\n\t\t\telse if(pitch >= 134.702 && pitch < 142.712) {\n\t\t\t\ttInterval = \"C3#\";\n\t\t\t\tintvNum = 2;\n\t\t\t}\n\t\t\telse if(pitch >= 142.712 && pitch < 151.198) {\n\t\t\t\ttInterval = \"D3\";\n\t\t\t\tintvNum=3;\n\t\t\t}\n\t\t\telse if(pitch >= 151.198 && pitch < 160.189) {\n\t\t\t\ttInterval = \"D3#\";\n\t\t\t\tintvNum=4;\n\t\t\t}\n\t\t\telse if(pitch >= 160.189 && pitch < 169.714) {\n\t\t\t\ttInterval = \"E3\";\n\t\t\t\tintvNum=5;\n\t\t\t}\n\t\t\telse if(pitch >= 169.714 && pitch < 179.806) {\n\t\t\t\ttInterval = \"F3\";\n\t\t\t\tintvNum=6;\n\t\t\t}\n\t\t\telse if(pitch >= 179.806 && pitch < 190.497) {\n\t\t\t\ttInterval = \"F3#\";\n\t\t\t\tintvNum=7;\n\t\t\t}\n\t\t\telse if(pitch >= 190.497 && pitch < 201.825) {\n\t\t\t\ttInterval = \"G3\";\n\t\t\t\tintvNum=8;\n\t\t\t}\n\t\t\telse if(pitch >= 201.825 && pitch < 213.826) {\n\t\t\t\ttInterval = \"G3#\";\n\t\t\t\tintvNum=9;\n\t\t\t}\n\t\t\telse if(pitch >= 213.826 && pitch < 226.541) {\n\t\t\t\ttInterval = \"A3\";\n\t\t\t\tintvNum=10;\n\t\t\t}\n\t\t\telse if(pitch >= 226.541 && pitch < 240.012) {\n\t\t\t\ttInterval = \"A3#\";\n\t\t\t\tintvNum=11;\n\t\t\t}\n\t\t\telse if(pitch >= 240.012 && pitch < 254.284) {\n\t\t\t\ttInterval = \"B3\";\n\t\t\t\tintvNum=12;\n\t\t\t}\n\t\t\telse if(pitch >= 254.284 && pitch < 269.404) {\n\t\t\t\ttInterval = \"C4\";\n\t\t\t\tintvNum=13;\n\t\t\t}\n\t\t\telse if(pitch >= 269.404 && pitch < 287.924) {\n\t\t\t\ttInterval = \"C4#\";\n\t\t\t\tintvNum=14;\n\t\t\t}\n\t\t\telse if(pitch >= 287.294 && pitch < 302.396) {\n\t\t\t\ttInterval = \"D4\";\n\t\t\t\tintvNum=15;\n\t\t\t}\n\t\t\telse if(pitch >= 302.396 && pitch < 320.377) {\n\t\t\t\ttInterval = \"D4#\";\n\t\t\t\tintvNum=16;\n\t\t\t}\n\t\t\telse if(pitch >= 320.377 && pitch < 339.428) {\n\t\t\t\ttInterval = \"E4\";\n\t\t\t\tintvNum=17;\n\t\t\t}\n\t\t\telse if(pitch >= 339.428 && pitch < 359.611) {\n\t\t\t\ttInterval = \"F4\";\n\t\t\t\tintvNum=18;\n\t\t\t}\n\t\t\telse if(pitch >= 359.611 && pitch < 380.995) {\n\t\t\t\ttInterval = \"F4#\";\n\t\t\t\tintvNum=19;\n\t\t\t}\n\t\t\telse if(pitch >= 380.995 && pitch < 403.65) {\n\t\t\t\ttInterval = \"G4\";\n\t\t\t\tintvNum=20;\n\t\t\t}\n\t\t\telse if(pitch >= 403.65 && pitch < 427.652) {\n\t\t\t\ttInterval = \"G4#\";\n\t\t\t\tintvNum=21;\n\t\t\t}\n\t\t\telse if(pitch >= 427.652 && pitch < 453.082) {\n\t\t\t\ttInterval = \"A4\";\n\t\t\t\tintvNum=22;\n\t\t\t}\n\t\t\telse if(pitch >= 453.082 && pitch < 480.234) {\n\t\t\t\ttInterval = \"A4#\";\n\t\t\t\tintvNum=23;\n\t\t\t}\n\t\t\telse if(pitch >= 480.234 && pitch < 508.567) {\n\t\t\t\ttInterval = \"B4\";\n\t\t\t\tintvNum=24;\n\t\t\t}\n\t\t\telse if(pitch >= 508.567 && pitch < 538.808) {\n\t\t\t\ttInterval = \"C5\";\n\t\t\t\tintvNum=25;\n\t\t\t}\n\t\t\telse if(pitch >= 538.808 && pitch < 570.847) {\n\t\t\t\ttInterval = \"C5#\";\n\t\t\t\tintvNum=26;\n\t\t\t}\n\t\t\telse if(pitch >= 570.847 && pitch < 604.792) {\n\t\t\t\ttInterval = \"D5\";\n\t\t\t\tintvNum=27;\n\t\t\t}\n\t\t\telse if(pitch >= 604.792 && pitch < 640.755) {\n\t\t\t\ttInterval = \"D5#\";\n\t\t\t\tintvNum=28;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttInterval = \"null\";\n\t\t\t\tintvNum=-1;\n\t\t\t}\n \t\n\t\t\t\n\t\t\t//Converting Ended\n\t\t\tif(pitch < 8000 && probability > 0.85) {\n\t\t\t\tString message = String.format(\"Pitch detected at %d 분 %d초, %.2f: %.2fHz ( %.2f probability, RMS: %.5f ) %s\", \n\t\t\t\t\t\tpMinute, pSecond, timeStamp, pitch,probability,rms,tInterval);\n\t\t\t\t// System.out.println(message);\n\t\t\t\tif(tried == 0) {\n\t\t\t\t\tCalculateScore.startTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.endTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.subInterval1.add(intvNum);\n\t\t\t\t\tCalculateScore.subInterval2.add(intvNum);\n\t\t\t\t\tCalculateScore.realInterval.add(null);\n\t\t\t\t\ttried++;\n\t\t\t\t}\n\t\t\t\telse if(((CalculateScore.subInterval1.get(idx)) - intvNum) == 0 || Math.abs(((CalculateScore.subInterval1.get(idx)) - intvNum)) == 1) {\n\t\t\t\t\tCalculateScore.endTime.set(idx, timeStamp);\n\t\t\t\t\tCalculateScore.subInterval2.set(idx, intvNum);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tCalculateScore.endTime.set(idx, timeStamp);\n\t\t\t\t\tCalculateScore.startTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.endTime.add(timeStamp);\n\t\t\t\t\tCalculateScore.subInterval1.add(intvNum);\n\t\t\t\t\tCalculateScore.subInterval2.add(intvNum);\n\t\t\t\t\tCalculateScore.realInterval.add(null);\n\t\t\t\t\tidx++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void perSecond() {\n\r\n\t}",
"public int getFrequency()\n\t{\n\t\treturn frequency;\n\t}",
"public void setTime(int time) {\n\n\t\tthis.time = time;\n\t}",
"public Builder setFrequency(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000400;\n frequency_ = value;\n onChanged();\n return this;\n }"
] | [
"0.6267479",
"0.59563446",
"0.58095753",
"0.5779798",
"0.57680595",
"0.5756015",
"0.5755135",
"0.5753693",
"0.57498115",
"0.5712402",
"0.56905246",
"0.56239015",
"0.56007195",
"0.55982727",
"0.5593373",
"0.55827546",
"0.5580458",
"0.5524391",
"0.5523238",
"0.5522596",
"0.54910904",
"0.54761434",
"0.5471868",
"0.5445945",
"0.54278237",
"0.54194945",
"0.5415031",
"0.54035133",
"0.537204",
"0.53422683",
"0.5337119",
"0.53182095",
"0.53182095",
"0.53182095",
"0.53125614",
"0.53023815",
"0.5302123",
"0.5269652",
"0.52651024",
"0.5264203",
"0.5247923",
"0.52467775",
"0.5245856",
"0.524386",
"0.52380615",
"0.5236191",
"0.5227539",
"0.5224119",
"0.5221504",
"0.52139544",
"0.5199631",
"0.5188068",
"0.5174349",
"0.5164437",
"0.5161758",
"0.5159362",
"0.5156655",
"0.5156655",
"0.5156655",
"0.5156655",
"0.5149102",
"0.5146866",
"0.5133571",
"0.5126714",
"0.510918",
"0.51054794",
"0.5099647",
"0.50937176",
"0.50932986",
"0.5086706",
"0.508555",
"0.50848603",
"0.508254",
"0.5081442",
"0.50801176",
"0.5079881",
"0.5070211",
"0.50672954",
"0.5067226",
"0.5067027",
"0.50652593",
"0.5061888",
"0.50575733",
"0.5046732",
"0.50463104",
"0.50444484",
"0.5043468",
"0.50335914",
"0.5027808",
"0.5013931",
"0.50136226",
"0.5010984",
"0.5008925",
"0.5007423",
"0.5002107",
"0.50003415",
"0.49941248",
"0.49910954",
"0.49877346",
"0.4987662"
] | 0.508644 | 70 |
Makes the user leave the channel, removes the handler and destroy the engine | public void destroy() {
leaveChannel();
mRtcEngine.removeHandler(handler);
if (eventHandler != null) {
mRtcEngine.removeHandler(eventHandler);
}
RtcEngine.destroy();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void channelClosed(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Client client = (Client) ctx.getChannel().getAttachment();\n Player player = client.getPlayer();\n if (player != null && !player.destroyed()) {\n player.destroy(false);\n }\n if(engine.getClients().contains(client)) {\n \tSystem.out.println(\"Remove client\");\n \tengine.removeClient(client);\n }\n }",
"@Override\n\tpublic void handlerRemoved(ChannelHandlerContext ctx) throws Exception {\n\t\tSystem.out.println(\"user leave:\" + ctx.name());\n\t}",
"@Override\n public void channelIdle(ChannelHandlerContext ctx, IdleStateEvent e) {\n Player player = (Player) ctx.getAttachment();\n if (!player.destroyed()) {\n player.destroy(false);\n }\n ctx.getChannel().close();\n }",
"private void leaveChannel() {\n // Leave the current channel\n mRtcEngine.leaveChannel();\n }",
"public void leaveChannel() {\n mRtcEngine.leaveChannel();\n appointment.removeOfCall(new DatabaseUser(MainUser.getMainUser().getId()));\n }",
"protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception {}",
"@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {\n ctx.getChannel().getRemoteAddress();\n System.out.println(ctx.getChannel().getRemoteAddress()+\" Disconnected..\");\n Client user = ServerTools.getClientByChannel(ctx.getChannel());\n if(Server.live_clients.contains(user)){\n Server.live_clients.remove(user);\n System.out.println(\"User removed\");\n }\n }",
"public native boolean leaveChannel(long nativeHandle);",
"private void onLeaveChannel(int reason) {\r\n\t\tfor (RecordingEventHandler oberserver : recordingEventHandlers) {\r\n\t\t\toberserver.onLeaveChannel(reason);\r\n\t\t}\r\n\t}",
"@SideOnly(Side.CLIENT)\n private void channelEndClient()\n {\n }",
"public void onClientDisconnected(Channel channel);",
"@Override\n\tprotected void onDestroy() {\n\t\tFilmOnService.getInstance().stopLoopKeepAlive(getApplicationContext());\n\t\tFilmOnService.release();\n\t\tChannelManagement manager = ChannelManagement.getInstance();\n\t\tmanager.deleteObserver(this);\n\t\tmanager.release();\n\t\tsuper.onDestroy();\n\t}",
"@Override\n public void onDestroy() {\n Log.d(TAG, \"Shutting Server\");\n busHandler.sendMessage(busHandler.obtainMessage(BusHandler.DISCONNECT));\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n // IF still in a call\n if (!mCallEnd) {\n leaveChannel();\n }\n // Calling static method that destroys the RtcEngine instance\n RtcEngine.destroy();\n }",
"public void cleanup()\n {\n \tsuper.cleanup();\n _channelHandler.cleanup();\n }",
"@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n log.error(\"Input Stream {} : Channel Disconnected - Stream Engine RTS process!\", name);\n channelAtomicReference.set(null);\n }",
"void destroy(HandlerContext context);",
"@Override\n public void unbindRequested(ChannelHandlerContext ctx, ChannelStateEvent e) {\n \tSystem.out.println(\"unBind Requested\");\n \t/*\n \tPlayer player = (Player) ctx.getAttachment();\n if (player != null && !player.destroyed()) {\n \tplayer.destroy(false);\n }\n ctx.getChannel().disconnect(); */\n }",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tEventManager.getInstance().removeHandlerListenner(mHandler);\n\t}",
"@Override\n\t\tpublic void onDestroy() {\n\t\t\tsuper.onDestroy();\n\t\t\tmEngin.stop_engine();\n\t\t}",
"@Override\n protected void onDestroy() {\n mManager.clearLocalServices(mChannel, null);\n super.onDestroy();\n }",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmHandler.removeMessages(0);\n\t\tmHandler.removeMessages(1);\n\t\tmHandler = null;\n\t}",
"@Override\n\tpublic void handlerRemoved(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"handlerRemoved\");\n\t\tsuper.handlerRemoved(ctx);\n\t}",
"void leave(Client client);",
"public void destroyDown(Thread thread, final AbstractChannelHandlerContext abstractChannelHandlerContext, boolean z) {\n AbstractChannelHandlerContext abstractChannelHandlerContext2 = this.head;\n while (abstractChannelHandlerContext != abstractChannelHandlerContext2) {\n EventExecutor executor = abstractChannelHandlerContext.executor();\n if (z || executor.inEventLoop(thread)) {\n synchronized (this) {\n remove0(abstractChannelHandlerContext);\n }\n callHandlerRemoved0(abstractChannelHandlerContext);\n abstractChannelHandlerContext = abstractChannelHandlerContext.prev;\n z = false;\n } else {\n executor.execute(new Runnable() {\n public void run() {\n DefaultChannelPipeline.this.destroyDown(Thread.currentThread(), abstractChannelHandlerContext, true);\n }\n });\n return;\n }\n }\n }",
"private void shutdown() {\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tgame.handleExit(this);\n\t\t\tstopped = true;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"public void connectionLost(String channelID);",
"@Override\n protected void onDestroy() {\n engine = null;\n\n super.onDestroy();\n }",
"public void endGame() {\r\n\t\tthis.gameStarted = false;\r\n\t\tthis.sendMessages = false;\r\n\t\tthis.centralServer.removeServer(this);\r\n\t}",
"public void destroyHandler() {\n CallAppAbilityConnnectionHandler callAppAbilityConnnectionHandler = this.mHandler;\n if (callAppAbilityConnnectionHandler != null) {\n callAppAbilityConnnectionHandler.removeAllEvent();\n this.mHandler = null;\n }\n }",
"public void clientWasRemoved(ChannelId channelId);",
"@Override\n protected void onDestroy() {\n handler.removeCallbacks(run);\n super.onDestroy();\n }",
"@Override\n public void onDestroy() {\n // Cleanup service before destruction\n mHandlerThread.quit();\n }",
"@GuardedBy(\"lock\")\n public void handleTermination() {\n this.channelLogger.log(ChannelLogger.ChannelLogLevel.INFO, \"Terminated\");\n this.syncContext.executeLater(new Runnable() {\n public void run() {\n InternalSubchannel.this.callback.onTerminated(InternalSubchannel.this);\n }\n });\n }",
"void stopHelloSender();",
"@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tUiUpdater.unregisterClient(handler);\r\n\t}",
"void endSinglePlayerGame(String message);",
"@Override\n public void handle(Session session, Player player, LogoutMessage message) {\n player.setLoggedIn(false);\n World.getInstance().unregisterPlayer(player);\n Server.getInstance().unregisterSession(session);\n session.close();\n }",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmLocalBcMgr.unregisterReceiver(mMessageReceiver);\n\t\t//TruMobiTimerClass.userInteractedTrigger();\n\t\n\t}",
"@Override\n public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n if (evt instanceof IdleStateEvent) {\n IdleStateEvent event = (IdleStateEvent) evt;\n if (event.state() == IdleState.ALL_IDLE) {\n Channel channel = ctx.channel();\n // Close useless channels to prevent waste of resources\n channel.close();\n }\n }\n }",
"@Override\n public void handlerRemoved(final ChannelHandlerContext ctx) {\n ctx.pipeline().remove(HttpObjectAggregator.class);\n }",
"@ForOverride\n public void onTerminated(InternalSubchannel internalSubchannel) {\n }",
"@EventHandler\n\tpublic void onPlayerLeaveServer(PlayerQuitEvent e){\n\t\tgame.removePlayerFromGame(e.getPlayer());\n\t}",
"@EventHandler\r\n\tpublic void Playerleave(PlayerQuitEvent e) {\r\n\t\tPlayer p = e.getPlayer();\r\n\t\tString pname = p.getName();\r\n\t\tp.getInventory().clear();\r\n\t\t Bukkit.broadcastMessage(\"\" + ChatColor.RED + ChatColor.WHITE + \"BMT | \" + pname + ChatColor.RESET + \"Heeft de server verlaten!\" + \"\");\r\n\t}",
"@Override\n\tpublic void exit() {\n\t\tMessenger.unregister(this, Message.KEY_DOWN, Message.Move, Message.Scale, Message.Rotate);\n\t}",
"public void shutdown() {\n if (pipelineExecutor != null) {\n ExecutorUtil.shutdownAndAwaitTermination(pipelineExecutor);\n }\n\n if (mHandler != null) {\n mHandler.removeCallbacksAndMessages(null);\n }\n }",
"@EventHandler\r\n\tpublic void onPlayerQuit(PlayerQuitEvent e){\n\t\tplugin.getShopManager().getActions().remove(e.getPlayer().getName());\r\n\t}",
"@Override\n\tprotected void onDestroy() {\n\t\tif(connection.isConnected()){\n\t\t\tconnection.disconnect();\n\t\t\tconnection=null;\n\t\t}\n\t\tmHandler.removeMessages(HandleConfig.REFRESHROOMINFO);\n\t\tmHandler.removeMessages(HandleConfig.GETROOMINFO);\n\t\tSystem.out.println(\"---onDestroy---\");\n\t\tsuper.onDestroy();\n\t}",
"void onReleased(Session session);",
"public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }",
"private void onRemoteUserLeft() {\n removeRemoteVideo();\n }",
"private void handleQuit() {\n sendMsgToClient(\"221 Closing connection\");\n quitCommandLoop = true;\n }",
"void channelInactive() throws Exception;",
"void channelInactive() throws Exception;",
"@Override\n public void onDestroy() {\n unregisterReceiver(reciever);\n mp.pause();\n mp.stop();\n mp.release();\n wifiManager.disableNetwork(wifiManager.getConnectionInfo().getNetworkId());\n wifiManager.removeNetwork(wifiManager.getConnectionInfo().getNetworkId());\n wifiManager.disconnect();\n try {\n\n serverSocket.close();\n }catch (Exception ex)\n {\n\n }\n super.onDestroy();\n\n }",
"@Override\n\t//public void onTerminate() {\n\tpublic void onDestroy() {\n\t\tapplicationContext = cordova.getActivity().getApplicationContext();\n\t\tLocalBroadcastManager.getInstance(applicationContext).unregisterReceiver(receiver);\n\t\tAcceptSDK.finish();\n\t\t//super.onTerminate();\n\t\tsuper.onDestroy();\n\t}",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t\n\t\tmHandler.removeMessages(0);\n\t\tmHandler.sendEmptyMessageDelayed(0, 100);\n\t}",
"@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\ttry {\r\n\t\t\tunregisterReceiver(newReceiver);\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tunregisterReceiver(userReceiver);\r\n\t\t} catch (Exception e) {\r\n\t\t}\r\n\t\tBmobChat.getInstance(this).stopPollService();\r\n\t}",
"public void stopEngine(){\r\n isEngineRunning = false;\r\n System.out.println(\"[i] Engine is no longer running.\");\r\n }",
"public void callHandlerRemoved0(AbstractChannelHandlerContext abstractChannelHandlerContext) {\n try {\n abstractChannelHandlerContext.handler().handlerRemoved(abstractChannelHandlerContext);\n abstractChannelHandlerContext.setRemoved();\n } catch (Throwable th) {\n StringBuilder sb = new StringBuilder();\n sb.append(abstractChannelHandlerContext.handler().getClass().getName());\n sb.append(\".handlerRemoved() has thrown an exception.\");\n fireExceptionCaught((Throwable) new ChannelPipelineException(sb.toString(), th));\n }\n }",
"void btn_Exit_actionPerformed(ActionEvent e) {\n\t\t// TODO : changer le behaviour oneshot ? le remplacer par le notre ?\n m_owner.addBehaviour( new OneShotBehaviour() {\n public void action() {\n ((TinderSupervisorAgent) myAgent).terminateHost();\n }\n } );\n }",
"private void UserDisconnectChannel(ClientData d)\n\t{\n\t\tApplicationManager.textChat.writeLog(d.ClientName + \" Quit \" + currentChannel.ChannelName);\n\t\tSendMessage(null, MessageType.channelInfo);\n\n\t}",
"private void uponInConnectionDown(InConnectionDown event, int channelId) {\n Node dead = controlView.removeHost(event.getNode());\n if(dead != null && activeView.removeNode(dead)) {\n repair(dead);\n }\n }",
"@Override\n public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {\n cause.printStackTrace();\n ChannelFuture close = ctx.close();\n close.addListener((ChannelFutureListener) future -> System.out.println(\"server channel closed!!!\"));\n }",
"private void handleMangerKickUserOut() {\n String userName = EventMessageParser.extractUserName(this.message);\n SocketConnection targetConnection = SocketManager.getInstance()\n .getUserConnection(userName);\n targetConnection.send(this.message);\n }",
"protected void end() {\n \tRobot.conveyor.stop();\n }",
"@PreDestroy\n public void shutdown() throws Exception {\n if (channel != null) {\n ChannelFuture closeFuture = channel.close();\n closeFuture.sync();\n channel = null;\n bossGroup.shutdownGracefully();\n workerGroup.shutdownGracefully();\n }\n }",
"public void stopHandler() {\n handler.removeCallbacks(runnable);\n Log.d(\"HandlerRun\", \"stopHandlerMain\");\n }",
"public void closed(LLRPChannelClosedEvent event);",
"@Override\n public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n// If the event indicates that\n// the handshake was successful removes the HttpRequestHandler from the\n// ChannelPipeline because no further HTTP messages will be received\n if (evt instanceof WebSocketServerProtocolHandler.HandshakeComplete) {\n ctx.pipeline().remove(HttpRequestHandler.class);\n //通道组的所有通道的写操作,简化了一个通道组里面所有通道的写操作,然后把当前通道也加入通道组\n group.writeAndFlush(\"clent \" + ctx.channel() + \"joined!\");\n group.add(ctx.channel());\n } else {\n super.userEventTriggered(ctx, evt);\n }\n }",
"@Override\n public void onLeftUser(WebkeyVisitor webkeyVisitor) {\n stopImageSenderStream();\n mContext.unregisterComponentCallbacks(this);\n }",
"public void close() {\r\n channel.close();\r\n }",
"protected void onReactionRemoved(String channel, String sender, String receiver, String emojiName) {}",
"void onDisconnectChannel(@NonNull Context appContext);",
"public void agentDestroyed(ShellLaunchEvent ev);",
"public boolean quit(TBGPProtocolCallback callback) {\n\t\tif(!isActive()) {\n\t\t\tString removedPlayer = players.remove(callback);\n\t\t\tlogger.info(removedPlayer + \" left the room\");\n\t\t\tbroadcast(removedPlayer + \" left room \"+this.thisRoomName, TBGPCommand.SYSMSG);\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlogger.info(\"Unable to leave room in a middle of a game\");\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmyhandler.removeCallbacks(mrunnable);\n\t\tsendWifiHandler.removeCallbacks(stopRunnable);\n\t\tmHelper.StopListen();\n\t\tif (!isSendWifiStop) {\n\t\t\tstopSendWifi();\n\t\t}\n\t\tif (!isTimerCancel) {\n\t\t\tcancleTimer();\n\t\t}\n\t\tlock.release();\n\t}",
"@Override\r\n\tprotected void onDestroy() {\n\t\tLogsUtil.d(TAG, \"onDestroy\");\r\n//\t\tbagop.close();\r\n\t\tif (OLEDOperation.enable) {\r\n\t\t\tOLEDOperation.getInstance().close();\r\n\t\t}\r\n\t\t\r\n\t\tmStep = COVER_OVER;\r\n\t\tRFIDOperation.getInstance().closeRf();\r\n\t\tmBagOp = null;\r\n\t\tif(null != mUHFOp){\r\n\t\t\tLogsUtil.d(TAG, \"--close--uhf---\");\r\n\t\t\tmUHFOp.close();\r\n\t\t}\r\n\t\tmUHFOp = null;\r\n\t\tmHandler.removeCallbacksAndMessages(null);\r\n\t\tmHandler = null;\r\n\t\tsuper.onDestroy();\r\n\t}",
"public static void destroy() {\n handler = null;\n initialized = false;\n }",
"void sessionDestroyed(SessionEvent se);",
"@Override\n public void channelInactive(ChannelHandlerContext ctx) throws Exception {\n logger.debug(\"client {} inactive\", Connection.this);\n if (!isInitialized || isClosed()) {\n errorOutAllHandler(new TransportException(address, \"Channel has been closed\"));\n // we still want to force so that the future completes\n Connection.this.closeAsync().force();\n } else {\n defunct(new TransportException(address, \"Channel has been closed\"));\n }\n }",
"public void lobbyExitButton(MouseEvent event){\n event.consume();\n Client.sendMessageToServer(new Disconnection());\n Platform.exit();\n System.exit(APP_CLOSED_BY_LOBBY_EXIT_BUTTON);\n }",
"public void handleDisconnect(){\r\n consoleAppend(this.getName() + \" disconnected.\");\r\n clientThreads.remove(getIndex(this.getName()));\r\n sendToAll(this.getName() + \" disconnected.\");\r\n sendCTToAll(new ControlToken(ControlToken.REMOVECODE, this.getName()));\r\n }",
"@Override\n\tpublic void onGuildMemberLeave(GuildMemberLeaveEvent event) {\n\t\tupdateChannel(event.getGuild());\n\t}",
"private void ChatLeave() {\n\t\t\r\n\t\tClose();\r\n\t}",
"public void destroy()\n {\n lock.lock();\n try {\n if(isDestroyed) return;\n isDestroyed = true;\n } finally {\n lock.unlock();\n }\n for(int i=0; i<numChannel; ++i) \n {\n if(pvaClientChannelArray!=null) pvaClientChannelArray[i].destroy();\n pvaClientChannelArray[i] = null;\n }\n pvaClientChannelArray = null;\n }",
"public void endSession(){\n\t\t//remove this session from the server's list of sessions\n\t\tgameServer.removeSession(this.sessionID); \t\t\t\t\n\t\tbroadCastMessage(\"@quitGame\"); //remove all clients from the session\n\t\tconnectedClientSockets.clear();\n\t}",
"public void onDestroy() {\n super.onDestroy();\n Object object = this.mLock;\n synchronized (object) {\n Iterator<MediaSession2> iterator = this.getSessions().iterator();\n do {\n if (!iterator.hasNext()) {\n this.mSessions.clear();\n this.mNotifications.clear();\n // MONITOREXIT [2, 3, 4] lbl9 : MonitorExitStatement: MONITOREXIT : var1_1\n this.mStub.close();\n return;\n }\n this.removeSession(iterator.next());\n } while (true);\n }\n }",
"@Override\r\n protected void onDestroy() {\r\n super.onDestroy();\r\n socketManager.disconnectSocket();\r\n }",
"@Override\n public void exit(EventObject event)\n {\n shutdown();\n }",
"public void leaveBridge() {\n lock.unlock();\n }",
"@Override\r\n\tpublic void leave() {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void onEmsgClosedListener() {\n\t\t\t\t\n\t\t\t}",
"public void handlerRemoved(CEventListener aoHandler) {\n\t}",
"public void onDestroy() {\n \twifiLock.release();\n \tstopForeground(true);\n \tradio.stop();\n \tradio.release();\n \tradio = null;\n }",
"private void onModuleDestroy() {\n //!\n //! Handle the destroy notification.\n //!\n mLifecycle.onPause();\n mLifecycle.onDispose();\n\n //!\n //! Unload resource module.\n //!\n mResources.onModuleDestroy();\n mResources.unloadAll();\n\n //!\n //! Unload input module.\n //!\n mInputThread.cancel();\n mInput.onModuleDestroy();\n\n //!\n //! Unload audio module.\n //!\n mAudioThread.cancel();\n mAudio.onModuleDestroy();\n\n //!\n //! Unload render module.\n //!\n //! NOTE: Update the render to destroy all render component(s)\n //!\n mRender.onModuleDestroy();\n\n //!\n //! Unload display module.\n //!\n mDisplay.onModuleDestroy();\n }",
"public void destroyUp(final AbstractChannelHandlerContext abstractChannelHandlerContext, boolean z) {\n Thread currentThread = Thread.currentThread();\n AbstractChannelHandlerContext abstractChannelHandlerContext2 = this.tail;\n while (abstractChannelHandlerContext != abstractChannelHandlerContext2) {\n EventExecutor executor = abstractChannelHandlerContext.executor();\n if (z || executor.inEventLoop(currentThread)) {\n abstractChannelHandlerContext = abstractChannelHandlerContext.next;\n z = false;\n } else {\n executor.execute(new Runnable() {\n public void run() {\n DefaultChannelPipeline.this.destroyUp(abstractChannelHandlerContext, true);\n }\n });\n return;\n }\n }\n destroyDown(currentThread, abstractChannelHandlerContext2.prev, z);\n }",
"@Override\n public void onDestroy() {\n EventBusWraper.getInstance().unregister(mContext);\n super.onDestroy();\n // unRegister();\n }",
"@Override\n public void Destroy() {\n mLoginHandler = null;\n }",
"private void onModuleDestroy() {\n //!\n //! Handle the destroy notification.\n //!\n mLifecycle.onPause();\n mLifecycle.onDispose();\n\n //!\n //! Unload resource module.\n //!\n mResources.onModuleDestroy();\n\n mResources.unloadAll();\n\n //!\n //! Unload input module.\n //!\n mInputThread.cancel();\n mInput.onModuleDestroy();\n\n //!\n //! Unload audio module.\n //!\n mAudioThread.cancel();\n mAudio.onModuleDestroy();\n\n //!\n //! Unload render module.\n //!\n //! NOTE: Update the render to destroy all render component(s)\n //!\n mRender.onModuleUpdate();\n mRender.onModuleDestroy();\n\n //!\n //! Unload display module.\n //!\n mDisplay.onModuleDestroy();\n }"
] | [
"0.7277386",
"0.71594",
"0.7097614",
"0.70472103",
"0.6898038",
"0.62847596",
"0.6275876",
"0.6253719",
"0.6229871",
"0.62269354",
"0.6190295",
"0.6170078",
"0.6168058",
"0.61655134",
"0.6155769",
"0.6126978",
"0.6099738",
"0.60907507",
"0.60793525",
"0.6051419",
"0.6026644",
"0.59683836",
"0.596064",
"0.58959395",
"0.58854747",
"0.58295125",
"0.58286554",
"0.5817361",
"0.58153147",
"0.5804065",
"0.5801663",
"0.5800212",
"0.5791844",
"0.5790188",
"0.5738793",
"0.5734472",
"0.57339984",
"0.5723101",
"0.5700482",
"0.56885827",
"0.5687901",
"0.5686563",
"0.56853867",
"0.567079",
"0.5665998",
"0.5655694",
"0.5652749",
"0.56458426",
"0.56292546",
"0.5624747",
"0.56158733",
"0.5608556",
"0.5606145",
"0.5606145",
"0.56004184",
"0.56000084",
"0.5599413",
"0.55935484",
"0.5592205",
"0.55860955",
"0.5583382",
"0.5575729",
"0.5567833",
"0.5564989",
"0.5557819",
"0.55569035",
"0.5550471",
"0.5549132",
"0.5544037",
"0.554265",
"0.5542548",
"0.55333114",
"0.5532593",
"0.5531023",
"0.55286604",
"0.55269355",
"0.55200315",
"0.5512198",
"0.5494054",
"0.54906106",
"0.5485704",
"0.5485105",
"0.5476779",
"0.54747003",
"0.5467681",
"0.5467451",
"0.5465796",
"0.5461419",
"0.54587346",
"0.5453744",
"0.54496735",
"0.544491",
"0.5439419",
"0.5436609",
"0.5426478",
"0.54256505",
"0.54253256",
"0.54225314",
"0.5416606",
"0.54142165"
] | 0.7462691 | 0 |
======================== Video part ======================// Lets the user decide wherever they want to share their video or not. If they don't, they can still talk using audio. | public int shareLocalVideo() {
videoEnabled = !videoEnabled;
return mRtcEngine.enableLocalVideo(videoEnabled);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isVideo()\n {return false;\n }",
"boolean hasVideo();",
"private void toggleScreenShare(View v) {\n\n if(((ToggleButton)v).isChecked()){\n initRecorder();\n recordScreen();\n }\n else\n {\n mediaRecorder.stop();\n mediaRecorder.reset();\n stopRecordScreen();\n\n //play in videoView\n //videoView.setVisibility(View.VISIBLE);\n //videoView.setVideoURI(Uri.parse(videoUri));\n //videoView.start();\n\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\" Location of video : \");\n builder.setMessage(videoUri);\n builder.show();\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent i = new Intent(MainActivity.this, PlayVideo.class);\n i.putExtra(\"KEY\", videoUri);\n //Toast.makeText(this, videoUri, Toast.LENGTH_SHORT).show();\n startActivity(i);\n }\n }, 2000);\n Toast.makeText(this, \"Loading video...\", Toast.LENGTH_SHORT).show();\n\n\n\n }\n }",
"public boolean videoEnabled();",
"public void setVideo(String video) {\n this.video = video;\n }",
"public boolean isVideoSharingSupported() {\n\t\tLogger.i(TAG, \"isVideoSharingSupported value \" + videoSharing);\n\t\treturn videoSharing;\n\t}",
"public void playVideo() {\n }",
"private void videoVisible() {\n }",
"public void shareVideo(View view) {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);\n } else {\n // Permission has already been granted\n Intent intent2 = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent2.putExtra(\"sender\", \"share_pic\");\n\n startActivityForResult(intent2, ACTIVITY_SELECT_VIDEO);\n }\n }",
"boolean isCollected(User user, String video_id);",
"boolean isLocalVideoAllowed(Call call);",
"@SuppressLint(\"NewApi\") @Override\n\t\tpublic void onPrepared(MediaPlayer mp) {\n\t\t\tplayer = mp;\n\t\t\tpb.setVisibility(View.GONE);\n\t\t\t//img_volumvideo.setVisibility(View.VISIBLE);\n\t\t\t mp.setVideoScalingMode(MediaPlayer.VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING);\n\t\t\t\tStringBuffer sbf = new StringBuffer();\n\t\t\t\tsbf.append(Constant.AppVideoApi);\n\t\t\t\tsbf.append(\"offer_id=\"\n\t\t\t\t\t\t+AppofferUtil.getIntsance().getList().get(0).getOffer_id());\n\t\t\t\tsbf.append(\"&dev_id=\" + AppofferUtil.getIntsance().getList().get(0).getDev_id());\n\t\t\t\tsbf.append(\"&app_id=\" + AppofferUtil.getIntsance().getList().get(0).getApp_id());\n\t\t\t\tsbf.append(\"&is_integral=\" + AppofferUtil.getIntsance().getList().get(0).getIs_integral());\n\t\t\t\tsbf.append(\"&ad_type=\" + AppofferUtil.getIntsance().getList().get(0).getApp_type());\n\t\t\t\tsbf.append(\"&android_id=\" + Constant.getAndroidID(AlertVideoActivity.this));\n\t\t\t\tTapfunsCommandExecute.getInstance().executeGet(AlertVideoActivity.this, sbf.toString(),\n\t\t\t\t\t\tnew RequestCallBack() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void getRequestResult(String command) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tTapfunsLogUtil.logI(command);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t mp.setOnInfoListener(new MediaPlayer.OnInfoListener() {\n\t\t\t\t\t @Override\n\t\t\t\t\t public boolean onInfo(MediaPlayer mp, int what, int extra) {\n\n\t\t\t\t\t if (what == MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START) {\n\t\t\t\t\t // video started\n\t\t\t\t\t videoView.setBackgroundColor(Color.TRANSPARENT);\n\t\t\t\t\t return true;\n\t\t\t\t\t }\n\t\t\t\t\t return false;\n\t\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t mp.setOnVideoSizeChangedListener(new MediaPlayer.OnVideoSizeChangedListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onVideoSizeChanged(MediaPlayer mp, int width, int height) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t // video started\n\t\t\t\t\t videoView.setBackgroundColor(Color.TRANSPARENT);\n\t\t\t\t\t}\n\t\t\t\t}); \n\t\t}",
"private void onPlayVideoClick() {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setDataAndType(Uri.parse(\"file://\" + mediaPath), \"video/mp4\");\n startActivity(intent);\n }",
"public boolean videoSupported();",
"public abstract void share(String content, Uri imageOrVideo);",
"public boolean canShare();",
"public void playVideoSound() {\n int mode = this.mAudioManager.getRingerMode();\n if (Keys.isShutterSoundOn(this.mAppController.getSettingsManager()) && mode == 2 && this.mSoundPlayer != null) {\n this.mSoundPlayer.play(R.raw.video_record, 0.6f);\n }\n }",
"public boolean hasVideo() {\n\t\treturn this.recordingProperties.hasVideo();\n\t}",
"boolean isLocalVideoStreaming(Call call);",
"public void recordVideo() {\n\n }",
"@Override\n public void videoStarted() {\n super.videoStarted();\n img_playback.setImageResource(R.drawable.ic_pause);\n if (isMuted) {\n muteVideo();\n img_vol.setImageResource(R.drawable.ic_mute);\n } else {\n unmuteVideo();\n img_vol.setImageResource(R.drawable.ic_unmute);\n }\n }",
"@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}",
"@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tSystem.out.println(\"播放网络上的音频\");\n\t\t\ttry {\n\n\t\t\t\tString path = catalogName + File.separator + videoName;\n\t\t\t\t// String path =\n\t\t\t\t// \"http://192.168.253.1:8080/httpGetVideo/5a3bbe53835ffd43/LoveStory.mp4\";\n\t\t\t\tConnectionDetector cd = new ConnectionDetector(\n\t\t\t\t\t\tHistoryVideoBroadcastActivity.this);\n\t\t\t\tLog.e(TAG, \"11111111111\");\n\t\t\t\tif (cd.isConnectingToInternet()) {\n\t\t\t\t\tMediaController mediaController = new MediaController(\n\t\t\t\t\t\t\tHistoryVideoBroadcastActivity.this); // 通过videoView提供的uri函数借口播放服务器视频\n\t\t\t\t\tmediaController.setAnchorView(videoView);\n\t\t\t\t\tUri video = Uri.parse(path);\n\t\t\t\t\tvideoView.setMediaController(mediaController);\n\t\t\t\t\tvideoView.setVideoURI(video);\n\t\t\t\t\tvideoView.start();\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(HistoryVideoBroadcastActivity.this,\n\t\t\t\t\t\t\t\"网络连接没有开启,请设置网络连接\", 2000).show();\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tToast.makeText(HistoryVideoBroadcastActivity.this,\n\t\t\t\t\t\t\"Error connecting\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}",
"public void playVideo() {\n \t\t try {\n \t\t\t videoView.setOnPreparedListener(new OnPreparedListener() {\n \n \t\t\t\t @Override\n \t\t\t\t public void onPrepared(MediaPlayer mp) {\n \t\t\t\t\t mp.setLooping(true); \n \t\t\t\t }\n \t\t\t });\n \t\t\t videoView.setVideoPath(SAVE_PATH);\n \t\t\t videoView.start();\n \t\t } catch (Exception e) {\n \t\t\t Log.e(\"Video\", \"error: \" + e.getMessage(), e);\n \t\t }\n \t }",
"@Override\n public void onVideoStarted() {\n }",
"public void onVideoStarted () {}",
"public String getVideo() {\n return video;\n }",
"public void enableVideoMulticast(boolean yesno);",
"public abstract void videoMessage(Message m);",
"public Video suggestVideo(User theUser) throws NullPointerException;",
"com.google.ads.googleads.v6.resources.Video getVideo();",
"public abstract void addReceivedVideo(Video video) throws UnsuportedOperationException;",
"public abstract void addReceivedVideo(Video video) throws UnsuportedOperationException;",
"@Override\n public void onClick(View v) {\n Intent it = new Intent(Intent.ACTION_VIEW);\n Uri uri = Uri.parse(\"http://\"+ PostUrl.Media+\":8080/upload/\"+item.getMediaPath().get(0).split(\"\\\\.\")[0]+\".mp4\");\n it.setDataAndType(uri, \"video/mp4\");\n context.startActivity(it);\n\n }",
"public abstract void addSentVideo(Video video) throws UnsuportedOperationException;",
"public abstract void addSentVideo(Video video) throws UnsuportedOperationException;",
"protected void startVideoCall() {\n if (!EMClient.getInstance().isConnected())\n Toast.makeText(ChatDetailsActivity.this, R.string.not_connect_to_server, Toast.LENGTH_SHORT).show();\n else {\n startActivity(new Intent(ChatDetailsActivity.this, VideoCallActivity.class).putExtra(\"username\", mBean.getMobile())\n .putExtra(\"isComingCall\", false).putExtra(\"nickname\", mBean.getUser_nickname()));\n // videoCallBtn.setEnabled(false);\n// inputMenu.hideExtendMenuContainer();\n }\n }",
"public boolean videoDisplayEnabled();",
"public void setVid(java.lang.String param) {\r\n localVidTracker = param != null;\r\n\r\n this.localVid = param;\r\n }",
"private void setupPlayer() {\n\n\n\n Video video = createVideoFromUrl(\"https://sonyhdslive-lh.akamaihd.net/i/LIVELINEARCHANNELWAHSD_2@324771/index_100_av-p.m3u8?sd=10&rebase=on&id=AgC2SfL6YBG2JpMHMVl8BkTC0SpVbBy%2frYkaeUHMRu8inYQ3DHLx4I+pRLNhOPyxeLBTSrs2hL4lZw%3d%3d&hdntl=exp=1496471827~acl=%2fi%2f*~data=hdntl~hmac=808df26a60cb28eff4d28a242510d2dba361d9d8658f1e3bbe3090f85e633632\");\n brightcoveVideoView.add(video);\n brightcoveVideoView.start();\n// ImaManager.setupIma(brightcoveVideoView, googleAds);\n\n }",
"@Override\n public String getDescription() {\n return \"Just Videos\";\n }",
"private static void handleVideoSharingInvitation(Context context,\n Intent invitation) {\n }",
"private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }",
"@Override\n public void run() {\n if (playAfterConnect!=null){\n if (playAfterConnect.getMimeType().equalsIgnoreCase(\"application/x-mpegURL\") ||\n playAfterConnect.getMimeType().equalsIgnoreCase(\"application/vnd.apple.mpegURL\")) {\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n if(playAfterConnect.isproxy() ==false)\n playAfterConnect.setUrl(Utils.getRedirect(playAfterConnect.getUrl()));\n sendCastMessage(playAfterConnect);\n }\n });\n thread.start();\n } else {\n if (mediaRouteMenuItem != null && mediaRouteMenuItem.isVisible() == true) {\n // logger.debug(\"Choosed item with index: \" + selectedVideo);\n if (ChromecastApp.Instance().mCastContext.getCastState() == CastState.CONNECTED) {\n // logger.debug(\"Cast video\");\n if (playAfterConnect.getUrl().startsWith(\"http\")) {\n Cast(playAfterConnect.getUrl().toString(), playAfterConnect.getUrl(), playAfterConnect.getMimeType());\n } else if (playAfterConnect.getUrl().startsWith(\"file\")) {\n LocalCast(playAfterConnect);\n }\n } else {\n\n ChromecastApp.currentVideo = playAfterConnect;\n ActionProvider provider = MenuItemCompat.getActionProvider(mediaRouteMenuItem);\n provider.onPerformDefaultAction();\n // Toast.makeText(WebViewActivity.this,getString(R.string.not_connected),Toast.LENGTH_LONG).show();\n }\n } else {\n if (!((Activity) MainActivity.this).isFinishing()) {\n Toast.makeText(MainActivity.this, getString(R.string.not_device), Toast.LENGTH_LONG).show();\n }\n }\n }\n\n }\n }",
"default void uploadVideo() {\r\n\t\tSystem.out.println(\"upload the video\");\r\n\t}",
"private Intent Shareintent(){\n Intent Shareintent = new Intent(Intent.ACTION_SEND);\n Shareintent.setType(\"text/html\");\n Shareintent.putExtra(Intent.EXTRA_SUBJECT, \"SUBJECT\");\n Shareintent.putExtra(Intent.EXTRA_TEXT, \"http://www.habeshastudent.com/m/video.html\");\n return Shareintent;\n\n\n }",
"public boolean addVideo(Video newVideo)throws NullPointerException;",
"private void sendCastMessage(Video video)\n {\n Message msg = mHandler.obtainMessage();\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"video\",video);\n msg.setData(bundle);\n msg.what = 2;\n mHandler.sendMessage(msg);\n }",
"@Override\n public void onServerStart(String videoStreamUrl)\n {\n\n\n\n Log.d(\"Activity\",\"URL: \"+ videoStreamUrl);\n\n\n video = (VideoView)findViewById(R.id.video);\n\n Uri uri = Uri.parse(videoStreamUrl);\n video.setVideoURI(uri);\n video.start();\n\n\n\n }",
"public boolean isVideo() {\n\t\t\treturn (this == INTERFRAME || this == KEY_FRAME || this==DISPOSABLE_INTERFRAME);\n\t\t}",
"boolean isPlayable();",
"private void playVideo(float volume) {\n }",
"@Override\r\n public void onClick(View v) {\n String path = \"http://techslides.com/demos/sample-videos/small.mp4\";\r\n// Uri uri=Uri.parse(path);\r\n// videoView.setVideoURI(uri);\r\n //MediaController mc = new MediaController(TransformDetailActivity.this);\r\n\r\n //videoView.start();\r\n// videoView.setOnTouchListener(new View.OnTouchListener() {\r\n// @Override\r\n// public boolean onTouch(View v, MotionEvent event) {\r\n// System.out.print(videoView.isPlaying());\r\n// if(videoView.isPlaying()) {\r\n// stopPosition[0] = videoView.getCurrentPosition();\r\n// videoView.pause();\r\n// } else {\r\n// videoView.seekTo(stopPosition[0]);\r\n// videoView.start();\r\n// }\r\n// return false;\r\n// }\r\n// });\r\n// String path = \"android.resource://\" + getPackageName() + \"/\" + R.raw.welcome;\r\n// Uri videoUri = Uri.parse(path);\r\n// Intent intent = new Intent(Intent.ACTION_VIEW, videoUri);\r\n// intent.setDataAndType(videoUri, \"video/*\");\r\n// startActivity(intent);\r\n\r\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(path));\r\n intent.setDataAndType(Uri.parse(path), \"video/mp4\");\r\n startActivity(intent);\r\n }",
"public void verVideo(View v) {\n ViewVideo.setVideoURI(Uri.parse(getExternalFilesDir(null) + \"/\" + txtNombreArchivo.getText().toString()));\n /*Ejecutamos el video*/\n ViewVideo.start();\n }",
"public static String getVideoSource(){\r\n\r\n return pref.getString(\"VideoMode\", \"MP4\");\r\n }",
"public interface VideoInterface {\n\n public void startVideo();\n\n public void reStartVideo();\n\n public void pouseVideo();\n\n public void resumeVideo();\n\n public void destoryVideo();\n}",
"Builder addVideo(String value);",
"@Override\n public void onClick(View v) {\n playVideo();\n }",
"@Override\n\tpublic Boolean esVideo() {\n\t\tBoolean bool = this instanceof Video; \n\t\treturn bool;\n\t}",
"@Override\n public void onClick(View v) {\n View viewVideo = LayoutInflater.from(mContext).inflate(R.layout.dialog_video,null);\n AlertDialog.Builder layoutDialogVideo = new AlertDialog.Builder(mContext);\n\n VideoView vvVideoView = viewVideo.findViewById(R.id.vv_dialogVideo_video);\n vvVideoView.setVideoPath(item.getVideo());\n vvVideoView.seekTo(0);\n vvVideoView.start();\n MediaController mediaController = new MediaController(mContext);\n vvVideoView.setMediaController(mediaController);\n mediaController.setMediaPlayer(vvVideoView);\n\n layoutDialogVideo.setView(viewVideo);\n Dialog dialogVideo = layoutDialogVideo.create();\n\n dialogVideo.show();\n }",
"public MentorConnectRequestCompose addVideo()\n\t{\n\t\tmentorConnectRequestObjects.videoButton.click();\n\t\tmentorConnectRequestObjects.videoURLField.sendKeys(mentorConnectRequestObjects.videoURL);\n\t\tmentorConnectRequestObjects.postVideoButton.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}",
"@Override\n\t\tpublic void onClick(View v) {\n\n\t\t\tif (memreas_event_details_video_view.isPlaying()) {\n\t\t\t\tmemreas_event_details_video_view.pause();\n\t\t\t\tmemreas_event_details_video_view.setVisibility(View.GONE);\n\t\t\t\tmemreas_event_details_pager_image_view\n\t\t\t\t\t\t.setVisibility(View.VISIBLE);\n\t\t\t\tmemreas_event_details_pager_play_video_icon\n\t\t\t\t\t\t.setVisibility(View.VISIBLE);\n\t\t\t} else {\n\t\t\t\tmemreas_event_details_pager_framelayout.setBackgroundColor(Color.TRANSPARENT);\n\t\t\t\tmemreas_event_details_pager_image_view.setVisibility(View.GONE);\n\t\t\t\tmemreas_event_details_pager_play_video_icon\n\t\t\t\t\t\t.setVisibility(View.GONE);\n\t\t\t\t// mProgressDialog.setAndShow(\"preparing media...\");\n\t\t\t\tmemreas_event_details_video_view\n\t\t\t\t\t\t.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);\n\t\t\t\tmemreas_event_details_video_view.setVisibility(View.VISIBLE);\n\t\t\t\tmemreas_event_details_video_view.requestFocus();\n\t\t\t\tif (mediaController == null) {\n\t\t\t\t\tmediaController = new MediaController(context);\n\t\t\t\t}\n\t\t\t\tmemreas_event_details_video_view.setVideoURI(Uri\n\t\t\t\t\t\t.parse(media_url));\n\t\t\t\tmediaController.setAnchorView(memreas_event_details_video_view);\n\t\t\t\tmediaController\n\t\t\t\t\t\t.setMediaPlayer(memreas_event_details_video_view);\n\t\t\t\tmemreas_event_details_video_view\n\t\t\t\t\t\t.setMediaController(mediaController);\n\t\t\t\tmediaController.setEnabled(true);\n\t\t\t\tsetListeners();\n\t\t\t\tmemreas_event_details_video_view.requestLayout();\n\t\t\t\t// mProgressDialog.dismiss();\n\t\t\t}\n\t\t}",
"void setVideoUri(@Nullable Uri uri);",
"public interface IVideoController {\n\n void setAnchorView(View view);\n\n void setEnabled(boolean enabled);\n\n void setMediaPlayer(MediaController.MediaPlayerControl player);\n\n void showOnce(View view);\n\n void setVisibility(int visibility);\n\n boolean isVisible();\n\n}",
"private File getOutputMediaFile(int type) {\n File mediaStorageDir = new File(Environment.getExternalStorageDirectory(), \"NDS videos\");\n\n\n // Create the storage directory(MyCameraVideo) if it does not exist\n if (!mediaStorageDir.exists()) {\n\n if (!mediaStorageDir.mkdirs()) {\n\n //output.setText(\"Failed to create directory MyCameraVideo.\");\n\n Toast.makeText(Suggestion_box_suggest.this, \"Failed to create directory Boo_videos.\",\n Toast.LENGTH_LONG).show();\n\n Log.d(\"MyCameraVideo\", \"Failed to create directory Boo_videos.\");\n return null;\n }\n }\n\n// For unique file name appending current timeStamp with file name\n java.util.Date date = new java.util.Date();\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\")\n .format(date.getTime());\n\n File mediaFile;\n\n if (type == MEDIA_TYPE_VIDEO) {\n\n // For unique video file name appending current timeStamp with file name\n String filename_video = \"NDS_video_\" + timeStamp + \".mp4\";\n videoFileName = filename_video;\n mediaFile = new File(mediaStorageDir.getPath() + File.separator +\n filename_video);\n final String path_0 = Environment.getExternalStorageDirectory() + File.separator\n + \"NDS videos/\" + filename_video;\n String filename_to_up = path_0.substring(path_0.lastIndexOf(\"/\") + 1);\n //addCaptionToSuggestionMedia(path_0, filename_to_up, \"video\", MYRemoteId, (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString());\n //addCaptionToSuggestionMedia(path_0, filename_to_up, \"audio\", MYRemoteId, (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString());\n path_000 = path_0;\n filename_000 = filename_to_up;\n myRemoteId_000 = MYRemoteId;\n SuggestionBoxId_000 = (editText.getTag().toString().isEmpty()) ? \"0\" : editText.getTag().toString();\n//-------0--------------------------the video send--\n mediaType_000 = \"video\";\n image_tag.setVisibility(View.GONE);\n video_tag.setVisibility(View.VISIBLE);\n audio_tag.setVisibility(View.GONE);\n textSuggestion.setVisibility(View.GONE);\n video_tag.setTag(filename_to_up);\n String videoFile = path_0;\n Bitmap thumbnail = ThumbnailUtils.createVideoThumbnail(videoFile,\n MediaStore.Images.Thumbnails.FULL_SCREEN_KIND);\n//BitmapDrawable bitmapDrawable = new BitmapDrawable(thumbnail);\n // edixt_image_video.setImageBitmap(thumbnail);\n edixt_image_video.setVideoURI(Uri.parse(path_0));\n\n edixt_image_video.seekTo(100);\n///-------------\n edixt_image_video.setTag(path_0);\n///-------------\n edixt_image_video.setTag(path_0);\n//----\n edixt_image_video.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n }\n });\n edixt_image_video.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(path_0));\n intent.setDataAndType(Uri.parse(path_000), \"video/mp4\");\n startActivity(intent);\n\n return false;\n }\n });\n\n//------------0000000000000000000000000000000000000000000-dufhhhhhhhhhhhhhhhhhhhhh\n\n //-------------------\n\n } else {\n return null;\n }\n\n return mediaFile;\n }",
"public void gotoVideoLandingPage(){\r\n\t\twebAppDriver.get(baseUrl+\"/videos.aspx\");\r\n\t\t//need to add verification text\r\n\t}",
"public Single<Uri> video(@NonNull FragmentActivity activity) {\n return requestImage(\n activity,\n false,\n MimeType.VIDEO)\n .map(uris -> uris.get(0)\n );\n }",
"default void onVideoStarted() {\n }",
"@Override\n\tvoid postarVideo() {\n\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.pro);\n Button info=(Button)findViewById(R.id.info);\n Button back=(Button) findViewById(R.id.back);\n Button power=(Button) findViewById(R.id.power);\n Button home=(Button) findViewById(R.id.home);\n Button next=(Button) findViewById(R.id.next);\n // pro=(VideoView)findViewById(R.id.videoView1);\n \n MediaController mc = new MediaController(this);\n \n VideoView vv = (VideoView)this.findViewById(R.id.video);\n vv.setMediaController(mc);\n String fileName = \"android.resource://\" + getPackageName() + \"/\" + R.raw.backhand_male;\n vv.getDuration();\n vv.setVideoURI(Uri.parse(fileName));\n \n vv.start();\n vv.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n \n public void onCompletion(MediaPlayer mp) {\n // not playVideo\n // playVideo();\n\n \tIntent intent = new Intent(Probackhandmale.this, Probackhandmale.class);\n \t startActivity(intent);\n \t finish();\n }\n });\n \n power.setOnClickListener(new View.OnClickListener() {\n\t public void onClick(View view) {\n\t \t power(); \n\t \t \n\t \t \t \t \n\t\t \t }\n\t\t });\n \n back.setOnClickListener(new View.OnClickListener() {\n\t public void onClick(View view) {\n\t \t back(); \n\t \t \n\t \t \t \t \n\t\t \t }\n\t\t });\n next.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n \t \n \t Context context = getApplicationContext();\n \tCharSequence text = \"Please press back then proceed to record a video.\";\n \tint duration = Toast.LENGTH_SHORT;\n \tToast toast = Toast.makeText(context, text, duration);\n \ttoast.show();\n \t \t \t \n\t \t }\n\t });\n info.setOnClickListener(new View.OnClickListener() {\n\t public void onClick(View view) {\n\t \tinfo(); \n\t \t \n\t \t \t \t \n\t\t \t }\n\t\t });\n home.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n \t home(); \n \t \n \t \t \t \n \t }\n });\n \n \t }",
"public void showRewardedVideo() {\n\t\tactivity.runOnUiThread(new Runnable()\n\t\t{\n\t\t\t@Override public void run()\n\t\t\t{\n\t\t\t\tif (rewardedVideo == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\trewardedVideo.show();\n\t\t\t}\n\t\t});\n\t}",
"public interface VideoContract {\n interface P extends VideoControl{\n void onCreate(Context context);\n void setBuilder(VideoBuilder builder);\n void onPause();\n void onResume();\n void onDestroy();\n void playOrPause();\n void onViewDownTouch();\n void stopHideControlRunnable();\n void startHideControlRunnable();\n }\n interface V extends VideoControl{\n void showNotFoundVideo();\n //是否显示播放的按钮,则是在暂停的时候显示\n void setIsShowPlayIcon(boolean isShow);\n void setTimeTotal(int seconds);\n void setBufferingUpdatePosition(int seconds);\n void setTimeCurrent(int seconds);\n void playCompleteCleanFlags();\n void setTitle(String title);\n void showControlView();\n void hideControlView();\n }\n interface VideoControl {\n void seekToSecond(int seconds);\n void pauseVideo();\n void resumeVideo();\n void stopVideo();\n void playVideo(String url);\n }\n}",
"public boolean videoPreviewEnabled();",
"@Override\n public void onClick(View v) {\n if (v == btnVoice) {\n isMute = !isMute;\n // Handle clicks for btnVoice\n updataVoice(currenVoice, isMute);\n } else if (v == btnSwitchPlayer) {\n showSwitchPlayerDialog();//调用系统播放器\n // Handle clicks for btnSwitchPlayer\n } else if (v == btnExit) {\n finish();\n // Handle clicks for btnExit\n } else if (v == btnVideoPre) {\n playPreVideo();\n // Handle clicks for btnVideoPre\n } else if (v == btnVideoStartPause) {\n StartAndPause();\n // Handle clicks for btnVideoStartPause\n } else if (v == btnVideoNext) {\n // Handle clicks for btnVideoNext\n playNextVideo();\n } else if (v == btnVideoSwitchSrceen) {\n // Handle clicks for btnVideoSwitchSrceen\n setFullScreenAndDefault();//设置播放屏幕大小\n }\n //先移除旧的消息,再设置新的消息,这样就保证了在点击的是时候,控制面板不会自己动隐藏\n handler.removeMessages(HIDE_MEDIA_CONTORLLER);\n handler.sendEmptyMessageDelayed(HIDE_MEDIA_CONTORLLER, 4000);\n }",
"@Override\n public void onSubmit(EasyVideoPlayer player, Uri source) {\n }",
"private boolean m996b(Uri uri) {\n String type = this.f787a.getContentResolver().getType(uri);\n return type != null && type.startsWith(\"video/\");\n }",
"public void startVideoPlayer(Context context, String url) {\n Resource item = new Resource();\n item.setType(context.getString(R.string.typeVideo));\n item.setUrlMain(url);\n context.startActivity(PlayVideoFullScreenActivity.getStartActivityIntent(context, ConstantUtil.BLANK, ConstantUtil.BLANK, PlayVideoFullScreenActivity.NETWORK_TYPE_ONLINE, (Resource) item));\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(VideoDetailsActivity.this,\"Reciever fot the result. Do some processing bro\",Toast.LENGTH_LONG).show();\n mVideoView.setVideoURI();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tif (!LibsChecker.checkVitamioLibs(this))\n\t\t\treturn;\n\t\t// Vitamio.initialize(this); //先初始化\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);// 不要标题栏,必须在setContentview之前\n\t\t// 设置全屏\n\t\tthis.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\tsetContentView(R.layout.videoview);\n\t\tmVideoView = (VideoView) findViewById(R.id.surface_view);\n\t\tthis.mAudioManager = (AudioManager) this\n\t\t\t\t.getSystemService(AUDIO_SERVICE);\n\t\tthis.getWindow().setFlags(\n\t\t\t\tWindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,\n\t\t\t\tWindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);// 屏幕常亮\n\t\tIntent intent = this.getIntent();\n\t\tthis.name = intent.getStringExtra(\"name\");\n\t\tthis.url = intent.getStringExtra(\"url\");\n\t\tthis.username = intent.getStringExtra(\"username\");\n\t\tthis.courseid = intent.getStringExtra(\"courseid\");\n\t\tthis.httpUrl = intent.getStringExtra(\"httpUrl\");\n\t\tSystem.out.println(\"试听地址:\"+url);\n\t\tSystem.out.println(\"http地址:\"+httpUrl);\n\t\tthis.playType = intent.getStringExtra(\"playType\");\n\t\t/* 2014.06.19修改\n\t\tif (!\"free\".equals(playType)) {\n\t\t\tif (isLocalUrl()) {\n\t\t\t\t// 表示从文件里读取,看文件是否存在\n\t\t\t\tFile file = new File(url);\n\t\t\t\tif (!file.exists()) {\n\t\t\t\t\tToast.makeText(this, \"本地文件已经被删除\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\t// 修改courseTab中的记录,结束\n\t\t\t\t\tnew CourseDao(this).updateState(httpUrl, 0, username);\n\t\t\t\t\tif (\"local\".equals(intent.getStringExtra(\"loginType\"))) {\n\t\t\t\t\t\tthis.finish();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(!FileUtil.checkSDCard(file.length())){\n\t\t\t\t\t\t//磁盘空间不足\n\t\t\t\t\t\tToast.makeText(this, \"磁盘空间不足,b\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}*/\n\t\tLayoutInflater inflater = LayoutInflater.from(this);\n\t\tView t = inflater.inflate(R.layout.title, null);\n\t\tt.getBackground().setAlpha(0);\n\t\tView bar = inflater.inflate(R.layout.videocontrol, null);\n\n\t\tthis.videoloadingLayout = (RelativeLayout) this\n\t\t\t\t.findViewById(R.id.videoloadingLayout);\n\t\tWindowManager wm = (WindowManager) this\n\t\t\t\t.getSystemService(Context.WINDOW_SERVICE);\n\t\twidth = wm.getDefaultDisplay().getWidth();// 屏幕宽度\n\t\theight = wm.getDefaultDisplay().getHeight();// 屏幕高度\n\t\tthis.title = new PopupWindow(t, 400, 50);\n\t\tthis.title.setAnimationStyle(R.style.AnimationFade);\n\t\tthis.toolbar = new PopupWindow(bar);\n\t\tthis.toolbar.setAnimationStyle(R.style.AnimationFade);\n\t\tvideoloadingLayout.setVisibility(View.VISIBLE);\n\t\tLooper.myQueue().addIdleHandler(new IdleHandler() {\n\t\t\t@Override\n\t\t\tpublic boolean queueIdle() {\n\t\t\t\t// 显示两个popupwindow\n\t\t\t\tif (title != null && mVideoView.isShown()) {\n\t\t\t\t\ttitle.showAtLocation(mVideoView, Gravity.TOP, 0, 0);\n\t\t\t\t\ttitle.update(height - 50, 0, width, 50);\n\t\t\t\t}\n\t\t\t\tif (toolbar != null && mVideoView.isShown()) {\n\t\t\t\t\ttoolbar.showAtLocation(mVideoView, Gravity.BOTTOM, 0, 0);\n\t\t\t\t\ttoolbar.update(0, 0, width, 220);\n\t\t\t\t}\n\t\t\t\t// 显示正在加载\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\treturnBtn = (ImageButton) t.findViewById(R.id.imageBack);\n\t\ttitleTxt = (TextView) t.findViewById(R.id.videoName);\n\t\ttitleTxt.setText(name);\n\t\tseekbar = (SeekBar) bar.findViewById(R.id.seekBar);// 视频进度条\n\t\tvolumnBar = (SeekBar) t.findViewById(R.id.seekBar1);// 音量拖拽条\n\t\tvolumnSize = (TextView) t.findViewById(R.id.volumnSize);// 音量百分数\n\t\tvolumnMax = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n\t\tint current = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n\t\tseekbar.setMax(1000);\n\t\tvolumnBar.setMax(volumnMax);\n\t\tvolumnBar.setProgress(current);\n\t\tvolumnSize.setText(current * 100 / volumnMax + \"%\");\n\t\tplaybtn = (ImageButton) bar.findViewById(R.id.imagePlay);\n\t\tprev = (ImageButton) bar.findViewById(R.id.imagePrevious);\n\t\tnext = (ImageButton) bar.findViewById(R.id.imageNext);\n\t\ttotalTime = (TextView) bar.findViewById(R.id.totalTime);\n\t\tcurrentTime = (TextView) bar.findViewById(R.id.playTime);\n\t\tClickEvent c = new ClickEvent();\n\t\treturnBtn.setOnClickListener(c);\n\t\tplaybtn.setOnClickListener(c);\n\t\tprev.setOnClickListener(c);\n\t\tnext.setOnClickListener(c);\n\t\tsetVolumeControlStream(AudioManager.STREAM_MUSIC);\n\t\tvolumnBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC,\n\t\t\t\t\t\tseekBar.getProgress(), 8);\n\t\t\t\tvolumnSize.setText(seekBar.getProgress() * 100\n\t\t\t\t\t\t/ seekBar.getMax() + \"%\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t\thandler = new MyHandler(this);\n\t\tinitUrl();\n\t\tif (!\"free\".equals(playType)) {\n\t\t\tinitRecord();\n\t\t\tif (isLocalUrl()) {\n\t\t\t\t// 表示从文件里读取,看文件是否存在\n\t\t\t\tfinal File file = new File(url);\n\t\t\t\tif (!file.exists()) {\n\t\t\t\t\tToast.makeText(this, \"本地文件已经被删除\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\t// 修改courseTab中的记录,结束\n\t\t\t\t\tnew CourseDao(this).updateState(httpUrl, 0, username);\n\t\t\t\t\tif (\"local\".equals(intent.getStringExtra(\"loginType\"))) {\n\t\t\t\t\t\tthis.finish();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(!FileUtil.checkSDCard(file.length())){\n\t\t\t\t\t\t//磁盘空间不足\n\t\t\t\t\t\tToast.makeText(VideoActivity3.this, \"磁盘空间不足,改由网络播放\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\turl = httpUrl;\t//切换到web模式\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnew Thread(){\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\t\t\t\t\t\t\tString filePath = dir.getPath()+File.separator+\"eschool\"+\"temp_\";\n\t\t\t\t\t\t\t\t\tif(!new File(filePath).exists()){\n\t\t\t\t\t\t\t\t\t\tnew File(filePath).mkdirs();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\tFileUtil.encode(new File(url), Constant.OFFSET.getBytes().length, filePath+File.separator+\"current.flv\");\n\t\t\t\t\t\t\t\t\t\turl = filePath+File.separator+\"current.flv\";\n\t\t\t\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\t\t\t\tToast.makeText(VideoActivity3.this, \"文件解析出错,改由网络播放\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\turl = httpUrl;\t//切换到web模式\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}.start();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n\t\t\t\t\t\tcurrentTime, totalTime, record.getCurrentTime(), videoloadingLayout, url);\n\t\t\t}\n\t\t} else {\n\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n\t\t\t\tcurrentTime, totalTime, 0, videoloadingLayout, url);\n\t\t}\n//\t\tif(isLocalUrl()) //是本地文件不用检查网络\n//\t\t{\n//\t\t\tif (!\"free\".equals(playType)) {\n//\t\t\t\tinitRecord();\n//\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\tcurrentTime, totalTime, record.getCurrentTime(),\n//\t\t\t\t\tvideoloadingLayout, url);\n//\t\t\t} else {\n//\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\tcurrentTime, totalTime, 0, videoloadingLayout, url);\n//\t\t\t}\n//\t\t}else\n//\t\t{\n//\t\t\tif(checkNetWork())\n//\t\t\t{\n//\t\t\t\tif (!\"free\".equals(playType)) {\n//\t\t\t\t\tinitRecord();\n//\t\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\t\tcurrentTime, totalTime, record.getCurrentTime(),\n//\t\t\t\t\t\tvideoloadingLayout, url);\n//\t\t\t\t} else {\n//\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\t\tcurrentTime, totalTime, 0, videoloadingLayout, url);\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\n\t\t// 监听播完事件\n\t\t// 开一个线程等准备好就开始播放\n\t\t// new Thread() {\n\t\t// public void run() {\n\t\t// while (true) {\n\t\t// if (player.isCreated()) {\n\t\t// String url = \"http://www.youeclass.com:8090/2013yjssssjj2-1.flv\";\n\t\t// String url2 =\n\t\t// \"http://www.youeclass.com:8090/test_video.mp4\";//2013yjssssjj2-1.flv\";\n\t\t// // 网络视频地址\n\t\t// try {\n\t\t// player.playUrl(url);\n\t\t// handler.sendEmptyMessage(1);\n\t\t// break;\n\t\t// } catch (Exception e) {\n\t\t// handler.sendEmptyMessage(-1);\n\t\t// break;\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t// };\n\t\t// }.start();\n\t\tthis.mGestureDetector = new GestureDetector(this, this);\n\t\tthis.mVideoView.setOnTouchListener(this);\n\t\tthis.mVideoView.setLongClickable(true);\n\t\tthis.mVideoView.setFocusable(true);\n\t\tthis.mVideoView.setClickable(true);\n//\t\tthis.mVideoView.setOnErrorListener(new OnErrorListener() {\n//\t\t\t@Override\n//\t\t\tpublic boolean onError(MediaPlayer mp, int what, int extra) {\n//\t\t\t\t// TODO Auto-generated method stub\n//\t\t\t\tToast.makeText(VideoActivity3.this, \"未知媒体错误\", Toast.LENGTH_LONG).show();\n//\t\t\t\ttry{\n//\t\t\t\t\tplayer.stop();\n//\t\t\t\t}catch(Exception e)\n//\t\t\t\t{\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\t\t\t\tVideoActivity3.this.finish();\n//\t\t\t\treturn false;\n//\t\t\t}\n//\t\t});\n\t\tmGestureDetector.setIsLongpressEnabled(true);\n\t}",
"public String getVideoUrl() {\n return videoUrl;\n }",
"public void setVideo(File video){\n\t\tthis.video = video;\n\t}",
"@Override\n public void run() {\n setupRemoteVideo(uid);\n }",
"void onUserAttentionGone() {\n if (isPlaying()) { //If video is playing pause it.\n mPauseTime = getCurrentPosition(); //mPauseTime is an int\n super.pause();\n }\n }",
"public boolean videoMulticastEnabled();",
"private final boolean m123459c(Bundle bundle) {\n List list;\n Workspace workspace;\n AVChallenge aVChallenge;\n C38892aa aaVar = new C38892aa();\n CutVideoViewModel cutVideoViewModel = this.f100413c;\n if (cutVideoViewModel == null) {\n C7573i.m23583a(\"cutVideoViewModel\");\n }\n cutVideoViewModel.mo97154a(aaVar);\n ArrayList arrayList = new ArrayList();\n C33153d a = C33153d.m106972a();\n MicroAppModel microAppModel = null;\n if (a != null) {\n list = a.mo84910c();\n } else {\n list = null;\n }\n if (list != null) {\n C33153d a2 = C33153d.m106972a();\n C7573i.m23582a((Object) a2, \"MediaManager.instance()\");\n arrayList = (ArrayList) a2.mo84910c();\n }\n String stringExtra = getIntent().getStringExtra(\"file_path\");\n if (getIntent().hasExtra(\"open_sdk_import_media_list\")) {\n arrayList = getIntent().getParcelableArrayListExtra(\"open_sdk_import_media_list\");\n C7573i.m23582a((Object) arrayList, \"intent.getParcelableArra…PEN_SDK_IMPORT_MEDIALIST)\");\n }\n if (!TextUtils.isEmpty(stringExtra) || !arrayList.isEmpty()) {\n aaVar.mo97167a(arrayList);\n aaVar.f100998b = stringExtra;\n aaVar.f100999c = C42017d.m133561a(getIntent().getIntExtra(\"shoot_mode\", -1));\n aaVar.f101000d = getIntent().getLongExtra(\"min_duration\", C39810eq.m127460a());\n if (bundle == null) {\n workspace = Workspace.m122801a();\n } else {\n workspace = (Workspace) bundle.getParcelable(\"workspace\");\n }\n aaVar.f101006j = workspace;\n String stringExtra2 = getIntent().getStringExtra(\"path\");\n if (!TextUtils.isEmpty(stringExtra2)) {\n Workspace workspace2 = aaVar.f101006j;\n if (workspace2 != null) {\n workspace2.mo96312a(new File(stringExtra2));\n }\n }\n if (getIntent().getSerializableExtra(\"av_challenge\") == null) {\n aVChallenge = null;\n } else {\n Serializable serializableExtra = getIntent().getSerializableExtra(\"av_challenge\");\n if (serializableExtra != null) {\n aVChallenge = (AVChallenge) serializableExtra;\n } else {\n throw new TypeCastException(\"null cannot be cast to non-null type com.ss.android.ugc.aweme.shortvideo.AVChallenge\");\n }\n }\n aaVar.f101001e = aVChallenge;\n aaVar.f101002f = getIntent().getStringExtra(\"micro_app_id\");\n if (getIntent().getSerializableExtra(\"micro_app_info\") != null) {\n Serializable serializableExtra2 = getIntent().getSerializableExtra(\"micro_app_info\");\n if (serializableExtra2 != null) {\n microAppModel = (MicroAppModel) serializableExtra2;\n } else {\n throw new TypeCastException(\"null cannot be cast to non-null type com.ss.android.ugc.aweme.shortvideo.edit.MicroAppModel\");\n }\n }\n aaVar.f101003g = microAppModel;\n aaVar.f101004h = getIntent().getSerializableExtra(\"micro_app_class\");\n aaVar.f101005i = getIntent().getBooleanExtra(\"enter_record_from_other_platform\", false);\n aaVar.f101007k = (ShareContext) getIntent().getSerializableExtra(\"extra_share_context\");\n aaVar.f101008l = getIntent().getStringExtra(\"shoot_way\");\n aaVar.f101009m = getIntent().getBooleanExtra(\"from_background_video\", false);\n aaVar.f101010n = getIntent().getLongExtra(\"background_video_max_length\", C40413c.f105051b);\n aaVar.f101011o = getIntent().getStringExtra(\"creation_id\");\n return true;\n }\n finish();\n return false;\n }",
"public static void startSendVideoForce() {\n if (null != skypeConversation) {\n skypeConversation.startSendVideoForce();\n }\n }",
"com.google.ads.googleads.v6.resources.VideoOrBuilder getVideoOrBuilder();",
"public void setVideourl(String videourl) {\n this.videourl = videourl;\n }",
"@Override\n public void onAdAvailable(Intent intent) {\n rewardedVideoIntent = intent;\n Log.d(TAG, \"RV: Offers are available\");\n showRV.setEnabled(true);\n Toast.makeText(MainActivity.this, \"RV: Offers are available \", Toast.LENGTH_SHORT).show();\n }",
"private void showOST(int position) {\n\t\tString youtubeUrl = \"\";\n\t\tString youtubeId = \"\";\n\t\tString rtsp_link = \"\";\n\t\t\n\t\t//urlYoutube = ost_links[position];\n\t\t//youtubeUrl = \"http://www.youtube.com/watch?v=MV5qvrxmegY\";\n\t\t//rtsp_link = getUrlVideoRTSP(youtubeUrl);\n\t\t//rtsp_link = \"rtsp://r1---sn-a5m7zu7e.c.youtube.com/CiILENy73wIaGQkGema8vmpeMRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp\";\n\t\t//rtsp_link = \"https://archive.org/download/Pbtestfilemp4videotestmp4/video_test_512kb.mp4\";\n\t\t//rtsp_link = \"rtsp://r3---sn-a5m7zu7d.c.youtube.com/CiILENy73wIaGQn061BlwOVsxRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp\";\n\t\trtsp_link = ost_links[position];\t\t\n\t\tVideoView videoView = (VideoView) this.findViewById(R.id.videoView1);\n\t\tLog.v(\"Video\", \"***Video to Play:: \" + rtsp_link);\n\t\t\n\t\t// add controls to a MediaPlayer like play, pause.\n\t\tMediaController mc = new MediaController(this);\n\t\tvideoView.setMediaController(mc);\n\t\n\t\t// Set the path of Video or URI\n\t\tmc.setAnchorView(videoView);\n\t\tUri videoPath = null;\n\t\tvideoPath = Uri.parse(rtsp_link);\n\t\t\n\t\tvideoView.setVideoURI(videoPath);\n\t\tvideoView.requestFocus();\n\t\tvideoView.start();\t\n\t\tmc.show();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tif(player!=null){\n\t\t\t\t\tif(!isVoiceFlags){\n\t\t\t\t\t\tplayer.setVolume(0f, 0f);\n\t\t\t\t\t\tvideoView.start();\n\t\t\t\t\t\tisVoiceFlags=true;\n\t\t\t\t\t\timg_volumvideo.setBackgroundResource(TapfunsResourceUtil.findDrawableIdByName(AlertVideoActivity.this, \"volumvideo\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tplayer.setVolume(1f, 1f);\n\t\t\t\t\t\tvideoView.start();\n\t\t\t\t\t\tisVoiceFlags=false;\n\t\t\t\t\t\timg_volumvideo.setBackgroundResource(TapfunsResourceUtil.findDrawableIdByName(AlertVideoActivity.this, \"volumclosevideo\"));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void videoStart() {\n\t\t\n\t}",
"@Override\n\tpublic boolean updateCourseVideo(CourseVideo courseVideo) {\n\t\treturn false;\n\t}",
"public boolean removeVideo(Video video)throws NullPointerException;",
"public static void main(String[] args) {\nString bob=JOptionPane.showInputDialog(\"hew manee cets doh yoo huv\");\n\t\t// 2. Convert their answer into an int\nint blob= Integer.parseInt(bob);\n\t\t// 3. If they have more than 3 cats, tell them they're a crazy cat lady\nif(blob>=4){\n\tJOptionPane.showMessageDialog(null, \"u ah crazee cet ladoy\");\n}\n\t\t// 4. If they have 3 or less, call the method below to show them a cat video\nif(blob<=3){\n\n\tplayVideo(\"https://www.youtube.com/watch?v=4pTLmhZCzbQ\");\n}\nelse if(blob<=0){\n\tplayVideo(\"https://www.youtube.com/watch?v=SKRgktzRvZ0\");\n}\n\t\t// 5. If they say 0, show them a video of A Frog Sitting on a Bench Like a Human\t\t\n\t}",
"@Override\n public void onListItemClick(Video clickedVideo) {\n }",
"public String getCourseVideo() {\n return courseVideo;\n }",
"public void setVideoGuid(java.lang.String videoGuid) {\n this.videoGuid = videoGuid;\n }",
"public interface VideoCastController {\n\n int CC_ENABLED = 1;\n int CC_DISABLED = 2;\n int CC_HIDDEN = 3;\n\n int NEXT_PREV_VISIBILITY_POLICY_HIDDEN = 1;\n int NEXT_PREV_VISIBILITY_POLICY_DISABLED = 2;\n int NEXT_PREV_VISIBILITY_POLICY_ALWAYS = 3;\n\n /**\n * Sets the bitmap for the album art\n */\n void setImage(Bitmap bitmap);\n\n /**\n * Sets the title\n */\n void setTitle(String text);\n\n /**\n * Sets the subtitle\n */\n void setSubTitle(String text);\n\n /**\n * Sets the playback state, and the idleReason (this is only used when the state is idle).\n * Values that can be passed to this method are from {@link MediaStatus}\n */\n void setPlaybackStatus(int state);\n\n /**\n * Assigns a {@link OnVideoCastControllerListener} listener to be notified of the changes in\n * the {@link }VideoCastController}\n */\n void setOnVideoCastControllerChangedListener(OnVideoCastControllerListener listener);\n\n /**\n * Sets the type of stream. {@code streamType} can be\n * {@link com.google.android.gms.cast.MediaInfo#STREAM_TYPE_LIVE} or\n * {@link com.google.android.gms.cast.MediaInfo#STREAM_TYPE_BUFFERED}\n */\n void setStreamType(int streamType);\n\n /**\n * Updates the position and total duration for the seekbar that presents the progress of media.\n * Both of these need to be provided in milliseconds.\n */\n void updateSeekbar(int position, int duration);\n\n /**\n * Adjust the visibility of control widgets on the UI.\n */\n void updateControllersStatus(boolean enabled);\n\n /**\n * Can be used to show a loading icon during processes that could take time.\n */\n void showLoading(boolean visible);\n\n /**\n * Closes the activity related to the UI.\n */\n void closeActivity();\n\n /**\n * This can be used to adjust the UI for playback of live versus pre-recorded streams. Certain\n * UI widgets may need to be updated when playing a live stream. For example, the progress bar\n * may not be needed for a live stream while it may be required for a pre-recorded stream.\n */\n void adjustControllersForLiveStream(boolean isLive);\n\n /**\n * Updates the visual status of the Closed Caption icon. Possible states are provided by\n * <code>CC_ENABLED, CC_DISABLED, CC_HIDDEN</code>\n */\n void setClosedCaptionState(int status);\n\n void onQueueItemsUpdated(int queueLength, int position);\n\n void setNextPreviousVisibilityPolicy(int policy);\n}",
"public void uploadvideo(View view) {\n Helper.hideSoftKeyboard(getActivity());\n //getting name for the image\n String name = hashtag.getText().toString().trim();\n\n //getting the actual path of the image\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n uploadReceiver.setDelegate(this);\n uploadReceiver.setUploadID(uploadId);\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, Constants.UPLOAD_VIDEO)\n .addFileToUpload(file, \"file\") //Adding file\n .addParameter(\"category_id\", category_id) //Adding text parameter to the request//Adding text parameter to the request\n .addParameter(\"name\", name) //Adding text parameter to the request\n .addHeader(\"Authorization\", token)\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n showToast(view);\n } catch (Exception exc) {\n\n }\n }"
] | [
"0.7165768",
"0.6916176",
"0.66056156",
"0.6455752",
"0.6411973",
"0.64119565",
"0.6270137",
"0.62089276",
"0.61791664",
"0.617852",
"0.6175625",
"0.6172165",
"0.6124481",
"0.61160135",
"0.6115389",
"0.6011344",
"0.5968834",
"0.5961779",
"0.59501207",
"0.5946854",
"0.5912079",
"0.59016675",
"0.58858436",
"0.58663666",
"0.58573365",
"0.5851051",
"0.58458567",
"0.583677",
"0.5828922",
"0.581181",
"0.58071864",
"0.5783003",
"0.5783003",
"0.57705253",
"0.5768336",
"0.5768336",
"0.57682306",
"0.5756789",
"0.5755509",
"0.5744061",
"0.57385075",
"0.57318884",
"0.57080686",
"0.57067287",
"0.5697229",
"0.56909305",
"0.5687545",
"0.56738985",
"0.5672043",
"0.5658415",
"0.5631054",
"0.5630198",
"0.56299037",
"0.560156",
"0.56013453",
"0.5598337",
"0.556951",
"0.5568284",
"0.5566405",
"0.55529094",
"0.554528",
"0.55417943",
"0.55296534",
"0.55210274",
"0.5519847",
"0.55194867",
"0.55160034",
"0.5510468",
"0.5509713",
"0.55085504",
"0.55042756",
"0.5499391",
"0.54952776",
"0.54890686",
"0.54889226",
"0.54872954",
"0.5481347",
"0.54735184",
"0.54674864",
"0.5462529",
"0.5462478",
"0.5456265",
"0.5455345",
"0.5451559",
"0.54503155",
"0.544448",
"0.54433084",
"0.54295045",
"0.54265916",
"0.5418778",
"0.5415543",
"0.54087645",
"0.539697",
"0.5396391",
"0.5390637",
"0.5390185",
"0.53878653",
"0.5387635",
"0.5385048",
"0.5379098"
] | 0.67005646 | 2 |
Lets the user switch their camera if they want to. | public int switchCamera() {
return mRtcEngine.switchCamera();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onSwitchCameraClicked(View view) {\n // Switch the camera\n mRtcEngine.switchCamera();\n }",
"@Override\n public void onClick(View v) {\n int camerasNumber = Camera.getNumberOfCameras();\n if (camerasNumber > 1) {\n //release the old camera instance\n //switch camera, from the front and the back and vice versa\n\n releaseCamera();\n chooseCamera();\n } else {\n\n }\n }",
"private void turnOnCamera() {\n // play sound\n playSound();\n isCameraOn = true;\n turnOffFlash();\n strobo.setChecked(false);\n previewCamera();\n toggleButtonImageCamera();\n }",
"public void chooseCamera() {\n if (cameraFront) {\n int cameraId = findBackFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n } else {\n int cameraId = findFrontFacingCamera();\n if (cameraId >= 0) {\n //open the backFacingCamera\n //set a picture callback\n //refresh the preview\n mCamera = Camera.open(cameraId);\n setRotation(mCamera, mCamera.getParameters(), cameraId);\n // mCamera.setDisplayOrientation(90);\n mPicture = getPictureCallback();\n mPreview.refreshCamera(mCamera);\n }\n }\n }",
"public void startCamera()\n {\n startCamera(null);\n }",
"public void openCamera() {\n \n\n }",
"public ToggleCameraMode() {\n requires(Robot.vision);\n }",
"boolean useCamera2();",
"public void onSwitchCamera(View v) {\n if (mWZCameraView == null) return;\n\n mBtnTorch.setState(false);\n mBtnTorch.setEnabled(false);\n\n WZCamera newCamera = mWZCameraView.switchCamera();\n if (newCamera != null) {\n if (newCamera.hasCapability(WZCamera.FOCUS_MODE_CONTINUOUS))\n newCamera.setFocusMode(WZCamera.FOCUS_MODE_CONTINUOUS);\n\n boolean hasTorch = newCamera.hasCapability(WZCamera.TORCH);\n if (hasTorch) {\n mBtnTorch.setState(newCamera.isTorchOn());\n mBtnTorch.setEnabled(true);\n }\n }\n }",
"@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tcam.setCamera(getCameraInstance(getDefaultCameraId()));\n\t\t\t\t}",
"public void updateCamera() {\n\t}",
"public void onCamera();",
"public void setCamera(Camera camera) {\r\n\t\tthis.camera = camera;\r\n\t}",
"protected void cameraClicked() {\n\t\tif (this.pictureFromCameraString != null\n\t\t\t\t&& !\"\".equals(this.pictureFromCameraString)) {\n\t\t\timageAvailable();\n\t\t} else {\n\t\t\timageUnavailable();\n\t\t}\n\t\tthis.cameraIsActive = true;\n\t\tthis.camera.addStyleDependentName(\"highlighted\");\n\t\tthis.upload.removeStyleDependentName(\"highlighted\");\n\t\tthis.inputPanel.setWidget(this.cameraPanel);\n\t\tgetCameraPictureNative();\n\t}",
"private void setCamera() {\n\t\tCamera.CameraInfo cameraInfo = new Camera.CameraInfo();\n\t\tint cameraCount = Camera.getNumberOfCameras();\n\t\tLog.i(TAG, \"count = \" + cameraCount);\n\t\tLog.i(TAG, \"isBack = \" + isBack);\n\t\tint id = 0;\n\n\t\tfor (int camIdx = 0; camIdx < cameraCount; camIdx++) {\n\t\t\tCamera.getCameraInfo(camIdx, cameraInfo);\n\t\t\tLog.i(TAG, \"cameraInfoFacing = \" + cameraInfo.facing);\n\t\t\tif (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK\n\t\t\t\t\t&& isBack) {\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} else if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT\n\t\t\t\t\t&& !isBack){\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (mCamera != null) {\n\t\t\tCamera.Parameters cameraParameters = mCamera.getParameters();\n\t\t\tDisplay display = getActivity().getWindowManager().getDefaultDisplay();\n\t\t\tPoint size = new Point();\n\t\t\tdisplay.getSize(size);\n\t\t\tint screenWidth = size.x;\n\t\t\tint width = Integer.MAX_VALUE;\n\t\t\tint height = 0;\n\t\t\tLog.i(TAG, \"SCREENWIDTH: \" + screenWidth);\n\t\t\tList<Camera.Size> sizes = cameraParameters.getSupportedPreviewSizes();\n\t\t\tfor (Camera.Size cSize : sizes) {\n\t\t\t\tif (cSize.width >= screenWidth && cSize.width <= width) {\n\t\t\t\t\twidth = cSize.width;\n\t\t\t\t\theight = cSize.height;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tLog.i(TAG, \"Width: \" + width + \" HEIGHT: \" + height);\n\n\t\t\tif (mPreview != null) {\n\t\t\t\tmPreview.switchCamera(mCamera, id, width, height);\n\t\t\t} else {\n\t\t\t\tmPreview = new CameraPreview(getActivity(), mCamera, id, width, height);\n\t\t\t\tFrameLayout preview = (FrameLayout) view\n\t\t\t\t\t\t.findViewById(R.id.camera_preview);\n\t\t\t\tpreview.addView(mPreview);\n\t\t\t}\n\t\t\tmCamera.startPreview();\n\t\t}\n\t}",
"private void toggleCamera(boolean isNeedEnableCam) {\n DisplayMetrics displaymetrics = new DisplayMetrics();\n displaymetrics.setToDefaults();\n\n ViewGroup.LayoutParams layoutParams = imgMyCameraOff.getLayoutParams();\n\n layoutParams.height = localVideoView.getHeight();\n layoutParams.width = localVideoView.getWidth();\n\n imgMyCameraOff.setLayoutParams(layoutParams);\n\n Log.d(TAG, \"Width is: \" + imgMyCameraOff.getLayoutParams().width + \" height is:\" + imgMyCameraOff.getLayoutParams().height);\n\n if (SessionManager.getCurrentSession() != null) {\n SessionManager.getCurrentSession().setVideoEnabled(isNeedEnableCam);\n cameraToggle.setChecked(isNeedEnableCam);\n\n if (isNeedEnableCam) {\n Log.d(TAG, \"Camera is on\");\n switchCameraToggle.setVisibility(View.VISIBLE);\n imgMyCameraOff.setVisibility(View.INVISIBLE);\n } else {\n Log.d(TAG, \"Camera is off\");\n switchCameraToggle.setVisibility(View.INVISIBLE);\n imgMyCameraOff.setVisibility(View.VISIBLE);\n }\n }\n }",
"@SuppressLint(\"NewApi\")\n public void flipit() {\n if (mCamera == null) {\n return;\n }\n if (Camera.getNumberOfCameras() >= 2) {\n btn_switch.setEnabled(false);\n if (null != mCamera) {\n try {\n mCamera.setPreviewCallback(null);\n mCamera.stopPreview();\n //这句要在stopPreview后执行,不然会卡顿或者花屏\n mCamera.setPreviewDisplay(null);\n mCamera.release();\n mCamera = null;\n Log.i(TAG, \"=== Stop Camera ===\");\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n // \"which\" is just an integer flag\n switch (frontCamera) {\n case 0:\n mCamera = Camera.open(CameraInfo.CAMERA_FACING_FRONT);\n frontCamera = 1;\n break;\n case 1:\n mCamera = Camera.open(CameraInfo.CAMERA_FACING_BACK);\n frontCamera = 0;\n break;\n }\n\n if (Build.VERSION.SDK_INT > 17 && this.mCamera != null) {\n try {\n this.mCamera.enableShutterSound(false);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"CJT\", \"enable shutter_sound sound faild\");\n }\n }\n\n doStartPreview();\n btn_switch.setEnabled(true);\n }\n }",
"public void startFrontCam() {\n }",
"public void onCameraOpened() {\n openCameraCommon();\n initializeControlByIntent();\n new Thread() {\n public void run() {\n try {\n Thread.sleep(500);\n PhotoModule.this.mIsCameraOpened = true;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }.start();\n }",
"public void setCamera(Camera camera) {\r\n\t\tsynchronized(camera) {\r\n\t\t\tthis.camera = camera;\r\n\t\t}\r\n\t}",
"public void setCamera(Camera camera) {\n mCamera = camera;\n }",
"public void toggleCamera() {\n\t\tif (map != null && map.getCameraPosition().zoom != MBDefinition.DEFAULT_ZOOM && carLatLng!=null) {\n\t\t\tmap.moveCamera(CameraUpdateFactory.newLatLngZoom(carLatLng, MBDefinition.DEFAULT_ZOOM));\n\t\t} else if (map != null && carMarker != null && pickupMarker != null) {\n\t\t\tLatLngBounds.Builder builder = new LatLngBounds.Builder();\n\n\t\t\tbuilder.include(carMarker.getPosition());\n\t\t\tbuilder.include(pickupMarker.getPosition());\n\n\t\t\tLatLngBounds bounds = builder.build();\n\n\t\t\tint padding = 150; // offset from edges of the map in pixels\n\t\t\tCameraUpdate cu = CameraUpdateFactory.newLatLngBounds(bounds, padding);\n\t\t\tmap.moveCamera(cu);\n\t\t}\n\t}",
"private void startPreview() {\n if (cameraConfigured && camera!=null) {\n camera.startPreview();\n inPreview=true;\n }\n }",
"public void configureCamera(){\n try{\n camera = Camera.open(findBackFacingCamera());\n } catch (Exception e){}\n\n if(camera != null) {\n cameraView = new CameraView(this.getApplicationContext(), camera);\n FrameLayout camera_view = (FrameLayout)findViewById(R.id.CameraView);\n camera_view.addView(cameraView);\n }\n }",
"void cameraSetup();",
"@Override\n public void onCameraPreviewStarted() {\n enableTorchButtonIfPossible();\n }",
"public void nextCameraMode() {\n cameraMode = cameraMode.next();\n setCameraControlMode(cameraMode);\n }",
"protected void dangerButton(View v) {\n if (isPlay) {\n turnOffActions();\n }\n else{\n boolean bool = activateActions();\n if (bool) {\n // launchCamera(View.VISIBLE);\n //right here //////////////////////////////////////////////////////////////////////////////////////\n try {\n camera = Camera.open();\n camera.setDisplayOrientation(90);\n\n } catch (RuntimeException e) {\n return;\n }\n try {\n camera.setPreviewDisplay(surfaceHolder);\n camera.startPreview();\n } catch (Exception e) {\n return;\n }\n }\n }\n }",
"public void changeCam(int newId)\r\n {\n\t\ttry{\r\n\t\tSystem.out.println(newId);\r\n\t\tNIVision.IMAQdxStopAcquisition(curCam);\r\n \tNIVision.IMAQdxConfigureGrab(newId);\r\n \tNIVision.IMAQdxStartAcquisition(newId);\r\n \tcurCam = newId;}\n\t\tcatch(Exception e){\n\t\t\t\n\t\t}\r\n }",
"public void getCameraInstance() {\n newOpenCamera();\n }",
"public void openCamera() {\n Toast.makeText(this, \"Coming soon...\", Toast.LENGTH_SHORT).show();\n }",
"public void startGearCam() {\n }",
"@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n mCameraDevice = camera;\n startPreview();\n }",
"public void setCamera(Camera c) {\n\t\tmCamera = c;\n\t}",
"@Override\n public void init() {\n startCamera();\n }",
"@Override\n\tpublic void shiftCamera() {\n\t\t\n\t}",
"private void oldOpenCamera() {\n try {\n mCamera = Camera.open(); // attempt to get a Camera instance\n mCamera.setPreviewCallbackWithBuffer(this);\n Log.i(TAG, \"Instance created\");\n } catch (Exception e) {\n Log.e(TAG, \"Error getting Camera instance: \" + e.getMessage());\n }\n }",
"public void camera(){\n System.out.println(\"I am taking pictures...\");\r\n }",
"public void onShowCameraClicked(View view) {\n if (mUIState == UIState.CONNECTED_FULLSCREEN) {\n // Toggle to split screen while showing remote camera\n if (mRemoteCameraUid != 0)\n setupRemoteVideo(mRemoteCameraUid, mRemoteCameraContainer);\n removeRemoteShare();\n setupRemoteVideo(WINDOW_SHARE_UID, mRemoteShareContainerSplit);\n setUIState(UIState.CONNECTED_SPLITSCREEN);\n } else if (mUIState == UIState.CONNECTED_SPLITSCREEN) {\n // Toggle to full screen while hiding remote camera\n removeRemoteCamera();\n removeRemoteShare();\n setupRemoteVideo(WINDOW_SHARE_UID, mRemoteShareContainerFull);\n setUIState(UIState.CONNECTED_FULLSCREEN);\n }\n }",
"public void toggleButtonImageCamera() {\n if (isCameraOn) {\n btnCamera.setImageResource(R.drawable.cam_on);\n } else {\n btnCamera.setImageResource(R.drawable.cam_off);\n }\n }",
"private void newOpenCamera() {\n if (mThread == null) {\n mThread = new CameraHandlerThread();\n }\n\n synchronized (mThread) {\n mThread.openCamera();\n }\n }",
"private void turnOffCamera() {\n playSound();\n preview.removeAllViews();\n params = camera.getParameters();\n params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n camera.setParameters(params);\n camera.stopPreview();\n camera.release();\n camera = null;\n isCameraOn = false;\n strobo.setChecked(false);\n turnOffFlash();\n toggleButtonImageCamera();\n\n }",
"@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }",
"@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }",
"void cameraInOperation(boolean in_operation, boolean is_video);",
"public void onCameraPicked(String newCameraId);",
"private Camera selectAndOpenCamera() {\n\t\tCamera.CameraInfo info = new Camera.CameraInfo();\n\t\tint numberOfCameras = Camera.getNumberOfCameras();\n\n\t\tint selected = -1;\n\n\t\tfor (int i = 0; i < numberOfCameras; i++) {\n\t\t\tCamera.getCameraInfo(i, info);\n\n\t\t\tif( info.facing == Camera.CameraInfo.CAMERA_FACING_BACK ) {\n\t\t\t\tselected = i;\n\t\t\t\tflipHorizontal = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// default to a front facing camera if a back facing one can't be found\n\t\t\t\tselected = i;\n\t\t\t\tflipHorizontal = true;\n\t\t\t}\n\t\t}\n\n\t\tif( selected == -1 ) {\n\t\t\tdialogNoCamera();\n\t\t\treturn null; // won't ever be called\n\t\t} else {\n\t\t\treturn Camera.open(selected);\n\t\t}\n\t}",
"@Override\n public void startCamera() {\n super.startCamera();\n\n if(cameraListener != null)\n cameraListener.onCameraStart();\n }",
"public void camera360() {\n\n }",
"private void startCameraSource() {\n if (cameraSource != null) {\n try {\n if (cameraPreview == null) {\n Logger.e(TAG, \"Preview is null\");\n }\n cameraPreview.start(cameraSource, fireFaceOverlay);\n } catch (IOException e) {\n// Logger.e(TAG, \"Unable to start camera source.\", e);\n cameraSource.release();\n cameraSource = null;\n }\n }\n }",
"public void startCamera() {\n Fragment cameraFragment = new CameraFragment();\n FragmentTransaction transaction = getActivity().getFragmentManager()\n .beginTransaction();\n transaction.replace(R.id.fragmentContainer, cameraFragment);\n transaction.addToBackStack(\"NewTripCardFragment\");\n transaction.commit();\n }",
"public void startPreview() {\r\n\t\tCamera localCamera = camera;\r\n\t\tif (localCamera != null && !isPreview) {\r\n\t\t\tcamera.startPreview();\r\n\t\t\tisPreview = true;\r\n\t\t}\r\n\t}",
"private static void turnFlashlightOn() {\n Parameters p = cam.getParameters();\n p.setFlashMode(Parameters.FLASH_MODE_TORCH);\n cam.setParameters(p);\n }",
"private void startCameraSource() {\n\n if (cameraSource != null) {\n try {\n cameraPreview.start(cameraSource, graphicOverlay);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n cameraSource.release();\n cameraSource = null;\n }\n }\n\n }",
"@Override\n public void onOpened(@NonNull CameraDevice camera) {\n mCameraDevice = camera;\n if (mIsRecording) {\n try {\n mVideoFilePath = FileUtils.createVideoFile(getApplicationContext());\n } catch (IOException e) {\n e.printStackTrace();\n }\n startNewVideo();\n } else {\n startPreview();\n }\n }",
"private void startCameraActivity(){\n if (checkPermissions() && !startingActivity) {\n startingActivity = true;\n goodVibes.vibrate(200);\n Intent intent = new Intent(this, CameraActivity.class);\n intent.putExtra(\"EYE_COLOR\", eyeColorSelection);\n startActivity(intent);\n }else{\n getPermissions();\n }\n }",
"@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }",
"@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }",
"public synchronized void openDriver(SurfaceHolder holder) throws IOException {\n OpenCamera theCamera = camera;\n if (theCamera == null) {\n theCamera = OpenCameraInterface.open(-1);\n if (theCamera == null) {\n throw new IOException(\"Camera.open() failed to return object from driver\");\n }\n camera = theCamera;\n }\n\n Camera cameraObject = theCamera.getCamera();\n Camera.Parameters parameters = cameraObject.getParameters();\n String parametersFlattened = parameters == null ? null : parameters.flatten(); // Save these, temporarily\n try {\n setDesiredCameraParameters(theCamera, false);\n } catch (RuntimeException re) {\n // Driver failed\n Log.w(TAG, \"Camera rejected parameters. Setting only minimal safe-mode parameters\");\n Log.i(TAG, \"Resetting to saved camera params: \" + parametersFlattened);\n // Reset:\n if (parametersFlattened != null) {\n parameters = cameraObject.getParameters();\n parameters.unflatten(parametersFlattened);\n try {\n cameraObject.setParameters(parameters);\n setDesiredCameraParameters(theCamera, true);\n } catch (RuntimeException re2) {\n // Well, darn. Give up\n Log.w(TAG, \"Camera rejected even safe-mode parameters! No configuration\");\n }\n }\n }\n cameraObject.setPreviewDisplay(holder);\n previewCallback = new PreviewCallback(previewSize);\n }",
"@Override\n public void onOpened(@NonNull CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }",
"@Override\n protected void onResume() {\n super.onResume();\n cameraView.start();\n }",
"Camera getCamera();",
"@Override // com.master.cameralibrary.CameraViewImpl\n public boolean start() {\n chooseCamera();\n openCamera();\n if (this.mPreview.isReady()) {\n setUpPreview();\n }\n this.mShowingPreview = true;\n this.mCamera.startPreview();\n return true;\n }",
"public void enableVideoCapture(boolean enable);",
"private void setCamera() {\n\t\tVector viewTranslation = controller.getCameraPosition();\n\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\n\t\tfloat whRatio = (float) windowWidth / (float) windowHeight;\n\t\tGLU.gluPerspective(controller.getFOV(), whRatio, 1, 100000);\n\t\tGLU.gluLookAt((float) viewTranslation.x, (float) viewTranslation.y,\n\t\t\t\t(float) controller.getCameraDistance(), (float) viewTranslation.x,\n\t\t\t\t(float) viewTranslation.y, 0, 0, 1, 0);\n\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}",
"@Override\n public void onOpened(@NonNull CameraDevice camera) {\n mCameraDevice = camera;\n createCameraPreview();\n }",
"@Override\n\tpublic void moveCamera() {\n\n\t}",
"@Override\n public void onClick(View v) {\n\n switch (v.getId()) {\n //if cameraBtn is clicked\n case R.id.cameraBtn:\n mDevice = true;\n break;\n //if cameraBtnCloud is clicked\n case R.id.cameraBtnCloud:\n mDevice = false;\n break;\n\n }\n\n /*\n * picture taken from camera\n */\n mGraphicOverlay.clear();\n mCameraView.start();\n mCameraView.captureImage();\n\n }",
"public void restoreCamera() {\r\n float mod=1f/10f;\r\n p.camera(width/2.0f, height/2.0f, cameraZ,\r\n width/2.0f, height/2.0f, 0, 0, 1, 0);\r\n p.frustum(-(width/2)*mod, (width/2)*mod,\r\n -(height/2)*mod, (height/2)*mod,\r\n cameraZ*mod, 10000);\r\n }",
"private void releaseCamera() {\n if(camera != null) {\n camera.stopPreview();\n camera.release();\n camera = null;\n }\n }",
"private void toggle_light() {\n\t\ttry {\n\t\t\tif (!light_on) {\n\t\t\t\tlightButton.setBackgroundResource(R.drawable.light_selected);\n\t\t\t\tif (handler != null) {\n\t\t\t\t\thandler.quitSynchronously();\n\t\t\t\t\thandler = null;\n\t\t\t\t}\n//\t\t\t\tCameraManager.get().closeDriver();\n\t\t\t\tgetCameraManager().closeDriver();\n\t\t\t\tinitCamera(surfaceHolder);\n\t\t\t\tgetCameraManager().getFramingRect();\n//\t\t\t\tCameraManager.get().turn_onFlash();\n\t\t\t\tgetCameraManager().setTorch(true);\n\n\t\t\t} else {\n\t\t\t\tlightButton.setBackgroundResource(R.drawable.light);\n\t\t\t\tif (handler != null) {\n\t\t\t\t\thandler.quitSynchronously();\n\t\t\t\t\thandler = null;\n\t\t\t\t}\n//\t\t\t\tCameraManager.get().closeDriver();\n\t\t\t\tgetCameraManager().closeDriver();\n\t\t\t\tinitCamera(surfaceHolder);\n//\t\t\t\tCameraManager.get().turn_offFlash();\n\t\t\t\tgetCameraManager().setTorch(false);\n\n\t\t\t}\n\t\t\tlight_on = !light_on;\n\t\t} catch (Exception oEx) {\n\n\t\t}\n\t}",
"void setCameraIdPref(int cameraId);",
"void releaseCamera() {\n\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.release();\n }\n }",
"public int cameraOn() {\r\n System.out.println(\"hw- ligarCamera\");\r\n return serialPort.enviaDados(\"!111O*\");//camera ON \r\n }",
"@Override\n public void onClick(View v) {\n startActivity(new Intent(getActivity(), CameraActivity.class));\n }",
"private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String mCameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(mCameraId);\n StreamConfigurationMap map = characteristics.\n get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n mImageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) !=\n PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE) !=\n PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(CameraActivity.this, new\n String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CAMERA_PERMISSION);\n }\n manager.openCamera(mCameraId, mStateCallback, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onClick(View v) {\n if (!previewing) {\n camera = Camera.open();\n if (camera != null) {\n try {\n camera.setPreviewDisplay(surfaceHolder);\n camera.startPreview();\n previewing = true;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }\n }",
"public void startCamera()\n \t{\n\t\t// start the video capture\n\t\t//this.capture.open(0);\n\t\tcapture.open(cameraNumber);\n\n\n\n\t\t// is the video stream available?\n\t\tif (capture.isOpened())\n\t\t{\n\t\t\t// grab a frame every 33 ms (30 frames/sec)\n\t\t\tRunnable frameGrabber = new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tgrabFrame();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\ttimer = Executors.newSingleThreadScheduledExecutor();\n\t\t\ttimer.scheduleAtFixedRate(frameGrabber, 0, 500, TimeUnit.MILLISECONDS);\n\n\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// log the error\n\t\t\tSystem.err.println(\"Impossible to open the camera connection...\");\n\t\t}\n \t}",
"boolean useCamera2FakeFlash();",
"public void releaseCamera()\n {\n\n if (mcCamera != null)\n {\n //stop the preview\n mcCamera.stopPreview();\n //release the camera\n mcCamera.release();\n //clear out the camera\n mcCamera = null;\n }\n }",
"@Override\n public void startCameraIntent() {\n Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(cameraIntent, PICK_FROM_CAMERA_REQUEST_CODE);\n }",
"private void onCameraOpened() {\n SurfaceTexture texture = targetView.getSurfaceTexture();\n\n if (texture != null) {\n targetSurface = new Surface(texture);\n onSurfaceReceived();\n }\n else {\n targetView.setSurfaceTextureListener(new TextureView.SurfaceTextureListener() {\n @Override\n public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i1) {\n targetSurface = new Surface(surfaceTexture);\n onSurfaceReceived();\n }\n public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {\n return false;\n }\n\n @Override\n public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {\n\n }\n\n @Override\n public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int i, int i1) {\n\n }\n });\n }\n }",
"@TargetApi(9)\n\t@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n\t\t\tmCamera = Camera.open(0);\t\t\t\t\t\t\t\t\t//For API 9 and above. Open first camera available on device\n\t\t} else {\n\t\t\tmCamera = Camera.open();\t\t\t\t\t\t\t\t\t//For API 8\n\t\t}\n\t}",
"private void releaseCamera() {\n if (mCamera != null) {\n mCamera.stopPreview();\n mCamera.release();\n mCamera = null;\n }\n }",
"public void setCamera(int camera) {\n\t\tCameraInfo cameraInfo = new CameraInfo();\n\t\tint numberOfCameras = Camera.getNumberOfCameras();\n\t\tfor (int i=0;i<numberOfCameras;i++) {\n\t\t\tCamera.getCameraInfo(i, cameraInfo);\n\t\t\tif (cameraInfo.facing == camera) {\n\t\t\t\tthis.mCameraId = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public void onClick(View view) {\n Intent intent=new Intent(MainActivity.this, CameraActivity.class);\r\n startActivity(intent);\r\n }",
"@Override\n\tpublic boolean isCameraRelated() {\n\t\treturn true;\n\t}",
"@Override\n public void onClick(View view) {\n try {\n if (ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n cameraManager.openCamera(cameraManager.getCameraIdList()[0],\n new CameraState(cameraView), null);\n } catch (CameraAccessException e) {\n Log.d(\"msg\",\"CameraAccessException\");\n e.printStackTrace();\n }\n\n }",
"private void releaseCamera() {\n if (mCamera != null) {\n mCamera.release(); // release the camera for other applications\n mCamera = null;\n }\n }",
"private void addWithCamera() {\n if (PermissionUtils.isPermissionGranted(Manifest.permission.CAMERA)) {\n startCameraPage();\n } else {\n PermissionUtils.requestPermission(\n this,\n Manifest.permission.CAMERA,\n CAMERA_PERMISSION_REQUEST);\n }\n }",
"public void startCameraProcessing() {\n this.checkCameraPermission();\n\n try {\n cameraManager.openCamera(cameraId, new CameraDevice.StateCallback() {\n @Override\n public void onOpened(@NonNull CameraDevice camera) {\n cameraDevice = camera;\n onCameraOpened();\n }\n\n @Override\n public void onDisconnected(@NonNull CameraDevice camera) {\n\n }\n\n @Override\n public void onError(@NonNull CameraDevice camera, int error) {\n System.out.println(\"CAMERA ERROR OCCURRED: \" + error);\n }\n\n @Override\n public void onClosed(@NonNull CameraDevice camera) {\n super.onClosed(camera);\n }\n }, null);\n }\n catch (Exception e) {\n System.out.println(\"CAMERA FAILED TO OPEN\");\n e.printStackTrace();\n }\n }",
"public Camera() {\n\t\treset();\n\t}",
"@Override // com.master.cameralibrary.CameraViewImpl\n public void takePicture() {\n if (!isCameraOpened()) {\n throw new IllegalStateException(\"Camera is not ready. Call start() before takePicture().\");\n } else if (getAutoFocus()) {\n this.mCamera.cancelAutoFocus();\n this.mCamera.autoFocus(new Camera.AutoFocusCallback() {\n /* class com.master.cameralibrary.Camera1.AnonymousClass2 */\n\n public void onAutoFocus(boolean z, Camera camera) {\n Camera1.this.takePictureInternal();\n }\n });\n } else {\n takePictureInternal();\n }\n }",
"public synchronized void startPreview() {\n OpenCamera theCamera = camera;\n if (theCamera != null && !previewing) {\n theCamera.getCamera().startPreview();\n previewing = true;\n autoFocusManager = new AutoFocusManager(context, theCamera.getCamera());\n }\n }",
"private void startCameraSource() {\n if (cameraSource != null) {\n try {\n if (preview == null) {\n //Log.d(TAG, \"resume: Preview is null\");\n }\n if (graphicOverlay == null) {\n //Log.d(TAG, \"resume: graphOverlay is null\");\n }\n preview.start(cameraSource, graphicOverlay);\n } catch (IOException e) {\n Log.e(TAG, \"Unable to start camera source.\", e);\n cameraSource.release();\n cameraSource = null;\n }\n }\n }",
"public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }",
"private void changeToPhotoIdleView(boolean bl) {\n this.changeLayoutTo(DefaultLayoutPattern.PREVIEW);\n if (!this.isHeadUpDesplayReady()) {\n return;\n }\n super.changeScreenButtonImage(BaseFastViewFinder.HeadUpDisplaySetupState.PHOTO_STANDBY, false);\n if (bl) {\n this.mFocusRectangles.clearExceptTouchFocus();\n } else {\n this.mFocusRectangles.onUiComponentRemoved();\n }\n this.mFocusRectangles.onRecordingStop();\n if (this.mCameraDevice.getCameraId() == 0) {\n super.setSceneIndicatorVisibleAllNotificationIndicators(1);\n }\n this.getBaseLayout().showLeftIconContainer();\n this.setOrientation(this.getOrientation());\n }",
"public void flashlightSwitch()\n {\n usingFlashlight = !usingFlashlight;\n }",
"@FXML\r\n protected void startCamera() {\r\n // set a fixed width for the frame\r\n this.currentFrame.setFitWidth(600);\r\n // preserve image ratio\r\n this.currentFrame.setPreserveRatio(true);\r\n\r\n if (!this.cameraActive) {\r\n\r\n // start the video capture\r\n //this.capture.open(0);\r\n //Read the video (Chage video)\r\n this.capture.open(\"Faruri.m4v\");\r\n\r\n\r\n System.out.println(\"start capture...\");\r\n // is the video stream available?\r\n if (this.capture.isOpened()) {\r\n System.out.println(\"inif\");\r\n this.cameraActive = true;\r\n\r\n // grab a frame every 33 ms (30 frames/sec)\r\n Runnable frameGrabber = new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n // effectively grab and process a single frame\r\n Mat frame = grabFrame();\r\n\r\n//\t\t\t\t\t\t// convert and show the frame\r\n//\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\r\n//\t\t\t\t\t\tupdateImageView(currentFrame, imageToShow);\r\n }\r\n };\r\n\r\n this.timer = Executors.newSingleThreadScheduledExecutor();\r\n this.timer.scheduleAtFixedRate(frameGrabber, 0, 33, TimeUnit.MILLISECONDS);\r\n\r\n // update the button content\r\n this.button.setText(\"Stop Video\");\r\n } else {\r\n // log the error\r\n System.err.println(\"Impossible to open the video...\");\r\n }\r\n } else {\r\n // the camera is not active at this point\r\n this.cameraActive = false;\r\n // update again the button content\r\n this.button.setText(\"Start Video\");\r\n\r\n // stop the timer\r\n this.stopAcquisition();\r\n }\r\n }",
"@Override\n public void onClick(View view) {\n Camera.Parameters parameters = mCamera.getParameters();\n if (flashOn) {\n flash.setImageResource(R.drawable.ic_flash_two);\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n flashOn = false;\n } else {\n flash.setImageResource(R.drawable.ic_flash);\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_ON);\n flashOn = true;\n }\n if (nextCam == Camera.CameraInfo.CAMERA_FACING_BACK)\n mCamera.setParameters(parameters);\n }"
] | [
"0.78712165",
"0.7698052",
"0.76579285",
"0.74596685",
"0.7418055",
"0.73588604",
"0.7352428",
"0.7256642",
"0.70996535",
"0.6919076",
"0.69105726",
"0.689572",
"0.6887343",
"0.6861648",
"0.6848662",
"0.6840549",
"0.68343556",
"0.6829915",
"0.6824862",
"0.6811621",
"0.6802475",
"0.6797835",
"0.6776056",
"0.67404646",
"0.6725066",
"0.6705705",
"0.66752166",
"0.6666865",
"0.66574955",
"0.6649347",
"0.6625234",
"0.6620348",
"0.659671",
"0.65843695",
"0.658017",
"0.6574689",
"0.65702325",
"0.65328074",
"0.652823",
"0.6511632",
"0.64893514",
"0.64640164",
"0.64625686",
"0.64625686",
"0.6462329",
"0.646013",
"0.64366853",
"0.6432173",
"0.642976",
"0.64210147",
"0.6420727",
"0.6415235",
"0.64122325",
"0.6381721",
"0.6370548",
"0.63664466",
"0.6348654",
"0.6348654",
"0.6336597",
"0.63267374",
"0.6324043",
"0.630863",
"0.63018847",
"0.6301645",
"0.6300676",
"0.6300388",
"0.62875277",
"0.62873554",
"0.6266101",
"0.6261592",
"0.6260954",
"0.6241486",
"0.6240612",
"0.6240558",
"0.62323093",
"0.62308383",
"0.6227995",
"0.62201685",
"0.6215269",
"0.61882144",
"0.6178278",
"0.61763144",
"0.6174936",
"0.61685663",
"0.6162639",
"0.61609906",
"0.6146349",
"0.6123873",
"0.6117225",
"0.6117094",
"0.6108349",
"0.61034715",
"0.60964346",
"0.6096316",
"0.6093296",
"0.60921395",
"0.6076594",
"0.60765404",
"0.6075325",
"0.60712856"
] | 0.72449195 | 8 |
Creates a remote user's video UI when they join the video call | public SurfaceView createRemoteUI(Context context, final int uid) {
SurfaceView surfaceV = RtcEngine.CreateRendererView(context);
mRtcEngine.setupRemoteVideo(new VideoCanvas(surfaceV, VideoCanvas.RENDER_MODE_HIDDEN, uid));
surfaceV.layout(0, 0, 20, 10);
return surfaceV;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n setupRemoteVideo(uid);\n }",
"@Override\n public void run() {\n mLogView.logI(\"Remote video starting, uid: \" + (uid & 0xFFFFFFFFL));\n setupRemoteVideo(uid, uid == WINDOW_SHARE_UID ? mRemoteShareContainerSplit : mRemoteCameraContainer);\n }",
"private void onRemoteUserLeft() {\n removeRemoteVideo();\n }",
"private void setupRemoteVideo(int uid, ViewGroup remoteContainer) {\n int count = remoteContainer.getChildCount();\n View view = null;\n for (int i = 0; i < count; i++) {\n View v = remoteContainer.getChildAt(i);\n if (v.getTag() instanceof Integer && ((int) v.getTag()) == uid) {\n view = v;\n }\n }\n if (view != null) {\n return;\n }\n\n // Checks have passed so set up the remote video.\n int renderMode;\n SurfaceView remoteView = RtcEngine.CreateRendererView(getBaseContext());\n if (uid == WINDOW_SHARE_UID) {\n mRemoteShareView = remoteView;\n renderMode = VideoCanvas.RENDER_MODE_FIT;\n } else {\n mRemoteCameraView = remoteView;\n renderMode = VideoCanvas.RENDER_MODE_HIDDEN;\n }\n\n remoteContainer.addView(remoteView);\n mRtcEngine.setupRemoteVideo(new VideoCanvas(remoteView, renderMode, uid));\n remoteView.setTag(uid);\n }",
"protected void startVideoCall() {\n if (!EMClient.getInstance().isConnected())\n Toast.makeText(ChatDetailsActivity.this, R.string.not_connect_to_server, Toast.LENGTH_SHORT).show();\n else {\n startActivity(new Intent(ChatDetailsActivity.this, VideoCallActivity.class).putExtra(\"username\", mBean.getMobile())\n .putExtra(\"isComingCall\", false).putExtra(\"nickname\", mBean.getUser_nickname()));\n // videoCallBtn.setEnabled(false);\n// inputMenu.hideExtendMenuContainer();\n }\n }",
"private void setupRemoteVideo(int uid) {\n int count = mRemoteContainer.getChildCount();\n View view = null;\n for (int i = 0; i < count; i++){\n View v = mRemoteContainer.getChildAt(i);\n if (v.getTag() instanceof Integer && ((int) v.getTag()) == uid) {\n view = v;\n }\n }\n\n if (view != null) {\n return;\n }\n\n mRemoteView = RtcEngine.CreateRendererView(getBaseContext());\n mRemoteContainer.addView(mRemoteView);\n mRtcEngine.setupRemoteVideo(new VideoCanvas(mRemoteView, VideoCanvas.RENDER_MODE_HIDDEN, uid));\n }",
"public MentorConnectRequestCompose addVideo()\n\t{\n\t\tmentorConnectRequestObjects.videoButton.click();\n\t\tmentorConnectRequestObjects.videoURLField.sendKeys(mentorConnectRequestObjects.videoURL);\n\t\tmentorConnectRequestObjects.postVideoButton.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}",
"private void setupLocalVideo() {\n\n // Enable the video module.\n mRtcEngine.enableVideo();\n\n mLocalView = RtcEngine.CreateRendererView(getBaseContext());\n mLocalView.setZOrderMediaOverlay(true);\n mLocalContainer.addView(mLocalView);\n\n mRtcEngine.setupLocalVideo(new VideoCanvas(mLocalView, VideoCanvas.RENDER_MODE_HIDDEN, 0));\n }",
"public void onVideoStarted () {}",
"private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }",
"public void joinChannel() {\n String userId = AuthenticationSingleton.getAdaptedInstance().getUid();\n String token1 = generateToken(userId);\n mRtcEngine.setAudioProfile(Constants.AUDIO_SCENARIO_SHOWROOM, Constants.AUDIO_SCENARIO_GAME_STREAMING);\n int joinStatus = mRtcEngine.joinChannelWithUserAccount(token1, appointment.getId(), userId);\n if (joinStatus == SUCCESS_CODE) {\n appointment.addInCallUser(new DatabaseUser(userId));\n }\n }",
"private void gotRemoteStream(MediaStream stream) {\n //we have remote video stream. add to the renderer.\n final VideoTrack videoTrack = stream.videoTracks.get(0);\n if (mEventUICallBack != null) {\n mEventUICallBack.showVideo(videoTrack);\n }\n// runOnUiThread(() -> {\n// try {\n// binding.remoteGlSurfaceView.setVisibility(View.VISIBLE);\n// videoTrack.addSink(binding.remoteGlSurfaceView);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n// });\n }",
"private void setupPlayer() {\n\n\n\n Video video = createVideoFromUrl(\"https://sonyhdslive-lh.akamaihd.net/i/LIVELINEARCHANNELWAHSD_2@324771/index_100_av-p.m3u8?sd=10&rebase=on&id=AgC2SfL6YBG2JpMHMVl8BkTC0SpVbBy%2frYkaeUHMRu8inYQ3DHLx4I+pRLNhOPyxeLBTSrs2hL4lZw%3d%3d&hdntl=exp=1496471827~acl=%2fi%2f*~data=hdntl~hmac=808df26a60cb28eff4d28a242510d2dba361d9d8658f1e3bbe3090f85e633632\");\n brightcoveVideoView.add(video);\n brightcoveVideoView.start();\n// ImaManager.setupIma(brightcoveVideoView, googleAds);\n\n }",
"@Override\n public void onVideoStarted() {\n }",
"void addVideoListener(CallPeer peer, VideoListener listener);",
"private void removeRemoteVideo() {\n if (mRemoteView != null) {\n mRemoteContainer.removeView(mRemoteView);\n }\n mRemoteView = null;\n }",
"public SurfaceView createLocalUI(Context context) {\n SurfaceView surfaceV = RtcEngine.CreateRendererView(context);\n surfaceV.setZOrderOnTop(true);\n surfaceV.setZOrderMediaOverlay(true);\n mRtcEngine.setupLocalVideo(new VideoCanvas(surfaceV));\n surfaceV.layout(0, 0, 20, 10);\n return surfaceV;\n }",
"private void initVideo(String videoPath) {\n JCVideoPlayerStandard.startFullscreen(this, JCVideoPlayerStandard.class,\n videoPath,\"\");\n\n\n\n\n\n }",
"public void pauseVideoAndRefreshUI() {\n this.mUI.pauseVideo();\n }",
"private void displayVideo(){\n ButtonBack displayVideo = new ButtonBack(\"/view/VideoWindow.fxml\");\n displayVideo.displayVideo(\"winner\",\"Congratulation\");\n }",
"@EventHandler(priority = EventPriority.HIGHEST)\n public void onPlayerJoin(PlayerJoinEvent playerJoinEvent) {\n final Player player = playerJoinEvent.getPlayer();\n\n // Checks if the update notify setting was enabled and if the player has permission to see update notifications\n if(configFile.getBoolean(\"Update_Notify\") && Utilities.checkPermissions(player, true, \"omegavision.update\", \"omegavision.admin\")) {\n // Check the plugins version against the spigotMC and see if it is up-to-date\n new SpigotUpdater(pluginInstance, 73013).getVersion(version -> {\n int spigotVersion = Integer.parseInt(version.replace(\".\", \"\"));\n int pluginVersion = Integer.parseInt(pluginInstance.getDescription().getVersion().replace(\".\", \"\"));\n\n if(pluginVersion >= spigotVersion) {\n Utilities.message(player, \"#00D4FFYou are already running the latest version\");\n return;\n }\n\n PluginDescriptionFile pdf = pluginInstance.getDescription();\n Utilities.message(player,\n \"#00D4FFA new version of #FF4A4A\" + pdf.getName() + \" #00D4FFis avaliable!\",\n \"#00D4FFCurrent Version: #FF4A4A\" + pdf.getVersion() + \" #00D4FF> New Version: #FF4A4A\" + version,\n \"#00D4FFGrab it here:#FF4A4A https://www.spigotmc.org/resources/omegavision.73013/\"\n );\n });\n }\n\n // Add the user to the user data map if they aren't currently in it.\n if(player.getFirstPlayed() == System.currentTimeMillis()) {\n userDataHandler.getUserDataMap().putIfAbsent(player.getUniqueId(), new ConcurrentHashMap<>());\n } else {\n userDataHandler.addUserToMap(player.getUniqueId());\n }\n\n // Check if the Night Vision Login setting was enabled and the player has a\n // true night vision status in the map and permission for night vision long.\n // If so, Apply night vision to them once they have logged in. Otherwise, remove it.\n if(configFile.getBoolean(\"Night_Vision_Settings.Night_Vision_Login\") && (boolean) userDataHandler.getEffectStatus(player.getUniqueId(), UserDataHandler.NIGHT_VISION) && Utilities.checkPermissions(player, true, \"omegavision.nightvision.login\", \"omegavision.nightvision.admin\", \"omegavision.admin\")) {\n Utilities.addPotionEffect(player, PotionEffectType.NIGHT_VISION, 60 * 60 * 24 * 100 ,1, particleEffects, ambientEffects, nightvisionIcon);\n } else {\n userDataHandler.setEffectStatus(player.getUniqueId(), false, UserDataHandler.NIGHT_VISION);\n Utilities.removePotionEffect(player, PotionEffectType.NIGHT_VISION);\n }\n\n if(configFile.getBoolean(\"Night_Vision_Limit.Enabled\")) {\n if((boolean) userDataHandler.getEffectStatus(player.getUniqueId(), UserDataHandler.LIMIT_REACHED)) {\n NightVisionToggle nightVisionToggle = new NightVisionToggle(pluginInstance, player);\n nightVisionToggle.limitResetTimer(player);\n }\n }\n }",
"public void playVideo() {\n }",
"void addPlayRecord(User user, String video_id);",
"private void addRemoteView(String remotePeerId) {\n SurfaceViewRenderer videoView = getVideoView(remotePeerId);\n if (videoView == null) {\n return;\n }\n\n // Remove video from previous parent, if any.\n Utils.removeViewFromParent(videoView);\n\n // Remove any existing VideoView of this remote Peer.\n removePeerView(remotePeerId);\n // Add peer view into 1st remote Peer frame layout that's empty (if any)\n for (FrameLayout peerFrameLayout : videoViewLayouts) {\n if (peerFrameLayout.getChildCount() == 0) {\n peerFrameLayout.addView(videoView);\n break;\n }\n }\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(VideoDetailsActivity.this,\"Reciever fot the result. Do some processing bro\",Toast.LENGTH_LONG).show();\n mVideoView.setVideoURI();\n }",
"private void initiatePlayer() {\n ExoPlayerVideoHandler.getInstance().initiateLoaderController(\n this,\n loadingImage,\n exoPlayerView,\n ExoPlayerVideoHandler.getInstance().getVideoResolution()!=null?ExoPlayerVideoHandler.getInstance().getVideoResolution():getString(R.string.default_resolution),\n this\n );\n ExoPlayerVideoHandler.getInstance().playVideo();\n content = ExoPlayerVideoHandler.getInstance().getCurrentVideoInfo();\n //ExoPlayerVideoHandler.getInstance().goToForeground();\n setSpinnerValue();\n }",
"public VideoUI getVideoUI() {\n return new VideoUI(this.mActivity, this, this.mActivity.getModuleLayoutRoot());\n }",
"private void videoVisible() {\n }",
"public int shareLocalVideo() {\n videoEnabled = !videoEnabled;\n return mRtcEngine.enableLocalVideo(videoEnabled);\n }",
"default void onVideoStarted() {\n }",
"public void showRewardedVideo() {\n\t\tactivity.runOnUiThread(new Runnable()\n\t\t{\n\t\t\t@Override public void run()\n\t\t\t{\n\t\t\t\tif (rewardedVideo == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\trewardedVideo.show();\n\t\t\t}\n\t\t});\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n this.application = Application.getInstance(this.getApplication().getApplicationContext());\n this.devicesManager = application.getDevicesManager();\n this.configurationManager = application.getConfigurationManager();\n\n // This flag will enable certain features that are in preview mode.\n // E.g. Audio / Video capability OnPrem topologies.\n this.configurationManager.enablePreviewFeatures(true);\n\n // Note that the sample enable video over cellular network. This is not the default.\n this.configurationManager.setRequireWiFiForVideo(false);\n\n // Max video channel count needs to be set to view video for more than one participant.\n this.configurationManager.setMaxVideoChannelCount(5);\n\n // Get UI elements.\n this.conversationStateTextView = (TextView)findViewById(R.id.statusTextViewId);\n this.joinMeetingButton = (Button)findViewById(R.id.joinMeetingButtonId);\n this.conversationsIntent = new Intent(this,ConversationsActivity.class);\n\n this.updateUiState();\n\n if (!videoLicenseAccepted) {\n AlertDialog.Builder alertDialogBuidler = new AlertDialog.Builder(this);\n alertDialogBuidler.setTitle(\"Video License\");\n alertDialogBuidler.setMessage(\"You must accept the terms of this license to use Video\");\n alertDialogBuidler.setPositiveButton(\"Accept\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n configurationManager.setEndUserAcceptedVideoLicense();\n videoLicenseAccepted = true;\n }\n });\n alertDialogBuidler.setNegativeButton(\"Decline\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n videoLicenseAccepted = false;\n }\n });\n alertDialogBuidler.show();\n }\n }",
"public UserAwareVideoView(Context context) {\n super(context);\n init(context);\n }",
"@Override\n public void onSuccess(Location location) {\n createVideo(location);\n }",
"@Override\n public void onSuccess(Location location) {\n createVideo(location);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=inflater.inflate(R.layout.fragment_trainee__third, container, false);\n\n Record_button=(Button)v.findViewById(R.id.record_button);\n vView=(VideoView)v.findViewById(R.id.videoView);\n MediaController mediaController = new MediaController(v.getContext());\n mediaController.setAnchorView(vView);\n// set media controller object for a video view\n vView.setMediaController(mediaController);\n Record_button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dispatchTakeVideoIntent();\n\n\n }\n });\n return v;\n\n\n\n }",
"Call createVideoCall(Contact callee)\n throws OperationFailedException;",
"public void goToVideoViewer(Uri vidURI) {\n Log.i(\"progress\",\"goToViewer\");\n\n Intent playerIntent = new Intent(this, VideoActivity.class);\n\n //attaches the video's uri\n playerIntent.putExtra(INTENT_MESSAGE, vidURI.toString());\n startActivity(playerIntent);\n }",
"void addVideoCollection(User user, String video_id);",
"@SuppressWarnings(\"deprecation\")\n @EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\n\tvoid onPlayerJoin(PlayerJoinEvent event)\n\t{\n\t\tPlayer player = event.getPlayer();\n\t\tUUID playerID = player.getUniqueId();\n\t\t\n\t\t//note login time\n\t\tDate nowDate = new Date();\n long now = nowDate.getTime();\n\n\t\t//if player has never played on the server before...\n\t\tif(!player.hasPlayedBefore())\n\t\t{\n\t\t //if in survival claims mode, send a message about the claim basics video (except for admins - assumed experts)\n\t\t if(instance.config_claims_worldModes.get(player.getWorld()) == ClaimsMode.Survival && !player.hasPermission(\"griefprevention.adminclaims\") && this.dataStore.claims.size() > 10)\n\t\t {\n\t\t WelcomeTask task = new WelcomeTask(player);\n\t\t Bukkit.getScheduler().scheduleSyncDelayedTask(instance, task, instance.config_claims_manualDeliveryDelaySeconds * 20L);\n\t\t }\n\t\t}\n\n\t\t//in case player has changed his name, on successful login, update UUID > Name mapping\n\t\tinstance.cacheUUIDNamePair(player.getUniqueId(), player.getName());\n\t}",
"public void recordVideo() {\n\n }",
"public void OnRtcLiveCancelLine(String strPeerId, String strUserName);",
"default void uploadVideo() {\r\n\t\tSystem.out.println(\"upload the video\");\r\n\t}",
"private void toggleScreenShare(View v) {\n\n if(((ToggleButton)v).isChecked()){\n initRecorder();\n recordScreen();\n }\n else\n {\n mediaRecorder.stop();\n mediaRecorder.reset();\n stopRecordScreen();\n\n //play in videoView\n //videoView.setVisibility(View.VISIBLE);\n //videoView.setVideoURI(Uri.parse(videoUri));\n //videoView.start();\n\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\" Location of video : \");\n builder.setMessage(videoUri);\n builder.show();\n\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent i = new Intent(MainActivity.this, PlayVideo.class);\n i.putExtra(\"KEY\", videoUri);\n //Toast.makeText(this, videoUri, Toast.LENGTH_SHORT).show();\n startActivity(i);\n }\n }, 2000);\n Toast.makeText(this, \"Loading video...\", Toast.LENGTH_SHORT).show();\n\n\n\n }\n }",
"@Override\n public void onServerStart(String videoStreamUrl)\n {\n\n\n\n Log.d(\"Activity\",\"URL: \"+ videoStreamUrl);\n\n\n video = (VideoView)findViewById(R.id.video);\n\n Uri uri = Uri.parse(videoStreamUrl);\n video.setVideoURI(uri);\n video.start();\n\n\n\n }",
"public void addMonitors() {\n\t\t// get graphics environment\n\t\tGraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\tGraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices();\n\t\t// let user choose on which screen to show the capturer, only if more than one is connected\n\t\tif (graphicsDevices.length > 1) {\n\t\t\tbuttonPanel.removeAll();\n\t\t\tJLabel screenLabel = new JLabel(getResourceMap().getString(\"screenLabel.text\"));\n\t\t\tbuttonPanel.add(screenLabel, \"wrap, grow, span\");\n\t\t\t// create buttongroup for selecting monitor\n\t\t\tButtonGroup screenButtonGroup = new ButtonGroup();\n\t\t\tInteger defaultMonitorId = videoCapturerFactory.getMonitorIdForComponent(selectedVideoCapturerName);\n\t\t\t// get the default monitor id for this capturer\n\t\t\tfor (GraphicsDevice graphicsDevice : graphicsDevices) {\n\t\t\t\tString monitorIdString = graphicsDevice.getIDstring();\n\t\t\t\tDisplayMode displayMode = graphicsDevice.getDisplayMode();\n\t\t\t\t// final Rectangle position = graphicsDevice.getDefaultConfiguration().getBounds();\n\t\t\t\tString resolution = displayMode.getWidth() + \"x\" + displayMode.getHeight();\n\t\t\t\tJToggleButton button = new JToggleButton(\"<html><center>\" + monitorIdString + \"<br>\" + resolution + \"</center></html>\");\n\t\t\t\tmonitorIdString = monitorIdString.substring(monitorIdString.length() - 1);\n\t\t\t\tbutton.setActionCommand(monitorIdString);\n\t\t\t\tbutton.addActionListener(new ActionListener() {\n\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tAbstractButton source = (AbstractButton) e.getSource();\n\t\t\t\t\t\tString monitorId = source.getActionCommand();\n\t\t\t\t\t\t// TODO pass position here instead of monitor id..\n\t\t\t\t\t\tfirePropertyChange(SelfContained.MONITOR_ID, selectedMonitorId, selectedMonitorId = monitorId);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t\tbutton.setBackground(Color.WHITE);\n\t\t\t\t// set default screen selection\n\t\t\t\tint monitorId = Integer.parseInt(monitorIdString);\n\t\t\t\tif (defaultMonitorId != null && defaultMonitorId == monitorId) {\n\t\t\t\t\tbutton.setSelected(true);\n\t\t\t\t\tscreenButtonGroup.setSelected(button.getModel(), true);\n\t\t\t\t} else {\n\t\t\t\t\tscreenButtonGroup.setSelected(button.getModel(), false);\n\t\t\t\t}\n\t\t\t\tscreenButtonGroup.add(button);\n\t\t\t\tbuttonPanel.add(button, \"height 70!, width 70::, grow\");\n\t\t\t}\n\t\t\tscreenLabel.setVisible(true);\n\t\t\tbuttonPanel.setVisible(true);\n\t\t}\n\t}",
"boolean isCollected(User user, String video_id);",
"public void setVideoDevice(String id);",
"public void startVideoPlayer(Context context, String url) {\n Resource item = new Resource();\n item.setType(context.getString(R.string.typeVideo));\n item.setUrlMain(url);\n context.startActivity(PlayVideoFullScreenActivity.getStartActivityIntent(context, ConstantUtil.BLANK, ConstantUtil.BLANK, PlayVideoFullScreenActivity.NETWORK_TYPE_ONLINE, (Resource) item));\n }",
"public Connection invoke(final PeerClient remoteClient) {\n final RemoteMedia remoteMedia = new RemoteMedia(context, enableH264, !enableAudioReceive, !enableVideoReceive, aecContext);\n final AudioStream audioStream = new AudioStream(enableAudioSend ? localMedia.getAudioTrack().getOutputs() : null, enableAudioReceive ? remoteMedia.getAudioTrack().getInputs() : null);\n final VideoStream videoStream = new VideoStream(enableVideoSend ? localMedia.getVideoTrack().getOutputs() : null, enableVideoReceive ? remoteMedia.getVideoTrack().getInputs() : null);\n\n final Connection connection;\n\n // Add the remote view to the layout.\n layoutManager.addRemoteView(remoteMedia.getId(), remoteMedia.getView());\n\n mediaTable.put(remoteMedia.getView(), remoteMedia);\n fragment.registerForContextMenu(remoteMedia.getView());\n remoteMedia.getView().setOnTouchListener(fragment);\n\n if (enableDataChannel) {\n DataChannel channel = new DataChannel(\"mydatachannel\") {{\n setOnReceive(new IAction1<DataChannelReceiveArgs>() {\n @Override\n public void invoke(DataChannelReceiveArgs dataChannelReceiveArgs) {\n android.util.Log.w(\"--ICELINK LIB--\",\"\\n------- About to get 'name' bounds records 1 [App.java]...\");\n /*\n String name = remoteClient.getBoundRecords().get(\"name\").getValueJson();\n name = name.substring(1, name.length() - 1);\n */\n textListener.onReceivedText(ProviderName, dataChannelReceiveArgs.getDataString());\n }\n });\n\n addOnStateChange(new IAction1<DataChannel>() {\n @Override\n public void invoke(DataChannel dataChannel) {\n android.util.Log.w(\"--ICELINK LIB--\",\"\\n------- About to get 'name' bounds records 2 [App.java]...\");\n /*\n String name = remoteClient.getBoundRecords().get(\"name\").getValueJson();\n name = name.substring(1, name.length() - 1);\n */\n if (dataChannel.getState() == DataChannelState.Connected) {\n synchronized (channelLock)\n {\n dataChannels.add(dataChannel);\n }\n textListener.onPeerJoined(ProviderName);\n } else if (dataChannel.getState() == DataChannelState.Closed || dataChannel.getState() == DataChannelState.Failed) {\n synchronized (channelLock)\n {\n dataChannels.remove(dataChannel);\n }\n\n textListener.onPeerLeft(ProviderName);\n }\n }\n });\n }};\n\n DataStream dataStream = new DataStream(channel);\n connection = new Connection(new Stream[]{audioStream, videoStream, dataStream});\n } else {\n connection = new Connection(new Stream[]{audioStream, videoStream});\n }\n\n connection.setIceServers(iceServers);\n\n connection.addOnStateChange(new fm.icelink.IAction1<Connection>() {\n public void invoke(Connection c) {\n // Remove the remote view from the layout.\n if (c.getState() == ConnectionState.Closing ||\n c.getState() == ConnectionState.Failing) {\n if (layoutManager.getRemoteView(remoteMedia.getId()) != null) {\n layoutManager.removeRemoteView(remoteMedia.getId());\n remoteMedia.destroy();\n }\n }\n }\n });\n\n return connection;\n }",
"@Override\n\tpublic void videoStart() {\n\t\t\n\t}",
"public void startPrivateChannelBtn(View v) {\n String myName = FirebaseAuth.getInstance().getCurrentUser().getDisplayName();\n String hisName = user.getDisplayName();\n String cidun;\n\n if (myName.compareTo(hisName) < 0) {\n cidun = myName + \"-\" + hisName;\n } else {\n cidun = hisName + \"-\" + myName;\n }\n\n String cid = cidun.replaceAll(\"\\\\s\",\"\")\n .replaceAll(\"[åäöÅÄÖ]\",\"\");\n\n\n Database.setPrivate(cid, true, res -> {\n Map<String, Boolean> data = new HashMap<String, Boolean>() {{\n put(myName, true);\n put(hisName, true);\n }};\n Database.channelSubscribe(cid, data, r -> {});\n });\n\n Fragment fragment = ChatFragment.newInstance(cid);\n AppCompatActivity activity = (AppCompatActivity)v.getContext();\n\n activity.getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment_container, fragment, cid)\n .addToBackStack(cid)\n .commit();\n\n Log.d(\"New channel\" , \"\" + cid);\n\n }",
"@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case PLAY_VIDEO:\n JCVideoPlayer.releaseAllVideos();\n /* if (topVideoList.size() == 1) {\n videoplayer.setUp(topVideoList.get(videotype).getPath()\n , JCVideoPlayerStandard.SCREEN_LAYOUT_NORMAL, \"视频播放\");\n } else {\n videoplayer.setUp(topVideoList.get(videotype).getPath()\n , JCVideoPlayerStandard.SCREEN_LAYOUT_NORMAL, \"视频播放\");\n if (videotype == topVideoList.size() - 1) {\n videotype = 0;\n } else {\n videotype++;\n }\n }*/\n if (videotype == 0) {\n videoplayer.setUp(Constant.fileSavePath + \"lx2.mp4\"\n , JCVideoPlayerStandard.SCREEN_LAYOUT_NORMAL, \"视频播放\");\n videotype = 1;\n } else {\n videoplayer.setUp(Constant.fileSavePath + \"lx1.mp4\"\n , JCVideoPlayerStandard.SCREEN_LAYOUT_NORMAL, \"视频播放\");\n videotype = 0;\n }\n videoplayer.startVideo();\n break;\n case PLAY_BANNER:\n loadTestDatas();\n break;\n case PLAY_BANNERAPAWAIT:\n loadTestApawaitDatas();\n break;\n case PLAY_VIDEOHEIGHT:\n ViewGroup.LayoutParams params = rel_top.getLayoutParams();\n if (msg.arg1 == 1) {\n params.height = 506;\n } else if (msg.arg1 == 2) {\n params.height = 607;\n }\n rel_top.setLayoutParams(params);\n break;\n case PY_START:\n cabinetTransaction.start(Constant.pypwd, Constant.dev, Constant.pytype, 1, Constant.guiBean.getNumber(), cabinetTransactionEventListener);\n break;\n case 12345:\n tvloginfo.setText(msg.obj.toString());\n break;\n case MSG_CLOSE_CHECK_PENDING:\n Log.i(\"TCP\", \"开始添加\");\n synchronized (boxesPendingList) {\n for (int i = 0; i < boxesPendingList.length; i++) {\n if (boxesPendingList[i].boxId == 0) {//无效的格子编号,当前位置 可以存储格子数据\n try {\n Thread.sleep(500);\n CloseCheckBox closeCheckBox = (CloseCheckBox) msg.obj;\n boxesPendingList[i] = closeCheckBox;\n } catch (InterruptedException e) {\n e.printStackTrace();\n Log.i(\"TCP\", \">锁boxesPendingList2<\" + e.toString());\n }\n break;\n }\n }\n }\n Log.i(\"TCP\", \"结束添加\");\n break;\n default:\n break;\n }\n }",
"private void handleUI() {\r\n // Start/stop camera\r\n btnCam.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent e) {\r\n if (!camRunning) {\r\n videoStream = new ClientVideoStream(imageView);\r\n videoThread = new Thread(videoStream);\r\n videoThread.start();\r\n new Thread(new Client(MsgType.START_VIDEO_STREAM)).start();\r\n btnCam.setText(\"Stop camera\");\r\n camRunning = true;\r\n }\r\n else {\r\n btnCam.setText(\"Stop camera\");\r\n try {\r\n videoStream.terminate();\r\n } catch (Exception ex) {\r\n System.out.println(\"Failed to stop camera\");\r\n }\r\n camRunning = false;\r\n }\r\n }\r\n });\r\n // Toggle man/auto\r\n btnManAut.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent e) {\r\n if (manualMode) {\r\n new Thread(new Client(MsgType.MANUAL)).start();\r\n btnManAut.setText(\"Manual\");\r\n }\r\n else {\r\n new Thread(new Client(MsgType.AUTO)).start();\r\n btnManAut.setText(\"Auto\");\r\n }\r\n manualMode = !manualMode;\r\n }\r\n });\r\n }",
"public abstract void videoMessage(Message m);",
"public void onVideoCallStart(int dwUserId, int dwFlags, int dwParam,\r\n\t\t\tString szUserStr) {\n\t\tstopSessionMusic();\r\n\t\tsessionItem = new SessionItem(dwFlags, selfUserId, dwUserId);\r\n\t\tsessionItem.setRoomId(dwParam);\r\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(mContext, VideoActivity.class);\r\n\t\tmContext.startActivity(intent);\r\n\t}",
"public interface VideoThreadShow {\n void AddMySurfaceView(int threadnum);\n void DeleMySurfaceView(int threadnum);\n void TryAddVideoThread();//开启新的线程\n void ShowBitmap(Bitmap bitmap,int sufacenum);\n void ToastShow(String ss);\n ServerSocket getServerSocket();\n Handler GetUIHandler();\n void StopActivity();\n}",
"@Override\n public void onClick(View v) {\n View viewVideo = LayoutInflater.from(mContext).inflate(R.layout.dialog_video,null);\n AlertDialog.Builder layoutDialogVideo = new AlertDialog.Builder(mContext);\n\n VideoView vvVideoView = viewVideo.findViewById(R.id.vv_dialogVideo_video);\n vvVideoView.setVideoPath(item.getVideo());\n vvVideoView.seekTo(0);\n vvVideoView.start();\n MediaController mediaController = new MediaController(mContext);\n vvVideoView.setMediaController(mediaController);\n mediaController.setMediaPlayer(vvVideoView);\n\n layoutDialogVideo.setView(viewVideo);\n Dialog dialogVideo = layoutDialogVideo.create();\n\n dialogVideo.show();\n }",
"public void gotoVideoLandingPage(){\r\n\t\twebAppDriver.get(baseUrl+\"/videos.aspx\");\r\n\t\t//need to add verification text\r\n\t}",
"private void initEngine() {\n // This is our usual steps for joining a channel and starting a call.\n try {\n // Initialize the Agora RtcEngine.\n mRtcEngine = RtcEngine.create(getBaseContext(), getString(R.string.agora_app_id), mRtcEventHandler);\n\n // Set the channel profile to Live Broadcast and role to Broadcaster (in order to be heard by others).\n mRtcEngine.setChannelProfile(Constants.CHANNEL_PROFILE_LIVE_BROADCASTING);\n mRtcEngine.setClientRole(Constants.CLIENT_ROLE_BROADCASTER);\n\n // Enable video capturing and rendering once at the initialization step.\n // Note: audio recording and playing is enabled by default.\n mRtcEngine.enableVideo();\n\n // Disable the local video capturer.\n mRtcEngine.enableLocalVideo(false);\n\n /*\n // This is only needed if capturing local camera, which we currently are not.\n // Please go to this page for detailed explanation\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af5f4de754e2c1f493096641c5c5c1d8f\n mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(\n VideoEncoderConfiguration.VD_640x360,\n VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_15,\n VideoEncoderConfiguration.STANDARD_BITRATE,\n VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));\n // This is used to set a local preview.\n // The steps setting local and remote view are very similar.\n // But note that if the local user do not have a uid or do\n // not care what the uid is, he can set his uid as ZERO.\n // The Agora server will assign one and return the uid via the event\n // handler callback function (onJoinChannelSuccess) after\n // joining the channel successfully.\n mLocalView = RtcEngine.CreateRendererView(getBaseContext());\n mLocalView.setZOrderMediaOverlay(true);\n mRemoteCameraContainer.addView(mLocalView);\n mRtcEngine.setupLocalVideo(new VideoCanvas(mLocalView, VideoCanvas.RENDER_MODE_HIDDEN, 0));\n */\n } catch (Exception e) {\n Log.e(TAG, Log.getStackTraceString(e));\n throw new RuntimeException(\"FATAL ERROR! Check rtc sdk init\\n\" + Log.getStackTraceString(e));\n }\n }",
"abstract public VideoActivationPolicy createVideoActivationPolicy();",
"public void takevideo() {\nSystem.out.println(\"take a video\");\r\n}",
"@Override\n public void videoStarted() {\n super.videoStarted();\n img_playback.setImageResource(R.drawable.ic_pause);\n if (isMuted) {\n muteVideo();\n img_vol.setImageResource(R.drawable.ic_mute);\n } else {\n unmuteVideo();\n img_vol.setImageResource(R.drawable.ic_unmute);\n }\n }",
"boolean isLocalVideoAllowed(Call call);",
"private void launchRemote(Stage stage) throws Exception { \n\t\tmenuMessage.setText(\"Game will start as soon as the client is connected...\"); \n\t\t\n\t\t// thread of the server connecting to the game and of the game \n\t\tThread serverThread = new Thread(() -> { \n\t\t\tRemotePlayerServer server = new RemotePlayerServer(new GraphicalPlayerAdapter()); \n\t\t\tserver.run(); \n\t\t }); \n\t\tserverThread.setDaemon(true); \n\t\tserverThread.start(); \n\t }",
"@Override\n protected void onResume() {\n // Call up to the superclass.\n super.onResume();\n\n // Register BroadcastReceiver that receives result from\n // UploadVideoService when a video upload completes.\n registerReceiver();\n if(!videoPresentOnDevice()){\n // Todo show download button\n mDownloadButton.setVisibility(View.VISIBLE);\n mDownloadButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Todo start downloading via DownloadVideoService\n getOps().downloadVideo();\n }\n });\n\n }\n }",
"public void onButoonClick(View v) {\n JitsiMeetConferenceOptions options\n = new JitsiMeetConferenceOptions.Builder()\n .setRoom(text)\n .setVideoMuted(false)\n .setWelcomePageEnabled(false)\n .setFeatureFlag(\"invite.enabled\", true)\n .setFeatureFlag(\"meeting-password.enabled\", true)\n .setFeatureFlag(\"live-streaming.enabled\", false)\n .setFeatureFlag(\"calendar.enabled\", false)\n .setFeatureFlag(\"add-people.enabled\", false)\n .setFeatureFlag(\"call-integration.enabled\", false)\n .setFeatureFlag(\"pip.enabled\", true)\n .setFeatureFlag(\"recording.enabled\", false)\n .setFeatureFlag(\"close-captions.enabled\", false)\n .setFeatureFlag(\"meeting-name.enabled\", false)\n .build();\n // Launch the new activity with the given options. The launch() method takes care\n // of creating the required Intent and passing the options.\n JitsiMeetActivity.launch(this, options);\n overridePendingTransition(R.anim.right_in, R.anim.left_out);\n Vibrator y = (Vibrator) getApplicationContext().getSystemService(Context.VIBRATOR_SERVICE);\n assert y != null;\n y.vibrate(300);\n Toast.makeText(getApplicationContext(),\n \"Creating your room..\",\n Toast.LENGTH_LONG)\n .show();\n }",
"public ABLVideo Video() {\r\n \treturn new ABLVideo(BrickFinder.getDefault().getVideo());\r\n }",
"@Override\n public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTubePlayer, boolean b) {\n if (!b) {\n youTubePlayer.setFullscreen(true);\n youTubePlayer.loadVideo(movie.getVideoKey());\n }\n }",
"void onVideoInputSelected(int type);",
"private boolean joinGame() throws RemoteException{\n\t\tgui.showLoginWindow(playerDetails);\n\n\t\twhile(!gui.isUserDataAvailable()){\n\t\t\t// wait for user to enter details\n\t\t\tDebug.log(\"MainMenu\", \"waiting for player details\");\n\t\t\ttry{\n\t\t\t\tThread.sleep(1000);\n\t\t\t}catch(InterruptedException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t}\n\t\t}\n\t\tplayerDetails = gui.getPlayerDetails();\n\t\tDebug.log(\"MainMenu\", \"player details received!\");\n\n\t\tif(playerDetails == null) quitGame(false); // quit if player declined/cancelled to enter details\n\n\t\t/* Get preferred position */\n\t\tpreferredPosition = gui.getPreferredPosition();\n\n\t\t/* Register this client as Callback */\n\t\treturn server.connect(this, myHost, myPort, preferredPosition, false, playerDetails.getFirstName(), playerDetails.getSurname(),\n\t\t\t\tplayerDetails.getAddress(), playerDetails.getPhone(), playerDetails.getUsername(), playerDetails.getPassword());\n\t}",
"@FXML\n public void btnCreateLobby(Event e)\n {\n Player player = PlayerSingleton.getPlayer();\n LobbyPlayer lobbyPlayer = new LobbyPlayer(player.getUniqueId(), player.getName());\n try {\n if(LobbyServerConnection.getInstance().createLobby(lobbyPlayer))\n {\n //lobby created / do nothing\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Notification\");\n\n // Header Text: null\n alert.setHeaderText(null);\n alert.setContentText(\"you are already in a lobby!\");\n\n alert.showAndWait();\n }\n } catch (RemoteException e1) {\n log.warning(e1.toString());\n }\n }",
"public void open(Plugin plugin, SpoutPlayer splayer) {\n\n GenericPopup popup = new GenericPopup();\n int width = splayer.getMainScreen().getMaxWidth();\n int height = splayer.getMainScreen().getMaxHeight();\n pluginLeg.log(\"aight\" + width + \"\" + height);\n\n// int width = splayer.getCurrentScreen().getWidth();\n// int height = splayer.getCurrentScreen().getHeight();\n\n //title of the screen\n GenericLabel topLabel = new GenericLabel(\"Clan-Invitation\");\n topLabel.setScale(1);\n\n topLabel.setWidth(topLabel.getText().length() * 8 * (int) topLabel.getScale()).setHeight((int) topLabel.getScale() * 15);\n\n topLabel.setX(width / 2 - topLabel.getWidth() / 2);\n topLabel.setY(topLabel.getHeight() / 2 + 5);\n popup.attachWidget(plugin, topLabel);\n\n //title of the screen\n String questionString = \"&2You are invited to \"+clan.getName()+\". Do you want to join?\";\n GenericLabel questionLabel = new GenericLabel(LegendaryClans.parseColor(questionString));\n questionLabel.setScale(1);\n questionLabel.setWidth(questionLabel.getText().length() * 5 * (int) questionLabel.getScale());\n questionLabel.setHeight((int) questionLabel.getScale() * 15);\n\n questionLabel.setX(width / 2 - questionLabel.getWidth() / 2);\n questionLabel.setY(height / 2 - questionLabel.getHeight() / 2);\n popup.attachWidget(plugin, questionLabel);\n\n //Accept Button\n LegendaryButton acceptButton = new LegendaryButton(LegendaryClans.parseColor(\"&2Accept!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n if (pluginLeg.getClanManager().getClanByPlayer(clan.getLeaders().get(0)) != null && askedPlayer != null) {\n clan.addMember(askedPlayer);\n } \n getPopup().close();\n }\n };\n\n\n acceptButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale()).setHeight((int) acceptButton.getScale() * 15);;\n acceptButton.setX(width / 2 + width / 4 - acceptButton.getWidth() / 2).setY(height / 2 + height / 4 - acceptButton.getHeight() / 2);\n\n\n popup.attachWidget(plugin, acceptButton);\n //deny button\n LegendaryButton denieButton = new LegendaryButton(LegendaryClans.parseColor(\"&4Deny!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n clan.broadcastMessage(\"&4\" + askedPlayer.getName() + \" denied invitation!\");\n getPopup().close();\n }\n };\n\n denieButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale());\n denieButton.setHeight((int) denieButton.getScale() * 15);\n// \n// ((LegendaryClans)plugin).log(\"\"+width+\",\"+height);\n// denieButton.setX(denieButton.getX()+denieButton.getWidth()/2 +10);\n\n denieButton.setX(width / 4 - denieButton.getWidth() / 2);\n denieButton.setY(height / 2 + height / 4 - denieButton.getHeight() / 2);\n popup.attachWidget(plugin, denieButton);\n\n splayer.closeActiveWindow();\n splayer.getMainScreen().attachPopupScreen(popup);\n }",
"public void setVideo(String video) {\n this.video = video;\n }",
"private void setUpMediaPlayer(){\n //Inicializar Media PLayer\n mGlue = new LiveMediaPlayerGlue(getActivity(),this) {\n @Override\n protected void onRowChanged(PlaybackControlsRow row) {\n\n }\n };\n\n //Fragment de Video\n Fragment videoSurfaceFragment = getFragmentManager()\n .findFragmentByTag(VideoSurfaceFragment.TAG);\n\n SurfaceView surface = (SurfaceView) videoSurfaceFragment.getView();\n surface.getHolder().addCallback(new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder holder) {\n mGlue.setDisplay(holder);\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n mGlue.resetPlayer();\n mGlue.releaseMediaSession();\n mGlue.setDisplay(null);\n mGlue.enableProgressUpdating(false);\n ;\n }\n });\n }",
"private void injectVideoEventListeners() {\n\t\tmWebView.loadUrl(\"javascript:(function() {\"\n\t\t\t\t+ \t\"console.log('this is a test msg');\"\n\t\t\t\t+ \t\"var logMsg = function(msg) {\"\n\t\t\t\t+ \t\t\"window.\" + MeynVideoJsInterface.JS_API_NAME + \".log(msg);\"\n\t\t\t\t+ \t\"};\"\n\t\t\t\t+ \t\"var bodyElem = document.querySelector('body');\"\n\t\t\t\t+ \t\"var videoElem = document.querySelector('video');\"\n\t\t\t\t+\t\"var videoEvents = ['abort','canplay','canplaythrough',\"\n\t\t\t\t+ \t\t\"'durationchange','emptied','error','loadeddata',\"\n\t\t\t\t+ \t\t\"'loadedmetadata','loadstart','pause','play','playing',\"\n\t\t\t\t+ \t\t\"'progress','ratechange','resize','seeked','seeking',\"\n\t\t\t\t+ \t\t\"'stalled','suspend','volumechange','waiting'];\"\n\t\t\t\t+ \t\"var setupVideoEventListeners = function(elem) {\"\n\t\t\t\t+ \t\t\"logMsg('video element: ' + elem.outerHTML);\"\n\t\t\t\t+ \t\t\"for (var eventIndex in videoEvents) {\"\n\t\t\t\t+ \t\t\t\"elem.addEventListener(videoEvents[eventIndex], function(e) {\"\n\t\t\t\t+ \t\t\t\t\"e = e || window.event;\"\n\t\t\t\t+ \t\t\t\t\"var el = e.target;\"\n\t\t\t\t+ \t\t\t\t\"var str = e.type + ':{duration:' + el.duration + ', currentTime:' + el.currentTime + '}';\"\n\t\t\t\t+ \t\t\t\t\"logMsg(str);\"\n\t\t\t\t+ \t\t\t\"}, false);\"\n\t\t\t\t+ \t\t\"}\"\n\t\t\t\t+\t\t\"elem.addEventListener('timeupdate', function(e) {\"\n\t\t\t\t+\t\t\t\"e = e || window.event;\"\n\t\t\t\t+ \t\t\t\"var el = e.target;\"\n\t\t\t\t+ \t\t\t\"logMsg(e.type + ':{currentTime:' + el.currentTime + '}');\"\n\t\t\t\t+ \t\t\"}, false);\"\n\t\t\t\t+ \t\t\"elem.addEventListener('ended', function(e) {\" // handle ended event separately\n\t\t\t\t+ \t\t\t\"e = e || window.event;\"\n\t\t\t\t+ \t\t\t\"var el = e.target;\"\n\t\t\t\t+ \t\t\t\"logMsg(e.type + ' {duration:' + el.duration + ', currentTime:' + el.currentTime + '}');\"\n\t\t\t\t+\t\t\t\"window.\" + MeynVideoJsInterface.JS_API_NAME + \".onPlaybackEnded(el.currentTime);\"\n\t\t\t\t+ \t\t\"}, false);\"\n\t\t\t\t+ \t\"};\"\n\t\t\t\t+ \t\"var nodeInsertedListener = function(e) {\"\n\t\t\t\t+ \t\t\"e = e || window.event;\"\n\t\t\t\t+ \t\t\"if (e.target.tagName === 'VIDEO') {\"\n\t\t\t\t+ \t\t\t\"setupVideoEventListeners(e.target);\"\n\t\t\t\t+ \t\t\t\"bodyElem.removeEventListener('DOMNodeInserted', nodeInsertedListener, false);\"\n\t\t\t\t+ \t\t\"}\"\n\t\t\t\t+ \t\"};\"\n\t\t\t\t+ \t\"if (videoElem) {\"\n\t\t\t\t+ \t\t\"setupVideoEventListeners(videoElem);\"\n\t\t\t\t+ \t\"} else {\"\n\t\t\t\t+ \t\t\"bodyElem.addEventListener('DOMNodeInserted', nodeInsertedListener, false);\"\n\t\t\t\t+ \t\"}\"\n\t\t\t\t+\t\"setTimeout(function() {window.\" + MeynVideoJsInterface.JS_API_NAME + \".readyToPlay();}, 0);\"\n\t\t\t\t+ \"})();\");\n\t}",
"public boolean videoDisplayEnabled();",
"public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }",
"public void onShowCameraClicked(View view) {\n if (mUIState == UIState.CONNECTED_FULLSCREEN) {\n // Toggle to split screen while showing remote camera\n if (mRemoteCameraUid != 0)\n setupRemoteVideo(mRemoteCameraUid, mRemoteCameraContainer);\n removeRemoteShare();\n setupRemoteVideo(WINDOW_SHARE_UID, mRemoteShareContainerSplit);\n setUIState(UIState.CONNECTED_SPLITSCREEN);\n } else if (mUIState == UIState.CONNECTED_SPLITSCREEN) {\n // Toggle to full screen while hiding remote camera\n removeRemoteCamera();\n removeRemoteShare();\n setupRemoteVideo(WINDOW_SHARE_UID, mRemoteShareContainerFull);\n setUIState(UIState.CONNECTED_FULLSCREEN);\n }\n }",
"private void createServerSelectScreen() {\n\t\tserverSelectGroup = new VerticalGroup();\n\t\tserverSelectGroup.setVisible(false);\n\t\t\n\t\tserverSelectGroup.setSize(WIDTH/2, HEIGHT/2);\n\t\tserverSelectGroup.setPosition(WIDTH/2 - serverSelectGroup.getWidth()/2, HEIGHT/2 - serverSelectGroup.getHeight()/2);\n\t\t\n\t\tTextButtonStyle smallStyle = new TextButtonStyle();\n\t\tsmallStyle.font = fontMedium;\n\t\t\n\t\tserverList = new TextButton(\"Server\", smallStyle);\n\t\tserverList.addListener(new InputListener(){\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tif(networkManager != null)\n\t\t\t\t\tnetworkManager.connectToServer();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tserverSelectGroup.setVisible(false);\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tserverSelectGroup.addActor(serverList);\n\t\tstage.addActor(serverSelectGroup);\n\t}",
"public void setNativeVideoWindowId(Object id);",
"@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }",
"public Player createLocalPlayer(String soundCardName, String videoDisplayName, Object windowId);",
"public interface IVideoView {\n\n public void showLoading();\n\n public void clearLoading();\n\n public void showSuccess(VideoEvent videoEvent);\n\n public void showError();\n\n}",
"public interface VideoClickHandler {\n\n void onClick(Video video);\n }",
"@Override\n public void onVideoEnd() {\n super.onVideoEnd();\n }",
"public void onReturnMainScreen() {\r\n\t\tif (mVideoView != null) {\r\n\t\t\tmVideoView.stopPlayback();\r\n\t\t\tmVideoView.setVisibility(View.GONE);\r\n\t\t}\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tMap<String,String>map=new HashMap<String,String>();\n\t\t\t\tmap.put(\"videoID\", object.videoID);\n\t\t\t\tmap.put(\"videoname\", object.videoname);\n\t\t\t\tString albumVideoImgUrl=CommonUrl.baseUrl + object.videoImgUrl +\".small\"+ object.suffix;\n\t\t\t\tmap.put(\"videoImgUrl\", albumVideoImgUrl);\n\t\t\t\tCommonUtil.jumpToPlayerActivity(context, map);\n\t\t\t}",
"Builder addVideo(VideoObject value);",
"public void createVideo(Context context, AugmentedImage image, int augmentedImageIndex) {\n this.image = image;\n\n\n\n CompletableFuture.allOf(AugmentedImageActivity.videoRenderable)\n .handle((notUsed, throwable) -> {\n // When you build a Renderable, Sceneform loads its resources in the background while\n // returning a CompletableFuture. Call handle(), thenAccept(), or check isDone()\n // before calling get().\n\n if (throwable != null) {\n return null;\n }\n\n try {\n // Sets the texture to the texture defined using (new ExternalTexture()) -> the video's surface is on that texture.\n AugmentedImageActivity.videoPlacedRenderable = AugmentedImageActivity.videoRenderable.get();\n AugmentedImageActivity.videoPlacedRenderable.getMaterial().setExternalTexture(\"videoTexture\", texture);\n AugmentedImageActivity.videoPlacedRenderable.getMaterial().setFloat4(\"keyColor\", CHROMA_KEY_COLOR);\n\n // Everything finished loading successfully.\n } catch (InterruptedException | ExecutionException ex) {\n }\n\n return null;\n });\n\n if (!frame_lr.isDone() || !frame_ll.isDone() || !frame_ur.isDone() || !frame_ul.isDone()) {\n CompletableFuture.allOf(frame_ll, frame_lr, frame_ul, frame_ur)\n .thenAccept((Void aVoid) -> setImage(image, augmentedImageIndex))\n .exceptionally(\n throwable -> {\n Log.e(TAG, \"Exception loading\", throwable);\n return null;\n });\n }\n\n Node fullnode;\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(-0.5f * image.getExtentX(), 0.0f, 0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion lowerLeft = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), lowerLeft));\n fullnode.setRenderable(frame_ll.getNow(null));\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(0.5f * image.getExtentX(), 0.0f, 0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion lowerRight = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), lowerRight));\n fullnode.setRenderable(frame_lr.getNow(null));\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(-0.5f * image.getExtentX(), 0.0f, -0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion upperLeft = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), upperLeft));\n fullnode.setRenderable(frame_ul.getNow(null));\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(0.5f * image.getExtentX(), 0.0f, -0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion upperRight = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), upperRight));\n fullnode.setRenderable(frame_ur.getNow(null));\n\n // augmentedImageIndex is taken from the arguments of this method - (setImage)\n AugmentedImageActivity.augmentedImageVideoPlayerIndex = augmentedImageIndex;\n // Set the anchor based on the center of the image.\n setAnchor(image.createAnchor(image.getCenterPose()));\n\n\n // videoNode is created and will be placed on the image, directly parallel to the image.\n videoNode = new Node();\n videoNode.setParent(this);\n\n\n float videoWidth = nodeMediaPlayer.getVideoWidth();\n float videoHeight = nodeMediaPlayer.getVideoHeight();\n\n videoNode.setLocalScale(\n new Vector3(\n VIDEO_HEIGHT_METERS * (videoWidth / videoHeight), VIDEO_HEIGHT_METERS, 1.4f));\n\n\n // Sets the video's position from perpendicular to the image to parallel to the detected image.\n Quaternion q1 = videoNode.getLocalRotation();\n Quaternion q2 = Quaternion.axisAngle(new Vector3(1.0f, 0f, 0f), -90f);\n videoNode.setLocalPosition(new Vector3(0.0f, 0.0f, 0.07f)); // x, z, y\n videoNode.setLocalRotation(Quaternion.multiply(q1, q2));\n\n // If the video is not playing, it will be started.\n if (!nodeMediaPlayer.isPlaying()) {\n nodeMediaPlayer.start();\n // Wait to set the renderable until the first frame of the video becomes available.\n // This prevents the renderable from briefly appearing as a black quad before the video\n // plays.\n texture\n .getSurfaceTexture()\n .setOnFrameAvailableListener(\n (SurfaceTexture surfaceTexture) -> {\n videoNode.setRenderable(AugmentedImageActivity.videoPlacedRenderable);\n texture.getSurfaceTexture().setOnFrameAvailableListener(null);\n\n });\n } else {\n videoNode.setRenderable(AugmentedImageActivity.videoPlacedRenderable);\n }\n\n Log.d(\"node\", \"creating!!!\");\n\n }",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t\tloadprofiletinfo(MainActivity.website+\"/video/search?ss=artist&so=most_voted&sp=\"+uid);\n\t\t\tMessage msglvpro= new Message();\n\t msglvpro.what=1;\n\t handlerlvpro.sendMessage(msglvpro);\n \t \n }",
"public void onClick(View v) {\n\t\t\t\tSystem.out.println(\"to video_set\");\n\t\t\t\tIntent intent = new Intent(MainMenuActivity.this,\n\t\t\t\t\t\tapp_video_Activity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"void joinGame(String playeruuid);",
"public void setVideoUserUserName(java.lang.String videoUserUserName) {\n this.videoUserUserName = videoUserUserName;\n }",
"public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);",
"@Override\n\tpublic void videoComplete() {\n\t\t\n\t}",
"public void enableVideoDisplay(boolean enable);",
"@Override\n public void onClick(View view) {\n if (!Constants.getActivateBottomNavigationWidgetButton().equals(\"Video\")) {\n disabledActivateBottomNavigationWidgetButton();\n\n videoButton.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.ic_video, 0, 0);\n videoButton.setTypeface(null, Typeface.BOLD);\n videoButton.setTextColor(getResources().getColor(R.color.bottom_navigation_widget_button_enable_color));\n\n Utils.showLibrary(LibraryActivity.this, \"video\");\n Utils.triggerGAEvent(LibraryActivity.this, \"BottomNavigation\", \"Video\", customerId);\n }\n }",
"public void run() {\n SimpleChatUI firstWin = new SimpleChatUI();\n windows.add(firstWin);\n firstWin.setVisible(true);\n hub = new HubSession(new LoginCredentials(new ChatKeyManager(CHAT_USER)));\n\n firstWin.setStatus(\"No active chat\");\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(context, MainVideo.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}"
] | [
"0.6799223",
"0.67834175",
"0.6603219",
"0.6600642",
"0.65871906",
"0.65048945",
"0.6181183",
"0.6103319",
"0.60457826",
"0.59914255",
"0.58953524",
"0.5890524",
"0.5767954",
"0.57529867",
"0.56756204",
"0.56477875",
"0.5645435",
"0.5566295",
"0.55595326",
"0.55517566",
"0.5550116",
"0.5545808",
"0.55440736",
"0.5543247",
"0.55353796",
"0.55208457",
"0.55027014",
"0.5499399",
"0.5485508",
"0.5483365",
"0.5469114",
"0.5463543",
"0.54626274",
"0.54604286",
"0.54604286",
"0.5459599",
"0.542463",
"0.5418698",
"0.54172146",
"0.5413329",
"0.5383564",
"0.5378099",
"0.5377857",
"0.5377032",
"0.5374895",
"0.53667855",
"0.5363633",
"0.5356177",
"0.5333012",
"0.5324231",
"0.5313364",
"0.53073716",
"0.53064984",
"0.5302694",
"0.52931535",
"0.5291836",
"0.5273053",
"0.52725786",
"0.52690804",
"0.52350163",
"0.5233568",
"0.5232501",
"0.52268064",
"0.522189",
"0.5220748",
"0.52153057",
"0.52072406",
"0.5206044",
"0.51992106",
"0.5186063",
"0.51833147",
"0.5157669",
"0.5157257",
"0.51564234",
"0.5147763",
"0.514502",
"0.5143364",
"0.5143338",
"0.5142925",
"0.5136364",
"0.5131329",
"0.51310885",
"0.51292086",
"0.51205325",
"0.51158357",
"0.5112859",
"0.51088995",
"0.51029885",
"0.5096091",
"0.509434",
"0.5087441",
"0.50821793",
"0.5075746",
"0.5075066",
"0.50736463",
"0.50706285",
"0.5069988",
"0.50656325",
"0.5064477",
"0.5057874"
] | 0.63071334 | 6 |
Create the local user's video UI | public SurfaceView createLocalUI(Context context) {
SurfaceView surfaceV = RtcEngine.CreateRendererView(context);
surfaceV.setZOrderOnTop(true);
surfaceV.setZOrderMediaOverlay(true);
mRtcEngine.setupLocalVideo(new VideoCanvas(surfaceV));
surfaceV.layout(0, 0, 20, 10);
return surfaceV;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupLocalVideo() {\n\n // Enable the video module.\n mRtcEngine.enableVideo();\n\n mLocalView = RtcEngine.CreateRendererView(getBaseContext());\n mLocalView.setZOrderMediaOverlay(true);\n mLocalContainer.addView(mLocalView);\n\n mRtcEngine.setupLocalVideo(new VideoCanvas(mLocalView, VideoCanvas.RENDER_MODE_HIDDEN, 0));\n }",
"public SurfaceView createRemoteUI(Context context, final int uid) {\n SurfaceView surfaceV = RtcEngine.CreateRendererView(context);\n mRtcEngine.setupRemoteVideo(new VideoCanvas(surfaceV, VideoCanvas.RENDER_MODE_HIDDEN, uid));\n surfaceV.layout(0, 0, 20, 10);\n return surfaceV;\n }",
"public VideoUI getVideoUI() {\n return new VideoUI(this.mActivity, this, this.mActivity.getModuleLayoutRoot());\n }",
"@Override\n public void run() {\n setupRemoteVideo(uid);\n }",
"public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }",
"private void setupRemoteVideo(int uid) {\n int count = mRemoteContainer.getChildCount();\n View view = null;\n for (int i = 0; i < count; i++){\n View v = mRemoteContainer.getChildAt(i);\n if (v.getTag() instanceof Integer && ((int) v.getTag()) == uid) {\n view = v;\n }\n }\n\n if (view != null) {\n return;\n }\n\n mRemoteView = RtcEngine.CreateRendererView(getBaseContext());\n mRemoteContainer.addView(mRemoteView);\n mRtcEngine.setupRemoteVideo(new VideoCanvas(mRemoteView, VideoCanvas.RENDER_MODE_HIDDEN, uid));\n }",
"public ABLVideo Video() {\r\n \treturn new ABLVideo(BrickFinder.getDefault().getVideo());\r\n }",
"private void setupRemoteVideo(int uid, ViewGroup remoteContainer) {\n int count = remoteContainer.getChildCount();\n View view = null;\n for (int i = 0; i < count; i++) {\n View v = remoteContainer.getChildAt(i);\n if (v.getTag() instanceof Integer && ((int) v.getTag()) == uid) {\n view = v;\n }\n }\n if (view != null) {\n return;\n }\n\n // Checks have passed so set up the remote video.\n int renderMode;\n SurfaceView remoteView = RtcEngine.CreateRendererView(getBaseContext());\n if (uid == WINDOW_SHARE_UID) {\n mRemoteShareView = remoteView;\n renderMode = VideoCanvas.RENDER_MODE_FIT;\n } else {\n mRemoteCameraView = remoteView;\n renderMode = VideoCanvas.RENDER_MODE_HIDDEN;\n }\n\n remoteContainer.addView(remoteView);\n mRtcEngine.setupRemoteVideo(new VideoCanvas(remoteView, renderMode, uid));\n remoteView.setTag(uid);\n }",
"private void initVideo(String videoPath) {\n JCVideoPlayerStandard.startFullscreen(this, JCVideoPlayerStandard.class,\n videoPath,\"\");\n\n\n\n\n\n }",
"@Override\n public void run() {\n mLogView.logI(\"Remote video starting, uid: \" + (uid & 0xFFFFFFFFL));\n setupRemoteVideo(uid, uid == WINDOW_SHARE_UID ? mRemoteShareContainerSplit : mRemoteCameraContainer);\n }",
"protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(538, 450);\n\t\tshell.setText(\"SWT Application\");\n\n\t\tfinal DateTime dateTime = new DateTime(shell, SWT.BORDER | SWT.CALENDAR);\n\t\tdateTime.setBounds(10, 10, 514, 290);\n\n\t\tfinal DateTime dateTime_1 = new DateTime(shell, SWT.BORDER | SWT.TIME);\n\t\tdateTime_1.setBounds(10, 306, 135, 29);\n\t\tvideoPath = new Text(shell, SWT.BORDER);\n\t\tvideoPath.setBounds(220, 306, 207, 27);\n\n\t\tButton btnBrowseVideo = new Button(shell, SWT.NONE);\n\t\tbtnBrowseVideo.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\tvideoPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t}\n\t\t});\n\t\tbtnBrowseVideo.setBounds(433, 306, 91, 29);\n\t\tbtnBrowseVideo.setText(\"browse\");\n\t\ttorrentPath = new Text(shell, SWT.BORDER);\n\t\ttorrentPath.setBounds(220, 341, 207, 27);\n\t\tButton btnBrowseTorrent = new Button(shell, SWT.NONE);\n\t\tbtnBrowseTorrent.setText(\"browse\");\n\t\tbtnBrowseTorrent.setBounds(433, 339, 91, 29);\n\t\tbtnBrowseTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFileDialog fileDialog = new FileDialog(shell, SWT.MULTI);\n\t\t\t\tString fileFilterPath = \"\";\n\t\t\t\tfileDialog.setFilterPath(fileFilterPath);\n\t\t\t\tfileDialog.setFilterExtensions(new String[] { \"*.*\" });\n\t\t\t\tfileDialog.setFilterNames(new String[] { \"Any\" });\n\t\t\t\tString firstFile = fileDialog.open();\n\t\t\t\tif (firstFile != null) {\n\t\t\t\t\ttorrentPath.setText(firstFile);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tButton btnGenerateTorrent = new Button(shell, SWT.NONE);\n\t\tbtnGenerateTorrent.setBounds(10, 374, 516, 29);\n\t\tbtnGenerateTorrent.setText(\"Generate Torrent\");\n\n\t\tvideoLength = new Text(shell, SWT.BORDER);\n\t\tvideoLength.setBounds(10, 341, 135, 27);\n\t\t\n\t\tLabel lblNewLabel = new Label(shell, SWT.RIGHT);\n\t\tlblNewLabel.setAlignment(SWT.LEFT);\n\t\tlblNewLabel.setBounds(157, 315, 48, 18);\n\t\tlblNewLabel.setText(\"Video\");\n\t\t\n\t\tLabel lblTorrent = new Label(shell, SWT.RIGHT);\n\t\tlblTorrent.setText(\"Torrent\");\n\t\tlblTorrent.setBounds(157, 341, 48, 18);\n\t\tbtnGenerateTorrent.addListener(SWT.Selection, new Listener() {\n\t\t\t@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\tFile video = new File(videoPath.getText());\n\t\t\t\ttry {\n\t\t\t\t\tif (video.exists() && torrentPath.getText() != \"\") {\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"start\", dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds());\n\t\t\t\t\t\tparameters.put(\"target\", torrentPath.getText());\n\t\t\t\t\t\tparameters.put(\"length\", videoLength.getText());\n\t\t\t\t\t\tSystem.out.println(\"start generating \"+parameters.get(\"length\"));\n\t\t\t\t\t\tnew MakeTorrent(videoPath.getText(), new URL(\"https://jomican.csie.org/~jimmy/tracker/announce.php\"), parameters);\n\t\t\t\t\t\tSystem.out.println(\"end generating\");\n\t\t\t\t\t\tFile var = new File(\"var.js\");\n\t\t\t\t\t\tPrintStream stream=new PrintStream(new FileOutputStream(var,false));\n\t\t\t\t\t\tstream.println(\"start_time = \"+(new SimpleDateFormat(\"yyyy/MM/dd-HH:mm:ss\").parse(dateTime.getYear() + \"/\" + (dateTime.getMonth()+1) + \"/\" + dateTime.getDay() + \"-\" + dateTime_1.getHours() + \":\" + dateTime_1.getMinutes() + \":\" + dateTime_1.getSeconds()).getTime() / 1000)+\";\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"jizz\");\n\t\t\t\t\t}\n\t\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}",
"public UserAwareVideoView(Context context) {\n super(context);\n init(context);\n }",
"private void setupPlayer() {\n\n\n\n Video video = createVideoFromUrl(\"https://sonyhdslive-lh.akamaihd.net/i/LIVELINEARCHANNELWAHSD_2@324771/index_100_av-p.m3u8?sd=10&rebase=on&id=AgC2SfL6YBG2JpMHMVl8BkTC0SpVbBy%2frYkaeUHMRu8inYQ3DHLx4I+pRLNhOPyxeLBTSrs2hL4lZw%3d%3d&hdntl=exp=1496471827~acl=%2fi%2f*~data=hdntl~hmac=808df26a60cb28eff4d28a242510d2dba361d9d8658f1e3bbe3090f85e633632\");\n brightcoveVideoView.add(video);\n brightcoveVideoView.start();\n// ImaManager.setupIma(brightcoveVideoView, googleAds);\n\n }",
"abstract public VideoActivationPolicy createVideoActivationPolicy();",
"public static void main(String[] args){\n File f = new File(System.getProperty(\"user.dir\"));\n if(os){\n path = f.toString()+\"\\\\YuuTubevideos\";\n }else{\n path = f.toString()+\"/YuuTubevideos\";\n }\n start_page();\n }",
"private void createAndLaunchExoPlayer() {\n player = ExoPlayerFactory.newSimpleInstance(this);\n // Bind player to player view\n playerView.setPlayer(player);\n\n // DataSource to load media data\n DataSource.Factory dataSource = new DefaultDataSourceFactory(this,\n Util.getUserAgent(this, getString(R.string.app_name)));\n // Media Source containing tokenized Url\n MediaSource mediaSource = new HlsMediaSource.Factory(dataSource).createMediaSource(tokenizedUri);\n\n // Automatically play video when launched\n player.setPlayWhenReady(true);\n // Listener to load spinner when buffering\n player.addListener(playerListener);\n // Set mediaSource to player\n player.prepare(mediaSource);\n\n }",
"public Player createLocalPlayer(String soundCardName, String videoDisplayName, Object windowId);",
"private void initiatePlayer() {\n ExoPlayerVideoHandler.getInstance().initiateLoaderController(\n this,\n loadingImage,\n exoPlayerView,\n ExoPlayerVideoHandler.getInstance().getVideoResolution()!=null?ExoPlayerVideoHandler.getInstance().getVideoResolution():getString(R.string.default_resolution),\n this\n );\n ExoPlayerVideoHandler.getInstance().playVideo();\n content = ExoPlayerVideoHandler.getInstance().getCurrentVideoInfo();\n //ExoPlayerVideoHandler.getInstance().goToForeground();\n setSpinnerValue();\n }",
"default void uploadVideo() {\r\n\t\tSystem.out.println(\"upload the video\");\r\n\t}",
"public void createPlayer() {\n mainHandler = new Handler();\n videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);\n trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);\n player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);\n }",
"public static VideoPlayers createVideoPlayers(){\n return new VideoPlayers();\n }",
"public void verVideo(View v) {\n ViewVideo.setVideoURI(Uri.parse(getExternalFilesDir(null) + \"/\" + txtNombreArchivo.getText().toString()));\n /*Ejecutamos el video*/\n ViewVideo.start();\n }",
"private void initVideoView(Context context) {\n IjkMediaPlayer.loadLibrariesOnce(null);\n IjkMediaPlayer.native_profileBegin(\"libijkplayer.so\");\n\n mAppContext = context.getApplicationContext();\n mActivity = (Activity) context;\n if (mActivity != null) {\n this.mBrightness = mActivity.getWindow().getAttributes().screenBrightness;\n }\n this.mAudioManager = (AudioManager) mAppContext.getSystemService(Context.AUDIO_SERVICE);\n this.mVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n if (mMediaController != null) {\n mMediaController.setVideoView(this);\n }\n screenWidthPixels = getScreenWidth(context);\n\n setRender(mCurrentRender);\n\n mVideoWidth = 0;\n mVideoHeight = 0;\n // REMOVED: getHolder().addCallback(mSHCallback);\n // REMOVED: getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);\n setFocusable(true);\n setFocusableInTouchMode(true);\n requestFocus();\n // REMOVED: mPendingSubtitleTracks = new Vector<Pair<InputStream, MediaFormat>>();\n setCurrentState(STATE_IDLE);\n mTargetState = STATE_IDLE;\n\n subtitleDisplay = new TextView(context);\n subtitleDisplay.setTextSize(16);\n subtitleDisplay.setShadowLayer(3, 5, 5, getResources().getColor(R.color.black));\n subtitleDisplay.setGravity(Gravity.CENTER);\n subtitleDisplay.setTextColor(getResources().getColor(R.color.white));\n// subtitleDisplay.setBackgroundResource(R.color.red);\n LayoutParams layoutParams_txt = new LayoutParams(\n LayoutParams.MATCH_PARENT,\n LayoutParams.WRAP_CONTENT,\n Gravity.BOTTOM);\n addView(subtitleDisplay, layoutParams_txt);\n }",
"public void playVideo() {\n }",
"@Override\n\tpublic void videoStart() {\n\t\t\n\t}",
"private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }",
"public static void createGui() {\r\n\t\tEventQueue.invokeLater( new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tGui window = new Gui();\r\n\t\t\t\t\twindow.frame.setVisible( true );\r\n\t\t\t\t\twindow.videoFrame.addKeyListener( window );\r\n\t\t\t\t} catch ( Exception e ) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t}",
"private VirtualDisplay createVirtualDisplay() {\n // 建立virtualDisplay\n return mediaProjection.createVirtualDisplay(\"MainActivity\", screenWidth, screenHeight, screenDensity,\n DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR, mediaRecorder.getSurface(), null, null);\n }",
"@AutoGenerated\r\n\tprivate Panel buildVideoPanel() {\n\t\tvideoPanel = new Panel();\r\n\t\tvideoPanel.setWidth(\"100.0%\");\r\n\t\tvideoPanel.setHeight(\"100.0%\");\r\n\t\tvideoPanel.setImmediate(false);\r\n\t\t\r\n\t\t// verticalLayout_3\r\n\t\tverticalLayout_3 = buildVerticalLayout_3();\r\n\t\tvideoPanel.setContent(verticalLayout_3);\r\n\t\t\r\n\t\treturn videoPanel;\r\n\t}",
"@Override\n public void create() {\n setScreen(new ServerScreen(\n new RemoteGame(),\n new SocketIoGameServer(HOST, PORT)\n ));\n }",
"@Override\n public void onClick(View v) {\n View viewVideo = LayoutInflater.from(mContext).inflate(R.layout.dialog_video,null);\n AlertDialog.Builder layoutDialogVideo = new AlertDialog.Builder(mContext);\n\n VideoView vvVideoView = viewVideo.findViewById(R.id.vv_dialogVideo_video);\n vvVideoView.setVideoPath(item.getVideo());\n vvVideoView.seekTo(0);\n vvVideoView.start();\n MediaController mediaController = new MediaController(mContext);\n vvVideoView.setMediaController(mediaController);\n mediaController.setMediaPlayer(vvVideoView);\n\n layoutDialogVideo.setView(viewVideo);\n Dialog dialogVideo = layoutDialogVideo.create();\n\n dialogVideo.show();\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.training);\r\n\t\tif (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\r\n\t\t\tif (!BuildVars.debug) {\r\n\t\t\t\tgetWindow().setFlags(LayoutParams.FLAG_SECURE,\r\n\t\t\t\t\t\tLayoutParams.FLAG_SECURE);\r\n\t\t\t}\r\n\t\t}\r\n\t\ttitle = (TextView) findViewById(R.id.tvTtitle);\r\n\t\tdetail = (TextView) findViewById(R.id.tvTtime);\r\n\t\tcontent = (TextView) findViewById(R.id.tvTsummary);\r\n\t\tduration = (TextView) findViewById(R.id.tvDuration);\r\n\t\tvid = (VideoView) findViewById(R.id.vvTraining);\r\n\t\t// share = (Button) findViewById(R.id.bVshare);\r\n\t\tonNewIntent(getIntent());\r\n\r\n\t\tString roo1t = Environment.getExternalStorageDirectory().toString()\r\n\t\t\t\t+ \"/.mobcast/mobcast_videos/\" + name;\r\n\t\tBitmap thumbnail = ThumbnailUtils.createVideoThumbnail(roo1t,\r\n\t\t\t\tMediaStore.Images.Thumbnails.MINI_KIND);\r\n\t\tBitmapDrawable bitmapDrawable = new BitmapDrawable(thumbnail);\r\n\t\tvid.setBackgroundDrawable(bitmapDrawable);\r\n\t\tvid.setVideoPath(roo1t);\r\n\t\tvid.setMediaController(new MediaController(this));\r\n\t\tvid.requestFocus();\r\n\t\tvid.setOnTouchListener(this);\r\n\t}",
"private void initUI() {\n mLocalContainer = findViewById(R.id.local_video_view_container);\n mRemoteContainer = findViewById(R.id.remote_video_view_container);\n\n mCallBtn = findViewById(R.id.btn_call);\n mMuteBtn = findViewById(R.id.btn_mute);\n mSwitchCameraBtn = findViewById(R.id.btn_switch_camera);\n }",
"@Override\n public void onSuccess(Location location) {\n createVideo(location);\n }",
"@Override\n public void onSuccess(Location location) {\n createVideo(location);\n }",
"public void takevideo() {\nSystem.out.println(\"take a video\");\r\n}",
"public void startVideoPlayer(Context context, String url) {\n Resource item = new Resource();\n item.setType(context.getString(R.string.typeVideo));\n item.setUrlMain(url);\n context.startActivity(PlayVideoFullScreenActivity.getStartActivityIntent(context, ConstantUtil.BLANK, ConstantUtil.BLANK, PlayVideoFullScreenActivity.NETWORK_TYPE_ONLINE, (Resource) item));\n }",
"private void displayVideo(){\n ButtonBack displayVideo = new ButtonBack(\"/view/VideoWindow.fxml\");\n displayVideo.displayVideo(\"winner\",\"Congratulation\");\n }",
"protected void startVideoCall() {\n if (!EMClient.getInstance().isConnected())\n Toast.makeText(ChatDetailsActivity.this, R.string.not_connect_to_server, Toast.LENGTH_SHORT).show();\n else {\n startActivity(new Intent(ChatDetailsActivity.this, VideoCallActivity.class).putExtra(\"username\", mBean.getMobile())\n .putExtra(\"isComingCall\", false).putExtra(\"nickname\", mBean.getUser_nickname()));\n // videoCallBtn.setEnabled(false);\n// inputMenu.hideExtendMenuContainer();\n }\n }",
"public void setVideoDevice(String id);",
"public VideoMenu(CameraActivity activity, VideoUI ui) {\n super(activity);\n mUI = ui;\n mActivity = activity;\n\t\tmFragmentManager = mActivity.getFragmentManager();\n\t\t\n mFrontBackSwitcher = ui.getRootView().findViewById(R.id.front_back_switcher);\n pauseButton = ui.getRootView().findViewById(R.id.pause_video);\n //mFilterModeSwitcher = ui.getRootView().findViewById(R.id.filter_mode_switcher);\n mSceneModeSwitcher = ui.getRootView().findViewById(R.id.scene_mode_switcher);\n\n\t\tmSettingsLayout = ui.getRootView().findViewById(R.id.prefs_setting_layout);\n mSettingsFragmentContainerLayout = (FrameLayout) ui.getRootView().findViewById(R.id.prefs_container_4video);\n backTv = (TextView) ui.getRootView().findViewById(R.id.pref_header_backward_tv);\n titleTv = (TextView) ui.getRootView().findViewById(R.id.text_title);\n titleTv.setText(R.string.chus_settings_fragment_title_bar_title);\n }",
"public MentorConnectRequestCompose addVideo()\n\t{\n\t\tmentorConnectRequestObjects.videoButton.click();\n\t\tmentorConnectRequestObjects.videoURLField.sendKeys(mentorConnectRequestObjects.videoURL);\n\t\tmentorConnectRequestObjects.postVideoButton.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}",
"public void enableVideoDisplay(boolean enable);",
"public void setPreviewVideoDefinition(VideoDefinition vdef);",
"public void onVideoStarted () {}",
"@Override\n public void onVideoStarted() {\n }",
"private void setupPlayerUI() {\r\n // for now hide the player\r\n setPlayerVisible(false);\r\n\r\n // disable unnecesary buttons\r\n setButtonEnabled(mButtonPlayerSeekBackward, false);\r\n setButtonEnabled(mButtonPlayerSeekForward, false);\r\n setButtonEnabled(mButtonPlayerSkipBackward, false);\r\n\r\n setButtonEnabled(mButtonPlayerRepeat, false);\r\n }",
"public void createVideo(Context context, AugmentedImage image, int augmentedImageIndex) {\n this.image = image;\n\n\n\n CompletableFuture.allOf(AugmentedImageActivity.videoRenderable)\n .handle((notUsed, throwable) -> {\n // When you build a Renderable, Sceneform loads its resources in the background while\n // returning a CompletableFuture. Call handle(), thenAccept(), or check isDone()\n // before calling get().\n\n if (throwable != null) {\n return null;\n }\n\n try {\n // Sets the texture to the texture defined using (new ExternalTexture()) -> the video's surface is on that texture.\n AugmentedImageActivity.videoPlacedRenderable = AugmentedImageActivity.videoRenderable.get();\n AugmentedImageActivity.videoPlacedRenderable.getMaterial().setExternalTexture(\"videoTexture\", texture);\n AugmentedImageActivity.videoPlacedRenderable.getMaterial().setFloat4(\"keyColor\", CHROMA_KEY_COLOR);\n\n // Everything finished loading successfully.\n } catch (InterruptedException | ExecutionException ex) {\n }\n\n return null;\n });\n\n if (!frame_lr.isDone() || !frame_ll.isDone() || !frame_ur.isDone() || !frame_ul.isDone()) {\n CompletableFuture.allOf(frame_ll, frame_lr, frame_ul, frame_ur)\n .thenAccept((Void aVoid) -> setImage(image, augmentedImageIndex))\n .exceptionally(\n throwable -> {\n Log.e(TAG, \"Exception loading\", throwable);\n return null;\n });\n }\n\n Node fullnode;\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(-0.5f * image.getExtentX(), 0.0f, 0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion lowerLeft = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), lowerLeft));\n fullnode.setRenderable(frame_ll.getNow(null));\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(0.5f * image.getExtentX(), 0.0f, 0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion lowerRight = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), lowerRight));\n fullnode.setRenderable(frame_lr.getNow(null));\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(-0.5f * image.getExtentX(), 0.0f, -0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion upperLeft = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), upperLeft));\n fullnode.setRenderable(frame_ul.getNow(null));\n\n fullnode = new Node();\n fullnode.setParent(this);\n fullnode.setWorldPosition(new Vector3(0.5f * image.getExtentX(), 0.0f, -0.5f * image.getExtentZ()));\n fullnode.setLocalScale(new Vector3(0.1f, 0.1f, 0.1f));\n Quaternion upperRight = Quaternion.axisAngle(new Vector3(nodeRotation[augmentedImageIndex].x, nodeRotation[augmentedImageIndex].y, nodeRotation[augmentedImageIndex].z), nodeRotation[augmentedImageIndex].q);\n fullnode.setLocalRotation(Quaternion.multiply(fullnode.getLocalRotation(), upperRight));\n fullnode.setRenderable(frame_ur.getNow(null));\n\n // augmentedImageIndex is taken from the arguments of this method - (setImage)\n AugmentedImageActivity.augmentedImageVideoPlayerIndex = augmentedImageIndex;\n // Set the anchor based on the center of the image.\n setAnchor(image.createAnchor(image.getCenterPose()));\n\n\n // videoNode is created and will be placed on the image, directly parallel to the image.\n videoNode = new Node();\n videoNode.setParent(this);\n\n\n float videoWidth = nodeMediaPlayer.getVideoWidth();\n float videoHeight = nodeMediaPlayer.getVideoHeight();\n\n videoNode.setLocalScale(\n new Vector3(\n VIDEO_HEIGHT_METERS * (videoWidth / videoHeight), VIDEO_HEIGHT_METERS, 1.4f));\n\n\n // Sets the video's position from perpendicular to the image to parallel to the detected image.\n Quaternion q1 = videoNode.getLocalRotation();\n Quaternion q2 = Quaternion.axisAngle(new Vector3(1.0f, 0f, 0f), -90f);\n videoNode.setLocalPosition(new Vector3(0.0f, 0.0f, 0.07f)); // x, z, y\n videoNode.setLocalRotation(Quaternion.multiply(q1, q2));\n\n // If the video is not playing, it will be started.\n if (!nodeMediaPlayer.isPlaying()) {\n nodeMediaPlayer.start();\n // Wait to set the renderable until the first frame of the video becomes available.\n // This prevents the renderable from briefly appearing as a black quad before the video\n // plays.\n texture\n .getSurfaceTexture()\n .setOnFrameAvailableListener(\n (SurfaceTexture surfaceTexture) -> {\n videoNode.setRenderable(AugmentedImageActivity.videoPlacedRenderable);\n texture.getSurfaceTexture().setOnFrameAvailableListener(null);\n\n });\n } else {\n videoNode.setRenderable(AugmentedImageActivity.videoPlacedRenderable);\n }\n\n Log.d(\"node\", \"creating!!!\");\n\n }",
"public void playVideo() {\n \t\t try {\n \t\t\t videoView.setOnPreparedListener(new OnPreparedListener() {\n \n \t\t\t\t @Override\n \t\t\t\t public void onPrepared(MediaPlayer mp) {\n \t\t\t\t\t mp.setLooping(true); \n \t\t\t\t }\n \t\t\t });\n \t\t\t videoView.setVideoPath(SAVE_PATH);\n \t\t\t videoView.start();\n \t\t } catch (Exception e) {\n \t\t\t Log.e(\"Video\", \"error: \" + e.getMessage(), e);\n \t\t }\n \t }",
"private void handleUI() {\r\n // Start/stop camera\r\n btnCam.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent e) {\r\n if (!camRunning) {\r\n videoStream = new ClientVideoStream(imageView);\r\n videoThread = new Thread(videoStream);\r\n videoThread.start();\r\n new Thread(new Client(MsgType.START_VIDEO_STREAM)).start();\r\n btnCam.setText(\"Stop camera\");\r\n camRunning = true;\r\n }\r\n else {\r\n btnCam.setText(\"Stop camera\");\r\n try {\r\n videoStream.terminate();\r\n } catch (Exception ex) {\r\n System.out.println(\"Failed to stop camera\");\r\n }\r\n camRunning = false;\r\n }\r\n }\r\n });\r\n // Toggle man/auto\r\n btnManAut.setOnAction(new EventHandler<ActionEvent>() {\r\n @Override\r\n public void handle(ActionEvent e) {\r\n if (manualMode) {\r\n new Thread(new Client(MsgType.MANUAL)).start();\r\n btnManAut.setText(\"Manual\");\r\n }\r\n else {\r\n new Thread(new Client(MsgType.AUTO)).start();\r\n btnManAut.setText(\"Auto\");\r\n }\r\n manualMode = !manualMode;\r\n }\r\n });\r\n }",
"public void recordVideo() {\n\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setTitle( \"aSight\" );\r\n\t\tframe.setResizable( false );\r\n\t\tframe.setBounds( 0, 0, 800, 580 );\r\n\t\tframe.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\r\n\t\tframe.getContentPane().setLayout( null );\r\n\r\n\t\t// create videoFrame and set as output\r\n\t\tfinal GraphicsDevice[] monitorArray = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();\r\n\t\tvideoFrame = new JFrame( \"Fullscreen Display\" );\r\n\t\tvideoFrame.setLocation( monitorArray[0].getDefaultConfiguration().getBounds().getLocation() );\r\n\t\tvideoFrame.setUndecorated( true );\r\n\t\tvideoFrame.setExtendedState( Frame.MAXIMIZED_BOTH );\r\n\t\toutFull = new VideoField( monitorArray[0].getDefaultConfiguration().getBounds().getSize() );\r\n\t\tvideoFrame.getContentPane().add( outFull );\r\n\t\tvideoFrame.setVisible( false );\r\n\r\n\t\t// create HotkeyMessage to display activated hotkeys in the AR-Display\r\n\t\tmsg = new HotkeyMessage(-1, this);\r\n\t\tMain.getContentLayer().giveContent( this,msg );\r\n\t\t\r\n\t\t// create content in absolute layout\r\n\t\t// absolute positioning: all x, y, w and h are multiples of 8!\r\n\t\t// default line height: 24\r\n\t\tJPanel videoPanel = new JPanel();\r\n\t\tvideoPanel.setBounds( 0, 0, 310, 552 );\r\n\t\tframe.getContentPane().add( videoPanel );\r\n\t\tvideoPanel.setLayout( null );\r\n\r\n\t\tfinal VideoField in = new VideoField( new Dimension( 310, 240 ) );\r\n\t\tin.setBounds( 0, 0, 310, 240 );\r\n\t\tvideoPanel.add( in );\r\n\r\n\t\tJButton changeInput = new JButton( \"Change Input\" );\r\n\t\tchangeInput.setBounds( 8, 248, 120, 24 );\r\n\t\tchangeInput.addActionListener( new ActionListener() {\r\n\t\t\tpublic void actionPerformed( ActionEvent arg0 ) {\r\n\t\t\t\ti.end();\r\n\t\t\t\ti = new InputStreamCamera( in, outUsed );\r\n\t\t\t\ti.start();\r\n\t\t\t}\r\n\t\t} );\r\n\t\tvideoPanel.add( changeInput );\r\n\r\n\t\tfinal VideoField out = new VideoField( new Dimension( 310, 240 ) );\r\n\t\tout.setBounds( 0, 280, 310, 240 );\r\n\t\tvideoPanel.add( out );\r\n\r\n\t\tJLabel outLabel = new JLabel( \"Out Channel: \" );\r\n\t\toutLabel.setBounds( 168, 248, 80, 24 );\r\n\t\tvideoPanel.add( outLabel );\r\n\r\n\t\t// link used output and start screencapture-InputStream\r\n\t\toutUsed = out;\r\n\t\ti = new InputStream( in, outUsed );\r\n\r\n\t\tfinal JComboBox<Integer> outComboBox = new JComboBox<Integer>( Main.getCountOutputDevices() );\r\n\t\toutComboBox.setBounds( 256, 248, 40, 24 );\r\n\t\toutComboBox.addItemListener( new ItemListener() {\r\n\r\n\t\t\tpublic void itemStateChanged( ItemEvent e ) {\r\n\t\t\t\tint itemId = outComboBox.getSelectedIndex();\r\n\t\t\t\tif ( itemId >= 0 ) {\r\n\t\t\t\t\tif ( itemId == 0 ) {\r\n\t\t\t\t\t\toutUsed = out;\r\n\t\t\t\t\t\tvideoFrame.setVisible( false );\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\toutUsed = outFull;\r\n\t\t\t\t\t\tvideoFrame.setLocation( monitorArray[itemId - 1].getDefaultConfiguration().getBounds()\r\n\t\t\t\t\t\t\t\t.getLocation() );\r\n\t\t\t\t\t\tvideoFrame.setExtendedState( Frame.MAXIMIZED_BOTH );\r\n\t\t\t\t\t\toutFull.changeSize( ( monitorArray[itemId - 1].getDefaultConfiguration().getBounds().getSize() ) );\r\n\t\t\t\t\t\tvideoFrame.setVisible( true );\r\n\t\t\t\t\t}\r\n\t\t\t\t\ti.setTarget2( outUsed );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t\tvideoPanel.add( outComboBox );\r\n\r\n\t\tJPanel filterPanel = new JPanel();\r\n\t\tfilterPanel.setBounds( 310, 0, 490, 552 );\r\n\t\tframe.getContentPane().add( filterPanel );\r\n\t\tfilterPanel.setLayout( null );\r\n\r\n\t\t// filterPanel - call filters to create their GUI\r\n\t\t{\r\n\t\t\tfilter = Main.getFilter();\r\n\t\t\tint sumHeightPx = 0;\r\n\t\t\tint height = 0;\r\n\t\t\tint y = 0;\r\n\t\t\t// max height = 672\r\n\t\t\tfor ( Filter f : filter ) {\r\n\t\t\t\tif ( ( height = f.getGUIHeight() ) > 0 ) {\r\n\t\t\t\t\tif ( ( sumHeightPx + height * 24 + ( height + 1 ) * 8 ) > 552 ) {\r\n\t\t\t\t\t\tif ( y == 180 ) {\r\n\t\t\t\t\t\t\tSystem.err.println( \"to many filters!!!!\" );\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ty = 180;\r\n\t\t\t\t\t\t\tsumHeightPx = 0;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tJPanel container = new JPanel();\r\n\t\t\t\t\tcontainer.setBounds( y, sumHeightPx, 180, height * 24 + ( height + 1 ) * 8 );\r\n\t\t\t\t\tcontainer.setLayout( null );\r\n\t\t\t\t\tsumHeightPx = sumHeightPx + height * 24 + ( height + 1 ) * 8;\r\n\t\t\t\t\tf.createGUI( container );\r\n\t\t\t\t\tfilterPanel.add( container );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// start inputStream\r\n\t\ti.start();\r\n\t}",
"public boolean videoDisplayEnabled();",
"private File createVideoFile() throws IOException {\n Date d = new Date();\n String nameDate = new SimpleDateFormat(\"ddMMyyyy_HHmmss\").format(d);\n this.date = new SimpleDateFormat(\"dd/MM/yyyy\").format(d);\n this.time = nameDate.substring(9,13);\n String videoFileName = \"MP4_\" + nameDate + \"_\";\n File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);\n File image = File.createTempFile(\n videoFileName, /* prefix */\n \".mp4\", /* suffix */\n storageDir /* directory */\n );\n // Save a file: path for use with ACTION_VIEW intents\n mCurrentVideoPath = image.getAbsolutePath();\n return image;\n }",
"abstract public VideoDefinition createVideoDefinitionFromName(String name);",
"public boolean isVideo()\n {return false;\n }",
"@SuppressWarnings({})\n\tpublic JPanel createVMPanel(String name) {\n\t\tfinal vdicalc mainframe = null;\n\n\t\tfinal JPanel j = new JPanel();\n\t\tj.setName(name);\n\n\t\tfinal MigLayout layout2 = new MigLayout(\"ins 3, gap 10px -4px\", \"\", \"\");\n\t\tj.setLayout(layout2);\n\t\tj.setBorder(Raisedbevel);\n\t\tj.setBackground(Color.LIGHT_GRAY);\n\n\t\tfinal JPanel panel_userprofile = new JPanel(); // Add JPanel for User Profile\n\t\tfinal JLabel vmvcpucombolabel = new JLabel(vdicalc.MESSAGES.getString(\"vmvcpu.view\"), SwingConstants.LEFT);\n\t\tfinal String[] vmvcpucombovalues = { \"1\", \"2\", \"4\", \"8\" };\n\t\tfinal JComboBox<String> vmvcpucombo = new JComboBox<>(vmvcpucombovalues);\n\t\tfinal JLabel vmvcpumhzlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmvcpumhz.view\"), SwingConstants.LEFT);\n\t\tfinal JTextField vmvcpumhztxt = new JTextField(vdicalc.DEFAULTS.getString(\"vmvcpumhztxt.default\"), 2);\n\t\tfinal JLabel vmvcpumhztotalsize = new JLabel(\"0000\", SwingConstants.LEFT); // Label for total vCPU MHZ in use\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// per VM\n\t\tfinal JLabel vmvcpumhzoverheadlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmvcpumhzoverhead.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal String[] vmvcpumhzoverheadcombovalues = { \"0\", \"10\", \"15\", \"20\", \"25\", \"30\" };\n\t\tfinal JComboBox<String> vmvcpumhzoverheadcombo = new JComboBox<>(vmvcpumhzoverheadcombovalues);\n\t\tfinal JLabel vmmemorysizelabel = new JLabel(vdicalc.MESSAGES.getString(\"vmmemorysize.view\"),\n\t\t\t\tSwingConstants.RIGHT);\n\t\tfinal JTextField vmmemorysizetxt = new JTextField(vdicalc.DEFAULTS.getString(\"vmmemorysizetxt.default\"), 3);\n\t\tfinal JLabel vmmemoryreservationlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmmemoryreservation.view\"),\n\t\t\t\tSwingConstants.RIGHT);\n\t\tfinal String[] vmmemoryreservationvalues = { \"0\", \"10\", \"15\", \"20\", \"30\", \"40\", \"50\", \"60\", \"70\", \"80\", \"90\",\n\t\t\t\t\"100\" };\n\t\tfinal JComboBox<String> vmmemoryreservationcombo = new JComboBox<>(vmmemoryreservationvalues);\n\t\tfinal JLabel vmvramlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmdisplay3d.view\"));\n\t\tfinal String[] vmvramcombovalues = { State.OFF.toString(), \"64\", \"128\", \"256\", \"512\" };\n\t\tfinal JComboBox<String> vmvramcombo = new JComboBox<>(vmvramcombovalues);\n\t\tfinal JLabel vmdisplaynumbercombolabel = new JLabel(vdicalc.MESSAGES.getString(\"vmdisplaynumber.view\"));\n\t\tfinal String[] vmdisplaynumbercombovalues = { \"1\", \"2\", \"3\", \"4\" };\n\t\tfinal JComboBox<String> vmdisplaynumbercombo = new JComboBox<>(vmdisplaynumbercombovalues);\n\t\tfinal JLabel vmdisplayresolutioncombolabel = new JLabel(vdicalc.MESSAGES.getString(\"vmdisplayresolution.view\"));\n\t\tfinal String[] vmdisplayresolutioncombovalues = { \"1280x800\", \"1920x1200\", \"2560x1600\" };\n\t\tfinal JComboBox<String> vmdisplayresolutioncombo = new JComboBox<>(vmdisplayresolutioncombovalues);\n\t\tfinal JLabel desktoppooltypecombolabel = new JLabel(vdicalc.MESSAGES.getString(\"desktoppooltype.view\"));\n\t\tfinal String[] desktoppooltypecombovalues = { \"Linked\", \"Full\" };\n\t\tfinal JComboBox<String> desktoppooltypecombo = new JComboBox<>(desktoppooltypecombovalues);\n\t\tfinal JLabel vmdisposabledisksizetxtlabel = new JLabel(\n\t\t\t\tvdicalc.MESSAGES.getString(\"vmdisposabledisksizetxt.view\"), SwingConstants.LEFT);\n\t\tfinal JTextField vmdisposabledisksizetxt = new JTextField(\n\t\t\t\tvdicalc.DEFAULTS.getString(\"vmdisposabledisksizetxt.default\"), 4);\n\t\tfinal JLabel vmpowerstatecombolabel = new JLabel(vdicalc.MESSAGES.getString(\"vmpowerstate.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal String[] vmpowerstatecombovalues = { State.ON.toString(), State.OFF.toString(),\n\t\t\t\tState.SUSPEND.toString() };\n\t\tfinal JComboBox<String> vmpowerstatecombo = new JComboBox<>(vmpowerstatecombovalues);\n\t\tfinal JLabel vmrefreshratecombolabel = new JLabel(vdicalc.MESSAGES.getString(\"vmrefreshrate.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal String[] vmrefreshratecombovalues = { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"20\", \"25\", \"30\",\n\t\t\t\t\"40\", \"50\", \"60\", \"70\", \"80\", \"90\", \"100\" };\n\t\tfinal JComboBox<String> vmrefreshratecombo = new JComboBox<>(vmrefreshratecombovalues);\n\t\tfinal JLabel vmrefreshratesize = new JLabel(\"0000\", SwingConstants.LEFT); // Label for total delta disk size per\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// VM\n\t\tfinal JLabel poolsnapshotcountcombolabel = new JLabel(vdicalc.MESSAGES.getString(\"poolsnapshotcount.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal String[] poolsnapshotcountcombovalues = { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\" };\n\t\tfinal JComboBox<String> poolsnapshotcountcombo = new JComboBox<>(poolsnapshotcountcombovalues);\n\t\tfinal JLabel vmparentcounttxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmparentcount.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JTextField vmparentcounttxt = new JTextField(vdicalc.DEFAULTS.getString(\"vmparentcounttxt.default\"), 3);\n\t\tfinal JLabel vmthinsizeparentvmtxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmthinsizeparentvm.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JTextField vmthinsizeparentvmtxt = new JTextField(\n\t\t\t\tvdicalc.DEFAULTS.getString(\"vmthinsizeparentvmtxt.default\"), 4);\n\t\tfinal JLabel vmpersistentdisksizetxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmpersistentdisksize.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JTextField vmpersistentdisksizetxt = new JTextField(\n\t\t\t\tvdicalc.DEFAULTS.getString(\"vmpersistentdisksizetxt.default\"), 4);\n\t\tfinal JLabel vmfullsizeparentvmtxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmfullsizeparentvm.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JTextField vmfullsizeparentvmtxt = new JTextField(\n\t\t\t\tvdicalc.DEFAULTS.getString(\"vmfullsizeparentvmtxt.default\"), 4);\n\t\tvmfullsizeparentvmtxt.setName(\"vmfullsizeparentvmtxt\");\n\t\tfinal JLabel vmcounttxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmcount.view\"), SwingConstants.RIGHT);\n\t\tfinal JTextField vmcounttxt = new JTextField(vdicalc.DEFAULTS.getString(\"vmcounttxt.default\"), 4);\n\t\tfinal JLabel vmconcurrenttxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmconcurrent.view\"),\n\t\t\t\tSwingConstants.RIGHT);\n\t\tfinal JTextField vmconcurrenttxt = new JTextField(vdicalc.DEFAULTS.getString(\"vmconcurrenttxt.default\"), 4);\n\t\tfinal JLabel desktoppoolcounttxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"desktoppoolcount.view\"),\n\t\t\t\tSwingConstants.RIGHT);\n\t\tfinal JTextField desktoppoolcounttxt = new JTextField(vdicalc.DEFAULTS.getString(\"desktoppoolcounttxt.default\"),\n\t\t\t\t3);\n\t\tfinal JLabel vmreplicasteadystateiotxtlabel = new JLabel(\n\t\t\t\tvdicalc.MESSAGES.getString(\"vmreplicasteadystateio.view\"), SwingConstants.LEFT);\n\t\tfinal JTextField vmreplicasteadystateiotxt = new JTextField(\n\t\t\t\tvdicalc.DEFAULTS.getString(\"vmreplicasteadystateiotxt.default\"), 3);\n\t\tfinal JLabel vmbootIOtxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmbootIO.view\"), SwingConstants.LEFT);\n\t\tfinal JTextField vmbootIOtxt = new JTextField(vdicalc.DEFAULTS.getString(\"vmbootIOtxt.default\"), 3);\n\t\tfinal JLabel vmcorelabel = new JLabel(vdicalc.MESSAGES.getString(\"vmperphysicalcore\"), SwingConstants.RIGHT); // Label\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// VMs\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// per\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// physical\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// core\n\t\tString[] vmcorecombovalues = { \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\",\n\t\t\t\t\"16\", \"17\", \"18\", \"19\", \"20\" };\n\t\tfinal JComboBox<String> vmcorecombo = new JComboBox<>(vmcorecombovalues);\n\t\tfinal JLabel vmdeltaIOtxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmdeltaIOlinked.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JTextField vmdeltaIOtxt = new JTextField(vdicalc.DEFAULTS.getString(\"vmdeltaIOtxt.default\"), 3);\n\t\tfinal JLabel vmdeltareadIOtxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmdeltareadIO.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JTextField vmdeltareadIOtxt = new JTextField(vdicalc.DEFAULTS.getString(\"vmdeltareadIOtxt.default\"), 3);\n\t\tfinal JLabel vmdeltawriteIOtxtlabellabel = new JLabel(vdicalc.MESSAGES.getString(\"vmdeltawriteIO.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JLabel vmdeltawriteIOtxtlabel = new JLabel(vdicalc.DEFAULTS.getString(\"vmdeltawriteIOtxtlabel.default\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JLabel vmpersistentIOtxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmpersistentIO.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JTextField vmpersistentIOtxt = new JTextField(vdicalc.DEFAULTS.getString(\"vmpersistentIOtxt.default\"), 3);\n\t\tfinal JLabel vmpersistentreadIOtxtlabel = new JLabel(vdicalc.MESSAGES.getString(\"vmpersistentreadIO.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JTextField vmpersistentreadIOtxt = new JTextField(\n\t\t\t\tvdicalc.DEFAULTS.getString(\"vmpersistentreadIOtxt.default\"), 3);\n\t\tfinal JLabel vmpersistentwriteIOlabellabel = new JLabel(vdicalc.MESSAGES.getString(\"vmpersistentwriteIO.view\"),\n\t\t\t\tSwingConstants.LEFT);\n\t\tfinal JLabel vmpersistentwriteIOlabel = new JLabel(\n\t\t\t\tvdicalc.DEFAULTS.getString(\"vmpersistentwriteIOlabel.default\"), SwingConstants.LEFT);\n\n\t\t/*\n\t\t * Create UserProfile Radio Buttons\n\t\t */\n\t\tfinal MigLayout layoutuserprofile = new MigLayout(\"ins 4, gap 20px, wmin 864, align center\");\n\t\tpanel_userprofile.setLayout(layoutuserprofile);\n\t\tpanel_userprofile.setBackground(Color.LIGHT_GRAY);\n\n\t\tJRadioButton taskworkerButton = new JRadioButton(\"Task\");\n\t\ttaskworkerButton.setSelected(true);\n\t\tJRadioButton officeworkerButton = new JRadioButton(\"Office\");\n\t\tJRadioButton knowledgeworkerButton = new JRadioButton(\"Knowledge\");\n\t\tJRadioButton powerworkerButton = new JRadioButton(\"Power\");\n\n\t\tButtonGroup group = new ButtonGroup();\n\t\tgroup.add(taskworkerButton);\n\t\tgroup.add(officeworkerButton);\n\t\tgroup.add(knowledgeworkerButton);\n\t\tgroup.add(powerworkerButton);\n\n\t\ttaskworkerButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tvmvcpucombo.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"taskworker.vmvcpucombo\")));\n\t\t\t\tvmvcpumhztxt.setText(vdicalc.DEFAULTS.getString(\"taskworker.vmvcpumhztxt\"));\n\t\t\t\tvmvcpumhzoverheadcombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"taskworker.vmvcpumhzoverheadcombo\")));\n\t\t\t\tvmmemorysizetxt.setText(vdicalc.DEFAULTS.getString(\"taskworker.vmmemorysizetxt\"));\n\t\t\t\tdesktoppooltypecombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"taskworker.desktoppooltypecombo\")));\n\t\t\t\tvmdeltaIOtxt.setText(vdicalc.DEFAULTS.getString(\"taskworker.vmdeltaIOtxt\"));\n\t\t\t\tvmdisplaynumbercombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"taskworker.vmdisplaynumbercombo\")));\n\t\t\t\tvmdisplayresolutioncombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"taskworker.vmdisplayresolutioncombo\")));\n\t\t\t\tvmvramcombo.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"taskworker.vmvramcombo\")));\n\t\t\t\tvmcorecombo.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"taskworker.vmcorecombo\")));\n\t\t\t}\n\n\t\t});\n\n\t\tofficeworkerButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tvmvcpucombo.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"officeworker.vmvcpucombo\")));\n\t\t\t\tvmvcpumhztxt.setText(vdicalc.DEFAULTS.getString(\"officeworker.vmvcpumhztxt\"));\n\t\t\t\tvmvcpumhzoverheadcombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"officeworker.vmvcpumhzoverheadcombo\")));\n\t\t\t\tvmmemorysizetxt.setText(vdicalc.DEFAULTS.getString(\"officeworker.vmmemorysizetxt\"));\n\t\t\t\tdesktoppooltypecombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"officeworker.desktoppooltypecombo\")));\n\t\t\t\tvmdeltaIOtxt.setText(vdicalc.DEFAULTS.getString(\"officeworker.vmdeltaIOtxt\"));\n\t\t\t\tvmdisplaynumbercombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"officeworker.vmdisplaynumbercombo\")));\n\t\t\t\tvmdisplayresolutioncombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"officeworker.vmdisplayresolutioncombo\")));\n\t\t\t\tvmvramcombo.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"officeworker.vmvramcombo\")));\n\t\t\t\tvmcorecombo.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"officeworker.vmcorecombo\")));\n\t\t\t}\n\n\t\t});\n\n\t\tknowledgeworkerButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tvmvcpucombo\n\t\t\t\t\t\t.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"knowledgeworker.vmvcpucombo\")));\n\t\t\t\tvmvcpumhztxt.setText(vdicalc.DEFAULTS.getString(\"knowledgeworker.vmvcpumhztxt\"));\n\t\t\t\tvmvcpumhzoverheadcombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"knowledgeworker.vmvcpumhzoverheadcombo\")));\n\t\t\t\tvmmemorysizetxt.setText(vdicalc.DEFAULTS.getString(\"knowledgeworker.vmmemorysizetxt\"));\n\t\t\t\tdesktoppooltypecombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"knowledgeworker.desktoppooltypecombo\")));\n\t\t\t\tvmdeltaIOtxt.setText(vdicalc.DEFAULTS.getString(\"knowledgeworker.vmdeltaIOtxt\"));\n\t\t\t\tvmdisplaynumbercombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"knowledgeworker.vmdisplaynumbercombo\")));\n\t\t\t\tvmdisplayresolutioncombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"knowledgeworker.vmdisplayresolutioncombo\")));\n\t\t\t\tvmvramcombo\n\t\t\t\t\t\t.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"knowledgeworker.vmvramcombo\")));\n\t\t\t\tvmcorecombo\n\t\t\t\t\t\t.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"knowledgeworker.vmcorecombo\")));\n\t\t\t}\n\n\t\t});\n\n\t\tpowerworkerButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tvmvcpucombo.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"powerworker.vmvcpucombo\")));\n\t\t\t\tvmvcpumhztxt.setText(vdicalc.DEFAULTS.getString(\"powerworker.vmvcpumhztxt\"));\n\t\t\t\tvmvcpumhzoverheadcombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"powerworker.vmvcpumhzoverheadcombo\")));\n\t\t\t\tvmmemorysizetxt.setText(vdicalc.DEFAULTS.getString(\"powerworker.vmmemorysizetxt\"));\n\t\t\t\tdesktoppooltypecombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"powerworker.desktoppooltypecombo\")));\n\t\t\t\tvmdeltaIOtxt.setText(vdicalc.DEFAULTS.getString(\"powerworker.vmdeltaIOtxt\"));\n\t\t\t\tvmdisplaynumbercombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"powerworker.vmdisplaynumbercombo\")));\n\t\t\t\tvmdisplayresolutioncombo.setSelectedIndex(\n\t\t\t\t\t\tInteger.parseInt(vdicalc.DEFAULTS.getString(\"powerworker.vmdisplayresolutioncombo\")));\n\t\t\t\tvmvramcombo.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"powerworker.vmvramcombo\")));\n\t\t\t\tvmcorecombo.setSelectedIndex(Integer.parseInt(vdicalc.DEFAULTS.getString(\"powerworker.vmcorecombo\")));\n\t\t\t}\n\n\t\t});\n\n\t\tpanel_userprofile.add(taskworkerButton);\n\t\tpanel_userprofile.add(officeworkerButton);\n\t\tpanel_userprofile.add(knowledgeworkerButton);\n\t\tpanel_userprofile.add(powerworkerButton);\n\n\t\tj.add(panel_userprofile, \"pos 0 0\");\n\n\t\t/*\n\t\t * Assign components to Column 0\n\t\t */\n\t\tj.add(vmvcpucombolabel, \"pos 5 45\");\n\t\tj.add(vmvcpucombo, \"pos 190 40, w 70!, \" + vdicalc.comboHeight);\n\t\tvmvcpucombo.setToolTipText(vdicalc.MESSAGES.getString(\"vmvcpu.tooltip\"));\n\t\tvmvcpucombo.setName(\"vmvcpucombo\");\n\t\tvmvcpucombo.addFocusListener(this);\n\t\tvmvcpucombo.addFocusListener(new FocusListener() {\n\n\t\t\t@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\n\t\t\t}\n\n\t\t});\n\t\tvmvcpucombo.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// Populate label that dislpays total amount of MHz used per VM\n\t\t\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(),\n\t\t\t\t\t\tvmvcpucombo.getSelectedItem().toString(), vmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\t\t}\n\n\t\t});\n\n\t\tj.add(vmvcpumhzlabel, \"pos 5 68\");\n\t\tj.add(vmvcpumhztxt, \"pos 191 66, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmvcpumhztxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmvcpumhz.tooltip\"));\n\t\tvmvcpumhztxt.setName(\"vmvcpumhztxt\");\n\t\tvmvcpumhztxt.addFocusListener(this);\n\t\tvmvcpumhztxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t\tif (Integer.parseInt(tf.getText()) > Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName() + \".maximum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".maximum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t\t// Populate label that dislpays total amount of MHz used per VM\n\t\t\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(),\n\t\t\t\t\t\tvmvcpucombo.getSelectedItem().toString(), vmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\t\t}\n\n\t\t});\n\t\tvmvcpumhztxt.getDocument().addDocumentListener(new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\t// Populate label that dislpays total amount of MHz used per VM\n\t\t\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(),\n\t\t\t\t\t\tvmvcpucombo.getSelectedItem().toString(), vmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\n\t\t\t}\n\n\t\t});\n\t\tvmvcpumhztxt.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// Populate label that dislpays total amount of MHz used per VM\n\t\t\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(),\n\t\t\t\t\t\tvmvcpucombo.getSelectedItem().toString(), vmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\t\t}\n\n\t\t});\n\n\t\t/*\n\t\t * Label for total amount of MHz used per VM\n\t\t */\n\t\tj.add(vmvcpumhztotalsize, \"pos 150 72\");\n\t\tvmvcpumhztotalsize.setFont(new Font(\"Serif\", Font.PLAIN, 12));\n\t\tvmvcpumhztotalsize.setForeground(Color.DARK_GRAY);\n\n\t\tj.add(vmvcpumhzoverheadlabel, \"pos 5 93\");\n\t\tj.add(vmvcpumhzoverheadcombo, \"pos 190 89, w 70!, \" + vdicalc.comboHeight);\n\t\tvmvcpumhzoverheadcombo.setSelectedIndex(0);\n\t\tvmvcpumhzoverheadcombo.setToolTipText(vdicalc.MESSAGES.getString(\"vmvcpumhzoverhead.tooltip\"));\n\t\tvmvcpumhzoverheadcombo.setName(\"vmvcpumhzoverheadcombo\");\n\t\tvmvcpumhzoverheadcombo.addFocusListener(this);\n\t\tvmvcpumhzoverheadcombo.addFocusListener(new FocusListener() {\n\n\t\t\t@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\n\t\t\t}\n\n\t\t});\n\t\tvmvcpumhzoverheadcombo.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// Populate label that dislpays total amount of MHz used per VM\n\t\t\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(),\n\t\t\t\t\t\tvmvcpucombo.getSelectedItem().toString(), vmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\t\t}\n\n\t\t});\n\n\t\tj.add(desktoppooltypecombolabel, \"pos 5 263\");\n\t\tif (functions.isMac() || functions.isLinux()) {\n\t\t\tj.add(desktoppooltypecombo, \"pos 190 261, wmax 92, \" + vdicalc.comboHeight);\n\t\t} else if (functions.isWindows()) {\n\t\t\tj.add(desktoppooltypecombo, \"pos 190 261, w 70!, \" + vdicalc.comboHeight);\n\t\t}\n\t\tdesktoppooltypecombo.setToolTipText(vdicalc.MESSAGES.getString(\"desktoppooltype.tooltip\"));\n\t\tdesktoppooltypecombo.setName(\"desktoppooltypecombo\");\n\t\tdesktoppooltypecombo.addItemListener(new ItemListener() {\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(final ItemEvent event) {\n\t\t\t\tfinal int state = event.getStateChange();\n\t\t\t\tif (state == ItemEvent.SELECTED) {\n\t\t\t\t\tif (event.getItem().toString().equalsIgnoreCase(\"linked\")) {\n\t\t\t\t\t\tvmpersistentdisksizetxt.setText(vdicalc.DEFAULTS.getString(\"vmpersistentdisksizetxt.default\"));\n\t\t\t\t\t\tvmpersistentdisksizetxt.setEnabled(true);\n\t\t\t\t\t\tvmpersistentIOtxt.setText(vdicalc.DEFAULTS.getString(\"vmpersistentIOtxt.default\"));\n\t\t\t\t\t\tvmpersistentIOtxt.setEnabled(true);\n\t\t\t\t\t\tvmpersistentreadIOtxt.setText(vdicalc.DEFAULTS.getString(\"vmpersistentreadIOtxt.default\"));\n\t\t\t\t\t\tvmpersistentreadIOtxt.setEnabled(true);\n\t\t\t\t\t\tvmdeltareadIOtxt.setText(vdicalc.DEFAULTS.getString(\"vmdeltareadIOtxt.default\"));\n\t\t\t\t\t\tvmdeltareadIOtxt.setEnabled(true);\n\t\t\t\t\t\tvmdeltaIOtxtlabel.setText(vdicalc.MESSAGES.getString(\"vmdeltaIOlinked.view\"));\n\t\t\t\t\t\tvmreplicasteadystateiotxt\n\t\t\t\t\t\t\t\t.setText(vdicalc.DEFAULTS.getString(\"vmreplicasteadystateiotxt.default\"));\n\t\t\t\t\t\tvmreplicasteadystateiotxt.setEnabled(true);\n\t\t\t\t\t\tvmdisposabledisksizetxt.setText(vdicalc.DEFAULTS.getString(\"vmdisposabledisksizetxt.default\"));\n\t\t\t\t\t\tvmdisposabledisksizetxt.setEnabled(true);\n\t\t\t\t\t\tvmrefreshratecombo.setEnabled(true);\n\t\t\t\t\t\tvmthinsizeparentvmtxt.setText(vdicalc.DEFAULTS.getString(\"vmthinsizeparentvmtxt.default\"));\n\t\t\t\t\t\tvmthinsizeparentvmtxt.setEnabled(true);\n\t\t\t\t\t\tpoolsnapshotcountcombo.setSelectedIndex(1);\n\t\t\t\t\t\tpoolsnapshotcountcombo.setEnabled(true);\n\n\t\t\t\t\t} else if (event.getItem().toString().equalsIgnoreCase(\"full\")) {\n\t\t\t\t\t\tvmpersistentdisksizetxt.setText(vdicalc.DEFAULTS.getString(\"vmpersistentdisksizetxt.default\"));\n\t\t\t\t\t\tvmpersistentdisksizetxt.setEnabled(false);\n\t\t\t\t\t\tvmpersistentIOtxt.setText(vdicalc.DEFAULTS.getString(\"vmpersistentIOtxt.default\"));\n\t\t\t\t\t\tvmpersistentIOtxt.setEnabled(false);\n\t\t\t\t\t\tvmpersistentreadIOtxt.setText(vdicalc.DEFAULTS.getString(\"vmpersistentreadIOtxt.default\"));\n\t\t\t\t\t\tvmpersistentreadIOtxt.setEnabled(false);\n\t\t\t\t\t\tvmdeltareadIOtxt.setText(vdicalc.DEFAULTS.getString(\"vmdeltareadIOtxt.default\"));\n\t\t\t\t\t\tvmdeltareadIOtxt.setEnabled(false);\n\t\t\t\t\t\tvmdeltaIOtxtlabel.setText(vdicalc.MESSAGES.getString(\"vmdeltaIOfull.view\"));\n\t\t\t\t\t\tvmreplicasteadystateiotxt\n\t\t\t\t\t\t\t\t.setText(vdicalc.DEFAULTS.getString(\"vmreplicasteadystateiotxt.default\"));\n\t\t\t\t\t\tvmreplicasteadystateiotxt.setEnabled(false);\n\t\t\t\t\t\tvmdisposabledisksizetxt.setText(vdicalc.DEFAULTS.getString(\"vmdisposabledisksizetxt.default\"));\n\t\t\t\t\t\tvmdisposabledisksizetxt.setEnabled(false);\n\t\t\t\t\t\tvmrefreshratecombo.setEnabled(false);\n\t\t\t\t\t\tvmthinsizeparentvmtxt.setText(vdicalc.DEFAULTS.getString(\"vmthinsizeparentvmtxt.default\"));\n\t\t\t\t\t\tvmthinsizeparentvmtxt.setEnabled(false);\n\t\t\t\t\t\tpoolsnapshotcountcombo.setSelectedIndex(1);\n\t\t\t\t\t\tpoolsnapshotcountcombo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\n\t\tj.add(vmdisposabledisksizetxtlabel, \"pos 5 142\");\n\t\tj.add(vmdisposabledisksizetxt, \"pos 190 140, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmdisposabledisksizetxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmdisposabledisksize.tooltip\"));\n\t\tvmdisposabledisksizetxt.setName(\"vmdisposabledisksizetxt\");\n\t\tvmdisposabledisksizetxt.addFocusListener(this);\n\t\tvmdisposabledisksizetxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tj.add(vmcounttxtlabel, \"pos 5 166\");\n\t\tj.add(vmcounttxt, \"pos 190 164, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmcounttxt.setName(\"vmcounttxt\");\n\t\tvmcounttxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmcount.tooltip\"));\n\t\tvmcounttxt.addFocusListener(this);\n\t\tvmcounttxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe,\n\t\t\t\t\t\t\tvdicalc.MESSAGES.getString(\"positivenumbersonly.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".default\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t\tif (Integer.parseInt(tf.getText()) > Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".maximum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".maximum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tj.add(vmconcurrenttxtlabel, \"pos 5 190\");\n\t\tj.add(vmconcurrenttxt, \"pos 190 188, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmconcurrenttxt.setName(\"vmconcurrenttxt\");\n\t\tvmconcurrenttxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmconcurrent.tooltip\"));\n\t\tvmconcurrenttxt.addFocusListener(this);\n\t\tvmconcurrenttxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) > (Integer.parseInt(vmcounttxt.getText()))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"invalid.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vmcounttxt.getText());\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe,\n\t\t\t\t\t\t\tvdicalc.MESSAGES.getString(\"positivenumbersonly.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".default\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tj.add(vmreplicasteadystateiotxtlabel, \"pos 5 215\");\n\t\tj.add(vmreplicasteadystateiotxt, \"pos 190 212, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmreplicasteadystateiotxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmreplicasteadystateio.tooltip\"));\n\t\tvmreplicasteadystateiotxt.setName(\"vmreplicasteadystateiotxt\");\n\t\tvmreplicasteadystateiotxt.addFocusListener(this);\n\t\tvmreplicasteadystateiotxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), vdicalc.MESSAGES.getString(\"outofbounds.validation\"),\n\t\t\t\t\t\t\tnull, JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tj.add(vmbootIOtxtlabel, \"pos 5 239\");\n\t\tj.add(vmbootIOtxt, \"pos 190 236, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmbootIOtxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmbootIO.tooltip\"));\n\t\tvmbootIOtxt.setName(\"vmbootIOtxt\");\n\t\tvmbootIOtxt.addFocusListener(this);\n\t\tvmbootIOtxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe,\n\t\t\t\t\t\t\tvdicalc.MESSAGES.getString(\"positivenumbersonly.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * Label and combo for number of VMs per core\n\t\t */\n\t\tj.add(vmcorelabel, \"pos 5 118\");\n\t\tj.add(vmcorecombo, \"pos 190 116, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmcorecombo.setName(\"vmcorecombo\");\n\t\tvmcorecombo.setSelectedIndex(4);\n\t\tvmcorecombo.addActionListener(this);\n\t\tvmcorecombo.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}\n\n\t\t});\n\n\t\t/*\n\t\t * Assign components to Column 1\n\t\t */\n\t\tj.add(vmmemorysizelabel, \"pos 285 45\");\n\t\tj.add(vmmemorysizetxt, \"pos 465 42, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmmemorysizetxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmmemorysize.tooltip\"));\n\t\tvmmemorysizetxt.setName(\"vmmemorysizetxt\");\n\t\tvmmemorysizetxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t\tif (Integer.parseInt(tf.getText()) > Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".maximum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".maximum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tj.add(vmmemoryreservationlabel, \"pos 285 68\");\n\t\tif (functions.isMac() || functions.isLinux()) {\n\t\t\tj.add(vmmemoryreservationcombo, \"pos 465 65, w 70!, \" + vdicalc.comboHeight);\n\t\t} else if (functions.isWindows()) {\n\t\t\tj.add(vmmemoryreservationcombo, \"pos 465 65, w 70!, \" + vdicalc.comboHeight);\n\t\t}\n\t\tvmmemoryreservationcombo.setToolTipText(vdicalc.MESSAGES.getString(\"vmmemoryreservation.tooltip\"));\n\t\tvmmemoryreservationcombo.setName(\"vmmemoryreservationcombo\");\n\t\tj.add(vmpowerstatecombolabel, \"pos 285 93\");\n\t\tif (functions.isMac() || functions.isLinux()) {\n\t\t\tj.add(vmpowerstatecombo, \"pos 465 90, w 103!, \" + vdicalc.comboHeight);\n\t\t} else if (functions.isWindows()) {\n\t\t\tj.add(vmpowerstatecombo, \"pos 465 90, w 70!, \" + vdicalc.comboHeight);\n\t\t}\n\t\tvmpowerstatecombo.setToolTipText(vdicalc.MESSAGES.getString(\"vmpowerstate.tooltip\"));\n\t\tvmpowerstatecombo.setName(\"vmpowerstatecombo\");\n\t\tj.add(vmrefreshratecombolabel, \"pos 285 118\");\n\t\tj.add(vmrefreshratecombo, \"pos 465 114, w 70!, \" + vdicalc.comboHeight);\n\n\t\tvmrefreshratecombo.setSelectedIndex(9);\n\t\tvmrefreshratecombo.setToolTipText(vdicalc.MESSAGES.getString(\"vmrefreshrate.tooltip\"));\n\t\tvmrefreshratecombo.setName(\"vmrefreshratecombo\");\n\t\t// Calculate delta size for displaying in the UI\n\t\tvmrefreshratecombo.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\n\t\t\t\tfinal Integer i = (Integer.parseInt(vmfullsizeparentvmtxt.getText())\n\t\t\t\t\t\t* Integer.parseInt(vmrefreshratecombo.getSelectedItem().toString())) / 100;\n\t\t\t\tvmrefreshratesize.setText(i.toString());\n\n\t\t\t}\n\n\t\t});\n\n\t\tj.add(vmrefreshratesize, \"pos 425 122\");\n\t\tvmrefreshratesize.setFont(new Font(\"Serif\", Font.PLAIN, 12));\n\t\tvmrefreshratesize.setForeground(Color.DARK_GRAY);\n\t\t// Simulate a action event\n\t\tvmrefreshratecombo.setSelectedIndex(9);\n\t\tfinal ActionEvent ae = new ActionEvent(vmrefreshratecombo, ActionEvent.ACTION_PERFORMED, \"\");\n\t\tvmrefreshratecombo.dispatchEvent(ae);\n\n\t\tj.add(poolsnapshotcountcombolabel, \"pos 285 142\");\n\t\tj.add(poolsnapshotcountcombo, \"pos 465 138, w 70!, \" + vdicalc.comboHeight);\n\t\tpoolsnapshotcountcombo.setSelectedIndex(1);\n\t\tpoolsnapshotcountcombo.setToolTipText(vdicalc.MESSAGES.getString(\"poolsnapshotcount.tooltip\"));\n\t\tpoolsnapshotcountcombo.setName(\"poolsnapshotcountcombo\");\n\t\tj.add(vmparentcounttxtlabel, \"pos 285 166\");\n\t\tj.add(vmparentcounttxt, \"pos 465 163, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmparentcounttxt.addFocusListener(this);\n\t\tvmparentcounttxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmparentcount.tooltip\"));\n\t\tvmparentcounttxt.setName(\"vmparentcounttxt\");\n\t\tvmparentcounttxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) > Integer.parseInt(desktoppoolcounttxt.getText())) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe,\n\t\t\t\t\t\t\tvdicalc.MESSAGES.getString(\"mustbelowerthannumberdesktoppools.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(desktoppoolcounttxt.getText());\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tj.add(desktoppoolcounttxtlabel, \"pos 285 190\");\n\t\tif (functions.isMac() || functions.isLinux()) {\n\t\t\tj.add(desktoppoolcounttxt, \"pos 465 187, w 70!, \" + vdicalc.TextfieldHeight);\n\t\t} else if (functions.isWindows()) {\n\t\t\tj.add(desktoppoolcounttxt, \"pos 465 187, w 70!, \" + vdicalc.TextfieldHeight);\n\t\t}\n\t\tdesktoppoolcounttxt.addFocusListener(this);\n\t\tdesktoppoolcounttxt.setToolTipText(vdicalc.MESSAGES.getString(\"desktoppoolcount.tooltip\"));\n\t\tdesktoppoolcounttxt.setName(\"desktoppoolcounttxt\");\n\t\tdesktoppoolcounttxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\t\t\t\tif (Integer.parseInt(tf.getText()) > Integer.parseInt(vmcounttxt.getText())) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe,\n\t\t\t\t\t\t\tvdicalc.MESSAGES.getString(\"mustbelowerthannumberdesktops.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe,\n\t\t\t\t\t\t\tvdicalc.MESSAGES.getString(\"positivenumbersonly.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".default\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t\tif ((Integer.parseInt(vmcounttxt.getText()) / Integer.parseInt(tf.getText())) > Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(\"desktoppoollimittxt.maximum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\tfinal Integer i = (Integer.parseInt(vmcounttxt.getText())\n\t\t\t\t\t\t\t/ Integer.parseInt(vdicalc.DEFAULTS.getString(\"desktoppoollimittxt.maximum\")) + 1);\n\t\t\t\t\ttf.setText(i.toString());\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tj.add(vmdeltaIOtxtlabel, \"pos 285 215\");\n\t\tj.add(vmdeltaIOtxt, \"pos 465 212, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmdeltaIOtxt.addFocusListener(this);\n\t\tvmdeltaIOtxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmdeltaIO.tooltip\"));\n\t\tvmdeltaIOtxt.setName(\"vmdeltaIOtxt\");\n\t\tj.add(vmdeltareadIOtxtlabel, \"pos 285 239\");\n\t\tj.add(vmdeltareadIOtxt, \"pos 465 236, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmdeltareadIOtxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmdeltareadIO.tooltip\"));\n\t\tvmdeltareadIOtxt.setName(\"vmdeltareadIOtxt\");\n\t\tvmdeltareadIOtxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < 1 || Integer.parseInt(tf.getText()) > 100) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".default\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t} else {\n\t\t\t\t\tfinal int i = 100 - Integer.parseInt(vmdeltareadIOtxt.getText().toString());\n\t\t\t\t\tvmdeltawriteIOtxtlabel.setText(String.valueOf(i));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tj.add(vmdeltawriteIOtxtlabellabel, \"pos 285 263\");\n\t\tj.add(vmdeltawriteIOtxtlabel, \"pos 467 261\");\n\t\tvmdeltawriteIOtxtlabel.setName(\"vmdeltawriteIOtxtlabel\");\n\n\t\t/*\n\t\t * Assign components to Column 2\n\t\t */\n\t\tj.add(vmdisplaynumbercombolabel, \"pos 570 45\");\n\t\tj.add(vmdisplaynumbercombo, \"pos 750 42, w 70!, \" + vdicalc.comboHeight);\n\t\tvmdisplaynumbercombo.setToolTipText(vdicalc.MESSAGES.getString(\"vmdisplaynumber.tooltip\"));\n\t\tvmdisplaynumbercombo.setName(\"vmdisplaynumbercombo\");\n\t\tj.add(vmdisplayresolutioncombolabel, \"pos 570 68\");\n\t\tif (functions.isMac() || functions.isLinux()) {\n\t\t\tj.add(vmdisplayresolutioncombo, \"pos 750 66, wmax 122, \" + vdicalc.comboHeight);\n\t\t} else if (functions.isWindows()) {\n\t\t\tj.add(vmdisplayresolutioncombo, \"pos 750 66, wmax 90, \" + vdicalc.comboHeight);\n\t\t}\n\t\tvmdisplayresolutioncombo.setSelectedIndex(1);\n\t\tvmdisplayresolutioncombo.setToolTipText(vdicalc.MESSAGES.getString(\"vmdisplayresolution.tooltip\"));\n\t\tvmdisplayresolutioncombo.setName(\"vmdisplayresolutioncombo\");\n\t\tj.add(vmvramlabel, \"pos 570 93\");\n\t\tif (functions.isMac() || functions.isLinux()) {\n\t\t\tj.add(vmvramcombo, \"pos 750 90, w 74!, \" + vdicalc.comboHeight);\n\t\t} else if (functions.isWindows()) {\n\t\t\tj.add(vmvramcombo, \"pos 750 90, w 70!, \" + vdicalc.comboHeight);\n\t\t}\n\t\tvmvramcombo.setSelectedIndex(0);\n\t\tvmvramcombo.setToolTipText(vdicalc.MESSAGES.getString(\"vmvram.tooltip\"));\n\t\tvmvramcombo.setName(\"vmvramcombo\");\n\t\tj.add(vmthinsizeparentvmtxtlabel, \"pos 570 118\");\n\t\tj.add(vmthinsizeparentvmtxt, \"pos 750 115, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmthinsizeparentvmtxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmthinsizeparentvm.tooltip\"));\n\t\tvmthinsizeparentvmtxt.setName(\"vmthinsizeparentvmtxt\");\n\t\tvmthinsizeparentvmtxt.addFocusListener(this);\n\t\tvmthinsizeparentvmtxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) > Integer.parseInt(vmfullsizeparentvmtxt.getText())) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vmfullsizeparentvmtxt.getText());\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tj.add(vmpersistentdisksizetxtlabel, \"pos 570 142\");\n\t\tj.add(vmpersistentdisksizetxt, \"pos 750 139, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmpersistentdisksizetxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmpersistentdisksize.tooltip\"));\n\t\tvmpersistentdisksizetxt.setName(\"vmpersistentdisksizetxt\");\n\t\tvmpersistentdisksizetxt.addFocusListener(this);\n\t\tvmpersistentdisksizetxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tj.add(vmfullsizeparentvmtxtlabel, \"pos 570 166\");\n\t\tj.add(vmfullsizeparentvmtxt, \"pos 750 163, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmfullsizeparentvmtxt.addFocusListener(this);\n\t\tvmfullsizeparentvmtxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmfullsizeparentvm.tooltip\"));\n\t\tvmfullsizeparentvmtxt.setName(\"vmfullsizeparentvmtxt\");\n\t\tvmfullsizeparentvmtxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) > Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".maximum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".maximum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tj.add(vmpersistentIOtxtlabel, \"pos 570 190\");\n\t\tj.add(vmpersistentIOtxt, \"pos 750 187, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmpersistentIOtxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmpersistentIO.tooltip\"));\n\t\tvmpersistentIOtxt.setName(\"vmpersistentIOtxt\");\n\t\tvmpersistentIOtxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\t\t\t\tif (Integer.parseInt(tf.getText()) < Integer\n\t\t\t\t\t\t.parseInt(vdicalc.DEFAULTS.getString(tf.getName().toString() + \".minimum\"))) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".minimum\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tj.add(vmpersistentreadIOtxtlabel, \"pos 570 215\");\n\t\tj.add(vmpersistentreadIOtxt, \"pos 750 212, w 70!, \" + vdicalc.TextfieldHeight);\n\t\tvmpersistentreadIOtxt.setToolTipText(vdicalc.MESSAGES.getString(\"vmpersistentreadIO.tooltip\"));\n\t\tvmpersistentreadIOtxt.setName(\"vmpersistentreadIOtxt\");\n\t\tvmpersistentreadIOtxt.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\n\t\t\t\tfinal int i = 100 - Integer.parseInt(vmpersistentreadIOtxt.getText().toString());\n\t\t\t\tvmpersistentwriteIOlabel.setText(String.valueOf(i));\n\n\t\t\t}\n\t\t});\n\t\tvmpersistentreadIOtxt.addFocusListener(new FocusListener() {\n\t\t\t@Override\n\t\t\tpublic void focusGained(final FocusEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void focusLost(final FocusEvent e) {\n\n\t\t\t\tfinal JTextField tf = (JTextField) e.getSource();\n\n\t\t\t\tif (Integer.parseInt(tf.getText()) < 1 || Integer.parseInt(tf.getText()) > 100) {\n\t\t\t\t\tJOptionPane.showMessageDialog(mainframe, vdicalc.MESSAGES.getString(\"outofbounds.validation\"), null,\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\ttf.setText(vdicalc.DEFAULTS.getString(tf.getName() + \".default\"));\n\t\t\t\t\ttf.requestFocus();\n\t\t\t\t} else {\n\t\t\t\t\tfinal int i = 100 - Integer.parseInt(vmpersistentreadIOtxt.getText().toString());\n\t\t\t\t\tvmpersistentwriteIOlabel.setText(String.valueOf(i));\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\n\t\tj.add(vmpersistentwriteIOlabellabel, \"pos 570 239\");\n\t\tj.add(vmpersistentwriteIOlabel, \"pos 750 236\");\n\t\tvmpersistentwriteIOlabel.setName(\"vmpersistentwriteIOlabel\");\n\n\t\t// Populate label that dislpays total amount of MHz used per VM\n\t\tvmvcpumhztotalsize.setText(getVmvcpumhztotal(vmvcpumhztxt.getText(), vmvcpucombo.getSelectedItem().toString(),\n\t\t\t\tvmvcpumhzoverheadcombo.getSelectedItem().toString()));\n\n\t\treturn j;\n\t}",
"public void pauseVideoAndRefreshUI() {\n this.mUI.pauseVideo();\n }",
"private void initializeViews() {\n VideoView mainVideoView = (VideoView) findViewById(R.id.mainPageVideoView);\n mainVideoView.setVideoURI(Uri.parse(\"android.resource://\" + getPackageName() + \"/\" + R.raw.documentariesandyou));\n // mainVideoView.setZOrderOnTop(true);\n mainVideoView.start();\n\n // set the font.\n Typeface type = Typeface.createFromAsset(getAssets(), \"fonts/CostaRica.ttf\");\n TextView nameTitleScreen = (TextView) findViewById(R.id.nameTitleScreen);\n TextView oneTextView = (TextView) findViewById(R.id.oneTextView);\n TextView twoTextView = (TextView) findViewById(R.id.twoTextView);\n TextView optionsTextView = (TextView) findViewById(R.id.optionsTextView);\n\n nameTitleScreen.setOnClickListener(titleHandler);\n oneTextView.setOnClickListener(oneHandler);\n twoTextView.setOnClickListener(twoHandler);\n optionsTextView.setOnClickListener(optionsHandler);\n\n nameTitleScreen.setTypeface(type);\n oneTextView.setTypeface(type);\n twoTextView.setTypeface(type);\n optionsTextView.setTypeface(type);\n }",
"MoviePlayer(String name, String manufacturer, Screen screen, MonitorType monitorType) {\n super(name, ItemType.Visual,manufacturer);\n\n this.screen = screen;\n this.monitorType = monitorType;\n }",
"public void goToVideoViewer(Uri vidURI) {\n Log.i(\"progress\",\"goToViewer\");\n\n Intent playerIntent = new Intent(this, VideoActivity.class);\n\n //attaches the video's uri\n playerIntent.putExtra(INTENT_MESSAGE, vidURI.toString());\n startActivity(playerIntent);\n }",
"private void videoVisible() {\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Button pickAcc = (Button) findViewById(R.id.chseAcc);\n uploadVideobtn = (Button) findViewById(R.id.upload_video);\n userNameTxt = (TextView) findViewById(R.id.textView);\n tokenTxt = (TextView) findViewById(R.id.textView2);\n titleEdit = (EditText) findViewById(R.id.titleNme);\n localVideoUrlTxt = (TextView) findViewById(R.id.textView3);\n youtubeUrlTxt = (TextView) findViewById(R.id.textView4);\n localVideoUrlTxt.setText(\"Local video URl:\" + videoFileName);\n pickAcc.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n pickUserAccount();\n\n }\n });\n /* uploadVideobtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (titleEdit.getText().toString().length() < 1) {\n Toast.makeText(YoutubeUpload.this, \"Enter title\", Toast.LENGTH_LONG).show();\n\n } else {\n Toast.makeText(YoutubeUpload.this, \"Initiation Started : please wait\", Toast.LENGTH_LONG).show();\n new YouTubeUploadTask().execute();\n }\n }\n });\n youtubeUrlTxt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n redirectAndPlayVideo();\n }\n });*/\n }",
"@SuppressWarnings(\"static-access\")\r\n\t@Test\r\n\tpublic void testVideoTesting() throws Exception {\r\n\t\tRegUserAndChangePass.RegisterToComcastAppAndChangePassword(driver);\r\n\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.findElement(By.linkText(\"My Dog Eve\")).click();\r\n\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.findElement(By.cssSelector(\"button.pause\")).click();\r\n\t\tThread.sleep(7000);\r\n\t\t// driver.findElement(By.cssSelector(\"button.play\")).click();\r\n\r\n\t\tThread.currentThread().sleep(7000);\r\n\t\t// String a=\r\n\t\t// driver.findElement(By.id(\"scrubber\")).getAttribute(\"Position update\");\r\n\t\t// driver.findElement(By.id(\"scrubber\")).sendKeys(\"Position update\",\"9.765\");\r\n\r\n\t\t// Mouse mouse = ((HasInputDevices) driver).getMouse();\r\n\t\tWebElement myElement = driver.findElement(By.id(\"scrubber\"));\r\n\r\n\t\t// mouse.mouseDown((Coordinates) myElement.getLocation());\r\n\r\n\t\tWebElement source = driver.findElement(By.id(\"scrubber\"));\r\n\t\tWebElement target = driver.findElement(By.id(\"scrubber\"));\r\n\t\tnew Actions(driver).dragAndDrop(source, target).build().perform();\r\n\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.findElement(By.cssSelector(\"button.pause\")).click();\r\n\t\tThread.sleep(7000);\r\n\t\tdriver.findElement(By.cssSelector(\"button.play\")).click();\r\n\r\n\t\tThread.currentThread().sleep(7000);\r\n\t\tdriver.findElement(By.id(\"scrubber\")).click();\r\n\r\n\t\tdriver.findElement(By.linkText(\"Log Out\")).click();\r\n\r\n\t\t/*\r\n\t\t * \r\n\t\t * In Video Response we are getting spaces between the text so test case\r\n\t\t * is failing Below commented lines will execute by taking xpath.\r\n\t\t * \r\n\t\t * String VideoTitle=driver.findElement(By.xpath(\r\n\t\t * \".//*[@id='content-wrap']/article/section/article/div/div/section/ul/li[1]/article/h1/a\"\r\n\t\t * )).getText(); Thread.sleep(sleepTime);\r\n\t\t * driver.findElement(By.linkText(VideoTitle)).click();\r\n\t\t * \r\n\t\t * \r\n\t\t * Thread.sleep(sleepTimeForVideoPlay); String\r\n\t\t * currentPosition=flashApp.callFlashObject(\"getCurrentPosition\");\r\n\t\t * \r\n\t\t * double videoSleepTime=(double)Math.round(sleepTimeForVideoPlay);\r\n\t\t * double latestCurrentPosition=(double)Math.round(Double.parseDouble(\r\n\t\t * currentPosition));\r\n\t\t * \r\n\t\t * if(latestCurrentPosition>20) {\r\n\t\t */\r\n\t\t/*\r\n\t\t * } else assertEquals(currentPosition,\r\n\t\t * driver.findElement(By.id(\"display\")).getText());\r\n\t\t */\r\n\t}",
"public Video() {\n\t}",
"public void grabarVideo(View v) {\n Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);\n /*Creamos un archivo que contendra el video, mandanto el path (null es para indicar que no\n va en un directorio interno, solo en la raiz) ---- nombre del video*/\n /*RECORDAR QUE ESTE ARCHIVO QUEDA EN LA CARPETA ANDROID, EN LA CARPETA CON EL NOMBRE DEL\n * PAQUETE DEL PROYECTO, ESA ES LA RAIZ*/\n File video = new File(getExternalFilesDir(null), txtNombreArchivo.getText().toString());\n /*Mandamos el permiso para almacenar, y la ruta del video donde quedara*/\n intent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(video));\n /*Ejecutamos la actividad*/\n startActivity(intent);\n }",
"public void setVideoPort(int port);",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tif (!LibsChecker.checkVitamioLibs(this))\n\t\t\treturn;\n\t\t// Vitamio.initialize(this); //先初始化\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);// 不要标题栏,必须在setContentview之前\n\t\t// 设置全屏\n\t\tthis.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\tsetContentView(R.layout.videoview);\n\t\tmVideoView = (VideoView) findViewById(R.id.surface_view);\n\t\tthis.mAudioManager = (AudioManager) this\n\t\t\t\t.getSystemService(AUDIO_SERVICE);\n\t\tthis.getWindow().setFlags(\n\t\t\t\tWindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,\n\t\t\t\tWindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);// 屏幕常亮\n\t\tIntent intent = this.getIntent();\n\t\tthis.name = intent.getStringExtra(\"name\");\n\t\tthis.url = intent.getStringExtra(\"url\");\n\t\tthis.username = intent.getStringExtra(\"username\");\n\t\tthis.courseid = intent.getStringExtra(\"courseid\");\n\t\tthis.httpUrl = intent.getStringExtra(\"httpUrl\");\n\t\tSystem.out.println(\"试听地址:\"+url);\n\t\tSystem.out.println(\"http地址:\"+httpUrl);\n\t\tthis.playType = intent.getStringExtra(\"playType\");\n\t\t/* 2014.06.19修改\n\t\tif (!\"free\".equals(playType)) {\n\t\t\tif (isLocalUrl()) {\n\t\t\t\t// 表示从文件里读取,看文件是否存在\n\t\t\t\tFile file = new File(url);\n\t\t\t\tif (!file.exists()) {\n\t\t\t\t\tToast.makeText(this, \"本地文件已经被删除\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\t// 修改courseTab中的记录,结束\n\t\t\t\t\tnew CourseDao(this).updateState(httpUrl, 0, username);\n\t\t\t\t\tif (\"local\".equals(intent.getStringExtra(\"loginType\"))) {\n\t\t\t\t\t\tthis.finish();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(!FileUtil.checkSDCard(file.length())){\n\t\t\t\t\t\t//磁盘空间不足\n\t\t\t\t\t\tToast.makeText(this, \"磁盘空间不足,b\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}*/\n\t\tLayoutInflater inflater = LayoutInflater.from(this);\n\t\tView t = inflater.inflate(R.layout.title, null);\n\t\tt.getBackground().setAlpha(0);\n\t\tView bar = inflater.inflate(R.layout.videocontrol, null);\n\n\t\tthis.videoloadingLayout = (RelativeLayout) this\n\t\t\t\t.findViewById(R.id.videoloadingLayout);\n\t\tWindowManager wm = (WindowManager) this\n\t\t\t\t.getSystemService(Context.WINDOW_SERVICE);\n\t\twidth = wm.getDefaultDisplay().getWidth();// 屏幕宽度\n\t\theight = wm.getDefaultDisplay().getHeight();// 屏幕高度\n\t\tthis.title = new PopupWindow(t, 400, 50);\n\t\tthis.title.setAnimationStyle(R.style.AnimationFade);\n\t\tthis.toolbar = new PopupWindow(bar);\n\t\tthis.toolbar.setAnimationStyle(R.style.AnimationFade);\n\t\tvideoloadingLayout.setVisibility(View.VISIBLE);\n\t\tLooper.myQueue().addIdleHandler(new IdleHandler() {\n\t\t\t@Override\n\t\t\tpublic boolean queueIdle() {\n\t\t\t\t// 显示两个popupwindow\n\t\t\t\tif (title != null && mVideoView.isShown()) {\n\t\t\t\t\ttitle.showAtLocation(mVideoView, Gravity.TOP, 0, 0);\n\t\t\t\t\ttitle.update(height - 50, 0, width, 50);\n\t\t\t\t}\n\t\t\t\tif (toolbar != null && mVideoView.isShown()) {\n\t\t\t\t\ttoolbar.showAtLocation(mVideoView, Gravity.BOTTOM, 0, 0);\n\t\t\t\t\ttoolbar.update(0, 0, width, 220);\n\t\t\t\t}\n\t\t\t\t// 显示正在加载\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\treturnBtn = (ImageButton) t.findViewById(R.id.imageBack);\n\t\ttitleTxt = (TextView) t.findViewById(R.id.videoName);\n\t\ttitleTxt.setText(name);\n\t\tseekbar = (SeekBar) bar.findViewById(R.id.seekBar);// 视频进度条\n\t\tvolumnBar = (SeekBar) t.findViewById(R.id.seekBar1);// 音量拖拽条\n\t\tvolumnSize = (TextView) t.findViewById(R.id.volumnSize);// 音量百分数\n\t\tvolumnMax = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n\t\tint current = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC);\n\t\tseekbar.setMax(1000);\n\t\tvolumnBar.setMax(volumnMax);\n\t\tvolumnBar.setProgress(current);\n\t\tvolumnSize.setText(current * 100 / volumnMax + \"%\");\n\t\tplaybtn = (ImageButton) bar.findViewById(R.id.imagePlay);\n\t\tprev = (ImageButton) bar.findViewById(R.id.imagePrevious);\n\t\tnext = (ImageButton) bar.findViewById(R.id.imageNext);\n\t\ttotalTime = (TextView) bar.findViewById(R.id.totalTime);\n\t\tcurrentTime = (TextView) bar.findViewById(R.id.playTime);\n\t\tClickEvent c = new ClickEvent();\n\t\treturnBtn.setOnClickListener(c);\n\t\tplaybtn.setOnClickListener(c);\n\t\tprev.setOnClickListener(c);\n\t\tnext.setOnClickListener(c);\n\t\tsetVolumeControlStream(AudioManager.STREAM_MUSIC);\n\t\tvolumnBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tmAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC,\n\t\t\t\t\t\tseekBar.getProgress(), 8);\n\t\t\t\tvolumnSize.setText(seekBar.getProgress() * 100\n\t\t\t\t\t\t/ seekBar.getMax() + \"%\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t\thandler = new MyHandler(this);\n\t\tinitUrl();\n\t\tif (!\"free\".equals(playType)) {\n\t\t\tinitRecord();\n\t\t\tif (isLocalUrl()) {\n\t\t\t\t// 表示从文件里读取,看文件是否存在\n\t\t\t\tfinal File file = new File(url);\n\t\t\t\tif (!file.exists()) {\n\t\t\t\t\tToast.makeText(this, \"本地文件已经被删除\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t\t// 修改courseTab中的记录,结束\n\t\t\t\t\tnew CourseDao(this).updateState(httpUrl, 0, username);\n\t\t\t\t\tif (\"local\".equals(intent.getStringExtra(\"loginType\"))) {\n\t\t\t\t\t\tthis.finish();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(!FileUtil.checkSDCard(file.length())){\n\t\t\t\t\t\t//磁盘空间不足\n\t\t\t\t\t\tToast.makeText(VideoActivity3.this, \"磁盘空间不足,改由网络播放\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\turl = httpUrl;\t//切换到web模式\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnew Thread(){\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tFile dir = Environment.getExternalStorageDirectory();\n\t\t\t\t\t\t\t\t\tString filePath = dir.getPath()+File.separator+\"eschool\"+\"temp_\";\n\t\t\t\t\t\t\t\t\tif(!new File(filePath).exists()){\n\t\t\t\t\t\t\t\t\t\tnew File(filePath).mkdirs();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\tFileUtil.encode(new File(url), Constant.OFFSET.getBytes().length, filePath+File.separator+\"current.flv\");\n\t\t\t\t\t\t\t\t\t\turl = filePath+File.separator+\"current.flv\";\n\t\t\t\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\t\t\t\tToast.makeText(VideoActivity3.this, \"文件解析出错,改由网络播放\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\t\turl = httpUrl;\t//切换到web模式\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}.start();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n\t\t\t\t\t\tcurrentTime, totalTime, record.getCurrentTime(), videoloadingLayout, url);\n\t\t\t}\n\t\t} else {\n\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n\t\t\t\tcurrentTime, totalTime, 0, videoloadingLayout, url);\n\t\t}\n//\t\tif(isLocalUrl()) //是本地文件不用检查网络\n//\t\t{\n//\t\t\tif (!\"free\".equals(playType)) {\n//\t\t\t\tinitRecord();\n//\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\tcurrentTime, totalTime, record.getCurrentTime(),\n//\t\t\t\t\tvideoloadingLayout, url);\n//\t\t\t} else {\n//\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\tcurrentTime, totalTime, 0, videoloadingLayout, url);\n//\t\t\t}\n//\t\t}else\n//\t\t{\n//\t\t\tif(checkNetWork())\n//\t\t\t{\n//\t\t\t\tif (!\"free\".equals(playType)) {\n//\t\t\t\t\tinitRecord();\n//\t\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\t\tcurrentTime, totalTime, record.getCurrentTime(),\n//\t\t\t\t\t\tvideoloadingLayout, url);\n//\t\t\t\t} else {\n//\t\t\t\tplayer = new VitamioVideoPlayer(this, mVideoView, seekbar,\n//\t\t\t\t\t\tcurrentTime, totalTime, 0, videoloadingLayout, url);\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\n\t\t// 监听播完事件\n\t\t// 开一个线程等准备好就开始播放\n\t\t// new Thread() {\n\t\t// public void run() {\n\t\t// while (true) {\n\t\t// if (player.isCreated()) {\n\t\t// String url = \"http://www.youeclass.com:8090/2013yjssssjj2-1.flv\";\n\t\t// String url2 =\n\t\t// \"http://www.youeclass.com:8090/test_video.mp4\";//2013yjssssjj2-1.flv\";\n\t\t// // 网络视频地址\n\t\t// try {\n\t\t// player.playUrl(url);\n\t\t// handler.sendEmptyMessage(1);\n\t\t// break;\n\t\t// } catch (Exception e) {\n\t\t// handler.sendEmptyMessage(-1);\n\t\t// break;\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t// };\n\t\t// }.start();\n\t\tthis.mGestureDetector = new GestureDetector(this, this);\n\t\tthis.mVideoView.setOnTouchListener(this);\n\t\tthis.mVideoView.setLongClickable(true);\n\t\tthis.mVideoView.setFocusable(true);\n\t\tthis.mVideoView.setClickable(true);\n//\t\tthis.mVideoView.setOnErrorListener(new OnErrorListener() {\n//\t\t\t@Override\n//\t\t\tpublic boolean onError(MediaPlayer mp, int what, int extra) {\n//\t\t\t\t// TODO Auto-generated method stub\n//\t\t\t\tToast.makeText(VideoActivity3.this, \"未知媒体错误\", Toast.LENGTH_LONG).show();\n//\t\t\t\ttry{\n//\t\t\t\t\tplayer.stop();\n//\t\t\t\t}catch(Exception e)\n//\t\t\t\t{\n//\t\t\t\t\te.printStackTrace();\n//\t\t\t\t}\n//\t\t\t\tVideoActivity3.this.finish();\n//\t\t\t\treturn false;\n//\t\t\t}\n//\t\t});\n\t\tmGestureDetector.setIsLongpressEnabled(true);\n\t}",
"public interface IVideoView {\n\n public void showLoading();\n\n public void clearLoading();\n\n public void showSuccess(VideoEvent videoEvent);\n\n public void showError();\n\n}",
"public int shareLocalVideo() {\n videoEnabled = !videoEnabled;\n return mRtcEngine.enableLocalVideo(videoEnabled);\n }",
"private void setUpMediaPlayer(){\n //Inicializar Media PLayer\n mGlue = new LiveMediaPlayerGlue(getActivity(),this) {\n @Override\n protected void onRowChanged(PlaybackControlsRow row) {\n\n }\n };\n\n //Fragment de Video\n Fragment videoSurfaceFragment = getFragmentManager()\n .findFragmentByTag(VideoSurfaceFragment.TAG);\n\n SurfaceView surface = (SurfaceView) videoSurfaceFragment.getView();\n surface.getHolder().addCallback(new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder holder) {\n mGlue.setDisplay(holder);\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder holder) {\n mGlue.resetPlayer();\n mGlue.releaseMediaSession();\n mGlue.setDisplay(null);\n mGlue.enableProgressUpdating(false);\n ;\n }\n });\n }",
"Builder addVideo(String value);",
"private void gotRemoteStream(MediaStream stream) {\n //we have remote video stream. add to the renderer.\n final VideoTrack videoTrack = stream.videoTracks.get(0);\n if (mEventUICallBack != null) {\n mEventUICallBack.showVideo(videoTrack);\n }\n// runOnUiThread(() -> {\n// try {\n// binding.remoteGlSurfaceView.setVisibility(View.VISIBLE);\n// videoTrack.addSink(binding.remoteGlSurfaceView);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n// });\n }",
"public void setVideo(String video) {\n this.video = video;\n }",
"public String getVideoDevice();",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_video_play);\n\n videoView = findViewById(R.id.video_view);\n// String path = Environment.getExternalStorageDirectory().getAbsolutePath()+\" Path name \";\n// videoView.setVideoPath();\n videoView.setVideoURI(Uri.parse(\"android.resource://\" + getPackageName() + \"/raw/video_transparent\"));\n\n\n MediaController mediaController = new MediaController(this);\n videoView.setMediaController(mediaController);\n mediaController.setMediaPlayer(videoView);\n\n }",
"public Video( ) { \n\t\tsuper( );\n\t}",
"public Videojuegos() {\n initComponents();\n }",
"public VideoPage()\r\n\t{\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v=inflater.inflate(R.layout.fragment_trainee__third, container, false);\n\n Record_button=(Button)v.findViewById(R.id.record_button);\n vView=(VideoView)v.findViewById(R.id.videoView);\n MediaController mediaController = new MediaController(v.getContext());\n mediaController.setAnchorView(vView);\n// set media controller object for a video view\n vView.setMediaController(mediaController);\n Record_button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dispatchTakeVideoIntent();\n\n\n }\n });\n return v;\n\n\n\n }",
"@Override\n public void videoStarted() {\n super.videoStarted();\n img_playback.setImageResource(R.drawable.ic_pause);\n if (isMuted) {\n muteVideo();\n img_vol.setImageResource(R.drawable.ic_mute);\n } else {\n unmuteVideo();\n img_vol.setImageResource(R.drawable.ic_unmute);\n }\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t\t\t\t}",
"public void run(String user) {\n\t\ttry {\n\t\t\tViewUser popup = new ViewUser(user);\n\t\t\tpopup.uvFrame.setVisible(true);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n this.application = Application.getInstance(this.getApplication().getApplicationContext());\n this.devicesManager = application.getDevicesManager();\n this.configurationManager = application.getConfigurationManager();\n\n // This flag will enable certain features that are in preview mode.\n // E.g. Audio / Video capability OnPrem topologies.\n this.configurationManager.enablePreviewFeatures(true);\n\n // Note that the sample enable video over cellular network. This is not the default.\n this.configurationManager.setRequireWiFiForVideo(false);\n\n // Max video channel count needs to be set to view video for more than one participant.\n this.configurationManager.setMaxVideoChannelCount(5);\n\n // Get UI elements.\n this.conversationStateTextView = (TextView)findViewById(R.id.statusTextViewId);\n this.joinMeetingButton = (Button)findViewById(R.id.joinMeetingButtonId);\n this.conversationsIntent = new Intent(this,ConversationsActivity.class);\n\n this.updateUiState();\n\n if (!videoLicenseAccepted) {\n AlertDialog.Builder alertDialogBuidler = new AlertDialog.Builder(this);\n alertDialogBuidler.setTitle(\"Video License\");\n alertDialogBuidler.setMessage(\"You must accept the terms of this license to use Video\");\n alertDialogBuidler.setPositiveButton(\"Accept\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n configurationManager.setEndUserAcceptedVideoLicense();\n videoLicenseAccepted = true;\n }\n });\n alertDialogBuidler.setNegativeButton(\"Decline\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n videoLicenseAccepted = false;\n }\n });\n alertDialogBuidler.show();\n }\n }",
"public void gotoVideoLandingPage(){\r\n\t\twebAppDriver.get(baseUrl+\"/videos.aspx\");\r\n\t\t//need to add verification text\r\n\t}",
"public interface VideoInterface {\n\n public void startVideo();\n\n public void reStartVideo();\n\n public void pouseVideo();\n\n public void resumeVideo();\n\n public void destoryVideo();\n}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.page_video_playing_start, container, false);\n\t\tVideoView mVideoView =(VideoView)view.findViewById(R.id.video_view);\n\t\tmVideoView.setVideoPath(\"android.resource://\" + getActivity().getPackageName() + \"/\" + R.raw.video);\n\t\tmVideoView.start();\n\t\treturn view;\n\t\t//return super.onCreateView(inflater, container, savedInstanceState);\n\t}",
"abstract public VideoDefinition createVideoDefinition(int width, int height);",
"private File createVideoFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"VIDEO_\" + timestamp + \"_\";\n File videoFile = File.createTempFile(prepend, \".mp4\", mVideoFolder);\n mVideoFileName = videoFile.getAbsolutePath();\n return videoFile;\n\n }",
"public void setVideoActivationPolicy(VideoActivationPolicy policy);",
"private void prepareYoutubeVideo() {\r\n LinearLayout main = findViewById(R.id.eventMainLayout);\r\n\r\n YouTubePlayerView playerView = findViewById(R.id.youtube_player_view);\r\n if (playerView != null) {\r\n main.removeView(findViewById(R.id.textVideoTitle));\r\n main.removeView(playerView);\r\n }\r\n\r\n TextView videoTitle = (TextView) getLayoutInflater().inflate(R.layout.component_videotitle, null);\r\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\r\n LinearLayout.LayoutParams.WRAP_CONTENT,\r\n LinearLayout.LayoutParams.WRAP_CONTENT\r\n );\r\n int marginTitle = (int) ResolutionUtil.convertDpToPixels(this, 16);\r\n params.setMargins(marginTitle, 0,0, marginTitle);\r\n videoTitle.setLayoutParams(params);\r\n\r\n YouTubePlayerView view = (YouTubePlayerView) getLayoutInflater().inflate(R.layout.component_youtubeview, null);\r\n\r\n view.addYouTubePlayerListener(new AbstractYouTubePlayerListener() {\r\n @Override\r\n public void onReady(YouTubePlayer youTubePlayer) {\r\n String videoId = YoutubeUtil.getYoutubeVideoIdFromUrl(event.youtubeUrl);\r\n youTubePlayer.loadVideo(videoId, 0);\r\n youTubePlayer.pause();\r\n }\r\n });\r\n\r\n main.addView(videoTitle);\r\n main.addView(view);\r\n }",
"private void showOST(int position) {\n\t\tString youtubeUrl = \"\";\n\t\tString youtubeId = \"\";\n\t\tString rtsp_link = \"\";\n\t\t\n\t\t//urlYoutube = ost_links[position];\n\t\t//youtubeUrl = \"http://www.youtube.com/watch?v=MV5qvrxmegY\";\n\t\t//rtsp_link = getUrlVideoRTSP(youtubeUrl);\n\t\t//rtsp_link = \"rtsp://r1---sn-a5m7zu7e.c.youtube.com/CiILENy73wIaGQkGema8vmpeMRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp\";\n\t\t//rtsp_link = \"https://archive.org/download/Pbtestfilemp4videotestmp4/video_test_512kb.mp4\";\n\t\t//rtsp_link = \"rtsp://r3---sn-a5m7zu7d.c.youtube.com/CiILENy73wIaGQn061BlwOVsxRMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp\";\n\t\trtsp_link = ost_links[position];\t\t\n\t\tVideoView videoView = (VideoView) this.findViewById(R.id.videoView1);\n\t\tLog.v(\"Video\", \"***Video to Play:: \" + rtsp_link);\n\t\t\n\t\t// add controls to a MediaPlayer like play, pause.\n\t\tMediaController mc = new MediaController(this);\n\t\tvideoView.setMediaController(mc);\n\t\n\t\t// Set the path of Video or URI\n\t\tmc.setAnchorView(videoView);\n\t\tUri videoPath = null;\n\t\tvideoPath = Uri.parse(rtsp_link);\n\t\t\n\t\tvideoView.setVideoURI(videoPath);\n\t\tvideoView.requestFocus();\n\t\tvideoView.start();\t\n\t\tmc.show();\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(context, MainVideo.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"private void createVideoFolder() {\n File movieFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES);\n mVideoFolder = new File(movieFile, \"Camera2_Video_Image\");\n //check to see if the folder is already created\n if (!mVideoFolder.exists()) {\n mVideoFolder.mkdirs();\n\n }\n\n }",
"public File createVideoFolder() {\n// File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory(\n// Environment.DIRECTORY_MOVIES + File.separator), \"RokidCameraVideo\");\n// mVideoFolder = mediaStorageDir;\n\n File movieFile = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);\n File mVideoFolder = new File(movieFile, \"Camera\");\n\n if (!mVideoFolder.exists()) {\n mVideoFolder.mkdirs();\n }\n\n return mVideoFolder;\n }",
"public static void setVideoSource(String source){\r\n\r\n editor.putString(\"VideoMode\", source);\r\n editor.commit();\r\n }",
"public void generateVideoFilename(int outputFileFormat) {\n long dateTaken = System.currentTimeMillis();\n String title = createName(dateTaken);\n String filename = new StringBuilder();\n filename.append(title);\n filename.append(convertOutputFormatToFileExt(outputFileFormat));\n filename = filename.toString();\n String mime = convertOutputFormatToMimeType(outputFileFormat);\n String path = new StringBuilder();\n path.append(Storage.DIRECTORY);\n path.append('/');\n path.append(filename);\n path = path.toString();\n String tmpPath = path;\n if (!(this.mNeedGLRender || isSupportEffects())) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(path);\n stringBuilder.append(VIDEO_TEMP_SUFFIXES);\n tmpPath = stringBuilder.toString();\n }\n this.mCurrentVideoValues = new ContentValues(9);\n this.mCurrentVideoValues.put(\"title\", title);\n this.mCurrentVideoValues.put(\"_display_name\", filename);\n this.mCurrentVideoValues.put(\"datetaken\", Long.valueOf(dateTaken));\n this.mCurrentVideoValues.put(InfoTable.DATE_MODIFIED, Long.valueOf(dateTaken / MIN_VIDEO_RECODER_DURATION));\n this.mCurrentVideoValues.put(InfoTable.MIME_TYPE, mime);\n this.mCurrentVideoValues.put(\"_data\", path);\n this.mCurrentVideoValues.put(InfoTable.WIDTH, Integer.valueOf(this.mProfile.videoFrameWidth));\n this.mCurrentVideoValues.put(InfoTable.HEIGHT, Integer.valueOf(this.mProfile.videoFrameHeight));\n ContentValues contentValues = this.mCurrentVideoValues;\n String str = InfoTable.RESOLUTION;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(Integer.toString(this.mProfile.videoFrameWidth));\n stringBuilder2.append(\"x\");\n stringBuilder2.append(Integer.toString(this.mProfile.videoFrameHeight));\n contentValues.put(str, stringBuilder2.toString());\n Location loc = this.mLocationManager.getCurrentLocation();\n if (loc != null) {\n this.mCurrentVideoValues.put(InfoTable.LATITUDE, Double.valueOf(loc.getLatitude()));\n this.mCurrentVideoValues.put(InfoTable.LONGITUDE, Double.valueOf(loc.getLongitude()));\n }\n this.mVideoFilename = tmpPath;\n Tag tag = TAG;\n stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"New video filename: \");\n stringBuilder2.append(this.mVideoFilename);\n Log.v(tag, stringBuilder2.toString());\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\n\t\tView rootView = inflater.inflate(R.layout.one_video_frag,container,false);\n\t\tvideoView = (VideoView)rootView.findViewById(R.id.videoView);\n\t\t\n\t\tMediaController mc=new MediaController(rootView.getContext());\n\t\tmc.setAnchorView(videoView);\n\t\tmc.setMediaPlayer(videoView);\n\t\t\n\t\t//Toast.makeText(rootView.getContext(),videoFile,Toast.LENGTH_LONG).show();\n\t\tvideoView.setMediaController(mc);\n\t\tvideoView.setVideoURI(Uri.parse(videoFile));\n\t\tvideoView.start();\n\t\tvideoView.setOnErrorListener(new OnErrorListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean onError(MediaPlayer mp, int what, int extra) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(\"Error in Video playing\",\"\"+what);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\treturn rootView;\n\t\t\n\t}",
"public void mo71540w() {\n boolean z;\n VideoItemParams requestId = VideoItemParams.newBuilder().setFragment(this.f73947d).setAweme(this.f73950g).setAwemeFromPage(this.f73953m).setEventType(this.f73944a).setMyProfile(this.f73946c).setPageType(this.f73954n).setEnterMethodValue(this.f74254j).setRequestId(this.f73952l);\n if (this.f74252h != null) {\n this.f74252h.mo60134a(\"video_params\", (Object) requestId);\n }\n mo71773u();\n User author = this.f73950g.getAuthor();\n if (author != null) {\n this.mTitleView.setText(this.f73949f.getString(R.string.b5s, new Object[]{author.getNickname()}));\n this.mTitleView.getPaint().setFakeBoldText(true);\n } else {\n this.mTitleView.setText(\"\");\n }\n if (this.f73950g == null || this.f73950g.isCanPlay()) {\n this.mTitleView.setVisibility(0);\n } else {\n this.mTitleView.setVisibility(4);\n }\n this.tagLayout.setEventType(this.f73944a);\n List videoLabels = this.f73950g.getVideoLabels();\n m91744a(videoLabels);\n if (!RelationLabelHelper.hasDuoShanLabel(this.f73950g)) {\n if (C6319n.m19594a(this.f73944a, \"homepage_hot\")) {\n this.tagLayout.mo61051c(this.f73950g, videoLabels, new C23440a(7, 20));\n } else {\n this.tagLayout.mo61050b(this.f73950g, videoLabels, new C23440a(7, 20));\n }\n }\n if (TextUtils.isEmpty(this.f73950g.getExtra()) || !C6399b.m19928c()) {\n this.mTxtExtra.setVisibility(8);\n } else {\n this.mTxtExtra.setText(this.f73950g.getExtra());\n this.mTxtExtra.setVisibility(0);\n }\n if (this.f73950g.getUserDigg() == 1) {\n z = true;\n } else {\n z = false;\n }\n mo71770a(z);\n if (this.f73953m == 1) {\n mo71533d(m91740N());\n }\n AwemeStatus status = this.f73950g.getStatus();\n if (status == null) {\n this.mAwemeInCheckLayout.setVisibility(8);\n } else if (status.isInReviewing()) {\n this.mAwemeInCheckLayout.setVisibility(0);\n } else {\n this.mAwemeInCheckLayout.setVisibility(8);\n }\n }",
"public void createContents()\n\t{\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"TTS - Task Tracker System\");\n\t\t\n\t\tbtnLogIn = new Button(shell, SWT.NONE);\n\t\tbtnLogIn.setBounds(349, 84, 75, 25);\n\t\tbtnLogIn.setText(\"Log In\");\n\t\tbtnLogIn.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tif (cboxUserDropDown.getText() != \"\"\n\t\t\t\t\t\t&& cboxUserDropDown.getSelectionIndex() >= 0)\n\t\t\t\t{\n\t\t\t\t\tString selectedUserName = cboxUserDropDown.getText();\n\t\t\t\t\tusers.setLoggedInUser(selectedUserName);\n\t\t\t\t\tshell.setVisible(false);\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\tnew TaskMainViewWindow(AccessUsers.getLoggedInUser());\n\t\t\t\t\tdisplay.wake();\n\t\t\t\t\tshell.setVisible(true);\n\t\t\t\t\tshell.forceFocus();\n\t\t\t\t\tshell.setActive();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnQuit = new Button(shell, SWT.CENTER);\n\t\tbtnQuit.setBounds(349, 227, 75, 25);\n\t\tbtnQuit.setText(\"Quit\");\n\t\tbtnQuit.addSelectionListener(new SelectionAdapter()\n\t\t{\n\t\t\tpublic void widgetSelected(SelectionEvent arg0)\n\t\t\t{\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcboxUserDropDown = new Combo(shell, SWT.READ_ONLY);\n\t\tcboxUserDropDown.setBounds(146, 86, 195, 23);\n\t\t\n\t\tinitUserDropDown();\n\t\t\n\t\tlblNewLabel = new Label(shell, SWT.CENTER);\n\t\tlblNewLabel.setBounds(197, 21, 183, 25);\n\t\tlblNewLabel.setFont(new Font(display, \"Times\", 14, SWT.BOLD));\n\t\tlblNewLabel.setForeground(new Color(display, 200, 0, 0));\n\t\tlblNewLabel.setText(\"Task Tracker System\");\n\t\t\n\t\ticon = new Label(shell, SWT.BORDER);\n\t\ticon.setLocation(0, 0);\n\t\ticon.setSize(140, 111);\n\t\ticon.setImage(new Image(null, \"images/task.png\"));\n\t\t\n\t\tbtnCreateUser = new Button(shell, SWT.NONE);\n\t\tbtnCreateUser.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tshell.setEnabled(false);\n\t\t\t\tnew CreateUserWindow(users);\n\t\t\t\tshell.setEnabled(true);\n\t\t\t\tinitUserDropDown();\n\t\t\t\tshell.forceFocus();\n\t\t\t\tshell.setActive();\n\t\t\t}\n\t\t});\n\t\tbtnCreateUser.setBounds(349, 115, 75, 25);\n\t\tbtnCreateUser.setText(\"Create User\");\n\t\t\n\t}"
] | [
"0.69145924",
"0.6608464",
"0.6433945",
"0.64230573",
"0.63408923",
"0.63336277",
"0.6331653",
"0.6178788",
"0.6170288",
"0.6149731",
"0.60459137",
"0.6030667",
"0.5994806",
"0.5822407",
"0.5804946",
"0.5779432",
"0.57263917",
"0.5697712",
"0.56967336",
"0.56846267",
"0.56838864",
"0.56765735",
"0.56601006",
"0.5639851",
"0.56310785",
"0.5610187",
"0.56078154",
"0.55894434",
"0.557914",
"0.557072",
"0.55665106",
"0.55583376",
"0.5551461",
"0.55396587",
"0.55396587",
"0.5537828",
"0.55267924",
"0.55112636",
"0.5494636",
"0.5484215",
"0.54722756",
"0.5468706",
"0.5464872",
"0.54351324",
"0.5424903",
"0.5391375",
"0.5388168",
"0.53828853",
"0.5382178",
"0.53669876",
"0.5364563",
"0.536384",
"0.53576386",
"0.53545886",
"0.5342043",
"0.534118",
"0.53384876",
"0.53374046",
"0.532502",
"0.5318315",
"0.53164",
"0.53147024",
"0.5309265",
"0.53024334",
"0.53008115",
"0.529881",
"0.52952045",
"0.5289036",
"0.5287856",
"0.5285889",
"0.5278315",
"0.527789",
"0.5275445",
"0.5263056",
"0.5261547",
"0.5250956",
"0.5249989",
"0.5247337",
"0.5245776",
"0.5238101",
"0.5234968",
"0.5233983",
"0.5225159",
"0.52208537",
"0.5217175",
"0.5216393",
"0.52099097",
"0.520966",
"0.52092546",
"0.51965517",
"0.5196133",
"0.5192231",
"0.519193",
"0.51780677",
"0.51753956",
"0.5168569",
"0.5166822",
"0.51662266",
"0.5164987",
"0.5164805"
] | 0.6626858 | 1 |
========================== Fragment setters ====================// Sets the room attribute to the given value | public void setParticipantFragment(Fragment fragment) {
this.room = (RoomActivityParticipantsFragment) fragment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRoom(java.lang.CharSequence value) {\n this.room = value;\n }",
"public synchronized void setRoom(String room) {\n this.room = room;\n }",
"public void setRoom(Room room) {\r\n\t\tthis.room = room;\r\n\t}",
"public export.serializers.avro.DeviceInfo.Builder setRoom(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.room = value;\n fieldSetFlags()[3] = true;\n return this;\n }",
"public void setRoom(Room room) {\n currentRoom = room;\n }",
"public void setRoom(String room) {\n\t\tthis.room = room;\n\t}",
"public void setRoom(Room room) {\n this.selectedRoom = room;\n }",
"public void setRoom(String room) {\r\n this.room = room == null ? null : room.trim();\r\n }",
"public void setRoomID(int value) {\n this.roomID = value;\n }",
"void setRoomId(String roomId);",
"public void setRoomId(int value) {\n this.roomId = value;\n }",
"private void setRoomId(long value) {\n \n roomId_ = value;\n }",
"public final void setRoom(java.lang.String room)\r\n\t{\r\n\t\tsetRoom(getContext(), room);\r\n\t}",
"@Override\r\n public void setRoom(Room room) {\n this.room = room; //set the hive room\r\n roomList.add(this.room); // add room to the list\r\n }",
"public void setRoom(Room room) {\n int roomNumber = room.getRoomNumber();\n if (room.getRoomNumber() > internalList.size()) {\n setRoomForRoomNumberLessThanNumberOfRooms(room);\n } else {\n setRoomForRoomNumberMoreThanNumberOfRooms(room);\n }\n }",
"void setRoom(int inRoom) {\n \t\tgraphics.setRoom(inRoom);\n \t}",
"public void setBuildingRoom(Room buildingRoom) {\n this.buildingRoom = buildingRoom;\n }",
"private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }",
"public final void setRoom(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String room)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Room.toString(), room);\r\n\t}",
"public void setCurrentRoom(Room setRoom)\n {\n currentRoom = setRoom;\n }",
"public void setCurrentRoom(Room newRoom) {\n playerRoom = newRoom;\n }",
"public void setRoomid(Integer newVal) {\n if ((newVal != null && this.roomid != null && (newVal.compareTo(this.roomid) == 0)) || \n (newVal == null && this.roomid == null && roomid_is_initialized)) {\n return; \n } \n this.roomid = newVal; \n roomid_is_modified = true; \n roomid_is_initialized = true; \n }",
"public String getRoom() {\r\n return room;\r\n }",
"public int getRoom(){\n\t\treturn room;\n\t}",
"public void setRoomno(String roomno) {\n this.roomno = roomno;\n }",
"public String getRoom() {\n\t\treturn room;\n\t}",
"public void setReservationroomid(Long newVal) {\n if ((newVal != null && this.reservationroomid != null && (newVal.compareTo(this.reservationroomid) == 0)) || \n (newVal == null && this.reservationroomid == null && reservationroomid_is_initialized)) {\n return; \n } \n this.reservationroomid = newVal; \n reservationroomid_is_modified = true; \n reservationroomid_is_initialized = true; \n }",
"public void setRoomid(int newVal) {\n setRoomid(new Integer(newVal));\n }",
"public void setRoomNum(String roomNum) {\n this.roomNum = roomNum == null ? null : roomNum.trim();\n }",
"public void setRoomid(Integer roomid) {\r\n this.roomid = roomid;\r\n }",
"public void setRoomNumber (int n) {\r\n\t\tthis.roomNumber = n;\r\n\t}",
"public void setRoomType (RoomType t) {\r\n\t\tthis.type = t;\r\n\t}",
"public void updateRoom(Room room);",
"public Builder setRoomId(long value) {\n copyOnWrite();\n instance.setRoomId(value);\n return this;\n }",
"public void setCurrentRoom(Room room)\n {\n addRoomHistory(currentRoom); //this adds room to history log before changing currentRoom\n currentRoom = room; //changes the currentRoom to the new room player enters\n }",
"public void setRoomIn(Room roomIn) {\n\t\tthis.roomIn = roomIn;\n\t}",
"public void setRmTable(Rooms value);",
"protected void setRoom() {\n\t\tfor(int x = 0; x < xSize; x++) {\n\t\t\tfor (int y = 0; y < ySize; y++) {\n\t\t\t\tif (WALL_GRID[y][x] == 1) {\n\t\t\t\t\tlevelSetup[x][y] = new SimpleRoom();\n\t\t\t\t} else{\n\t\t\t\t\tlevelSetup[x][y] = new ForbiddenRoom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t// put special rooms\n\t\tlevelSetup[6][0] = new RoomWithLockedDoor();\n\t\tlevelSetup[2][6] = new FragileRoom();\n\n\t}",
"public void setRoomId(Integer roomId) {\n this.roomId = roomId;\n }",
"public void setRoomId( String roomId ) {\n this.roomId = roomId;\n }",
"public void setRoomTag(Room room){\n roomTag.setRoomName(room.getName());\n roomTag.addAction(Actions.sequence(\n Actions.parallel(\n Actions.fadeIn(1f),\n Actions.moveBy(0, -roomTag.getHeight() - 10, 1f)),\n Actions.delay(2f),\n Actions.fadeOut(1f)));\n }",
"public Room() {\n this.isTable = false;\n this.hasStage = false;\n this.hasTech = false;\n }",
"public void setRooms(ArrayList value);",
"public void setRoomstid(Long newVal) {\n if ((newVal != null && this.roomstid != null && (newVal.compareTo(this.roomstid) == 0)) || \n (newVal == null && this.roomstid == null && roomstid_is_initialized)) {\n return; \n } \n this.roomstid = newVal; \n roomstid_is_modified = true; \n roomstid_is_initialized = true; \n }",
"public void setRoomId(String roomId) {\n this.roomId = roomId;\n }",
"public void setRoomtypeid(Integer newVal) {\n if ((newVal != null && this.roomtypeid != null && (newVal.compareTo(this.roomtypeid) == 0)) || \n (newVal == null && this.roomtypeid == null && roomtypeid_is_initialized)) {\n return; \n } \n this.roomtypeid = newVal; \n roomtypeid_is_modified = true; \n roomtypeid_is_initialized = true; \n }",
"public void setRoomnumber(Integer roomnumber) {\n this.roomnumber = roomnumber;\n }",
"public java.lang.CharSequence getRoom() {\n return room;\n }",
"public Room getRoom(){\n\t\treturn this.room;\n\t}",
"public java.lang.CharSequence getRoom() {\n return room;\n }",
"public void setRoomID(byte id)\r\n\t {\r\n\t this.id = id;\r\n\t }",
"public void setRoomid(Integer roomid) {\r\n\t\tthis.roomid = roomid;\r\n\t}",
"public void setRoomnumber(String roomnumber) {\r\n this.roomnumber = roomnumber;\r\n }",
"@Test\r\n\tpublic void testSetRooms() {\r\n\t\tbreaku1.setRooms(rooms1);\r\n\t\texternu1.setRooms(rooms1);\r\n\t\tmeetingu1.setRooms(rooms1);\r\n\t\tteachu1.setRooms(rooms1);\r\n\r\n\t\tassertEquals(rooms1, breaku1.getRooms());\r\n\t\tassertEquals(rooms1, externu1.getRooms());\r\n\t\tassertEquals(rooms1, meetingu1.getRooms());\r\n\t\tassertEquals(rooms1, teachu1.getRooms());\r\n\t}",
"public void setId(int newId) {\n roomId = newId;\n }",
"public void moveToRoom(Rooms room) {\n this.currentRoom = room;\n }",
"public Room getRoom()\r\n {\r\n return room;\r\n }",
"public void setROOMNUMBER(java.lang.String value)\n {\n if ((__ROOMNUMBER == null) != (value == null) || (value != null && ! value.equals(__ROOMNUMBER)))\n {\n _isDirty = true;\n }\n __ROOMNUMBER = value;\n }",
"public void enterRoom(Room room) {\n currentRoom = room;\n }",
"public Room() {\n\t\twall=\"\";\n\t\tfloor=\"\";\n\t\twindows=0;\n\t}",
"public void setRoom(int next)\n\t{\n\t\tiCurrentRoom = next;\n\t\t\n\t}",
"public Room( Rectangle r){\n\t\tthis.r = r;\n\t}",
"public Room(int roomNumber) \n\t{\n\t\tthis.roomNumber=roomNumber;\n\t}",
"public void setRoomList (ArrayList<ItcRoom> roomList)\r\n\t {\r\n\t //this.roomList = roomList;\r\n\t }",
"public String getRoomid() {\r\n\t\treturn roomid;\r\n\t}",
"public String getRoomId() {\n return roomId;\n }",
"public ViewRoom(Room r) {\n initComponents();\n this.room = r;\n this.workoutNum = 0;\n updateRoom();\n \n }",
"public String getRoomnumber() {\r\n return roomnumber;\r\n }",
"public int getRoomId() {\n return roomId;\n }",
"public Room (String number, int seatingCapacity, String roomT){\r\n this.number = number;\r\n this.seatingCapacity = seatingCapacity;\r\n this.roomType= roomT;\r\n }",
"public void setReservationroomid(long newVal) {\n setReservationroomid(new Long(newVal));\n }",
"public void setRoomtypeid(int newVal) {\n setRoomtypeid(new Integer(newVal));\n }",
"public void setRoomcard(Integer roomcard) {\n this.roomcard = roomcard;\n }",
"public void setRoomstid(long newVal) {\n setRoomstid(new Long(newVal));\n }",
"public void setInitialRoom(QuestRoom room) {\n\t\t\n\t\tinitialRoom = room;\n\t}",
"public int getRoomNumber() \n\t{\n\t\treturn roomNumber;\n\t}",
"public void setBlockroomid(Long newVal) {\n if ((newVal != null && this.blockroomid != null && (newVal.compareTo(this.blockroomid) == 0)) || \n (newVal == null && this.blockroomid == null && blockroomid_is_initialized)) {\n return; \n } \n this.blockroomid = newVal; \n blockroomid_is_modified = true; \n blockroomid_is_initialized = true; \n }",
"public long getRoomId() {\n return roomId_;\n }",
"public Room(String roomName) {\n guests = new ArrayList<>();\n roomTier = null;\n this.roomName = roomName;\n this.roomId = RoomId.generate(roomName);\n }",
"public int getRoomNumber() {\r\n\t\treturn this.roomNumber;\r\n\t}",
"public Integer getRoomId() {\n return roomId;\n }",
"public int getRoomID() {\n return roomID;\n }",
"public int getRoomID() {\r\n\t\treturn this.room.getID();\r\n\t}",
"public void setRoomView(RoomView roomView) {\n\t\tthis.roomView = roomView;\n\t}",
"@Override\n\tpublic void setRooms(List<RoomInterface> rooms) {\n\t\tthis.rooms = rooms;\n\n\t}",
"void setCurrentRoom(boolean b) throws IOException {\n currentRoom = b;\n\n if (currentRoom) {\n currentRoomLoop();\n }\n }",
"public Integer getRoomid() {\r\n return roomid;\r\n }",
"public int getRoomNum() {\n return roomNum;\n }",
"public String getRoomno() {\n return roomno;\n }",
"public Room getRoom() {\n return currentRoom;\n }",
"public Integer getRoomid() {\r\n\t\treturn roomid;\r\n\t}",
"Room getRoom();",
"Room getRoom();",
"public String getRoomNum() {\n return roomNum;\n }",
"public Room getRoom()\n {\n return currentRoom;\n }",
"public void setRoomId(Long roomId) {\n\t\tthis.roomId = roomId;\n\t}",
"public int getRoom()\n\t{\t\n\t\treturn iCurrentRoom;\n\t\t\n\t}",
"@Override\n public int getRoomId() {\n return room.getRoomId();\n }",
"public export.serializers.avro.DeviceInfo.Builder clearRoom() {\n room = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"public void setRoomtypeid(Integer roomtypeid) {\n this.roomtypeid = roomtypeid;\n }",
"public Integer getRoomnumber() {\n return roomnumber;\n }"
] | [
"0.79275817",
"0.79167044",
"0.7873616",
"0.78289443",
"0.7779647",
"0.768942",
"0.74736357",
"0.7463532",
"0.7429402",
"0.7399939",
"0.72741866",
"0.7225744",
"0.71617186",
"0.7137974",
"0.7079286",
"0.7068866",
"0.70684403",
"0.70478725",
"0.7047379",
"0.69694394",
"0.69027585",
"0.6736958",
"0.6632197",
"0.6598639",
"0.6505524",
"0.6500546",
"0.6491668",
"0.64849585",
"0.6454433",
"0.64541936",
"0.6408682",
"0.63978827",
"0.63798237",
"0.63787794",
"0.63761747",
"0.6367376",
"0.63572073",
"0.63542676",
"0.6342777",
"0.6313127",
"0.6310207",
"0.630455",
"0.62955004",
"0.62865365",
"0.625747",
"0.62305623",
"0.62232447",
"0.6216757",
"0.61938",
"0.61739814",
"0.617395",
"0.61704314",
"0.61688614",
"0.6132165",
"0.61299586",
"0.6122367",
"0.6115204",
"0.6110106",
"0.61051124",
"0.6069866",
"0.606128",
"0.60288316",
"0.60250753",
"0.60151887",
"0.59813404",
"0.5976626",
"0.595499",
"0.5943083",
"0.5938731",
"0.5936358",
"0.59118146",
"0.5910314",
"0.59088665",
"0.5908616",
"0.59068936",
"0.58941776",
"0.58832395",
"0.58719724",
"0.5852621",
"0.58427364",
"0.58308315",
"0.582992",
"0.5829108",
"0.58284104",
"0.5818061",
"0.5814495",
"0.5800549",
"0.5799589",
"0.5793673",
"0.57821715",
"0.57793784",
"0.5760937",
"0.5760937",
"0.5756902",
"0.57454497",
"0.57419574",
"0.5738176",
"0.5731445",
"0.5725484",
"0.5723059",
"0.5723014"
] | 0.0 | -1 |
Sets the video room attribute to te given value and initializes the video | public void setVideoFragment(Fragment fragment) {
this.videoRoom = (RoomActivityVideoFragment) fragment;
eventHandler = new VideoEngineEventHandler();
eventHandler.addEventHandler(this.videoRoom);
mRtcEngine.addHandler(eventHandler);
mRtcEngine.enableVideo();
mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(
VideoEncoderConfiguration.VD_1280x720,
VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_30,
VideoEncoderConfiguration.STANDARD_BITRATE,
VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));
mRtcEngine.enableLocalVideo(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }",
"public synchronized void setRoom(String room) {\n this.room = room;\n }",
"public void setRoom(Room room) {\n currentRoom = room;\n }",
"public export.serializers.avro.DeviceInfo.Builder setRoom(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.room = value;\n fieldSetFlags()[3] = true;\n return this;\n }",
"public void setRoom(Room room) {\r\n\t\tthis.room = room;\r\n\t}",
"public void setCurrentRoom(Room newRoom) {\n playerRoom = newRoom;\n }",
"public void setRoom(String room) {\n\t\tthis.room = room;\n\t}",
"public void setRoom(java.lang.CharSequence value) {\n this.room = value;\n }",
"public final void setRoom(java.lang.String room)\r\n\t{\r\n\t\tsetRoom(getContext(), room);\r\n\t}",
"public void setVideo(String video) {\n this.video = video;\n }",
"public void setRoom(String room) {\r\n this.room = room == null ? null : room.trim();\r\n }",
"public void setRoom(Room room) {\n this.selectedRoom = room;\n }",
"private void setRoomId(long value) {\n \n roomId_ = value;\n }",
"public void setVideoDevice(String id);",
"void setRoomId(String roomId);",
"@Override\r\n public void setRoom(Room room) {\n this.room = room; //set the hive room\r\n roomList.add(this.room); // add room to the list\r\n }",
"void setRoom(int inRoom) {\n \t\tgraphics.setRoom(inRoom);\n \t}",
"public final void setRoom(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String room)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Room.toString(), room);\r\n\t}",
"public void setVideo(File video){\n\t\tthis.video = video;\n\t}",
"public void setCurrentRoom(Room setRoom)\n {\n currentRoom = setRoom;\n }",
"public void setRoomID(int value) {\n this.roomID = value;\n }",
"public void setRoomId(int value) {\n this.roomId = value;\n }",
"public void setVideoPort(int port);",
"public void setCurrentRoom(Room room)\n {\n addRoomHistory(currentRoom); //this adds room to history log before changing currentRoom\n currentRoom = room; //changes the currentRoom to the new room player enters\n }",
"public void setVid(java.lang.String param) {\r\n localVidTracker = param != null;\r\n\r\n this.localVid = param;\r\n }",
"public void setRoom(Room room) {\n int roomNumber = room.getRoomNumber();\n if (room.getRoomNumber() > internalList.size()) {\n setRoomForRoomNumberLessThanNumberOfRooms(room);\n } else {\n setRoomForRoomNumberMoreThanNumberOfRooms(room);\n }\n }",
"Builder addVideo(VideoObject value);",
"Builder addVideo(String value);",
"public void setVideoPosition(long videoPosition) {\n this.videoPosition = videoPosition;\n }",
"private void initVideo(String videoPath) {\n JCVideoPlayerStandard.startFullscreen(this, JCVideoPlayerStandard.class,\n videoPath,\"\");\n\n\n\n\n\n }",
"void setCurrentRoom(boolean b) throws IOException {\n currentRoom = b;\n\n if (currentRoom) {\n currentRoomLoop();\n }\n }",
"protected void setRoom() {\n\t\tfor(int x = 0; x < xSize; x++) {\n\t\t\tfor (int y = 0; y < ySize; y++) {\n\t\t\t\tif (WALL_GRID[y][x] == 1) {\n\t\t\t\t\tlevelSetup[x][y] = new SimpleRoom();\n\t\t\t\t} else{\n\t\t\t\t\tlevelSetup[x][y] = new ForbiddenRoom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t// put special rooms\n\t\tlevelSetup[6][0] = new RoomWithLockedDoor();\n\t\tlevelSetup[2][6] = new FragileRoom();\n\n\t}",
"public void setRoomTag(Room room){\n roomTag.setRoomName(room.getName());\n roomTag.addAction(Actions.sequence(\n Actions.parallel(\n Actions.fadeIn(1f),\n Actions.moveBy(0, -roomTag.getHeight() - 10, 1f)),\n Actions.delay(2f),\n Actions.fadeOut(1f)));\n }",
"public static void setVideoSource(String source){\r\n\r\n editor.putString(\"VideoMode\", source);\r\n editor.commit();\r\n }",
"public void setVid(int value) {\r\n this.vid = value;\r\n }",
"default void setVideoPath(@Nullable String path) {\n setVideoUri(TextUtils.isEmpty(path) ? null : Uri.parse(path));\n }",
"public void setVideo(Video video) {\r\n this.video = video;\r\n\r\n nameField.setText(video.getName());\r\n urlField.setText(video.getUrl());\r\n }",
"public void setPreferredVideoDefinition(VideoDefinition vdef);",
"public void setRoom(int next)\n\t{\n\t\tiCurrentRoom = next;\n\t\t\n\t}",
"public void setBuildingRoom(Room buildingRoom) {\n this.buildingRoom = buildingRoom;\n }",
"public void setVideourl(String videourl) {\n this.videourl = videourl;\n }",
"public void setReservationroomid(Long newVal) {\n if ((newVal != null && this.reservationroomid != null && (newVal.compareTo(this.reservationroomid) == 0)) || \n (newVal == null && this.reservationroomid == null && reservationroomid_is_initialized)) {\n return; \n } \n this.reservationroomid = newVal; \n reservationroomid_is_modified = true; \n reservationroomid_is_initialized = true; \n }",
"public Room( Rectangle r){\n\t\tthis.r = r;\n\t}",
"public Room() {\n this.isTable = false;\n this.hasStage = false;\n this.hasTech = false;\n }",
"public void setRoomid(Integer newVal) {\n if ((newVal != null && this.roomid != null && (newVal.compareTo(this.roomid) == 0)) || \n (newVal == null && this.roomid == null && roomid_is_initialized)) {\n return; \n } \n this.roomid = newVal; \n roomid_is_modified = true; \n roomid_is_initialized = true; \n }",
"private void setDimension() {\n float videoProportion = getVideoProportion();\n int screenWidth = getResources().getDisplayMetrics().widthPixels;\n int screenHeight = getResources().getDisplayMetrics().heightPixels;\n float screenProportion = (float) screenHeight / (float) screenWidth;\n ViewGroup.LayoutParams lp = mVideoPlayer.getLayoutParams();\n\n if (videoProportion < screenProportion) {\n lp.height = screenHeight;\n lp.width = (int) ((float) screenHeight / videoProportion);\n } else {\n lp.width = screenWidth;\n lp.height = (int) ((float) screenWidth * videoProportion);\n }\n mVideoPlayer.setLayoutParams(lp);\n }",
"public ViewRoom(Room r) {\n initComponents();\n this.room = r;\n this.workoutNum = 0;\n updateRoom();\n \n }",
"public Mumie(Room room, Player p) {\r\n\t\tsuper(room, p);\r\n\t\tattackDamage = (-10);\r\n\t\tattackRange = 10;\r\n\t\tsenseRange = 70;\r\n\t\tspeed = 0.005f;\r\n\t\tcurrentRoom = room;\r\n\t\tplayer = p;\r\n\t\tmonsterSpecificCooldown = 1000;\r\n\t\tmonsterSpecificValue = 750;\r\n\t}",
"public Room() {\n\t\twall=\"\";\n\t\tfloor=\"\";\n\t\twindows=0;\n\t}",
"public void setRoomno(String roomno) {\n this.roomno = roomno;\n }",
"private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }",
"public void setPlayer(Player newPlayer) {\n roomPlayer = newPlayer;\n }",
"public void setRoomID(byte id)\r\n\t {\r\n\t this.id = id;\r\n\t }",
"public void setRoomid(Integer roomid) {\r\n this.roomid = roomid;\r\n }",
"public ABLVideo Video() {\r\n \treturn new ABLVideo(BrickFinder.getDefault().getVideo());\r\n }",
"public void setPreviewVideoDefinition(VideoDefinition vdef);",
"public void setVideoPortRange(int minPort, int maxPort);",
"public DocumentBodyBlock video(DocumentBodyVideo video) {\n this.video = video;\n return this;\n }",
"public void setRoomId( String roomId ) {\n this.roomId = roomId;\n }",
"public void setRoomNum(String roomNum) {\n this.roomNum = roomNum == null ? null : roomNum.trim();\n }",
"public ContentCard video(String video) {\n this.video = video;\n return this;\n }",
"public void moveToRoom(Rooms room) {\n this.currentRoom = room;\n }",
"public Builder setRoomId(long value) {\n copyOnWrite();\n instance.setRoomId(value);\n return this;\n }",
"@Test\r\n\tpublic void testSetRooms() {\r\n\t\tbreaku1.setRooms(rooms1);\r\n\t\texternu1.setRooms(rooms1);\r\n\t\tmeetingu1.setRooms(rooms1);\r\n\t\tteachu1.setRooms(rooms1);\r\n\r\n\t\tassertEquals(rooms1, breaku1.getRooms());\r\n\t\tassertEquals(rooms1, externu1.getRooms());\r\n\t\tassertEquals(rooms1, meetingu1.getRooms());\r\n\t\tassertEquals(rooms1, teachu1.getRooms());\r\n\t}",
"public Room(int roomNumber) \n\t{\n\t\tthis.roomNumber=roomNumber;\n\t}",
"void setVideoResourceId(@RawRes int resId);",
"public Video toVideo(VideoParam videoParam) {\r\n Video video = new Video();\r\n if (null == videoParam) return video;\r\n video.setId(videoParam.getId());\r\n video.setTitle(videoParam.getTitle());\r\n video.setShortTitle(videoParam.getShortTitle());\r\n video.setDesc(videoParam.getDesc());\r\n video.setShareDesc(videoParam.getShareDesc());\r\n video.setChannel(videoParam.getChannel());\r\n video.setSubChannel(videoParam.getSubChannel());\r\n video.setCid(videoParam.getCid());\r\n if (null != videoParam.getVideoType()) {\r\n VideoContentType videoContentType = VideoContentType.findByValue(videoParam.getVideoType());\r\n video.setVideoType(null == videoContentType ? VideoContentType.OTHER : videoContentType);\r\n }\r\n video.setDrmFlag(videoParam.getDrmFlag());\r\n video.setIsOverView(videoParam.getIsOverView());\r\n video.setPublishSetting(videoParam.getPublishSetting());\r\n video.setShieldAreaType(videoParam.getShieldAreaType());\r\n video.setShieldCountries(this.getCountrySubdivisionCodeSet(videoParam.getShieldCountries()));\r\n video.setRecommend2Homepage(videoParam.getRecommend2Homepage());\r\n video.setAid(null == videoParam.getAid() ? 0L : videoParam.getAid());\r\n video.setRelatedIds(this.getLongSet(videoParam.getRelatedIds()));\r\n video.setDeleted(videoParam.getDeleted());\r\n video.setPlayPlatforms(this.getPlatformSet(videoParam.getPlayPlatforms()));\r\n video.setVrsPlayPlatforms(this.getPlatformSet(videoParam.getVrsPlayPlatforms()));\r\n if (!StringUtils.isEmpty(videoParam.getImages())) {\r\n Type type = new TypeReference<Map<String, ImageUrlExt>>() {\r\n }.getType();\r\n Map<String, ImageUrlExt> coverImage = JSONObject.parseObject(videoParam.getImages(), type);\r\n video.setImages(coverImage);\r\n }\r\n video.setIsClone(videoParam.getClone());\r\n video.setDuration(videoParam.getDuration());\r\n video.setRelatedIds(this.getLongSet(videoParam.getRelatedIds()));\r\n video.setPeriod(videoParam.getPeriod());\r\n if (null != videoParam.getContentRating()) {\r\n ContentRating contentRating = ContentRating.findByValue(videoParam.getContentRating());\r\n video.setContentRating(null == contentRating ? ContentRating.ALL : contentRating);\r\n }\r\n video.setIsPay(videoParam.getIsPay());\r\n video.setPayPlatforms(this.getPlatformSet(videoParam.getPayPlatforms()));\r\n video.setPublishTime(videoParam.getPublishTime());\r\n// video.setMarkCountry(this.getCountrySubdivisionCodeSet(videoParam.getMarkCountry()));\r\n video.setReasonOfExReview(videoParam.getReasonOfExReview());\r\n video.setStarLevel(videoParam.getStarLevel());\r\n video.setSource(videoParam.getSource());\r\n video.setVideoAuthor(videoParam.getVideoAuthor());\r\n video.setStatements(Arrays.asList(new String[]{videoParam.getStatement(), videoParam.getStatement2()}));\r\n video.setCommentFlag(videoParam.isCommentFlag());\r\n video.setDownloadPlatforms(this.getPlatformSet(videoParam.getDownloadPlatforms()));\r\n video.setRecordId(videoParam.getPlaybackId());\r\n video.setHighlightId(videoParam.getHighlightId());\r\n video.setSelfProducedProgramId(videoParam.getSelfProducedProgramId());\r\n video.setCloneAids(new ArrayList<>(this.getLongSet(videoParam.getCloneAids())));\r\n video.setMatchIds(Sets.newHashSet(LeStringUtils.commaString2LongList(videoParam.getMatchIds())));\r\n video.setRelatedContents(LeStringUtils.commaString2LongList(videoParam.getRelatedContents()));\r\n video.setAllImages(LeStringUtils.commaString2StringList(videoParam.getAllImages()));\r\n return video;\r\n }",
"private void setupVideoConfig() {\n // In simple use cases, we only need to enable video capturing\n // and rendering once at the initialization step.\n // Note: audio recording and playing is enabled by default.\n mRtcEngine.enableVideo();\n\n // Please go to this page for detailed explanation\n // https://docs.agora.io/en/Video/API%20Reference/java/classio_1_1agora_1_1rtc_1_1_rtc_engine.html#af5f4de754e2c1f493096641c5c5c1d8f\n mRtcEngine.setVideoEncoderConfiguration(new VideoEncoderConfiguration(\n VideoEncoderConfiguration.VD_640x360,\n VideoEncoderConfiguration.FRAME_RATE.FRAME_RATE_FPS_15,\n VideoEncoderConfiguration.STANDARD_BITRATE,\n VideoEncoderConfiguration.ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT));\n }",
"private void initVideoPath() {\n File file = new File(Environment.getExternalStorageDirectory(),\n \"/Pictures/QQ/pandavideo_cut.mp4\");\n String videoPath = file.getAbsolutePath();\n\n// Toast.makeText(this,\"文件是否存在\"+file.exists(),Toast.LENGTH_LONG).show();\n Toast.makeText(this,\"文件路径\"+videoPath,Toast.LENGTH_LONG).show();\n mVideoView.setVideoPath(videoPath);\n mVideoView.start();\n\n }",
"private void setupPlayer() {\n\n\n\n Video video = createVideoFromUrl(\"https://sonyhdslive-lh.akamaihd.net/i/LIVELINEARCHANNELWAHSD_2@324771/index_100_av-p.m3u8?sd=10&rebase=on&id=AgC2SfL6YBG2JpMHMVl8BkTC0SpVbBy%2frYkaeUHMRu8inYQ3DHLx4I+pRLNhOPyxeLBTSrs2hL4lZw%3d%3d&hdntl=exp=1496471827~acl=%2fi%2f*~data=hdntl~hmac=808df26a60cb28eff4d28a242510d2dba361d9d8658f1e3bbe3090f85e633632\");\n brightcoveVideoView.add(video);\n brightcoveVideoView.start();\n// ImaManager.setupIma(brightcoveVideoView, googleAds);\n\n }",
"public void setVideoGuid(java.lang.String videoGuid) {\n this.videoGuid = videoGuid;\n }",
"public void setHost(Player roomHost) {\r\n this.roomHost = roomHost;\r\n }",
"public void setRoomView(RoomView roomView) {\n\t\tthis.roomView = roomView;\n\t}",
"public void setEndRoom(Room endRoom) {\n this.endRoom = endRoom;\n }",
"public void setRoomId(String roomId) {\n this.roomId = roomId;\n }",
"public void enterRoom(Room room) {\n currentRoom = room;\n }",
"public void setRoomId(Integer roomId) {\n this.roomId = roomId;\n }",
"public void setRoomList (ArrayList<ItcRoom> roomList)\r\n\t {\r\n\t //this.roomList = roomList;\r\n\t }",
"public void setRoomType (RoomType t) {\r\n\t\tthis.type = t;\r\n\t}",
"public Video( ) { \n\t\tsuper( );\n\t}",
"public String getVideo() {\n return video;\n }",
"Builder addVideo(VideoObject.Builder value);",
"public void setRoomNumber (int n) {\r\n\t\tthis.roomNumber = n;\r\n\t}",
"public void setRoomid(Integer roomid) {\r\n\t\tthis.roomid = roomid;\r\n\t}",
"public void setCourseVideo(String courseVideo) {\n this.courseVideo = courseVideo == null ? null : courseVideo.trim();\n }",
"private void onVideoPrepared(@NonNull MediaPlayer mp) {\n\n int videoWidth = mp.getVideoWidth();\n int videoHeight = mp.getVideoHeight();\n float videoProportion = (float) videoWidth / (float) videoHeight;\n int screenWidth = mLinearVideo.getWidth();\n int screenHeight = mLinearVideo.getHeight();\n float screenProportion = (float) screenWidth / (float) screenHeight;\n ViewGroup.LayoutParams lp = mVideoView.getLayoutParams();\n\n if (videoProportion > screenProportion) {\n lp.width = screenWidth;\n lp.height = (int) ((float) screenWidth / videoProportion);\n } else {\n lp.width = (int) (videoProportion * (float) screenHeight);\n lp.height = screenHeight;\n }\n\n mVideoView.setLayoutParams(lp);\n mPlayView.setVisibility(View.VISIBLE);\n mDuration = mVideoView.getDuration();\n setSeekBarPosition();\n setTimeFrames();\n setTimeVideo(0);\n\n if (mOnVideoListener != null) {\n mOnVideoListener.onVideoPrepared();\n }\n }",
"public void setVid(Integer vid) {\n this.vid = vid;\n }",
"public Video( int arg1 ) { \n\t\tsuper( );\n\t}",
"protected VideoData() {}",
"public Room() {\n roomDisplayArray = new String[roomHeight][roomWidth];\n }",
"public void setRoomid(int newVal) {\n setRoomid(new Integer(newVal));\n }",
"MoviePlayer(String name, String manufacturer, Screen screen, MonitorType monitorType) {\n super(name, ItemType.Visual,manufacturer);\n\n this.screen = screen;\n this.monitorType = monitorType;\n }",
"public String getRoom() {\r\n return room;\r\n }",
"public Html5Video(String id, IModel<List<MediaSource>> model)\n\t{\n\t\tsuper(id, model);\n\t}",
"public Video() {\n\t}",
"public void setRoomstid(Long newVal) {\n if ((newVal != null && this.roomstid != null && (newVal.compareTo(this.roomstid) == 0)) || \n (newVal == null && this.roomstid == null && roomstid_is_initialized)) {\n return; \n } \n this.roomstid = newVal; \n roomstid_is_modified = true; \n roomstid_is_initialized = true; \n }",
"public void setRoomnumber(String roomnumber) {\r\n this.roomnumber = roomnumber;\r\n }",
"public void setParticipantFragment(Fragment fragment) {\n this.room = (RoomActivityParticipantsFragment) fragment;\n }",
"public void setRoomnumber(Integer roomnumber) {\n this.roomnumber = roomnumber;\n }",
"public void setRoomIn(Room roomIn) {\n\t\tthis.roomIn = roomIn;\n\t}"
] | [
"0.6769063",
"0.6721758",
"0.6643911",
"0.65670866",
"0.652972",
"0.65024686",
"0.6397803",
"0.63950515",
"0.62852806",
"0.6271716",
"0.6221899",
"0.6201689",
"0.61363065",
"0.6107729",
"0.60984",
"0.6092261",
"0.6091468",
"0.604746",
"0.600614",
"0.5932348",
"0.5927748",
"0.5918921",
"0.5917096",
"0.588515",
"0.58353305",
"0.5829981",
"0.58278036",
"0.577785",
"0.5765238",
"0.57392544",
"0.5722621",
"0.565062",
"0.5627687",
"0.56245625",
"0.5611114",
"0.55976045",
"0.55728424",
"0.55500895",
"0.5548558",
"0.5543448",
"0.55055207",
"0.5493338",
"0.54895586",
"0.5461964",
"0.5457714",
"0.54419726",
"0.54336804",
"0.54186636",
"0.541274",
"0.5397063",
"0.5396556",
"0.53836554",
"0.535804",
"0.5349941",
"0.5348494",
"0.5326999",
"0.53259003",
"0.53158736",
"0.5306012",
"0.5284493",
"0.5282773",
"0.5274302",
"0.52685773",
"0.5265892",
"0.52538556",
"0.5252732",
"0.52460146",
"0.52339065",
"0.52284306",
"0.52252996",
"0.52177936",
"0.52061695",
"0.5205636",
"0.5201391",
"0.52013236",
"0.5192019",
"0.51885444",
"0.5185043",
"0.51818",
"0.5169557",
"0.5157071",
"0.51512337",
"0.5143132",
"0.51386786",
"0.5134081",
"0.5125088",
"0.5118724",
"0.509982",
"0.50984144",
"0.5085546",
"0.5078835",
"0.5076325",
"0.5068471",
"0.50676054",
"0.5067007",
"0.5059967",
"0.5054888",
"0.5054421",
"0.5042126",
"0.5040724"
] | 0.6703375 | 2 |
/ Save the value of the square if this identity is temporarily destroyed | @Override
public void onSaveInstanceState(Bundle savedInstanceState) {
final EditText edittext = (EditText) findViewById(R.id.edittext);
savedInstanceState.putString("square",edittext.getText().toString());
super.onSaveInstanceState(savedInstanceState);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSquareNumber() {\n\t\treturn squareNumber;\n\t}",
"public void enlargeSquare()\n {\n squareSize++;\n }",
"public Square getSquare() {\n\t\treturn new Square(y, x);\n\t}",
"public Rectangle getSquare(){\n\t\treturn this.square;\n\t}",
"@Override\n public Square getSquare() {\n return null;\n }",
"public GRect getSquare() {\n\t\treturn square;\n\t}",
"public void shrinkSquare()\n {\n squareSize--;\n }",
"public void setSquare(boolean equal) {\r\n\t\tsquare = equal;\r\n\t}",
"public byte getEndSquare (){\r\n\t\treturn end_sq;\r\n\t}",
"public int getSquareLocation()\n\t\t{\n\t\t\treturn location; // return location of square\n\t\t}",
"Square getCurrentPosition();",
"void setCurrentPosition(Square currentPosition);",
"public SquareImmutable(Square square)\n {\n this.x = square.getX();\n this.y = square.getY();\n this.isAmmoPoint = square.isAmmoPoint();\n this.isSpawnPoint = square.isSpawnPoint();\n this.color = square.getColor();\n this.playerList = square.getPlayerListColor();\n\n if (square.isSpawnPoint())\n {\n SpawnPoint s = (SpawnPoint) square;\n weaponCardList = s.getWeaponCardList().stream().map(WeaponCard::getName).collect(Collectors.toList());\n }\n else\n {\n AmmoPoint ammoPoint = (AmmoPoint) square;\n\n if (ammoPoint.getAmmoTiles() instanceof JustAmmo)\n {\n JustAmmo justAmmo = (JustAmmo) ammoPoint.getAmmoTiles();\n\n if (justAmmo == null)\n ammoTiles = null;\n else\n ammoTiles = new JustAmmoImmutable(justAmmo.getAmmoCardID(),justAmmo.getSingleAmmo(),justAmmo.getDoubleAmmo());\n }\n else\n {\n PowerAndAmmo powerAndAmmo = (PowerAndAmmo) ammoPoint.getAmmoTiles();\n if (powerAndAmmo == null)\n ammoTiles = null;\n else\n ammoTiles = new PowerAndAmmoImmutable(powerAndAmmo.getAmmoCardID(),powerAndAmmo.getSingleAmmo(),powerAndAmmo.getSecondSingleAmmo());\n }\n\n }\n }",
"double getSquareNumber();",
"@Override\n\tpublic void valueChanged(IntegerStorageChange istorageChange) {\n\t\tint value = istorageChange.getNewValue();\n\t\tSystem.out.println(\"Provided new value: \" + value + \n\t\t\t\t\t\t\t\", square is \" + value * value);\n\t}",
"@Override\n\t\tprotected int computeValue() {\n\t\t\treturn squareSide.get() * squareSide.get(); //return squared value\n\t\t}",
"@Override\r\n\t\t\tpublic Square next() {\r\n\t\t\t\treturn master.next().getValue();\r\n\t\t\t}",
"public void setCurrentSquare( Square square )\n\t{\n\t\tcurrentSquare = square; // set current square to argument\n\t\tcurrentSquareLocation = square.location;\n\t}",
"public Complex square() {\n\t\treturn new Complex(this.getReal()*this.getReal()-this.getImag()*this.getImag(), 2*this.getImag()*this.getReal());\n\t\t\n\t}",
"Square getSquare(int x, int y);",
"public void testSquare(){\n\t\tSquare s = new Square(false);\n\t\ts.toggleSquare();\n\t\tassertTrue(s.isToggle());\n\t\ts.setToggle(false);\n\t\tassertFalse(s.isToggle());\n\n\t}",
"public boolean setSquare(int row, int col, int value) {\n if (! isStartLocation(row, col)) {\n board.setSquare(row, col, value);\n return checkRules();\n }\n return true; //no move is 'valid'\n }",
"public void addSquare(Square square) {\n\t\t\n\t}",
"public Square copy() {\n\t\tSquare s = new Square(x,y);\n\t\ts.z = z;\n\t\ts.c = new Color(c.getRGB());\n\t\treturn s;\n\t}",
"private void saveMove(){\n\t\tpreviousTile=monster.currentTile;\r\n\t}",
"public SquareIF clone();",
"public Square getLastSquare() {\n\t\treturn squares.get(squares.size()-1);\n\t}",
"public Square destination() {\n return destination;\n }",
"@Override\n\tpublic double saveNumber()\n\t{\n\t\treturn num;\n\t}",
"public void setSquare(Square cell) {\n\t\tcells[cell.getRow()][cell.getColumn()] = cell; \n\t}",
"public ArrayList<Square> getSquares(){\n return bSquares;\n }",
"@Override\r\n\tpublic boolean hasAsSquare(Square square) {\r\n\t\treturn squares.containsValue(square);\r\n\t}",
"public SmartList<Square> getSquares() {\n return new SmartList<Square>(this.squares).freeze();\n }",
"public abstract GF2nElement square();",
"public double recallMemory() {\n return memoryValue;\n }",
"static int square(int num) {\n \tnum *= num;\n \tSystem.out.println(\"num in square method: \" + num);\n \treturn num;\n }",
"public boolean isSquare()\n {\n return width == height;\n }",
"public Square getCircleSquare(){\n return circleSquare;\n }",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void tesInvalidSetSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = gameState.getSquare(new Location(0, 0));\n\t\tgameState.setSquare(null, square);\n\t}",
"public void addInMemory(double num) {\n memoryValue += SciCalculator.currentValue = num;\n }",
"public Complex square() {\n\t\tdouble sqReal = (real * real) - (imaginary * imaginary);\n\t\tdouble sqImaginary = 2 * real * imaginary;\n\t\treturn new Complex(sqReal, sqImaginary);\n\t}",
"public byte getStartSquare (){\r\n\t\treturn start_sq;\r\n\t}",
"Square kingPosition() {\r\n return king;\r\n }",
"public void internalStore() {\r\n\t\tdata = busInt.get();\r\n\t}",
"@Test\n\tpublic void validOutsideSquare() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(false, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertTrue(gameState.isOutside(location));\n\t}",
"public boolean equals(Square other){\n\t\t\treturn this.x==other.x && this.y==other.y;\n\t\t}",
"@Override\r\n\t@Basic\r\n\tpublic Square getSquareAt(Point position) {\r\n\t\t// get() does an equality check, not a reference check\r\n\t\treturn squares.get(position);\r\n\t}",
"public Square getSquare(Square cell) {\n\t\treturn (Square) cells[cell.getRow()][cell.getColumn()];\n\t}",
"@Override\r\n\t@Basic\r\n\tpublic Collection<Square> getSquares() {\r\n\t\treturn squares.values();\r\n\t}",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"public SquareType getSquareType() {\n\t\treturn squareType;\n\t}",
"@Override\r\n\tpublic GameState save() {\n\t\treturn null;\r\n\t}",
"public abstract float getSquareSize();",
"public void winBigSquare (){\n /*for (int i =0; i<9; i++){\n for (int j=0; j<9; j++)\n System.out.print(bSquares.get(i).getSmallSquare(j).getOwnership()+\" \");\n System.out.println();\n }*/\n for (int i =0; i<9; i++){\n if (bSquares.get(i).getOwnership()==0){\n bSquares.get(i).setOwnership(bSquares.get(i).checkThreeInaRow());\n //System.out.println(\"SWAGSTA!\");\n }\n }\n \n }",
"public boolean isSquare() {\r\n \tif (getLength() == getWidth()) {\r\n \t\treturn(true);\r\n \t} else {\r\n \t\treturn(false);\r\n \t}\r\n }",
"protected boolean clearSquare(Location m) {\r\n \r\n \t// if the game is not complete then don't allow clicks (a partial game is one loaded for analysis which doesn't contain all the mines)\r\n \tif (partialGame) {\r\n \t\treturn false;\r\n \t}\r\n \t\r\n \t\r\n // if the game is finished then nothing to do\r\n if (gameState > GameStateModel.STARTED) {\r\n return false;\r\n }\r\n \r\n // can't reveal a location with a flag on it\r\n if (flag[m.x][m.y]) {\r\n return false;\r\n }\r\n \r\n // if the game isn't started yet, then start it\r\n if (gameState == GameStateModel.NOT_STARTED) {\r\n start(m);\r\n }\r\n \r\n // if the location is already revealed then nothing more to do\r\n if (query(m) != GameStateModel.HIDDEN) {\r\n return false;\r\n }\r\n \r\n /*\r\n // if the location is already revealed then nothing more to do\r\n if (revealed[m.x][m.y]) {\r\n return false;\r\n }\r\n */\r\n \r\n \r\n \r\n boolean mine = clearSquareHitMine(m);\r\n \r\n // if we have revealed a mine we have lost\r\n if (mine) {\r\n finish(GameStateModel.LOST);\r\n return true;\r\n }\r\n\r\n // if it wasn't a mine we have revealed one more square\r\n if (!revealed[m.x][m.y]) {\r\n \trevealed[m.x][m.y] = true;\r\n \tsquaresRevealed++;\r\n \t\r\n \tif (is3BV[m.x][m.y]) { // if this was a 3BV tile then we've cleared one more 3BV in this game\r\n \t\tcleared3BV++;\r\n \t}\r\n }\r\n \r\n \r\n // if we have revealed enough locations without hitting a mine\r\n // we have won\r\n if (squaresRevealed == this.width * this.height - this.mines) {\r\n finishFlags();\r\n finish(GameStateModel.WON);\r\n return true;\r\n }\r\n\r\n return true;\r\n \r\n }",
"@Test\n\tpublic void ValidSetSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = gameState.setSquare(new Location(0, 0), new BlankSquare());\n\t\tassertNotNull(\"Shouldn't be null\", square);\n\t}",
"@Override\n public void execute() {\n _win.getSolenoid().set(_val);\n }",
"public Square[][] getSquares() {\n \treturn squares;\n }",
"public sRectangle getSavedSRectangleBound()\n {\n return savedSRectangleBound;\n }",
"private int squareHeight() {\n return (int) getSize().getHeight() / BOARD_HEIGHT;\n }",
"public Square[][] getSquares()\n {\n return squares;\n }",
"public boolean save() {\n\t\t\tif (mmaped) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tfinal boolean ret = storage.set(index, buf);\n\t\t\tstorage.release(buf);\n\t\t\tbuf = null;\n\t\t\treturn ret;\n\t\t}",
"public double square(double num) {\n\t\treturn num * num;\n\t}",
"Square getSquare(int x, int y){\n return board[x][y];\n }",
"public static int square( int num ) {\n\t\treturn num * num;\n\t}",
"public int squareIt(int a);",
"private boolean isSquare(int i) {\n return findPreviousPerfectSquare(i) == i;\n }",
"public ArrayList<Square> getListOfSquares(){\n\t\treturn this.listOfSquares;\n\t}",
"@Test(expected = IllegalArgumentException.class)\n\tpublic void tesInvalidSetSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tgameState.setSquare(new Location(0, 0), null);\n\t}",
"public double square(int number, Credential aCrendential) throws RemoteException;",
"public void saveState() {\n savedPen.setValues(pm.pen);\n }",
"public Circle getSavedCircleBound()\n {\n return savedCircleBound;\n }",
"public void makeIdentity() {\n if (rows == cols) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n if (i == j) {\n matrix.get(i)[j] = 1;\n }\n else {\n matrix.get(i)[j] = 0;\n }\n }\n }\n }\n else {\n throw new NonSquareMatrixException();\n }\n }",
"public void saveValue() {\n String[] idCol = assignedDataObject.getIdentifyTemplate().getIdentifyColumnNames();\n if (!(idCol.length == 1 && name.equals(idCol[0]))) { // method \"copy\" must not change unique key name! For any other methods it is not needed to save from frame.\n if (this.getText().equals(\"\")) {\n assignedDataObject.setInt(name, 0);\n } else {\n assignedDataObject.setInt(name, this.getIntValue());\n }\n }\n }",
"public void SaveState() {\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n temp_pictures[i][j] = pictures[i][j];\n\n }\n }\n }",
"public double square ( int number ) throws RemoteException;",
"@Test\n\tpublic void tesInvalidSetSquare_3() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare[][] board = gameState.getBoard();\n\t\tSquare square = gameState.setSquare(new Location(board[0].length, 0), new BlankSquare());\n\t\tassertNull(\"Should be null\", square);\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn _storage ? 1 : 0;\n\t}",
"@Test\n\tpublic void invalidOutsideSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(true, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}",
"@SuppressWarnings(\"unused\")\n private static void storeOval(OvalRoi roi,\n MetadataStore store, int roiNum, int shape)\n {\n // TODO: storeOval\n }",
"public int getSquareNumber(int x, int y){\n return board[x][y].getNumber();\n }",
"public void save(){\n BoardSerializer.serialize(this);\n }",
"public S getValue() { return value; }",
"public int pop() {\n if (isEmpty()) {\n throw new IllegalStateException(\"Der Stack ist leer.\");\n }\n if((values.length / 2) >= size) {\t\t\t\t// Überprüfen, ob das Array nicht zu groß ist und ob nicht die Hälfte auch reicht\n \tint[] save = this.values;\t\t\t\t\t// sichere altes Array\n \tthis.values = new int[save.length / 2];\t\t// verkleinere values Array\n \tfor (int i = 0; i < values.length; i++) {\t// kopiere die alten Werte in das neue Array\n \t\tvalues[i] = save[i];\n \t}\n }\n int save = values[size-1];\n values[--size] = 0;\n return save;\n }",
"public double squareMagnitude() {\n\t\treturn x*x + y*y + z*z;\n\t}",
"public Square getNext() {\n\t\treturn queue.dequeue();\n\t}",
"public void saveCurrentUserState(){\n\t\tCurrentUserState currState = new CurrentUserState();\n\t\tcurrState.setBatchOutput(batchState.getBatchOutput());\n\t\tcurrState.setCurrFields(batchState.getFields());\n\t\tcurrState.setCurrProject(batchState.getProject());\n\t\tcurrState.setCurrScale(display.getScale());\n\t\tcurrState.setCurrSelectedCell(batchState.getSelectedCell());\n\t\tcurrState.setErrorCells(batchState.getErrors());\n\t\t\n\t\tcurrState.setHighlight(display.isToggleOn());\n\t\tcurrState.setInverted(display.isInverted());\n\t\t\n\t\tcurrState.setCurrWindowPos(getLocationOnScreen());\n\t\tcurrState.setCurrWindowSize(getSize());\n\t\t\n\t\tcurrState.setHorizontalDiv(bottomPanel.getDividerLocation());\n\t\tcurrState.setVertivalDiv(centerPanel.getDividerLocation());\n\t\t\n\t\tcurrState.setOriginX(display.getW_originX());\n\t\tcurrState.setOriginY(display.getW_originY());\n\t\t\n\t\tcurrState.setValues(batchState.getValues());\n\t\t\n\t\t//put to xstream\n\t\tXStream xstream = new XStream(new DomDriver());\n\t\ttry {\n\t\t\n\t\t\txstream.toXML(currState, new FileOutputStream(new File(info.getUsername() + \".xml\")));\n\t\t\tSystem.out.println(\"current state is saved!\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"file not found/ couldn't go to xml\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public SaveGame() {\n\t\tlives = 0;\n\t\tscore = 0;\n\t\tbrainX = 0;\n\t\tbrainY = 0;\n\t\tzombieX = 0;\n\t}",
"private void saveState() {\n // Increase capacity if necessary\n if (nSaved == savedC.length) {\n Object tmp;\n tmp = savedC;\n savedC = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedC,0,nSaved);\n tmp = savedCT;\n savedCT = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedCT,0,nSaved);\n tmp = savedA;\n savedA = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedA,0,nSaved);\n tmp = savedB;\n savedB = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedB,0,nSaved);\n tmp = savedDelFF;\n savedDelFF = new boolean[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedDelFF,0,nSaved);\n }\n // Save the current sate\n savedC[nSaved] = c;\n savedCT[nSaved] = cT;\n savedA[nSaved] = a;\n savedB[nSaved] = b;\n savedDelFF[nSaved] = delFF;\n nSaved++;\n }",
"public Square getfield(int number){\n return this.mySquares[number];\n }",
"public Square getTo() {\n return to;\n }",
"final Piece get(Square s) {\r\n return get(s.col(), s.row());\r\n }",
"@Override\n public boolean equals(Object o) {\n\t// TODO\n\tif(o == null)\n\t\treturn false;\n\tif(o instanceof Square){\n\t //test if they have the same side and whether their upperleft\n\t //points point to the same reference\n\t return super.equals((Square)o) &&\n\t\tthis.getSide() == ((Square)o).getSide();\n\t}\n\treturn false;\n }",
"public void dumpValue() {\n // an implementation is only needed for very large hashrecords\n }",
"private void save() {\n Tile[][] field = gameController.grid.field;\n Tile[][] undoField = gameController.grid.undoField;\n// SharedPreferenceUtil.put(this, SpConstant.WIDTH, field.length);\n// SharedPreferenceUtil.put(this, SpConstant.HEIGHT, field.length);\n for (int xx = 0; xx < field.length; xx++) {\n for (int yy = 0; yy < field[0].length; yy++) {\n if (field[xx][yy] != null) {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, field[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, 0);\n }\n\n if (undoField[xx][yy] != null) {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, undoField[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, 0);\n }\n }\n }\n SharedPreferenceUtil.put(this, SpConstant.SCORE, gameController.currentScore);\n SharedPreferenceUtil.put(this, SpConstant.HIGH_SCORE_TEMP, gameController.historyHighScore);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_SCORE, gameController.lastScore);\n SharedPreferenceUtil.put(this, SpConstant.CAN_UNDO, gameController.canUndo);\n SharedPreferenceUtil.put(this, SpConstant.GAME_STATE, gameController.gameState);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GAME_STATE, gameController.lastGameState);\n SharedPreferenceUtil.put(this, SpConstant.AUDIO_ENABLED, gameController.isAudioEnabled);\n }",
"public void setSquareVisited(int row, int col) {\n playingBoard[row][col].setVisited(true);\n }",
"public Square getSquare(Location loc)\n {\n return squares[loc.getRow()][loc.getCol()];\n }",
"@Test\n\tpublic void invalidOutsideSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = new BlankSquare();\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}",
"private void squareRoot()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.squareRoot ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}"
] | [
"0.58393985",
"0.5830079",
"0.5693141",
"0.56016755",
"0.55543184",
"0.5550833",
"0.5526034",
"0.5489127",
"0.54631186",
"0.5431997",
"0.5374469",
"0.53706443",
"0.53702575",
"0.5364685",
"0.5358849",
"0.5311026",
"0.5297191",
"0.52720773",
"0.524586",
"0.5229298",
"0.52270025",
"0.51995647",
"0.51922363",
"0.5183165",
"0.517566",
"0.51434654",
"0.51074594",
"0.50991124",
"0.50928235",
"0.5088809",
"0.5087125",
"0.50864255",
"0.50833356",
"0.50596684",
"0.5039077",
"0.50323266",
"0.50293654",
"0.50206083",
"0.5013501",
"0.49762884",
"0.49602357",
"0.49443936",
"0.4943402",
"0.49329767",
"0.49317428",
"0.492928",
"0.49281758",
"0.49075243",
"0.49062145",
"0.48983148",
"0.48947406",
"0.4893859",
"0.4880423",
"0.48791945",
"0.4863743",
"0.486169",
"0.48605278",
"0.4854591",
"0.48389944",
"0.48362765",
"0.48258734",
"0.48222736",
"0.48171028",
"0.48093265",
"0.4806982",
"0.48027468",
"0.4799862",
"0.47993574",
"0.47951165",
"0.47857684",
"0.47744462",
"0.47659552",
"0.47585687",
"0.47509703",
"0.4748179",
"0.47366205",
"0.47345608",
"0.4721559",
"0.47140083",
"0.47072354",
"0.47017917",
"0.46969613",
"0.46964452",
"0.46947432",
"0.46883568",
"0.4678467",
"0.4666026",
"0.46634293",
"0.4656741",
"0.46545342",
"0.4650915",
"0.46463522",
"0.4646337",
"0.4633976",
"0.46321565",
"0.46218923",
"0.4615998",
"0.46157324",
"0.45993823",
"0.4581439"
] | 0.5723648 | 2 |
Toast.makeText(this, this.homeId.getText().toString(), Toast.LENGTH_SHORT).show(); this.dbInput(); | public void goToHomeTeam(View view) {
Intent intent = new Intent(this, teamDetailDone.class);
intent.putExtra("id", this.homeId.getText().toString());
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClick(View view){\n\n String name = mNameField.getText().toString();\n Toast.makeText(this,\"Hello There\"+name, Toast.LENGTH_LONG).show();\n\n }",
"public void clickFunction(View view){\n Toast.makeText(MainActivity.this, \"Hi there!\", Toast.LENGTH_LONG).show();\n\n // here we've created a variable \"myTextField\" of type \"EditText\" which collect the data from the ID i.e \"myTextField\" and convert the view ID into EditText type and stores into the variable.\n EditText myTextField = (EditText) findViewById(R.id.myTextField);\n\n // here the Log.i function is used to show the info to the logcat terminal which required two fields i.e Tag & the data to show (here the data is taken from the myTextField variable created above.\n Log.i(\"Info\",myTextField.getText().toString());\n }",
"@Override\n public void onClick(View v) {\n TextView txtDate = (TextView)findViewById(R.id.tvDate);\n TextView txtTime = (TextView)findViewById(R.id.tvTime);\n // Log.v(\"Vidushi:update\", userId);\n helper.insertVolunteerDuty(userId,txtDate.getText().toString(),txtTime.getText().toString());\n Toast.makeText(getApplicationContext(),\"Information Saved\", Toast.LENGTH_SHORT).show();\n\n\n }",
"public void AddData(View view){\n\n BackgroundTask backgroundTask= new BackgroundTask(this);\n backgroundTask.execute(\"add_info\", name1.getText().toString(), ranking1.getText().toString(),\n fee1.getText().toString(), program1.getText().toString(), city1.getText().toString(),\n country1.getText().toString(), continent1.getSelectedItem().toString());\n\n Toast.makeText(Inserting.this, \"New data inserted!\", Toast.LENGTH_LONG).show();\n\n name1.setText(\"\");\n ranking1.setText(\"\");\n fee1.setText(\"\");\n program1.setText(\"\");\n city1.setText(\"\");\n country1.setText(\"\");\n\n\n\n }",
"protected void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\r\n\tsetContentView(R.layout.input_med);\r\n\tButton submit=(Button)findViewById(R.id.button1);\r\n\t\r\n\t//Toast.makeText(getApplicationContext(), \r\n // a, Toast.LENGTH_LONG).show();\r\n\tsubmit.setOnClickListener(new View.OnClickListener() {\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void onClick(View v) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tdrug=(EditText)findViewById(R.id.editText1);\r\n\t\t\tabc=drug.getText().toString();\r\n\t\t\tToast.makeText(getApplicationContext(), \r\n\t\t abc, Toast.LENGTH_LONG).show();\r\n\t\t\tIntent intent3=new Intent(Input_Med.this,Med_Info.class);\r\n\t\t\tintent3.putExtra(\"drug\", abc);\r\n\t\t\tstartActivity(intent3);\r\n\t\t\t\r\n\t\t}\r\n\t});\r\n}",
"@Override\npublic void onClick(View v) {\n\tEditText eMobileNo = (EditText) findViewById(R.id.eMobileNo);\n mobile = eMobileNo.getText().toString().replaceAll(\"[^\\\\d]\", \"\");;\n\n \n\n String tmp = \"Sign up code sent to \" + mobile + \" imei: \" + imei;\n Toast.makeText(RegisterMe.this,\"Register button Clicked\", Toast.LENGTH_SHORT).show();\n \n postData();\n ConfirmToken();\n\n}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n raspPiID =(EditText) findViewById(R.id.rasPI1);\n LogIn = (Button) findViewById(R.id.Log_in);\n LogIn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n validate(raspPiID.getText().toString());\n }\n\n });\n\n\n\n\n\n }",
"@Override\n public void onClick(View v) {\n name = editName.getText().toString();\n num = editNum.getText().toString();\n //if all sectors are not written, show message\n if(name.equalsIgnoreCase(\"\") || num.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"모든 항목을 입력해주세요.\", Toast.LENGTH_LONG).show();\n } else { //if all sectors are filled, store data in DB, and show list by using list view\n //reset editText\n editName.setText(\"\");\n editNum.setText(\"\");\n //insert data in DB\n insert(name, num);\n //show data list by using list view\n showList();\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n iboClass ibo = dataSnapshot.getValue(iboClass.class);\n\n System.out.println(\"IBONum_Input: \" + ibo.IBONum);\n fullName = ibo.fullName;\n\n SharedPreferences.Editor ed = savedValues.edit();\n makeToast(\"Welcome back, \" + fullName);\n ed.putString(\"IBONum\", ibo.IBONum);\n ed.commit();\n startNewActivity();\n\n\n\n }",
"public void viewdata() {\n\n login.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Cursor res = mydb.getData(user.getText().toString(), p.getText().toString());\n\n if (res.getCount() == 0) {\n\n showmessage(\"ERROR\", \"INVALID USER NAME OR PASSWORD\");\n user.setText(\"\");\n p.setText(\"\");\n return;\n\n }\n\n Intent i = new Intent(MainActivity.this,Details.class);\n i.putExtra(\"name\",user.getText().toString());\n i.putExtra(\"pwd\",p.getText().toString());\n user.setText(\"\");\n p.setText(\"\");\n startActivity(i);\n }\n });\n\n }",
"public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n new PostOutstandingLoanClass(context).execute();\n }",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tif(usernameedit.getText().toString().equals(\"\") || password.getText().toString().equals(\"\"))\n\t\t{\t\t\t\t\t\n\t\t\t\t\tToast toast= Toast.makeText(getApplicationContext(), \n\t\t\t\t\t\"Fill All Details\", Toast.LENGTH_SHORT); \n\t\t\t\t\ttoast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\t\t\t\ttoast.show();\n\t\t\t//Toast.makeText(Login.this, \"Fill all fields\", Toast.LENGTH_SHORT).show();\n\t\t}else{\n\t\t\t//new loadSomeStuff().execute();\n\t\t\tsContext = getApplicationContext();\n\t\t\tnew loadSomeStuff().execute();\n\t\t}\n\t}",
"private void onLoadButtonPressed() {\n EditText name = ((EditText) findViewById(R.id.name_edit_text));\n EditText number = ((EditText) findViewById(R.id.number_edit_text));\n if (name.getText().toString().equals(\"\")) {\n Toast.makeText(MainActivity.this, \"Empty string is not valid!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n// String num = sharedPrefs.getString(name.getText().toString(), \"Contact don't exist.\");\n// number.setText(num);\n\n try (Cursor cursor = database.query(\n ContactDbSchema.TABLE_NAME,\n null,\n ContactDbSchema.Cols.NAME + \" = ? \",\n new String[]{name.getText().toString()},\n null, null, null)) {\n cursor.moveToFirst();\n\n if (cursor.isAfterLast()) {\n Toast.makeText(MainActivity.this, \"Error! The contact was not found.\", Toast.LENGTH_SHORT).show();\n return;\n }\n int colIndex = cursor.getColumnIndex(ContactDbSchema.Cols.NUMBER);\n if (colIndex < 0) {\n Toast.makeText(MainActivity.this, \"Error! The contact was not found in cursor.\", Toast.LENGTH_SHORT).show();\n return;\n }\n String numberStr = cursor.getString(colIndex);\n number.setText(numberStr);\n\n }\n }",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\r\n\t\t\r\n\t\tcase R.id.bSQLUpdate:\r\n\t\t\tboolean did=true;\r\n\t\t\ttry{\r\n\t\t\t\tString name=sqlName.getText().toString();\r\n\t\t\t\tString detail=sqlDetail.getText().toString();\r\n\t\t\t\tString date=sqlDate.getText().toString();\r\n\t\t\t\tString location=sqlLocation.getText().toString();\r\n\t\t\t\tString year=sqlYear.getText().toString();\r\n\t\t\t\tString year1=sqlYear1.getText().toString();\r\n\t\t\t\tint a=name.length();\r\n\t\t\t\tint b=5/a;\r\n\t\t\t\ta=detail.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=date.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=location.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year1.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\t\r\n\t\t\t\tData entry=new Data(SQLexample.this);\r\n\t\t\tentry.open();\r\n\t\t\tentry.createEntry(name,detail,date,location,year,year1);\r\n\t\t\tentry.close();\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tdid=false;\r\n\t\t\t\t/*String error=e.toString();\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"Error\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(error);\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();*/\r\n\t\t\t\t\r\n\t\t\t}finally{\r\n\t\t\t\tif(did){\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"ok\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Data Entered Successfully\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();}\r\n\t\t\telse{\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"alert\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Fill all the fields**\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase R.id.bSQLopenView:\r\n\t\t\tIntent i=new Intent(SQLexample.this,SQLView.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t}",
"public void InsertData(View v){\n boolean isInserted = myDB.insertData(et_name.getText().toString(), et_surname.getText().toString(), et_marks.getText().toString());\n\n // if the data is inserted successfully\n if(isInserted){\n Toast.makeText(getApplicationContext(), \"Data inserted.\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(), \"Data insertion failure.\", Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n getThayDoiThongTin getThayDoiThongTin = new getThayDoiThongTin();\n getThayDoiThongTin.execute();\n ChangeHinh();\n\n\n\n\n TextView txtHoTen = ((Activity) ThongTinContext.context).findViewById(R.id.txtHoVaTenTT);\n TextView txtNgaySinh = ((Activity) ThongTinContext.context).findViewById(R.id.txtNgaySinhTT);\n TextView txtDiaChi = ((Activity) ThongTinContext.context).findViewById(R.id.txtDiaChiTT);\n txtHoTen.setText(editTextHoVaTen.getText().toString());\n txtNgaySinh.setText(editTextNgaySinh.getText().toString());\n txtDiaChi.setText(spnXaPhuong.getSelectedItem().toString() + \", \" + spnHuyenQuan.getSelectedItem().toString() + \", \" + spnTinhTp.getSelectedItem().toString());\n\n Toast.makeText(ThayDoiThongTin.this, \"Thay đổi thành công !\", Toast.LENGTH_SHORT).show();\n finish();\n\n }",
"@Override\n public void onClick(View v) {\n queryMain = svBusqueda.getQuery();\n Toast.makeText(getApplicationContext(),\"ejecutando consulta \"+queryMain,Toast.LENGTH_LONG).show();\n consultarDb();\n }",
"@Override\n public boolean onLongClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"peppino\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Peppino :)\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Peppino Not Inserted\", Toast.LENGTH_LONG).show();\n\n return true;\n }",
"public void onClick(View v) {\n\t\t\t\tString ff=fname.getText().toString().trim();\n\t\t\t\tString ll=lname.getText().toString().trim();\n\t\t\t\tMyDb mydb=new MyDb(Insert.this);\n\t\t\t\tSQLiteDatabase database=mydb.getWritableDatabase();\n\t\t\t\tContentValues context = new ContentValues();\n\t\t\t\tcontext.put(\"fname\", ff);\n\t\t\t\tcontext.put(\"lname\", ll);\n\t\t\t\tlong a=database.insert(\"demotable\", null, context);\n\t\t\t\tif(a>0){\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"insert\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Fail\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"public void takeAttendance(View view){\n\n if(_id.getText().toString().isEmpty() || _name.getText().toString().isEmpty()){ //Check if all fields are filled\n Toast.makeText(this, \"Enter all Fields\", Toast.LENGTH_LONG).show();\n return;\n }\n if(_id.getText().toString().length() != 9 ) { //checks if the ID is 9 digits (AUB students' IDs are usually 9-digits)\n Toast.makeText(this, \"Enter a valid ID\", Toast.LENGTH_LONG).show();\n return;\n }\n Intent intent = new Intent(this,Take_Attendance.class );\n setResult(RESULT_OK, intent);\n int id = Integer.parseInt(_id.getText().toString());\n String name = _name.getText().toString();\n intent.putExtra(STUDENT_ID, id);\n intent.putExtra(STUDENT_NAME, name);\n finish();\n }",
"public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), employer_add_posts.class);\n startActivity(intent);\n\n // your handler code here\n EditText employer_companyname = findViewById(R.id.employer_company_name);\n EditText employer_phone = findViewById(R.id.employer_email);\n EditText employer_email = findViewById(R.id.employer_phone_cyte);\n EditText employer_password = findViewById(R.id.employer_pass_cyte);\n EditText employer_location = findViewById(R.id.employer_location_cyte);\n\n // Pull input from text boxes\n String employee_name1 = employer_companyname.getText().toString();\n String employee_phone1 = employer_phone.getText().toString();\n String employee_email1 = employer_email.getText().toString();\n String employee_password1 = employer_password.getText().toString();\n String employee_location1 = employer_location.getText().toString();\n\n emperdb.addEmployer(employer_companyname, employer_phone, employer_email, employer_password, employer_location);\n\n // Send username and password to the database and check\n\n //login_button.setText(username + \" \" + password); // Get rid of this\n Toast.makeText(getApplicationContext(), \"Your data is stored\", Toast.LENGTH_SHORT).show();\n\n }",
"public void onCreateButtonClick(View view){\n boolean isInserted;\n\n EditText editFirst = (EditText) findViewById(R.id.First_Name);\n EditText editLast = (EditText) findViewById(R.id.Last_Name);\n EditText editEmail = (EditText) findViewById(R.id.email);\n EditText PWD1 = (EditText) findViewById(R.id.password1ET);\n EditText PWD2 = (EditText) findViewById(R.id.password2ET);\n EditText usernameET = (EditText) findViewById(R.id.UserNameIDET);\n\n if (view.getId() == R.id.btn_CAA){\n\n String password1 = PWD1.getText().toString();\n String password2 = PWD2.getText().toString();\n\n // check password match\n if (!password1.equals(password2) || (password1.equals(\"\")) || (password2.equals(\"\"))){\n\n Toast.makeText(CreateAnAccount.this, \"Passwords do not match!\", Toast.LENGTH_LONG).show();\n }\n else {\n isInserted = mydb.insertData(editFirst.getText().toString(),\n editLast.getText().toString(), editEmail.getText().toString(),\n usernameET.getText().toString(), PWD1.getText().toString());\n if(isInserted){\n Toast.makeText(CreateAnAccount.this, \"Data inserted\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(CreateAnAccount.this, MainMenu.class));\n\n } else {\n Toast.makeText(CreateAnAccount.this, \"Data not inserted\", Toast.LENGTH_LONG).show();\n }\n }\n }\n\n }",
"@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"cigarette\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Cigarette Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Cigarette Not Inserted\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n String name=et1.getText().toString();\n String course=et2.getText().toString();\n myDatabase.insertStudent(name,course);//request for db file for insertion\n et1.setText(\"\");\n et2.setText(\"\");\n et1.requestFocus();\n Toast.makeText(getActivity(), \"inserted a row\", Toast.LENGTH_SHORT).show();\n\n\n }",
"@Override\n public void onClick(View view) {\n\n\n System.out.printf(\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\n backgroundTaskRegister.execute(\"post\",C_fname.getText().toString(),C_lname.getText().toString(),C_email.getText().toString(),C_password.getText().toString(),C_contact_number.getText().toString(),C_birthdate.getText().toString(),C_profession.getText().toString(),C_city.getText().toString(),C_business_desc.getText().toString(),C_reg_date.getText().toString());\n\n }",
"public void inClick() {\n if (!myDbHelper.CheckIsDataAlreadyInDBorNot(\"Users\",\"username\",\"'\"+username.getText().toString()+\"'\")) {\n progress.setText(\"That is not a username, please press sign Up to add it.\");\n } else {\n if (myDbHelper.CheckIsDataAlreadyInDBorNot(password.getText().toString(),username.getText().toString())) {\n try {\n InputMethodManager inputManager = (InputMethodManager)\n getSystemService(Context.INPUT_METHOD_SERVICE);\n\n inputManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(),\n InputMethodManager.HIDE_NOT_ALWAYS);\n }catch (Exception e ){\n Log.d(\"Error\",\"hiding keyboard\");\n }\n Log.d(\"Logged\", \"IN\");\n myDbHelper.logOut();\n myDbHelper.logIn(username.getText().toString());\n progress.setText(username.getText().toString()+\" you have logged in.\");\n// progress.setText(myDbHelper.read(\"Users\",\"loggedIn\",\"username = 'user'\"));\n//TextToSpeech tts = new TextToSpeech(this,this);\n// tts.setLanguage(Locale.US);\n// tts.speak(\"Welcome\"+(username.getText().toString())+\"\",TextToSpeech.QUEUE_ADD,null);\n }else{\n progress.setText(\"incorrect username or password\");\n }\n\n// boolean valid= false;\n// username.setText(\"\");\n//// valid = g1.signIn(username.getText().toString(), password.getText().toString());\n// valid= g1.signIn(\"cal\",\"pi\");\n\n// if(!valid){\n// notValid();\n// }\n// g1.signIn();\n// username.setText(\"bpo\");\n }\n }",
"@Override\n public void onClick(View v) {\n Phone = RegisterPhone.getText().toString();\n Password = RegisterPassword.getText().toString();\n Name = RegisterName.getText().toString();\n\n\n CreateNewAccount(Phone,Password,Name);\n }",
"private void show_input() {\n clear();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"ادخل رقم البطاقة\");\n\n// Set up the input\n final EditText input = new EditText(this);\n// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n builder.setView(input);\n\n// Set up the buttons\n builder.setPositiveButton(\"تم\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n String Customer_id = input.getText().toString();\n getMenuID_Card(getCardURL, Customer_id);\n Log.d(\"karrar\", \"getMenuID_Card func \" + Customer_id);\n session.setScanfor(\"0\");\n\n }\n });\n// builder.setNegativeButton(\"الغاء\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// dialog.cancel();\n// }\n// });\n\n builder.show();\n }",
"public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n new PostClass(context).execute();\n }",
"@Override\n public void onClick(View v) {\n reference = FirebaseDatabase.getInstance().getReference().child(\"HutangApp\").\n child(\"hutang\" + hutangNum);\n reference.addListenerForSingleValueEvent(new ValueEventListener() { // Ketika ada perubahan data dibaca 1x\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n // Set and put the data in MainActivity\n dataSnapshot.getRef().child(\"nama\").setValue(namahutang.getText().toString());\n dataSnapshot.getRef().child(\"jumlah\").setValue(jumlahhutang.getText().toString());\n dataSnapshot.getRef().child(\"deskripsi\").setValue(deskripsihutang.getText().toString());\n dataSnapshot.getRef().child(\"tanggal\").setValue(tanggalhutang.getText().toString());\n dataSnapshot.getRef().child(\"keyhutang\").setValue(keyhutang);\n\n // Show the data in MainActivity\n Toast.makeText(getApplicationContext(), \"Data successfully added\", Toast.LENGTH_SHORT).show();\n\n Intent a = new Intent(NewHutangAct.this, MainActivity.class);\n startActivity(a);\n finish();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"public void clickLogin(){\n btn_login.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String nameStr = edt_name.getText().toString();\n String passStr = edt_pass.getText().toString();\n if(!nameStr.isEmpty() && !passStr.isEmpty()){\n\n Boolean loginSuccess = login_db.findData(nameStr, passStr);\n if(loginSuccess){\n Toast.makeText(LoginActivity.this,\"Đăng nhập thành công\", Toast.LENGTH_LONG).show();\n }\n else {\n Toast.makeText(LoginActivity.this,\"Đăng nhập không thành công\", Toast.LENGTH_LONG).show();\n }\n }\n else {\n\n Toast.makeText(LoginActivity.this,\"Thất bại không được để trống thông tin\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }",
"private void display() {\n TextView textview = (TextView) findViewById(R.id.textView);\n EditText editText = (EditText) findViewById(R.id.editNumber) ;\n textview.setText(\"TEXT\");\n editText.setText(\"\");\n\n }",
"@Override\n public void onClick(View v) {\n String userName = \"\";\n String userPass = \"\";\n userName = name.getEditText().getText().toString();\n userPass = pass.getEditText().getText().toString();\n }",
"@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"espresso\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Espresso Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Espresso Not Inserted\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View view) {\n if (mEdtTask.getText().toString().trim().matches(\"\") && mEdtDuration.getText().toString().trim().matches(\"\")){\n Toast.makeText(MainActivity.this, \"Empty field\", Toast.LENGTH_SHORT).show();\n } else {\n try {\n mSQLiteHelper.insertData(\n mEdtTask.getText().toString().trim(),\n mEdtDuration.getText().toString().trim(),\n mEdtStatus.getText().toString().trim()\n );\n Toast.makeText(MainActivity.this, \"Added successfully\", Toast.LENGTH_SHORT).show();\n //reset views\n mEdtTask.setText(\"\");\n mEdtDuration.setText(\"\");\n mEdtStatus.setText(\"\");\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n }",
"public void insert(View view) {\n\n Log.w(\"InsertActivity\", \"Insert Button Pushed!\");\n\n EditText etFirstName = findViewById(R.id.input_first_name);\n EditText etLastName = findViewById(R.id.input_last_name);\n EditText etEmailAddress = findViewById(R.id.input_email_address);\n String firstName = etFirstName.getText().toString();\n String lastName = etLastName.getText().toString();\n String emailAddress = etEmailAddress.getText().toString();\n\n // insert into the database\n try {\n Person person = new Person(0, firstName, lastName, emailAddress);\n dbManager.insert(person);\n Toast.makeText(this, \"Friend Added\", Toast.LENGTH_SHORT).show();\n }\n catch (Exception exception) {\n Toast.makeText(this,\n \"Error, sorry your friend didn't want to be friends\",\n Toast.LENGTH_SHORT)\n .show();\n }\n\n // clear data\n etFirstName.setText(\"\");\n etLastName.setText(\"\");\n etEmailAddress.setText(\"\");\n }",
"@Override\n public void onClick(View v) {\n\n if (outletstring != null) {\n try {\n ClearLocalAppData();\n new FLROutletAttendance().execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Please Select Outlet\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void masuk(){\n Intent accountsIntent = new Intent(this, HomeUserActivity.class);\n emptyInputEditText();\n startActivity(accountsIntent);\n }",
"public void viewallinfo(View view){\n String IDValue = ID.getText().toString();\n Intent intent=new Intent(this,ViewAllInfo.class);\n intent.putExtra(\"key1\", IDValue );\n startActivity(intent);\n }",
"public void button_proband_ok(View view){\n String codePart1 = getEditText(R.id.pc_1);\n String codePart2 = getEditText(R.id.pc_2);\n String codePart3 = getEditText(R.id.pc_3);\n String codePart4 = getEditText(R.id.pc_4);\n String codePart5 = getEditText(R.id.pc_5);\n // ToDo: check if all are actually characters\n // (and not numbers/other symbols)\n _control.newUser( codePart1+codePart2+codePart3+codePart4+codePart5 );\n setContentView(R.layout.set_time);\n }",
"@Override\n public void onClick(View v) {\n String phoneNumber=txtPhone.getText().toString();\n\n //check data being submitted\n if(isNetworkAvailable())\n {\n if(phoneNumber!=\"\" && phoneNumber.length()==10)\n {\n //create instance of signup class\n if(isNetworkAvailable())\n {\n progress = new ProgressDialog(Login.this);\n progress.setTitle(\"Login\");\n progress.setMessage(\"Please wait...\");\n progress.show();\n String method=\"signup\";\n SignUp signUp=new SignUp(fa,progress);\n signUp.execute(method,phoneNumber);\n SharedPrefManager.getInstance(getApplicationContext()).number(phoneNumber);\n// Intent intent=new Intent(getApplicationContext(),loginPassWord.class);\n// startActivity(intent);\n }\n else\n {\n Toast.makeText(getApplicationContext(),\"Check Internet\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n txtPhone.setFocusable(true);\n txtPhone.setText(\"\");\n Toast.makeText(getApplicationContext(),\"Please ENter valid Phone\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n AlertDialog.Builder builder=new AlertDialog.Builder(getApplicationContext());\n builder.setTitle(\"Network Error\");\n builder.setMessage(\"There is an error\");\n builder.show();\n }\n\n\n }",
"public void continueOne(View view){\n EditText firstName= (EditText) findViewById(R.id.firstName);\n String firstNameString = firstName.getText().toString();\n EditText lastName= (EditText) findViewById(R.id.lastName);\n String lastNameString= lastName.getText().toString();\n EditText studentID= (EditText) findViewById(R.id.studentId);\n String studentIDString= studentID.getText().toString();\n\n /**Toasts are the things that are like mini notifications that you'll see at the bottom of the screen.*/\n Context context = getApplicationContext();\n CharSequence text = \"Let's do this, \" + firstNameString + \"!\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n /**The following is an intent to start the next activity (mainCodeOne), and carry the key user data with it. MainActivityOne*/\n Intent intentOne = new Intent(this, AndroidBarcodeActivityOne.class);\n intentOne.putExtra(\"firstNameString\", firstNameString);\n intentOne.putExtra(\"lastNameString\", lastNameString);\n intentOne.putExtra(\"studentIDString\", studentIDString);\n startActivity(intentOne);\n\n\n }",
"public void Text_Message(View view) {\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Message Input\");\r\n final EditText eT= new EditText(this);\r\n eT.setHint(\"Type Message Here\");\r\n adb.setView(eT);\r\n adb.setPositiveButton(\"Show\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n String str= eT.getText().toString();\r\n Toast.makeText(MainActivity.this,str,Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n adb.setNegativeButton(\"Cancle\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t final EditText uname;\n\t\t\t\t\tEditText pwd;\n\t\t\t\t TextView title=(TextView) findViewById(R.id.textView1);\n\t\t\t \n\t\t\t\t String s;\n\t\t\t\t \n\t\t\t\t uname=(EditText) findViewById(R.id.name);\n\t\t\t\t pwd=(EditText) findViewById(R.id.password);\n\t\t\t\t\n\t\t\t\ts=uname.getText().toString(); //text will get into\n\t\t\t\n\t\t\t\tToast.makeText(getApplicationContext(), \"hi\", Toast.LENGTH_LONG).show();//pop msg\n\t\t\t\tToast.makeText(getApplicationContext(), \"WELCOME\", Toast.LENGTH_LONG).show();//msg to display with or without time\n\t\t\t\t\n\t\t\t\tIntent i=new Intent(MainActivity.this,success.class); //validation first :-current java file to second:-success file to open\n\t\t\t\ti.putExtra(\"name\", s); //user will enter text stored in s send back to the main activity for verification\n\t\t\t\tstartActivity(i);\n\t\t\t\tToast.makeText(getApplicationContext(), \"hello\", Toast.LENGTH_LONG).show();\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n biensoxe = etBienSoXe.getText().toString().toLowerCase().trim();\n passwordtx = etPasswordtx.getText().toString().trim();\n confirmPassword = etConfirmPassword.getText().toString().trim();\n tenchuxe = etTenChuXe.getText().toString().trim();\n sdt = etSDT.getText().toString().trim();\n mota = edMoTa.getText().toString().trim();\n loaixe = tenloaixe;\n trongtaixe = trongtai;\n if (validateInputs()) {\n registerUser();\n }\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n\n HOSTEL_NAME = \"NULL\";\n ONE_PREFERENCE = \"NULL\";\n TWO_PREFERENCE = \"NULL\";\n THREE_PREFERENCE = \"NULL\";\n\n settingUpVariables();\n settingUpSpinners();\n buttonClickListeners();\n editTextClickListeners();\n spinnerClickListeners();\n\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n toolbar.setTitle(\"NSS Recruitment\");\n toolbar.setLogo(getResources().getDrawable(R.drawable.nss_bits));\n setSupportActionBar(toolbar);\n\n\n\n db = openOrCreateDatabase(\"StudentDB\", Context.MODE_PRIVATE, null);\n db.execSQL(\"CREATE TABLE IF NOT EXISTS student(rollno VARCHAR,\" +\n \"name VARCHAR,\" +\n \"marks VARCHAR,\" +\n \"hostel VARCHAR,\" +\n \"room VARCHAR,\" +\n \"first_pref VARCHAR,\" +\n \"second_pref VARCHAR,\" +\n \"third_pref VARCHAR);\");\n db.execSQL(\"CREATE TABLE IF NOT EXISTS addedBy(name VARCHAR);\");\n\n\n db.execSQL(\"INSERT INTO addedBy VALUES('NULL');\");\n\n }",
"public void retrieve() {\n //retrieving details EditText input bars\n password_handler = findViewById(R.id.PasswordInput);\n email_handler = findViewById(R.id.EmailInput);\n inputPhone = findViewById(R.id.inputPhone);\n inputFullName = findViewById(R.id.inputFullName);\n\n city = findViewById(R.id.cityNameInput);\n street = findViewById(R.id.streetNameInput);\n floor = findViewById(R.id.floorNumberInput);\n appartment = findViewById(R.id.appartmentNumberInput);\n houseNum = findViewById(R.id.buildingNumberInput);\n\n progressBar2 = findViewById(R.id.progressBar2);\n\n //retrieving the names near the input bars\n pass = findViewById(R.id.Password);\n mail = findViewById(R.id.Email);\n phone = findViewById(R.id.Phone);\n name = findViewById(R.id.fullName);\n\n //confirm button\n confirm = findViewById(R.id.confirm);\n\n //checkboxes of advertiser and adopter\n inputadvertiser = findViewById(R.id.ifadvertiser);\n inputadopter = findViewById(R.id.ifadopter);\n\n }",
"@Override\n public void onClick(View view) {\n if (view.getId() == R.id.btnSubmit) {\n tableNum = String.valueOf(textInput.getText());\n Intent intent = new Intent(this, PizzeriaMainActivity.class);\n intent.putExtra(CLE_DONNEES, tableNum);\n startActivity(intent);\n }\n }",
"private void id(){\n but = findViewById(R.id.googlBtn);\n image = findViewById(R.id.Logo_image);\n logoText = findViewById(R.id.logo_name);\n sloganText = findViewById(R.id.slogan_name);\n password = findViewById(R.id.password);\n login_btn = findViewById(R.id.login_btn);\n emailsignup = findViewById(R.id.emailsignup);\n phonesignup = findViewById(R.id.phonesignup);\n forgot=findViewById(R.id.forgot);\n //googlesignup = findViewById(R.id.googlesignup);\n email=findViewById(R.id.loginemail);\n scrollView=findViewById(R.id.scroll);\n firebaseAuth=FirebaseAuth.getInstance();\n firebaseDatabase=FirebaseDatabase.getInstance();\n }",
"@Override\n public void onClick(View v) {\n String nameEdit = name1.getText().toString().trim();\n String age1 = ageEditText.getText().toString().trim();\n String address = addressEditText.getText().toString().trim();\n String occupation = occupationEditText.getText().toString().trim();\n String about = aboutEditText.getText().toString().trim();\n\n if (nameEdit != null && !nameEdit.isEmpty()) {\n databaseReference.child(\"Name\").setValue(nameEdit);\n }\n if (age1 != null && !age1.isEmpty()) {\n databaseReference.child(\"Age\").setValue(age1);\n }\n if (address != null && !address.isEmpty()) {\n databaseReference.child(\"Address\").setValue(address);\n }\n if (occupation != null && !occupation.isEmpty()) {\n databaseReference.child(\"Occupation\").setValue(occupation);\n }\n if (about != null && !about.isEmpty()) {\n databaseReference.child(\"About\").setValue(about);\n }\n\n Toast.makeText(UserAccount.this, \"The details have been successfully updated\", Toast.LENGTH_SHORT).show();\n\n }",
"public void onClick(View irrelevant)\n {\n Intent myIntent = new Intent(MainActivity.this, OptionsActivity.class);\n inputData = (EditText) findViewById(R.id.DataInput);\n String inputAddressString = inputData.getText().toString();\n\n // Create a bundle to pass in data to results activity\n Bundle infoBundle = new Bundle();\n infoBundle.putString(\"inputAddress\", inputAddressString);\n myIntent.putExtras(infoBundle);\n startActivity(myIntent);\n\n // Old code to show toast message of user input\n /*\n inputData = (EditText) findViewById(R.id.DataInput);\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.TOP| Gravity.LEFT, 0, 0);\n toast.makeText(MainActivity.this, inputData.getText(), toast.LENGTH_SHORT).show();\n */\n }",
"public void showNext(View v){\n\n //create our database for the tasks\n TasksDBHelper tasksDBHelper = new TasksDBHelper(getApplicationContext());\n //Set DB repository in write mode\n SQLiteDatabase db = tasksDBHelper.getWritableDatabase();\n\n\n\n //capture the text that is entered for tasks 1 to 3.\n EditText task1 = (EditText)findViewById(R.id.task1);\n EditText task2 = (EditText)findViewById(R.id.task2);\n EditText task3 = (EditText)findViewById(R.id.task3);\n\n //Convert the tasks to a string to write to the DB\n //need to convert editText to a string\n String myTask1 = task1.getText().toString();\n String myTask2 = task2.getText().toString();\n String myTask3 = task3.getText().toString();\n\n\n\n\n\n //Adding the tasks to the DB to be set and read later\n ContentValues tasks = new ContentValues();\n tasks.put(TasksDBHelper.FIELD_REWARD, myTask1);\n tasks.put(TasksDBHelper.FIELD_REWARD_1, myTask2);\n tasks.put(TasksDBHelper.FIELD_REWARD_2, myTask3);\n db.insert(TasksDBHelper.TABLE_NAME, null, tasks);\n\n //use intent to move us to next screen\n // Take us to enter the time\n Intent mainIntent = new Intent(this, MainActivity.class);\n startActivity(mainIntent);\n\n }",
"private void sendData() {\n String Own_Easting = OEast.getText().toString();\n String Own_Northing = ONorth.getText().toString();\n String En_Easting = EEast.getText().toString();\n String En_nothing = ENorth.getText().toString();\n String OTbg = OTBG.getText().toString();\n String rt=Rt.getText().toString();\n String add=Add.getText().toString();\n\n DB bg = new DB(this);\n bg.execute(Own_Easting,Own_Northing,En_Easting,En_nothing\n ,OTbg,rt,add);\n\n }",
"@Override\n public void onClick(View arg0) {\n ip = txt3.getText().toString();\n setWindow();\n }",
"@Override\r\n\t\tpublic void onClick(View view) {\n\t\t\ttry {\r\n\r\n\t\t\t\tString ad = editText01.getText().toString().trim();\r\n\t\t\t\tString we = editText02.getText().toString().trim();\r\n\t\t\t\tString fe = editText03.getText().toString().trim();\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * ContentValues类似于Map,相对于Map,它提供了存取数据对应的put(String key, Xxx\r\n\t\t\t\t * value)和getAsXxx(String key)方法,\r\n\t\t\t\t * key为字段名称,value为字段值,Xxx指的是各种常用的数据类型,如:String、Integer等。\r\n\t\t\t\t * ContentValues是用于数据库中存放数据的类,也是采用的键值对来存放数据的,\r\n\t\t\t\t * 有点类似content和bundle等。 该构造函数是建立一个默认大小的空的数据集。\r\n\t\t\t\t */\r\n\r\n\t\t\t\tContentValues values = new ContentValues();\r\n\t\t\t\tvalues.put(\"address\", ad);\r\n\t\t\t\tvalues.put(\"weather\", we);\r\n\t\t\t\tvalues.put(\"feeling\", fe);\r\n\r\n\t\t\t\tdatabase.insert(\"test\", null, values);\r\n\r\n\t\t\t\tToast.makeText(MainActivity.this, \"添加成功!!!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tif (database!=null) {//只有数据库不为空才可以关闭,不然会抛出空指针异常\r\n\t\t\t\t\tdatabase.close();//关闭数据库\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public void onClick(DialogInterface dialog, int which) {\n String description = input.getText().toString();\n databaseListFragment.insertToFuturePlants(species_id, description, FuturePlant.calculatePlantDateFromSpecies(species));\n Toast toast = Toast.makeText(databaseListFragment.getActivity(), R.string.toast_future_plants, Toast.LENGTH_SHORT);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Please Enter Correct User Name And Password\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Please Enter Correct User Name And Password\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n name = editName.getText().toString();\n //if name is not written, show message\n if(name.equalsIgnoreCase(\"\")) {\n Toast.makeText(getApplicationContext(), \"이름을 입력해주세요.\", Toast.LENGTH_LONG).show();\n } else { //if name is written, delete data from DB, and show updating data list by using list view\n //reset editText\n editName.setText(\"\");\n editNum.setText(\"\");\n //delete data from DB\n delete(name);\n //show data list by using list view\n showList();\n }\n }",
"private void catcher() {\n String text;\n\n if (getTextFromEditText(R.id.distanceEdit).equals(\"\")) {\n text = getResourceString(R.string.err_no_distance);\n } else if (getTextFromEditText(R.id.fuelEdit).equals(\"\")) {\n text = getResourceString(R.string.err_no_fuel);\n } else {\n text = getResourceString(R.string.err_wrong_vals);\n }\n\n makeToast(text);\n }",
"@Override\n public void onClick(View v) {\n String delay=et_delay.getText().toString().trim();\n if(delay.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Please Enter a time in milli seconds\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n int count= repo.getdelaycount();\n if(count==0)\n {\n repo.adddelay(delay);\n dialog.dismiss();\n Toast.makeText(AdminHomeActivity.this, \"Successfully Added\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updateDelay(delay);\n dialog.dismiss();\n Toast.makeText(AdminHomeActivity.this, \"Successfully Updated\", Toast.LENGTH_SHORT).show();\n\n }\n }\n }",
"public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n new PostDepositClass(context).execute();\n }",
"public void buscarPabellon(String idPabellon)\n {\n TxtPabellon=(TextView)findViewById(R.id.txt_pabellon);\n database.getReference(Constants.FIREBASE_LOCATION_PABELLON).child(idPabellon).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Pabellon pabellon = dataSnapshot.getValue(Pabellon.class);\n latPabellon=pabellon.getLatitud();\n longPabellon=pabellon.getLongitud();\n nombrePabellon=pabellon.getNombre();\n TxtPabellon.setText(nombrePabellon);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(\"getUser:onCancelled\", databaseError.toException());\n }\n });\n }",
"@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"soft_drink\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Soft Drink Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Soft Drink Not Inserted\", Toast.LENGTH_LONG).show();\n }",
"@OnClick(R.id.sendData)\n void onSendDataClick() {\n String name = checkerNameInputView.getText().toString();\n String password = passwordInputView.getText().toString();\n }",
"@Override\r\n\t\r\n\tpublic void onClick(View v)\r\n\t{\n\t\t\r\n\t\tfirstname = fname.getText().toString();\r\n\t\tlastname = lname.getText().toString();\r\n\t\tmail = email.getText().toString();\r\n\t\tpassword = pass.getText().toString();\r\n\t\tif(firstname.toString().isEmpty() || lastname.isEmpty() || mail.toString().isEmpty()|| password.isEmpty())\r\n\t\t\tToast.makeText(this, \"Please enter the required Fields\", Toast.LENGTH_SHORT).show();\r\n\t\telse\r\n\t\t\tnew register().execute();\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t}",
"@Override\n public void onClick(View v) {\n if(validateInputInfo()){\n\n //Get text input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Create contact object\n final Contact addMe = new Contact(firstName, lastName, email, phone);\n\n //Get unique ID in database to store Contact object\n String id = myDatabase.push().getKey();\n\n //Add to database\n myDatabase.child(id).setValue(addMe).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //If successful display message and return to home page\n if(task.isSuccessful()){\n Toast.makeText(getBaseContext(), \"New contact \" + addMe.getDisplayName() + \" created!\", Toast.LENGTH_LONG).show();\n\n //Go to home page\n finish();\n }\n else {\n Toast.makeText(getBaseContext(), \"Unable to add \" + addMe.getDisplayName() + \" contact\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }\n }",
"@Override\n public void onClick(View v) {\n genderString = spinner_gender.getSelectedItem().toString();\n activityString = spinner_activity.getSelectedItem().toString();\n gainsString = spinner_gains.getSelectedItem().toString();\n //converts all entries to strings\n if(firstNameString.length()!=0 && surnameString.length()!=0 && ageString.length()!=0 && heightString.length()!=0 &&\n weightString.length()!=0 && genderString.length()!=0 && activityString.length()!=0 && gainsString.length()!=0){//checks if all fields have been entered\n AddData(firstNameString, surnameString, ageString, heightString, weightString, genderString, activityString, gainsString); //adds fields to database by calling adddata method\n }\n else{\n toastMessage(\"Enter data\");//if a field is empty, error displayed\n }\n startActivity(new Intent(SignUp2.this, MainActivity.class));//once this had passed, main activity is started\n }",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(edt_title.getText().toString()) && !TextUtils.isEmpty(edt_discription.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter title!\", Toast.LENGTH_SHORT).show();\n } else if (!TextUtils.isEmpty(edt_title.getText().toString()) && TextUtils.isEmpty(edt_discription.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter description!\", Toast.LENGTH_SHORT).show();\n } else if (TextUtils.isEmpty(edt_title.getText().toString()) && TextUtils.isEmpty(edt_discription.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter title and description!\", Toast.LENGTH_SHORT).show();\n } else {\n alertDialog.dismiss();\n }\n\n //Update or add data into the database only when both field are filled(i.e title,description)\n if (!TextUtils.isEmpty(edt_title.getText().toString()) && !TextUtils.isEmpty(edt_discription.getText().toString())) {\n\n // check if user updating note\n\n if (shouldUpdate && event != null) {\n // update event\n new DatabaseAsync(eventDatabase).execute(shouldUpdate, position, edt_title.getText().toString(), edt_discription.getText().toString(), date);\n\n\n } else {\n // create new event\n new DatabaseAsync(eventDatabase).execute(shouldUpdate, -1, edt_title.getText().toString(), edt_discription.getText().toString(), date);\n\n\n }\n }\n }",
"@Override\n public void onClick(View v) {\n title = titleET.getText().toString();\n timePeriod = startTimeET.getText().toString();\n timePeriod += \" to \" + endTimeET.getText().toString();\n description = descriptionET.getText().toString();\n\n //validate fields before insert to db\n if (taskValidate.validateFieldsEmpty(title,\n priorityET.getText().toString(),\n startTimeET.getText().toString(),\n description)) {\n\n //to prevent number format exception if value not typed in edit text\n priorityNo = Integer.parseInt(priorityET.getText().toString());\n\n if(taskValidate.validatePriorityNo(priorityNo)) {\n //insert to database\n if (insertTask() == true) {\n Toast.makeText(getApplicationContext(), \"Task Inserted!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(), \"Insert failed!\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n }",
"public void onClickInsertAdd_Jogo(View v){\n }",
"@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"drink\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Drink Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Drink Not Inserted\", Toast.LENGTH_LONG).show();\n }",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tdrug=(EditText)findViewById(R.id.editText1);\r\n\t\t\tabc=drug.getText().toString();\r\n\t\t\tToast.makeText(getApplicationContext(), \r\n\t\t abc, Toast.LENGTH_LONG).show();\r\n\t\t\tIntent intent3=new Intent(Input_Med.this,Med_Info.class);\r\n\t\t\tintent3.putExtra(\"drug\", abc);\r\n\t\t\tstartActivity(intent3);\r\n\t\t\t\r\n\t\t}",
"@Override\n public void onClick(View view) {\n songname = usr_nm.getText().toString();\n new loadsomestuff().execute(songname);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n // TODO Auto-generated method stub\n if ((requestCode == request_code) && (resultCode == RESULT_OK)) {\n\n // Toast.makeText(this, intent.getStringExtra(\"resultado\"), Toast.LENGTH_LONG).show();\n inEquipo.setText(intent.getStringExtra(\"resultado\"));\n }\n }",
"@SuppressLint(\"ShowToast\") @Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tStaticDB.setSilent( new String(silent.getText().toString()));\n\t\t\t\t\tStaticDB.setRing(new String(ring.getText().toString()));\n\t\t\t\t\tStaticDB.setVibrate(new String(vibrate.getText().toString()));\n\t\t\t\t\t\n\t\t\t\t\tToast.makeText(getApplicationContext(), StaticDB.getSilent(), 100).show();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tIntent it=new Intent(SecondActivity.this,ThirdActivity.class);\n\t\t\t\tstartActivity(it);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n //에디트텍스트, 버튼, 텍스트뷰 읽어 오기\n com_id = (EditText) findViewById(R.id.com_id);\n mem_id = (EditText) findViewById(R.id.mem_id);\n mem_pw = (EditText) findViewById(R.id.mem_pw);\n login_btn = (Button) findViewById(R.id.login_btn);\n sign_up_btn = (TextView) findViewById(R.id.sign_up_btn);\n id_search_btn = (TextView) findViewById(R.id.id_search_btn);\n pw_search_btn = (TextView) findViewById(R.id.pw_search_btn);\n terms_of_service = (TextView) findViewById(R.id.terms_of_service);\n privacy = (TextView) findViewById(R.id.privacy);\n information_communication_network_act = (TextView) findViewById(R.id.information_communication_network_act);\n personal_information_protection_act = (TextView) findViewById(R.id.personal_information_protection_act);\n\n login_btn.setOnClickListener(this);\n sign_up_btn.setOnClickListener(this);\n id_search_btn.setOnClickListener(this);\n pw_search_btn.setOnClickListener(this);\n terms_of_service.setOnClickListener(this);\n privacy.setOnClickListener(this);\n information_communication_network_act.setOnClickListener(this);\n personal_information_protection_act.setOnClickListener(this);\n }",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText( LoginActivity.this, \"Saved\", Toast.LENGTH_SHORT ).show();\n }",
"@Override\r\n public void onClick(View v) {\n String un = user_name.getText().toString();\r\n String pwd = pass_wrd.getText().toString();\r\n\r\n System.out.println(un + \" \" + pwd);\r\n if(db.validCredentials(un, pwd)){\r\n Intent secondActivity = new Intent(getApplicationContext(), UserAreaActivity.class);\r\n startActivity(secondActivity);\r\n } else{\r\n invalid.setVisibility(View.VISIBLE);\r\n }\r\n }",
"private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n //Initialize the Firebase database reference\n mDatabase = FirebaseDatabase.getInstance().getReference();\n\n //get a reference to the Button and EditText Views using their ID's\n addTaskButton = (Button) findViewById(R.id.addTask_id);\n taskDescription = (EditText) findViewById(R.id.taskDescription_id);\n\n addTaskButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n writeNewTask();\n }\n });\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (save()) {\r\n\t\t\t\t\tfirst_name_text = first_name.getText().toString();\r\n\t\t\t\t\tlast_name_text=last_name.getText().toString();\r\n\t\t\t\t\tpassword_text = password.getText().toString();\r\n\t\t\t\t\temail_text = email.getText().toString();\r\n\t\t\t\t\tusername_text = username.getText().toString();\r\n\t\t\t\t\t//Remove - between Numbers\r\n\t\t\t\t\tphonenumber_text=phonenumber.getText().toString().replaceAll(\"[^0-9]\", \"\");\r\n\t\t\t\t\t// Remove All spaces between Strings\r\n\t\t\t\t\tcollege_name_text = college_name.getSelectedItem()\r\n\t\t\t\t\t\t\t.toString().replaceAll(\"\\\\s+\", \"\");\r\n\t\t\t\t\t// Execute the AsyncTask to Register User\r\n\t\t\t\t\tnew ValidateRegister().execute();\r\n\t\t\t\t}\r\n\t\t\t}",
"private void RetrieveEditTextData() {\n\n strFirstName = etFirstName.getText().toString();\n strMiddleName = etMiddleName.getText().toString();\n strLastName = etLastName.getText().toString();\n strEmployId = etEmployId.getText().toString();\n strDesignation = etDesignation.getText().toString();\n strCompName = etCompName.getText().toString();\n strCategory = etCategory.getText().toString();\n strDOB = etDOB.getText().toString();\n\n }",
"@Override\n public void onClick(View v) {\n try\n {\n rslt=\"START\";\n Caller c=new Caller();\n c.user= nUser.toString();\n c.nopol= mNoPol.getText().toString().concat(\"*\").concat(mSupir.getText().toString());\n c.emkl= mEMKL.getText().toString();\n c.jnsorder= mJenisOrderan.getSelectedItem().toString();\n c.tujuantarif= mTujuanTarif.getText().toString();\n c.dari= mDari.getText().toString();\n c.sampai= mTujuanTarif.getText().toString();\n c.ukurancontainer= mUkuranCont.getSelectedItem().toString();\n c.nochasis= \"\";\n c.statuscont= \"FULL\";\n c.islongtrip= 0;\n c.shipper =mShipper.getText().toString();\n c.gudang=mGudang.getText().toString();\n c.jnsritasi=\"\";\n c.ritasidr=\"\";\n c.ritasike=\"\";\n\n c.status= \"START\";\n c.sCommand =\"entrytripgantung\";\n c.join();\n c.start( );\n while(rslt==\"START\")\n {\n try\n {\n Thread.sleep(10);\n\n }catch(Exception ex)\n {\n\n }\n }\n\n ad.setTitle(\"INFO\");\n ad.setMessage(rslt);\n ad.show();\n\n mNoPol.setText(\"\");\n mEMKL.setText(\"\");\n mTujuanTarif.setText(\"\");\n mDari.setText(dari);\n mSampai.setText(\"\");\n mShipper.setText(\"\");\n mGudang.setText(\"\");\n\n }catch(Exception ex) {\n\n }\n }",
"public void execute(){\n editText = findViewById(R.id.editText);\n nom = editText.getText().toString();\n\n if(nom.length() != 0 ) {\n SharedPreferences sharedPref = getSharedPreferences(\"DATA\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n login_email = sharedPref.getString(\"email\", \"NULL\").replace(\".\", \"%\");\n\n //Sauvegarde en ligne\n mDatabase = FirebaseDatabase.getInstance().getReference();\n String nbr_max = sharedPref.getString(\"nombre_voiture\", \"null\");\n Integer nbr_max_i = Integer.parseInt(nbr_max);\n nbr_max_i++;\n mDatabase.child(\"Users\").child(login_email).child(\"Trajets\").child(\"Id\").child(\"Voiture\").child(\"nbr\").setValue(nbr_max_i);\n mDatabase.child(\"Users\").child(login_email).child(\"Trajets\").child(\"Id\").child(\"Voiture\").child(nbr_max_i.toString()).setValue(nom);\n\n //Sauvegarde en local\n editor.putString(\"nombre_voiture\", nbr_max_i.toString());\n editor.putString(\"voiture_numero_\" + nbr_max_i.toString(), nom);\n editor.commit();\n\n Toast.makeText(getApplicationContext(), \"Voiture ajoutée\", Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(getApplicationContext(), Volant.class);\n startActivity(intent);\n overridePendingTransition(R.anim.fade_in_fast, R.anim.fade_out_fast);\n }\n\n }",
"private void clickOk(){\n bnOk.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if(nameTask.getText().toString().matches(\"\")){\n Toast.makeText(activity.getApplicationContext(), activity.getResources().getString(R.string.noNameEntered), Toast.LENGTH_SHORT ).show();\n return;\n }\n\n schedulerDB.updateData(id, nameTask.getText().toString(), day);\n dismiss();\n\n }\n });\n }",
"public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}",
"public void UpdateData(View v){\n boolean isUpdated = myDB.updateData(et_id.getText().toString(),\n et_name.getText().toString(),\n et_surname.getText().toString(),\n et_marks.getText().toString());\n if(isUpdated){\n // show update message\n Toast.makeText(getApplicationContext(), \"Update successful.\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(), \"Update failure.\", Toast.LENGTH_LONG).show();\n }\n }",
"public void insertEntry( String fullName, String mobileNumber , String userName,String password , String state, String lga, String imei)\n {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues newValues = new ContentValues();\n // Assign values for each row.\n newValues.put(\"username\", userName);\n newValues.put(\"password\",password);\n newValues.put(\"fullName\",fullName);\n newValues.put(\"phoneNumber\",mobileNumber);\n newValues.put(\"state\", state);\n newValues.put(\"lga\",lga);\n newValues.put(\"imei\", imei);\n\n // Insert the row into your table\n database.insert(\"admin\", null, newValues);\n ///Toast.makeText(context, \"Reminder Is Successfully Saved\", Toast.LENGTH_LONG).show();\n }",
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView((int) C0520R.layout.activity_main5);\n final EditText adm = (EditText) findViewById(C0520R.C0522id.register_);\n this.table_user.addValueEventListener(new ValueEventListener() {\n static final /* synthetic */ boolean $assertionsDisabled = false;\n\n static {\n Class<Main5Activity> cls = Main5Activity.class;\n }\n\n public void onDataChange(final DataSnapshot dataSnapshot) {\n for (DataSnapshot next : dataSnapshot.getChildren()) {\n ((Button) Main5Activity.this.findViewById(C0520R.C0522id.loadForEdit)).setOnClickListener(new View.OnClickListener() {\n static final /* synthetic */ boolean $assertionsDisabled = false;\n\n static {\n Class<Main5Activity> cls = Main5Activity.class;\n }\n\n public void onClick(View v) {\n if (dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).exists()) {\n try {\n String Name = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Name\").getValue().toString();\n String Class = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Class\").getValue().toString();\n String address = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Address\").getValue().toString();\n String Contact = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Contact\").getValue().toString();\n String rollno = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Roll No\").getValue().toString();\n String str = \"SELECT * FROM STUDENT WHERE regno = '\" + adm.getText().toString().toUpperCase() + \"'\";\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.edit_name_)).setText(Name);\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.Class)).setText(Class);\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.address)).setText(address);\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.contact)).setText(Contact);\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.roll)).setText(rollno);\n } catch (Exception e) {\n }\n } else {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"No Such Student\", 1).show();\n }\n }\n });\n }\n }\n\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n ((Button) findViewById(C0520R.C0522id.buttonSAVEEDITS)).setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n EditText name = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.edit_name_);\n EditText Clas = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.Class);\n EditText add = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.address);\n EditText contact = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.contact);\n EditText roll = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.roll);\n DatabaseReference ss = Main5Activity.this.table_user.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase());\n if (adm.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill\", 1).show();\n } else if (name.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill name\", 1).show();\n } else if (Clas.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill class\", 1).show();\n } else if (add.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill address\", 1).show();\n } else if (contact.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill contact\", 1).show();\n } else if (roll.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill the roll no\", 1).show();\n } else {\n try {\n DatabaseReference child = ss.child(\"Name\");\n child.setValue(\"\" + name.getText().toString());\n DatabaseReference child2 = ss.child(\"Class\");\n child2.setValue(\"\" + Clas.getText().toString());\n DatabaseReference child3 = ss.child(\"Address\");\n child3.setValue(\"\" + add.getText().toString());\n DatabaseReference child4 = ss.child(\"Contact\");\n child4.setValue(\"\" + contact.getText().toString());\n DatabaseReference child5 = ss.child(\"Roll No\");\n child5.setValue(\"\" + Integer.parseInt(roll.getText().toString()));\n } catch (Exception e) {\n Context baseContext = Main5Activity.this.getBaseContext();\n Toast.makeText(baseContext, \"\" + e, 1).show();\n }\n }\n Main5Activity.this.table_user.addValueEventListener(new ValueEventListener() {\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).getChildrenCount() == 6) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"Edit Saved\", 1).show();\n Main5Activity.this.finish();\n } else {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"Error Occured\", 1).show();\n }\n Main5Activity.this.finish();\n }\n\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }\n });\n }",
"public void login_now(View view) {\n String userMailId = email_id.getText().toString();\n String userPassword = password.getText().toString();\n\n\n if (!userMailId.equals(\"\")) {\n if (!userPassword.equals(\"\")) {\n loginUser(userMailId, userPassword);\n } else {\n Toast.makeText(this, \"Enter Your Password\", Toast.LENGTH_SHORT).show();\n }\n\n } else {\n Toast.makeText(this, \"Enter Your Email Address\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void onClick(View v) {\n \tnameEdit = (EditText)findViewById(R.id.createFamilyNameEdit);\n \tsurnameEdit = (EditText)findViewById(R.id.createFamilySurnameEdit);\n \tpositionEdit = (EditText)findViewById(R.id.createFamilyPositionEdit);\n \t\n \t//TODO change the phone number to dynamic\n \tadminDetails.put(\"phoneNumber\", \"9172174900000000000\");\n \tadminDetails.put(\"name\", nameEdit.getText().toString());\n \tadminDetails.put(\"familyName\", surnameEdit.getText().toString());\n \tadminDetails.put(\"position\", positionEdit.getText().toString());\n \tadminDetails.put(\"admin\", \"true\");\n \t\n \tjoAdminDetails = new JSONObject(adminDetails);\n \t\n \tnew MyTask().execute();\n \t\n \t//TODO no validation \t\t\t \t\n \tIntent intent = new Intent(CreateFamilyActivity.this, FamiliesCircleActivity.class);\n \t//Intent intent = new Intent(CreateFamilyActivity.this, TestActivity.class);\n \tintent.putExtra(\"familyAdmin\", new FamilyAdmin(nameEdit.getText().toString(), surnameEdit.getText().toString(), positionEdit.getText().toString()));\n \t startActivity(intent);\n }",
"@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n btnAddres.setText(value);\n // Log.d(TAG, \"Value is: \" + value);\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t\taddView = (TextView) findViewById(R.id.id_submit_view);\r\n\t\taddView.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tgatewayId = gatewayView.getEditableText().toString();\r\n\t\t\t\tLog.i(TAG, \"gatewayId \" + gatewayId.trim());\r\n\t\t\t\tgatewayId = gatewayId.trim();\r\n\t\t\t\tif(gatewayId.trim().isEmpty()){\r\n\t\t\t\t\tbindHintView.setVisibility(View.VISIBLE);\r\n\t\t\t\t\tbindbarView.setVisibility(View.GONE);\r\n\t\t\t\t\tbindHintView.setText(R.string.bind_gateway_none);\r\n\t\t\t\t\tbindHintView.setTextColor(getResources().getColor((R.color.red)));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tsetHintVisible(true);\r\n\t\t\t\t\tnew Thread(new BindRunnale()).start();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n public void onClick(View v) {\n if(edTxtNoControl.getText().toString().equals(\"\") || edTxtNombre.getText().toString().equals(\"\") || edTxtApellido.getText().toString().equals(\"\")\n ||edTxtPassword.getText().toString().equals(\"\")){\n //Agregamos una notificación Toast para inficar que faltan campos por llenar\n Toast.makeText(getApplicationContext(), \"Faltan campos por llenar\", Toast.LENGTH_SHORT).show();\n }else{\n /*Mediante la instancia creada anteriormente llamamos al metodo \"agregarUsuario()\"\n y dentro de este colocamos los objetos de tipo EditText que se encargan de\n obtener los datos que se coloquen en el formulario de registro.*/\n objDB.agregarUsuario(edTxtNoControl.getText().toString(), edTxtNombre.getText().toString(),\n edTxtApellido.getText().toString(), edTxtPassword.getText().toString());\n //Agregamos una notificación Toast para ver si los datos fueron agregados correctamente.\n Toast.makeText(getApplicationContext(), \"Se agregó correctamente\", Toast.LENGTH_SHORT).show();\n //Finalizamos la actividad\n finish();\n }\n\n //Vaciamos los EditText del formulario\n edTxtNoControl.setText(\"\");\n edTxtNombre.setText(\"\");\n edTxtApellido.setText(\"\");\n edTxtPassword.setText(\"\");\n }",
"public void call()\n\t{\n\n\t\t\n\t\t\n\t\twadds=(EditText)findViewById(R.id.wadd);\n\t\tcomadd=(EditText)findViewById(R.id.compadd);\n\t\tepah=(EditText)findViewById(R.id.epah);\n\t\tnn=(EditText)findViewById(R.id.nname);\n\t\tbir=(EditText)findViewById(R.id.birth);\n\t\taniv=(EditText)findViewById(R.id.ani);\n\t\teorgwc=(EditText)findViewById(R.id.eorgcw);\n\t\teorgoc=(EditText)findViewById(R.id.eorgco);\n\t\teorgwp=(EditText)findViewById(R.id.eorgpw);\n\t\teorgop=(EditText)findViewById(R.id.eorgpo);\n\t\tepaw=(EditText)findViewById(R.id.epaw);\n\t\tepao=(EditText)findViewById(R.id.epao);\n\t\taddmoreorg=(Button)findViewById(R.id.borg);\n\t\taddmorepa=(Button)findViewById(R.id.bpa);\n\t\trempah=(Button)findViewById(R.id.bpah);\n\t\tremorgw=(Button)findViewById(R.id.borgw);\n\t\tremorgo=(Button)findViewById(R.id.borgo);\n\t\trempaw=(Button)findViewById(R.id.bpaw);\n\t\trempao=(Button)findViewById(R.id.bpao);\n\t\tspah=(Spinner)findViewById(R.id.spah);\n\t\tsorgw=(Spinner)findViewById(R.id.sorgw);\n\t\tsorgo=(Spinner)findViewById(R.id.sorgo);\n\t\tspaw=(Spinner)findViewById(R.id.spaw);\n\t\tspao=(Spinner)findViewById(R.id.spao);\n\t\t\n\t\t\t\n\t\t//Organization spinner for work\n\t\t\n\t\tadapterorgw = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterorgw.add(\"Work\");\n\t\tadapterorgw.add(\"Home\");\n\t\tadapterorgw.add(\"Other\");\n\t\tadapterorgw.add(\"Custom\");\n\t\tsorgw.setAdapter(adapterorgw);\n\t\t\n\t\t//Organization spinner for other\n\t\t\n\t\tadapterorgo = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterorgo.add(\"Other\");\n\t\tadapterorgo.add(\"Work\");\n\t\tadapterorgo.add(\"Home\");\n\t\tadapterorgo.add(\"Custom\");\n\t\tsorgo.setAdapter(adapterorgo);\n\t\t\n\t\t//Postal address spinner for home\n\t\t\n\t\tadapterpah = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpah.add(\"Home\");\n\t\tadapterpah.add(\"Work\");\n\t\tadapterpah.add(\"Other\");\n\t\tadapterpah.add(\"Custom\");\n\t\tspah.setAdapter(adapterpah);\n\t\t\n\t\t//Postal Address spinner for work\n\t\t\n\t\tadapterpaw = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpaw.add(\"Work\");\n\t\tadapterpaw.add(\"Other\");\n\t\tadapterpaw.add(\"Custom\");\n\t\tspaw.setAdapter(adapterpaw);\n\t\t\n\t\t//Postal Address spinner for other\n\t\t\n\t\tadapterpao = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpao.add(\"Other\");\n\t\tadapterpao.add(\"Work\");\n\t\tadapterpao.add(\"Custom\");\n\t\tspao.setAdapter(adapterpao);\n\t\t\n\t\tflag2=1;\t\n\t\t//Add More fields button for org\n\t\t\n\t\taddmoreorg.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t if(flag2==1)\n\t\t\t\t{\n\t\t\t\t\teorgoc.setVisibility(0);\n\t\t\t\t eorgop.setVisibility(0);\n\t\t\t\t sorgo.setVisibility(0);\n\t\t\t\t remorgo.setVisibility(0);\n\t\t\t \n\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\t\t\n\t\t//remove org field for work\n\t\t\n\t\tremorgw.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\teorgwc.setVisibility(View.GONE);\n\t\t\t eorgwp.setVisibility(View.GONE);\n\t\t\t sorgw.setVisibility(View.GONE);\n\t\t\t remorgw.setVisibility(View.GONE);\n\t\t\t flag2=0;\n\t\t\t flag2=1;\n\t\t\t flag2=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t//remove org field for other\n\t\t\n\t\tremorgo.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\teorgoc.setVisibility(View.GONE);\n\t\t\t eorgop.setVisibility(View.GONE);\n\t\t\t sorgo.setVisibility(View.GONE);\n\t\t\t remorgo.setVisibility(View.GONE);\n\t\t\t flag2=0;\n\t\t\t flag2=1;\n\t\t\t flag2=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\tflag3=1;\t\n\t\t//Add More fields button for org\n\t\t\n\t\taddmorepa.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t if(flag3==1)\n\t\t\t\t{\n\t\t\t epaw.setVisibility(0);\n\t\t\t spaw.setVisibility(0);\n\t\t\t rempaw.setVisibility(0);\n\t\t\t \n\t\t\t flag3=2;\n\t\t\t\t}\n\t\t\t\telse if(flag3==2)\n\t\t\t\t{\n\t\t\t epao.setVisibility(0);\n\t\t\t spao.setVisibility(0);\n\t\t\t rempao.setVisibility(0);\n\t\t\t flag3=1;\n\t\t\t \n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\t//remove postal add field for home\n\t\t\n\t\trempah.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepah.setVisibility(View.GONE);\n\t\t\t spah.setVisibility(View.GONE);\n\t\t\t rempah.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t//remove postal address field for work\n\t\t\n\t\trempaw.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepaw.setVisibility(View.GONE);\n\t\t\t spaw.setVisibility(View.GONE);\n\t\t\t spaw.setVisibility(View.GONE);\n\t\t\t rempaw.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t//remove postal address field for other\n\t\t\n\t\trempao.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepao.setVisibility(View.GONE);\n\t\t\t spao.setVisibility(View.GONE);\n\t\t\t rempao.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t\n\t\t\n\t\tsorgw.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog5 = new Dialog(AddContact.this);\n\n\t\t dialog5.setContentView(R.layout.dialog);\n\t\t dialog5.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog5.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog5.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog5.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t {\n\t\t \t addNewSpinnerItem5();\n\t dialog5.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog5.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog5.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\t\n\t\tsorgo.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog6 = new Dialog(AddContact.this);\n\n\t\t dialog6.setContentView(R.layout.dialog);\n\t\t dialog6.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog6.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog6.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog6.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem6();\n\t dialog6.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog6.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog6.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\tspah.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog4 = new Dialog(AddContact.this);\n\n\t\t dialog4.setContentView(R.layout.dialog);\n\t\t dialog4.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog4.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog4.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog4.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem4();\n\t dialog4.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog4.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog4.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\tspaw.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog7 = new Dialog(AddContact.this);\n\n\t\t dialog7.setContentView(R.layout.dialog);\n\t\t dialog7.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog7.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog7.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog7.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem7();\n\t dialog7.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog7.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog7.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\tspao.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog8 = new Dialog(AddContact.this);\n\n\t\t dialog8.setContentView(R.layout.dialog);\n\t\t dialog8.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog8.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog8.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog8.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem8();\n\t dialog8.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog8.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog8.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\t\n data= new DataBaseHelper(this);\n\t\tCursor c1=data.getDataLastName(name);\n\t\tSystem.out.println(\"MYyyyyyyyyyyyyy\"+name);\n\t\twhile(c1.moveToNext())\n\t\t{\n\t\t\tid=c1.getInt(0);\n\t\t\tlname=c1.getString(1);\n\t\t\tSystem.out.println(\"IDDDDDD.....\"+id);\n\t\t\tSystem.out.println(\"LNAme.....\"+lname);\n\t\t}\n\t\tc1.close();\n\t\tbir.setOnTouchListener(new OnTouchListener()\n\t {\n\t \n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1)\n\t\t\t{\n\n\t showDialog(DATE_DIALOG_ID);\n\t\t\t\treturn false;\n\t\t\t}\n\t });\n\n\t\taniv.setOnTouchListener(new OnTouchListener()\n\t {\n\t \n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1)\n\t\t\t{\n\n\t showDialog(DATE_DIALOG_ID);\n\t\t\t\treturn false;\n\t\t\t}\n\t });\n\n\t\t// get the current date and time\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\tupdateDisplay();\n\t\t\n\t}",
"@Override\n public void onClick(View v) {\n switch (v.getId()){\n case R.id.login:\n //redirect or call the intent to the reigster\n Intent satya = new Intent(Signup.this, Login.class);\n startActivity(satya);\n break;\n case R.id.reg:\n //get data the from edit text and converting the user data into string\n id = userId.getText().toString();\n password = userPassword.getText().toString();\n email = e_mail.getText().toString();\n name = Fullname.getText().toString();\n //calling asyc task for connect to server\n new AsyncLogin().execute(id,password,name,email);\n break;\n }\n }",
"public void onClick(View arg0) {\n\t\t\t\tvalidation();\n\t\t\t\tnew MyAsyncTask().execute(tvPollutionRiversandStream.getText().toString(),tvAirPollution.getText().toString(),tvNoisePollution.getText().toString(),tvAbsenseofWasteDisposalSites.getText().toString(),\n\t\t\t\t\t\t\t\t\t\t tvLittering.getText().toString(),tvFeelingofResponsibility.getText().toString());\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString number = editview.getText().toString();\r\n\t\t\t\t\r\n\t\t\t\tSQLiteDatabase db = openOrCreateDatabase(\"doctor\", MODE_PRIVATE, null);\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences setting = getSharedPreferences(\"Doctor\", 0);\r\n\t\t\t\t\r\n\t\t\t\tString value = setting.getString(\"given\", \"no\");\r\n\r\n\t\t\t\tif(value.endsWith(\"no\")){\r\n\t\t\t\t\tdb.execSQL(\"INSERT INTO numbertable VALUES('\"+number+\"');\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdb.execSQL(\"UPDATE numbertable SET doctornumber='\"+number+\"';\");\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tdb.close();\r\n\t\t\t\t\r\n//\t\t\t\tSharedPreferences setting = getSharedPreferences(\"Doctor\", 0);\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences.Editor editor = setting.edit();\r\n\t\t\t\t\r\n\t\t\t\teditor.putString(\"given\", \"yes\");\r\n\t\t\t\teditor.commit();\r\n\t\t\t\t\r\n\t\t\t\tIntent intent = new Intent(SugarDoctor.this,Sugar.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\r\n\t\t\t}",
"private void save() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null) ) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.insert(nama_pasien2,\n nama_dokter2,\n tgl_pengobatanField.getText().toString().trim(),\n waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),\n hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }"
] | [
"0.6619907",
"0.65319234",
"0.634664",
"0.6289072",
"0.62806666",
"0.62806064",
"0.62645656",
"0.6241814",
"0.622753",
"0.6199893",
"0.6188662",
"0.6183202",
"0.6159144",
"0.6148034",
"0.61346173",
"0.61321807",
"0.61085427",
"0.60916394",
"0.60707223",
"0.60596347",
"0.60543436",
"0.6042756",
"0.6042174",
"0.6029946",
"0.602634",
"0.602585",
"0.60177505",
"0.601212",
"0.6005774",
"0.6001182",
"0.5996238",
"0.5984718",
"0.5975329",
"0.5967983",
"0.5959697",
"0.59577525",
"0.5956798",
"0.59531367",
"0.59497666",
"0.59497213",
"0.59485257",
"0.5934378",
"0.5928469",
"0.5920311",
"0.5916359",
"0.59135765",
"0.59082633",
"0.5895601",
"0.58883494",
"0.5887523",
"0.58847773",
"0.5883157",
"0.5876338",
"0.5874611",
"0.5871653",
"0.5860101",
"0.5858544",
"0.5858544",
"0.58570117",
"0.5851871",
"0.5850601",
"0.5850395",
"0.58501554",
"0.5842726",
"0.583444",
"0.58298075",
"0.58221376",
"0.58159137",
"0.5812541",
"0.58075535",
"0.58070797",
"0.580671",
"0.580395",
"0.5802743",
"0.57913643",
"0.5788096",
"0.578612",
"0.5778107",
"0.57775074",
"0.57769346",
"0.5768813",
"0.5765783",
"0.5761963",
"0.57501864",
"0.57468915",
"0.57455826",
"0.5744672",
"0.5743042",
"0.57429266",
"0.5742555",
"0.5742363",
"0.5739934",
"0.5731747",
"0.5729664",
"0.57264924",
"0.57207406",
"0.5717251",
"0.57064843",
"0.57047385",
"0.5704225",
"0.570323"
] | 0.0 | -1 |
Toast.makeText(this, this.homeId.getText().toString(), Toast.LENGTH_SHORT).show(); this.dbInput(); | public void goToAwayTeam(View view) {
Intent intent = new Intent(this, teamDetailDone.class);
intent.putExtra("id", this.awayId.getText().toString());
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClick(View view){\n\n String name = mNameField.getText().toString();\n Toast.makeText(this,\"Hello There\"+name, Toast.LENGTH_LONG).show();\n\n }",
"public void clickFunction(View view){\n Toast.makeText(MainActivity.this, \"Hi there!\", Toast.LENGTH_LONG).show();\n\n // here we've created a variable \"myTextField\" of type \"EditText\" which collect the data from the ID i.e \"myTextField\" and convert the view ID into EditText type and stores into the variable.\n EditText myTextField = (EditText) findViewById(R.id.myTextField);\n\n // here the Log.i function is used to show the info to the logcat terminal which required two fields i.e Tag & the data to show (here the data is taken from the myTextField variable created above.\n Log.i(\"Info\",myTextField.getText().toString());\n }",
"@Override\n public void onClick(View v) {\n TextView txtDate = (TextView)findViewById(R.id.tvDate);\n TextView txtTime = (TextView)findViewById(R.id.tvTime);\n // Log.v(\"Vidushi:update\", userId);\n helper.insertVolunteerDuty(userId,txtDate.getText().toString(),txtTime.getText().toString());\n Toast.makeText(getApplicationContext(),\"Information Saved\", Toast.LENGTH_SHORT).show();\n\n\n }",
"public void AddData(View view){\n\n BackgroundTask backgroundTask= new BackgroundTask(this);\n backgroundTask.execute(\"add_info\", name1.getText().toString(), ranking1.getText().toString(),\n fee1.getText().toString(), program1.getText().toString(), city1.getText().toString(),\n country1.getText().toString(), continent1.getSelectedItem().toString());\n\n Toast.makeText(Inserting.this, \"New data inserted!\", Toast.LENGTH_LONG).show();\n\n name1.setText(\"\");\n ranking1.setText(\"\");\n fee1.setText(\"\");\n program1.setText(\"\");\n city1.setText(\"\");\n country1.setText(\"\");\n\n\n\n }",
"protected void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\r\n\tsetContentView(R.layout.input_med);\r\n\tButton submit=(Button)findViewById(R.id.button1);\r\n\t\r\n\t//Toast.makeText(getApplicationContext(), \r\n // a, Toast.LENGTH_LONG).show();\r\n\tsubmit.setOnClickListener(new View.OnClickListener() {\r\n\t\t\r\n\t\t@Override\r\n\t\tpublic void onClick(View v) {\r\n\t\t\t// TODO Auto-generated method stub\r\n\t\t\tdrug=(EditText)findViewById(R.id.editText1);\r\n\t\t\tabc=drug.getText().toString();\r\n\t\t\tToast.makeText(getApplicationContext(), \r\n\t\t abc, Toast.LENGTH_LONG).show();\r\n\t\t\tIntent intent3=new Intent(Input_Med.this,Med_Info.class);\r\n\t\t\tintent3.putExtra(\"drug\", abc);\r\n\t\t\tstartActivity(intent3);\r\n\t\t\t\r\n\t\t}\r\n\t});\r\n}",
"@Override\npublic void onClick(View v) {\n\tEditText eMobileNo = (EditText) findViewById(R.id.eMobileNo);\n mobile = eMobileNo.getText().toString().replaceAll(\"[^\\\\d]\", \"\");;\n\n \n\n String tmp = \"Sign up code sent to \" + mobile + \" imei: \" + imei;\n Toast.makeText(RegisterMe.this,\"Register button Clicked\", Toast.LENGTH_SHORT).show();\n \n postData();\n ConfirmToken();\n\n}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n raspPiID =(EditText) findViewById(R.id.rasPI1);\n LogIn = (Button) findViewById(R.id.Log_in);\n LogIn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n validate(raspPiID.getText().toString());\n }\n\n });\n\n\n\n\n\n }",
"@Override\n public void onClick(View v) {\n name = editName.getText().toString();\n num = editNum.getText().toString();\n //if all sectors are not written, show message\n if(name.equalsIgnoreCase(\"\") || num.equals(\"\")) {\n Toast.makeText(getApplicationContext(), \"모든 항목을 입력해주세요.\", Toast.LENGTH_LONG).show();\n } else { //if all sectors are filled, store data in DB, and show list by using list view\n //reset editText\n editName.setText(\"\");\n editNum.setText(\"\");\n //insert data in DB\n insert(name, num);\n //show data list by using list view\n showList();\n }\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n iboClass ibo = dataSnapshot.getValue(iboClass.class);\n\n System.out.println(\"IBONum_Input: \" + ibo.IBONum);\n fullName = ibo.fullName;\n\n SharedPreferences.Editor ed = savedValues.edit();\n makeToast(\"Welcome back, \" + fullName);\n ed.putString(\"IBONum\", ibo.IBONum);\n ed.commit();\n startNewActivity();\n\n\n\n }",
"public void viewdata() {\n\n login.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Cursor res = mydb.getData(user.getText().toString(), p.getText().toString());\n\n if (res.getCount() == 0) {\n\n showmessage(\"ERROR\", \"INVALID USER NAME OR PASSWORD\");\n user.setText(\"\");\n p.setText(\"\");\n return;\n\n }\n\n Intent i = new Intent(MainActivity.this,Details.class);\n i.putExtra(\"name\",user.getText().toString());\n i.putExtra(\"pwd\",p.getText().toString());\n user.setText(\"\");\n p.setText(\"\");\n startActivity(i);\n }\n });\n\n }",
"public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n new PostOutstandingLoanClass(context).execute();\n }",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tif(usernameedit.getText().toString().equals(\"\") || password.getText().toString().equals(\"\"))\n\t\t{\t\t\t\t\t\n\t\t\t\t\tToast toast= Toast.makeText(getApplicationContext(), \n\t\t\t\t\t\"Fill All Details\", Toast.LENGTH_SHORT); \n\t\t\t\t\ttoast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\t\t\t\ttoast.show();\n\t\t\t//Toast.makeText(Login.this, \"Fill all fields\", Toast.LENGTH_SHORT).show();\n\t\t}else{\n\t\t\t//new loadSomeStuff().execute();\n\t\t\tsContext = getApplicationContext();\n\t\t\tnew loadSomeStuff().execute();\n\t\t}\n\t}",
"private void onLoadButtonPressed() {\n EditText name = ((EditText) findViewById(R.id.name_edit_text));\n EditText number = ((EditText) findViewById(R.id.number_edit_text));\n if (name.getText().toString().equals(\"\")) {\n Toast.makeText(MainActivity.this, \"Empty string is not valid!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n// String num = sharedPrefs.getString(name.getText().toString(), \"Contact don't exist.\");\n// number.setText(num);\n\n try (Cursor cursor = database.query(\n ContactDbSchema.TABLE_NAME,\n null,\n ContactDbSchema.Cols.NAME + \" = ? \",\n new String[]{name.getText().toString()},\n null, null, null)) {\n cursor.moveToFirst();\n\n if (cursor.isAfterLast()) {\n Toast.makeText(MainActivity.this, \"Error! The contact was not found.\", Toast.LENGTH_SHORT).show();\n return;\n }\n int colIndex = cursor.getColumnIndex(ContactDbSchema.Cols.NUMBER);\n if (colIndex < 0) {\n Toast.makeText(MainActivity.this, \"Error! The contact was not found in cursor.\", Toast.LENGTH_SHORT).show();\n return;\n }\n String numberStr = cursor.getString(colIndex);\n number.setText(numberStr);\n\n }\n }",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\r\n\t\t\r\n\t\tcase R.id.bSQLUpdate:\r\n\t\t\tboolean did=true;\r\n\t\t\ttry{\r\n\t\t\t\tString name=sqlName.getText().toString();\r\n\t\t\t\tString detail=sqlDetail.getText().toString();\r\n\t\t\t\tString date=sqlDate.getText().toString();\r\n\t\t\t\tString location=sqlLocation.getText().toString();\r\n\t\t\t\tString year=sqlYear.getText().toString();\r\n\t\t\t\tString year1=sqlYear1.getText().toString();\r\n\t\t\t\tint a=name.length();\r\n\t\t\t\tint b=5/a;\r\n\t\t\t\ta=detail.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=date.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=location.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\ta=year1.length();\r\n\t\t\t\tb=5/a;\r\n\t\t\t\t\r\n\t\t\t\tData entry=new Data(SQLexample.this);\r\n\t\t\tentry.open();\r\n\t\t\tentry.createEntry(name,detail,date,location,year,year1);\r\n\t\t\tentry.close();\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\tdid=false;\r\n\t\t\t\t/*String error=e.toString();\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"Error\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(error);\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();*/\r\n\t\t\t\t\r\n\t\t\t}finally{\r\n\t\t\t\tif(did){\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"ok\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Data Entered Successfully\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();}\r\n\t\t\telse{\r\n\t\t\t\tDialog d=new Dialog(this);\r\n\t\t\t\td.setTitle(\"alert\");\r\n\t\t\t\tTextView tv=new TextView(this);\r\n\t\t\t\ttv.setText(\"Fill all the fields**\");\r\n\t\t\t\td.setContentView(tv);\r\n\t\t\t\td.show();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase R.id.bSQLopenView:\r\n\t\t\tIntent i=new Intent(SQLexample.this,SQLView.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t}",
"public void InsertData(View v){\n boolean isInserted = myDB.insertData(et_name.getText().toString(), et_surname.getText().toString(), et_marks.getText().toString());\n\n // if the data is inserted successfully\n if(isInserted){\n Toast.makeText(getApplicationContext(), \"Data inserted.\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(), \"Data insertion failure.\", Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n getThayDoiThongTin getThayDoiThongTin = new getThayDoiThongTin();\n getThayDoiThongTin.execute();\n ChangeHinh();\n\n\n\n\n TextView txtHoTen = ((Activity) ThongTinContext.context).findViewById(R.id.txtHoVaTenTT);\n TextView txtNgaySinh = ((Activity) ThongTinContext.context).findViewById(R.id.txtNgaySinhTT);\n TextView txtDiaChi = ((Activity) ThongTinContext.context).findViewById(R.id.txtDiaChiTT);\n txtHoTen.setText(editTextHoVaTen.getText().toString());\n txtNgaySinh.setText(editTextNgaySinh.getText().toString());\n txtDiaChi.setText(spnXaPhuong.getSelectedItem().toString() + \", \" + spnHuyenQuan.getSelectedItem().toString() + \", \" + spnTinhTp.getSelectedItem().toString());\n\n Toast.makeText(ThayDoiThongTin.this, \"Thay đổi thành công !\", Toast.LENGTH_SHORT).show();\n finish();\n\n }",
"@Override\n public void onClick(View v) {\n queryMain = svBusqueda.getQuery();\n Toast.makeText(getApplicationContext(),\"ejecutando consulta \"+queryMain,Toast.LENGTH_LONG).show();\n consultarDb();\n }",
"@Override\n public boolean onLongClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"peppino\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Peppino :)\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Peppino Not Inserted\", Toast.LENGTH_LONG).show();\n\n return true;\n }",
"public void onClick(View v) {\n\t\t\t\tString ff=fname.getText().toString().trim();\n\t\t\t\tString ll=lname.getText().toString().trim();\n\t\t\t\tMyDb mydb=new MyDb(Insert.this);\n\t\t\t\tSQLiteDatabase database=mydb.getWritableDatabase();\n\t\t\t\tContentValues context = new ContentValues();\n\t\t\t\tcontext.put(\"fname\", ff);\n\t\t\t\tcontext.put(\"lname\", ll);\n\t\t\t\tlong a=database.insert(\"demotable\", null, context);\n\t\t\t\tif(a>0){\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"insert\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Fail\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"public void takeAttendance(View view){\n\n if(_id.getText().toString().isEmpty() || _name.getText().toString().isEmpty()){ //Check if all fields are filled\n Toast.makeText(this, \"Enter all Fields\", Toast.LENGTH_LONG).show();\n return;\n }\n if(_id.getText().toString().length() != 9 ) { //checks if the ID is 9 digits (AUB students' IDs are usually 9-digits)\n Toast.makeText(this, \"Enter a valid ID\", Toast.LENGTH_LONG).show();\n return;\n }\n Intent intent = new Intent(this,Take_Attendance.class );\n setResult(RESULT_OK, intent);\n int id = Integer.parseInt(_id.getText().toString());\n String name = _name.getText().toString();\n intent.putExtra(STUDENT_ID, id);\n intent.putExtra(STUDENT_NAME, name);\n finish();\n }",
"public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), employer_add_posts.class);\n startActivity(intent);\n\n // your handler code here\n EditText employer_companyname = findViewById(R.id.employer_company_name);\n EditText employer_phone = findViewById(R.id.employer_email);\n EditText employer_email = findViewById(R.id.employer_phone_cyte);\n EditText employer_password = findViewById(R.id.employer_pass_cyte);\n EditText employer_location = findViewById(R.id.employer_location_cyte);\n\n // Pull input from text boxes\n String employee_name1 = employer_companyname.getText().toString();\n String employee_phone1 = employer_phone.getText().toString();\n String employee_email1 = employer_email.getText().toString();\n String employee_password1 = employer_password.getText().toString();\n String employee_location1 = employer_location.getText().toString();\n\n emperdb.addEmployer(employer_companyname, employer_phone, employer_email, employer_password, employer_location);\n\n // Send username and password to the database and check\n\n //login_button.setText(username + \" \" + password); // Get rid of this\n Toast.makeText(getApplicationContext(), \"Your data is stored\", Toast.LENGTH_SHORT).show();\n\n }",
"public void onCreateButtonClick(View view){\n boolean isInserted;\n\n EditText editFirst = (EditText) findViewById(R.id.First_Name);\n EditText editLast = (EditText) findViewById(R.id.Last_Name);\n EditText editEmail = (EditText) findViewById(R.id.email);\n EditText PWD1 = (EditText) findViewById(R.id.password1ET);\n EditText PWD2 = (EditText) findViewById(R.id.password2ET);\n EditText usernameET = (EditText) findViewById(R.id.UserNameIDET);\n\n if (view.getId() == R.id.btn_CAA){\n\n String password1 = PWD1.getText().toString();\n String password2 = PWD2.getText().toString();\n\n // check password match\n if (!password1.equals(password2) || (password1.equals(\"\")) || (password2.equals(\"\"))){\n\n Toast.makeText(CreateAnAccount.this, \"Passwords do not match!\", Toast.LENGTH_LONG).show();\n }\n else {\n isInserted = mydb.insertData(editFirst.getText().toString(),\n editLast.getText().toString(), editEmail.getText().toString(),\n usernameET.getText().toString(), PWD1.getText().toString());\n if(isInserted){\n Toast.makeText(CreateAnAccount.this, \"Data inserted\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(CreateAnAccount.this, MainMenu.class));\n\n } else {\n Toast.makeText(CreateAnAccount.this, \"Data not inserted\", Toast.LENGTH_LONG).show();\n }\n }\n }\n\n }",
"@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"cigarette\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Cigarette Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Cigarette Not Inserted\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n String name=et1.getText().toString();\n String course=et2.getText().toString();\n myDatabase.insertStudent(name,course);//request for db file for insertion\n et1.setText(\"\");\n et2.setText(\"\");\n et1.requestFocus();\n Toast.makeText(getActivity(), \"inserted a row\", Toast.LENGTH_SHORT).show();\n\n\n }",
"@Override\n public void onClick(View view) {\n\n\n System.out.printf(\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");\n backgroundTaskRegister.execute(\"post\",C_fname.getText().toString(),C_lname.getText().toString(),C_email.getText().toString(),C_password.getText().toString(),C_contact_number.getText().toString(),C_birthdate.getText().toString(),C_profession.getText().toString(),C_city.getText().toString(),C_business_desc.getText().toString(),C_reg_date.getText().toString());\n\n }",
"public void inClick() {\n if (!myDbHelper.CheckIsDataAlreadyInDBorNot(\"Users\",\"username\",\"'\"+username.getText().toString()+\"'\")) {\n progress.setText(\"That is not a username, please press sign Up to add it.\");\n } else {\n if (myDbHelper.CheckIsDataAlreadyInDBorNot(password.getText().toString(),username.getText().toString())) {\n try {\n InputMethodManager inputManager = (InputMethodManager)\n getSystemService(Context.INPUT_METHOD_SERVICE);\n\n inputManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(),\n InputMethodManager.HIDE_NOT_ALWAYS);\n }catch (Exception e ){\n Log.d(\"Error\",\"hiding keyboard\");\n }\n Log.d(\"Logged\", \"IN\");\n myDbHelper.logOut();\n myDbHelper.logIn(username.getText().toString());\n progress.setText(username.getText().toString()+\" you have logged in.\");\n// progress.setText(myDbHelper.read(\"Users\",\"loggedIn\",\"username = 'user'\"));\n//TextToSpeech tts = new TextToSpeech(this,this);\n// tts.setLanguage(Locale.US);\n// tts.speak(\"Welcome\"+(username.getText().toString())+\"\",TextToSpeech.QUEUE_ADD,null);\n }else{\n progress.setText(\"incorrect username or password\");\n }\n\n// boolean valid= false;\n// username.setText(\"\");\n//// valid = g1.signIn(username.getText().toString(), password.getText().toString());\n// valid= g1.signIn(\"cal\",\"pi\");\n\n// if(!valid){\n// notValid();\n// }\n// g1.signIn();\n// username.setText(\"bpo\");\n }\n }",
"@Override\n public void onClick(View v) {\n Phone = RegisterPhone.getText().toString();\n Password = RegisterPassword.getText().toString();\n Name = RegisterName.getText().toString();\n\n\n CreateNewAccount(Phone,Password,Name);\n }",
"private void show_input() {\n clear();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"ادخل رقم البطاقة\");\n\n// Set up the input\n final EditText input = new EditText(this);\n// Specify the type of input expected; this, for example, sets the input as a password, and will mask the text\n input.setInputType(InputType.TYPE_CLASS_NUMBER | InputType.TYPE_TEXT_VARIATION_PASSWORD);\n builder.setView(input);\n\n// Set up the buttons\n builder.setPositiveButton(\"تم\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n String Customer_id = input.getText().toString();\n getMenuID_Card(getCardURL, Customer_id);\n Log.d(\"karrar\", \"getMenuID_Card func \" + Customer_id);\n session.setScanfor(\"0\");\n\n }\n });\n// builder.setNegativeButton(\"الغاء\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n// dialog.cancel();\n// }\n// });\n\n builder.show();\n }",
"public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n new PostClass(context).execute();\n }",
"@Override\n public void onClick(View v) {\n reference = FirebaseDatabase.getInstance().getReference().child(\"HutangApp\").\n child(\"hutang\" + hutangNum);\n reference.addListenerForSingleValueEvent(new ValueEventListener() { // Ketika ada perubahan data dibaca 1x\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n // Set and put the data in MainActivity\n dataSnapshot.getRef().child(\"nama\").setValue(namahutang.getText().toString());\n dataSnapshot.getRef().child(\"jumlah\").setValue(jumlahhutang.getText().toString());\n dataSnapshot.getRef().child(\"deskripsi\").setValue(deskripsihutang.getText().toString());\n dataSnapshot.getRef().child(\"tanggal\").setValue(tanggalhutang.getText().toString());\n dataSnapshot.getRef().child(\"keyhutang\").setValue(keyhutang);\n\n // Show the data in MainActivity\n Toast.makeText(getApplicationContext(), \"Data successfully added\", Toast.LENGTH_SHORT).show();\n\n Intent a = new Intent(NewHutangAct.this, MainActivity.class);\n startActivity(a);\n finish();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"public void clickLogin(){\n btn_login.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String nameStr = edt_name.getText().toString();\n String passStr = edt_pass.getText().toString();\n if(!nameStr.isEmpty() && !passStr.isEmpty()){\n\n Boolean loginSuccess = login_db.findData(nameStr, passStr);\n if(loginSuccess){\n Toast.makeText(LoginActivity.this,\"Đăng nhập thành công\", Toast.LENGTH_LONG).show();\n }\n else {\n Toast.makeText(LoginActivity.this,\"Đăng nhập không thành công\", Toast.LENGTH_LONG).show();\n }\n }\n else {\n\n Toast.makeText(LoginActivity.this,\"Thất bại không được để trống thông tin\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }",
"private void display() {\n TextView textview = (TextView) findViewById(R.id.textView);\n EditText editText = (EditText) findViewById(R.id.editNumber) ;\n textview.setText(\"TEXT\");\n editText.setText(\"\");\n\n }",
"@Override\n public void onClick(View v) {\n String userName = \"\";\n String userPass = \"\";\n userName = name.getEditText().getText().toString();\n userPass = pass.getEditText().getText().toString();\n }",
"@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"espresso\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Espresso Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Espresso Not Inserted\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View view) {\n if (mEdtTask.getText().toString().trim().matches(\"\") && mEdtDuration.getText().toString().trim().matches(\"\")){\n Toast.makeText(MainActivity.this, \"Empty field\", Toast.LENGTH_SHORT).show();\n } else {\n try {\n mSQLiteHelper.insertData(\n mEdtTask.getText().toString().trim(),\n mEdtDuration.getText().toString().trim(),\n mEdtStatus.getText().toString().trim()\n );\n Toast.makeText(MainActivity.this, \"Added successfully\", Toast.LENGTH_SHORT).show();\n //reset views\n mEdtTask.setText(\"\");\n mEdtDuration.setText(\"\");\n mEdtStatus.setText(\"\");\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n }",
"public void insert(View view) {\n\n Log.w(\"InsertActivity\", \"Insert Button Pushed!\");\n\n EditText etFirstName = findViewById(R.id.input_first_name);\n EditText etLastName = findViewById(R.id.input_last_name);\n EditText etEmailAddress = findViewById(R.id.input_email_address);\n String firstName = etFirstName.getText().toString();\n String lastName = etLastName.getText().toString();\n String emailAddress = etEmailAddress.getText().toString();\n\n // insert into the database\n try {\n Person person = new Person(0, firstName, lastName, emailAddress);\n dbManager.insert(person);\n Toast.makeText(this, \"Friend Added\", Toast.LENGTH_SHORT).show();\n }\n catch (Exception exception) {\n Toast.makeText(this,\n \"Error, sorry your friend didn't want to be friends\",\n Toast.LENGTH_SHORT)\n .show();\n }\n\n // clear data\n etFirstName.setText(\"\");\n etLastName.setText(\"\");\n etEmailAddress.setText(\"\");\n }",
"@Override\n public void onClick(View v) {\n\n if (outletstring != null) {\n try {\n ClearLocalAppData();\n new FLROutletAttendance().execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Please Select Outlet\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void masuk(){\n Intent accountsIntent = new Intent(this, HomeUserActivity.class);\n emptyInputEditText();\n startActivity(accountsIntent);\n }",
"public void viewallinfo(View view){\n String IDValue = ID.getText().toString();\n Intent intent=new Intent(this,ViewAllInfo.class);\n intent.putExtra(\"key1\", IDValue );\n startActivity(intent);\n }",
"public void button_proband_ok(View view){\n String codePart1 = getEditText(R.id.pc_1);\n String codePart2 = getEditText(R.id.pc_2);\n String codePart3 = getEditText(R.id.pc_3);\n String codePart4 = getEditText(R.id.pc_4);\n String codePart5 = getEditText(R.id.pc_5);\n // ToDo: check if all are actually characters\n // (and not numbers/other symbols)\n _control.newUser( codePart1+codePart2+codePart3+codePart4+codePart5 );\n setContentView(R.layout.set_time);\n }",
"@Override\n public void onClick(View v) {\n String phoneNumber=txtPhone.getText().toString();\n\n //check data being submitted\n if(isNetworkAvailable())\n {\n if(phoneNumber!=\"\" && phoneNumber.length()==10)\n {\n //create instance of signup class\n if(isNetworkAvailable())\n {\n progress = new ProgressDialog(Login.this);\n progress.setTitle(\"Login\");\n progress.setMessage(\"Please wait...\");\n progress.show();\n String method=\"signup\";\n SignUp signUp=new SignUp(fa,progress);\n signUp.execute(method,phoneNumber);\n SharedPrefManager.getInstance(getApplicationContext()).number(phoneNumber);\n// Intent intent=new Intent(getApplicationContext(),loginPassWord.class);\n// startActivity(intent);\n }\n else\n {\n Toast.makeText(getApplicationContext(),\"Check Internet\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n txtPhone.setFocusable(true);\n txtPhone.setText(\"\");\n Toast.makeText(getApplicationContext(),\"Please ENter valid Phone\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n AlertDialog.Builder builder=new AlertDialog.Builder(getApplicationContext());\n builder.setTitle(\"Network Error\");\n builder.setMessage(\"There is an error\");\n builder.show();\n }\n\n\n }",
"public void continueOne(View view){\n EditText firstName= (EditText) findViewById(R.id.firstName);\n String firstNameString = firstName.getText().toString();\n EditText lastName= (EditText) findViewById(R.id.lastName);\n String lastNameString= lastName.getText().toString();\n EditText studentID= (EditText) findViewById(R.id.studentId);\n String studentIDString= studentID.getText().toString();\n\n /**Toasts are the things that are like mini notifications that you'll see at the bottom of the screen.*/\n Context context = getApplicationContext();\n CharSequence text = \"Let's do this, \" + firstNameString + \"!\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n /**The following is an intent to start the next activity (mainCodeOne), and carry the key user data with it. MainActivityOne*/\n Intent intentOne = new Intent(this, AndroidBarcodeActivityOne.class);\n intentOne.putExtra(\"firstNameString\", firstNameString);\n intentOne.putExtra(\"lastNameString\", lastNameString);\n intentOne.putExtra(\"studentIDString\", studentIDString);\n startActivity(intentOne);\n\n\n }",
"public void Text_Message(View view) {\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Message Input\");\r\n final EditText eT= new EditText(this);\r\n eT.setHint(\"Type Message Here\");\r\n adb.setView(eT);\r\n adb.setPositiveButton(\"Show\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n String str= eT.getText().toString();\r\n Toast.makeText(MainActivity.this,str,Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n adb.setNegativeButton(\"Cancle\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t final EditText uname;\n\t\t\t\t\tEditText pwd;\n\t\t\t\t TextView title=(TextView) findViewById(R.id.textView1);\n\t\t\t \n\t\t\t\t String s;\n\t\t\t\t \n\t\t\t\t uname=(EditText) findViewById(R.id.name);\n\t\t\t\t pwd=(EditText) findViewById(R.id.password);\n\t\t\t\t\n\t\t\t\ts=uname.getText().toString(); //text will get into\n\t\t\t\n\t\t\t\tToast.makeText(getApplicationContext(), \"hi\", Toast.LENGTH_LONG).show();//pop msg\n\t\t\t\tToast.makeText(getApplicationContext(), \"WELCOME\", Toast.LENGTH_LONG).show();//msg to display with or without time\n\t\t\t\t\n\t\t\t\tIntent i=new Intent(MainActivity.this,success.class); //validation first :-current java file to second:-success file to open\n\t\t\t\ti.putExtra(\"name\", s); //user will enter text stored in s send back to the main activity for verification\n\t\t\t\tstartActivity(i);\n\t\t\t\tToast.makeText(getApplicationContext(), \"hello\", Toast.LENGTH_LONG).show();\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n biensoxe = etBienSoXe.getText().toString().toLowerCase().trim();\n passwordtx = etPasswordtx.getText().toString().trim();\n confirmPassword = etConfirmPassword.getText().toString().trim();\n tenchuxe = etTenChuXe.getText().toString().trim();\n sdt = etSDT.getText().toString().trim();\n mota = edMoTa.getText().toString().trim();\n loaixe = tenloaixe;\n trongtaixe = trongtai;\n if (validateInputs()) {\n registerUser();\n }\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n\n HOSTEL_NAME = \"NULL\";\n ONE_PREFERENCE = \"NULL\";\n TWO_PREFERENCE = \"NULL\";\n THREE_PREFERENCE = \"NULL\";\n\n settingUpVariables();\n settingUpSpinners();\n buttonClickListeners();\n editTextClickListeners();\n spinnerClickListeners();\n\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n toolbar.setTitle(\"NSS Recruitment\");\n toolbar.setLogo(getResources().getDrawable(R.drawable.nss_bits));\n setSupportActionBar(toolbar);\n\n\n\n db = openOrCreateDatabase(\"StudentDB\", Context.MODE_PRIVATE, null);\n db.execSQL(\"CREATE TABLE IF NOT EXISTS student(rollno VARCHAR,\" +\n \"name VARCHAR,\" +\n \"marks VARCHAR,\" +\n \"hostel VARCHAR,\" +\n \"room VARCHAR,\" +\n \"first_pref VARCHAR,\" +\n \"second_pref VARCHAR,\" +\n \"third_pref VARCHAR);\");\n db.execSQL(\"CREATE TABLE IF NOT EXISTS addedBy(name VARCHAR);\");\n\n\n db.execSQL(\"INSERT INTO addedBy VALUES('NULL');\");\n\n }",
"public void retrieve() {\n //retrieving details EditText input bars\n password_handler = findViewById(R.id.PasswordInput);\n email_handler = findViewById(R.id.EmailInput);\n inputPhone = findViewById(R.id.inputPhone);\n inputFullName = findViewById(R.id.inputFullName);\n\n city = findViewById(R.id.cityNameInput);\n street = findViewById(R.id.streetNameInput);\n floor = findViewById(R.id.floorNumberInput);\n appartment = findViewById(R.id.appartmentNumberInput);\n houseNum = findViewById(R.id.buildingNumberInput);\n\n progressBar2 = findViewById(R.id.progressBar2);\n\n //retrieving the names near the input bars\n pass = findViewById(R.id.Password);\n mail = findViewById(R.id.Email);\n phone = findViewById(R.id.Phone);\n name = findViewById(R.id.fullName);\n\n //confirm button\n confirm = findViewById(R.id.confirm);\n\n //checkboxes of advertiser and adopter\n inputadvertiser = findViewById(R.id.ifadvertiser);\n inputadopter = findViewById(R.id.ifadopter);\n\n }",
"@Override\n public void onClick(View view) {\n if (view.getId() == R.id.btnSubmit) {\n tableNum = String.valueOf(textInput.getText());\n Intent intent = new Intent(this, PizzeriaMainActivity.class);\n intent.putExtra(CLE_DONNEES, tableNum);\n startActivity(intent);\n }\n }",
"private void id(){\n but = findViewById(R.id.googlBtn);\n image = findViewById(R.id.Logo_image);\n logoText = findViewById(R.id.logo_name);\n sloganText = findViewById(R.id.slogan_name);\n password = findViewById(R.id.password);\n login_btn = findViewById(R.id.login_btn);\n emailsignup = findViewById(R.id.emailsignup);\n phonesignup = findViewById(R.id.phonesignup);\n forgot=findViewById(R.id.forgot);\n //googlesignup = findViewById(R.id.googlesignup);\n email=findViewById(R.id.loginemail);\n scrollView=findViewById(R.id.scroll);\n firebaseAuth=FirebaseAuth.getInstance();\n firebaseDatabase=FirebaseDatabase.getInstance();\n }",
"@Override\n public void onClick(View v) {\n String nameEdit = name1.getText().toString().trim();\n String age1 = ageEditText.getText().toString().trim();\n String address = addressEditText.getText().toString().trim();\n String occupation = occupationEditText.getText().toString().trim();\n String about = aboutEditText.getText().toString().trim();\n\n if (nameEdit != null && !nameEdit.isEmpty()) {\n databaseReference.child(\"Name\").setValue(nameEdit);\n }\n if (age1 != null && !age1.isEmpty()) {\n databaseReference.child(\"Age\").setValue(age1);\n }\n if (address != null && !address.isEmpty()) {\n databaseReference.child(\"Address\").setValue(address);\n }\n if (occupation != null && !occupation.isEmpty()) {\n databaseReference.child(\"Occupation\").setValue(occupation);\n }\n if (about != null && !about.isEmpty()) {\n databaseReference.child(\"About\").setValue(about);\n }\n\n Toast.makeText(UserAccount.this, \"The details have been successfully updated\", Toast.LENGTH_SHORT).show();\n\n }",
"public void onClick(View irrelevant)\n {\n Intent myIntent = new Intent(MainActivity.this, OptionsActivity.class);\n inputData = (EditText) findViewById(R.id.DataInput);\n String inputAddressString = inputData.getText().toString();\n\n // Create a bundle to pass in data to results activity\n Bundle infoBundle = new Bundle();\n infoBundle.putString(\"inputAddress\", inputAddressString);\n myIntent.putExtras(infoBundle);\n startActivity(myIntent);\n\n // Old code to show toast message of user input\n /*\n inputData = (EditText) findViewById(R.id.DataInput);\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.TOP| Gravity.LEFT, 0, 0);\n toast.makeText(MainActivity.this, inputData.getText(), toast.LENGTH_SHORT).show();\n */\n }",
"public void showNext(View v){\n\n //create our database for the tasks\n TasksDBHelper tasksDBHelper = new TasksDBHelper(getApplicationContext());\n //Set DB repository in write mode\n SQLiteDatabase db = tasksDBHelper.getWritableDatabase();\n\n\n\n //capture the text that is entered for tasks 1 to 3.\n EditText task1 = (EditText)findViewById(R.id.task1);\n EditText task2 = (EditText)findViewById(R.id.task2);\n EditText task3 = (EditText)findViewById(R.id.task3);\n\n //Convert the tasks to a string to write to the DB\n //need to convert editText to a string\n String myTask1 = task1.getText().toString();\n String myTask2 = task2.getText().toString();\n String myTask3 = task3.getText().toString();\n\n\n\n\n\n //Adding the tasks to the DB to be set and read later\n ContentValues tasks = new ContentValues();\n tasks.put(TasksDBHelper.FIELD_REWARD, myTask1);\n tasks.put(TasksDBHelper.FIELD_REWARD_1, myTask2);\n tasks.put(TasksDBHelper.FIELD_REWARD_2, myTask3);\n db.insert(TasksDBHelper.TABLE_NAME, null, tasks);\n\n //use intent to move us to next screen\n // Take us to enter the time\n Intent mainIntent = new Intent(this, MainActivity.class);\n startActivity(mainIntent);\n\n }",
"private void sendData() {\n String Own_Easting = OEast.getText().toString();\n String Own_Northing = ONorth.getText().toString();\n String En_Easting = EEast.getText().toString();\n String En_nothing = ENorth.getText().toString();\n String OTbg = OTBG.getText().toString();\n String rt=Rt.getText().toString();\n String add=Add.getText().toString();\n\n DB bg = new DB(this);\n bg.execute(Own_Easting,Own_Northing,En_Easting,En_nothing\n ,OTbg,rt,add);\n\n }",
"@Override\n public void onClick(View arg0) {\n ip = txt3.getText().toString();\n setWindow();\n }",
"@Override\r\n\t\tpublic void onClick(View view) {\n\t\t\ttry {\r\n\r\n\t\t\t\tString ad = editText01.getText().toString().trim();\r\n\t\t\t\tString we = editText02.getText().toString().trim();\r\n\t\t\t\tString fe = editText03.getText().toString().trim();\r\n\r\n\t\t\t\t/**\r\n\t\t\t\t * ContentValues类似于Map,相对于Map,它提供了存取数据对应的put(String key, Xxx\r\n\t\t\t\t * value)和getAsXxx(String key)方法,\r\n\t\t\t\t * key为字段名称,value为字段值,Xxx指的是各种常用的数据类型,如:String、Integer等。\r\n\t\t\t\t * ContentValues是用于数据库中存放数据的类,也是采用的键值对来存放数据的,\r\n\t\t\t\t * 有点类似content和bundle等。 该构造函数是建立一个默认大小的空的数据集。\r\n\t\t\t\t */\r\n\r\n\t\t\t\tContentValues values = new ContentValues();\r\n\t\t\t\tvalues.put(\"address\", ad);\r\n\t\t\t\tvalues.put(\"weather\", we);\r\n\t\t\t\tvalues.put(\"feeling\", fe);\r\n\r\n\t\t\t\tdatabase.insert(\"test\", null, values);\r\n\r\n\t\t\t\tToast.makeText(MainActivity.this, \"添加成功!!!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tif (database!=null) {//只有数据库不为空才可以关闭,不然会抛出空指针异常\r\n\t\t\t\t\tdatabase.close();//关闭数据库\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public void onClick(DialogInterface dialog, int which) {\n String description = input.getText().toString();\n databaseListFragment.insertToFuturePlants(species_id, description, FuturePlant.calculatePlantDateFromSpecies(species));\n Toast toast = Toast.makeText(databaseListFragment.getActivity(), R.string.toast_future_plants, Toast.LENGTH_SHORT);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Please Enter Correct User Name And Password\", Toast.LENGTH_SHORT).show();\n }",
"public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Please Enter Correct User Name And Password\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n name = editName.getText().toString();\n //if name is not written, show message\n if(name.equalsIgnoreCase(\"\")) {\n Toast.makeText(getApplicationContext(), \"이름을 입력해주세요.\", Toast.LENGTH_LONG).show();\n } else { //if name is written, delete data from DB, and show updating data list by using list view\n //reset editText\n editName.setText(\"\");\n editNum.setText(\"\");\n //delete data from DB\n delete(name);\n //show data list by using list view\n showList();\n }\n }",
"private void catcher() {\n String text;\n\n if (getTextFromEditText(R.id.distanceEdit).equals(\"\")) {\n text = getResourceString(R.string.err_no_distance);\n } else if (getTextFromEditText(R.id.fuelEdit).equals(\"\")) {\n text = getResourceString(R.string.err_no_fuel);\n } else {\n text = getResourceString(R.string.err_wrong_vals);\n }\n\n makeToast(text);\n }",
"@Override\n public void onClick(View v) {\n String delay=et_delay.getText().toString().trim();\n if(delay.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Please Enter a time in milli seconds\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n int count= repo.getdelaycount();\n if(count==0)\n {\n repo.adddelay(delay);\n dialog.dismiss();\n Toast.makeText(AdminHomeActivity.this, \"Successfully Added\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updateDelay(delay);\n dialog.dismiss();\n Toast.makeText(AdminHomeActivity.this, \"Successfully Updated\", Toast.LENGTH_SHORT).show();\n\n }\n }\n }",
"public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n new PostDepositClass(context).execute();\n }",
"public void buscarPabellon(String idPabellon)\n {\n TxtPabellon=(TextView)findViewById(R.id.txt_pabellon);\n database.getReference(Constants.FIREBASE_LOCATION_PABELLON).child(idPabellon).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Pabellon pabellon = dataSnapshot.getValue(Pabellon.class);\n latPabellon=pabellon.getLatitud();\n longPabellon=pabellon.getLongitud();\n nombrePabellon=pabellon.getNombre();\n TxtPabellon.setText(nombrePabellon);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.w(\"getUser:onCancelled\", databaseError.toException());\n }\n });\n }",
"@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"soft_drink\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Soft Drink Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Soft Drink Not Inserted\", Toast.LENGTH_LONG).show();\n }",
"@OnClick(R.id.sendData)\n void onSendDataClick() {\n String name = checkerNameInputView.getText().toString();\n String password = passwordInputView.getText().toString();\n }",
"@Override\r\n\t\r\n\tpublic void onClick(View v)\r\n\t{\n\t\t\r\n\t\tfirstname = fname.getText().toString();\r\n\t\tlastname = lname.getText().toString();\r\n\t\tmail = email.getText().toString();\r\n\t\tpassword = pass.getText().toString();\r\n\t\tif(firstname.toString().isEmpty() || lastname.isEmpty() || mail.toString().isEmpty()|| password.isEmpty())\r\n\t\t\tToast.makeText(this, \"Please enter the required Fields\", Toast.LENGTH_SHORT).show();\r\n\t\telse\r\n\t\t\tnew register().execute();\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t}",
"@Override\n public void onClick(View v) {\n if(validateInputInfo()){\n\n //Get text input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Create contact object\n final Contact addMe = new Contact(firstName, lastName, email, phone);\n\n //Get unique ID in database to store Contact object\n String id = myDatabase.push().getKey();\n\n //Add to database\n myDatabase.child(id).setValue(addMe).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //If successful display message and return to home page\n if(task.isSuccessful()){\n Toast.makeText(getBaseContext(), \"New contact \" + addMe.getDisplayName() + \" created!\", Toast.LENGTH_LONG).show();\n\n //Go to home page\n finish();\n }\n else {\n Toast.makeText(getBaseContext(), \"Unable to add \" + addMe.getDisplayName() + \" contact\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }\n }",
"@Override\n public void onClick(View v) {\n genderString = spinner_gender.getSelectedItem().toString();\n activityString = spinner_activity.getSelectedItem().toString();\n gainsString = spinner_gains.getSelectedItem().toString();\n //converts all entries to strings\n if(firstNameString.length()!=0 && surnameString.length()!=0 && ageString.length()!=0 && heightString.length()!=0 &&\n weightString.length()!=0 && genderString.length()!=0 && activityString.length()!=0 && gainsString.length()!=0){//checks if all fields have been entered\n AddData(firstNameString, surnameString, ageString, heightString, weightString, genderString, activityString, gainsString); //adds fields to database by calling adddata method\n }\n else{\n toastMessage(\"Enter data\");//if a field is empty, error displayed\n }\n startActivity(new Intent(SignUp2.this, MainActivity.class));//once this had passed, main activity is started\n }",
"@Override\n public void onClick(View v) {\n if (TextUtils.isEmpty(edt_title.getText().toString()) && !TextUtils.isEmpty(edt_discription.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter title!\", Toast.LENGTH_SHORT).show();\n } else if (!TextUtils.isEmpty(edt_title.getText().toString()) && TextUtils.isEmpty(edt_discription.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter description!\", Toast.LENGTH_SHORT).show();\n } else if (TextUtils.isEmpty(edt_title.getText().toString()) && TextUtils.isEmpty(edt_discription.getText().toString())) {\n Toast.makeText(MainActivity.this, \"Enter title and description!\", Toast.LENGTH_SHORT).show();\n } else {\n alertDialog.dismiss();\n }\n\n //Update or add data into the database only when both field are filled(i.e title,description)\n if (!TextUtils.isEmpty(edt_title.getText().toString()) && !TextUtils.isEmpty(edt_discription.getText().toString())) {\n\n // check if user updating note\n\n if (shouldUpdate && event != null) {\n // update event\n new DatabaseAsync(eventDatabase).execute(shouldUpdate, position, edt_title.getText().toString(), edt_discription.getText().toString(), date);\n\n\n } else {\n // create new event\n new DatabaseAsync(eventDatabase).execute(shouldUpdate, -1, edt_title.getText().toString(), edt_discription.getText().toString(), date);\n\n\n }\n }\n }",
"@Override\n public void onClick(View v) {\n title = titleET.getText().toString();\n timePeriod = startTimeET.getText().toString();\n timePeriod += \" to \" + endTimeET.getText().toString();\n description = descriptionET.getText().toString();\n\n //validate fields before insert to db\n if (taskValidate.validateFieldsEmpty(title,\n priorityET.getText().toString(),\n startTimeET.getText().toString(),\n description)) {\n\n //to prevent number format exception if value not typed in edit text\n priorityNo = Integer.parseInt(priorityET.getText().toString());\n\n if(taskValidate.validatePriorityNo(priorityNo)) {\n //insert to database\n if (insertTask() == true) {\n Toast.makeText(getApplicationContext(), \"Task Inserted!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getApplicationContext(), \"Insert failed!\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n }",
"public void onClickInsertAdd_Jogo(View v){\n }",
"@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"drink\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Drink Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Drink Not Inserted\", Toast.LENGTH_LONG).show();\n }",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tdrug=(EditText)findViewById(R.id.editText1);\r\n\t\t\tabc=drug.getText().toString();\r\n\t\t\tToast.makeText(getApplicationContext(), \r\n\t\t abc, Toast.LENGTH_LONG).show();\r\n\t\t\tIntent intent3=new Intent(Input_Med.this,Med_Info.class);\r\n\t\t\tintent3.putExtra(\"drug\", abc);\r\n\t\t\tstartActivity(intent3);\r\n\t\t\t\r\n\t\t}",
"@Override\n public void onClick(View view) {\n songname = usr_nm.getText().toString();\n new loadsomestuff().execute(songname);\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n // TODO Auto-generated method stub\n if ((requestCode == request_code) && (resultCode == RESULT_OK)) {\n\n // Toast.makeText(this, intent.getStringExtra(\"resultado\"), Toast.LENGTH_LONG).show();\n inEquipo.setText(intent.getStringExtra(\"resultado\"));\n }\n }",
"@SuppressLint(\"ShowToast\") @Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tStaticDB.setSilent( new String(silent.getText().toString()));\n\t\t\t\t\tStaticDB.setRing(new String(ring.getText().toString()));\n\t\t\t\t\tStaticDB.setVibrate(new String(vibrate.getText().toString()));\n\t\t\t\t\t\n\t\t\t\t\tToast.makeText(getApplicationContext(), StaticDB.getSilent(), 100).show();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tIntent it=new Intent(SecondActivity.this,ThirdActivity.class);\n\t\t\t\tstartActivity(it);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n //에디트텍스트, 버튼, 텍스트뷰 읽어 오기\n com_id = (EditText) findViewById(R.id.com_id);\n mem_id = (EditText) findViewById(R.id.mem_id);\n mem_pw = (EditText) findViewById(R.id.mem_pw);\n login_btn = (Button) findViewById(R.id.login_btn);\n sign_up_btn = (TextView) findViewById(R.id.sign_up_btn);\n id_search_btn = (TextView) findViewById(R.id.id_search_btn);\n pw_search_btn = (TextView) findViewById(R.id.pw_search_btn);\n terms_of_service = (TextView) findViewById(R.id.terms_of_service);\n privacy = (TextView) findViewById(R.id.privacy);\n information_communication_network_act = (TextView) findViewById(R.id.information_communication_network_act);\n personal_information_protection_act = (TextView) findViewById(R.id.personal_information_protection_act);\n\n login_btn.setOnClickListener(this);\n sign_up_btn.setOnClickListener(this);\n id_search_btn.setOnClickListener(this);\n pw_search_btn.setOnClickListener(this);\n terms_of_service.setOnClickListener(this);\n privacy.setOnClickListener(this);\n information_communication_network_act.setOnClickListener(this);\n personal_information_protection_act.setOnClickListener(this);\n }",
"@Override\n public void onClick(View v) {\n\n\n Toast.makeText( LoginActivity.this, \"Saved\", Toast.LENGTH_SHORT ).show();\n }",
"@Override\r\n public void onClick(View v) {\n String un = user_name.getText().toString();\r\n String pwd = pass_wrd.getText().toString();\r\n\r\n System.out.println(un + \" \" + pwd);\r\n if(db.validCredentials(un, pwd)){\r\n Intent secondActivity = new Intent(getApplicationContext(), UserAreaActivity.class);\r\n startActivity(secondActivity);\r\n } else{\r\n invalid.setVisibility(View.VISIBLE);\r\n }\r\n }",
"private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n //Initialize the Firebase database reference\n mDatabase = FirebaseDatabase.getInstance().getReference();\n\n //get a reference to the Button and EditText Views using their ID's\n addTaskButton = (Button) findViewById(R.id.addTask_id);\n taskDescription = (EditText) findViewById(R.id.taskDescription_id);\n\n addTaskButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n writeNewTask();\n }\n });\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (save()) {\r\n\t\t\t\t\tfirst_name_text = first_name.getText().toString();\r\n\t\t\t\t\tlast_name_text=last_name.getText().toString();\r\n\t\t\t\t\tpassword_text = password.getText().toString();\r\n\t\t\t\t\temail_text = email.getText().toString();\r\n\t\t\t\t\tusername_text = username.getText().toString();\r\n\t\t\t\t\t//Remove - between Numbers\r\n\t\t\t\t\tphonenumber_text=phonenumber.getText().toString().replaceAll(\"[^0-9]\", \"\");\r\n\t\t\t\t\t// Remove All spaces between Strings\r\n\t\t\t\t\tcollege_name_text = college_name.getSelectedItem()\r\n\t\t\t\t\t\t\t.toString().replaceAll(\"\\\\s+\", \"\");\r\n\t\t\t\t\t// Execute the AsyncTask to Register User\r\n\t\t\t\t\tnew ValidateRegister().execute();\r\n\t\t\t\t}\r\n\t\t\t}",
"private void RetrieveEditTextData() {\n\n strFirstName = etFirstName.getText().toString();\n strMiddleName = etMiddleName.getText().toString();\n strLastName = etLastName.getText().toString();\n strEmployId = etEmployId.getText().toString();\n strDesignation = etDesignation.getText().toString();\n strCompName = etCompName.getText().toString();\n strCategory = etCategory.getText().toString();\n strDOB = etDOB.getText().toString();\n\n }",
"@Override\n public void onClick(View v) {\n try\n {\n rslt=\"START\";\n Caller c=new Caller();\n c.user= nUser.toString();\n c.nopol= mNoPol.getText().toString().concat(\"*\").concat(mSupir.getText().toString());\n c.emkl= mEMKL.getText().toString();\n c.jnsorder= mJenisOrderan.getSelectedItem().toString();\n c.tujuantarif= mTujuanTarif.getText().toString();\n c.dari= mDari.getText().toString();\n c.sampai= mTujuanTarif.getText().toString();\n c.ukurancontainer= mUkuranCont.getSelectedItem().toString();\n c.nochasis= \"\";\n c.statuscont= \"FULL\";\n c.islongtrip= 0;\n c.shipper =mShipper.getText().toString();\n c.gudang=mGudang.getText().toString();\n c.jnsritasi=\"\";\n c.ritasidr=\"\";\n c.ritasike=\"\";\n\n c.status= \"START\";\n c.sCommand =\"entrytripgantung\";\n c.join();\n c.start( );\n while(rslt==\"START\")\n {\n try\n {\n Thread.sleep(10);\n\n }catch(Exception ex)\n {\n\n }\n }\n\n ad.setTitle(\"INFO\");\n ad.setMessage(rslt);\n ad.show();\n\n mNoPol.setText(\"\");\n mEMKL.setText(\"\");\n mTujuanTarif.setText(\"\");\n mDari.setText(dari);\n mSampai.setText(\"\");\n mShipper.setText(\"\");\n mGudang.setText(\"\");\n\n }catch(Exception ex) {\n\n }\n }",
"public void execute(){\n editText = findViewById(R.id.editText);\n nom = editText.getText().toString();\n\n if(nom.length() != 0 ) {\n SharedPreferences sharedPref = getSharedPreferences(\"DATA\", Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n login_email = sharedPref.getString(\"email\", \"NULL\").replace(\".\", \"%\");\n\n //Sauvegarde en ligne\n mDatabase = FirebaseDatabase.getInstance().getReference();\n String nbr_max = sharedPref.getString(\"nombre_voiture\", \"null\");\n Integer nbr_max_i = Integer.parseInt(nbr_max);\n nbr_max_i++;\n mDatabase.child(\"Users\").child(login_email).child(\"Trajets\").child(\"Id\").child(\"Voiture\").child(\"nbr\").setValue(nbr_max_i);\n mDatabase.child(\"Users\").child(login_email).child(\"Trajets\").child(\"Id\").child(\"Voiture\").child(nbr_max_i.toString()).setValue(nom);\n\n //Sauvegarde en local\n editor.putString(\"nombre_voiture\", nbr_max_i.toString());\n editor.putString(\"voiture_numero_\" + nbr_max_i.toString(), nom);\n editor.commit();\n\n Toast.makeText(getApplicationContext(), \"Voiture ajoutée\", Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(getApplicationContext(), Volant.class);\n startActivity(intent);\n overridePendingTransition(R.anim.fade_in_fast, R.anim.fade_out_fast);\n }\n\n }",
"private void clickOk(){\n bnOk.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if(nameTask.getText().toString().matches(\"\")){\n Toast.makeText(activity.getApplicationContext(), activity.getResources().getString(R.string.noNameEntered), Toast.LENGTH_SHORT ).show();\n return;\n }\n\n schedulerDB.updateData(id, nameTask.getText().toString(), day);\n dismiss();\n\n }\n });\n }",
"public void databaseinsert() {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tSite site = new Site(Sid.getText().toString().trim(), Scou.getText().toString().trim());\n\t\tlong rowId = dbHlp.insertDB(site);\n\t\tif (rowId != -1) {\n\t\t\tsb.append(getString(R.string.insert_success));\n\n\t\t} else {\n\n\t\t\tsb.append(getString(R.string.insert_fail));\n\t\t}\n\t\tToast.makeText(Stu_state.this, sb, Toast.LENGTH_SHORT).show();\n\t}",
"public void UpdateData(View v){\n boolean isUpdated = myDB.updateData(et_id.getText().toString(),\n et_name.getText().toString(),\n et_surname.getText().toString(),\n et_marks.getText().toString());\n if(isUpdated){\n // show update message\n Toast.makeText(getApplicationContext(), \"Update successful.\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(), \"Update failure.\", Toast.LENGTH_LONG).show();\n }\n }",
"public void insertEntry( String fullName, String mobileNumber , String userName,String password , String state, String lga, String imei)\n {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues newValues = new ContentValues();\n // Assign values for each row.\n newValues.put(\"username\", userName);\n newValues.put(\"password\",password);\n newValues.put(\"fullName\",fullName);\n newValues.put(\"phoneNumber\",mobileNumber);\n newValues.put(\"state\", state);\n newValues.put(\"lga\",lga);\n newValues.put(\"imei\", imei);\n\n // Insert the row into your table\n database.insert(\"admin\", null, newValues);\n ///Toast.makeText(context, \"Reminder Is Successfully Saved\", Toast.LENGTH_LONG).show();\n }",
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView((int) C0520R.layout.activity_main5);\n final EditText adm = (EditText) findViewById(C0520R.C0522id.register_);\n this.table_user.addValueEventListener(new ValueEventListener() {\n static final /* synthetic */ boolean $assertionsDisabled = false;\n\n static {\n Class<Main5Activity> cls = Main5Activity.class;\n }\n\n public void onDataChange(final DataSnapshot dataSnapshot) {\n for (DataSnapshot next : dataSnapshot.getChildren()) {\n ((Button) Main5Activity.this.findViewById(C0520R.C0522id.loadForEdit)).setOnClickListener(new View.OnClickListener() {\n static final /* synthetic */ boolean $assertionsDisabled = false;\n\n static {\n Class<Main5Activity> cls = Main5Activity.class;\n }\n\n public void onClick(View v) {\n if (dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).exists()) {\n try {\n String Name = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Name\").getValue().toString();\n String Class = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Class\").getValue().toString();\n String address = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Address\").getValue().toString();\n String Contact = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Contact\").getValue().toString();\n String rollno = dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).child(\"Roll No\").getValue().toString();\n String str = \"SELECT * FROM STUDENT WHERE regno = '\" + adm.getText().toString().toUpperCase() + \"'\";\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.edit_name_)).setText(Name);\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.Class)).setText(Class);\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.address)).setText(address);\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.contact)).setText(Contact);\n ((EditText) Main5Activity.this.findViewById(C0520R.C0522id.roll)).setText(rollno);\n } catch (Exception e) {\n }\n } else {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"No Such Student\", 1).show();\n }\n }\n });\n }\n }\n\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n ((Button) findViewById(C0520R.C0522id.buttonSAVEEDITS)).setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n EditText name = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.edit_name_);\n EditText Clas = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.Class);\n EditText add = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.address);\n EditText contact = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.contact);\n EditText roll = (EditText) Main5Activity.this.findViewById(C0520R.C0522id.roll);\n DatabaseReference ss = Main5Activity.this.table_user.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase());\n if (adm.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill\", 1).show();\n } else if (name.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill name\", 1).show();\n } else if (Clas.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill class\", 1).show();\n } else if (add.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill address\", 1).show();\n } else if (contact.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill contact\", 1).show();\n } else if (roll.length() == 0) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"fill the roll no\", 1).show();\n } else {\n try {\n DatabaseReference child = ss.child(\"Name\");\n child.setValue(\"\" + name.getText().toString());\n DatabaseReference child2 = ss.child(\"Class\");\n child2.setValue(\"\" + Clas.getText().toString());\n DatabaseReference child3 = ss.child(\"Address\");\n child3.setValue(\"\" + add.getText().toString());\n DatabaseReference child4 = ss.child(\"Contact\");\n child4.setValue(\"\" + contact.getText().toString());\n DatabaseReference child5 = ss.child(\"Roll No\");\n child5.setValue(\"\" + Integer.parseInt(roll.getText().toString()));\n } catch (Exception e) {\n Context baseContext = Main5Activity.this.getBaseContext();\n Toast.makeText(baseContext, \"\" + e, 1).show();\n }\n }\n Main5Activity.this.table_user.addValueEventListener(new ValueEventListener() {\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.child(\"user1\").child(\"STUDENTS\").child(adm.getText().toString().toUpperCase()).getChildrenCount() == 6) {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"Edit Saved\", 1).show();\n Main5Activity.this.finish();\n } else {\n Toast.makeText(Main5Activity.this.getBaseContext(), \"Error Occured\", 1).show();\n }\n Main5Activity.this.finish();\n }\n\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }\n });\n }",
"public void login_now(View view) {\n String userMailId = email_id.getText().toString();\n String userPassword = password.getText().toString();\n\n\n if (!userMailId.equals(\"\")) {\n if (!userPassword.equals(\"\")) {\n loginUser(userMailId, userPassword);\n } else {\n Toast.makeText(this, \"Enter Your Password\", Toast.LENGTH_SHORT).show();\n }\n\n } else {\n Toast.makeText(this, \"Enter Your Email Address\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void onClick(View v) {\n \tnameEdit = (EditText)findViewById(R.id.createFamilyNameEdit);\n \tsurnameEdit = (EditText)findViewById(R.id.createFamilySurnameEdit);\n \tpositionEdit = (EditText)findViewById(R.id.createFamilyPositionEdit);\n \t\n \t//TODO change the phone number to dynamic\n \tadminDetails.put(\"phoneNumber\", \"9172174900000000000\");\n \tadminDetails.put(\"name\", nameEdit.getText().toString());\n \tadminDetails.put(\"familyName\", surnameEdit.getText().toString());\n \tadminDetails.put(\"position\", positionEdit.getText().toString());\n \tadminDetails.put(\"admin\", \"true\");\n \t\n \tjoAdminDetails = new JSONObject(adminDetails);\n \t\n \tnew MyTask().execute();\n \t\n \t//TODO no validation \t\t\t \t\n \tIntent intent = new Intent(CreateFamilyActivity.this, FamiliesCircleActivity.class);\n \t//Intent intent = new Intent(CreateFamilyActivity.this, TestActivity.class);\n \tintent.putExtra(\"familyAdmin\", new FamilyAdmin(nameEdit.getText().toString(), surnameEdit.getText().toString(), positionEdit.getText().toString()));\n \t startActivity(intent);\n }",
"@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }",
"@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n String value = dataSnapshot.getValue(String.class);\n btnAddres.setText(value);\n // Log.d(TAG, \"Value is: \" + value);\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t\taddView = (TextView) findViewById(R.id.id_submit_view);\r\n\t\taddView.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tgatewayId = gatewayView.getEditableText().toString();\r\n\t\t\t\tLog.i(TAG, \"gatewayId \" + gatewayId.trim());\r\n\t\t\t\tgatewayId = gatewayId.trim();\r\n\t\t\t\tif(gatewayId.trim().isEmpty()){\r\n\t\t\t\t\tbindHintView.setVisibility(View.VISIBLE);\r\n\t\t\t\t\tbindbarView.setVisibility(View.GONE);\r\n\t\t\t\t\tbindHintView.setText(R.string.bind_gateway_none);\r\n\t\t\t\t\tbindHintView.setTextColor(getResources().getColor((R.color.red)));\r\n\t\t\t\t}else {\r\n\t\t\t\t\tsetHintVisible(true);\r\n\t\t\t\t\tnew Thread(new BindRunnale()).start();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n public void onClick(View v) {\n if(edTxtNoControl.getText().toString().equals(\"\") || edTxtNombre.getText().toString().equals(\"\") || edTxtApellido.getText().toString().equals(\"\")\n ||edTxtPassword.getText().toString().equals(\"\")){\n //Agregamos una notificación Toast para inficar que faltan campos por llenar\n Toast.makeText(getApplicationContext(), \"Faltan campos por llenar\", Toast.LENGTH_SHORT).show();\n }else{\n /*Mediante la instancia creada anteriormente llamamos al metodo \"agregarUsuario()\"\n y dentro de este colocamos los objetos de tipo EditText que se encargan de\n obtener los datos que se coloquen en el formulario de registro.*/\n objDB.agregarUsuario(edTxtNoControl.getText().toString(), edTxtNombre.getText().toString(),\n edTxtApellido.getText().toString(), edTxtPassword.getText().toString());\n //Agregamos una notificación Toast para ver si los datos fueron agregados correctamente.\n Toast.makeText(getApplicationContext(), \"Se agregó correctamente\", Toast.LENGTH_SHORT).show();\n //Finalizamos la actividad\n finish();\n }\n\n //Vaciamos los EditText del formulario\n edTxtNoControl.setText(\"\");\n edTxtNombre.setText(\"\");\n edTxtApellido.setText(\"\");\n edTxtPassword.setText(\"\");\n }",
"public void call()\n\t{\n\n\t\t\n\t\t\n\t\twadds=(EditText)findViewById(R.id.wadd);\n\t\tcomadd=(EditText)findViewById(R.id.compadd);\n\t\tepah=(EditText)findViewById(R.id.epah);\n\t\tnn=(EditText)findViewById(R.id.nname);\n\t\tbir=(EditText)findViewById(R.id.birth);\n\t\taniv=(EditText)findViewById(R.id.ani);\n\t\teorgwc=(EditText)findViewById(R.id.eorgcw);\n\t\teorgoc=(EditText)findViewById(R.id.eorgco);\n\t\teorgwp=(EditText)findViewById(R.id.eorgpw);\n\t\teorgop=(EditText)findViewById(R.id.eorgpo);\n\t\tepaw=(EditText)findViewById(R.id.epaw);\n\t\tepao=(EditText)findViewById(R.id.epao);\n\t\taddmoreorg=(Button)findViewById(R.id.borg);\n\t\taddmorepa=(Button)findViewById(R.id.bpa);\n\t\trempah=(Button)findViewById(R.id.bpah);\n\t\tremorgw=(Button)findViewById(R.id.borgw);\n\t\tremorgo=(Button)findViewById(R.id.borgo);\n\t\trempaw=(Button)findViewById(R.id.bpaw);\n\t\trempao=(Button)findViewById(R.id.bpao);\n\t\tspah=(Spinner)findViewById(R.id.spah);\n\t\tsorgw=(Spinner)findViewById(R.id.sorgw);\n\t\tsorgo=(Spinner)findViewById(R.id.sorgo);\n\t\tspaw=(Spinner)findViewById(R.id.spaw);\n\t\tspao=(Spinner)findViewById(R.id.spao);\n\t\t\n\t\t\t\n\t\t//Organization spinner for work\n\t\t\n\t\tadapterorgw = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterorgw.add(\"Work\");\n\t\tadapterorgw.add(\"Home\");\n\t\tadapterorgw.add(\"Other\");\n\t\tadapterorgw.add(\"Custom\");\n\t\tsorgw.setAdapter(adapterorgw);\n\t\t\n\t\t//Organization spinner for other\n\t\t\n\t\tadapterorgo = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterorgo.add(\"Other\");\n\t\tadapterorgo.add(\"Work\");\n\t\tadapterorgo.add(\"Home\");\n\t\tadapterorgo.add(\"Custom\");\n\t\tsorgo.setAdapter(adapterorgo);\n\t\t\n\t\t//Postal address spinner for home\n\t\t\n\t\tadapterpah = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpah.add(\"Home\");\n\t\tadapterpah.add(\"Work\");\n\t\tadapterpah.add(\"Other\");\n\t\tadapterpah.add(\"Custom\");\n\t\tspah.setAdapter(adapterpah);\n\t\t\n\t\t//Postal Address spinner for work\n\t\t\n\t\tadapterpaw = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpaw.add(\"Work\");\n\t\tadapterpaw.add(\"Other\");\n\t\tadapterpaw.add(\"Custom\");\n\t\tspaw.setAdapter(adapterpaw);\n\t\t\n\t\t//Postal Address spinner for other\n\t\t\n\t\tadapterpao = new ArrayAdapter(this,android.R.layout.simple_spinner_item);\n\t\tadapterpao.add(\"Other\");\n\t\tadapterpao.add(\"Work\");\n\t\tadapterpao.add(\"Custom\");\n\t\tspao.setAdapter(adapterpao);\n\t\t\n\t\tflag2=1;\t\n\t\t//Add More fields button for org\n\t\t\n\t\taddmoreorg.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t if(flag2==1)\n\t\t\t\t{\n\t\t\t\t\teorgoc.setVisibility(0);\n\t\t\t\t eorgop.setVisibility(0);\n\t\t\t\t sorgo.setVisibility(0);\n\t\t\t\t remorgo.setVisibility(0);\n\t\t\t \n\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\t\t\n\t\t//remove org field for work\n\t\t\n\t\tremorgw.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\teorgwc.setVisibility(View.GONE);\n\t\t\t eorgwp.setVisibility(View.GONE);\n\t\t\t sorgw.setVisibility(View.GONE);\n\t\t\t remorgw.setVisibility(View.GONE);\n\t\t\t flag2=0;\n\t\t\t flag2=1;\n\t\t\t flag2=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t//remove org field for other\n\t\t\n\t\tremorgo.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\teorgoc.setVisibility(View.GONE);\n\t\t\t eorgop.setVisibility(View.GONE);\n\t\t\t sorgo.setVisibility(View.GONE);\n\t\t\t remorgo.setVisibility(View.GONE);\n\t\t\t flag2=0;\n\t\t\t flag2=1;\n\t\t\t flag2=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\tflag3=1;\t\n\t\t//Add More fields button for org\n\t\t\n\t\taddmorepa.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t if(flag3==1)\n\t\t\t\t{\n\t\t\t epaw.setVisibility(0);\n\t\t\t spaw.setVisibility(0);\n\t\t\t rempaw.setVisibility(0);\n\t\t\t \n\t\t\t flag3=2;\n\t\t\t\t}\n\t\t\t\telse if(flag3==2)\n\t\t\t\t{\n\t\t\t epao.setVisibility(0);\n\t\t\t spao.setVisibility(0);\n\t\t\t rempao.setVisibility(0);\n\t\t\t flag3=1;\n\t\t\t \n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\t//remove postal add field for home\n\t\t\n\t\trempah.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepah.setVisibility(View.GONE);\n\t\t\t spah.setVisibility(View.GONE);\n\t\t\t rempah.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t//remove postal address field for work\n\t\t\n\t\trempaw.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepaw.setVisibility(View.GONE);\n\t\t\t spaw.setVisibility(View.GONE);\n\t\t\t spaw.setVisibility(View.GONE);\n\t\t\t rempaw.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t//remove postal address field for other\n\t\t\n\t\trempao.setOnClickListener(new OnClickListener() \n\t\t{\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tepao.setVisibility(View.GONE);\n\t\t\t spao.setVisibility(View.GONE);\n\t\t\t rempao.setVisibility(View.GONE);\n\t\t\t flag3=0;\n\t\t\t flag3=1;\n\t\t\t flag3=2;\n\t\t\t \t\t\t \t\t\t \t\t\t\t\n\t\t\t}\n\t\t});\t\n\t\t\n\t\t\n\t\t\n\t\tsorgw.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog5 = new Dialog(AddContact.this);\n\n\t\t dialog5.setContentView(R.layout.dialog);\n\t\t dialog5.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog5.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog5.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog5.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t {\n\t\t \t addNewSpinnerItem5();\n\t dialog5.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog5.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog5.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\t\n\t\tsorgo.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog6 = new Dialog(AddContact.this);\n\n\t\t dialog6.setContentView(R.layout.dialog);\n\t\t dialog6.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog6.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog6.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog6.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem6();\n\t dialog6.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog6.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog6.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\tspah.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog4 = new Dialog(AddContact.this);\n\n\t\t dialog4.setContentView(R.layout.dialog);\n\t\t dialog4.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog4.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog4.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog4.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem4();\n\t dialog4.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog4.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog4.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\tspaw.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog7 = new Dialog(AddContact.this);\n\n\t\t dialog7.setContentView(R.layout.dialog);\n\t\t dialog7.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog7.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog7.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog7.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem7();\n\t dialog7.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog7.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog7.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\tspao.setOnItemSelectedListener(\n\t\t\t\tnew AdapterView.OnItemSelectedListener() {\n\t\t\t\t\tpublic void onItemSelected(AdapterView<?> a,View view,int position,long id)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(position==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t final Dialog dialog8 = new Dialog(AddContact.this);\n\n\t\t dialog8.setContentView(R.layout.dialog);\n\t\t dialog8.setTitle(\"Custom Label Name\");\n\n\n\t\t dialog8.setCancelable(true);\n\t\t //set up button\n\t\t Button button = (Button) dialog8.findViewById(R.id.ok);\n\t\t ecust=(EditText)dialog8.findViewById(R.id.ecustom);\n\n\t\t button.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) \n\t\t {\n\t\t \t addNewSpinnerItem8();\n\t dialog8.dismiss();\n\t \n\t }\n\n\t\t });\n\t\t Button button1 = (Button) dialog8.findViewById(R.id.cancel);\n\n\t\t button1.setOnClickListener(new OnClickListener() {\n\n\t\t public void onClick(View v) {\n\n\t\t finish();\n\n\t\t }\n\n\t\t });\n\n\t\t //now that the dialog is set up, it's time to show it \n\n\t\t dialog8.show();\n\n\t\t }\n\n\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t });\n\t\t\n data= new DataBaseHelper(this);\n\t\tCursor c1=data.getDataLastName(name);\n\t\tSystem.out.println(\"MYyyyyyyyyyyyyy\"+name);\n\t\twhile(c1.moveToNext())\n\t\t{\n\t\t\tid=c1.getInt(0);\n\t\t\tlname=c1.getString(1);\n\t\t\tSystem.out.println(\"IDDDDDD.....\"+id);\n\t\t\tSystem.out.println(\"LNAme.....\"+lname);\n\t\t}\n\t\tc1.close();\n\t\tbir.setOnTouchListener(new OnTouchListener()\n\t {\n\t \n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1)\n\t\t\t{\n\n\t showDialog(DATE_DIALOG_ID);\n\t\t\t\treturn false;\n\t\t\t}\n\t });\n\n\t\taniv.setOnTouchListener(new OnTouchListener()\n\t {\n\t \n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1)\n\t\t\t{\n\n\t showDialog(DATE_DIALOG_ID);\n\t\t\t\treturn false;\n\t\t\t}\n\t });\n\n\t\t// get the current date and time\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\tupdateDisplay();\n\t\t\n\t}",
"@Override\n public void onClick(View v) {\n switch (v.getId()){\n case R.id.login:\n //redirect or call the intent to the reigster\n Intent satya = new Intent(Signup.this, Login.class);\n startActivity(satya);\n break;\n case R.id.reg:\n //get data the from edit text and converting the user data into string\n id = userId.getText().toString();\n password = userPassword.getText().toString();\n email = e_mail.getText().toString();\n name = Fullname.getText().toString();\n //calling asyc task for connect to server\n new AsyncLogin().execute(id,password,name,email);\n break;\n }\n }",
"public void onClick(View arg0) {\n\t\t\t\tvalidation();\n\t\t\t\tnew MyAsyncTask().execute(tvPollutionRiversandStream.getText().toString(),tvAirPollution.getText().toString(),tvNoisePollution.getText().toString(),tvAbsenseofWasteDisposalSites.getText().toString(),\n\t\t\t\t\t\t\t\t\t\t tvLittering.getText().toString(),tvFeelingofResponsibility.getText().toString());\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString number = editview.getText().toString();\r\n\t\t\t\t\r\n\t\t\t\tSQLiteDatabase db = openOrCreateDatabase(\"doctor\", MODE_PRIVATE, null);\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences setting = getSharedPreferences(\"Doctor\", 0);\r\n\t\t\t\t\r\n\t\t\t\tString value = setting.getString(\"given\", \"no\");\r\n\r\n\t\t\t\tif(value.endsWith(\"no\")){\r\n\t\t\t\t\tdb.execSQL(\"INSERT INTO numbertable VALUES('\"+number+\"');\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdb.execSQL(\"UPDATE numbertable SET doctornumber='\"+number+\"';\");\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tdb.close();\r\n\t\t\t\t\r\n//\t\t\t\tSharedPreferences setting = getSharedPreferences(\"Doctor\", 0);\r\n\t\t\t\t\r\n\t\t\t\tSharedPreferences.Editor editor = setting.edit();\r\n\t\t\t\t\r\n\t\t\t\teditor.putString(\"given\", \"yes\");\r\n\t\t\t\teditor.commit();\r\n\t\t\t\t\r\n\t\t\t\tIntent intent = new Intent(SugarDoctor.this,Sugar.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t\t\r\n\t\t\t}",
"private void save() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null) ) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.insert(nama_pasien2,\n nama_dokter2,\n tgl_pengobatanField.getText().toString().trim(),\n waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),\n hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }"
] | [
"0.6619907",
"0.65319234",
"0.634664",
"0.6289072",
"0.62806666",
"0.62806064",
"0.62645656",
"0.6241814",
"0.622753",
"0.6199893",
"0.6188662",
"0.6183202",
"0.6159144",
"0.6148034",
"0.61346173",
"0.61321807",
"0.61085427",
"0.60916394",
"0.60707223",
"0.60596347",
"0.60543436",
"0.6042756",
"0.6042174",
"0.6029946",
"0.602634",
"0.602585",
"0.60177505",
"0.601212",
"0.6005774",
"0.6001182",
"0.5996238",
"0.5984718",
"0.5975329",
"0.5967983",
"0.5959697",
"0.59577525",
"0.5956798",
"0.59531367",
"0.59497666",
"0.59497213",
"0.59485257",
"0.5934378",
"0.5928469",
"0.5920311",
"0.5916359",
"0.59135765",
"0.59082633",
"0.5895601",
"0.58883494",
"0.5887523",
"0.58847773",
"0.5883157",
"0.5876338",
"0.5874611",
"0.5871653",
"0.5860101",
"0.5858544",
"0.5858544",
"0.58570117",
"0.5851871",
"0.5850601",
"0.5850395",
"0.58501554",
"0.5842726",
"0.583444",
"0.58298075",
"0.58221376",
"0.58159137",
"0.5812541",
"0.58075535",
"0.58070797",
"0.580671",
"0.580395",
"0.5802743",
"0.57913643",
"0.5788096",
"0.578612",
"0.5778107",
"0.57775074",
"0.57769346",
"0.5768813",
"0.5765783",
"0.5761963",
"0.57501864",
"0.57468915",
"0.57455826",
"0.5744672",
"0.5743042",
"0.57429266",
"0.5742555",
"0.5742363",
"0.5739934",
"0.5731747",
"0.5729664",
"0.57264924",
"0.57207406",
"0.5717251",
"0.57064843",
"0.57047385",
"0.5704225",
"0.570323"
] | 0.0 | -1 |
Method created by SpringML to perform additional check for Exposure risk. | private boolean riskComputation(ExposureSummary exposureSummary){
double duration_close = exposureSummary.getAttenuationDurationsInMinutes()[0];
double duration_medium = exposureSummary.getAttenuationDurationsInMinutes()[1];
double risk_duration = duration_close + (duration_medium * 0.5);
if (risk_duration * 60 >= BuildConfig.ATTENUATION_THRESHOLD){
new ExposureNotificationSharedPreferences(getApplicationContext()).setPossibleExposureFound(true);
return true;
}
new ExposureNotificationSharedPreferences(getApplicationContext()).setPossibleExposureFound(false);
if ((risk_duration > 0) && (risk_duration < BuildConfig.ATTENUATION_THRESHOLD)) {
CustomUtility.customLogger("A_CW_91009_" + (int)risk_duration);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void onChange_InfectionRisk() {\n onChange_InfectionRisk_xjal( InfectionRisk );\n }",
"boolean hasHasInjurySeverity();",
"@Test\n public void testAverageRisk() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n // Risk before anonymization\n double risk = provider.getData().getHandle().getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 1.0d);\n \n // Risk after anonymization\n risk = getAnonymizedData(provider.getData()).getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 0.42857142857142855);\n }",
"@Test\r\n void shouldReturnOneRiskPoint() {\r\n InsuranceRiskService insuranceRiskService = new DisabilityInsuranceRiskService();\r\n InsuranceRiskRequest insuranceRiskRequest = new InsuranceRiskRequest();\r\n insuranceRiskRequest.setAge(25);\r\n HouseRequest houseRequest = new HouseRequest();\r\n houseRequest.setOwnershipStatus(\"mortgaged\");\r\n insuranceRiskRequest.setHouse(houseRequest);\r\n insuranceRiskRequest.setIncome(BigDecimal.valueOf(999999));\r\n insuranceRiskRequest.setDependents(2);\r\n insuranceRiskRequest.setMaritalStatus(\"married\");\r\n Assertions.assertEquals(1, insuranceRiskService.calculate(3, insuranceRiskRequest));\r\n }",
"boolean hasCustomInterest();",
"public boolean needEnableExposureAdjustment() {\n if (CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_ENABLE_COMPENSATION_OTHER_THAN_AUTO, true)) {\n return true;\n }\n return false;\n }",
"public boolean needEnableExposureAdjustment() {\n boolean z = true;\n if (CustomUtil.getInstance().getBoolean(CustomFields.DEF_CAMERA_ENABLE_COMPENSATION_OTHER_THAN_AUTO, true)) {\n return true;\n }\n if (this.mSceneMode != SceneMode.AUTO || Keys.isLowlightOn(this.mAppController.getSettingsManager())) {\n z = false;\n }\n return z;\n }",
"boolean hasHas_certainty();",
"private boolean checkInsuranceIsPresent(final ExtraFacility selectedPackageExtraFacility,\r\n final InsuranceViewData insuranceData)\r\n {\r\n return ((InsuranceExtraFacility) selectedPackageExtraFacility).getInsuranceExcessWaiver() != null\r\n && insuranceData.getExcessWaiverViewData() != null;\r\n }",
"public int riskAssessement(ArrayList<Access> list) {\n\t\tint likelihood,impact;\n\t\tif(list!=null&&!list.isEmpty()){\n\t\t\tlikelihood= likelihood(list);\n\t\t\timpact=impact(list);\n\t\t\treturn impact*likelihood;\n\t\t}\n\t\telse\n\t\t\treturn 0; \n\t}",
"@When(\"^I check whether to show a notification for license$\")\n public void i_check_whether_to_show_a_notification_for_license() throws Throwable {\n result = driverUser.showExpiryNotification();\n }",
"protected void doAdditionalChecking(Contributor contr) {\n }",
"@Override\n public boolean isRuntimeCheck(Exp e) {\n return isInstrumentation(e);\n }",
"@Test\n public void testHighestIndividualRisk() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n // Risk before anonymization\n assertTrue(provider.getData().getHandle().getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getHighestRisk() == 1.0d);\n \n // Risk after anonymization\n assertTrue(getAnonymizedData(provider.getData()).getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getHighestRisk() == 0.5d);\n }",
"@LargeTest\n public void testExposure(){\n TestAction ta = new TestAction(TestName.EXPOSURE);\n runTest(ta, TestName.EXPOSURE.name());\n }",
"QualityRisk createQualityRisk();",
"@SuppressWarnings(BookFlowConstants.BOXING)\r\n @Override\r\n public void addInsurance(final InsuranceDetailsCriteria insuranceDetailsCriteria,\r\n final ExtraOptionsViewData extraOptionsViewData)\r\n {\r\n final BasePackage packageModel = getPackageModel();\r\n \r\n final ExtraFacility selectedPackageExtraFacility =\r\n fetchSelectedPackageExtraFacility(insuranceDetailsCriteria.getInsuranceCode(),\r\n packageModel.getId());\r\n \r\n final List<ExtraFacility> selectedExtras = new ArrayList<ExtraFacility>();\r\n \r\n selectedExtras.add(selectedPackageExtraFacility);\r\n \r\n // check if the insurance is a family insuranc based on the insurance\r\n // criteria.\r\n if (MapUtils.isEmpty(insuranceDetailsCriteria.getSelected()))\r\n {\r\n selectedExtras.get(0).setType(ExtraFacilityType.PACKAGE);\r\n updateExtraFacilityService.updateExtraFacilityLite(PassengerUtils.getApplicablePassengers(\r\n packageModel.getPassengers(), EnumSet.of(PersonType.ADULT, PersonType.TEEN,\r\n PersonType.SENIOR, PersonType.SUPERSENIOR, PersonType.CHILD)), Arrays\r\n .asList(selectedPackageExtraFacility), packageModel);\r\n }\r\n // if not it is assumed to be individual insurance\r\n else\r\n {\r\n // set as individual insurance.\r\n // TODO:should be populated during response population.\r\n selectedExtras.get(0).setType(ExtraFacilityType.PAX);\r\n \r\n final List<String> selectedPassengersId = new ArrayList<String>();\r\n for (final Map.Entry<String, String> data : insuranceDetailsCriteria.getSelected()\r\n .entrySet())\r\n {\r\n updateExtraFacilityService.updatePassengerPersonType(data.getKey(), data.getValue(),\r\n packageModel.getPassengers());\r\n selectedPassengersId.add(data.getKey());\r\n }\r\n final Map<List<ExtraFacility>, List<String>> exFacSelectionComposition =\r\n new HashMap<List<ExtraFacility>, List<String>>();\r\n exFacSelectionComposition.put(selectedExtras, selectedPassengersId);\r\n updateExtraFacilityService.updateExtraLite(packageModel, exFacSelectionComposition);\r\n }\r\n updateExtraFacilityService.markExcessWaiverAsSelected(\r\n selectedPackageExtraFacility.getExtraFacilityCode(),\r\n insuranceDetailsCriteria.isExcessWaiver(), packageModel);\r\n updateExtraFacilityPriceModels(packageModel, insuranceDetailsCriteria.getSelected().values());\r\n final InsuranceContainerViewData insuranceContainerViewData = getInsuranceContainerViewData();\r\n updateInsuranceContainerViewData(packageModel, insuranceContainerViewData);\r\n packageExtraFacilityFacade.populateExtraOptionsAllView(packageModel, extraOptionsViewData);\r\n extraOptionsViewData.setInsuranceContainerViewData(insuranceContainerViewData);\r\n resetPassengerDOB(packageModel);\r\n }",
"@Override\n public boolean hasRentabilityValues() {\n return (pensionParameters.getRentRisk() != null &&\n pensionParameters.getRentCons() != null &&\n pensionParameters.getRentMod() != null);\n }",
"private boolean applyTimeBasedApplicables(Demand demand, RequestInfoWrapper requestInfoWrapper,\n\t\t\t\t\t\t\t\t\t\t\t Map<String, JSONArray> timeBasedExemptionMasterMap, List<TaxPeriod> taxPeriods) {\n\n\t\tTaxPeriod taxPeriod = taxPeriods.stream().filter(t -> demand.getTaxPeriodFrom().compareTo(t.getFromDate()) >= 0\n\t\t\t\t&& demand.getTaxPeriodTo().compareTo(t.getToDate()) <= 0).findAny().orElse(null);\n\t\tif (taxPeriod == null) {\n\t\t\tlog.info(\"Demand Expired!!\");\n\t\t\treturn false;\n\t\t}\n\n\t\tboolean isCurrentDemand = false;\n\t\tif (!(taxPeriod.getFromDate() <= System.currentTimeMillis()\n\t\t\t\t&& taxPeriod.getToDate() >= System.currentTimeMillis()))\n\t\t\tisCurrentDemand = true;\n\t\t\n\t\tif(demand.getBillExpiryTime() < System.currentTimeMillis()) {\n\t\tBigDecimal sewerageChargeApplicable = BigDecimal.ZERO;\n\t\tBigDecimal oldPenalty = BigDecimal.ZERO;\n\t\tBigDecimal oldInterest = BigDecimal.ZERO;\n\t\t\n\n\t\tfor (DemandDetail detail : demand.getDemandDetails()) {\n\t\t\tif (SWCalculationConstant.TAX_APPLICABLE.contains(detail.getTaxHeadMasterCode())) {\n\t\t\t\tsewerageChargeApplicable = sewerageChargeApplicable.add(detail.getTaxAmount());\n\t\t\t}\n\t\t\tif (detail.getTaxHeadMasterCode().equalsIgnoreCase(SWCalculationConstant.SW_TIME_PENALTY)) {\n\t\t\t\toldPenalty = oldPenalty.add(detail.getTaxAmount());\n\t\t\t}\n\t\t\tif (detail.getTaxHeadMasterCode().equalsIgnoreCase(SWCalculationConstant.SW_TIME_INTEREST)) {\n\t\t\t\toldInterest = oldInterest.add(detail.getTaxAmount());\n\t\t\t}\n\t\t}\n\t\t\n\t\tboolean isPenaltyUpdated = false;\n\t\tboolean isInterestUpdated = false;\n\t\t\n\t\tMap<String, BigDecimal> interestPenaltyEstimates = payService.applyPenaltyRebateAndInterest(\n\t\t\t\tsewerageChargeApplicable, taxPeriod.getFinancialYear(), timeBasedExemptionMasterMap, demand.getBillExpiryTime());\n\t\tif (null == interestPenaltyEstimates)\n\t\t\treturn isCurrentDemand;\n\n\t\tBigDecimal penalty = interestPenaltyEstimates.get(SWCalculationConstant.SW_TIME_PENALTY);\n\t\tBigDecimal interest = interestPenaltyEstimates.get(SWCalculationConstant.SW_TIME_INTEREST);\n\t\tif(penalty == null)\n\t\t\tpenalty = BigDecimal.ZERO;\n\t\tif(interest == null)\n\t\t\tinterest = BigDecimal.ZERO;\n\n\t\tDemandDetailAndCollection latestPenaltyDemandDetail, latestInterestDemandDetail;\n\n\t\tif (interest.compareTo(BigDecimal.ZERO) != 0) {\n\t\t\tlatestInterestDemandDetail = utils.getLatestDemandDetailByTaxHead(SWCalculationConstant.SW_TIME_INTEREST,\n\t\t\t\t\tdemand.getDemandDetails());\n\t\t\tif (latestInterestDemandDetail != null) {\n\t\t\t\tupdateTaxAmount(interest, latestInterestDemandDetail);\n\t\t\t\tisInterestUpdated = true;\n\t\t\t}\n\t\t}\n\n\t\tif (penalty.compareTo(BigDecimal.ZERO) != 0) {\n\t\t\tlatestPenaltyDemandDetail = utils.getLatestDemandDetailByTaxHead(SWCalculationConstant.SW_TIME_PENALTY,\n\t\t\t\t\tdemand.getDemandDetails());\n\t\t\tif (latestPenaltyDemandDetail != null) {\n\t\t\t\tupdateTaxAmount(penalty, latestPenaltyDemandDetail);\n\t\t\t\tisPenaltyUpdated = true;\n\t\t\t}\n\t\t}\n\n\t\tif (!isPenaltyUpdated && penalty.compareTo(BigDecimal.ZERO) > 0)\n\t\t\tdemand.getDemandDetails().add(\n\t\t\t\t\tDemandDetail.builder().taxAmount(penalty.setScale(2, 2)).taxHeadMasterCode(SWCalculationConstant.SW_TIME_PENALTY)\n\t\t\t\t\t\t\t.demandId(demand.getId()).tenantId(demand.getTenantId()).build());\n\t\tif (!isInterestUpdated && interest.compareTo(BigDecimal.ZERO) > 0)\n\t\t\tdemand.getDemandDetails().add(\n\t\t\t\t\tDemandDetail.builder().taxAmount(interest.setScale(2, 2)).taxHeadMasterCode(SWCalculationConstant.SW_TIME_INTEREST)\n\t\t\t\t\t\t\t.demandId(demand.getId()).tenantId(demand.getTenantId()).build());\n\t\t}\n\n\t\treturn isCurrentDemand;\n\t}",
"private void givenExchangeRateExistsForABaseAndDate() {\n }",
"public abstract boolean isRestricted();",
"boolean hasExternalAttributionCredit();",
"@Override\n\tpublic boolean identifiesOffense() {\n\t\treturn false;\n\t}",
"@PreAuthorize(\"checkPermission('Legal Entity', 'Manage Legal Entities', {'view','create'})\")\n @GetMapping(\n produces = {\"application/json\"})\n @ResponseStatus(HttpStatus.OK)\n public void sampleEndpointThatRequiresUserToHavePermissionsToViewCreateLegalEnitites() {\n LOGGER.info(\"Preauthorize annotation have checked that user has permissions to view/create legal entities\");\n // continue custom implementation ...\n }",
"CheckRestrictionsResultContentEvaluationResult contentEvaluationResult();",
"@Override\r\n\t\t\tpublic void onAdExposure() {\n\t\t\t\t\r\n\t\t\t}",
"protected void onChange_DeathRisk() {\n onChange_DeathRisk_xjal( DeathRisk );\n }",
"private void checkForAccident(double time) {\n\n\t\tdouble chance = .005D;\n\n\t\t// Materials science skill modification.\n\t\tint skill = getEffectiveSkillLevel();\n\t\tif (skill <= 3) {\n\t\t\tchance *= (4 - skill);\n\t\t} else {\n\t\t\tchance /= (skill - 2);\n\t\t}\n\n\t\t// Modify based on the workshop building's wear condition.\n\t\tchance *= workshop.getBuilding().getMalfunctionManager().getWearConditionAccidentModifier();\n\n\t\tif (RandomUtil.lessThanRandPercent(chance * time)) {\n\n\t\t\tif (person != null) {\n//\t\t\t\tlogger.info(\"[\" + person.getLocationTag().getShortLocationName() + \"] \" + person.getName() + \" has accident while manufacturing good.\");\n\t\t\t\tworkshop.getBuilding().getMalfunctionManager().createASeriesOfMalfunctions(person);\n\t\t\t} else if (robot != null) {\n//\t\t\t\tlogger.info(\"[\" + robot.getLocationTag().getShortLocationName() + \"] \" + robot.getName() + \" has accident while manufacturing godd.\");\n\t\t\t\tworkshop.getBuilding().getMalfunctionManager().createASeriesOfMalfunctions(robot);\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void testAverageRisk2() throws IOException {\n Data data = getDataObject(\"./data/adult.csv\");\n // Risk before anonymization\n double risk = data.getHandle().getRiskEstimator(ARXPopulationModel.create(data.getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 0.6465751607983555d);\n \n // Risk after anonymization\n risk = getAnonymizedData(data).getRiskEstimator(ARXPopulationModel.create(data.getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 0.001922949406538028);\n }",
"@java.lang.Override\n public boolean hasPrimaryImpact() {\n return primaryImpact_ != null;\n }",
"@Test\r\n void shouldReturnOneZeroPoints() {\r\n InsuranceRiskService insuranceRiskService = new DisabilityInsuranceRiskService();\r\n InsuranceRiskRequest insuranceRiskRequest = new InsuranceRiskRequest();\r\n insuranceRiskRequest.setAge(35);\r\n insuranceRiskRequest.setHouse(null);\r\n insuranceRiskRequest.setIncome(BigDecimal.valueOf(999999));\r\n insuranceRiskRequest.setDependents(2);\r\n insuranceRiskRequest.setMaritalStatus(\"single\");\r\n Assertions.assertEquals(2, insuranceRiskService.calculate(3, insuranceRiskRequest));\r\n }",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"static void primitiveBoolean() {\n\n double coveragerByInsurance = 0.8;\n double billAmount = 1000.0;\n double amountPaidByInsurance = 0.0;\n double amountPaidByPatient = billAmount;\n if (isInsured) {\n amountPaidByInsurance = billAmount * coveragerByInsurance;\n amountPaidByPatient = billAmount - amountPaidByInsurance;\n }\n System.out.println(\"AmountPaidByInsurance=\" + amountPaidByInsurance);\n System.out.println(\"AmountPaidBypatient=\" + amountPaidByPatient);\n }",
"private int getExposures(Connection connection, String campaignName) {\r\n\r\n ExposureTable table = new ExposureTable(connection);\r\n int responses = table.getUserExposure(userId, campaignName, 150); // Look 150 days back for exposures\r\n return responses;\r\n\r\n }",
"private boolean requiresRiskManagementReviewRouting() {\n // Right now this works just like International Travel Reviewer, but may change for next version\n if (ObjectUtils.isNotNull(this.getTripTypeCode()) && getParameterService().getParameterValuesAsString(TemParameterConstants.TEM_DOCUMENT.class, TravelParameters.INTERNATIONAL_TRIP_TYPES).contains(this.getTripTypeCode())) {\n return true;\n }\n if (!ObjectUtils.isNull(getTraveler()) && getTraveler().isLiabilityInsurance()) {\n return true;\n }\n return false;\n }",
"@Override\r\n\tpublic double calculatePremium(ApplicationInsurance applicationInsurance) {\n\t\t\r\n\t\treturn this.iApplicationInsuranceDao.calculatePremium(applicationInsurance);\r\n\t\r\n\t}",
"@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}",
"@Override\n public double computeProfitUsingRisk() {\n return (getVehiclePerformance() / getVehiclePrice()) * evaluateRisk();\n }",
"double getReliability();",
"void addHas_certainty(Object newHas_certainty);",
"@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(22)\n\tint riskAnalysisType();",
"public boolean processRequirementSummary() throws NbaBaseException {\n\t\tboolean success = false;\n\t\tNbaVpmsAdaptor vpmsProxy = null; //SPR3362\n\t\ttry {\n\t\t\tNbaOinkDataAccess oinkData = new NbaOinkDataAccess(txLifeReqResult); //ACN009\n\t\t\toinkData.setAcdbSource(new NbaAcdb(), nbaTxLife);\n\t\t\toinkData.setLobSource(work.getNbaLob());\n\t\t\tif(getLogger().isDebugEnabled()) { //SPR3290\n\t\t\t getLogger().logDebug(\"########### Testing Requirment Summary ###########\");\n\t\t\t getLogger().logDebug(\"########### PartyId: \" + partyID);\n\t\t\t}//SPR3290\n\t\t\tvpmsProxy = new NbaVpmsAdaptor(oinkData, NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR3362\n\t\t\tvpmsProxy.setVpmsEntryPoint(NbaVpmsAdaptor.EP_GET_CALCXMLOBJECTS);\n\t\t\tMap deOink = new HashMap();\n\t\t\t//\t\t\t######## DEOINK\n\t\t\tdeOink.put(NbaVpmsConstants.A_PROCESS_ID, NbaUtils.getBusinessProcessId(getUser())); //SPR2639\n\t\t\tdeOinkContractFieldsForRequirement(deOink);\n\t\t\tdeOinkXMLResultFields(deOink);\n deOinkSubstanceUsage(oinkData, deOink, partyID); //AXAL3.7.07\n\t\t\tdeOinkLabTestResults(deOink);\n\t\t\tObject[] args = getKeys();\n\t\t\tNbaOinkRequest oinkRequest = new NbaOinkRequest();\n\t\t\toinkRequest.setRequirementIdFilter(reqId);\n\t\t\toinkRequest.setArgs(args);\n\t\t\tvpmsProxy.setANbaOinkRequest(oinkRequest);\n\t\t\tvpmsProxy.setSkipAttributesMap(deOink);\n\t\t\tVpmsComputeResult vcr = vpmsProxy.getResults();\n\t\t\tNbaVpmsResultsData vpmsResultsData = new NbaVpmsResultsData(vcr);\n\t\t\tArrayList results = vpmsResultsData.getResultsData();\n\t\t\tresults = vpmsResultsData.getResultsData();\n\t\t\t//Resulting string will be the zeroth element.\n\t\t\tif (results == null) {\n\t\t\t\t//SPR3362 code deleted\n\t\t\t\tthrow new NbaVpmsException(NbaVpmsException.VPMS_NO_RESULTS + NbaVpmsAdaptor.ACREQUIREMENTSUMMARY); //SPR2652\n\t\t\t} //SPR2652\n\t\t\tvpmsResult = (String) results.get(0);\n\t\t\tNbaVpmsModelResult vpmsOutput = new NbaVpmsModelResult(vpmsResult);\n\t\t\tVpmsModelResult vpmModelResult = vpmsOutput.getVpmsModelResult();\n\t\t\tupdateDefaultValues(vpmModelResult.getDefaultValues());\n\t\t\tupdateSummaryValues(vpmModelResult.getSummaryValues());\n\t\t\tsuccess = true;\n\t\t\t// SPR2652 Code Deleted\n\t\t\t//SPR3362 code deleted\n\t\t} catch (RemoteException re) {\n\t\t\tthrow new NbaBaseException(\"Remote Exception occured in processRequirementSummary\", re);\n\t\t// SPR2652 Code Deleted\n\t\t//begin SPR3362\n\t\t} finally {\n\t\t if(vpmsProxy != null){\n\t\t try {\n vpmsProxy.remove();\n } catch (RemoteException e) {\n getLogger().logError(NbaBaseException.VPMS_REMOVAL_FAILED);\n }\n\t\t }\n\t\t//end SPR3362\n\t\t}\n\t\treturn success;\n\t}",
"boolean hasExternalAttributionModel();",
"@Then(\"Assert the success of Access & exfiltrate data within the victim's security zone\")\npublic void assaccessexfiltratedatawithinthevictimssecurityzone(){\n}",
"RiskReductionthroughFunctionalityRestrictionFactory getRiskReductionthroughFunctionalityRestrictionFactory();",
"boolean hasResidentYn();",
"public void modifyQualifyCheck(Installation install, User user) throws Exception {\r\n // Start UOC\r\n if (install.getAffirmFlag() == 1) {\r\n if (!user.hasPermission(\"PR005_32\")) {\r\n errors.add(\"BSE01715\");\r\n }\r\n }\r\n // End UOC\r\n }",
"protected void checkParams(Signature signature, CriteriaSet trustBasisCriteria) throws SecurityException {\n\n if (signature == null) {\n throw new SecurityException(\"Signature was null\");\n }\n if (trustBasisCriteria == null) {\n throw new SecurityException(\"Trust basis criteria set was null\");\n }\n if (trustBasisCriteria.isEmpty()) {\n throw new SecurityException(\"Trust basis criteria set was empty\");\n }\n }",
"@Override\r\n\tpublic Double getPropensity_trust_score() {\n\t\treturn super.getPropensity_trust_score();\r\n\t}",
"public void checkForExceptions() throws Exception {\n\t\tif (mMinimumPurity <= 0.5 || mMinimumPurity > 1.0)\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Rule Generator: Minimum Purity must be greater than 0.5 and lest then or equal to 1.0.\");\n\t}",
"@SystemAPI\n\tboolean needsApproval();",
"Boolean getAccruedInterest();",
"@Override\n public void checkEffect()\n {\n age(1);\n\n if (!suspended)\n suspend();\n }",
"@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}",
"@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}",
"@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}",
"@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}",
"boolean hasBonusExp();",
"boolean hasBonusExp();",
"boolean hasBonusExp();",
"public double riskAversion()\n\t{\n\t\treturn _dblRiskAversion;\n\t}",
"@Test\n public void swallowExceptionsAspect() throws Exception {\n ProductDemand demand = swallowing(parseDoc().getDemands().get(0));\n\n // probably will throw IllegalStateException\n demand.fancyBusinessLogic();\n\n List<Throwable> exceptions = exceptions(demand);\n Assertions.assertThat(exceptions).isNotEmpty();\n }",
"org.hl7.fhir.ObservationReliability addNewReliability();",
"@Override\r\n\tpublic void personalLoanInterest() {\n\t\t\r\n\t}",
"private void evaluateProbabilities()\n\t{\n\t}",
"@Override\r\n\tArrayList<String> checkData() {\n\t\tArrayList<String> cf = new ArrayList<String>();\r\n\t\tboolean errorSuperficie = false;\r\n\t\t\r\n\t\t\r\n\t\tfor (Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\r\n\r\n\t\t\tif(entry.getKey().indexOf(\"PR\") != -1){\r\n\t\t\t\t\r\n\t\t\t\tif(!isPositive0Included(request.getParameter(entry.getKey()))){\r\n\t\t\t\t\terrorSuperficie = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(errorSuperficie){\r\n\t\t\tcf.add(\"Las superficies tienen que ser positivas.\");\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn cf;\r\n\t}",
"Collection<? extends Object> getHas_certainty();",
"public abstract Result check(WebBundleDescriptor descriptor);",
"boolean hasRemarketingAction();",
"@Override\n\tpublic boolean isApproved() {\n\t\treturn _scienceApp.isApproved();\n\t}",
"protected void checkNeedAppearences(PreflightContext ctx, PDAcroForm acroForm)\n {\n if (acroForm.getCOSObject().getBoolean(ACROFORM_DICTIONARY_KEY_NEED_APPEARANCES, false))\n {\n addValidationError(ctx, new ValidationError(ERROR_SYNTAX_DICT_INVALID,\n \"NeedAppearance is present with the value \\\"true\\\"\"));\n }\n }",
"@NotNull\n boolean isTrustedWholeLand();",
"private boolean isDisqualified(Application a) {\n\t if( Float.parseFloat(a.getStudent().getGpa()) < 3.0f) {\n\t a.setScore(Application.SCORE_DISQUALIFIED);\n\t a.setDisqualReason(\"Reported GPA too low\");\n\t return true;\n\t }\n /*\n //Eliminate students who are unable to serve all year\n\t //EDIT getServeAllYear() when appropriate field is added to application\n\t if(a.getApprenticeshipInfo().getServeAllYear().equals(\"No\")){\n a.setScore(Application.SCORE_DISQUALIFIED);\n a.setDisqualReason(\"Students must be able to serve in DLA all year\");\n return true\t\t\n }\n\t \n\t //Eliminate students who do not meet project requirements\n\t //EDIT getMeetRequirements() when field is added to application\n\t if(a.getApprenticeshipInfo().getMeetRequirements().equals(\"No\")){\n a.setScore(Application.SCORE_DISQUALIFIED);\n\t\ta.setDisqualReason(\"Students must meet project requirements\");\n\t\treturn true;\n\t }\n\t \n\t //Eliminate students in DLA in the past year\n\t //EDIT getGraduateStudent() when field is added to student application\n\t if(a.getApprenticeshipInfo().getGraduateStudent().equals(\"Yes\")){\n a.setScore(Application.SCORE_DISQUALIFIED);\n\t\ta.setDisqualReason(\"Graduate students are ineligible\");\n\t\treturn true;\n\t }\n\t \n\t //PLACEHOLDER\n\t //Eliminate MS/BS students in MS year\n\t //MS/BS students would be eliminated as graduate students above\n\t //However, if separation is required, it can be done here\n\t \n\t //PLACEHOLDER\n\t //Eliminate students not in College of Engineering\n\t //Currently, these students shouldn't be able to apply as their\n\t //majors would not show up under the student application\n\t //majors list\n\t //If this functionality is changed in the future, the following\n\t //can be used to eliminate them, modify getEngineering() when added\n\t //if(a.getStudent.getEngineering.equals(\"No\")){\n // a.setScore(Application.SCORE_DISQUALIFIED);\n\t // a.setDisqualReason(\"Students not in College of Engineering and Applied Science are ineligible\");\n\t //return true;\n\t //}\n\t \n\t //Eliminate graduate students\n\t if(a.getApprenticeshipInfo().getServed().equals(\"Yes\")){\n a.setScore(Application.SCORE_DISQUALIFIED);\n\t\ta.setDisqualReason(\"Students who served in the DLA in the past year are ineligible\");\n\t\treturn true;\n\t }\n\t \n\t */\n\t return false;\n\t}",
"protected void thoroughInspection() {}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"public RiskType getRiskType() {\n return riskType;\n }",
"public Integer getRiskWarning() {\n return riskWarning;\n }",
"private boolean isInsurancePresent(final InsuranceExtraFacility insuranceExtra)\r\n {\r\n return insuranceExtra.getInsuranceExcessWaiver() != null\r\n && BooleanUtils.isTrue(Boolean.valueOf(insuranceExtra.getInsuranceExcessWaiver()\r\n .isSelected()));\r\n }",
"public void checkPrize()\n {\n for(PrizeMulti prize : prizes.getPrizes())\n {\n if(prize.isActive())\n {\n if (((locX - prize.getX()) * (locX - prize.getX()) + (locY - prize.getY()) * (locY - prize.getY())) <= 35 * 35) {\n if (prizeOwn == null)\n {\n status.setUsePrize(true);\n prize.deActive();\n prizeOwn = prize;\n if (prize.getType().equals(\"Health\")) {\n stamina += (stamina / 10);\n }\n if (prize.getType().equals(\"Power2\")) {\n canonPower *= 2;\n }\n if (prize.getType().equals(\"Power3\")) {\n canonPower *= 3;\n }\n if (prize.getType ().equals (\"Laser\")) {\n setBulletType (\"Laser\");\n }\n\n if (prize.getType ().equals (\"Protect\")) {\n setProtection (true);\n }\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n Thread.sleep(10000);\n prizeOwn = null;\n if (prize.getType().equals(\"Power2\")) {\n canonPower /= 2;\n }\n if (prize.getType().equals(\"Power3\")) {\n canonPower /= 3;\n }\n if (prize.getType ().equals (\"Laser\")) {\n setBulletType (\"Normal\");\n }\n Thread.sleep (5000);\n if (prize.getType ().equals (\"Protect\")) {\n setProtection (false);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }).start();\n }\n }\n }\n }\n }",
"@Test\n public void creditDenied() throws Exception {\n Application app = new Application();\n app.setName(\"bill whatwhatwhat\");\n app.setCreditScore(400);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertFalse(result.isApproved());\n }",
"@Override\n protected void checkPolicyRefChain(final TopLevelPolicyElementEvaluator nonNullRefResultPolicy, final EvaluationContext evalCtx, final Optional<EvaluationContext> mdpCtx)\n {\n }",
"@Override\n\tpublic void requestLaw() {\n\t\tSystem.out.println(\"xiaoming-requestLaw\");\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ComplianceCheckResult addNewComplianceCheckResult();",
"boolean hasHasInjury();",
"org.hl7.fhir.ObservationReliability getReliability();",
"protected void getEnsures() {\n System.out.println(\"\\nEnsures: \");\n /******************************************/\n String currToken = myIterator.next();\n while(!(currToken = myIterator.next()).equals(\"ensures\"));\n myEnsures = new Expression(myIterator, mye);\n /******************************************/\n System.out.println(\"\\n\");\n }",
"public Risk addRisk(Risk risk) {\n\t\treturn riskRepository.save(risk);\n\t}",
"public boolean validateReviewRenewalFields(String fldToChk, String checkFor, ExtentTest extentedReport,\n\t\t\tboolean screenShot) throws Exception {\n\t\ttry {\n\t\t\tWebElement eleToInteract = null;\n\t\t\tboolean boolVal = false;\n\n\t\t\tWaitUtils.waitForElementPresent(driver, \"css\", cssRnwRevchkBox, 60,\n\t\t\t\t\t\"Failed to locate Automatic Review, Automatic Renewal and Block Renewal Fields\");\n\t\t\tList<WebElement> lstChckBox = driver.findElements(By.cssSelector(cssRnwRevchkBox));\n\t\t\tfor (int i = 0; i <= lstChckBox.size(); i++) {\n\t\t\t\tif (lstChckBox.get(i).getText().equalsIgnoreCase(fldToChk)) {\n\t\t\t\t\teleToInteract = lstChckBox.get(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tswitch (checkFor.toLowerCase()) {\n\n\t\t\tcase \"enabled\":\n\t\t\t\tif (WaitUtils.waitForElement(driver, eleToInteract, 2))\n\t\t\t\tLog.message(fldToChk + \" field enabled as expected\", driver,extentedReport,true);\n\t\t\t\tboolVal = true;\n\t\t\t\tbreak;\n\n\t\t\tcase \"disabled\":\n\t\t\t\tif(!eleToInteract.findElement(By.tagName(\"input\")).isEnabled());\n\t\t\t\t//if (! WaitUtils.waitForElement(driver, eleToInteract, 2))\n\t\t\t\tLog.message(fldToChk + \" field disabled as expected\", extentedReport);\n\t\t\t\tboolVal = true;\n\t\t\t\t\n\t\t\t\tbreak;\n\n\t\t\tcase \"checked\":\n\t\t\t\t//if (eleToInteract.getAttribute(\"checked\").equalsIgnoreCase(\"checked\"))\n\t\t\t\t//eleToInteract.findElement(By.tagName(\"input\")).getAttribute(\"checked\").equalsIgnoreCase(\"checked\");\n\t\t\t\tif (eleToInteract.findElement(By.tagName(\"input\")).isSelected()) {\n\t\t\t\tLog.message(fldToChk + \" field checked\", extentedReport);\n\t\t\t\tboolVal = true;}\n\t\t\t\telse {\n\t\t\t\tLog.message(fldToChk + \" field was Unchecked\", extentedReport);\n\t\t\t\tboolVal = false;}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn boolVal;\n\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Unable to validate \"+fldToChk +\" field, exception occured : \" + e);\n\t\t}\n\t}",
"public boolean isLowExposure() {\n\t\treturn lowExposure;\n\t}",
"public static WebElement img_clickToExpendCompCertSection() throws Exception{\r\n \ttry{\r\n \t\telement = driver.findElement(By.xpath(\"//*[@id='trigger_filter_comCert']/img\"));\r\n \t\tAdd_Log.info(\"User is click on '+' icon to expend the Company Certification section.\");\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tAdd_Log.error(\"'+' icon to expend the Company Certification section is NOT found on the page.\");\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }",
"@Override\n public boolean hasValenceError() {\n String valenceCheck = atom.checkBadValence();\n//\n// System.out.println(\"valenceCheckBad \" + valenceCheck);\n// System.out.println(\"calling actual checkValence \" + atom.checkValence());\n// System.out.println(\"valenceCheckBad again \" + atom.checkBadValence());\n return !valenceCheck.isEmpty();\n }",
"@Test\n public void testHighestIndividualRisk2() throws IOException {\n Data data = getDataObject(\"./data/adult.csv\");\n // Risk before anonymization\n assertTrue(data.getHandle().getRiskEstimator(ARXPopulationModel.create(data.getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getHighestRisk() == 1.0d);\n \n // Risk after anonymization\n assertTrue(getAnonymizedData(data).getRiskEstimator(ARXPopulationModel.create(data.getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getHighestRisk() == 0.5d);\n }",
"@When(\"^Test Insurance review page is diplayed$\")\n\tpublic void test_Insurance_review_page_is_diplayed() throws Throwable {\n\t\treviewPageObjects.verifyReviewPagedisplayed();\n\t}",
"private void randomRetirementAgeSpotCheck(EditPlanDirectToManaged editPlanPage, RiskTolerance riskTolerance) throws Exception {\n Reporter.log(\"Performing Spot Check by choosing random amount of years to retirement\" , true);\n int randomRetirementYears = (int) ((Constants.MAX_YEARS_TO_RETIREMENT - Constants.MIN_YEARS_TO_RETIREMENT) * Math.random());\n\n int retirementAge = (Constants.DEFAULT_USER_AGE + randomRetirementYears);\n Reporter.log(\"Using Retirement Age: \" + retirementAge, true);\n Reporter.log(\"Years to Retirement: \" + randomRetirementYears, true);\n editPlanPage.updateRetirementAge(retirementAge + \"\");\n\n InvestmentStrategyObject investmentStrategy = new InvestmentStrategyObject(riskTolerance, randomRetirementYears);\n\n softAssert.assertTrue(editPlanPage.verifyAssetAllocation(investmentStrategy));\n softAssert.assertTrue(editPlanPage.verifyInvestmentObjective(investmentStrategy.investmentObjective));\n }",
"public boolean onSecurityCheck() {\n boolean continueProcessing = super.onSecurityCheck();\n if (!continueProcessing) {\n return false;\n }\n AuthorizationManager authzMan = getAuthorizationManager();\n try {\n if (!authzMan.canManageApplication(user)) {\n setRedirect(\"authorization-denied.htm\");\n return false;\n }\n return true;\n } catch (AuthorizationSystemException ex) {\n throw new RuntimeException(ex);\n }\n }",
"public boolean whiteCheck() {\n\t\treturn false;\n\t}",
"@Test(description = \"Test to validate the EMI feature with different tenure and interest rate\", priority = 0)\n\tpublic void UserStory2() throws HeadlessException, AWTException, IOException, InterruptedException\n\t{\n\t\tLoanCalculatorPage loan_cal = new LoanCalculatorPage();\n\t\tloan_cal.validateCalHomePage();\n\t\t//testLog.log(Status.INFO, \"Loan calculator page launched\");\n\n\t\t\n\t\tint testCaseID = 3;\n\t\t\n\t\t//Enter the values in calculator and validate output\n\t\tloan_cal.ValidateDetails(loan_cal.GetEMI(testCaseID));\n\t\t\n\t}",
"public static void main(String args[]) {\n boolean hasSATscore = true;\n boolean hasHighSchoolTranscript = true;\n boolean isInternational=false;\n boolean hasTOFELscore=false;\n\n /*\n * logical_step2: Check if the applicant is eligible to apply to the university\n * logical_step_details: the applicant must have a SAT score, a high school transcript and must have TOEFL score\n * if is an international student.\n * question_1: What does the following block of code do?\n * answer 1: Check if the applicant is eligible to apply to the university\n * question_2: What is the data type of the variable isElig?\n * answer 2: isElig is a Boolean data type\n * question_3: What is the value of: !isInternational. (value assigned above)\n * answer_3: the value of !isInternational is true\n * question_4: What is the output the following block of code?\n * answer_4: the code displays the following statement \"You eligibility requirement has been evaluated to :true\"\n */\n\n /*\n * stm_comment: isElig contains result of logical operation between the variables. logical and (&&), logical or(||) and not operator is used \n * question_1: Please explain how the value of isElig evaluated.\n * answer_1: isElig contains result of logical operation between the variables\n * question_2: Please state the operators used in the code block below.\n * answer_2: logical and (&&), logical or(||) and not operator is used .\n *\n */\n\n boolean isElig = hasSATscore && hasHighSchoolTranscript && (!isInternational || (isInternational && hasTOFELscore));\n System.out.println(\" Your eligibility requirement has been evaluated to :\" +isElig );\n\n\n }",
"protected abstract boolean evaluateTrust(Credential untrustedCredential, TrustBasisType trustBasis)\n throws SecurityException;"
] | [
"0.57064724",
"0.555337",
"0.55440193",
"0.54822963",
"0.54456633",
"0.54312736",
"0.5380258",
"0.5334821",
"0.53017056",
"0.52548593",
"0.5216489",
"0.52063984",
"0.5204321",
"0.5129034",
"0.51104885",
"0.5108946",
"0.5098573",
"0.50901765",
"0.5047512",
"0.50415975",
"0.5032584",
"0.5021038",
"0.50147283",
"0.50120246",
"0.50079376",
"0.50019574",
"0.49951392",
"0.49949783",
"0.49860245",
"0.49836358",
"0.4969539",
"0.4964118",
"0.4961004",
"0.4958473",
"0.4947978",
"0.49341187",
"0.4923037",
"0.4906767",
"0.48928133",
"0.48832798",
"0.48783994",
"0.48692495",
"0.48665893",
"0.48608896",
"0.4860331",
"0.4846523",
"0.48404616",
"0.4838134",
"0.48370343",
"0.48368397",
"0.4828188",
"0.4827689",
"0.4817949",
"0.4816073",
"0.48149535",
"0.48149535",
"0.48149535",
"0.48145065",
"0.48145065",
"0.48145065",
"0.48048314",
"0.47992545",
"0.47916248",
"0.47652766",
"0.47576275",
"0.47450113",
"0.47356802",
"0.47323328",
"0.47293398",
"0.4725644",
"0.47244096",
"0.4716426",
"0.47160295",
"0.4713503",
"0.47093782",
"0.47093782",
"0.47089866",
"0.47086155",
"0.4708355",
"0.47081316",
"0.47029936",
"0.46973008",
"0.46952167",
"0.4694283",
"0.4693888",
"0.4692265",
"0.46892458",
"0.46846494",
"0.46841955",
"0.46793562",
"0.4679174",
"0.46649718",
"0.466138",
"0.46583974",
"0.4658088",
"0.46537405",
"0.46523187",
"0.4647082",
"0.4646656",
"0.46466255"
] | 0.7179794 | 0 |
Method created by SpringML to update the no. of days since last exposure. | private void setDaysSinceLastExposure(int days){
new ExposureNotificationSharedPreferences(getApplicationContext()).setDaysSinceLastExposure(days);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void incrementDate() {\n\t\ttry {\r\n\t\t\tint days = Integer.valueOf(input(\"Enter number of days: \")).intValue();\r\n\t\t\tcalculator.incrementDate(days); // variable name changes CAL to calculator\r\n\t\t\tlibrary.checkCurrentLoans(); // variable name changes LIB to library\r\n\t\t\toutput(sdf.format(cal.date())); // variable name changes SDF to sdf , CAL to cal , method changes Date() to date()\r\n\t\t\t\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\t output(\"\\nInvalid number of days\\n\");\r\n\t\t}\r\n\t}",
"public int getLengthDays() {\r\n\t\treturn diffDays(imageList.get(0).cal, getLast().cal);\r\n\t}",
"public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}",
"public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}",
"public int getNumberOfDays() {\n return numberOfDays;\n }",
"@Override\n\tpublic Long updateEndDate() {\n\t\treturn null;\n\t}",
"public int getFulfillmentTimeInDays () {\n return 0;\n }",
"private void incrementeDate() {\n dateSimulation++;\n }",
"int getNumberDays();",
"public int calcDays() {\n\t\tint days = day-1;\r\n\t\tdays += ((month-1)*30);\r\n\t\tdays += ((year -2000) * (12*30));\r\n\t\treturn days;\r\n\t}",
"public void setPresentDays(Integer presentDays)\r\n/* 53: */ {\r\n/* 54:55 */ this.presentDays = presentDays;\r\n/* 55: */ }",
"public int getLBR_CollectionReturnDays();",
"public void setDaysAdded(int value) {\n this.daysAdded = value;\n }",
"public static int getNumberOfDays() {\n\t\treturn numberOfDays;\n\t}",
"private void setDayCountDown() {\n dayCountDown = getMaxHunger();\n }",
"@Override\n\tpublic int getDaysSinceLastLogin() {\n\t\tDate now = sabre.getTimeNow();\n\t\tlong timeDiff = now.getTime() - lastLogin.getTime();\n\t\tlong diffDays = TimeUnit.DAYS.convert(timeDiff, TimeUnit.MILLISECONDS);\n\t\treturn (int)diffDays;\n\t}",
"public int getDaysAdded() {\n return daysAdded;\n }",
"public int getEDays() {\n return eDays;\n }",
"public long getDays() {\r\n \treturn days;\r\n }",
"public int getDays(){\r\n\t\treturn days;\r\n\t}",
"public BigDecimal getNO_OF_DAYS() {\r\n return NO_OF_DAYS;\r\n }",
"public void update() {\n setAge(getAge() - 1);\n }",
"@Override\n\tpublic Long updateStartDate() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void hitsUpdateDate(int hitsNo) {\n\t\tsqlSession.update(namespace +\"hitsUpdateDate\", hitsNo);\r\n\t}",
"public void dayStartNew() {\n dateOfLastEdit = currentDate;\n sumOfExpenses = 0;\n challengeDaysRunning++;\n\n expensesRefresh();\n carry = moneyLeft;\n\n currentStateSaveToSharedPref();\n expensesUpdateWaterfallChart();\n }",
"public double getPer_day(){\n\t\tdouble amount=this.num_of_commits/365;\n\t\treturn amount;\n\t}",
"public long getExposureAmount() {\n\t\treturn exposureAmount;\n\t}",
"public Integer getTotalDays()\r\n/* 68: */ {\r\n/* 69:67 */ return this.totalDays;\r\n/* 70: */ }",
"public int getDays() {\n return this.days;\n }",
"public int getCurrentDay() {\n return daysPassed;\n }",
"public int getNumDays() {\n\t\treturn numDays;\n\t}",
"long getTermDays();",
"public void calculateVacationDays(){\n }",
"public void setEDays(int days){\n \teDays = days;\n }",
"public void setTotalDays(Integer totalDays)\r\n/* 73: */ {\r\n/* 74:71 */ this.totalDays = totalDays;\r\n/* 75: */ }",
"public int getVacationDays() {\n\t\treturn super.getVacationDays()+ 3;\n\t}",
"public void setDays(int n) {\n this.days = n;\n this.total = this.days * this.price;\n }",
"public int getLBR_ProtestDays();",
"public Integer getPresentDays()\r\n/* 48: */ {\r\n/* 49:51 */ return this.presentDays;\r\n/* 50: */ }",
"public int getUDays() {\n return uDays;\n }",
"@Test\n public void reduceNumber() throws Exception {\n Date date = new Date();\n int updateCount = seckillDao.reduceNumber(1000,date);\n System.out.println(updateCount);\n }",
"@Override\n public Long getRunningTimeInDays() {\n return null;\n }",
"public void setNumberOfDays(int numberOfDays) {\n this.numberOfDays = numberOfDays;\n }",
"@DISPID(57)\r\n\t// = 0x39. The runtime will prefer the VTID if present\r\n\t@VTID(55)\r\n\tint actualRunTime_Days();",
"public int getUpDays() {\n return (int)(_uptime / 86400000);\n }",
"public void setDays(int daysIn){\r\n\t\tdays = daysIn;\r\n\t}",
"double getYesterdaysExpenditureAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getExpenditureAmount(date.getTime() - DAY_DURATION, date.getTime());\n }",
"Date getDateUpdated();",
"@Override\n public final long daysInEffect(final LocalDate comparison) {\n return ChronoUnit.DAYS.between(this.getStartDate(), comparison);\n }",
"Integer getDaysSpanned();",
"public DayCount getDayCount() {\n return dayCount;\n }",
"public void setNumDays(int days) {\n maxDays = days;\n }",
"long getExposureTimePref();",
"double getAgeDays();",
"public Integer softDeleteRetentionInDays() {\n return this.softDeleteRetentionInDays;\n }",
"public void setDays(int days) {\n this.days = days;\n }",
"public int getKeepLogDays() {\n\t\tInteger ii = (Integer) get_Value(\"KeepLogDays\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}",
"public void incrementAge() {\n if (!this.isAlive) { return; }\n if (ageInWeeks + 1 > MAXIMUM_AGE_IN_WEEKS) {\n this.isAlive = false;\n } else {\n this.ageInWeeks++;\n }\n }",
"public long getExposureCloseAmount() {\n\t\treturn exposureCloseAmount;\n\t}",
"private static int getDaysSinceNewYear() {\n\t\tGregorianCalendar now = new GregorianCalendar();\n\n\t\treturn now.get(GregorianCalendar.DAY_OF_YEAR);\n\t}",
"private void updateCurrentCalories() {\n currentCalories = 0;\n currentFats = 0;\n currentCarbs = 0;\n currentProteins = 0;\n for (Food food : foodListView.getItems()) {\n currentCalories += food.getCalories();\n currentFats += food.getFat().getAmount();\n currentCarbs += food.getCarbs().getAmount();\n currentProteins += food.getProtein().getAmount();\n }\n }",
"public int getNumberOfVisibleDays() {\n return config.numberOfVisibleDays;\n }",
"public int daysOverdue(int today);",
"public void incrementDay(){\n //Step 1\n this.currentDate.incrementDay();\n //step2\n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementDay();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementDay();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementDay();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementDay();\n //step 3\n if (this.getDate().getDay() == 1) {\n \n if (this.getSavingsAccount() != null)\n this.getSavingsAccount().incrementMonth();\n if (this.getCheckingAccount() != null)\n this.getCheckingAccount().incrementMonth();\n if (this.getMoneyMarketAccount() != null)\n this.getMoneyMarketAccount().incrementMonth();\n if (this.getCreditCardAccount() != null)\n this.getCreditCardAccount().incrementMonth();\n }\n \n }",
"@Override\n\tpublic int datecount() throws Exception {\n\t\treturn dao.datecount();\n\t}",
"private int calculateDaysLeftOnLicense(Date pNowDate, Date pExpiryDate)\n{\n \n //milliseconds since 1/1/1970, 00:00:00 GMT\n long nowTime = pNowDate.getTime(); \n long expiryTime = pExpiryDate.getTime();\n\n long daysRemaining = expiryTime - nowTime; //time left in milliseconds\n \n daysRemaining /= 1000; //convert to seconds\n daysRemaining /= 60; //convert to minutes\n daysRemaining /= 60; //convert to hours\n daysRemaining /= 24; //convert to days\n \n if (daysRemaining > Integer.MAX_VALUE) {daysRemaining = Integer.MAX_VALUE;}\n if (daysRemaining < Integer.MIN_VALUE) {daysRemaining = Integer.MIN_VALUE;}\n \n return((int)daysRemaining);\n \n}",
"public void setEffDate(Date value) {\r\n this.effDate = value;\r\n }",
"public void updateDate(){\n\t duedate_priority++;\n\t}",
"private int getDays() {\n\t\tlong arrival = arrivalDate.toEpochDay();\n\t\tlong departure = departureDate.toEpochDay();\n\t\tint days = (int) Math.abs(arrival - departure);\n\n\t\treturn days;\n\t}",
"public void addDailySteps(int steps) {\n totalSteps+=steps;day++;\n if (steps>=STEPS) activeDay++;\n }",
"@Override\r\n\tpublic int yearsTillRetirement() //calculate years until retirement\r\n\t{\n\t\tint retire = (int)Math.round((35 - (super.getYears() + (double)(usedUnpaidVacation + usedVacation* 2 + usedSickDays)/260)));\r\n\t\t\r\n\t\treturn retire;\r\n\t\t\r\n\t\t\r\n\t}",
"public void defaultUpdateCount(AcProperty e)\n {\n }",
"public int getIDays() {\n return iDays;\n }",
"public int getMaxOldProductPriceForUpdateInOurs() {\n return 24;\n }",
"private long dateDiffInNumberOfDays(LocalDate startDate, LocalDate endDate) {\n\n return ChronoUnit.DAYS.between(startDate, endDate);\n }",
"private void updateEpochNum() {\n\t\t// TODO Auto-generated method stub\n\t\tFile epCount = new File(VisualizerMain.experimentBaseLocation+\"/\"+VisualizerMain.selectedRun);\n\t\tFile[] list = epCount.listFiles();\n\t\tint count = 0;\n\t\tfor (File file : list){\n\t\t\tif (file.isDirectory())\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(\"Folder Count: \" + count);\n\t\tmaxEpoch = count-1;\n\t\tSpinnerNumberModel model1 = new SpinnerNumberModel(((Number)epochSelector.getValue()).intValue(), minEpoch, maxEpoch, 1); \n\t\tepochSelector.setModel(model1);\n\t}",
"public Integer getRenewalperiodbeforeexp() {\n return (Integer) getAttributeInternal(RENEWALPERIODBEFOREEXP);\n }",
"public int getNumDaysForComponent(Record record);",
"private static int getDayNumberNew(LocalDate date) {\n DayOfWeek day = date.getDayOfWeek();\n return day.getValue() % 7;\n }",
"public int getToday() {\n \treturn 0;\n }",
"public void setNoOfDays (java.lang.Integer noOfDays) {\n\t\tthis.noOfDays = noOfDays;\n\t}",
"public void setNoOfDays (java.lang.Integer noOfDays) {\n\t\tthis.noOfDays = noOfDays;\n\t}",
"public int getSubstanceExpirationDateReps() {\r\n \treturn this.getReps(16);\r\n }",
"public Date getEffDate() {\r\n return this.effDate;\r\n }",
"public int getNumberOfLastDayEvents() {\n int counter = 0;\n long currentTimeSeconds = getCurrentTimeInSeconds();\n for (int i = 0; i < records.length; i++) {\n synchronized (records[i]) {\n if (currentTimeSeconds - records[i].getLastTimeReset() < SECONDS_IN_DAY) {\n counter += records[i].getCount();\n }\n }\n }\n\n return counter;\n }",
"long getExpirations();",
"private void updateDelta() {\r\n // Convert registers to calendar\r\n Calendar c = getCalendarFromRegisters();\r\n\r\n // delta = calendar - elapsed\r\n deltaMs = c.getTimeInMillis() - platform.getMasterClock().getTotalElapsedTimePs() / MasterClock.PS_PER_MS;\r\n }",
"public void defaultUpdateCount(AcBatchFlight e)\n {\n }",
"public Integer getFailureRetentionPeriodInDays() {\n return this.failureRetentionPeriodInDays;\n }",
"public int activeDays() {return activeDay;}",
"public void updateDate(Date date);",
"public int getNumberOfDates() {\n return dateList.size();\n }",
"public void addUsedEDay(Integer date) {\n pastEDays.add(date);\n }",
"public int checkExpiryDate(LocalDate today) {\n\n final int limit = 100;\n long expirationDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), this.food.getExpiryDate().atTime(0, 0)\n ).toDays();\n long goneDate = Duration.between(\n this.food.getCreateDate().atTime(0, 0), today.atTime(0, 0)\n ).toDays();\n\n return (int) (limit * goneDate / expirationDate);\n\n }",
"public Integer getGestationaldays() {\n return gestationaldays;\n }",
"double getTodaysExpenditureAmount() {\n Long time = new Date().getTime();\n Date date = new Date(time - time % (DAY_DURATION));\n return getExpenditureAmount(date.getTime(), date.getTime() + (DAY_DURATION));\n }",
"Date computeDays(Date d, int days){\n d.setTime(d.getTime() + days*1000*60*60*24);\n return d;\n }",
"public void setCalDay() {\n\t\tfloat goal_bmr;\n\t\tif(gender==\"male\") {\n\t\t\tgoal_bmr= (float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age + 5);\n\t\t}\n\t\telse {\n\t\t\tgoal_bmr=(float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age - 161);\n\t\t}\n\t\tswitch (gymFrequency) {\n\t\tcase 0:calDay = goal_bmr*1.2;\n\t\t\t\tbreak;\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 3:calDay = goal_bmr*1.375;\n\t\t\t\tbreak;\n\t\tcase 4:\n\t\tcase 5:calDay = goal_bmr*1.55;\n\t\t\n\t\t\t\tbreak;\n\t\tcase 6:\n\t\tcase 7:calDay = goal_bmr*1.725;\n\t\t\t\tbreak;\n\t\t}\n\t}",
"private void setDeltaDate(long deltaDate) {\n\t\tthis.deltaDate = deltaDate;\n\t}",
"long lastAutomaticRefresh();"
] | [
"0.6157072",
"0.5894673",
"0.5894389",
"0.5894389",
"0.5890058",
"0.57454616",
"0.5745285",
"0.5711269",
"0.568013",
"0.56707734",
"0.5666261",
"0.56646156",
"0.56259024",
"0.5620647",
"0.55869454",
"0.5574862",
"0.55643183",
"0.5561155",
"0.5558123",
"0.5551729",
"0.5535637",
"0.55353093",
"0.54946476",
"0.5493591",
"0.54877144",
"0.54862773",
"0.54657435",
"0.54614896",
"0.5447569",
"0.5447457",
"0.5442845",
"0.54371846",
"0.5435004",
"0.5434147",
"0.543183",
"0.54237455",
"0.54216033",
"0.54211456",
"0.5395421",
"0.5393337",
"0.5379247",
"0.53780156",
"0.53550416",
"0.5349006",
"0.5337696",
"0.5334933",
"0.53338915",
"0.5329652",
"0.5327634",
"0.53176403",
"0.53108394",
"0.5310608",
"0.52925324",
"0.5290835",
"0.52885246",
"0.5280911",
"0.526145",
"0.52512276",
"0.52449226",
"0.52381486",
"0.523673",
"0.52301335",
"0.52258694",
"0.52243376",
"0.5220155",
"0.5208797",
"0.5208544",
"0.51979727",
"0.51963145",
"0.5174205",
"0.51738137",
"0.5170469",
"0.5164637",
"0.51536024",
"0.5148045",
"0.51426",
"0.51346684",
"0.5132079",
"0.5126994",
"0.51254666",
"0.5121016",
"0.5121016",
"0.51199085",
"0.5119893",
"0.511946",
"0.5115992",
"0.51151013",
"0.51135015",
"0.51005286",
"0.5100118",
"0.5096607",
"0.50752425",
"0.50654227",
"0.5060206",
"0.50588554",
"0.50527495",
"0.5051355",
"0.505067",
"0.50505006",
"0.5046421"
] | 0.67139477 | 0 |
Method created by SpringML to get notification message based on no. of days of last exposure. | private String getNotificationMsg(int days){
String message;
if (days == 0){
message = context.getString(R.string.notification_message_zero_days);
}
else if (days == 1){
message = context.getString(R.string.notification_message_one_day, days);
}
else{
message = context.getString(R.string.notification_message_two_days, days);
}
message = message + context.getString(R.string.notification_message_tap_to_learn);
return message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getMessageCounterHistoryDayLimit();",
"static Date calculateNextNotificationDate(Date now, Date sentDate, List<Integer> remindSteps) {\n Calendar sentCal = Calendar.getInstance();\n sentCal.setTime(sentDate);\n for (int dayOffset : remindSteps) {\n sentCal.add(Calendar.DAY_OF_YEAR, dayOffset);\n if (sentCal.getTime().compareTo(now) > 0) {\n return sentCal.getTime();\n }\n }\n return null;\n }",
"protected NotificationInfo getNotificationInfo() {\n List<NotificationInfo> list = notificationService.storeDigestJCR();\n assertTrue(list.size() > 0);\n return list.get(0);\n }",
"public Date getMessageDate();",
"private void retrieveNotification() { =====================================================\n // Creating Notification Model\n // =====================================================\n\n// Bitmap patientAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_18);\n// Bitmap patientAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_19);\n// Bitmap patientAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_20);\n//\n// Patient patient1 = new Patient(\"Garry\", \"Reese\", \"123AB456\", patientAvatar1);\n// Patient patient2 = new Patient(\"Lillian\", \"Wade\", \"987CD654\", patientAvatar2);\n// Patient patient3 = new Patient(\"Laura\", \"Freeman\", \"AV12G64\", patientAvatar3);\n//\n// Bitmap caregiverAvatar1 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_01);\n// Bitmap caregiverAvatar2 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_02);\n// Bitmap caregiverAvatar3 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_03);\n// Bitmap caregiverAvatar4 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_04);\n// Bitmap caregiverAvatar5 = BitmapFactory.decodeResource(getResources(), R.drawable.avatar_05);\n//\n// DateTime date1 = DateTime.now();\n// DateTime date2 = DateTime.now().minusDays(2).minusHours(2);\n// DateTime date3 = DateTime.now().minusDays(5).plusHours(1);\n// DateTime date4 = DateTime.now().minusDays(4).minusHours(2);\n// DateTime date5 = DateTime.now().minusDays(1).plusHours(1);\n// DateTime date6 = DateTime.now().minusDays(3).plusHours(5);\n//\n// String caregiverName1 = \"John Doe\";\n// String caregiverName2 = \"Jane Doe\";\n// String caregiverName3 = \"Tracy Lee\";\n// String caregiverName4 = \"Apple Tan\";\n// String caregiverName5 = \"Bethany Mandler\";\n//\n// String summary1 = \"Updated information of patient Garry Reese\";\n// String summary2 = \"Log new problem for patient Lilian Wade\";\n// String summary3 = \"Create new patient Laura Freeman\";\n// String summary4 = \"Recommended the game category memory to patient Garry Reese\";\n// String summary5 = \"Updated the milk allergy of patient Lillian Wade\";\n// String summary6 = \"Log new problem for patient Garry Reese\";\n//\n// Notification notification1 = new Notification(date1, caregiverName1, caregiverAvatar1, summary1, patient1, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_FIELD);\n// Notification notification2 = new Notification(date2, caregiverName2, caregiverAvatar2, summary2, patient2, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n// Notification notification3 = new Notification(date3, caregiverName3, caregiverAvatar3, summary3, patient3, Notification.STATUS_NONE, Notification.TYPE_NEW_PATIENT);\n// Notification notification4 = new Notification(date4, caregiverName4, caregiverAvatar4, summary4, patient1, Notification.STATUS_NONE, Notification.TYPE_GAME_RECOMMENDATION);\n// Notification notification5 = new Notification(date5, caregiverName5, caregiverAvatar5, summary5, patient2, Notification.STATUS_NONE, Notification.TYPE_UPDATE_INFO_OBJECT);\n// Notification notification6 = new Notification(date6, caregiverName3, caregiverAvatar3, summary6, patient1, Notification.STATUS_NONE, Notification.TYPE_NEW_INFO_OBJECT);\n//\n ArrayList<Notification> notificationList = new ArrayList<>();\n//// notificationList.add(notification1);\n//// notificationList.add(notification2);\n//// notificationList.add(notification3);\n//// notificationList.add(notification4);\n//// notificationList.add(notification5);\n//// notificationList.add(notification6);\n\n dbfile db = new dbfile();\n notificationList = db.prepareNotificationList(getApplicationContext());\n Log.v(\"WHY LIKE THAT\", String.valueOf(notificationList.size()));\n // =====================================================\n // Building the Notification Group based on the notification\n // =====================================================\n\n HashMap patientAndNotificationGroupMap = new HashMap();\n\n for(Notification notification:notificationList) {\n Patient currentPatient = notification.getAffectedPatient();\n String patientNric = currentPatient.getNric();\n\n if (patientAndNotificationGroupMap.containsKey(patientNric)) {\n NotificationGroup notifGroup = (NotificationGroup) patientAndNotificationGroupMap.get(patientNric);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n notifGroup.getUnprocessedNotif().add(notification);\n } else {\n notifGroup.getProcessedNotif().add(notification);\n }\n } else {\n NotificationGroup newNotifGroup = new NotificationGroup();\n newNotifGroup.setAffectedPatient(currentPatient);\n if(notification.getStatus() == Notification.STATUS_NONE) {\n newNotifGroup.getUnprocessedNotif().add(notification);\n } else {\n newNotifGroup.getProcessedNotif().add(notification);\n }\n patientAndNotificationGroupMap.put(patientNric, newNotifGroup);\n }\n }\n\n ArrayList<NotificationGroup> notificationGroupList = new ArrayList<>();\n NotificationComparator comparator = new NotificationComparator();\n for (Object obj : patientAndNotificationGroupMap.values()) {\n NotificationGroup notificationGroup = (NotificationGroup) obj;\n\n // Set notification status\n UtilsUi.setNotificationGroupStatus(this, notificationGroup);\n\n // Sort the notifications by date\n Collections.sort(notificationGroup.getProcessedNotif(), comparator);\n Collections.sort(notificationGroup.getUnprocessedNotif(), comparator);\n\n // Set the summary\n UtilsUi.setNotificationGroupSummary(this, notificationGroup);\n\n notificationGroupList.add(notificationGroup);\n }\n\n DataHolder.setNotificationGroupList(notificationGroupList);\n }",
"Date getEventFiredAt();",
"@Override\n\tpublic String getNotification() {\n\t\treturn null;\n\t}",
"private String getNotificationContent() {\n String format = \"Done %.2f%% - Success: %d - Fail: %d\";\n float percentage = (numberOfDone / numberOfData) * 100;\n return String.format(format, percentage, numberOfDone, numberOfFail);\n }",
"public String getNotificationCount() {\n\t\treturn element(\"li_notificationCount\").getText();\n\t}",
"com.google.protobuf.Int64Value getDeliveryDateAfter();",
"public String getNotification() {\n return notification;\n }",
"public Date getNextNotification(List<NotificationOccurrence> notificationOccurrenceHistory) {\n\t\tif(interval == NotificationRule.INTERVAL_DATE) {\n\t\t\tif(notificationOccurrenceHistory == null || notificationOccurrenceHistory.size() == 0) {\n\t\t\t\treturn startDate;\n\t\t\t} else {\n\t\t\t\tNotificationOccurrence lastOccurrence = getMostRecentNotificationOccurrence(notificationOccurrenceHistory);\n\t\t\t\tif(lastOccurrence.getAction() == NotificationOccurrence.ACTION_COMPLETED) {\n\t\t\t\t\treturn null;\n\t\t\t\t} else {\n\t\t\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\t\t\tcalendar.setTime(lastOccurrence.getDate());\n\t\t\t\t\tcalendar.add(Calendar.DATE, 1);\n\t\t\t\t\treturn calendar.getTime();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tNotificationOccurrence lastOccurrence = getMostRecentNotificationOccurrence(notificationOccurrenceHistory); \n\t\t\tDate lastOccurrenceDate;\n\t\t\tif(lastOccurrence != null) {\n\t\t\t\tlastOccurrenceDate = lastOccurrence.getDate();\n\t\t\t} else {\n\t\t\t\tlastOccurrenceDate = startDate;\n\t\t\t}\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tcalendar.setTime(lastOccurrenceDate);\n\t\t\tif(lastOccurrence != null && lastOccurrence.getAction() == NotificationOccurrence.ACTION_IGNORED) {\n\t\t\t\tcalendar.add(Calendar.DATE, 1);\n\t\t\t} else {\n\t\t\t\tswitch(interval) {\n\t\t\t\t\tcase NotificationRule.INTERVAL_HOURS:\n\t\t\t\t\t\tcalendar.add(Calendar.HOUR, intervalIncrement);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NotificationRule.INTERVAL_DAYS:\n\t\t\t\t\t\tcalendar.add(Calendar.DATE, intervalIncrement);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NotificationRule.INTERVAL_WEEKS:\n\t\t\t\t\t\tcalendar.add(Calendar.DATE, intervalIncrement*7);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NotificationRule.INTERVAL_MONTHS:\n\t\t\t\t\t\tcalendar.add(Calendar.MONTH, intervalIncrement);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase NotificationRule.INTERVAL_YEARS:\n\t\t\t\t\t\tcalendar.add(Calendar.YEAR, intervalIncrement);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn calendar.getTime();\n\t\t}\n\t}",
"public Integer getPresentDays()\r\n/* 48: */ {\r\n/* 49:51 */ return this.presentDays;\r\n/* 50: */ }",
"public java.lang.String getNotification()\r\n\t{\r\n\t\tString results = \"\";\r\n\t\tif (!locked)\r\n\t\t{\r\n\t\t\tif (notification == null)\r\n\t\t\t\tresults = \"No notification\";\r\n\t\t\tif (notification != null)\r\n\t\t\t\tresults = notification;\t\r\n\t\t}\r\n\t\tif (locked == true && notification != null)\r\n\t\t\tresults = \"You have a notification\";\r\n\t\treturn results;\r\n\t}",
"public long getNotificationDelay() {\n\t\treturn notificationDelay;\n\t}",
"private void setDaysSinceLastExposure(int days){\n new ExposureNotificationSharedPreferences(getApplicationContext()).setDaysSinceLastExposure(days);\n }",
"static private Notification getNotificationForEvent(GGEventModel event) {\n Context ctx = SplashActivity.getAppContext();\n\n // Create an explicit intent for an Activity in your app\n Intent intent = new Intent(ctx, EventsActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n PendingIntent pendingIntent = PendingIntent.getActivity(ctx, 0, intent, 0);\n\n // Builder builder = new Builder(ctx, channel_id)\n Builder builder;\n builder = new Builder(ctx, ctx.getResources().getString(R.string.channel_id) )\n .setSmallIcon(R.drawable.laguilde_logo)\n .setContentTitle(event.getTitle())\n .setContentText(event.getDescription())\n .setPriority(PRIORITY_DEFAULT)\n .setGroup(\"LaGuilde\")\n // Set the intent that will fire when the user taps the notification\n .setContentIntent(pendingIntent)\n .setAutoCancel(true)\n //.setTimeoutAfter(5000)\n // .setUsesChronometer(true)\n .setShowWhen(true)\n //.setWhen( System.currentTimeMillis() - 1000*60*60 )\n .setWhen( event.getDate().getTime() )\n .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))\n ;\n\n // todo: ajouter une image\n\n return builder.build();\n }",
"public String generateNotificationMessage(NotificationBo notification);",
"public Collection getReceivedNotifications();",
"private static long getNotificationInterval(ConfigurationObject config) {\r\n // Read and parse notification interval\r\n String notificationIntervalStr = Helper.getPropertyValue(config, NOTIFICATION_INTERVAL_KEY,\r\n false, false);\r\n\r\n if (notificationIntervalStr != null) {\r\n return Helper.parseLong(notificationIntervalStr,\r\n NOTIFICATION_INTERVAL_KEY, 1);\r\n }\r\n return 0;\r\n }",
"public String getMessageFired(final SessionContext ctx)\r\n\t{\r\n\t\tif( ctx == null || ctx.getLanguage() == null )\r\n\t\t{\r\n\t\t\tthrow new JaloInvalidParameterException(\"GeneratedSslOrderSteppedMultiBuyDiscountPromotion.getMessageFired requires a session language\", 0 );\r\n\t\t}\r\n\t\treturn (String)getLocalizedProperty( ctx, MESSAGEFIRED);\r\n\t}",
"public MonitorResult checkNotifications() {\r\n MonitorResult result = new MonitorResult();\r\n result.setComponent(\"NOTIFICATIONS\");\r\n\r\n logger.info(\"Testing NOTIFICATIONS...\");\r\n\r\n double duration = 0;\r\n boolean success = false;\r\n Date start = new Date();\r\n long startTime = start.getTime();\r\n\r\n try {\r\n\r\n long currentDateMs = (new Date()).getTime();\r\n Date comparisonDate = new Date(currentDateMs - getMonitorConfiguration().getNotificationSendInterval());\r\n\r\n Long unsentNotificationCount = getNotificationDAO().getUnsentNotifications(comparisonDate);\r\n\r\n if (unsentNotificationCount > 0) {\r\n throw new AditInternalException(\"Number of notifications not sent in time: \" + unsentNotificationCount);\r\n } else {\r\n logger.info(\"No waiting notifications older than \" + comparisonDate + \" were found.\");\r\n \tsuccess = true;\r\n }\r\n\r\n Date end = new Date();\r\n long endTime = end.getTime();\r\n duration = (endTime - startTime) / 1000.0;\r\n result.setDuration(duration);\r\n result.setSuccess(success);\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Error while testing NOTIFICATIONS: \", e);\r\n result.setSuccess(false);\r\n List<String> exceptions = new ArrayList<String>();\r\n exceptions.add(e.getMessage());\r\n result.setExceptions(exceptions);\r\n }\r\n\r\n return result;\r\n }",
"private static String getNotificationMessage(UserEvent event) {\n return \"Activity \" + event.getCategory().getTitle() + \" in progress\";\n }",
"private String getUnexpandedContentText(int numOfNotifications) {\n /*switch (numOfNotifications) {\n case 0:\n return \"\";\n case 1:\n return \"\";\n default:*/\n return numOfNotifications + \" news received\";\n }",
"public String getMessageFired()\r\n\t{\r\n\t\treturn getMessageFired( getSession().getSessionContext() );\r\n\t}",
"@Override\n public void onReceive(Context context, Intent intent) {\n\n NotificationChannel notificationChannel = new NotificationChannel(\"CHANNELID\", \"name\", NotificationManager.IMPORTANCE_HIGH );\n NotificationManager notificationManager = context.getSystemService(NotificationManager.class);\n\n notificationManager.createNotificationChannel(notificationChannel);\n\n Intent i = new Intent(context, DisplayMedication.class);\n\n // FIXME - hardcoded values\n i.putExtra(\"MedicationName\",\"Vicodin\" + \"\");\n i.putExtra(\"DoseAmount\",\"1\" + \"\");\n i.putExtra(\"HourlyFrequency\",\"2\" + \"\");\n i.putExtra(\"DaysBetweenDose\",\"7\" + \"\");\n /* <--- above this line ---> */\n\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(context, \"CHANNELID\")\n .setSmallIcon(R.drawable.icon)\n .setContentTitle(\"Medication Time\")\n .setContentText(\"Time to take a medication\")\n .setPriority(NotificationManager.IMPORTANCE_HIGH)\n .setContentIntent(pendingIntent);\n NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(context);\n notificationManagerCompat.notify(0, builder.build());\n\n\n }",
"long getMessageFrequency();",
"public int getFulfillmentTimeInDays () {\n return 0;\n }",
"public interface RaportAndReminderService {\n\n\t/**\n\t * Returns the number of all messages for given day\n\t * \n\t * @param stringCurrentDate\n\t * The String containing the date yyyy-MM-dd\n\t * @return A long representing the number of all messages\n\t */\n\tlong getNumberOfMessagesForGivenDate(String stringCurrentDate);\n\n\t/**\n\t * Returns the number of the unread messages for given day\n\t * \n\t * @param stringCurrentDate\n\t * The String containing the date yyyy-MM-dd\n\t * @return A long representing the number of the unread messages\n\t */\n\tlong getNumberOfUnreadMessagesForGivenDate(String stringCurrentDate);\n\n\t/**\n\t * Creates the notification with the daily message report for given day\n\t * \n\t * @param stringCurrentDate\n\t * The String containing the date yyyy-MM-dd mm:ss\n\t */\n\tvoid createDailyMessageRaport(String stringCurrentDate);\n\n\t/**\n\t * Creates the notification if the message is unread longer than 1 hour\n\t * \n\t * @param stringCurrentDate\n\t * The String containing the date yyyy-MM-dd mm:ss\n\t */\n\tvoid lookForUnreadMessages(String stringCurrentDate);\n\n}",
"protected void notificationOnExpiration() {\n }",
"public int getAlertMessageTimeRemaining()\n {\n return this.alert_message_time_remaining;\n }",
"public String generateNotificationResponseMessage(NotificationResponseBo response);",
"public long getNotify() {\n\t\treturn notify;\n\t}",
"private void getDateForAnalysisReport() {\n \tArrayList<Object> answer = new ArrayList<>();\n\t\tanswer.add(\"performingAnActivityTracking\");\n\t\tanswer.add(\"/getActivityData\");\n\t\tString star = reportStartDate.getValue().toString();\n\t\tString end = reportEndDate.getValue().toString();\n\t\tanswer.add(star);\n\t\tanswer.add(end);\n\t\t\n\t\tchs.client.handleMessageFromClientUI(answer);\n\t}",
"int getSeasonEventMessageCount();",
"abstract public SentinelHttpMessageAtk getLastAttackMessage();",
"com.google.protobuf.Int64ValueOrBuilder getDeliveryDateAfterOrBuilder();",
"long getNumberOfUnreadMessagesForGivenDate(String stringCurrentDate);",
"public int[] getDataMsgReceivedLast30Days() {\n\t\tint[] result = new int[30];\n\t\tint it = 0;\n\t\tfor (LocalDate date = LocalDate.now().minusDays(29); date\n\t\t\t\t.isBefore(LocalDate.now().plusDays(1)); date = date.plusDays(1)) {\n\t\t\tLocalDate day = date;\n\t\t\tcontador = 0;\n\t\t\tcurrentUser.getContacts().forEach(contacto -> {\n\t\t\t\tcontador += contacto.getMessages().stream()\n\t\t\t\t\t\t.filter(m -> (m.getTime().toLocalDate().getDayOfYear() == day.getDayOfYear())\n\t\t\t\t\t\t\t\t&& !(m.getSpeaker() == currentUser.getId()))\n\t\t\t\t\t\t.count();\n\t\t\t});\n\t\t\tresult[it] = contador;\n\t\t\tit++;\n\t\t}\n\t\treturn result;\n\t}",
"String getNotificationID();",
"@WebMethod(operationName = \"new-infections-last-24h\")\n String getNewInfectionsLast24h() throws JsonProcessingException;",
"public Date getNoticeEnd() {\n return noticeEnd;\n }",
"public static String getNotificaciones() {\n\t\treturn getServer()+\"wsagenda/v1/notificaciones\";//\"http://10.0.2.2/wsrest/v1/agenda\";//\"http://10.0.2.2/prueba/ahorro/obtener_gastos.php\";//\"http://10.0.2.2/wsrest/v1/agenda\";\n\t}",
"long getNumberOfMessagesForGivenDate(String stringCurrentDate);",
"String getFirstAlertMailBody( );",
"public int getUnreadBeforeNotification() {\n return unreadBeforeNotification;\n }",
"private void refreshNotification() {\n String str = this.mCurrentAddedNotiSsid;\n if (str != null) {\n showNotification(str, true, true);\n }\n String str2 = this.mCurrentDeletedNotiSsid;\n if (str2 != null) {\n showNotification(str2, false, true);\n }\n }",
"public String getIncreasedExposureMax( ) {\n\t\treturn this.increasedExposureMax;\n\t}",
"String getExpirationtMailBody( );",
"@Override\n public void setNotification() {\n if (getTense() == Tense.FUTURE) {\n //Context ctx = SHiTApplication.getContext();\n //SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(ctx);\n\n int leadTimeEventMinutes = SHiTApplication.getPreferenceInt(Constants.Setting.ALERT_LEAD_TIME_EVENT, LEAD_TIME_MISSING);\n\n if (leadTimeEventMinutes != LEAD_TIME_MISSING) {\n if (travelTime > 0) {\n leadTimeEventMinutes += travelTime;\n }\n\n setNotification(Constants.Setting.ALERT_LEAD_TIME_EVENT\n , leadTimeEventMinutes\n , R.string.alert_msg_event\n , getNotificationClickAction()\n , null);\n }\n }\n }",
"public abstract MBeanNotificationInfo[] getNotificationInfo();",
"public int[] getDataMsgSentLast30Days() {\n\t\tint[] result = new int[30];\n\t\tint it = 0;\n\t\tfor (LocalDate date = LocalDate.now().minusDays(29); date\n\t\t\t\t.isBefore(LocalDate.now().plusDays(1)); date = date.plusDays(1)) {\n\t\t\tLocalDate day = date;\n\t\t\tcontador = 0;\n\t\t\tcurrentUser.getContacts().forEach(contact -> {\n\t\t\t\tcontador += contact.getMessages().stream()\n\t\t\t\t\t\t.filter(m -> (m.getTime().toLocalDate().getDayOfYear() == day.getDayOfYear())\n\t\t\t\t\t\t\t\t&& (m.getSpeaker() == currentUser.getId()))\n\t\t\t\t\t\t.count();\n\t\t\t});\n\t\t\tresult[it] = contador;\n\t\t\tit++;\n\t\t}\n\t\treturn result;\n\t}",
"public String getMessage() {\n return \"Sorry, there isn't any event in the list on the given date.\";\n }",
"public Number getWorkflowNotificationId() {\r\n return (Number) getAttributeInternal(WORKFLOWNOTIFICATIONID);\r\n }",
"int getDeliveredCount();",
"private void getLatestMessageFromSocialService(String[] decrList) {\n Request request = new Request(Request.RequestCode.MESSAGES);\n prototype.sendRequest(serviceName,request,getNewResponseListener(decrList));\n }",
"public java.lang.String getMessageNotify() {\n return messageNotify;\n }",
"public String getLatestMessage() {\n return mLastMessage;\n }",
"@Override\r\n\tpublic Notification createEmailNotification() {\n\t\treturn null;\r\n\t}",
"public String processGithubNotifications(GithubNotification[] githubNotifications){\n if(githubNotifications.length > 0)\n return \"You go a new Github Notification\";\n else\n return null;\n }",
"String getOtherAlertMailBody( );",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getLastStatusChangeDate();",
"List<Integer> getIdUsersToSendFirstAlert( Timestamp alertMaxDate );",
"public int daysOverdue(int today);",
"void lookForUnreadMessages(String stringCurrentDate);",
"protected abstract NotificationResult fetchNotifications(long sequence, int maxNumber, long timeout) throws IOException;",
"private Notification getNotification() {\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this)\n .setColor(getResources().getColor(R.color.tt_primary))\n .setSmallIcon(R.drawable.ic_action_my_location)\n .setContentTitle(getText(R.string.app_name));\n\n builder.setContentText(getText(R.string.notif_text_tracking));\n\n builder.addAction(\n R.drawable.ic_action_close,\n getString(R.string.action_stop_tracking),\n getServicePendingIntent(ACTION_CLOSE)\n );\n\n builder.setContentIntent(getActivityPendingIntent());\n\n return builder.build();\n }",
"private String fetchLogEntry(int i) {\n\t\tif (log.size() >= i) {\n\t\t\tLog logEntry = log.get(log.size()-i);\n\t\t\tif (logEntry.getStatus() == Status.ALARM) {\n\t\t\t\treturn logEntry.getTimeStamp()+\"* \"+logEntry.getMessage();\n\t\t\t} else {\n\t\t\t\treturn logEntry.getTimeStamp()+\" \"+logEntry.getMessage();\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public TestNotification sendNow(TestNotification notif) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getDailyWorkout() {\n\t\treturn \"Run and shoot!\";\n\t}",
"static String getRefreshDate(){\n if (updateTime == null){\n updateTime = \"ERROR RETRIEVING CURRENT RATES\";\n }\n return conversionRates.get(\"date\").getAsString() + \" \" + updateTime;\n\n }",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int num_days = s.nextInt();\n int history = s.nextInt();\n int[] trans = new int[num_days];\n for(int i=0; i<num_days; i++)\n trans[i] = s.nextInt();\n\n System.out.print(numOfNotifications(trans,history));\n }",
"private void notifyUser(List<String> result) {\r\n\t\t\tif(Util.getProperty(getApplicationContext(),\"notificationTimeChanged\",\"\").equals(\"true\") \r\n\t\t\t\t\t|| !notifiedToday())\r\n\t\t\t{\r\n\t\t\t\tUtil.setProperty(getApplicationContext(), \"notificationTimeChanged\", \"false\");\r\n\t\t\t\tif(result.size() > 0){\r\n\t\t\t\t\tint itemsDue = result.size();\r\n\t\t\t\t\tStringBuffer notificationText = new StringBuffer();\r\n\t\t\t\t\tfor(int i=0; i<itemsDue; i++){\r\n\t\t\t\t\t\tif(i!=0)\r\n\t\t\t\t\t\t\tnotificationText.append(\", \");\r\n\t\t\t\t\t\tnotificationText.append(result.get(i));\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tContext context = getApplicationContext();\r\n\t\t\t\t\tNotificationManager nm = (NotificationManager)context.getSystemService(NOTIFICATION_SERVICE);\r\n\t\t\t\t\tIntent notificationIntent = new Intent(context,ReminderActivity.class);\r\n\t\t\t\t\tPendingIntent pi = PendingIntent.getActivity(context, 0, notificationIntent,PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT);\r\n\t\t\t\t\tNotification n = new Notification.Builder(context)\r\n\t\t\t\t\t.setContentTitle(String.valueOf(itemsDue) + \" Items Due\")\r\n\t\t\t\t\t.setContentText(notificationText.toString())\r\n\t\t\t\t\t.setSmallIcon(R.drawable.ic_launcher)\r\n\t\t\t\t\t//.setLargeIcon(R.drawable.ic_basket)\r\n\t\t\t\t\t.setContentIntent(pi)\r\n\t\t\t\t\t.build();\t \r\n\t\t\t\t\tnm.notify(1, n);\r\n\t\t\t\t}\r\n\t\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MMM-yyyy\",Locale.US);\r\n\t\t\t\tUtil.setProperty(getApplicationContext(), \"ServiceLastRanOn\",formatter.format(new Date()));\r\n\t\t\t}\r\n\t\t}",
"com.google.protobuf.Int64Value getDeliveryDateBefore();",
"private Notification buildForegroundNotification() {\n //registerNotifChnnl(this.context);\n\n Intent stopIntent = new Intent(this.context, BackgroundIntentService.class);\n //stopIntent.setAction(context.getString(R.string.intent_action_turnoff));\n\n PendingIntent pendingIntent = PendingIntent.getService(this.context,0, stopIntent, 0);\n\n NotificationCompat.Builder b=new NotificationCompat.Builder(this.context,CHANNEL_ID);\n\n b.setOngoing(true)\n .setContentTitle(\"WifiHotSpot is On\")\n// .addAction(new NotificationCompat.Action(\n// R.drawable.turn_off,\n// \"TURN OFF HOTSPOT\",\n// pendingIntent\n// ))\n .setPriority(NotificationCompat.PRIORITY_LOW)\n .setCategory(Notification.CATEGORY_SERVICE);\n // .setSmallIcon(R.drawable.notif_hotspot_black_24dp);\n\n\n return(b.build());\n }",
"int displayNotification(Message message);",
"@Override\n\tpublic java.lang.String getNoticePeriod() {\n\t\treturn _candidate.getNoticePeriod();\n\t}",
"java.lang.String getBadge();",
"public Integer getDonationsReceived()\n\t{\n\t\treturn donationsReceived;\n\t}",
"@Override\n public void run() {\n Calendar calendar = Calendar.getInstance();\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n String dateTime = simpleDateFormat.format(calendar.getTime());\n\n //Find the current time\n SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat(\"hh:mm:ss a\");\n String currentTime = simpleDateFormat1.format(calendar.getTime());\n\n //Find duration of current date and first day\n Date date1,date2;\n String dateStr1 = data.getDate();\n String dateStr2 = dateTime;\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n try{\n date1 = sdf.parse(dateStr1);\n date2 = sdf.parse(dateStr2);\n long diff = date2.getTime() - date1.getTime();\n long totalDay = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n NotificationChannel channel = new NotificationChannel(\"My Notification\", \"My Notification\", NotificationManager.IMPORTANCE_DEFAULT);\n NotificationManager manager = getSystemService(NotificationManager.class);\n manager.createNotificationChannel(channel);\n }\n\n //Exercise Time\n if(totalDay==0 || totalDay==1 || (totalDay>4+dayInSpace && totalDay<=10+dayInSpace)){\n if (currentTime.equals(\"05:00:00 PM\")) {\n NotificationExercise();\n }\n }\n\n if(totalDay==2){\n if (currentTime.equals(\"08:00:00 PM\")) {\n NotificationExercise();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"10:00:00 PM\")) {\n NotificationExercise();\n }\n }\n\n if(totalDay>=5 && totalDay<=4+dayInSpace){\n if (currentTime.equals(\"03:00:00 AM\")) {\n NotificationExercise();\n }\n }\n\n //Eating time (After half hour wake up-breakfast, After five hours wake up-lunch, Before four hours sleep-dinner)\n if(totalDay==0 || totalDay==1){\n if (currentTime.equals(\"07:30:00 AM\") || currentTime.equals(\"12:00:00 PM\") || currentTime.equals(\"07:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay==2){\n if (currentTime.equals(\"08:30:00 AM\") || currentTime.equals(\"01:00:00 PM\") || currentTime.equals(\"10:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"10:30:00 AM\") || currentTime.equals(\"03:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay==4){\n if (currentTime.equals(\"12:00:00 AM\") || currentTime.equals(\"12:30:00 PM\") || currentTime.equals(\"05:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay>=5 && totalDay<=4+dayInSpace){\n if (currentTime.equals(\"05:00:00 AM\") || currentTime.equals(\"03:30:00 PM\") || currentTime.equals(\"08:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n if(totalDay>4+dayInSpace && totalDay<=10+dayInSpace){\n if (currentTime.equals(\"08:30:00 AM\") || currentTime.equals(\"01:00:00 PM\") || currentTime.equals(\"7:00:00 PM\")) {\n NotificationMeal();\n }\n }\n\n //Take Melatonin time\n if(totalDay>=5 && totalDay<5+dayInSpace){\n if (currentTime.equals(\"09:00:00 AM\")) {\n NotificationTakeMelatonin();\n }\n }\n\n if(totalDay>=4+dayInSpace && totalDay<=6+dayInSpace){\n if (currentTime.equals(\"11:00:00 PM\")) {\n NotificationTakeMelatonin();\n }\n }\n\n //Nap time\n if(totalDay>=4 && totalDay<4+dayInSpace){\n if (currentTime.equals(\"06:00:00 PM\")) {\n NotificationNap();\n }\n }\n\n if(totalDay>=4 && totalDay<4+dayInSpace){\n if (currentTime.equals(\"08:00:00 PM\")) {\n NotificationNap();\n }\n }\n\n //Sleep Time\n if(totalDay==0){\n if (currentTime.equals(\"12:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay==0 || totalDay==1){\n if (currentTime.equals(\"11:00:00 PM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"02:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay==4){\n if (currentTime.equals(\"04:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay>=5 && totalDay<5+dayInSpace){\n if (currentTime.equals(\"09:00:00 AM\")) {\n NotificationSleep();\n }\n }\n\n if(totalDay>=4+dayInSpace && totalDay<=10+dayInSpace){\n if (currentTime.equals(\"11:00:00 PM\")) {\n NotificationSleep();\n }\n }\n\n //Wake Up Time\n if(totalDay==0 || totalDay==1){\n if (currentTime.equals(\"07:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay==2){\n if (currentTime.equals(\"08:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay==3){\n if (currentTime.equals(\"10:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay==4){\n if (currentTime.equals(\"12:00:00 PM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay>=5 && totalDay<5+dayInSpace){\n if (currentTime.equals(\"03:00:00 PM\")) {\n NotificationWakeUp();\n }\n }\n\n if(totalDay>=5+dayInSpace && totalDay<=10+dayInSpace){\n if (currentTime.equals(\"08:00:00 AM\")) {\n NotificationWakeUp();\n }\n }\n\n }catch(ParseException e){\n Log.d(\"error\",\"error\");\n }\n }",
"public Date getMessageLastPost() {\n return messageLastPost;\n }",
"NotificationList getNotifications(String status, String notification_type, String reference, String olderThanId) throws NotificationClientException;",
"public String getReceived(){\n String rec;\n if (received == Received.ON_TIME){\n rec = \"On Time\";\n }else if(received == Received.LATE){\n rec = \"Late\";\n }else if(received == Received.NO){\n rec = \"NO\";\n }else{\n rec = \"N/A\";\n }\n return rec;\n }",
"public Calendar getMessageExpiry() {\n\n // Check if the message expiry has been defined\n if (this.messageHeader.isSetMsgExpiry()) {\n return this.messageHeader.getMsgExpiry();\n }\n\n return null;\n }",
"@Override\n public String getEndInfo() {\n return null;\n //return dateFormatter.stringFromDate(checkOutTime!)\n }",
"@Override\r\n\tpublic int selectMessageYesterDay() {\n\t\treturn messageMapper.selectMessageYesterDay();\r\n\t}",
"public PanelNotifications getNotif(){\n return notif;\n }",
"public INotificationColl getNotifications()\n throws OculusException;",
"public String getLastEmailedDateString() {\r\n return this.lastEmailedDateString;\r\n }",
"long getLastBonusTicketDate();",
"String getRedeliveryDelay();",
"String getCoverageExpirationDate(Record inputRecord);",
"private static int checkFilesPeriod() {\n return ERXProperties.intForKeyWithDefault(\"er.extensions.ERXFileNotificationCenter.CheckFilesPeriod\", 0);\n }",
"public static String getMessageOfTheDay() {\n\t\treturn MessageOfTheDay.getPuzzleMessage();\n\t}",
"String getMaximumRedeliveryDelay();",
"public String getLastReport()\n {\n return null;\n }",
"@Override\r\n\tpublic Notification createSMSNotification() {\n\t\treturn null;\r\n\t}",
"long getExposureTimePref();",
"public String getNotificationText() {\r\n\t\treturn notificationText;\r\n\t}",
"public static void notifyLatestNews(@NonNull final Context context) {\n Uri articlesUri = NewsContract.NewsEntry.CONTENT_URI;\n\n Cursor articlesCursor = context.getContentResolver().query(\n articlesUri,\n NEWS_NOTIFICATION_PROJECTION,\n null,\n null,\n NewsContract.NewsEntry.COLUMN_PUBLISHED_AT + \" DESC\");\n\n if(articlesCursor.moveToFirst()) {\n long articleId = articlesCursor.getLong(INDEX_ARTICLE_ID);\n String articleTitle = articlesCursor.getString(INDEX_ARTICLE_TTITLE);\n String articleAuthor = articlesCursor.getString(INDEX_ARTICLE_AUTHOR);\n\n NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context)\n .setColor(ContextCompat.getColor(context, R.color.colorPrimary))\n .setSmallIcon(R.drawable.ic_sms_black_24dp)\n .setContentText(\"By \" + articleAuthor)\n .setContentTitle(articleTitle)\n .setAutoCancel(true);\n\n Intent intentForLatestArticle = new Intent(context, DetailActivity.class);\n intentForLatestArticle.setData(NewsContract.NewsEntry.buildUriWithId(articleId));\n\n TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(context)\n .addNextIntentWithParentStack(intentForLatestArticle);\n PendingIntent resultPendingIntent = taskStackBuilder\n .getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);\n\n notificationBuilder.setContentIntent(resultPendingIntent);\n\n NotificationManager notificationManager = (NotificationManager)\n context.getSystemService(Context.NOTIFICATION_SERVICE);\n\n notificationManager.notify(NEWS_NOTIFICATION_ID, notificationBuilder.build());\n\n PreferencesUtils.saveLastNotificationTime(context, System.currentTimeMillis());\n }\n\n articlesCursor.close();\n }"
] | [
"0.63854843",
"0.5832207",
"0.5826051",
"0.57030284",
"0.55951476",
"0.5548203",
"0.5458904",
"0.5452138",
"0.54486674",
"0.5435018",
"0.54181",
"0.54118234",
"0.5391774",
"0.5379785",
"0.5355118",
"0.535274",
"0.5351294",
"0.534439",
"0.53383267",
"0.53379595",
"0.53336495",
"0.5328002",
"0.5322098",
"0.53008133",
"0.5284766",
"0.5270247",
"0.526288",
"0.5262702",
"0.52526593",
"0.52514625",
"0.5248065",
"0.52428716",
"0.5230373",
"0.5225497",
"0.5217063",
"0.5207518",
"0.52035093",
"0.5201176",
"0.5200675",
"0.51948714",
"0.5193171",
"0.5189818",
"0.5188072",
"0.51799107",
"0.51684695",
"0.5161049",
"0.51424444",
"0.514186",
"0.5139738",
"0.51239693",
"0.51227903",
"0.51132935",
"0.51102996",
"0.5106697",
"0.50720197",
"0.5059836",
"0.5053474",
"0.4994821",
"0.49916348",
"0.4988188",
"0.49825028",
"0.49816695",
"0.49777102",
"0.49656406",
"0.49575156",
"0.495416",
"0.49526167",
"0.49522346",
"0.49519518",
"0.4950772",
"0.4950384",
"0.49498472",
"0.4942608",
"0.49409088",
"0.4938344",
"0.49360085",
"0.49280468",
"0.49259692",
"0.49248967",
"0.4924358",
"0.49235162",
"0.49222285",
"0.4915979",
"0.49085265",
"0.49073827",
"0.4905655",
"0.49004585",
"0.48941752",
"0.4893329",
"0.48854595",
"0.48848575",
"0.4883329",
"0.48822808",
"0.48776826",
"0.48765042",
"0.4872048",
"0.48673114",
"0.48651028",
"0.48619017",
"0.48611987"
] | 0.6379115 | 1 |
TODO Autogenerated method stub | @Override
public int describeContents() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Creates a new instance of SimpleLongListSelectionModel | public SimpleLongListSelectionModel(long firstIndex, long lastIndex) {
this.firstIndex = firstIndex;
this.lastIndex = lastIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addLongListSelectionListener(LongListSelectionListener x) {\n return;\r\n }",
"public static ListDialog createSelectScannableDialog(Composite parent, List<String> longNameList, List<String> shortNameList) {\n\t\tListDialogWithAdvanced ld = new ListDialogWithAdvanced(parent.getShell());\n\t\tld.setAddCancelButton(true);\n\t\tld.setContentProvider(new ArrayContentProvider());\n\t\tld.setLongNameList(longNameList);\n\t\tld.setInput(longNameList);\n\t\tif (shortNameList != null && !shortNameList.isEmpty()) {\n\t\t\tld.setShortNameList(shortNameList);\n\t\t\tld.setInput(shortNameList);\n\t\t}\n\t\tld.setLabelProvider(new LabelProvider());\n\t\tld.setBlockOnOpen(true);\n\n\t\treturn ld;\n\t}",
"@NotNull\n public static TableModel createLongTableModel ( final boolean editable )\n {\n return new SampleTableModel ( editable, 12 );\n }",
"public static <T, U> Observable<U> selectLong(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func2<? super T, ? super Long, ? extends U> selector) {\r\n\t\treturn new Select.LongIndexed<T, U>(source, selector);\r\n\t}",
"public MultiSelectPropertyBox() {\n\t\tthis.setRenderer(new PropertyCellRenderer());\n\t\tthis.addItemListener(new java.awt.event.ItemListener() {\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\t// this_itemStateChanged(e);\n\t\t\t}\n\t\t});\n\t\tsetEditable(false);\n\t\tthis.setRenderer(new MultiSelectBoxRenderer());\n\t}",
"private JComponent buildUserList() {\n list = new JList<>();\n list.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n list.setCellRenderer(new CellRenderer(list.getCellRenderer()));\n list.setTransferHandler(new ProcessTransferHandler());\n list.setDragEnabled(true);\n list.setDropMode(DropMode.ON_OR_INSERT);\n return ScrollFactory.pane(list).create();\n }",
"public WListbox()\n\t{\n\t\tsuper();\n\t\tWListItemRenderer rowRenderer = new WListItemRenderer();\n\t rowRenderer.addTableValueChangeListener(this);\n\n\t\tsetItemRenderer(rowRenderer);\n\t\tsetModel(new ListModelTable());\n\t}",
"DefaultListModel<E> getListModel();",
"private ListSelectionDialogFactory() {\n }",
"@Override\n public LongDefImpl clone() {\n\n if (this == FieldDefImpl.longDef) {\n return this;\n }\n\n return new LongDefImpl(this);\n }",
"public JList<String> makeList(int rowCount, int x, int y, int width, int height) {\r\n DefaultListModel<String> dlm = new DefaultListModel<>();\r\n list = new JList<>(dlm);\r\n list.setVisibleRowCount(rowCount);\r\n list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n list.setVisibleRowCount(-1);\r\n JScrollPane listScroll = new JScrollPane(list);\r\n listScroll.setPreferredSize(new Dimension(500, 600));\r\n list.setBounds(x, y, width, height);\r\n list.setCellRenderer(new CheckBoxListCellRenderer());\r\n\r\n list.setVisible(true);\r\n return list;\r\n }",
"public ListSelectionModel getSelectionModel() {\r\n return getTable().getSelectionModel();\r\n }",
"public MultiMonitorDialog(java.awt.Frame parent, boolean modal,java.awt.GraphicsDevice[] gds, int current)\n {\n super(parent, modal);\n \n javax.swing.JScrollPane jScrollPane1 = new javax.swing.JScrollPane();\n javax.swing.JList jList1 = new javax.swing.JList();\n javax.swing.JLabel jL = new javax.swing.JLabel(Localization.Texts[139]+\".\");\n javax.swing.JButton button = new javax.swing.JButton(\"OK\");\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n jScrollPane1.setViewportView(jList1);\n \n getContentPane().setLayout(new javax.swing.BoxLayout(this.getContentPane(),javax.swing.BoxLayout.Y_AXIS));\n this.add(jL);\n this.add(jScrollPane1);\n this.add(button);\n\n this.setTitle(Localization.Texts[139]);\n javax.swing.DefaultListModel<String> listModel = new javax.swing.DefaultListModel<>();\n StringBuilder sb=new StringBuilder (200);\n for (int i=0;i<gds.length;i++) // show description of all monitors\n {\n sb.setLength(0); // nothing yet\n java.awt.GraphicsDevice device = gds[i];\n java.awt.GraphicsConfiguration gd=device.getDefaultConfiguration();\n // sb.append(count).append(\" : \").append(device.getIDstring()).append (\" \");\n sb.append(i).append(\" : \");\n java.awt.Rectangle bounds = gd.getBounds();\n sb.append(bounds.width).append(\" X \").append(bounds.height).append(Localization.Texts[140]);\n sb.append(bounds.x).append(\" X \").append(bounds.y);\n listModel.addElement(sb.toString());\n } \n \n jList1.setModel(listModel);\n javax.swing.ListSelectionModel lsm = jList1.getSelectionModel();\n lsm.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jList1.setSelectedIndex(current);\n jList1.addListSelectionListener(this);\n \n pack();\n final javax.swing.AbstractAction escapeAction = new javax.swing.AbstractAction() \n {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent ae) \n {\n dispose(); // this is called when user hits ESC\n }\n };\n\n getRootPane().getInputMap(javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW)\n .put(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0), \"ESCAPE_KEY\");\n getRootPane().getActionMap().put(\"ESCAPE_KEY\", escapeAction);\n \n button.addActionListener (new java.awt.event.ActionListener()\n {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n dispose();\n }\n });\n }",
"public JScrollPane vytvorList() {\n listModel = new DefaultListModel();\n //listModel.addElement(\"Hra: 0 DUMMY\");\n\n listHer = new JList(listModel);\n listHer.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n listHer.setSelectedIndex(0);\n listHer.addListSelectionListener(this);\n listHer.setVisibleRowCount(7);\n listHer.setVisible(true);\n\n JScrollPane listScrollPane = new JScrollPane(listHer);\n listScrollPane.setPreferredSize(new Dimension(250, 300));\n listScrollPane.setVisible(true);\n listScrollPane.setName(\"hry\");\n\n return listScrollPane;\n }",
"public QS001OtherItemListBox(ListModel dataModel) {\r\n super(dataModel);\r\n }",
"public MultiList(){}",
"LList2(int size) {\r\n\t\tthis();\r\n\t}",
"public JSmartList()\n {\n }",
"public final EObject ruleLongLiteral() throws RecognitionException {\n EObject current = null;\n\n Token lv_value_1_0=null;\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1693:28: ( ( () ( (lv_value_1_0= RULE_LONG ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1694:1: ( () ( (lv_value_1_0= RULE_LONG ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1694:1: ( () ( (lv_value_1_0= RULE_LONG ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1694:2: () ( (lv_value_1_0= RULE_LONG ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1694:2: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1695:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getLongLiteralAccess().getLongLiteralAction_0(),\n current);\n \n }\n\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1700:2: ( (lv_value_1_0= RULE_LONG ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1701:1: (lv_value_1_0= RULE_LONG )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1701:1: (lv_value_1_0= RULE_LONG )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1702:3: lv_value_1_0= RULE_LONG\n {\n lv_value_1_0=(Token)match(input,RULE_LONG,FOLLOW_RULE_LONG_in_ruleLongLiteral4058); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tnewLeafNode(lv_value_1_0, grammarAccess.getLongLiteralAccess().getValueLONGTerminalRuleCall_1_0()); \n \t\t\n }\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getLongLiteralRule());\n \t }\n \t\tsetWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"value\",\n \t\tlv_value_1_0, \n \t\t\"LONG\");\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public static GroupList newInstance() {\n\t\tGroupList f = new GroupList();\n\t\tBundle b = new Bundle();\n\t\tf.setArguments(b);\n\t\treturn f;\n\t}",
"public boolean onLongClick(View v) {\n isMulChoice = true;\n selectid.clear();\n layout.setVisibility(View.VISIBLE);\n for(int i=0;i<list.size();i++)\n {\n linelayout.setVisibility(View.INVISIBLE);\n adapter.visiblecheck.put(i, CheckBox.VISIBLE);\n }\n adapter = new AdapterRecord(context,list);\n listview.setAdapter(adapter);\n return true;\n }",
"public SelectionDialog(HarmonyModel harmonyModel, Integer mode)\r\n\t{\r\n\t\tsuper((mode==SELECT ? \"Select\" : \"Remove\") + \" Links\");\r\n\t\tthis.harmonyModel = harmonyModel;\r\n\t\tthis.mode = mode;\r\n\t\t\r\n\t\t// Initialize the type filter\r\n\t\ttypeFilter = new OptionPane(\"Type\",new String[]{\"All\",\"User\",\"System\"});\r\n\t\ttypeFilter.setBorder(new EmptyBorder(0,20,0,0));\r\n\t\ttypeFilter.setSelectedButton(\"All\");\r\n\t\t\r\n\t\t// Initialize the focus filter\r\n\t\tfocusFilter = new OptionPane(\"Focus\",new String[]{\"All\",\"Focused\",\"Unfocused\"});\r\n\t\tfocusFilter.setBorder(new EmptyBorder(0,13,0,0));\r\n\t\tfocusFilter.setSelectedButton(mode==SELECT ? \"Focused\" : \"All\");\r\n\t\tfocusFilter.setEnabled(mode==DELETE);\r\n\r\n\t\t// Initialize the visibility filter\r\n\t\tvisibilityFilter = new OptionPane(\"Visibility\",new String[]{\"All\",\"Visible\",\"Hidden\"});\t\t\r\n\t\tvisibilityFilter.setSelectedButton(mode==SELECT ? \"Visible\" : \"All\");\r\n\t\tvisibilityFilter.setEnabled(mode==DELETE);\r\n\t\t\r\n\t\t// Create the info pane\r\n\t\tJPanel infoPane = new JPanel();\r\n\t\tinfoPane.setBorder(new CompoundBorder(new EmptyBorder(5,5,0,5),new CompoundBorder(new LineBorder(Color.gray),new EmptyBorder(5,5,5,5))));\r\n\t\tinfoPane.setLayout(new GridLayout(3,1));\r\n\t\tinfoPane.add(typeFilter);\r\n\t\tinfoPane.add(focusFilter);\r\n\t\tinfoPane.add(visibilityFilter);\r\n\t\t\r\n\t\t// Generate the main dialog pane\r\n\t\tJPanel pane = new JPanel();\r\n\t\tpane.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t\tpane.setLayout(new BorderLayout());\r\n\t\tpane.add(infoPane,BorderLayout.CENTER);\r\n\t\tpane.add(new ButtonPane(),BorderLayout.SOUTH);\r\n\t\t\r\n\t\t// Initialize the dialog parameters\r\n\t\tsetContentPane(pane);\r\n\t\tsetSize(200,250);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}",
"@Override\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tlstv.setLongClickable(true);\n\t\t\t\tview.setSelected(true);\n\t\t\t\tview.setPressed(true);\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}",
"public Builder clearLongNames() {\n bitField0_ = (bitField0_ & ~0x00000010);\n longNames_ = true;\n onChanged();\n return this;\n }",
"Select createSelect();",
"public JP1Table( TableModel model )\n {\n super( model );\n setSelectionMode( ListSelectionModel.SINGLE_SELECTION );\n // getSelectionModel().addListSelectionListener( this );\n setCellSelectionEnabled( true );\n setSurrendersFocusOnKeystroke( true );\n setAutoResizeMode( JTable.AUTO_RESIZE_LAST_COLUMN );\n tableHeader.setReorderingAllowed( false );\n DefaultCellEditor e = ( DefaultCellEditor )getDefaultEditor( String.class );\n new TextPopupMenu( ( JTextComponent )e.getComponent() );\n }",
"MenuList()\r\n\t{\r\n\t\t\r\n\t\tsetLayout(new GridLayout(2,1));\r\n\t\t\r\n\t\t\r\n\t\treadTax();\r\n\t\t\r\n\t\treceiptList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\t\r\n\t\treceiptList.setFont(new Font(Font.SERIF,Font.PLAIN,16));\r\n\r\n\t\tadd(new JScrollPane(receiptList, \r\n\t\t\t\tScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER));\r\n\t\tadd(description);\r\n\t\tdescription.setText(\"jTextArea1\");\r\n\t\t\r\n\t}",
"public OverviewSmallListChoosrDialogOptions showListChooser(String referenceID, boolean multiSelect, boolean showFilter, String title, IDLabelList items, Collection<String> selectedIDs){\n/*Generated! Do not modify!*/ return showListChooser(referenceID, multiSelect, showFilter, title, DEFAULT_OK_TEXT, DEFAULT_CANCEL_TEXT, items, selectedIDs);\n/*Generated! Do not modify!*/ }",
"private void createSuggestionsList() {\r\n\t\tmListView = new LabeledListViewElement(this);\r\n\t\tmInputBar.addView(mListView);\r\n\r\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int pos, long id) {\r\n\t\t\t\tString query = adapter.getItemAtPosition(pos).toString();\r\n\t\t\t\tif(query.contains(\" \"))\r\n\t\t\t\t\tsearch(query);\r\n\t\t\t\telse{\r\n\t\t\t\t\tmInputBar.setInputText(query + \" \");\r\n\t\t\t\t\tmInputBar.setCursorAtEnd();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t}",
"protected Tool createSelectionTool() {\n return new SelectionTool(view());\n }",
"public MultipleSelectionModel<T> getSelectionModel() {\n return selectionModelProperty.get();\n }",
"private void initList() {\n tempShopList=wdh.getTempShopList();\n final String[] listIndex=new String[tempShopList.size()];\n \n // System.out.println(tempShopList.size());\n \n for(int i=0;i<tempShopList.size();i++)\n listIndex[i]=String.valueOf(i+1); \n \n// jList1=new JList(listIndex);\n// jScrollPane1=new JScrollPane(jList1);\n// jScrollPane1.setViewportView(jList1);\n \n \n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings1 = listIndex;\n public int getSize() { return strings1.length; }\n public Object getElementAt(int i) { return strings1[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n \n }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">\r\n private void initComponents() {\r\n\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n jList1 = new ScrollableList();\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n\r\n jScrollPane1.setBackground(new java.awt.Color(37, 37, 37));\r\n jScrollPane1.setBorder(null);\r\n\r\n jList1.setForeground(new java.awt.Color(51, 51, 51));\r\n jList1.setModel(new javax.swing.AbstractListModel() {\r\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\r\n public int getSize() { return strings.length; }\r\n public Object getElementAt(int i) { return strings[i]; }\r\n });\r\n jList1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\r\n jList1.setOpaque(false);\r\n jList1.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\r\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\r\n jList1ValueChanged(evt);\r\n }\r\n });\r\n jList1.addComponentListener(new java.awt.event.ComponentAdapter() {\r\n public void componentResized(java.awt.event.ComponentEvent evt) {\r\n jList1ComponentResized(evt);\r\n }\r\n });\r\n jScrollPane1.setViewportView(jList1);\r\n\r\n add(jScrollPane1, java.awt.BorderLayout.CENTER);\r\n }",
"public LimeComboBox(List<Action> newActions) { \n setText(null);\n actions = new ArrayList<Action>();\n addActions(newActions);\n \n if (!actions.isEmpty()) {\n selectedAction = actions.get(0);\n } else {\n selectedAction = null;\n } \n \n initModel();\n \n actionListener = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n ActionLabel label = (ActionLabel)e.getSource();\n Action action = label.getAction();\n selectedAction = action;\n selectedComponent = (JComponent)label.getParent();\n selectedLabel = label;\n fireChangeEvent(action);\n repaint();\n menu.setVisible(false);\n }\n };\n \n mouseListener = new MouseAdapter() {\n \n private final Color foreground = UIManager.getColor(\"MenuItem.foreground\");\n private final Color selectedForeground = UIManager.getColor(\"MenuItem.selectionForeground\");\n \n @Override\n public void mouseEntered(MouseEvent e) {\n paintNormal(e.getSource(), true);\n }\n \n @Override\n public void mouseExited(MouseEvent e) {\n paintNormal(e.getSource(), false);\n }\n \n @Override\n public void mouseClicked(MouseEvent e) {\n paintNormal(e.getSource(), true);\n }\n \n private void paintNormal(Object source, boolean selected) {\n JComponent label = (JComponent)source;\n label.setForeground(selected ? selectedForeground : foreground );\n \n JComponent parent = (JComponent) label.getParent();\n parent.setOpaque(selected);\n parent.repaint();\n \n // Remove highlight on the last selected component.\n if (selectedComponent != null && selectedComponent != parent) {\n selectedLabel.setForeground(foreground);\n selectedComponent.setOpaque(false);\n selectedComponent.repaint();\n selectedLabel = null;\n selectedComponent = null;\n }\n }\n };\n }",
"public Builder setLongNames(boolean value) {\n bitField0_ |= 0x00000010;\n longNames_ = value;\n onChanged();\n return this;\n }",
"private void setListAndResetSelection(JList list, List<String> items, java.util.List selection) {\n Map<String,Integer> str_to_i = new HashMap<String,Integer>();\n String as_str[] = new String[items.size()]; for (int i=0;i<as_str.length;i++) { as_str[i] = items.get(i); str_to_i.put(as_str[i], i); }\n list.setListData(as_str);\n if (selection.size() > 0) {\n List<Integer> ints = new ArrayList<Integer>(); \n // Find the indices for the previous settings\n for (int i=0;i<selection.size();i++)\n if (str_to_i.containsKey(selection.get(i))) \n\t ints.add(str_to_i.get(selection.get(i)));\n // Convert back to ints\n int as_ints[] = new int[ints.size()];\n for (int i=0;i<as_ints.length;i++) as_ints[i] = ints.get(i);\n list.setSelectedIndices(as_ints);\n }\n }",
"protected ListView<T> createTargetListView() {\n/* 447 */ return createListView();\n/* */ }",
"protected void setSelectionToWidget(List l, boolean reveal) {\n\t\tif (l == null || l.size() == 0) { // clear selection\n\t\t\tlist.deselectAll();\n\t\t} else {\n\t\t\tObject object = l.get(0);\n\t\t\tint index = -1;\n\t\t\tfor (int i = 0; i < elements.size(); i++) {\n\t\t\t\tif (elements.get(i) == object) {\n\t\t\t\t\tindex = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tAssert.isTrue(index != -1, \"Could not set the selected tab in the tabbed property viewer\");//$NON-NLS-1$\n\t\t\tlist.select(index);\n\t\t}\n\t}",
"public static LongType getInstance() {\n return INSTANCE;\n }",
"public final MultipleSelectionModel<T> getSelectionModel() {\n\n return this.getWrappedControl().getSelectionModel();\n }",
"private JList getLbPrefixList() {\n if (lbPrefixList == null) {\n lbPrefixList = new JList();\n lbPrefixList.setModel(getPlm());\n lbPrefixList.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent e) {\n if (e.getKeyCode() == KeyEvent.VK_ENTER) {\n getBtnOK().doClick();\n return;\n }\n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n getBtnCancel().doClick();\n return;\n }\n char c = e.getKeyChar();\n int pos = plm.getSelection(c);\n if (pos > -1) {\n lbPrefixList.setSelectedIndex(pos);\n JScrollBar sb = getSpPrefixList().getVerticalScrollBar();\n sb.setValue((sb.getMaximum() - sb.getMinimum())\n / lbPrefixList.getModel().getSize() * pos);\n\n }\n }\n });\n lbPrefixList.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent e) {\n if (e.getClickCount() > 1)\n getBtnOK().doClick();\n }\n });\n }\n return lbPrefixList;\n }",
"private JList<ProductoAlmacen> crearListaProductos() {\n\n JList<ProductoAlmacen> lista = new JList<>(new Vector<>(almacen.getProductos()));\n\n lista.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n\n lista.setCellRenderer(new DefaultListCellRenderer() {\n @Override\n public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {\n Component resultado = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\n ProductoAlmacen productoAlmacen = (ProductoAlmacen) value;\n\n String texto = String.format(\"%s (%d uds.)\", productoAlmacen.getProducto().getNombre(), productoAlmacen.getStock());\n this.setText(texto);\n\n return resultado;\n }\n });\n\n return lista;\n }",
"public <S extends Component> MultiSelection<S> selectAll(final Class<S> type) {\n return new MultiSelection<S>(type);\n }",
"public OverviewSmallListChoosrDialogOptions showListChooser(String referenceID, boolean multiSelect, boolean showFilter, String title, String okText, String cancelText, IDLabelList items, Collection<String> selectedIDs){\n/*Generated! Do not modify!*/ \tListChooserParameters parameters = createListChooserParameters(referenceID, multiSelect, showFilter, title, okText, cancelText);\n/*Generated! Do not modify!*/ \tSet<String> selectedIDsSet = new HashSet<String>();\n/*Generated! Do not modify!*/ \tif (selectedIDs != null){\n/*Generated! Do not modify!*/ \t\tselectedIDsSet = new HashSet<String>(selectedIDs);\n/*Generated! Do not modify!*/ \t}\n/*Generated! Do not modify!*/ \tList<ListChooserItem> chooserItems = new ArrayList<ListChooserItem>();\n/*Generated! Do not modify!*/ \tfor (IDLabel i: items.getItems()){\n/*Generated! Do not modify!*/ \t\tchooserItems.add(createItem(i.getID(), i.getLabel(), null, selectedIDsSet.contains(i.getID())));\n/*Generated! Do not modify!*/ \t}\n/*Generated! Do not modify!*/ \tparameters.setShowIcons(false);\n/*Generated! Do not modify!*/ \tparameters.setItems(chooserItems);\n/*Generated! Do not modify!*/ \treplyDTO.setListChooserParameters(parameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ \taddRecordedAction(ReplyActionType.SHOW_LIST_CHOOSER_TEXTS, \"showListChooser(\" + escapeString(referenceID) + \", \" + multiSelect + \", \" + showFilter + \", \" + escapeString(title) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(okText) + \", \" + escapeString(cancelText) + \", \", gson.toJson(items), selectedIDs);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallListChoosrDialogOptions(this, parameters);\n/*Generated! Do not modify!*/ }",
"@Override\n public void onRowLongClicked(int position) {\n }",
"protected void createSelection() {\r\n\t\tsel = new GraphSelection();\r\n\t}",
"public static LevelEditorWindow intializeEditorWindow(SelectionitemListener entitySelectionListener,\n\t\t\tList<Pair<EntityMembers, String>> classesAndLocations){\n\t\tfinal LevelEditorWindow window = new LevelEditorWindow(entitySelectionListener, classesAndLocations);\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn window;\n\t}",
"public DefaultDateSelectionModel(Locale locale)\n/* */ {\n/* 55 */ super(locale);\n/* 56 */ this.selectionMode = DateSelectionModel.SelectionMode.SINGLE_SELECTION;\n/* 57 */ this.selectedDates = new TreeSet();\n/* 58 */ this.unselectableDates = new TreeSet();\n/* */ }",
"private JPanel createScrollPaneKeyWords() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Keywords List \", TitledBorder.LEFT, TitledBorder.TOP));\n\n this.keywordList = demonstrationApplicationController.getKeywordsList();\n this.jListKeyword = new JList(new ModelListSelectable(keywordList));\n\n JScrollPane scrollPane = new JScrollPane(jListKeyword);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }",
"public AdminView() {\n initComponents();\n \n staffTbl.setSelectionMode(\n ListSelectionModel.SINGLE_SELECTION);\n rentalTbl.setSelectionMode(\n ListSelectionModel.SINGLE_SELECTION);\n carTbl.setSelectionMode(\n ListSelectionModel.SINGLE_SELECTION);\n carClassTbl.setSelectionMode(\n ListSelectionModel.SINGLE_SELECTION);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic Object clone() {\n\t\tLongOpenHashSet c;\n\t\ttry {\n\t\t\tc = (LongOpenHashSet) super.clone();\n\t\t} catch (CloneNotSupportedException cantHappen) {\n\t\t\tthrow new InternalError();\n\t\t}\n\t\tc.key = key.clone();\n\t\tc.state = state.clone();\n\t\treturn c;\n\t}",
"public Builder clearLongToken() {\n copyOnWrite();\n instance.clearLongToken();\n return this;\n }",
"public Builder clearLongToken() {\n copyOnWrite();\n instance.clearLongToken();\n return this;\n }",
"SelectSubSet createSelectSubSet();",
"private void setupCourseList(){\n\t\tcourseList = new JList<>(listModel);\n\t\tcourseList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tcourseList.setLayoutOrientation(JList.VERTICAL);\n\t\t\n\t\tJScrollPane scroller = new JScrollPane(courseList);\n\t\tscroller.setMaximumSize(new Dimension(400,300));\n\t\tadd(scroller);\n\t}",
"public final ObjectProperty<MultipleSelectionModel<T>> selectionModelProperty() {\n\n return this.getWrappedControl().selectionModelProperty();\n }",
"public TemplatesPanel() {\r\n initComponents();\r\n jList1.setLayoutOrientation(JList.HORIZONTAL_WRAP);\r\n renderer = new TemplateRenderer();\r\n jList1.setCellRenderer(renderer);\r\n jList1.setModel(new DefaultListModel());\r\n for (int i=0; i<40; ++i)\r\n {\r\n ((DefaultListModel)jList1.getModel()).addElement(\"\"+i);\r\n }\r\n jScrollPane1.getViewport().setBackground( Color.WHITE ); //new Color(37,37,37)\r\n\r\n //jList2.setCellRenderer(new TemplateCategoriesListCellRenderer());\r\n //jList2.setModel(new DefaultListModel());\r\n\r\n //updateCategories();\r\n //jList2.setSelectedIndex(0);\r\n clearPreview();\r\n new Thread(this).start();\r\n\r\n\r\n }",
"public SparseLongKeyDummyVector() {\n this(-1);\n }",
"protected void initManufacturersListBox(ManufacturerHolder mh) {\n manufacturersListBox.addItem(\"Please choose...\", \"-1\");\n int index = 1;\n for (ManufacturerHolder manuHolder : mywebapp.getManufacturerHolders()) {\n manufacturersListBox.addItem(manuHolder.getName(), manuHolder.getId().toString());\n if ((mh != null) && (mh.getId() != null)) {\n if (mh.getId().equals(manuHolder.getId())) {\n manufacturersListBox.setSelectedIndex(index);\n }\n }\n index++;\n }\n }",
"public SearchOptionSplitPane()\n\t{\n\t\tsuper(JSplitPane.HORIZONTAL_SPLIT, new SearchPanel(), null);\n\t\tthis.setBounds(0, 20, 1264, 662);\n\t\tthis.setDividerLocation(600);\n\t\t\n\t\tfinal SearchTable table;\n\t\tif(this.getLeftComponent() instanceof SearchPanel)\n\t\t{\n\t\t\ttable = ((SearchPanel) this.getLeftComponent()).getSearchTable();\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttable = new SearchTable(new SearchModel(new ArrayList<SearchEntry>()));\n\t\t}\n\t\t\n\t\ttable.getSelectionModel().addListSelectionListener(new ListSelectionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t\tint selectedRow = table.getSelectedRow();\n\t\t\t\tif(selectedRow < 0 || table.getSelectedRowCount() > 1)\n\t\t\t\t{\n\t\t\t\t\tsetLoadedOptionPanel(null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetLoadedOptionPanel(table.getModel().getTableEntries().get(selectedRow).getOptionPanel());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public ManageProductForm() {\r\n \r\n initComponents();\r\n getContentPane().setBackground(BG_DARK_ALT);\r\n \r\n listCategory();\r\n \r\n modelContentList = (DefaultTableModel)tblContentList.getModel();\r\n \r\n // Align numeric column to the right\r\n rightRenderer.setHorizontalAlignment(JLabel.RIGHT);\r\n tblContentList.getColumnModel().getColumn(4).setCellRenderer(rightRenderer);\r\n tblContentList.getColumnModel().getColumn(5).setCellRenderer(rightRenderer);\r\n tblContentList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n \r\n lblRealID.setVisible(false);\r\n \r\n tblContentList.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(ListSelectionEvent e) {\r\n int curRow = tblContentList.getSelectedRow();\r\n if(curRow > -1){\r\n lblProductID.setText(tblContentList.getValueAt(curRow, 0).toString());\r\n tbxCode.setText(tblContentList.getValueAt(curRow, 1).toString());\r\n tbxName.setText(tblContentList.getValueAt(curRow, 2).toString());\r\n \r\n // Set combobox selection\r\n String category = tblContentList.getValueAt(curRow, 3).toString();\r\n for (int i = 0; i < cmbCategory.getItemCount(); i++) {\r\n if (cmbCategory.getItemAt(i).equals(category)) {\r\n cmbCategory.setSelectedIndex(i);\r\n break;\r\n }\r\n }\r\n tbxCost.setText(tblContentList.getValueAt(curRow, 4).toString().replace(\",\", \"\"));\r\n tbxPrice.setText(tblContentList.getValueAt(curRow, 5).toString().replace(\",\", \"\"));\r\n tbxDescription.setText(tblContentList.getValueAt(curRow, 6).toString());\r\n \r\n lblRealID.setText(tblContentList.getValueAt(curRow, 7).toString());\r\n cmbStatus.setSelectedItem(tblContentList.getValueAt(curRow, 8).toString());\r\n\r\n setFrameState(frameState.SELECTED);\r\n }\r\n } \r\n });\r\n }",
"@Override\n public ListOptions getOptions() {\n return new ListOptions();\n }",
"@Override\n public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n storageGridViewAdapter.showCheckBox(true);\n onListItemSelect(position);\n return true;\n }",
"public LinkedJList() {\n this(DEFAULT_CAPACITY);\n }",
"private DefaultTableModel createModel( JList<String> list) {\n\t\t\n\t\tSystem.out.println(\"PlaylistPanel -> SearchMenuPanel\");\n\t\tString[] transferSong = SearchMenuPanel.search(list.getSelectedValue().toString(), panel.aSocket, panel.serverPort); \n\t\tSystem.out.println(\"SearchMenuPanel -> PlaylistPanel\");\n\t\t\n\t\tDefaultTableModel model = new DefaultTableModel(null, new String[]{\"Song Title\", \"Artist\", \"Album\"});\t\t\n\t\tmodel.setRowCount(0);\n\t\tfor (int i = 0; i < transferSong.length; i++)\n\t\t\tmodel.addRow(transferSong[i].split(\"_\"));\n\t\t\n\t\treturn model;\n\t}",
"public TLongArray() {\n\t}",
"public ListModel createBoundListModel(String formProperty) {\n ValueModel valueModel = formModel.getValueModel(formProperty);\n if (valueModel == null) {\n AspectAdapter adapter = new AspectAdapter(formModel\n .getAspectAccessStrategy(), formProperty);\n valueModel = new BufferedListValueModel(adapter);\n formModel.add(formProperty, valueModel);\n }\n return (ListModel)valueModel.get();\n }",
"private LinearLayout createItemSelection() {\n final DialogFragmentProvider.ItemControls controls = DialogFragmentProvider.createItemSelection(getActivity(),m_createItemDlg);\n\n m_itemList = controls.listView;\n\n m_itemList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if(parent.getItemAtPosition(position) == null) {\n return;\n }\n m_itemId = (int)parent.getItemAtPosition(position);\n controls.adapter.setSelectedItem(position);\n controls.adapter.notifyDataSetChanged();\n }\n });\n return controls.layout;\n }",
"public RTwoPanelListBox() {\n }",
"void onListInteraction(int index, boolean isLongClicked);",
"public LongTermTest()\r\n {\r\n super(new LongTermStorage());\r\n }",
"@Override\n public boolean onItemLongClick(AdapterView<?> adapterView, View view, int i, long l) {\n return true;\n }",
"public ObjectProperty<MultipleSelectionModel<T>> selectionModelProperty() {\n return selectionModelProperty;\n }",
"protected ListView<T> createSourceListView() {\n/* 436 */ return createListView();\n/* */ }",
"public Builder clearLongValue() {\n bitField0_ = (bitField0_ & ~0x00000020);\n longValue_ = 0L;\n onChanged();\n return this;\n }",
"@Test\n\tpublic void testSearchWithLargeMinLength() throws Exception {\n\t\tdialog = getDialog();\n\t\tsetMinStringFieldValue(dialog, 100);\n\n\t\tStringTableProvider provider = performSearch();\n\t\tStringTableModel model = (StringTableModel) getInstanceField(\"stringModel\", provider);\n\t\ttoggleDefinedStateButtons(provider, true, true, true, true);\n\t\twaitForTableModel(model);\n\n\t\tassertRowCount(model, 0);\n\t}",
"public jHistorialSeleccionarVoluntario() {\n initComponents();\n \n \n }",
"public JPanel createResourcesPanel() {\n\n JPanel panel = new JPanel(new BorderLayout());\n\n JPanel listPanel = new JPanel(new GridLayout());\n listPanel.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Select Resources:\", TitledBorder.LEFT, TitledBorder.TOP));\n\n ModelListSelectable resourcesModel = new ModelListSelectable(controller.getDemonstration().getResourcesList());\n resourcesJList = new JList(resourcesModel);\n\n resourcesJList.addListSelectionListener(new ListSelectionListener() {\n\n @Override\n public void valueChanged(ListSelectionEvent e) {\n removeResourceBtn.setEnabled(!resourcesJList.isSelectionEmpty());\n }\n });\n\n JScrollPane scrollPane = new JScrollPane(resourcesJList);\n scrollPane.setBorder(PADDING_BORDER);\n listPanel.setMinimumSize(scrollPane.getMinimumSize());\n listPanel.add(scrollPane);\n\n panel.add(listPanel, BorderLayout.NORTH);\n panel.add(createAddAndRemoveButtons(), BorderLayout.CENTER);\n\n return panel;\n }",
"public ByteBuf setLongLE(int index, long value)\r\n/* 512: */ {\r\n/* 513:526 */ ensureAccessible();\r\n/* 514:527 */ _setLongLE(index, value);\r\n/* 515:528 */ return this;\r\n/* 516: */ }",
"public Builder addLongSwitches(Set<String> longSwitches) {\n this.longSwitches.addAll(longSwitches);\n return this;\n }",
"public GenericMotifBrowserPanelContextMenu(final GenericMotifBrowserPanel panel, boolean allowCreateCollection) {\n this.gui=panel.getGUI(); \n this.panel=panel;\n this.engine=gui.getEngine();\n \n DisplayMenuItemListener menuItemListener=new DisplayMenuItemListener();\n JMenuItem showItem=new JMenuItem(SHOW);\n JMenuItem showOnlySelectedItem=new JMenuItem(SHOW_ONLY_SELECTED); \n JMenuItem showAllItem=new JMenuItem(SHOW_ALL); \n JMenuItem hideItem=new JMenuItem(HIDE);\n JMenuItem hideAllItem=new JMenuItem(HIDE_ALL);\n JMenuItem selectShownMotifsItem=new JMenuItem(SELECT_SHOWN_MOTIFS);\n JMenuItem selectOnlyShownMotifsItem=new JMenuItem(SELECT_ONLY_SHOWN_MOTIFS);\n JMenuItem createCollectionItem=new JMenuItem(CREATE_MOTIF_COLLECTION); \n\n dbmenu=new ExternalDBLinkMenu(null, gui);\n selectMotifsFromMenu=new JMenu(SELECT_MOTIFS_FROM);\n selectOnlyMotifsFromMenu=new JMenu(SELECT_ONLY_MOTIFS_FROM);\n selectFromCollectionListener=new SelectFromCollectionListener();\n clearAndselectFromCollectionListener=new ClearAndSelectFromCollectionListener();\n \n\n showItem.addActionListener(menuItemListener);\n showOnlySelectedItem.addActionListener(menuItemListener);\n showAllItem.addActionListener(menuItemListener);\n hideItem.addActionListener(menuItemListener);\n hideAllItem.addActionListener(menuItemListener); \n selectShownMotifsItem.addActionListener(menuItemListener);\n selectOnlyShownMotifsItem.addActionListener(menuItemListener);\n if (allowCreateCollection) createCollectionItem.addActionListener(menuItemListener); \n ColorMenuListener colormenulistener=new ColorMenuListener() {\n public void newColorSelected(Color color) {\n if (color==null) return;\n gui.getVisualizationSettings().setFeatureColor(selectedMotifNames, color, true);\n panel.repaint();\n }\n };\n ColorMenu colorMenu=new ColorMenu(COLOR_SUBMENU_HEADER,colormenulistener,panel);\n\n displayMotif=new JMenuItem(DISPLAY_MOTIF); \n displayMotif.addActionListener(menuItemListener);\n this.add(displayMotif); \n limitedToOne.add(displayMotif);\n \n this.add(showItem);\n this.add(showOnlySelectedItem); \n this.add(showAllItem); \n this.add(hideItem); \n this.add(hideAllItem); \n this.add(colorMenu);\n this.add(new JSeparator()); \n this.add(selectShownMotifsItem);\n this.add(selectOnlyShownMotifsItem);\n this.add(selectMotifsFromMenu);\n this.add(selectOnlyMotifsFromMenu);\n this.add(new JSeparator()); \n if (allowCreateCollection) {\n this.add(createCollectionItem);\n }\n compareMotifToOthers=new JMenuItem(\"Compare\"); \n compareMotifToOthers.addActionListener(menuItemListener);\n this.add(compareMotifToOthers); \n limitedToOne.add(compareMotifToOthers); \n \n saveMotifLogo=new JMenuItem(SAVE_MOTIF_LOGO);\n saveMotifLogo.addActionListener(menuItemListener); \n this.add(saveMotifLogo); \n limitedToOne.add(saveMotifLogo);\n \n this.add(dbmenu);\n limitedToOne.add(dbmenu);\n }",
"public Builder setLongValue(long value) {\n bitField0_ |= 0x00000020;\n longValue_ = value;\n onChanged();\n return this;\n }",
"public MultimediaList() {\n initComponents();\n chbMovie.setSelected(true);\n chbSeries.setSelected(true);\n chbLS.setSelected(true);\n setFiltered(new ArrayList());\n getDb().semiDeepCopy(getDb().getMultimedias(), filtered);\n setBounds(0, 0, 600, 500);\n setTable(getDb().getMultimedias());\n }",
"public ShowList(String title) {\n id = title;\n initComponents();\n updateListModel();\n }",
"public QS001OtherItemListBox() {\r\n super();\r\n }",
"public SparseLongKeyDummyVector(long dim) {\n this(dim, INIT_ALLOC_SIZE);\n }",
"public Server() {\n initComponents();\n listModel = new DefaultListModel<>();\n listModel2 = new DefaultListModel<>();\n \n }",
"public ListeMask(astrainterface serveur,int minLenght, int maxLenght, Locale locale, int caseType,InterfaceModel model,Liste parent,int longueurtexte) {\r\r\r\r\r\r\n super(minLenght, maxLenght, locale, caseType);\r\r\r\r\r\r\n m_parent=parent;\r\r\r\r\r\r\n m_model=model;\r\r\r\r\r\r\n m_serveur=serveur;\r\r\r\r\r\r\n m_longeur_saisie=longueurtexte;\r\r\r\r\r\r\n }",
"private JPanel createScrollPaneDemonstrations() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Select the desired demonstrations:\", TitledBorder.LEFT, TitledBorder.TOP));\n modelDemonstration = new ModelTableDemonstrationsList(demonstrationsList);\n demonstrationsListJTable = new JTable(modelDemonstration);\n demonstrationsListJTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n demonstrationsListJTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n //demonstrationApplicationController.newDemonstrationApplication(((Demonstration)modelDemonstration.getValueAt(demonstrationsListJTable.getSelectedRow(), demonstrationsListJTable.getSelectedColumn())));\n }\n });\n\n JScrollPane scrollPane = new JScrollPane(demonstrationsListJTable);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.setMinimumSize(scrollPane.getMinimumSize());\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> whereLong(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func2<? super T, ? super Long, Boolean> clause) {\r\n\t\treturn new Where.LongIndexed<T>(source, clause);\r\n\t}",
"public StaffMenu() {\n initComponents();\n \n //Init with blank text \n ageLabel.setText(\"\");\n staffNumber.setText(\"\");\n genderLabel.setText(\"\");\n \n //Reading staff list \n ListOfStaff model_staff_list = new ListOfStaff(ListOfStaff.getStaff());\n staffList.setModel(model_staff_list); \n }",
"public ExamSelectDialog( java.awt.Frame parent, boolean modal )\n {\n super( parent, modal );\n initComponents();\n listmodel = new DefaultListModel<String>();\n examlist.setModel( listmodel );\n }",
"public static final SourceModel.Expr showLong(SourceModel.Expr i) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showLong), i});\n\t\t}",
"public ByteBuf setLong(int index, long value)\r\n/* 500: */ {\r\n/* 501:514 */ ensureAccessible();\r\n/* 502:515 */ _setLong(index, value);\r\n/* 503:516 */ return this;\r\n/* 504: */ }",
"public LongMatrixToken(long[][] value) throws IllegalActionException {\n\t\tthis(value, DO_COPY);\n\t}",
"public int getSelection(ListSelectionModel lsm) {\n \t\tint selection = -1;\n \t\t// Find out which indexes are selected.\n \t\tint minIndex = lsm.getMinSelectionIndex();\n \t\tint maxIndex = lsm.getMaxSelectionIndex();\n \t\tfor (int i = minIndex; i <= maxIndex; i++) {\n \t\t\tif (lsm.isSelectedIndex(i)) {\n \t\t\t\tselection = i;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\treturn selection;\n \t}",
"public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}",
"private void bind() \r\n\t{\r\n\t\tsuper.menuPut(\"list\", newJMenu(\"List\", 'L'));\r\n\t\tsuper.menuPut(\"list/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionNew(x));\r\n\t\tsuper.menuPut(\"list/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionLoad(x));\r\n\t\tsuper.menuPut(\"list/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionSave(x));\r\n\t\tsuper.menuPut(\"list/***1\", \"\");\r\n\t\tsuper.menuPut(\"list/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionAdd(x));\r\n\t\tsuper.menuPut(\"list/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionRemove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"tree\", newJMenu(\"Tree\", 'T'));\r\n\t\tsuper.menuPut(\"tree/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK), x -> menuEdit.actionNew(x));\r\n\t\tsuper.menuPut(\"tree/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK), x -> menuEdit.actionLoad(x));\r\n\t\tsuper.menuPut(\"tree/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK), x -> menuEdit.actionSave(x));\r\n\t\tsuper.menuPut(\"tree/***1\", \"\");\r\n\t\tsuper.menuPut(\"tree/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK), x -> menuEdit.actionAdd(x));\r\n\t\tsuper.menuPut(\"tree/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK), x -> menuEdit.actionRemove(x));\r\n\t\tsuper.menuPut(\"tree/move\", newJMenuItem(\"Move\", 'V', KeyEvent.VK_6, ActionEvent.SHIFT_MASK), x -> menuEdit.actionMove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"graph\", newJMenu(\"Graph\", 'G'));\r\n\t\tsuper.menuPut(\"graph/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.CTRL_MASK), x -> menuHelp.actionNew(x));\r\n\t\tsuper.menuPut(\"graph/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.CTRL_MASK), x -> menuHelp.actionOpen(x));\r\n\t\tsuper.menuPut(\"graph/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.CTRL_MASK), x -> menuHelp.actionSave(x));\r\n\t\tsuper.menuPut(\"graph/***1\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-node\", newJMenuItem(\"Add node\", 'A', KeyEvent.VK_4, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddNode(x));\r\n\t\tsuper.menuPut(\"graph/remove-node\", newJMenuItem(\"Remove node\", 'R', KeyEvent.VK_5, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveNode(x));\r\n\t\tsuper.menuPut(\"graph/move-node\", newJMenuItem(\"Move node\", 'V', KeyEvent.VK_6, ActionEvent.CTRL_MASK), x -> menuHelp.actionMoveNode(x));\r\n\t\tsuper.menuPut(\"graph/***2\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-link\", newJMenuItem(\"Add link\", 'D', KeyEvent.VK_7, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddLink(x));\r\n\t\tsuper.menuPut(\"graph/remove-link\", newJMenuItem(\"Remove link\", 'L', KeyEvent.VK_8, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveLink(x));\r\n\t\t\r\n\t\tsuper.menuDump();\t\t\r\n\t}",
"public void setSelectionLimit(long limit)\n {\n if (limit < 0L) {\n this.selLimitCount = -1L;\n } else\n if (limit == 0L) {\n this.selLimitCount = 1L;\n } else {\n this.selLimitCount = limit;\n }\n }",
"public static interface SimpleSelectable extends IsSelectable {\n public void setSelected(boolean set);\n public boolean isSelected();\n }"
] | [
"0.5945575",
"0.5679786",
"0.5648489",
"0.5195322",
"0.5162112",
"0.5061932",
"0.5049306",
"0.5037449",
"0.50229406",
"0.5001313",
"0.49434382",
"0.492763",
"0.489755",
"0.489071",
"0.48868638",
"0.48819512",
"0.4867649",
"0.48293594",
"0.48257077",
"0.47941777",
"0.4783408",
"0.47734773",
"0.4772586",
"0.47492287",
"0.4718046",
"0.469831",
"0.4678598",
"0.4676582",
"0.46461204",
"0.46374315",
"0.46299848",
"0.46274984",
"0.46235603",
"0.45968273",
"0.45920345",
"0.45876613",
"0.458341",
"0.45691085",
"0.45607024",
"0.4558475",
"0.4550417",
"0.45344314",
"0.4529235",
"0.45191577",
"0.45130008",
"0.4512596",
"0.45089316",
"0.45023993",
"0.4499741",
"0.4490624",
"0.4487817",
"0.4487127",
"0.4487127",
"0.44825953",
"0.44585475",
"0.44527218",
"0.4452404",
"0.44510654",
"0.4445011",
"0.44450027",
"0.4437933",
"0.4432487",
"0.44324636",
"0.442811",
"0.4426746",
"0.44208592",
"0.4415474",
"0.44141698",
"0.44140312",
"0.44126436",
"0.4409341",
"0.4408474",
"0.43932828",
"0.43917722",
"0.43874434",
"0.43847594",
"0.4377956",
"0.4376065",
"0.437054",
"0.43685696",
"0.43653646",
"0.4363616",
"0.43610853",
"0.43608022",
"0.435984",
"0.43582848",
"0.4354599",
"0.43475935",
"0.43475127",
"0.43332556",
"0.4328055",
"0.43260014",
"0.4325992",
"0.43181238",
"0.4316471",
"0.43164018",
"0.43161044",
"0.43122",
"0.4311909",
"0.43046993"
] | 0.7416025 | 0 |
no changes will be made | public void addLongListSelectionListener(LongListSelectionListener x) {
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void just() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"protected synchronized void clearChanged() {\n changed = false;\n }",
"static void setNotAutoCopy(){isAutoCopying=false;}",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean update() {\n\t\treturn false;\n\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n\tpublic void imprimir() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void baocun() {\n\t\t\n\t}",
"@Override\n public void reset() \n {\n\n }",
"@Override\n public void bankrupt() {\n this.mortgaged = false;\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"protected void reset() {\n\t\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"static void setNotCopying(){isCopying=false;}",
"public void clearUpadted() {\n this.updated = false;\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}",
"@Override\n public void reset() {\n\n }",
"@Override\n\tpublic void reset() {\n\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\tpublic void alterar() {\n\t\t\n\t}",
"private void setDirty() {\n\t}",
"@Override\n public boolean isDirty() {\n return false;\n }",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void reset() {\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n public boolean isDirty()\n {\n return false;\n }",
"private void reset() {\n }",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"public void willbeUpdated() {\n\t\t\n\t}",
"@Override\n public boolean canUpdate() { return false; }",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String update() {\n\t\treturn null;\r\n\t}",
"public boolean method_218() {\r\n return false;\r\n }",
"@Override\r\n\tpublic void uniqueUpdate() {\n\r\n\t}",
"@Override\n\tpublic boolean paie() {\n\t\treturn false;\n\t}",
"void clearModifiedFlag();",
"@Override\n\t\t\tpublic void clear() {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}",
"@Override\n void undo() {\n assert false;\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"@Override\n\tpublic void reset() {\n\t}",
"@Override\r\n\tpublic boolean isConcave() {\n\t\treturn false;\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void reset() {\n }",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"private void poetries() {\n\n\t}",
"public void working()\n {\n \n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void preUpdate() {\n\n\t}",
"@Override\n protected void clear() {\n\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tpublic void clearChanged() {\n\t\tthis.changed = false;\n\t}",
"public void update(){\n \t//NOOP\n }",
"@Override\n public void reset()\n {\n super.reset();\n }"
] | [
"0.65103716",
"0.64866143",
"0.6443568",
"0.638618",
"0.63795954",
"0.631629",
"0.6306955",
"0.6303124",
"0.6283422",
"0.6271734",
"0.6264131",
"0.62495416",
"0.62236273",
"0.62236273",
"0.62236273",
"0.6216388",
"0.6213517",
"0.6213517",
"0.6213517",
"0.6213517",
"0.6170897",
"0.6170133",
"0.6170133",
"0.61660564",
"0.61553115",
"0.61479527",
"0.6128585",
"0.6116301",
"0.61054635",
"0.60972255",
"0.60908043",
"0.6084218",
"0.6081389",
"0.6052742",
"0.60522205",
"0.6047936",
"0.60403407",
"0.60312134",
"0.6023923",
"0.6023923",
"0.6022279",
"0.59796816",
"0.5970321",
"0.5958604",
"0.5958604",
"0.5952796",
"0.594676",
"0.5944437",
"0.59216017",
"0.59186125",
"0.59103507",
"0.5904077",
"0.5900517",
"0.5895206",
"0.589461",
"0.5893782",
"0.5893662",
"0.5890754",
"0.5875711",
"0.58708507",
"0.5862801",
"0.586274",
"0.5862323",
"0.5854968",
"0.5854493",
"0.5853903",
"0.5852429",
"0.5847665",
"0.5847665",
"0.5846672",
"0.584215",
"0.5838084",
"0.5833885",
"0.58285445",
"0.58154637",
"0.58154637",
"0.58094877",
"0.5798175",
"0.5796878",
"0.5796311",
"0.578591",
"0.57828337",
"0.57828337",
"0.578173",
"0.57782376",
"0.57729685",
"0.5771234",
"0.57680243",
"0.5765456",
"0.57522243",
"0.5746899",
"0.5746639",
"0.57229024",
"0.57156986",
"0.5714978",
"0.5713042",
"0.57101387",
"0.57070494",
"0.57046074",
"0.57028526",
"0.5700782"
] | 0.0 | -1 |
FIXME: should be allowed? | public void insertIndexInterval(long index, long length, boolean before) {
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean func_70814_o() { return true; }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n protected void prot() {\n }",
"@Override\n public int describeContents() { return 0; }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"protected boolean func_70041_e_() { return false; }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override public int describeContents() { return 0; }",
"public void smell() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void kk12() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public abstract void mo70713b();",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"private void poetries() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"public void mo38117a() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"public abstract void mo27386d();",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public abstract void mo27385c();",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public abstract String mo41079d();",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public abstract String mo118046b();",
"public abstract String mo13682d();",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic void selfValidate() {\n\t\t\n\t}",
"abstract int pregnancy();",
"public void m23075a() {\n }",
"public abstract void mo6549b();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"public abstract Object mo1185b();",
"void unableToListContents();",
"public abstract void mo30696a();",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public boolean method_2453() {\r\n return false;\r\n }",
"private void test() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public boolean method_4088() {\n return false;\n }",
"@Override\r\n\tprotected void validate() {\n\t}",
"public abstract Object mo1771a();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public void mo21877s() {\n }",
"@Override\n public void init() {\n }",
"public abstract String mo9239aw();",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"public boolean method_4093() {\n return false;\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }"
] | [
"0.59193146",
"0.5796188",
"0.578941",
"0.57590693",
"0.5755427",
"0.5689384",
"0.5662894",
"0.5630142",
"0.5613885",
"0.56084406",
"0.55921406",
"0.5563422",
"0.5544401",
"0.54950285",
"0.5491569",
"0.54870826",
"0.5471602",
"0.54674363",
"0.54638946",
"0.54516006",
"0.5444741",
"0.5444741",
"0.5442269",
"0.54264396",
"0.54199386",
"0.5415871",
"0.5404681",
"0.5380582",
"0.53746265",
"0.5372142",
"0.536996",
"0.53677756",
"0.5349108",
"0.53186774",
"0.5304389",
"0.5277227",
"0.5272919",
"0.5266777",
"0.52652186",
"0.52532417",
"0.5240413",
"0.5235331",
"0.5227462",
"0.522196",
"0.5219773",
"0.52156395",
"0.52123517",
"0.5206059",
"0.52048135",
"0.52014506",
"0.51995003",
"0.51918906",
"0.51918906",
"0.5188911",
"0.5184321",
"0.5171091",
"0.5166136",
"0.51610553",
"0.51610553",
"0.51610553",
"0.51610553",
"0.51610553",
"0.51514906",
"0.51476735",
"0.51439744",
"0.51428044",
"0.513931",
"0.51379925",
"0.5137875",
"0.51376253",
"0.5135106",
"0.5131476",
"0.5128608",
"0.51127076",
"0.5107681",
"0.5106025",
"0.5094517",
"0.5087211",
"0.5084409",
"0.5084404",
"0.508102",
"0.508102",
"0.508102",
"0.508102",
"0.508102",
"0.508102",
"0.508102",
"0.5074724",
"0.5074163",
"0.5072878",
"0.5063687",
"0.50609875",
"0.5060863",
"0.5057087",
"0.5056222",
"0.5056222",
"0.5056222",
"0.50521463",
"0.50491345",
"0.50483215",
"0.5044182"
] | 0.0 | -1 |
FIXME: should be allowed? | public void removeIndexInterval(long index0, long index1) {
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean func_70814_o() { return true; }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n protected void prot() {\n }",
"@Override\n public int describeContents() { return 0; }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"protected boolean func_70041_e_() { return false; }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override public int describeContents() { return 0; }",
"public void smell() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void kk12() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public abstract void mo70713b();",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"private void poetries() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"public void mo38117a() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"public abstract void mo27386d();",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public abstract void mo27385c();",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public abstract String mo41079d();",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public abstract String mo118046b();",
"public abstract String mo13682d();",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic void selfValidate() {\n\t\t\n\t}",
"abstract int pregnancy();",
"public void m23075a() {\n }",
"public abstract void mo6549b();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"public abstract Object mo1185b();",
"void unableToListContents();",
"public abstract void mo30696a();",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public boolean method_2453() {\r\n return false;\r\n }",
"private void test() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public boolean method_4088() {\n return false;\n }",
"@Override\r\n\tprotected void validate() {\n\t}",
"public abstract Object mo1771a();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public void mo21877s() {\n }",
"@Override\n public void init() {\n }",
"public abstract String mo9239aw();",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"public boolean method_4093() {\n return false;\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}",
"@Override\r\n protected void parseAttributes()\r\n {\n\r\n }"
] | [
"0.59193146",
"0.5796188",
"0.578941",
"0.57590693",
"0.5755427",
"0.5689384",
"0.5662894",
"0.5630142",
"0.5613885",
"0.56084406",
"0.55921406",
"0.5563422",
"0.5544401",
"0.54950285",
"0.5491569",
"0.54870826",
"0.5471602",
"0.54674363",
"0.54638946",
"0.54516006",
"0.5444741",
"0.5444741",
"0.5442269",
"0.54264396",
"0.54199386",
"0.5415871",
"0.5404681",
"0.5380582",
"0.53746265",
"0.5372142",
"0.536996",
"0.53677756",
"0.5349108",
"0.53186774",
"0.5304389",
"0.5277227",
"0.5272919",
"0.5266777",
"0.52652186",
"0.52532417",
"0.5240413",
"0.5235331",
"0.5227462",
"0.522196",
"0.5219773",
"0.52156395",
"0.52123517",
"0.5206059",
"0.52048135",
"0.52014506",
"0.51995003",
"0.51918906",
"0.51918906",
"0.5188911",
"0.5184321",
"0.5171091",
"0.5166136",
"0.51610553",
"0.51610553",
"0.51610553",
"0.51610553",
"0.51610553",
"0.51514906",
"0.51476735",
"0.51439744",
"0.51428044",
"0.513931",
"0.51379925",
"0.5137875",
"0.51376253",
"0.5135106",
"0.5131476",
"0.5128608",
"0.51127076",
"0.5107681",
"0.5106025",
"0.5094517",
"0.5087211",
"0.5084409",
"0.5084404",
"0.508102",
"0.508102",
"0.508102",
"0.508102",
"0.508102",
"0.508102",
"0.508102",
"0.5074724",
"0.5074163",
"0.5072878",
"0.5063687",
"0.50609875",
"0.5060863",
"0.5057087",
"0.5056222",
"0.5056222",
"0.5056222",
"0.50521463",
"0.50491345",
"0.50483215",
"0.5044182"
] | 0.0 | -1 |
SI NO EXISTE LA BASE DE DATOS LA CREA Y EJECUTA LOS SIG. COMANDOS | @Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(CREATE_TABLE);
guardarUsuarios(db);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void instalarBaseDatos()\r\n\t{\r\n\t\tString nombrebuscado = \"information_schema\";\r\n\t\tArrayList parametrosbd = parametrosConectorBaseDatos();\r\n\t\tif(parametrosbd != null)\r\n\t\t{\r\n\t\t\tif(parametrosbd.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnombrebuscado =(String)parametrosbd.get(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString nombrebd = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector(\"information_schema\");\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tnombrebd = CrearBD.buscarBaseDatos(nombrebuscado, conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tif(nombrebd == null)\r\n\t\t{\r\n\t\t\tint numerotablascreadas = 0;\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tConector conectora = new Conector(\"information_schema\");\r\n\t\t\t\tconectora.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.crearBaseDatos(nombrebuscado, conectora);\r\n\t\t\t\tconectora.terminarConexionBaseDatos();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 1; i < 20; i++) \r\n\t\t\t\t{\r\n\t\t\t\t\tString nombretabla = i+\".sql\";\r\n\t\t\t\t\tString contenidotabla = ejecutarCodigoSQLtablas(nombretabla);\r\n\t\t\t\t\tif(!contenidotabla.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tConector conectorb = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorb.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(contenidotabla, conectorb);\r\n\t\t\t\t\t\tconectorb.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tnumerotablascreadas++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo \"+nombretabla,\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numerotablascreadas == 19)\r\n\t\t\t\t{\r\n\t\t\t\t\tejecutarCodigoSQLdatos(nombrebuscado);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }",
"public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }",
"private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }",
"public void CARGARCODIGO(String console,String charI,String charF,NSRTableModel t){\n\t\tList<DGENERACIONCODIGOS> listDGeneracionCodigo =new ArrayList<DGENERACIONCODIGOS>();\n\t\tMap<String,String> mapa;\n\t\tint j=0;\n\t\tString codigo=\"\";\n\t\t/*LIMPIAR PANEL*/\n\t\ttry{\n\t\t\t//listGeneracionCodigo \t=\t(new GENERACIONCODIGOSDao()).listar(1,\"IDEMPRESA = ? and PARAMETRO = ?\",ConfigInicial.LlenarConfig()[8].toString(),\"FrmPackingList\");\n//\t\t\tlistDGeneracionCodigo \t=\t(new DGENERACIONCODIGOSDao()).listar();\n\t\t\t/*****************************TRAER DATOS DE CONSOLE*************************/\n\t\t\tArrayList<String> listcodigo=new ArrayList<String>();\n\t\t\tfor(int x=1;x<=listGeneracionCodigo.size();x++){\n\t\t\t\tlistcodigo.add(codigo=Constantes.buscarFragmentoTexto(console,charI,charF,x));\n\t\t\t}\n\t\t\t/**************************RECORRER CABECERA********************************/\n\t\t\tfor(GENERACIONCODIGOS gc : listGeneracionCodigo){\n\t\t\t\tmapa= new HashMap<String,String>();\n\t\t\t\tlistDGeneracionCodigo \t=\t(new DGENERACIONCODIGOSDao()).listar(1,\"IDEMPRESA = ? and IDGENERACION = ?\",gc.getIDEMPRESA(),gc.getIDGENERACION());\n\t\t\t\t/*BUSCAR CÓDIGO CON LONGITUD REQUERIDA*/\n\t\t\t\tcodigo=buscarCadenaxLongitud(listcodigo,gc.getBARCODETOTAL());\n\t\t\t\tj=0;\n\t\t\t\tfor(DGENERACIONCODIGOS dgc : listDGeneracionCodigo){\n\t\t\t\t\tmapa.put(dgc.getPARAMETRO(), codigo.substring(j,j+dgc.getNUMDIGITO()));\n\t\t\t\t\tj+=dgc.getNUMDIGITO();\n\t\t\t\t}\n\t\t\t\t/**********************************LLENAR DATOS**************************************/\n\t\t\t\tmapaGen = mapa;\n\t\t\t\tt.addRow(new Object[] { getPack().getIDEMPRESA(), getPack().getIDSUCURSAL(), getPack().getIDPACKING(),\n\t\t\t\t\t\tgetDetalleTM().getRowCount() + 1, mapaGen.get(\"NROPALETA\"),mapaGen.get(\"IDPRODCUTO\"), \"\",mapaGen.get(\"IDLOTEP\"), \"\", \"\", 0.0, 0.0, 0.0 });\n\t\t\t\t\tmapaGen = new HashMap<String,String>();\n\t\t\t}\n\t\t}catch (NisiraORMException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tConstantes.log.warn(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }",
"private void loadMaTauVaoCBB() {\n cbbMaTau.removeAllItems();\n try {\n ResultSet rs = LopKetNoi.select(\"select maTau from Tau\");\n while (rs.next()) {\n cbbMaTau.addItem(rs.getString(1));\n }\n } catch (Exception e) {\n System.out.println(\"Load ma tau vao cbb that bai\");\n }\n\n }",
"public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }",
"public void iniciarBatalha() {\r\n\t\trede.iniciarPartidaRede();\r\n\t}",
"public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void enviarLecturasGIS(LecturasSensor lecturaFinal) {\n\t// Valido si hay conexion con la BBDD Remota.\n\tr = sens.ValidarConexion();\n\tif (r == false) {\n\t logger.warn(\"Viento encolado: Valor: \"\n\t\t + lecturaFinal.getVelocidadAnemometro() + \" con Fecha: \"\n\t\t + lecturaFinal.getFecha());\n\t // No hay conexion y guardo la lectura en memoria.\n\t arrayLecturas.add(lecturaFinal);\n\t // No hay lectura y guardo la lectura en BBDD Local.\n\t conDB.insertarLecturasBBDD(lecturaFinal);\n\t} else {\n\n\t // Escribo la cata en GIS\n\t if (logger.isInfoEnabled()) {\n\t\tlogger.info(\"Se va a escribir un nuevo registro de velocidad de viento en la pasarela\");\n\t }\n\n\t IR.hiloescucha.connDB.insertaregviento(\n\t\t lecturaFinal.getNombreSensor(),\n\t\t lecturaFinal.getVelocidadAnemometro(),\n\t\t lecturaFinal.getFecha());\n\t}\n\n }",
"private void verificarDatos(int fila) {\n try {\n colValidada = -1;\n\n float cantidad = 1;\n float descuento = 0;\n float precio = 1;\n float stock = 1;\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad) != null) {\n cantidad = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colCantidad).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV) != null) {\n precio = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colPrecioConIGV).toString());\n }\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento) != null) {\n descuento = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colDescuento).toString());\n }\n\n if (precio < 0) {\n JOptionPane.showMessageDialog(this, \"el precio debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colPrecioConIGV);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDesc);\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colImporSinDescConIgv);\n colValidada = oCLOrdenCompra.colPrecioConIGV;\n return;\n }\n\n if (descuento > cantidad * precio) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser mayor al Importe Bruto\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n oCLOrdenCompra.CalcularSubtotales();\n oCLOrdenCompra.calcularImportes();\n\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (descuento < 0) {\n JOptionPane.showMessageDialog(this, \"El descuento no puede ser menor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colDescuento);\n descuento = 0;\n TblOrdenCompraDetalle.setValueAt(CLRedondear.Redondear((cantidad * precio) - descuento, 2), fila, oCLOrdenCompra.colImporConDesc);//con\n colValidada = oCLOrdenCompra.colDescuento;\n return;\n }\n\n if (cantidad <= 0) {\n JOptionPane.showMessageDialog(this, \"La cantidad debe ser mayor a cero\");\n TblOrdenCompraDetalle.setValueAt(null, fila, oCLOrdenCompra.colCantidad);\n colValidada = oCLOrdenCompra.colCantidad;\n return;\n }\n /* if(precio<=0)\n {\n JOptionPane.showMessageDialog(null,\"El precio tiene q ser mayor a cero\");\n colValidada=oCLOrdenCompra.colPrecio;\n return;\n }*/\n if (TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock) != null) {\n stock = Float.parseFloat(TblOrdenCompraDetalle.getValueAt(fila, oCLOrdenCompra.colStock).toString());\n }\n if (cantidad > stock) {\n /* JOptionPane.showMessageDialog(null,\"La cantidad no debe ser mayor al stock disponible\");\n TblOrdenCompraDetalle.setValueAt(null, fila,oCLOrdenCompra.colCantidad);\n colValidada=oCLOrdenCompra.colCantidad;\n return;*/\n }\n\n int col = TblOrdenCompraDetalle.getSelectedColumn();\n if (!eventoGuardar) {\n if (col == oCLOrdenCompra.colCantidad) {\n oCLOrdenCompra.calcularPrecio(fila);\n }\n }\n\n } catch (Exception e) {\n cont++;\n System.out.println(\"dlgGestionOrdenCompra-metodo Verificar datos: \"+e);\n }\n }",
"@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"[email protected]\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\n\t}",
"private void loadCarga(String NroGuia){\r\n log_CGuias[] log_cguias_carga = Ln.getInstance().find_log_CGuias(NroGuia, \"\", \"nguia\", Integer.parseInt(rows));\r\n \r\n tf_pcarga.setText(String.valueOf(log_cguias_carga[0].getNumpuerta()));\r\n tf_chofer.setText(log_cguias_carga[0].getChofer());\r\n tf_veh1.setText(log_cguias_carga[0].getVeh1());\r\n tf_veh2.setText(log_cguias_carga[0].getVeh2());\r\n if (log_cguias_carga[0].getAyud1() != null)\r\n tf_ayud1.setText(log_cguias_carga[0].getAyud1());\r\n else\r\n tf_ayud1.setText(\"\");\r\n if (log_cguias_carga[0].getAyud2() != null)\r\n tf_ayud2.setText(log_cguias_carga[0].getAyud2());\r\n else\r\n tf_ayud2.setText(\"\");\r\n tf_cheqp.setText(log_cguias_carga[0].getCheq_pta());\r\n if (log_cguias_carga[0].getIdsupruta() != null)\r\n tf_supruta.setText(log_cguias_carga[0].getIdsupruta());\r\n else\r\n tf_supruta.setText(\"\");\r\n\r\n lb_chofer.setText(log_cguias_carga[0].getSchofer());\r\n lb_ayud1.setText(log_cguias_carga[0].getSayud1());\r\n lb_cheqp.setText(log_cguias_carga[0].getScheq_pta());\r\n lb_supruta.setText(log_cguias_carga[0].getSsup_ruta());\r\n \r\n }",
"public void realtorioCli() throws ClassNotFoundException, FileNotFoundException, DocumentException, SQLException {\r\n ContCli cocli = new ContCli();\r\n \r\n\r\n //Instancia um novo documento\r\n Document doc = new Document();\r\n \r\n //Define o local do documento\r\n PdfWriter objpdf = PdfWriter.getInstance(doc, new FileOutputStream(\"relatorioClientes.pdf\"));\r\n doc.open();\r\n PdfPTable tb = new PdfPTable(1);\r\n tb.setWidthPercentage(50);\r\n tb.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n tb.setSpacingAfter(10f);\r\n tb.setSpacingBefore(10f);\r\n \r\n PdfPCell cel = new PdfPCell(new Paragraph(\"Relatório Clientes.\"));\r\n cel.setBorderColor(BaseColor.BLACK);\r\n cel.setPaddingLeft(10);\r\n cel.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n cel.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n tb.addCell(cel);\r\n\r\n doc.add(tb);\r\n\r\n try {\r\n PdfPTable tabela = new PdfPTable(4); // 4 colunas.\r\n tabela.setWidthPercentage(100); //largura 100%\r\n tabela.setSpacingBefore(10f); //espaços antes da tabela\r\n tabela.setSpacingAfter(10f); //espaços antes da tabela\r\n\r\n float[] larguraColuna = {1f, 1f, 1f, 1f};\r\n tabela.setWidths(larguraColuna);\r\n\r\n PdfPCell celula01 = new PdfPCell(new Paragraph(\"Código\"));\r\n celula01.setBorderColor(BaseColor.BLACK);\r\n celula01.setPaddingLeft(10);\r\n celula01.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula01.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n PdfPCell celula02 = new PdfPCell(new Paragraph(\"Nome\"));\r\n celula02.setBorderColor(BaseColor.BLACK);\r\n celula02.setPaddingLeft(10);\r\n celula02.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula02.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n PdfPCell celula03 = new PdfPCell(new Paragraph(\"CPF\"));\r\n celula03.setBorderColor(BaseColor.BLACK);\r\n celula03.setPaddingLeft(10);\r\n celula03.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula03.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n PdfPCell celula04 = new PdfPCell(new Paragraph(\"Divida\"));\r\n celula04.setBorderColor(BaseColor.BLACK);\r\n celula04.setPaddingLeft(10);\r\n celula04.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula04.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n tabela.addCell(celula01);\r\n tabela.addCell(celula02);\r\n tabela.addCell(celula03);\r\n tabela.addCell(celula04);\r\n for (Cliente cli : cocli.selecCli()) {\r\n\r\n //Set Column widths\r\n //Para evitar que a borda da célula e o conteúdo se sobreponham, \r\n //se você tiver tendo bordas de células grossas\r\n //celula01.setUserBorderPadding(true);\r\n //celula02.setUserBorderPadding(true);\r\n //celula03.setUserBorderPadding(true);\r\n doc.add(new Paragraph());\r\n\r\n celula01 = new PdfPCell(new Paragraph(\"\" + cli.getCod()));\r\n celula01.setBorderColor(BaseColor.BLACK);\r\n celula01.setPaddingLeft(10);\r\n celula01.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula01.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n celula02 = new PdfPCell(new Paragraph(cli.getNome()));\r\n celula02.setBorderColor(BaseColor.BLACK);\r\n celula02.setPaddingLeft(10);\r\n celula02.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula02.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n celula03 = new PdfPCell(new Paragraph(cli.getCpf()));\r\n celula03.setBorderColor(BaseColor.BLACK);\r\n celula03.setPaddingLeft(10);\r\n celula03.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula03.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n\r\n celula04 = new PdfPCell(new Paragraph(\"R$\" + cli.getDiv()));\r\n celula04.setBorderColor(BaseColor.BLACK);\r\n celula04.setPaddingLeft(10);\r\n celula04.setHorizontalAlignment(Element.ALIGN_CENTER);\r\n celula04.setVerticalAlignment(Element.ALIGN_MIDDLE);\r\n tabela.addCell(celula01);\r\n tabela.addCell(celula02);\r\n tabela.addCell(celula03);\r\n tabela.addCell(celula04);\r\n\r\n// String linha = \"\";\r\n// linha += (\"Codigo: \" + contatos.getCodigoContato());\r\n// linha += (\" Nome: \" + contatos.getNomeContato());\r\n// linha += (\" Celular: \" + contatos.getNumCelular());\r\n// linha += (\" Fixo: \" + contatos.getNumFixo());\r\n// documento.add(new Paragraph(linha));\r\n }\r\n doc.add(tabela);\r\n\r\n doc.close();\r\n objpdf.close();\r\n doc.close();\r\n objpdf.close();\r\n } catch (DocumentException e) {\r\n e.printStackTrace();\r\n }\r\n PDF pd = new PDF();\r\n pd.abreArquivoPdf(\"relatorioClientes.pdf\");\r\n }",
"private void eleccionCasoDeUso(String casoDeUso) throws MareException{\t\t\n\t // Seteo de titulo y ID_BUSINESS\n\t if(casoDeUso.equals(LP_ID_ASOC_TERR)){\n\t\t\tidBusiness = ID_BUSINESS_ASOC_TERR;\n\t\t\tcodTituloLP = \"0378\";\n\t\t\tfichero= \"muestraUG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_UG)){\n\t\t\tidBusiness = ID_BUSINESS_UG;\n\t\t\tcodTituloLP = \"0377\";\n\t\t\tfichero = \"muestraMUG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_CREAR_UA)){\n\t\t\tidBusiness = ID_BUSINESS_CREAR_UA;\n\t\t\tcodTituloLP = \"0637\";\n\t\t\tfichero = \"muestraCUAG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_ELIM_UA)){\n\t\t\tidBusiness = ID_BUSINESS_ELIM_UA;\n\t\t\tcodTituloLP = \"0380\";\n\t\t\tfichero = \"EliminaUnidadAdministrativa.txt\";\n\t }else if(casoDeUso.equals(LP_ID_CREAR_EV)){\n\t\t\tidBusiness = ID_BUSINESS_CREAR_EV;\n\t\t\tcodTituloLP = \"0381\";\n\t\t\tfichero = \"altaZON.txt\";\n\t }else if(casoDeUso.equals(LP_ID_MOD_EV)){\n\t\t\tidBusiness = ID_BUSINESS_MOD_EV;\n\t\t\tcodTituloLP = \"0382\";\n\t\t\tfichero = \"modifZON.txt\";\n\t }else if(casoDeUso.equals(LP_ID_ELIM_EV)){\n\t\t\tidBusiness = ID_BUSINESS_ELIM_EV;\n\t\t\tcodTituloLP = \"0383\";\n\t\t\tfichero = \"bajaZON.txt\";\t\t\t\n\t } \n\t}",
"private static void comprobarBBDD() {\n\t\tSQLiteHelper usdbh = new SQLiteHelper(contexto, \"baseDeDatos\", null, 1);\n\n\t\tSQLiteDatabase db = usdbh.getReadableDatabase();\n\t\t\n\t\tlistaTarjetas.clear();\n\n\t\t// Si hemos abierto correctamente la base de datos\n\t\tif (db != null) {\n\t\t\t// Consultamos el valor esLaPrimeraVez\n\t\t\tCursor c = db.rawQuery(\"SELECT * from Tarjetas;\", null);\n\t\t\t// Nos aseguramos de que existe al menos un registro\n\t\t\t// Nos aseguramos de que existe al menos un registro\n\t\t\tif (c.moveToFirst()) {\n\t\t\t\tdo {\n\t\t\t\t\tlistaTarjetas.add(new Tarjetas(c.getString(0), c\n\t\t\t\t\t\t\t.getString(1), c.getString(2), c.getString(3)));\n\t\t\t\t\t// Herramientas.getYo().setId(c.getString(0));\n\t\t\t\t} while (c.moveToNext());\n\t\t\t}\n\t\t\tif (listaTarjetas.size() == 0)\n\t\t\t{\n\t\t\t\tNfcAdapter nfcAdapter = nfcAdapter = NfcAdapter.getDefaultAdapter(contexto);\n\n\t\t\t\tif (nfcAdapter == null) { \n\t\t\t\t\tlistaTarjetas.add(new Tarjetas(\"\", \"\",contexto.getResources().getString(R.string.textoVacio1),\"\"));\n\t\t\t\t}\n\t\t\t\telse if (!nfcAdapter.isEnabled()) {\n\t\t\t\t\tlistaTarjetas.add(new Tarjetas(\"\", \"\",contexto.getResources().getString(R.string.textoVacio1),\"\"));\n\t\t\t\t} else {\n\t\t\t\t\tlistaTarjetas.add(new Tarjetas(\"\", \"\",contexto.getResources().getString(R.string.textoVacio2),\"\"));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tdb.close();\n\t\t}\n\t}",
"private void cargardatos() {\n String sql = \"SELECT * FROM nomPercepciones\";\n\n Object datos[] = new Object[13];\n try {\n conn = (this.userConn != null) ? this.userConn : Conexion.getConnection();\n stmt = conn.prepareStatement(sql);\n rs = stmt.executeQuery();\n while (rs.next()) {\n datos[0] = rs.getString(\"idNomPer\");\n datos[1] = rs.getString(\"nombre\");\n datos[2] = rs.getString(\"dias\");\n if (rs.getString(\"estatus\").equalsIgnoreCase(\"1\")) {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/actulizadoj.png\")));\n } else {\n datos[3] = new JLabel(new ImageIcon(getClass().getResource(\"/View/img/noactualizadoj.png\")));\n }\n\n tabla1.addRow(datos);\n }\n } catch (SQLException e) {\n JOptionPane.showMessageDialog(null, \"Error al cargar los datos\\n\" + e, \"ERROR\", JOptionPane.ERROR_MESSAGE);\n } finally {\n Conexion.close(rs);\n Conexion.close(stmt);\n if (this.userConn == null) {\n Conexion.close(conn);\n }\n }\n }",
"private NodoBin<T> buscarAS(T dato){\n if(esVacio())\n return (null);\n return (biselar(super.getRaiz(), dato));\n }",
"public void start() {\n Date dataCorr;\n\n try { // prova ad eseguire il codice\n for (int codConto : codiciConto) {\n quanti++;\n dataCorr = dataInizio;\n while (Lib.Data.isPrecedenteUguale(dataFine, dataCorr)) {\n creaAddebitiGiornoConto(dataCorr, codConto);\n dataCorr = Lib.Data.add(dataCorr, 1);\n\n /* interruzione nella superclasse */\n if (super.isInterrompi()) {\n break;\n }// fine del blocco if\n\n }// fine del blocco while\n }// fine del blocco for\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void consultaRadicacionesSegumiento() {\r\n try {\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n Conexion.Conexion.CloseCon();\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultaRadicacionesSegumiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"private void datosVehiculo(boolean esta_en_revista) {\n\t\ttry{\n\t\t\t String Sjson= Utils.doHttpConnection(\"http://datos.labplc.mx/movilidad/vehiculos/\"+placa+\".json\");\n\t\t\t JSONObject json= (JSONObject) new JSONTokener(Sjson).nextValue();\n\t\t\t JSONObject json2 = json.getJSONObject(\"consulta\");\n\t\t\t JSONObject jsonResponse = new JSONObject(json2.toString());\n\t\t\t JSONObject sys = jsonResponse.getJSONObject(\"tenencias\");\n\t\t\t \n\t\t\t if(sys.getString(\"tieneadeudos\").toString().equals(\"0\")){\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.sin_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_verde);\n\t\t\t }else{\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.con_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_rojo);\n\t\t\t \tPUNTOS_APP-=PUNTOS_TENENCIA;\n\t\t\t }\n\t\t\t \n\t\t\t JSONArray cast = jsonResponse.getJSONArray(\"infracciones\");\n\t\t\t String situacion;\n\t\t\t boolean hasInfraccion=false;\n\t\t\t for (int i=0; i<cast.length(); i++) {\n\t\t\t \tJSONObject oneObject = cast.getJSONObject(i);\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t situacion = (String) oneObject.getString(\"situacion\");\n\t\t\t\t\t\t\t if(!situacion.equals(\"Pagada\")){\n\t\t\t\t\t\t\t\t hasInfraccion=true;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t if(hasInfraccion){\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.tiene_infraccion));\n\t\t\t\t \tautoBean.setImagen_infraccones(imagen_rojo);\n\t\t\t\t \tPUNTOS_APP-=PUNTOS_INFRACCIONES;\n\t\t\t }else{\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.no_tiene_infraccion));\n\t\t\t\t autoBean.setImagen_infraccones(imagen_verde);\n\t\t\t }\n\t\t\t JSONArray cast2 = jsonResponse.getJSONArray(\"verificaciones\");\n\t\t\t if(cast2.length()==0){\n\t\t\t \t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t }\n\t\t\t\t\t Date lm = new Date();\n\t\t\t\t\t String lasmod = new SimpleDateFormat(\"yyyy-MM-dd\").format(lm);\n\t\t\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\tBoolean yaValide=true;\n\t\t\t\t for (int i=0; i<cast2.length(); i++) {\n\t\t\t\t \tJSONObject oneObject = cast2.getJSONObject(i);\n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\tif(!esta_en_revista&&yaValide){\n\t\t\t\t\t\t\t\t\t\t autoBean.setMarca((String) oneObject.getString(\"marca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setSubmarca((String) oneObject.getString(\"submarca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setAnio((String) oneObject.getString(\"modelo\"));\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_revista(getResources().getString(R.string.sin_revista));\n\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_revista(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t Calendar calendar = Calendar.getInstance();\n\t\t\t\t\t\t\t\t\t\t int thisYear = calendar.get(Calendar.YEAR);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t if(thisYear-Integer.parseInt(autoBean.getAnio())<=10){\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_nuevo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_verde);\n\t\t\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_viejo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t\t PUNTOS_APP-=PUNTOS_ANIO_VEHICULO;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t yaValide=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t Date date1 = formatter.parse(lasmod);\n\t\t\t\t\t\t\t\t Date date2 = formatter.parse(oneObject.getString(\"vigencia\").toString());\n\t\t\t\t\t\t\t\t int comparison = date2.compareTo(date1);\n\t\t\t\t\t\t\t\t if((comparison==1||comparison==0)&&!oneObject.getString(\"resultado\").toString().equals(\"RECHAZO\")){\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.tiene_verificaciones)+\" \"+oneObject.getString(\"resultado\").toString());\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_verde); \n\t\t\t\t\t\t\t\t\t hasVerificacion=true;\n\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t\t\t\t\t hasVerificacion=false;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t } catch (ParseException e) {\n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t if(!hasVerificacion){\n\t\t\t\t \t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t\t }\n\t\t\t \n\t\t\t}catch(JSONException e){\n\t\t\t\tDatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t}\n\t\t\n\t}",
"private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"private void creaAddebitiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n boolean continua;\n Filtro filtro;\n int[] interi;\n ArrayList<Integer> codici = null;\n Modulo modAddFisso;\n Modulo modConto;\n boolean chiuso;\n\n try { // prova ad eseguire il codice\n\n /* controllo se il conto e' aperto */\n modConto = Albergo.Moduli.Conto();\n chiuso = modConto.query().valoreBool(Conto.Cam.chiuso.get(), codConto);\n continua = (!chiuso);\n\n if (continua) {\n\n /* filtro che isola gli addebiti fissi da eseguire\n * per il giorno e il conto dati */\n filtro = this.getFiltroFissiGiornoConto(data, codConto);\n continua = filtro != null;\n\n /* crea elenco dei codici addebito fisso da elaborare */\n if (continua) {\n modAddFisso = Albergo.Moduli.AddebitoFisso();\n interi = modAddFisso.query().valoriChiave(filtro);\n codici = Lib.Array.creaLista(interi);\n }// fine del blocco if\n\n /* crea un addebito effettivo per ogni addebito fisso */\n if (codici != null) {\n for (int cod : codici) {\n this.creaSingoloAddebito(cod, data);\n } // fine del ciclo for-each\n }// fine del blocco if\n\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"private void cargarRegistro() {\n\t\tif (filaId != null) {\n\t\t\tCursor bar = bdHelper.getBar(filaId);\n // Indicamos que queremos controlar el Cursor\n\t\t\tstartManagingCursor(bar);\n\n\t\t\t// Obtenemos el campo categoria\n\t\t\tString categoria = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_CATEGORIA));\n\t\t\t// Seleccionamos la categoría en el Spinner\n\t\t\tfor (int i=0; i<categoriaSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) categoriaSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(categoria)){\n\t\t\t\t\tcategoriaSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Obtenemos el campo relacion calidad-precio\n\t\t\tString relacion = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_RELACION));\n\t\t\t// Seleccionamos en el Spinner la relacion c-p\n\t\t\tfor (int i=0; i<relacionSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) relacionSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(relacion)){\n\t\t\t\t\trelacionSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Obtenemos el campo del acompañante\n\t\t\tString acompanante = bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_ACOMPANANTE));\n\t\t\t// Seleccionamos el formato en el Spinner\n\t\t\tfor (int i=0; i<acompananteSpinner.getCount();i++){\n\t\t\t\t// Cargamos una de la opciones del listado desplegable\n\t\t\t\tString s = (String) acompananteSpinner.getItemAtPosition(i);\n\t\t\t\t// Si coindice con la que está en la BD la seleccionamos en el listado desplegable\n\t\t\t\tif (s.equalsIgnoreCase(acompanante)){\n\t\t\t\t\tacompananteSpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Rellenamos las Vistas\n\t\t\tnombreText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOMBRE)));\n\t\t\tdireccionText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_DIRECCION)));\n\t\t\tnotasText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_NOTAS)));\n\t\t\tprecioText.setText(bar.getString(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_PRECIO)));\n\t\t\tvaloracionRB.setRating(bar.getFloat(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_VALORACION)));\n\n // Tratamos las fechas del registro\n\t\t\tlong fecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_ULT_VIS));\n\t\t\tprimeraFecha.setTimeInMillis(fecha);\n\t\t\tfecha = bar.getLong(bar.getColumnIndexOrThrow(BaresBDAdapter.CAMPO_FEC_PRI_VIS));\n\t\t\tif (fecha>0) {\n\t\t\t\tultimaFecha=Calendar.getInstance();\n\t\t\t\tultimaFecha.setTimeInMillis(fecha);\n\t\t\t}\n\t\t\t// Dejamos de controlar el cursor de la BD\n\t\t\tstopManagingCursor(bar);\n\t\t}\n\t}",
"public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }",
"@Override\n\tpublic boolean datiUscitaImpegno() {\n\t\treturn false;\n\t}",
"private void copiaTabuleiro () {\n\t\tTabuleiro tab = Tabuleiro.getTabuleiro ();\n\t\t\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tfor (int j = 0; j < 8; j++)\n\t\t\t\tCasa.copia (casa[i][j], tab.getCasa (i, j));\n\t\t}\n\t}",
"public String ejecutarCodigoSQLtablas(String nombrearchivo )\r\n\t{\r\n\t\tString codigosqlcrebas=\"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/\"+nombrearchivo );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tcodigosqlcrebas+=codigo+\"\\n\";\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t\treturn codigosqlcrebas;\r\n\t}",
"public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tISHORARIO_IDISHORARIO=\"\";\n\t\tISAULA_IDISAULA=\"\";\n\t\tISCURSO_IDISCURSO=\"\";\n\t\t\n\t}",
"private byte[] datosInicio() {\n\tbyte comando = 1;\n\tbyte borna = (byte) sens.getNum_borna();\n\tbyte parametro1 = 0;\n\tbyte parametro2 = 0;\n\tbyte parametro3 = 0;\n\tbyte checksum = (byte) (comando + borna + parametro1 + parametro2 + parametro3);\n\n\t// Duermo para que le de tiempo a generar el puerto\n\ttry {\n\t Thread.sleep(IrrisoftConstantes.DELAY_SENSOR_RUN);\n\t} catch (InterruptedException e1) {\n\t if (logger.isErrorEnabled()) {\n\t\tlogger.error(\"Hilo interrumpido: \" + e1.getMessage());\n\t }\n\t}\n\n\tif (logger.isInfoEnabled()) {\n\t logger.info(\"Churro_Anemometro = \" + comando + \", \" + borna + \", \"\n\t\t + parametro1 + \", \" + parametro2 + \", \" + parametro3 + \", \"\n\t\t + checksum);\n\t}\n\n\tchurro[0] = comando;\n\tchurro[1] = borna;\n\tchurro[2] = parametro1;\n\tchurro[3] = parametro2;\n\tchurro[4] = parametro3;\n\tchurro[5] = checksum;\n\n\tif (!serialcon.serialPort.isOpened()) {\n\t SerialPort serialPort = new SerialPort(\n\t\t serialcon.serialPort.getPortName());\n\t serialcon.setSerialPort(serialPort);\n\t serialcon.conectaserial(sens.getNum_placa());\n\t}\n\n\treturn churro;\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }",
"public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }",
"public void getSconti() {\r\n\t\tsconti = ac.getScontiDisponibili();\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaSconti!= null) {\r\n\t\t\tvaloreScontiCol.setCellValueFactory(new PropertyValueFactory<Sconto, Integer>(\"valore\"));\r\n\t puntiRichiestiCol.setCellValueFactory(new PropertyValueFactory<Sconto, String>(\"puntiRichiesti\"));\r\n\t spesaMinimaCol.setCellValueFactory(new PropertyValueFactory<Sconto, String>(\"spesaMinima\"));\r\n\t \r\n\t Collections.sort(sconti);\r\n\t tabellaSconti.getItems().setAll(sconti);\r\n\t \r\n\t tabellaSconti.setOnMouseClicked(e -> {\r\n\t \tif(aggiungi.isDisabled() && elimina.isDisabled()) \r\n\t \t\ttotale.setText(\"\" + ac.applicaSconto(tabellaSconti.getSelectionModel().getSelectedItem()));\r\n\t });\r\n\t }\r\n\t}",
"private void cargarFichaLepra_inicio() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_INICIO_TRATAMIENTO_LEPRA,\r\n\t\t\t\tIRutas_historia.LABEL_INICIO_TRATAMIENTO_LEPRA, parametros);\r\n\t}",
"public String llenarBase(){\n String estadoBase=\"\";\n //Vectores para cada uno de los campos de cada tabla\n //vectores empleado\n final String[] nombreEmpleado = {\"Jorge Pérez\",\"Maritza Cañas\",\"Sebastian Funes\",\"Carlos Dominguez\"};\n final int [] duiEmpleado={050034561,060023567,030034561,0500325677};\n final String[] sexoEmpleado={\"M\",\"F\",\"M\",\"M\"};\n final int[] edadEmpleado={24,50,32,40};\n final String[] direccionEmpleado={\"25 Av.Norte #17H, San Salvador\",\"Res.Los Altos,#5,Mejicanos\",\"Calle Las Flores #5A,Cuscatlan\",\"49 Av. Norte, Res.Los Lirios #6B,San Salvador\"};\n final int[] telefonoEmpleado={22563456,22784567,75946754,23564788};\n final int[] cantApEmpleado={1,3,5,2};\n final int[] cantRefEmpleado={3,2,2,3};\n\n //vectores Experiencia Laboral\n final String[] idTodos={\"1\",\"2\",\"3\",\"4\"};\n final String[] duracionExpLab={\"6\",\"8\",\"12\",\"16\"};\n //vectorees Empresa\n final String[] nombreEmpresa={\"Pizza Hut\",\"Office Depot\",\"C.E San Antonio\",\"Telefonica\"};\n final String[] nitEmpresa={\"0614-220605-113-0\",\"0675-330734\",\"0423-220812\",\"0614-345632-551-0\"};\n final String[] dirEmpresa={\"Blv.Los Proceres, Local 5A,San Salvador\",\"49 Av. Norte,#45, San Salvador\",\"Barrio San Juan,Boque 1A,Sonsonate\",\"Centro Comercial Metrocentro, 2° Nivel,San Salvador\"};\n final String[] telEmpresa={\"2276-4533\",\"79567843\",\"2233-6755\",\"2256-8977\"};\n final int[] canOfertasEmpresa={6,4,1,5};\n //vectores detalleestudio\n final int[] idEmpleadoDE={1,2,3,4};\n final int[] idEspecializacionDE={1,2,3,4};\n final int[] idInstEstudioDE={1,2,3,4};\n final int[] anyoGraducionDE={2008,2014,2010,2012};\n //Vectores tabla Moni\n //para la tabla cargo\n final String[] nombreCargo={\"Gerente de Creditos\",\"Jefe de Planta\",\"Jefe de tecnología\",\"Jefe de Reacciones\"};\n final String[] descripcionCargo={\"gerente para la gestion de creditos\",\"Ingeniero industrial para control de planta\",\"Ingeniero de Sistemas para el area de TI\",\"Ingeniero Quimico encargado de planta de reactivos\"};\n // para la tabla aplicacion\n final int[] idsAplicacionTodos={1,2,3,4};\n final String[] fechaAplicacion={\"23/05/15\",\"13/05/15\",\"20/05/15\",\"24/05/15\"};\n final String[] estadoAplicacion={\"Aceptada\",\"Aceptada\",\"En Proceso\",\"En Proceso\"};\n //Vectoress tabla Edgardo\n\n //Vectores tabla Eduardo\n final int[] gradoEspeIdSpe={1,2,3,4};\n final String[] gradoEspeNombre={\"Java Junior\",\"Oracle 11g\",\"Tecnico De Sistemas\",\"Java Senior\"};\n final int[] gradoEspeDuration={2,1,3,4};\n final int[] gradoEspeIdInsti={1,2,3,4};\n\n final int[] referenceId={1,2,3,4};\n final String[] referenceName={\"Juan Perez\",\"Rafael Molina\",\"Pompilio Marcebundo\",\"José Menjivar\"};\n final String[] referencePhone={\"22002200\",\"77777777\",\"22222222\",\"225777777\"};\n final int[] referenceIdEmple={1,2,3,4};\n final int[] referenceIdBusiness={1,2,3,4};\n\n /*------EMPIEZA LA INSERCION ---*/\n for (int i = 0; i < 4; i++) {\n //tabla empresa\n ContentValues values = new ContentValues();\n values.put(\"NOMBRE_EMPRESA\", nombreEmpresa[i]);\n values.put(\"NIT_EMPRESA\",nitEmpresa[i]);\n values.put(\"DIR_EMPRESA\",dirEmpresa[i]);\n values.put(\"TEL_EMPRESA\", telEmpresa[i]);\n values.put(\"CANTOFERTAS_EMPRESA\",canOfertasEmpresa[i]);\n db.insert(\"EMPRESA\", null, values);\n\n //tabla Empleado, se reutilizara el metodo insertarEmpleado\n Empleado empleado = new Empleado();\n empleado.setNombre_empleado(nombreEmpleado[i]);\n empleado.setDui_empleado(duiEmpleado[i]);\n empleado.setSexo_empleado(sexoEmpleado[i]);\n empleado.setEdad_empleado(edadEmpleado[i]);\n empleado.setDireccion_empleado(direccionEmpleado[i]);\n empleado.setTelefono_empleado(telefonoEmpleado[i]);\n empleado.setCantAplicaciones_empleado(cantApEmpleado[i]);\n empleado.setCantReferencias_empleado(cantRefEmpleado[i]);\n insertarEmpleado(empleado);\n\n //tabla ExperienciaLaboral, se reutilizara el metodo insertarExpLab\n insertarExpLab(idTodos[i],idTodos[i],idTodos[i],duracionExpLab[i]);\n //tabla DetalleEstudio\n ContentValues values2 = new ContentValues();\n values2.put(\"ID_EMPLEADO\",idEmpleadoDE[i]);\n values2.put(\"ID_ESPECIALIZACION\",idEspecializacionDE[i]);\n values2.put(\"ID_INSTITUTOESTUDIO\",idInstEstudioDE[i]);\n values2.put(\"ANYOGRADUACION_DETALLEEST\",anyoGraducionDE[i]);\n db.insert(\"DETALLEESTUDIO\", null, values2);\n\n //Tabla Cargo, se reutiliza el metodo insertar(cargo\n Cargo cargo= new Cargo();\n cargo.setNombreCargo(nombreCargo[i]);\n cargo.setDescripcionCargo(descripcionCargo[i]);\n insertar(cargo);\n\n //tabla Aplicacion se reutiliza el metodo inserta(aplicacion)\n Aplicacion aplicacion= new Aplicacion();\n aplicacion.setIdEmpleado(idsAplicacionTodos[i]);\n aplicacion.setIdEmpresa(idsAplicacionTodos[i]);\n aplicacion.setIdOfertaLaboral(idsAplicacionTodos[i]);\n aplicacion.setFechaAplicacion(fechaAplicacion[i]);\n aplicacion.setEstadoAplicacion(estadoAplicacion[i]);\n insertar(aplicacion);\n\n //tabla Referencia\n Referencia refe=new Referencia();\n refe.setNombre_referencia(referenceName[i]);\n refe.setId_empleado(referenceIdEmple[i]);\n refe.setId_empresa(referenceIdBusiness[i]);\n refe.setTelefono_referencia(referencePhone[i]);\n refe.setId_referencia(referenceId[i]);\n insertar(refe);\n\n\n //tabla GradoEspecializacion\n\n GradoEspecializacion grade=new GradoEspecializacion();\n grade.setId_especializacion(gradoEspeIdSpe[i]);\n grade.setNombre_especializacion(gradoEspeNombre[i]);\n grade.setId_institutoEstudio(gradoEspeIdInsti[i]);\n grade.setDuracion_especializacion(gradoEspeDuration[i]);\n insertar(grade);\n\n\n }//fin for\n\n return estadoBase=\"El llenado de la Base de Datos se hizo Satisfactoriamente\";\n }",
"public void ingresarUbigeo() {\n\t\t\tlog.info(\"ingresarUbigeo :D a --- \" + idUbigeo1);\r\n\t\t\tubigeoDefecto = \"otro ubigeo\";\r\n\t\t\tIterator it = comboManager.getUbigeoDeparItems().entrySet().iterator();\r\n\t\t\tIterator it2 = comboManager.getUbigeoProvinItems().entrySet().iterator();\r\n\t\t\tIterator it3 = comboManager.getUbigeoDistriItems().entrySet().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idDepartamento)) {\r\n\t\t\tubigeoDefecto = (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo depa \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it2.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it2.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idProvincia)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo prov \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile (it3.hasNext()) {\r\n\t\t\tMap.Entry e = (Map.Entry) it3.next();\r\n\t\t\tSystem.out.println(\"key \" + e.getKey() + \" value \" + e.getValue());\r\n\t\tif (e.getValue().toString().equals(idUbigeo1)) {\r\n\t\t\tubigeoDefecto += \"-\" + (String) e.getKey();\r\n\t\t\tlog.info(\"ubigeo distrito \" + ubigeoDefecto);\r\n\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.info(\"ubigeo ------> :D \" + ubigeoDefecto);\r\n\t}",
"private void inicializarConexoesDaSegundaCamada() {\n conexoesSegundaCamada = new double[numeroNeuroniosPrimeiraCamada + 1];\n for (int i = 0; i < conexoesSegundaCamada.length; i++) {\n conexoesSegundaCamada[i] = Math.random();\n //conexoesSegundaCamada[i] = 1.0;\n }\n }",
"public void service_psy (Personne p) throws FileNotFoundException\r\n\t{\r\n\t\r\n\t\t\r\n\t\t \t\tString [] info_psy=null ;\r\n\t\t \t\tString [] cle_valeur=null;\r\n\t\t \t\tboolean spec,adr;\r\n\t\t \t\tFileInputStream f=new FileInputStream(\"C://Users/Azaiez Hamed/Desktop/workspace/Projet de programmation/src/Medecin.txt\");\r\n\t\t \t\ttry {\r\n\t\t \t\t\tBufferedReader reader =new BufferedReader (new InputStreamReader(f,\"UTF-8\"));\r\n\t\t \t\t\tString line=reader.readLine();\r\n\t\t \t\t\twhile(line!=null){\r\n\t\t \t\t\t\tinfo_psy=line.split(\"\\t\\t\\t\");\r\n\t\t \t\t\t\tspec=false;adr=false;\r\n\t\t \t\t\t\tfor(int i=0;i<info_psy.length;i++)\r\n\t\t \t\t\t\t{\r\n\t\t \t\t\t\t\t cle_valeur=info_psy[i].split(\":\");\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"specialite\"))&& (cle_valeur[1].equals(\"psy\")))\r\n\t\t\t\t\t\t \t spec=true;\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"gouvernerat\"))&&(cle_valeur[1].equals(p.getGouvernerat())))\r\n\t\t \t\t\t\t\t \tadr=true;\r\n\t\t\t\t\t\t}\r\n\t\t \t\t\t\tif (spec && adr) {\r\n\t\t \t\t\t\t\t System.out.println(\"voilà toutes les informations du psy, veuillez lui contacter immédiatement **\");\r\n\t\t \t\t\t\t\t System.out.println(line);return;}\r\n\t\t \t\t\t\telse\r\n\t\t \t\t\t\t line=reader.readLine();\r\n\t\t \t\t\t\t }\r\n\t\t \t\t }\r\n\t\t \t\t \tcatch(IOException e){e.printStackTrace();}\r\n\t\t \t\t System.out.println(\"Pas de psy trouvé dans votre gouvernerat\");\r\n\t}",
"public void construirSegundoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet2ReglaCompleja = new JComboBox(dominio);// creamos el Segundo combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet2ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Segundo item\n\t\titemscomboDominiosSet2ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet2ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Segundo Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet2ReglaCompleja);\n\t\tcomboDominiosSet2ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet2ReglaCompleja);\n\t\titemscomboDominiosSet2ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet2ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public void consutaBD(String Campo, String txtSQL) {\n String consultaBD = \"SELECT * FROM `cronograma_actividades` WHERE \" + Campo + \" LIKE '\" + txtSQL + \"_%'\";\n //JOptionPane.showMessageDialog(null, consultaBD);\n javax.swing.JTable Tabla = this.Tabla_addActividad;\n // Enviamos los parametros para la consulta de la tabla\n // conexion consulta de la base de datos y el nombre de la tabla\n String cabesera[] = {\"Código\", \"Asunto\", \"Actividad\",\"hora\",\"Fecha\",\"Estado\"};\n cone1.GetTabla_Sincabeseras_sql_bd(cn, consultaBD, Tabla, cabesera);\n\n }",
"private void limpiarDatos() {\n\t\t\n\t}",
"public void borra() {\n dib.borra();\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta(); \n }",
"public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }",
"public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}",
"public boolean InsertarDatosReserva(String fecini, String fecsal, String cantres, String estado, String codcli, String fecres, String coti, String codemp) throws Exception {\n try {\n String q = \"INSERT INTO Reserva (FECHAINICIORES,FECHAFINALRES,CANTIDADRES,ESTADORES,CLIENTE_PERSONA_IDPERSONA,FECHARES,COTIZACIONRES,EMPLEADO_PERSONA_IDPERSONA)\"\n + \"VALUES ('\" + fecini + \"', '\" + fecsal + \"' , '\" + cantres + \"', '\" + estado + \"', '\" + codcli + \"', '\" + fecres + \"', '\" + coti + \"', '\" + codemp + \"')\";\n\n PreparedStatement pstm = this.getCon().prepareStatement(q);\n pstm.execute();\n pstm.close();\n return true;\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n return false;\n }",
"public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }",
"public void buscaxcodigo() {\r\n try {\r\n modelo.setCodigobarras(vista.jTbcodigobarras.getText());//C.P.M mandamos el codigo de barras ingresado\r\n rs = modelo.Buscarxcodigobarras();//C.P.M mandamos a consultar ese codigo de barras\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M instanciamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"Encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos las columnas de la consulta\r\n\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un vector con el tamano de las columnas de el resultado\r\n for (int i = 0; i < cantidadColumnas; i++) {//C.P.M recorremos el arreglo\r\n fila[i] = rs.getObject(i + 1);//C.P.M y vamos insertando el resultado\r\n }\r\n buscar.addRow(fila);//C.P.M le mandamos el arreglo como renglon nuevo\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar por codigo de barras\");\r\n }\r\n }",
"private void loadQuocGia() throws SQLException {\n String[] header = {\"Mã QG\", \"Tên Quốc gia\", \"English\", \"Ký hiệu\"};\n ResultSet rs = actQG.getQuocGia();\n FillData fillData = new FillData();\n fillData.fillDataJTable(jTable1, header, rs);\n rs.close();\n }",
"private String creaElenco() {\n String testoTabella ;\n String riga = CostBio.VUOTO;\n ArrayList listaPagine = new ArrayList();\n ArrayList listaRiga;\n HashMap mappaTavola = new HashMap();\n String cognomeText;\n int num;\n int taglioPagine = Pref.getInt(CostBio.TAGLIO_COGNOMI_PAGINA);\n String tag = \"Persone di cognome \";\n ArrayList titoli = new ArrayList();\n titoli.add(LibWiki.setBold(\"Cognome\"));\n titoli.add(LibWiki.setBold(\"Voci\"));\n\n for (Map.Entry<String, Integer> mappa: mappaCognomi.entrySet()) {\n\n cognomeText = mappa.getKey();\n num = mappa.getValue();\n if (num >= taglioPagine) {\n cognomeText = tag + cognomeText + CostBio.PIPE + cognomeText;\n cognomeText = LibWiki.setQuadre(cognomeText);\n cognomeText = LibWiki.setBold(cognomeText);\n }// end of if cycle\n\n listaRiga = new ArrayList();\n listaRiga.add(cognomeText);\n listaRiga.add(num);\n listaPagine.add(listaRiga);\n\n }// end of for cycle\n mappaTavola.put(Cost.KEY_MAPPA_SORTABLE_BOOLEAN, true);\n mappaTavola.put(Cost.KEY_MAPPA_TITOLI, titoli);\n mappaTavola.put(Cost.KEY_MAPPA_RIGHE_LISTA, listaPagine);\n testoTabella = LibWiki.creaTable(mappaTavola);\n\n return testoTabella;\n }",
"private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campoDataInizio;\n Campo campoDataFine;\n Campo campoConto;\n Date dataIniziale;\n Date dataFinale;\n int numPersone;\n ContoModulo modConto;\n\n\n String titolo = \"Esecuzione addebiti fissi\";\n AddebitoFissoPannello pannello;\n Date dataInizio;\n Pannello panDate;\n Campo campoStato;\n Filtro filtro;\n int codConto;\n int codCamera;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera dati generali */\n modConto = Albergo.Moduli.Conto();\n codConto = this.getCodConto();\n codCamera = modConto.query().valoreInt(Conto.Cam.camera.get(), codConto);\n numPersone = CameraModulo.getNumLetti(codCamera);\n\n /* crea il pannello servizi e vi registra la camera\n * per avere l'anteprima dei prezzi*/\n pannello = new AddebitoFissoPannello();\n this.setPanServizi(pannello);\n pannello.setNumPersone(numPersone);\n this.setTitolo(titolo);\n\n// /* regola date suggerite */\n// dataFinale = Progetto.getDataCorrente();\n// dataInizio = Lib.Data.add(dataFinale, -1);\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(nomeDataIni);\n campoDataInizio.decora().obbligatorio();\n// campoDataInizio.setValore(dataInizio);\n\n campoDataFine = CampoFactory.data(nomeDataFine);\n campoDataFine.decora().obbligatorio();\n// campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = CampoFactory.comboLinkSel(nomeConto);\n campoConto.setNomeModuloLinkato(Conto.NOME_MODULO);\n campoConto.setLarScheda(180);\n campoConto.decora().obbligatorio();\n campoConto.decora().etichetta(\"conto da addebitare\");\n campoConto.setUsaNuovo(false);\n campoConto.setUsaModifica(false);\n\n /* inizializza e assegna il valore (se non inizializzo\n * il combo mi cambia il campo dati e il valore si perde)*/\n campoConto.inizializza();\n campoConto.setValore(this.getCodConto());\n\n /* filtro per vedere solo i conti aperti dell'azienda corrente */\n campoStato = modConto.getCampo(Conto.Cam.chiuso.get());\n filtro = FiltroFactory.crea(campoStato, false);\n filtro.add(modConto.getFiltroAzienda());\n campoConto.getCampoDB().setFiltroCorrente(filtro);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.creaBordo(\"Periodo da addebitare\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(campoConto);\n\n this.addPannello(panDate);\n this.addPannello(this.getPanServizi());\n\n this.regolaCamera();\n\n /* recupera la data iniziale (oggi) */\n dataIniziale = AlbergoLib.getDataProgramma();\n\n /* recupera la data di partenza prevista dal conto */\n modConto = ContoModulo.get();\n dataFinale = modConto.query().valoreData(Conto.Cam.validoAl.get(),\n this.getCodConto());\n\n /* recupera il numero di persone dal conto */\n numPersone = modConto.query().valoreInt(Conto.Cam.numPersone.get(),\n this.getCodConto());\n\n /* regola date suggerite */\n campoDataInizio = this.getCampo(nomeDataIni);\n campoDataInizio.setValore(dataIniziale);\n\n campoDataFine = this.getCampo(nomeDataFine);\n campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = this.getCampo(nomeConto);\n campoConto.setAbilitato(false);\n\n /* regola la data iniziale di riferimento per l'anteprima dei prezzi */\n Date data = (Date)campoDataInizio.getValore();\n this.getPanServizi().setDataPrezzi(data);\n\n /* regola il numero di persone dal conto */\n this.getPanServizi().setNumPersone(numPersone);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void cargarFichaLepra_convivientes() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public GestionGastosGenerales() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n this.setTitle(\"Gestión de Gastos Generales\");\n \n try{\n String query = \"SELECT convert(varchar, getdate(), 105) as FECHA\";\n String[] columnas = {\"FECHA\"};\n LinkedList<LinkedList<String>> fecha = Globales.baseDatos.select(query, columnas);\n if(fecha == null){\n throw new NoConectionDataBaseException(\"Error al conectarse con la base de datos: \" + Globales.baseDatos.getUltimoError());\n }\n if(fecha.size() <1){\n throw new NoConectionDataBaseException(\"Error al conectarse con la base de datos: No se encontraron datos de la fecha actual\");\n }\n String[] fechaArray = fecha.get(0).get(0).split(\"-\");\n if(fechaArray.length != 3){\n throw new NoTypeRequiredException(\"No se puede procesar la fecha obtenida de la base de datos\");\n }\n \n ano = Integer.parseInt(fechaArray[2]);\n \n mes = Integer.parseInt(fechaArray[1]);\n \n int contadorAnos = ano - anoInicial;\n String[] listaAnos = new String[contadorAnos + 1];\n listaAnos[0] = anoInicial.toString();\n \n for(int i = 0; i<contadorAnos;i++){\n Integer tempInt = anoInicial+(i+1);\n listaAnos[i+1] = tempInt.toString();\n }\n DefaultComboBoxModel anoModel = new DefaultComboBoxModel(listaAnos);\n anoCB.setModel(anoModel);\n \n DefaultComboBoxModel mesModel = new DefaultComboBoxModel(generarListaMeses(mes));\n mesCB.setModel(mesModel);\n \n anoCB.setSelectedIndex(anoCB.getItemCount()-1);\n mesCB.setSelectedIndex(mesCB.getItemCount()-1);\n \n //termina seccion de ajuste de fecha\n actualizarTabla();\n \n \n \n }\n catch(NoConectionDataBaseException e){\n JOptionPane.showMessageDialog(this, e.getMessage(), \"Error de conexión con la base de datos\", JOptionPane.ERROR_MESSAGE);\n \n }\n catch(NoTypeRequiredException e){\n JOptionPane.showMessageDialog(this, e.getMessage(), \"Error al guardar el registro\", JOptionPane.WARNING_MESSAGE);\n }\n }",
"public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }",
"public void leerBaseDatos(){\n if(connected == true){\n final FirebaseDatabase database = FirebaseDatabase.getInstance();\n\n DatabaseReference ref = database.getReference().child(\"kitDeSensores\").child(id);\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n kitSensoresDatos post = dataSnapshot.getValue(kitSensoresDatos.class);\n if(post ==null){\n fuego.setText(\"El sensor no tiene datos para mostrar\");\n temperatura.setText(\"El sensor no tiene datos para mostrar\");\n humedad.setText(\"El sensor no tiene datos para mostrar\");\n humo.setText(\"El sensor no tiene datos para mostrar\");\n Log.d(\"Humedad obtenidad\", String.valueOf(humo));\n }else{\n String fuegoExiste;\n if(String.valueOf(post.getFuego()).equals(\"0\")){\n fuegoExiste = \"No\";\n }else{\n fuegoExiste = \"Si\";\n }\n fuego.setText(fuegoExiste);\n temperatura.setText(String.valueOf(post.getTemperatura()) + \" °C\");\n humo.setText(String.valueOf(post.getGas()) + \" ppm\");\n humedad.setText(String.valueOf(post.getHumedad()) + \" %\");\n }\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }else{\n fuego.setText(\"No tienes conexion a internet\");\n temperatura.setText(\"No tienes conexion a internet\");\n humedad.setText(\"No tienes conexion a internet\");\n humo.setText(\"No tienes conexion a internet\"); }\n }",
"public void novaIgra() {\r\n\t\tbroj_slobodnih = 16;\r\n\t\tfor(int i = 0 ; i < 4 ; i++)\r\n\t\t\tfor(int j = 0 ; j < 4 ; j++)\r\n\t\t\t\ttabela[i][j] = 0;\r\n\t\tpobjeda = false;\r\n\t\tigrajPoslijePobjede = false;\r\n\t\tgenerisiPolje();\r\n\t\tgenerisiPolje();\r\n\t}",
"public static void Bildeinfuegen()\r\n\t{\n\t\tPath path = FileSystems.getDefault().getPath(\"bilder\", \"bild2.jpg\");\r\n\t\tFile file=path.toFile();\r\n\t\t//File file = new File(getCacheDirectory() + \"\\\\results.txt\");\r\n\t\t\r\n\t\tString INSERT_DATA_SQL=\"INSERT INTO bilder VALUES (?, ?)\";\r\n\t\ttry {\r\n\r\n\t\t\tFileInputStream fis= new FileInputStream(file);\r\n\t\t\tconn = DriverManager.getConnection(DB_URL,USER,PASS);\r\n\t\t\tpstmt = conn.prepareStatement(INSERT_DATA_SQL);\r\n\t\t\tfis = new FileInputStream(file);\r\n\t\t\t//pstmt = conn.prepareStatement(\"INSERT INTO bilder VALUES (?, ?)\");\r\n\t\t\tpstmt.setString(1, file.getName());\r\n\t\t\tpstmt.setBinaryStream(2, fis, (int)file.length());\r\n\t\t\tpstmt.executeUpdate();\r\n\r\n\t\t\tpstmt.close();\r\n\t\t\tfis.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Daten in Datenbank gepeichert.\");\r\n\t}",
"private void calculerBordsDomaine() {\n\t\tfor (Contrainte c : contraintes) {\n\t\t\tbords.add(new Bord(this, c));\n\t\t}\n\t}",
"public REGISTRARSE()\n {\n \t this.datos=new DATOS();\n }",
"public void initialiserBD() {\n\n // on crée une personne avec tous les champs à vide, cela nous permettra de tester l'existence de la BD pour les futurs lancements.\n pdao.open();\n pdao.creerPersonnePremierLancement();\n pdao.close();\n\n // création des 3 listes\n Liste liste1 = new Liste(1, \"Maison\", \"La liste de ma maison\");\n Liste liste2 = new Liste(2, \"Garage\", \"La liste de mon garage\");\n Liste liste3 = new Liste(3, \"Magasin\", \"La liste de mon magasin\");\n\n // ajout des listes\n ldao.open();\n ldao.ajouterListe(liste1);\n ldao.ajouterListe(liste2);\n ldao.ajouterListe(liste3);\n ldao.close();\n\n // on ajoute 3 catégories\n CategorieDAO categorieDAO = new CategorieDAO(this);\n categorieDAO.open();\n Categorie cuisine = new Categorie(0, \"Cuisine\", \"Tous les objets de la cuisine\");\n Categorie salon = new Categorie(0, \"Salon\", \"Tous les objets du Salon\");\n Categorie chambre = new Categorie(0, \"Chambre\", \"Tous les objets de la chambre\");\n categorieDAO.addCategorie(cuisine);\n categorieDAO.addCategorie(salon);\n categorieDAO.addCategorie(chambre);\n categorieDAO.close();\n\n Date date = new Date();\n\n // Création de la classe utilitaire pour les dates\n Utils utils = new Utils(this);\n String dateSimpleDateFormat = utils.getDateSimpleDateFormat();\n SimpleDateFormat sdf = new SimpleDateFormat(dateSimpleDateFormat);\n String dateDuJour = sdf.format(date);\n\n // texte explicatif\n String explication = \"Cet objet est crée au demarrage de l'application, vous pouvez le supprimer en cliquant dessus.\";\n\n // on ajoute 6 bien pour exemple\n Bien bien1 = new Bien(1, \"Lunette\", dateDuJour, dateDuJour, \"\", \"Légèrement rayées sur le coté\", \"251\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien2 = new Bien(2, \"Frigo\", dateDuJour, dateDuJour, \"\", \"\", \"3599\", \"\", \"\", \"\", \"\", 1, explication, \"45DG425845DA\");\n Bien bien3 = new Bien(3, \"Ordinateur\", dateDuJour, dateDuJour, \"\", \"Manque une touche\", \"1099\", \"\", \"\", \"\", \"\", 3, explication, \"515D-TGH2336\");\n Bien bien4 = new Bien(4, \"Vaisselle\", dateDuJour, dateDuJour, \"\", \"Vaisselle de Mémé\", \"6902\", \"\", \"\", \"\", \"\", 1, explication, \"\");\n Bien bien5 = new Bien(5, \"TV\", dateDuJour, dateDuJour, \"\", \"\", \"350\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien6 = new Bien(6, \"Home cinéma\", dateDuJour, dateDuJour, \"\", \"Marque Pioneer - Une enceinte grésille un peu\", \"400\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n\n\n // dans la liste 1\n ArrayList<Integer> listeIdListe1 = new ArrayList<Integer>();\n listeIdListe1.add(1);\n\n\n bdao.open();\n\n bdao.addBien(bien1, listeIdListe1);\n bdao.addBien(bien2, listeIdListe1);\n bdao.addBien(bien3, listeIdListe1);\n bdao.addBien(bien4, listeIdListe1);\n bdao.addBien(bien5, listeIdListe1);\n bdao.addBien(bien6, listeIdListe1);\n\n bdao.close();\n }",
"public Registro1(String x,String y,String z) {\n initComponents();\n this.setTitle(\"Registro Compras - Sistema Inventario BTZ\");\n \n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); \n //this.setSize(dim);\n this.setLocationRelativeTo(null); \n \n this.setResizable(false);\n this.setDefaultCloseOperation(this.HIDE_ON_CLOSE); \n this.setSize(1300, 570);\n X=x;\n Y=x;\n Z=z;\n \n \n modeloBusqueda.addColumn(\"Fecha Compra\");\n modeloBusqueda.addColumn(\"Serie\");\n modeloBusqueda.addColumn(\"Número\");\n modeloBusqueda.addColumn(\"No. Lote\");\n modeloBusqueda.addColumn(\"Código\");\n modeloBusqueda.addColumn(\"Producto\");\n modeloBusqueda.addColumn(\"Marca\");\n modeloBusqueda.addColumn(\"Cantidad Inicial\");\n modeloBusqueda.addColumn(\"Cantidad Stock\");\n modeloBusqueda.addColumn(\"Unidad\");\n modeloBusqueda.addColumn(\"Costo Unitario\");\n modeloBusqueda.addColumn(\"Costo Total\");\n modeloBusqueda.addColumn(\"Ganancia\");\n//modeloBusqueda.addColumn(\"Precio Unitario\");\n //modeloBusqueda.addColumn(\"Precio Total\");\n //modeloBusqueda.addColumn(\"Nitgñkjgñ\");\n // modeloBusqueda.addColumn(\"Proveedor\");\n \n \n Lote.setModel(modeloBusqueda);\n\n String datos[] = new String[16];\n\n try {\n\n Statement sx = Consulta.createStatement();\n ResultSet Ca = sx.executeQuery(\"SELECT DATE_FORMAT(L.Fecha,\\\"%d/%m/%Y %H:%i:%s\\\"),C.Serie,C.Numero,L.NoLote,P.Codigo,\"\n + \"P.Nombre,P.Marca,L.Cantidadi,L.Cantidad,U.Medida,L.CostoUnitario,L.CostoTotal,L.Ganancia\\n\" +\n\"FROM UnidadMedida_1 U inner join Producto P on U.id=P.UnidadMedida_1_id\\n\" +\n\"inner JOIN Lote L \\n\" +\n\"on P.id=L.Producto_id \\n\" +\n\"inner JOIN FacturaCompra C \\n\" +\n\"on C.id=L.FacturaCompra_id\\n\" +\n\"inner JOIN Proveedor V \\n\" +\n\"on V.id=C.Proveedor_id where P.Nombre='\"+y+\"' && P.Marca='\"+x+\"' && U.Medida='\"+z+\"' && L.Disponible=true && L.Anulado=false Order By L.Fecha \"); \n while (Ca.next()) {\n \n datos[0] = Ca.getString(1);\n datos[1] = Ca.getString(2);\n datos[2] = Ca.getString(3);\n datos[3] = Ca.getString(4);\n datos[4] = Ca.getString(5);\n datos[5] = Ca.getString(6);\n datos[6] = Ca.getString(7);\n datos[7] = Ca.getString(8);\n datos[8] = Ca.getString(9);\n datos[9] = Ca.getString(10);\n datos[10] = Ca.getString(11);\n datos[11] = Ca.getString(12);\n datos[12] = Ca.getString(13);\n //datos[13] = Ca.getString(14);\n //datos[14] = Ca.getString(15);\n modeloBusqueda.addRow(datos);\n \n }\n Lote.setModel(modeloBusqueda);\n \n } catch (SQLException ex) {\n Logger.getLogger(Ingreso.class.getName()).log(Level.SEVERE, null, ex);\n }\n Lote.setVisible(true);\n Lote.getColumn(\"Fecha Compra\").setPreferredWidth(90);\n Lote.getColumn(\"Serie\").setPreferredWidth(35);\n Lote.getColumn(\"Número\").setPreferredWidth(45);\n// Lote.getColumn(\"Precio Unitario\").setPreferredWidth(100);\n \n }",
"public ArrayList<String> Info_Disc_Pel_Compras(String genero) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Pel_Rep4(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Peliculas.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3])) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }",
"private void cargarDatos() {\r\n txtRucDni.setText(objVentas.getObjCliente().getStr_rucdni());\r\n txtCliente.setText(objVentas.getObjCliente().getStr_razonSocial());\r\n txtDocumento.setText(objVentas.getStr_numeroDocumento());\r\n txtMonto.setText(String.valueOf(Util.redondeo(objVentas.getDbTotal(), 2) ));\r\n txtPaga.requestFocus();\r\n setLocationRelativeTo(null);\r\n\r\n String arr[] = objVentas.getStr_numeroDocumento().split(\"-\");\r\n \r\n \r\n \r\n \r\n List<Ventas> listaVentaDetalle = new ArrayList<>();\r\n listaVentaDetalle = PaqueteBusinessDelegate.getFlujoCajaService().\r\n listarVenta(String.valueOf(gui.getLocal().getInt_idLocal()), Util.SINPAGO, objVentas.getStr_numeroDocumento(), 2);\r\n cargarTabla(listaVentaDetalle);\r\n \r\n int cantidadDocumentos;\r\n if (!this.gui.getListaConfig().get(0).getTipoImpresion().equals(Config.TICKETERA)){\r\n //Determinar la cantidad de productos por documentos\r\n cantidadDocumentos=(listaVentaDetalle.size()/10);\r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n\r\n if(listaVentaDetalle.size()%10!=0)\r\n cantidadDocumentos++;\r\n }else{\r\n cantidadDocumentos = 1;\r\n }\r\n \r\n \r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n \r\n// System.out.println(\"local : \"+objVentas.getObjLocal().getInt_idLocal()+\" tD :\"+arr[2].trim());\r\n txtNroDocumento.setText(PaqueteBusinessDelegate.getVentasService().\r\n consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n \r\n// System.out.println(\"consulta : \"+PaqueteBusinessDelegate.getVentasService().\r\n// consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n String documento=txtNroDocumento.getText();\r\n String statico=txtNroDocumento.getText().split(\"/\")[0];\r\n// System.out.println(\"estatico : \"+statico);\r\n statico=statico.split(\"-\")[0].concat(\"-\").concat(statico.split(\"-\")[1]).concat(\"-\");\r\n \r\n\r\n if (cantidadDocumentos>1){\r\n for (int i=1;i<cantidadDocumentos;i++){\r\n \r\n if (i<cantidadDocumentos)\r\n documento+=\";\";\r\n \r\n documento+=statico.concat(String.valueOf( Util.stringTOint(\r\n txtNroDocumento.getText().split(\"/\")[0].split(\"-\")[2])+i)).\r\n concat(\"/\").concat(txtNroDocumento.getText().split(\"/\")[1]);\r\n\r\n \r\n log.info(\"NRO: \"+documento);\r\n }\r\n txtNroDocumento.setText(documento);\r\n }\r\n \r\n \r\n \r\n \r\n }",
"private void comprobarSiExisteLaTarjetaEnBBDD() {\n\t\t\tSQLiteHelper usdbh = new SQLiteHelper(contexto, \"baseDeDatos\",\n\t\t\t\t\tnull, 1);\n\n\t\t\tSQLiteDatabase db = usdbh.getWritableDatabase();\n\n\t\t\t// Si hemos abierto correctamente la base de datos\n\t\t\tif (db != null) {\n\t\t\t\t// Consultamos el valor esLaPrimeraVez\n\t\t\t\tCursor c = db.rawQuery(\"SELECT * from Tarjetas where id=\"\n\t\t\t\t\t\t+ number, null);\n\t\t\t\tif (!c.moveToFirst()) {\n\t\t\t\t\tinsertarNuevaTarjeta = new AlertDialog.Builder(contexto);\n\t\t\t\t\tinsertarNuevaTarjeta.setTitle(contexto.getResources()\n\t\t\t\t\t\t\t.getString(R.string.titulo));\n\t\t\t\t\tinsertarNuevaTarjeta.setMessage(contexto.getResources()\n\t\t\t\t\t\t\t.getString(R.string.guardarTarjeta));\n\t\t\t\t\tinsertarNuevaTarjeta.setCancelable(false);\n\t\t\t\t\tinsertarNuevaTarjeta.setNegativeButton(\"No\",\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tcontexto,\n\t\t\t\t\t\t\t\t\t\t\tcontexto.getResources().getString(\n\t\t\t\t\t\t\t\t\t\t\t\t\tR.string.saldo)\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" \" + cadenaResultado,\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\tinsertarNuevaTarjeta.setPositiveButton(\"Si\",\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\tinsertarTarjeta();\n\n\t\t\t\t\t\t\t\t\t// Actualizar Listado\n\t\t\t\t\t\t\t\t\tlistaTarjetas.clear();\n\t\t\t\t\t\t\t\t\tcomprobarBBDD();\n\t\t\t\t\t\t\t\t\tadaptadorTarjetas.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\talertNuevaTarjeta = insertarNuevaTarjeta.create();\n\n\t\t\t\t\talertNuevaTarjeta.show();\n\t\t\t\t\t// Herramientas.getYo().setId(c.getString(0));\n\t\t\t\t}\n\n\t\t\t\tdb.close();\n\t\t\t}\n\n\t\t}",
"public static String[][] acomodamiento(char direccion, String[][] cuadricula) {\n int numeroA;\n int espacios;\n for (int fila = 0; fila < 4; fila++) {\n\n for (int columna = 0; columna < 4; columna++) {\n\n switch (direccion) {\n case 'w':\n /*Creamos una condicion que empezara a mover los numeros si la posicion en esa parte\n de la matriz no esta vacia, cuando la encuentra mueve desde esa posicion hacia arriba\n del cuadro y si se encuentra alguna parte igual la suma , si esta vacia la remplaza y si no se queda igual\n */\n if (cuadricula[columna][fila].equals(\" \") == false) {\n for (int vecesMovimiento = columna; vecesMovimiento > 0; vecesMovimiento--) {\n //Verigica si hay un numero igual arriba suyo para sumarse\n if (cuadricula[vecesMovimiento][fila].equals(cuadricula[vecesMovimiento - 1][fila])) {\n /* Como los numeros son iguales se toma uno, se convierte el string de esa parte de la cuadricula a\n numeroA la duplica y se la agrega a la posicion de arriba\n */\n numeroA = Integer.parseInt(cuadricula[vecesMovimiento][fila].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[vecesMovimiento - 1][fila] = Integer.toString(numeroA);\n /* desde la parte de espacios = 4 - cuadricula[vecesMovimiento-1]... hasta el for solo es el numero de espacios agregados al numero que dara\n para que se mantenga posicionado junto con la cuadricula\n */\n espacios = 4 - cuadricula[vecesMovimiento - 1][fila].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[vecesMovimiento - 1][fila] += \" \";\n }\n cuadricula[vecesMovimiento][fila] = \" \";\n } //Condicion que indica si hay un espacio vacio en una posicion arriba la sustituye la de abajo\n else if (cuadricula[vecesMovimiento - 1][fila].equals(\" \")) {\n cuadricula[vecesMovimiento - 1][fila] = cuadricula[vecesMovimiento][fila];\n cuadricula[vecesMovimiento][fila] = \" \";\n }\n }\n }\n break;\n\n case 's':\n /*Creamos una condicion que empezara a mover los numeros si la posicion en esa parte\n de la matriz no esta vacia,tomando en cuenta que inicia a contar de abajo para arriba, cuando la encuentra mueve\n desde esa posicion hacia abajo del cuadro y si se encuentra alguna parte igual la suma , si esta vacia la remplaza y si no se queda igual\n */\n if (cuadricula[3 - columna][fila].equals(\" \") == false) {\n //Empezamos el ciclo en una posicion de abajo de la matriz\n // llegaremos hasta 2 ya que sigue comparando con una posicion abajo extra gracias al +1\n for (int vecesMovimiento = 3 - columna; vecesMovimiento < 3; vecesMovimiento++) {\n /* Como los numeros son iguales se toma uno, se convierte el string de esa parte de la cuadricula a\n numeroA la duplica y se la agrega a la posicion de abajo\n */\n if (cuadricula[vecesMovimiento][fila].equals(cuadricula[vecesMovimiento + 1][fila])) {\n numeroA = Integer.parseInt(cuadricula[vecesMovimiento][fila].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[vecesMovimiento + 1][fila] = Integer.toString(numeroA);\n /* desde la parte de espacios = 4 - cuadricula[vecesMovimiento-1]... hasta el for solo es el numero de espacios agregados al numero que dara\n para que se mantenga posicionado junto con la cuadricula\n */\n espacios = 4 - cuadricula[vecesMovimiento + 1][fila].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[vecesMovimiento + 1][fila] += \" \";\n }\n cuadricula[vecesMovimiento][fila] = \" \";\n } //Condicion que indica si hay un espacio vacio en una posicion abajo la sustituye la de arriba\n else if (cuadricula[vecesMovimiento + 1][fila].equals(\" \")) {\n cuadricula[vecesMovimiento + 1][fila] = cuadricula[vecesMovimiento][fila];\n cuadricula[vecesMovimiento][fila] = \" \";\n }\n }\n }\n break;\n\n case 'a':\n /*Creamos una condicion que empezara a mover los numeros si la posicion en esa parte\n de la matriz no esta vacia,tomando en cuenta que inicia a contar de izquierda a derecha, cuando la encuentra mueve\n desde esa posicion hacia la izquierda del cuadro y si se encuentra alguna parte igual la suma , si esta vacia la remplaza y si no se queda igual\n */\n if (cuadricula[fila][columna].equals(\" \") == false) {\n //Empezamos el ciclo en una posicion de la izquierda de la matriz, es decir inicializada en 0\n for (int vecesMovimiento = columna; vecesMovimiento > 0; vecesMovimiento--) {\n /* Como los numeros son iguales se toma uno, se convierte el string de esa parte de la cuadricula a\n numeroA la duplica y se la agrega a la posicion de izquierda\n */\n if (cuadricula[fila][vecesMovimiento].equals(cuadricula[fila][vecesMovimiento - 1])) {\n numeroA = Integer.parseInt(cuadricula[fila][vecesMovimiento].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[fila][vecesMovimiento - 1] = Integer.toString(numeroA);\n espacios = 4 - cuadricula[fila][vecesMovimiento - 1].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[fila][vecesMovimiento - 1] += \" \";\n }\n cuadricula[fila][vecesMovimiento] = \" \";\n } //Condicion que indica si hay un espacio vacio en una posicion izquierda la sustituye la de derecha\n else if (cuadricula[fila][vecesMovimiento - 1].equals(\" \")) {\n cuadricula[fila][vecesMovimiento - 1] = cuadricula[fila][vecesMovimiento];\n cuadricula[fila][vecesMovimiento] = \" \";\n }\n }\n }\n break;\n\n //Lo mismo establecido pero orientado a la derecha, y en lugar del -1 de los vectores lo pasamos como +1 siguiendo la estructura\n //de la opcion 's'\n case 'd':\n if (cuadricula[fila][3 - columna].equals(\" \") == false) {\n for (int vecesMovimiento = 3 - columna; vecesMovimiento < 3; vecesMovimiento++) {\n if (cuadricula[fila][vecesMovimiento].equals(cuadricula[fila][vecesMovimiento + 1])) {\n numeroA = Integer.parseInt(cuadricula[fila][vecesMovimiento].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[fila][vecesMovimiento + 1] = Integer.toString(numeroA);\n espacios = 4 - cuadricula[fila][vecesMovimiento + 1].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[fila][vecesMovimiento + 1] += \" \";\n }\n cuadricula[fila][vecesMovimiento] = \" \";\n } else if (cuadricula[fila][vecesMovimiento + 1].equals(\" \")) {\n cuadricula[fila][vecesMovimiento + 1] = cuadricula[fila][vecesMovimiento];\n cuadricula[fila][vecesMovimiento] = \" \";\n }\n }\n }\n break;\n\n }\n\n }\n }\n return cuadricula;\n }",
"public void ejecutarCodigoSQLdatos(String nombrebuscado)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/Codigo SQL crebas datos.sql\" );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tif(!codigo.equalsIgnoreCase(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tConector conectord = new Conector(nombrebuscado);\r\n\t\t\t\t\tconectord.iniciarConexionBaseDatos();\r\n\t\t\t\t\tCrearBD.ejecutarCodigoSQL(codigo, conectord);\r\n\t\t\t\t\tconectord.terminarConexionBaseDatos();\r\n\t\t\t\t}\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Se Instalo la Base de Datos Correctamente.\",\"Instalar Base de Datos\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo Codigo SQL crebas datos.sql\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void precioFinal(){\r\n if(getConsumoEnergetico() == Letra.A){\r\n precioBase = 100+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.B)){\r\n precioBase = 80+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.C){\r\n precioBase = 60+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.D)){\r\n precioBase = 50+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.E){\r\n precioBase = 30+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.F)){\r\n precioBase = 10+precioBase;\r\n }\r\n else{\r\n aux=1;\r\n System.out.println(\"...No existe...\");\r\n }\r\n if (aux==0){\r\n peso();\r\n }\r\n \r\n }",
"public void setRagione_sociale(String ragione_sociale) {\r\n this.ragione_sociale = ragione_sociale;\r\n }",
"public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }",
"private int creaSingoloAddebito(int cod, Date data) {\n /* variabili e costanti locali di lavoro */\n int nuovoRecord = 0;\n boolean continua;\n Dati dati;\n int codConto = 0;\n int codListino = 0;\n int quantita = 0;\n double prezzo = 0.0;\n Campo campoConto = null;\n Campo campoListino = null;\n Campo campoQuantita = null;\n Campo campoPrezzo = null;\n Campo campoData = null;\n Campo campoFissoConto = null;\n Campo campoFissoListino = null;\n Campo campoFissoQuantita = null;\n Campo campoFissoPrezzo = null;\n ArrayList<CampoValore> campi = null;\n Modulo modAddebito = null;\n Modulo modAddebitoFisso = null;\n\n try { // prova ad eseguire il codice\n\n modAddebito = Progetto.getModulo(Addebito.NOME_MODULO);\n modAddebitoFisso = Progetto.getModulo(AddebitoFisso.NOME_MODULO);\n\n /* carica tutti i dati dall'addebito fisso */\n dati = modAddebitoFisso.query().caricaRecord(cod);\n continua = dati != null;\n\n /* recupera i campi da leggere e da scrivere */\n if (continua) {\n\n /* campi del modulo Addebito Fisso (da leggere) */\n campoFissoConto = modAddebitoFisso.getCampo(Addebito.Cam.conto.get());\n campoFissoListino = modAddebitoFisso.getCampo(Addebito.Cam.listino.get());\n campoFissoQuantita = modAddebitoFisso.getCampo(Addebito.Cam.quantita.get());\n campoFissoPrezzo = modAddebitoFisso.getCampo(Addebito.Cam.prezzo.get());\n\n /* campi del modulo Addebito (da scrivere) */\n campoConto = modAddebito.getCampo(Addebito.Cam.conto.get());\n campoListino = modAddebito.getCampo(Addebito.Cam.listino.get());\n campoQuantita = modAddebito.getCampo(Addebito.Cam.quantita.get());\n campoPrezzo = modAddebito.getCampo(Addebito.Cam.prezzo.get());\n campoData = modAddebito.getCampo(Addebito.Cam.data.get());\n\n }// fine del blocco if\n\n /* legge i dati dal record di addebito fisso */\n if (continua) {\n codConto = dati.getIntAt(campoFissoConto);\n codListino = dati.getIntAt(campoFissoListino);\n quantita = dati.getIntAt(campoFissoQuantita);\n prezzo = (Double)dati.getValueAt(0, campoFissoPrezzo);\n dati.close();\n }// fine del blocco if\n\n /* crea un nuovo record in addebito */\n if (continua) {\n campi = new ArrayList<CampoValore>();\n campi.add(new CampoValore(campoConto, codConto));\n campi.add(new CampoValore(campoListino, codListino));\n campi.add(new CampoValore(campoQuantita, quantita));\n campi.add(new CampoValore(campoPrezzo, prezzo));\n campi.add(new CampoValore(campoData, data));\n nuovoRecord = modAddebito.query().nuovoRecord(campi);\n continua = nuovoRecord > 0;\n }// fine del blocco if\n\n /* aggiorna la data di sincronizzazione in addebito fisso */\n if (continua) {\n this.getModulo().query().registraRecordValore(cod, Cam.dataSincro.get(), data);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return nuovoRecord;\n }",
"private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}",
"public void grabarConcepto(){\r\n try {\r\n Conexion conexion = new Conexion();\r\n String query = \"insert into concepto (descripcion, tipoConcepto, porcentaje, monto, fijo) values (?,?,?,?,?);\";\r\n PreparedStatement st = conexion.getConnection().prepareStatement(query);\r\n st.setString(1, this.getDescripcion());\r\n st.setString(2, this.getTipoConcepto());\r\n st.setDouble(3, this.getPorcentaje());\r\n st.setDouble(4, this.getMonto());\r\n st.setString(5, this.getFijo());\r\n st.execute();\r\n System.out.println(\"SE GRABO EL CONCEPTO EN LA BASE DE DATOS\");\r\n st.close();\r\n conexion.desconectar();\r\n } catch (SQLException ex) {\r\n System.err.println(ex.getMessage());\r\n }\r\n }",
"private void dispositivoGPS(String nameDisp){\n DatabaseReference db_dispositivo = db_reference.child(\"Registros\");\n\n db_dispositivo.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Boolean existe = false;\n HashMap<String, String> info_disp = null;\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n if (snapshot!=null && snapshot.getKey().equals(edtDispositivo.getText().toString())){\n System.out.println(nameDisp+\"hola\");\n info_disp =(HashMap<String, String>) snapshot.getValue();\n existe = true;\n break;\n }\n }\n if (existe && info_disp!=null) {\n System.out.println(existe);\n DatabaseReference db_dispo = db_dispositivo.child(nameDisp);\n db_dispo.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n HashMap<String, String> info_dps = null;\n String key = null;\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n info_dps =(HashMap<String, String>) dataSnapshot.getValue();\n key=snapshot.getKey();\n break;\n }\n if (info_dps!=null && key!=null) {\n\n DatabaseReference base = db_dispo.child(key);\n base.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n HashMap<String, String> info =null;\n HashMap<String, String> punto =null;\n Boolean nulidad = false;\n String keydato = null;\n for (DataSnapshot snapshot : dataSnapshot.getChildren()){\n info = (HashMap<String, String>) dataSnapshot.getValue();\n if (info!=null) {\n if (!info.get(\"lat\").equals(\"0\")) {\n punto = (HashMap<String, String>) dataSnapshot.getValue();\n nulidad = true;\n keydato = dataSnapshot.getKey();\n System.out.println(keydato);\n break;\n }\n System.out.println(\"no existe\");\n }\n }\n if (punto!=null && nulidad && keydato!=null){\n System.out.println(info);\n System.out.println(\"aki\");\n if (numDispositivo == 1) {\n disp_Lat1 = punto.get(\"lat\");\n disp_Long1 = punto.get(\"long\");\n estadoBateria = punto.get(\"estBateria\");\n System.out.println(numDispositivo);\n System.out.println(numDispositivo);\n System.out.println(disp_Lat1 + \"-\" + disp_Long1);\n System.out.println(disp_Lat2 + \"-\" + disp_Long2);\n Toast.makeText(FormularioCurso.this, \"La bateria de su dispositivo es: \" + estadoBateria, Toast.LENGTH_SHORT).show();\n DatabaseReference eliminar = db_reference.child(\"Registros\").child(nameDisp);\n eliminar.child(keydato).removeValue();\n }\n if (numDispositivo == 2) {\n disp_Lat2 = punto.get(\"lat\");\n disp_Long2 = punto.get(\"long\");\n estadoBateria = punto.get(\"estBateria\");\n System.out.println(numDispositivo);\n System.out.println(disp_Lat1 + \"-\" + disp_Long1);\n System.out.println(disp_Lat2 + \"-\" + disp_Long2);\n Toast.makeText(FormularioCurso.this, \"La bateria de su dispositivo es: \" + estadoBateria, Toast.LENGTH_SHORT).show();\n DatabaseReference eliminar = db_reference.child(\"Registros\").child(nameDisp);\n eliminar.child(keydato).removeValue();\n }\n Guardar();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(TAG, \"Error!\", databaseError.toException());\n }\n });\n\n }else{\n System.out.println(\"falla disp\");\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(TAG, \"Error!\", databaseError.toException());\n }\n });\n\n }else{\n Toast.makeText(FormularioCurso.this, \"El codigo o nombre del dispositivo ingresado no existe.\", Toast.LENGTH_SHORT).show();\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n Log.e(TAG, \"Error!\", databaseError.toException());\n }\n });\n }",
"public void construirPrimerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet1ReglaCompleja = new JComboBox(dominio);// creamos el primer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet1ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el primer item\n\t\titemscomboDominiosSet1ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet1ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el primer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet1ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet1ReglaCompleja);\n\t\titemscomboDominiosSet1ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet1ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public RekapKamar() {\n Koneksi DB = new Koneksi();\n DB.koneksi();\n con = DB.conn;\n stat = DB.stmn;\n initComponents();\n loadTabel();\n }",
"public boolean isConfermabile() {\n boolean confermabile = false;\n Date d1, d2;\n\n try { // prova ad eseguire il codice\n confermabile = super.isConfermabile();\n\n /* controllo che le date siano in sequenza */\n if (confermabile) {\n d1 = this.getDataInizio();\n d2 = this.getDataFine();\n confermabile = Lib.Data.isSequenza(d1, d2);\n }// fine del blocco if\n\n /* controllo che almeno una riga sia selezionata */\n if (confermabile) {\n confermabile = getPanServizi().getRigheSelezionate().size() > 0;\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return confermabile;\n\n }",
"public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }",
"public static boolean probar_base_de_datos(String path) throws SQLException{\n path = \"jdbc:sqlite:\"+path;\n try {\n System.out.println(\"Probando base de datos\");\n DriverManager.getConnection(path);\n \n }\n catch (SQLException e) {\n return false;\n }\n return true;\n }",
"private boolean consultarCotizacionesParaFacturar(java.sql.Connection conn, int intCodSeg){\r\n boolean blnRes=false;\r\n java.sql.Statement stmLoc,stmLoc01;\r\n stbDocRelEmpRem = new StringBuffer();\r\n arlDocGenDat = new ArrayList();\r\n objZafGenOD = new GenOD.ZafGenOdPryTra() ;\r\n objModDatGenFac = new Librerias.ZafGenFacAut.ZafModDatGenFac(objParSis, jifCnt);\r\n objStkInv = new Librerias.ZafStkInv.ZafStkInv(objParSis);\r\n objCnfDoc = new Librerias.ZafCnfDoc.ZafCnfDoc(objParSis,null);\r\n objCfgSer.cargaDatosIpHostServicios(0, intCodSer);\r\n java.sql.ResultSet rstLoc,rstLoc01;\r\n String strMerIngEgr=\"\",strTipIngEgr=\"\";\r\n blnIsComSol = false;\r\n try{\r\n stmLoc=conn.createStatement();\r\n strSql=\"\";\r\n strSql+=\" SELECT a2.co_seg, a3.tx_corEle, \\n\";\r\n strSql+=\" a1.co_emp, a1.co_loc, a1.co_cot, a1.fe_cot, a1.co_cli, a1.co_ven, a1.tx_ate, a1.co_forpag, \\n\";\r\n strSql+=\" a1.nd_sub, a1.nd_poriva, a1.nd_valdes, a1.tx_obs1, a1.tx_obs2, a1.st_reg, a1.fe_ing, \\n\";\r\n strSql+=\" a1.fe_ultmod, a1.co_usring, a1.co_usrmod, a1.nd_tot, a1.ne_val, a1.nd_valiva, a1.tx_numped, \\n\";\r\n strSql+=\" a1.st_regrep, a1.tx_obssolaut, a1.tx_obsautsol, a1.st_aut, a1.tx_nomcli, a1.fe_procon, \\n\";\r\n strSql+=\" a1.co_locrelsoldevven, a1.co_tipdocrelsoldevven, a1.co_docrelsoldevven, \\n\";\r\n strSql+=\" a1.st_docconmersaldemdebfac, a1.fe_val, a1.co_tipcre, a1.tx_dirclifac, a1.tx_dircliguirem, \\n\";\r\n strSql+=\" a1.co_forret, a1.tx_vehret, a1.tx_choret, \\n\";\r\n strSql+=\" CASE WHEN a1.tx_momgenfac IS NULL THEN 'M' ELSE a1.tx_momgenfac END as tx_momgenfac, \\n\";\r\n strSql+=\" a1.nd_valComSol,a1.nd_subIvaCer,a1.nd_subIvaGra,a1.nd_porComSol,a1.st_solFacPar, a1.tx_tipCot \\n\";\r\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\r\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a2 ON (a1.co_emp=a2.co_empRelCabCotVen AND a1.co_loc=a2.co_locRelCabCotVen AND \\n\";\r\n strSql+=\" a1.co_cot=a2.co_cotRelCabCotVen) \\n\";\r\n strSql+=\" INNER JOIN tbm_usr as a3 ON (a1.co_usrIng=a3.co_usr) \\n\";\r\n strSql+=\" WHERE a2.co_seg=\"+intCodSeg+\" AND a2.co_empRelCabCotVen IS NOT NULL AND a1.st_reg!='F' \\n\"; /* LISTO PARA FACTURAR */\r\n strSql+=\" AND a1.st_autSolResInv IS NULL \";\r\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc \\n\";\r\n System.out.println(\"consultarCotizacionesParaFacturar... \\n\" + strSql);\r\n rstLoc=stmLoc.executeQuery(strSql);\r\n while(rstLoc.next()){\r\n CodEmpGenFac = rstLoc.getInt(\"co_emp\");\r\n if(rstLoc.getInt(\"co_emp\")==2 && rstLoc.getInt(\"co_loc\")==4){\r\n blnIsComSol=true;\r\n }\r\n// dblPorComSol=objUti.redondear(rstLoc.getDouble(\"nd_porComSol\"), objParSis.getDecimalesMostrar());\r\n// dblBaseIva=objUti.redondear(rstLoc.getDouble(\"nd_subIvaGra\"), objParSis.getDecimalesMostrar());\r\n\r\n obtenerDatosFactura(conn, rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"),rstLoc.getInt(\"co_cot\"));\r\n objZafCtaCtb_dat = new ZafCtaCtb_dat(objParSis,rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle);\r\n cargarTipEmp(conn, rstLoc);\r\n Configurartabla();\r\n configurarTablaPago();\r\n refrescaDatos2(conn,rstLoc, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"));\r\n CalculoPago(conn, rstLoc); // TOTALES CARGADO????? \r\n CalculoPago2(conn, rstLoc);\r\n// refrescaDatos2(conn,rstLoc, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"));\r\n FormaRetencion(conn, rstLoc.getInt(\"co_emp\"));\r\n stmLoc01=conn.createStatement();\r\n strSql = \"SELECT st_meringegrfisbod, tx_natdoc FROM tbm_cabtipdoc WHERE co_emp=\" + rstLoc.getInt(\"co_emp\") + \" \"\r\n + \" and co_loc=\"+rstLoc.getInt(\"co_loc\")+\" and co_tipDoc=\" + intCodTipDocFacEle;\r\n rstLoc01 = stmLoc01.executeQuery(strSql);\r\n if (rstLoc01.next()) {\r\n strMerIngEgr = rstLoc01.getString(\"st_meringegrfisbod\");\r\n strTipIngEgr = rstLoc01.getString(\"tx_natdoc\");\r\n }\r\n rstLoc01.close();\r\n rstLoc01=null;\r\n stmLoc01.close();\r\n stmLoc01=null;\r\n //dblPorComSol=0.00,dblBaseIva=0.00;\r\n\r\n System.out.println(\"st_reg= \" + rstLoc.getString(\"st_reg\").toString());\r\n\r\n if(rstLoc.getString(\"st_reg\").equals(\"L\") && (rstLoc.getString(\"tx_momGenFac\").equals(\"F\") || rstLoc.getString(\"tx_momGenFac\").equals(\"M\") )){ // INMACONSA SE FACTURA POR AKI\r\n if(insertarCabFac(conn,rstLoc)){\r\n if (insertarDetFac(conn,rstLoc,intCodSeg)) {\r\n calculaPag(conn, rstLoc);\r\n if (insertarPagFac(conn,rstLoc, intCodTipDocFacEle, intCodDoc)) {\r\n if(insertarDiario(conn,rstLoc, intCodTipDocFacEle, intCodDoc)) {\r\n if (objInvItm._getExiItmSer(conn, rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)) {\r\n if(asignaNumeroFac(conn, rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc, rstLoc.getInt(\"co_cot\") )){\r\n if(insertarTablaSeguimiento(conn,rstLoc,intCodTipDocFacEle,intCodDoc)){\r\n if(prepararEgreso(conn,rstLoc,rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc) ){\r\n// if(objModDatGenFac.cuadraStockSegunMovimientos(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n System.err.println(\"<----- antes costear ----->\");\r\n if(objUti.costearDocumento(jifCnt, objParSis, conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n System.err.println(\"<----- despues costear ----->\");\r\n if(revisarInvBodNegativos(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n System.out.println(\"ANTES OD \");\r\n if(objZafGenOD.generarODLocal(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc,true)){\r\n if(objDatItm.preLiberarItems(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), rstLoc.getInt(\"co_cot\"))){\r\n blnRes=true;\r\n guardaDocumentosGenerado(rstLoc,intCodTipDocFacEle,intNumFacElec,intCodDoc,rstLoc.getString(\"tx_corEle\")); // PARA EL CORREO ELECTRONICO\r\n System.out.println(\"GENERO: \"+rstLoc.getInt(\"co_emp\")+\" - \"+rstLoc.getInt(\"co_loc\")+\" - \"+rstLoc.getInt(\"co_cot\")+\"FACTURA: \"+intCodTipDocFacEle+\"-\"+intCodDoc);\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{System.out.println(\"costeo Error\"); blnRes=false; }\r\n// }else{ System.out.println(\"cuadraStockSegunMovimientos Error\"); blnRes = false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n }else{blnRes=false;}\r\n\r\n if(blnRes==false){\r\n objCorEle.enviarCorreoMasivo(strCorEleTo,\"ERROR.... \",\"Revisar Seguimiento: \"+rstLoc.getInt(\"co_seg\")+\"cotizacion Emp:\"+rstLoc.getInt(\"co_emp\")+\" Loc:\"+rstLoc.getInt(\"co_loc\")+\" Cot:\" + rstLoc.getInt(\"co_cot\"));\r\n }\r\n }\r\n else if(rstLoc.getString(\"tx_momGenFac\").equals(\"P\")){\r\n// if(obtenerFacturaSeguimiento(conn,intCodSeg)){\r\n// if(actualizarDetFac(conn,rstLoc)){\r\n// if(prepararEgreso(conn,rstLoc,rstLoc.getInt(\"co_emp\"),rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc) ){\r\n// if(!objZafGenOD.validarODExs(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n// if(objZafGenOD.generarNumODFacIni(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n// if(revisarInvBodNegativos(conn, rstLoc.getInt(\"co_emp\"), rstLoc.getInt(\"co_loc\"), intCodTipDocFacEle, intCodDoc)){\r\n// blnRes=true;\r\n// }else{blnRes=false;}\r\n// }else{blnRes=false;}\r\n// }else{ blnRes=true; }\r\n// }\r\n// }\r\n// }\r\n blnRes=false;\r\n }\r\n else{\r\n objCorEle.enviarCorreoMasivo(strCorEleTo, \"FACTURA AUTOMATICA ESTADO INCORRECTO.... \",\"Revisar Seguimiento: \"+rstLoc.getInt(\"co_seg\"));\r\n }\r\n\r\n\r\n\r\n\r\n if(blnRes==false){\r\n System.out.println(\"FALLO!!! \"+rstLoc.getInt(\"co_emp\")+\" - \"+rstLoc.getInt(\"co_loc\")+\" - \"+rstLoc.getInt(\"co_cot\"));\r\n }\r\n objZafCtaCtb_dat = null;\r\n }\r\n if(blnRes){\r\n enviaCorreosElectronicos();\r\n// enviaImprimirOdLocal(conn);\r\n enviarPulsoFacturacionElectronica();\r\n System.err.println(\"GUARDA!!!! \");\r\n }\r\n else{\r\n System.err.println(\"ERROR!!!! \");\r\n }\r\n \r\n stmLoc.close();\r\n stmLoc=null;\r\n rstLoc.close();\r\n rstLoc=null;\r\n }\r\n catch (SQLException Evt) {\r\n blnRes = false;\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n catch (Exception Evt) {\r\n blnRes = false;\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n }\r\n return blnRes;\r\n }",
"public void actualizarFechaComprobantes() {\r\n if (utilitario.isFechasValidas(cal_fecha_inicio.getFecha(), cal_fecha_fin.getFecha())) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n utilitario.addUpdate(\"tab_tabla1,tab_tabla2\");\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales\");\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Rango de fechas no válidas\", \"\");\r\n }\r\n\r\n }",
"public ArrayList<String> Info_Disc_Pel_Compras_usu(String genero, String usuario) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Pel_Rep1(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Peliculas.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3]) & info_disco_compra[0].equals(usuario)) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }",
"private void inicializarTablero() {\r\n\t\t\r\n\t\tfor(int i = 0; i < filas; i++) {\r\n\t\t\tfor(int j = 0; j < columnas; j++) {\r\n\t\t\t\tsuperficie[i][j] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }",
"private boolean generarEgresoMercaderiaReservada(java.sql.Connection conExt, int CodEmp,int CodLoc,int CodCot){\n boolean blnRes=false;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n ArrayList arlResDat, arlResReg;\n try{\n if(conExt!=null){\n stmLoc=conExt.createStatement();\n arlResDat = new ArrayList();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg, a2.co_itm, a2.co_bod, a2.nd_can, \\n\";\n strSql+=\" CASE WHEN a3.nd_cosUni IS NULL THEN 0 ELSE a3.nd_cosUni END as nd_cosUni,a4.co_seg \";\n strSql+=\" ,a2.tx_nomItm \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_inv as a3 ON (a2.co_emp=a3.co_emp AND a2.co_itm=a3.co_itm) \\n\";\n strSql+=\" INNER JOIN tbm_cabSegMovInv as a4 ON (a1.co_emp=a4.co_empRelCabCotVen AND a1.co_loc=a4.co_locRelCabCotVen AND \\n\";\n strSql+=\" a1.co_cot=a4.co_cotRelCabCotVen) \\n\";\n strSql+=\" WHERE a1.co_emp=\"+CodEmp+\" and a1.co_loc=\"+CodLoc+\" and a1.co_cot=\"+CodCot+\" and a3.st_ser='N' \\n\";\n strSql+=\" ORDER BY a1.co_emp, a1.co_loc, a1.co_cot, a2.co_reg \\n\";\n System.out.println(\"generarEgresoMercaderiaReservada \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n arlResReg = new ArrayList();\n arlResReg.add(INT_ARL_DAT_COD_EMP, rstLoc.getInt(\"co_emp\"));\n arlResReg.add(INT_ARL_DAT_COD_LOC, rstLoc.getInt(\"co_loc\"));\n arlResReg.add(INT_ARL_DAT_COD_BOD_EMP, rstLoc.getInt(\"co_bod\"));\n arlResReg.add(INT_ARL_DAT_COD_ITM_EMP, rstLoc.getInt(\"co_itm\"));\n arlResReg.add(INT_ARL_DAT_CAN, rstLoc.getDouble(\"nd_can\"));\n arlResReg.add(INT_ARL_DAT_COS_UNI, rstLoc.getDouble(\"nd_cosUni\"));\n arlResReg.add(INT_ARL_DAT_COD_SEG, rstLoc.getInt(\"co_seg\"));\n arlResReg.add(INT_ARL_DAT_COD_REG, rstLoc.getInt(\"co_reg\"));\n arlResReg.add(INT_ARL_DAT_NOM_ITM, rstLoc.getString(\"tx_nomItm\"));\n arlResDat.add(arlResReg);\n }\n rstLoc.close();\n rstLoc=null;\n stmLoc.close();\n stmLoc=null;\n if(!arlResDat.isEmpty()){\n ZafGenDocIngEgrInvRes objGenDocIngEgrInvRes = new ZafGenDocIngEgrInvRes(objParSis,this);\n if(objGenDocIngEgrInvRes.GenerarDocumentoIngresoEgresoReservas(conExt, datFecAux, arlResDat, 1)){\n blnRes=true;\n }\n }\n }\n }\n catch (java.sql.SQLException e) { \n blnRes = false;\n objUti.mostrarMsgErr_F1(this, e); \n }\n catch (Exception Evt) {\n blnRes = false;\n objUti.mostrarMsgErr_F1(this, Evt);\n }\n return blnRes;\n }",
"private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private boolean generaOC(java.sql.Connection conExt,int intCodEmp,int intCodLoc,int intCodCot){\n boolean blnRes=true;\n java.sql.Statement stmLoc;\n java.sql.ResultSet rstLoc;\n int intCodDoc,intCodBod=-1,intCodPrv=-1,intCodEmpTemp=-1,intCodLocTemp=-1;\n String strConfInv=\"F\",strCorEle=\"\";\n try{ \n if(conExt!=null){\n stmLoc=conExt.createStatement();\n strSql=\"\";\n strSql+=\" SELECT a1.co_emp, a1.co_loc, a1.co_cot, a2.co_bod, a2.co_prv, a1.co_usrIng,a6.tx_nom as tx_nomCom,a3.tx_nom, a3.tx_ide, \\n\";\n strSql+=\" a3.tx_dir, a3.tx_tel,a3.tx_nom as tx_nomCli ,a4.tx_desLar as tx_nomCiu, a2.co_forPagCom,a5.tx_des as tx_nomForPagCom, \\n\";\n strSql+=\" a6.tx_usr,a6.tx_nom as tx_nomUsr, a6.tx_corEle, a2.tx_obs1Com, a2.co_forRetCom \\n\";\n strSql+=\" FROM tbm_cabCotVen as a1 \\n\";\n strSql+=\" INNER JOIN tbm_detCotVen as a2 ON (a1.co_emp=a2.co_emp AND a1.co_loc=a2.co_loc AND a1.co_cot=a2.co_cot) \\n\";\n strSql+=\" INNER JOIN tbm_cli as a3 ON (a2.co_emp=a3.co_emp AND a2.co_prv=a3.co_cli) \\n\";\n strSql+=\" LEFT OUTER JOIN tbm_ciu as a4 ON (a3.co_ciu=a4.co_ciu) \\n\";\n strSql+=\" INNER JOIN tbm_cabForPag AS a5 ON (a2.co_emp=a5.co_emp AND a2.co_forPagCom=a5.co_forPag)\\n\";\n strSql+=\" INNER JOIN tbm_usr AS a6 ON (a1.co_usrIng=a6.co_usr) \";\n strSql+=\" WHERE a1.co_emp=\"+intCodEmp+\" AND a1.co_loc=\"+intCodLoc+\" AND a1.co_cot=\"+intCodCot+\" AND a2.tx_codAlt like '%L' \\n\";\n strSql+=\" GROUP by a2.co_prv,a1.co_emp, a1.co_loc, a1.co_cot, a2.co_bod , a1.co_usrIng ,a3.tx_nom, a3.tx_ide, a3.tx_dir, \\n\";\n strSql+=\" a3.tx_tel ,a4.tx_desLar , a2.co_forPagCom, a5.tx_des, a6.tx_usr, a6.tx_nom , \\n\";\n strSql+=\" a6.tx_corEle, a2.tx_obs1Com, a2.co_forRetCom \\n\";\n System.out.println(\"Datos para la OC: generaOC: \" + strSql);\n rstLoc = stmLoc.executeQuery(strSql);\n while(rstLoc.next()){\n intCodBod=rstLoc.getInt(\"co_bod\");\n intCodPrv = rstLoc.getInt(\"co_prv\");\n strCorEle = rstLoc.getString(\"tx_corEle\");\n intCodDoc=getCodigoDocumento(conExt,intCodEmp,intCodLoc, intCodTipDocOC);\n txtsql.setText(\"\");\n if(FormaRetencion(conExt,intCodEmp )){\n if(insertarCabOC(conExt,rstLoc,intCodDoc, strConfInv )){ \n if(insertarDetOC(intCodDoc,rstLoc,conExt )){ \n intCodEmpTemp = objParSis.getCodigoEmpresa(); intCodLocTemp=objParSis.getCodigoLocal();\n objParSis.setCodigoEmpresa(intCodEmp); objParSis.setCodigoLocal(intCodLoc);\n Ventas.ZafVen01.ZafVen01_OC obj1 = new Ventas.ZafVen01.ZafVen01_OC(javax.swing.JOptionPane.getFrameForComponent(this), objParSis, intCodCot, intCodPrv, 45, rstLoc.getString(\"co_usrIng\"), rstLoc.getString(\"tx_nomCom\"), conExt, intCodDoc,false);\n if(obj1.cargarOCReservas(conExt, intCodEmp, intCodLoc, intCodCot, intCodTipDocOC, intCodDoc)){\n if(obj1.insertarRegPagos(conExt, intCodDoc)){\n String strMensaje=(\"<HTML>Imprima la orden de compra numero <FONT COLOR=\\\"blue\\\"> \" + intNumDocOC + \" </FONT>.</HTML>\");\n objCorEle.enviarCorreoMasivo(rstLoc.getString(\"tx_corEle\"),strTitCorEle,strMensaje);\n }else{MensajeInf(\"Error al Guardar: Insertando pagos\");blnRes=false;}\n }else{MensajeInf(\"Error al Guardar: Al cargar la OC \");blnRes=false;}\n\n objParSis.setCodigoEmpresa(intCodEmpTemp);objParSis.setCodigoLocal(intCodLocTemp);\n obj1 = null;\n }else{blnRes=false;}\n }else{MensajeInf(\"Error al Guardar: Insertando OC\");blnRes=false;}\n }else{MensajeInf(\"Error al Guardar: Forma Retencion pagos OC\");blnRes=false;}\n }\n }else{blnRes=false;}\n \n if(blnRes==false){\n objCorEle.enviarCorreoMasivo(strCorEleErr, strTitCorEle, \"ERROR PAGOS OC co_emp=\"+intCodEmp+\"AND co_loc=\"+intCodLoc+\" AND co_cot=\"+intCodCot );\n }\n }\n catch (java.sql.SQLException e){\n objUti.mostrarMsgErr_F1(this, e);\n }\n catch(Exception Evt){ \n blnRes=false; \n objUti.mostrarMsgErr_F1(this, Evt); \n }\n return blnRes;\n }",
"public datosTaller() {\n this.cedulaCliente = new int[100]; //Atributo de la clase\n this.nombreCliente = new String[100]; //Atributo de la clase\n this.compraRealizada = new String[100]; //Atributo de la clase\n this.valorCompra = new float[100]; //Atributo de la clase\n this.posicionActual = 0; //Inicializacion de la posicion en la que se almacenan datos\n }",
"public DetallesCompra(java.awt.Frame parent, boolean modal,int compra,float total1,String fecha1) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n efectosTabla();\n llenarTabla(compra);\n ID.setText(\"\"+compra);\n total.setText(\"$\"+total1);\n fecha.setText(\"\"+fecha1);\n }",
"public static void MostrarPerroSegunEstadia(Perro BaseDeDatosPerros[], int codPerro){\n String razaDeceada, razaPerro;\r\n int diasDeEstadia; \r\n razaDeceada=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerro=BaseDeDatosPerros[i].getRaza();\r\n diasDeEstadia=BaseDeDatosPerros[i].getCantDias();\r\n if (razaDeceada.equalsIgnoreCase(razaPerro)&&(diasDeEstadia>20)) {\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(BaseDeDatosPerros[i].toString());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }\r\n }\r\n \r\n }",
"public Biodata() {\n initComponents();\n //pemanggilan fungsi koneksi database yang sudah kita buat pada class koneksi.java\n ConnectionDB DB = new ConnectionDB();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n pst = DB.pst;\n data_table_mahasiswa();\n }",
"public void construirCuartoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet4ReglaCompleja = new JComboBox(dominio);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet4ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\titemscomboDominiosSet4ReglaCompleja = new JComboBox();// creamo el Cuarto combo, vacio\n\t\titemscomboDominiosSet4ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Cuarto Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet4ReglaCompleja);\n\t\tcomboDominiosSet4ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet4ReglaCompleja);\n\t\titemscomboDominiosSet4ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"@Test\n\tpublic void unUsuarioEstaDentroDelAreaDeCobertura(){\n\t\tPOI cgp = new CGP(\"cgp\", posicionUno, direccion, vertices);\n\t\tAssert.assertTrue(cgp.estaCercaDe(posicionSeis));\n\t}",
"private void loadTables(String NroGuia){\r\n log_Guide log_guide = new log_Guide();\r\n \r\n if (NroGuia.isEmpty()){\r\n tb_factura.setItems(null);\r\n }else{\r\n log_guide.setTp_factura(Ln.getInstance().find_Archguid(NroGuia, \"\"));\r\n loadTableBill(tb_factura, log_guide.getTp_factura() ); \r\n }\r\n }",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public static void carijalan(int start, int end) {\n jalur.clear();\n int pathTrace = path.get(end).indexroot; // cari jalur melalui index root (indeks simpul yang dilalui sebelum simpul tsb)\n jalur.add(end); // mulai dari simpul tujuan\n jalur.add(pathTrace); // tambahkan simpul yang dilalui sebelum simpul tujuan\n while (pathTrace != start) { \n int pathTraceTemp = path.get(pathTrace).indexroot; // terus mencari simpul yang dilewati hingga menemui start\n jalur.add(pathTraceTemp); // tulis semua simpul yang dilewati\n pathTrace = pathTraceTemp;\n }\n Collections.reverse(jalur); // ubah urutan dari awalnya tujuan ke awal, menjadi awal ke tujuan\n jarakfinal = path.get(end).jarak;\n }"
] | [
"0.5926699",
"0.5871431",
"0.5852393",
"0.5718121",
"0.5706004",
"0.56983435",
"0.5670512",
"0.5644296",
"0.56045574",
"0.5580212",
"0.5578965",
"0.55762625",
"0.55651206",
"0.5551234",
"0.55413187",
"0.5526223",
"0.5525761",
"0.55209947",
"0.5511072",
"0.5508549",
"0.5503243",
"0.5492457",
"0.5465126",
"0.5456217",
"0.54557794",
"0.5444517",
"0.54373115",
"0.54336387",
"0.5432799",
"0.5428039",
"0.54256284",
"0.54239684",
"0.5418268",
"0.54139525",
"0.5411241",
"0.5410053",
"0.5400731",
"0.53937536",
"0.5389466",
"0.53829795",
"0.5377755",
"0.5375431",
"0.5372814",
"0.5370649",
"0.53653306",
"0.5364096",
"0.5363122",
"0.5358034",
"0.5356273",
"0.53551525",
"0.5349828",
"0.5347009",
"0.5341048",
"0.5340749",
"0.5339129",
"0.5336756",
"0.53342134",
"0.5330869",
"0.5319605",
"0.5310016",
"0.53087324",
"0.5306176",
"0.5299952",
"0.52999234",
"0.52799755",
"0.52649826",
"0.5263229",
"0.526311",
"0.52624065",
"0.5250026",
"0.5249903",
"0.5249721",
"0.5249446",
"0.5245996",
"0.524288",
"0.5238845",
"0.5237374",
"0.52341104",
"0.5231925",
"0.5231834",
"0.5230685",
"0.5230463",
"0.5230209",
"0.52292484",
"0.52280843",
"0.522686",
"0.5223711",
"0.5217476",
"0.5217063",
"0.5215843",
"0.52141833",
"0.5213719",
"0.52106863",
"0.5209979",
"0.5207533",
"0.5205681",
"0.52039236",
"0.5203037",
"0.52015316",
"0.5198562",
"0.5198454"
] | 0.0 | -1 |
SE ELIMINA LA VERSION DE BD ANTERIOR db.execSQL("DROP TABLE IF EXISTS Cliente"); db.execSQL(sql); | @Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void esborrarTaula() throws SQLException {\n bd.execSQL(\"DROP TABLE IF EXISTS \" + BD_TAULA);\n }",
"public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sentSQL);\r\n st.close();\r\n LOG.log(Level.INFO,\"Carrito vaciado\");\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n \tLOG.log(Level.WARNING,e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n String sql = \"DROP TABLE IF EXISTS products\";\n db.execSQL(sql);\n onCreate(db);\n\n String sql_2 = \"DROP TABLE IF EXISTS orders\";\n db.execSQL(sql_2);\n // Buat kembali table setelah di drop\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n String sql = \"DROP TABLE IF EXISTS \" + TABELA;\n db.execSQL(sql);\n //Chama o metodo onCreate novamente\n onCreate(db);\n }",
"public void borrarTodo()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\tStatement st = conexion.createStatement();\r\n\t\tst.execute(\"DROP TABLE usuarios\");\r\n\t\tst.execute(\"DROP TABLE prestamos\");\r\n\t\tst.execute(\"DROP TABLE libros\");\r\n\t\t}\r\n\t\tcatch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void deletarTabela(String tabela){\n try{\n db.execSQL(\"DROP TABLE IF EXISTS \" + tabela);\n }catch (Exception e){\n\n }\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n Log.w(TAG, \"Ažuriranje verzije baze podataka sa \" + oldVersion + \" na verziju \"\n + newVersion + \", a to će uništiti postojeće podatke\");\n db.execSQL(\"DROP TABLE IF EXISTS single_page_table\");\n db.execSQL(\"DROP TABLE IF EXISTS top_apps_table \");\n db.execSQL(\"DROP TABLE IF EXISTS virtual_games_table \");\n db.execSQL(\"DROP TABLE IF EXISTS quiz_games_table \");\n db.execSQL(\"DROP TABLE IF EXISTS math_games_table \");\n db.execSQL(\"DROP TABLE IF EXISTS casual_games_table \");\n db.execSQL(\"DROP TABLE IF EXISTS coloring_pages_table \");\n db.execSQL(\"DROP TABLE IF EXISTS do_not_miss_table \");\n\n ///SINGLE\n db.execSQL(\"DROP TABLE IF EXISTS single_page_table \");\n\n //TESTIMONIALS\n db.execSQL(\"DROP TABLE IF EXISTS testimonials \");\n\n\n onCreate(db);\n }",
"@Override\r\n public void dropTable() {\n if(tableIsExist(TABLE_NAME)){\r\n String sql = \"drop table \" + TABLE_NAME;\r\n database.execSQL(sql);\r\n }\r\n }",
"public void dropDB() throws SQLException {\n\t \t\tStatement stmt = cnx.createStatement();\n\t \t\tString[] tables = {\"account\", \"consumer\", \"transaction\"};\n\t \t\tfor (int i=0; i<3;i++) {\n\t \t\t\tString query = \"DELETE FROM \" + tables[i];\n\t \t\t\tstmt.executeUpdate(query);\n\t \t\t}\n\t \t}",
"public void hapusSemuaDataMahasiswa(){\n SQLiteDatabase db = this.getWritableDatabase();\n\n db.execSQL(\"DELETE FROM \" + TABLE_NAME);\n }",
"private void BorrarBBDD() {\n\t\tSQLiteHelper usdbh = new SQLiteHelper(this, \"baseDeDatos\", null, 1);\n\n\t\tSQLiteDatabase db = usdbh.getReadableDatabase();\n\n\t\t// Si hemos abierto correctamente la base de datos\n\t\tif (db != null) {\n\t\t\t// Consultamos el valor esLaPrimeraVez\n\t\t\tdb.execSQL(\"DELETE from Tarjetas;\");\n\n\t\t\tdb.close();\n\t\t}\n\t}",
"public void deleteDB(){\n \t\tSQLiteDatabase db = this.getWritableDatabase();\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS user\");\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS poll\");\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS time\");\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS status\");\n \t\tonCreate(db);\n \t}",
"private static void removeDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n dropTable(\"myRooms\");\n dropTable(\"myReservations\");\n }",
"public void drop() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME1);\n onCreate(db);\n }",
"public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"livechina_chinnel\\\"\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_DEBITOS);\n\n // create new tables\n onCreate(db);\n }",
"@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\tString modPersonaQuery = \"DROP TABLE \" + TBL_PERSONA;\n\t\t\tdb.execSQL(modPersonaQuery);\n\t\t}",
"@Override\n public void onUpgrade (SQLiteDatabase db, int i, int i1){\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }",
"@Override\r\n\tpublic void deleteDatabase() {\r\n\t\tlog.info(\"Enter deleteDatabase\");\r\n\r\n\t\t\r\n\t\tConnection connection = null;\t\t\r\n\t\ttry {\r\n\t\t\tconnection = jndi.getConnection(\"jdbc/libraryDB\");\t\t\r\n\t\t\t\r\n\r\n\t\t\t \r\n\t\t\t\tPreparedStatement pstmt = connection.prepareStatement(\"Drop Table Users_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cams_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table User_Cam_Mapping_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tpstmt = connection.prepareStatement(\"Drop Table Cam_Images_Table; \"); \r\n\t\t\t\tpstmt.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Datenbank wurde erfolgreich zurueckgesetzt!\");\t\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Fehler: \"+e.getMessage());\r\n\t\t\tlog.error(\"Error: \"+e.getMessage());\r\n\t\t} finally {\r\n\t\t\tcloseConnection(connection);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public void adm1() {\n\t\ttry { // Delete all table contents\n\t\t\tstatement = connection.createStatement();\n\t\t\tstatement.executeQuery(\"delete from PLANE\");\n\t\t\tstatement.executeQuery(\"delete from FLIGHT\");\n\t\t\tstatement.executeQuery(\"delete from PRICE\");\n\t\t\tstatement.executeQuery(\"delete from CUSTOMER\");\n\t\t\tstatement.executeQuery(\"delete from RESERVATION\");\n\t\t\tstatement.executeQuery(\"delete from DETAIL\");\n\t\t\tstatement.executeQuery(\"delete from OUR_DATE\");\n\t\t\tstatement.executeQuery(\"delete from AIRLINE\");\n\t\t} catch(SQLException Ex) {System.out.println(\"Error running the sample queries. Machine Error: \" + Ex.toString());}\n\t\tSystem.out.println(\"DATABASE ERASED\");\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \"+TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \"+CART_TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \"+WISHLIST_TABLE_NAME);\n\n onCreate(db);\n\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_LINEAS_OFERTA);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CABECERAS_OFERTA);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TARIFAS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_PUNTOS);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_EXTRACOMISION);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CLIENTES);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_TERMINALES_SMART);\n\n // create new tables\n onCreate(db);\n }",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t db.execSQL(\"DROP TABLE IF EXISTS \" + DATABASE_TABLE1);\n\t\t onCreate(db);\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int i, int i1) {\n db.execSQL(\"DROP TABLE IF EXISTS perfil\");\n db.execSQL(\"DROP TABLE IF EXISTS carrito\");\n db.execSQL(\"DROP TABLE IF EXISTS historyhead\");\n db.execSQL(\"DROP TABLE IF EXISTS historydetailm\");\n db.execSQL(\"DROP TABLE IF EXISTS adiciones\");\n db.execSQL(\"DROP TABLE IF EXISTS intro\");\n this.onCreate(db);\n\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tString dropquery;\r\n\t\tdropquery = \"DROP TABLE IF EXISTS EMPLOYEE\";\r\n db.execSQL(dropquery);\r\n onCreate(db);\r\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"drop table if exists \" + TABLE_NAME + \";\") ;\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n String sql = \"DROP TABLE IF EXISTS \" + TABLE_NAME + \";\";\n sqLiteDatabase.execSQL(sql);\n onCreate(sqLiteDatabase);\n }",
"@Override\n\t public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t Log.e(DbHelper.class.getName(),\n\t \"Upgrading database from version \" + oldVersion + \" to \"\n\t + newVersion + \", which will destroy all old data\");\n\t db.execSQL(\"DROP TABLE IF EXISTS \" + DIARIO);\n\n\t onCreate(db);\n\t }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tString s3 = \"DROP TABLE IF EXISTS \" + TABLE_NAME_1;\r\n\t\tdb.execSQL(s3);\r\n\r\n\t\tString s4 = \"DROP TABLE IF EXISTS \" + TABLE_NAME_2;\r\n\t\tdb.execSQL(s4);\r\n\r\n\t\tString s5 = \"DROP TABLE IF EXISTS \" + TABLE_NAME_3;\r\n\t\tdb.execSQL(s5);\r\n\r\n\t\tString s6 = \"DROP TABLE IF EXISTS \" + TABLE_NAME_4;\r\n\t\tdb.execSQL(s6);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tonCreate(db);\r\n\r\n\t}",
"public String execute() throws SQLException {\n\t\t/*conn = DataBase.getConnection();\n\t\tst = conn.createStatement();\n\t\tString sql=\"drop table user\";\n\t\tst.execute(sql);*/\n\t\treturn \"SUCCESS\";\n\n\t}",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'SELLER'\";\n db.execSQL(sql);\n }",
"@SuppressLint(\"WrongConstant\")\n public void cleanDB(View view) {\n\n SQLiteDatabase CDB = openOrCreateDatabase(\n \"CDB.db\"\n , SQLiteDatabase.CREATE_IF_NECESSARY\n , null\n );\n\n CDB.execSQL(\"DROP TABLE IF EXISTS t_Anglais\");\n CDB.execSQL(\"DROP TABLE IF EXISTS t_Allemand\");\n CDB.execSQL(\"DROP TABLE IF EXISTS t_Espagnol\");\n\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor EDITOR = preferences.edit();\n EDITOR.putBoolean(\"FST_LAUNCH\", true);\n EDITOR.putString(\"TAG_LIST\", \"EMPTY_NULL\");\n EDITOR.putBoolean(\"NEED_UPD_01\", true);\n EDITOR.commit();\n\n Intent i = new Intent ( this, LoadingScreenDisplay.class );\n startActivity( i );\n finish();\n\n }",
"@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_MACHINE);\r\n\r\n // Create tables again\r\n onCreate(db);\r\n }",
"@Override\n public void onUpgrade(SQLiteDatabase database, ConnectionSource connectionSource, int oldVersion, int newVersion) {\n try {\n\n TableUtils.dropTable(connectionSource, Comanda_Item.class, true);\n TableUtils.dropTable(connectionSource, Comanda.class, true);\n\n TableUtils.dropTable(connectionSource, Produto.class, true);\n TableUtils.dropTable(connectionSource, Mesa.class, true);\n\n\n onCreate(database, connectionSource);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void run() {\n\n String filename = \"PurgeTable\";\n\n PreparedStatement stmt1 = null;\n try {\n stmt1 = conn.prepareStatement(\"delete from \" + filename);\n stmt1.executeUpdate();\n System.out.println(\"Deletion successful\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int VersioAntiga,\n int VersioNova) {\n Log.w(TAG, \"Actualitzant Base de dades de la versió\" + VersioAntiga\n + \" a \" + VersioNova + \". Destruirà totes les dades\");\n db.execSQL(\"DROP TABLE IF EXISTS \" + BD_TAULA);\n\n onCreate(db);\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + ORDER_INFO);\r\n \r\n // Create tables again\r\n onCreate(db);\r\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLENAME);\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n final String DROP_TABLE_COMMAND = \"DROP TABLE IF EXISTS \" + ShopsContract.ShopsEntry.TABLE_NAME;\n db.execSQL(DROP_TABLE_COMMAND);\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldV, int newV ){\n db.execSQL(\"DROP TABLE IF EXISTS \" + DAILY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_TABLE);\n // Drop older table if existed\n db.execSQL(\"DROP TABLE IF EXISTS data\");\n // Create tables again\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_USER);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CLIENT);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_JOB);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_PHONE);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_PHONE_TYPE);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_JOB_CATEGORY);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_JOB_HAS_JOB_CATEGORY);\n\n // Create new tables\n onCreate(sqLiteDatabase);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_KAFSH_TABLE);\n db.execSQL(DROP_DARMANI1_TABLE);\n db.execSQL(DROP_DARMANI2_TABLE);\n // Create tables again\n onCreate(db);\n\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n db.execSQL(\"delete table if exist \" + tablaBloqueos.TABLA_BLOQUEOS);\n db.execSQL(\"delete table if exist \" + tablaMensajes.TABLA_MENSAJES);\n db.execSQL(\"delete table if exist \" + tablaLlamadas.TABLA_LLAMADAS);\n\n onCreate(db);\n }",
"public void eliminar(String sentencia){\n try {\n Statement stmt = Conexion.getInstancia().createStatement();\n stmt.executeUpdate(sentencia);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE1 );\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE2 );\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE3 );\n\n onCreate(db);\n }",
"public void startDatabase(SQLiteDatabase db)\n {\n\n String sqlNotas = \"CREATE TABLE IF NOT EXISTS NOTAS (\"\n + \"TITULO text,\"\n + \"CONTEUDO text\"\n +\")\";\n\n\n //db.execSQL(dropNotas);\n db.execSQL(sqlNotas);\n\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {\n db.execSQL(\"DROP TABLE IF EXIST\" + TABLE_NAME);\n onCreate(db);\n\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"SHOP_RECEIVABLE_ENTITY\\\"\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_CLOTHES);\n// Creating tables again\n onCreate(db);\n\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'P5P10'\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {\n sqLiteDatabase.execSQL(\"drop table if exists \" + TABLE_NAME + \"\");\n onCreate(sqLiteDatabase);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"STOCK\\\"\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n try{\n db.execSQL(\"DROP TABLE IF EXISTS \" + CARDS_TABLE_NAME);\n onCreate(db);\n }catch(SQLException e){\n e.printStackTrace();\n }\n\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'COMMENTARIES'\";\n db.execSQL(sql);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"ACTIVO\\\"\";\n db.execSQL(sql);\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TB_NAME);\r\n\t\tonCreate(db);\r\n\t\r\n\t\tLog.e(\"Database\", \"onUpgrade\");\r\n\t}",
"@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\r\n db.execSQL(\"drop table if exists \" + COUNTRY_TABLE);\r\n db.execSQL(\"drop table if exists \" + CURRENT_POLL_TABLE);\r\n }",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int ov, int nv) {\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS UserDet\");\n onCreate(db);\n\n\t}",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'CUSTOMER'\";\n db.execSQL(sql);\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\r\n\t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\r\n\t\t\r\n\t\tonCreate(db);\r\n\t\t\r\n\r\n\t}",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'IdCard'\";\n db.execSQL(sql);\n }",
"public void eliminar_datos_de_tabla(String tabla_a_eliminar){\n try {\n Class.forName(\"org.postgresql.Driver\");\n Connection conexion = DriverManager.getConnection(cc);\n Statement comando = conexion.createStatement();\n //Verificar dependiendo del tipo de tabla lleva o no comillas\n \n String sql=\"delete from \\\"\"+tabla_a_eliminar+\"\\\"\";\n \n comando.executeUpdate(sql);\n \n comando.close();\n conexion.close();\n } catch(ClassNotFoundException | SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TOMATO\\\"\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int i, int i1) {\n db.execSQL(\"DROP TABLE IF EXISTS \" +Table_Name);\n onCreate(db);\n\n }",
"@Override\n\tpublic void onUpgrade(SQLiteDatabase db, int old_version, int new_vesion) \n\t{\n\t\tdb.execSQL(\"DROP TABLE IF EXIST \" + this.TBL_INSTITUCIONES);\t\t \n\t\tonCreate(db);\n\t}",
"@Override\r\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS HALL\");\r\n onCreate(db);\r\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'DISTRIBUTOR_ORDERS'\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME1);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_HISTORY);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME3);\n this.onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \"+TABLE_NAME);\n\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i2) {\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \"+ AccompanimentData.CreateDB._TABLENAME);\n sqLiteDatabase.execSQL(\"DROP TABLE IF EXISTS \"+ MelodyData.CreateDB._TABLENAME);\n onCreate(sqLiteDatabase);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)\n {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase sdb, int arg1, int arg2) {\n sdb.execSQL(\"DROP TABLE IF EXISTS \" + CodFiveToFifteenDB.TableInfo.TABLE_NAME);\n onCreate(sdb);\n\n\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + Table_name);\n onCreate(db);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'MESSAGE'\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n\n //create new table\n onCreate(db);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"TB_CONVERSATION\\\"\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE);\n // Creating tables again\n onCreate(db);\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'ENTITY_COMMAND'\";\n db.execSQL(sql);\n }",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n String sql = \"drop table \" + MelodyData.CreateDB._TABLENAME;\n sqLiteDatabase.execSQL(AccompanimentData.CreateDB._CREATE);\n sqLiteDatabase.execSQL(MelodyData.CreateDB._CREATE);\n }",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"NEWS\\\"\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_PROFILE_TABLE);\n //db.execSQL(DROP_CUSTOMER_TABLE);\n db.execSQL(DROP_REQUEST_TABLE);\n db.execSQL(DROP_SOUVENIR_TABLE);\n\n // Create tables again\n onCreate(db);\n }",
"@Override\n\t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\t\ttry {\n\t\t\t\tdb.execSQL(TABLE_DROP);\n\t\t\t\tonCreate(db);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}",
"public static void eliminarEstudiante(String Nro_de_ID) {\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion Establecida\");\r\n Statement sentencia = conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"delete from estudiante where Nro_de_ID = '\" + Nro_de_ID + \"'\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n }",
"@Override\n public void onDowngrade(SQLiteDatabase db, int oldV, int newV ){\n db.execSQL(\"DROP TABLE IF EXISTS \" + DAILY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_ACCOUNT_TABLE);\n db.execSQL(\"DROP TABLE IF EXISTS \" + JOURNEY_TABLE);\n // Drop older table if existed\n db.execSQL(\"DROP TABLE IF EXISTS data\");\n // Create tables again\n onCreate(db);\n }",
"@Override\n public void clearTable() {\n final var query = \"TRUNCATE TABLE piano_project.pianos\";\n try(final var statement = connection.createStatement()) {\n statement.executeUpdate(query);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }",
"public static void dropTable(SQLiteDatabase db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"'ORDER_BATCH'\";\n db.execSQL(sql);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS '\" + TABLE_NAME + \"'\");\n onCreate(db);\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tString sqlfavor = \"DROP TABLE IF EXISTS \" + TABLE_FAVOR;\r\n\t\tString sqlgroup = \"DROP TABLE IF EXISTS \" + TABLE_GROUP;\r\n\t\tString sqlcom = \"DROP TABLE IF EXISTS \" + TABLE_MSG;\r\n\t\tString sqlnews = \"DROP TABLE IF EXISTS \" + TABLE_NEWS;\r\n\t\tdb.execSQL(sqlfavor);\r\n\t\tdb.execSQL(sqlgroup);\r\n\t\tdb.execSQL(sqlcom);\r\n\t\tdb.execSQL(sqlnews);\r\n\t\tonCreate(db);\r\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DbAdaptert_Evento_Establec.DELETE_TABLE_EVENTO_ESTABLEC);\n db.execSQL(DbAdapter_Tipo_Gasto.DELETE_TABLE_TIPO_GASTO);\n db.execSQL(DbAdapter_Informe_Gastos.DELETE_TABLE_INFORME_GASTOS);\n db.execSQL(DbAdapter_Precio.DELETE_TABLE_PRECIO);\n db.execSQL(DbAdapter_Stock_Agente.DELETE_TABLE_STOCK_AGENTE);\n db.execSQL(DbAdapter_Comprob_Venta.DELETE_TABLE_COMPROB_VENTA);\n db.execSQL(DbAdapter_Comprob_Venta_Detalle.DELETE_TABLE_COMPROB_VENTA_DETALLE);\n db.execSQL(DbAdapter_Agente.DELETE_TABLE_AGENTE);\n db.execSQL(DbAdapter_Comprob_Cobro.DELETE_TABLE_COMPROB_COBRO);\n db.execSQL(DbAdapter_Histo_Venta.DELETE_TABLE_HISTO_VENTA);\n db.execSQL(DbAdapter_Histo_Venta_Detalle.DELETE_TABLE_HISTO_VENTA_DETALLE);\n db.execSQL(DbAdapter_Histo_Comprob_Anterior.DELETE_TABLE_HISTO_COMPROB_ANTERIOR);\n db.execSQL(DbAdapter_Resumen_Caja.DELETE_TABLE_RESUMEN_CAJA);\n db.execSQL(DBAdapter_Temp_Venta.DELETE_TABLE_TEMP_VENTA_DETALLE);\n db.execSQL(DbAdapter_Temp_Comprob_Cobro.DELETE_TABLE_TEMP_COMPROB_COBRO);\n db.execSQL(DBAdapter_Temp_Autorizacion_Cobro.DELETE_TABLE_AUTORIZACION_COBRO);\n db.execSQL(DbAdapter_Temp_Barcode_Scanner.DELETE_TABLE_Temp_scanner);\n db.execSQL(DbAdapter_Temp_Session.DELETE_TABLE_Temp_session);\n db.execSQL(DbAdapter_Ruta_Distribucion.DELETE_TABLE_RUTA_DISTRIBUCION);\n\n onCreate(db);\n }",
"@Override\r\n\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\t\tdb.execSQL(\" DROP TABLE IF EXISTS \" + NOTE_NAME);\r\n\t\tonCreate(db);\r\n\t}",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ESTABLISHMENT);\n\n // Create Tables again\n onCreate(db);\n }",
"@Override\n public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n db.execSQL(DROP_VEHICLE_TABLE);\n\n // Create tables again\n onCreate(db);\n\n }",
"void dropDatabase();",
"public static void dropTable(Database db, boolean ifExists) {\n String sql = \"DROP TABLE \" + (ifExists ? \"IF EXISTS \" : \"\") + \"\\\"STEP11_RESBEAN\\\"\";\n db.execSQL(sql);\n }",
"@Override\n \tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FEED);\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_FEEDUSER);\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_USER);\n \t\tdb.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_ITEM);\n \t\tonCreate(db);\n \t}"
] | [
"0.72297233",
"0.71093166",
"0.70148927",
"0.6902109",
"0.6818023",
"0.6810364",
"0.68038315",
"0.6747096",
"0.6728373",
"0.66967916",
"0.6690783",
"0.66670805",
"0.6659875",
"0.6657008",
"0.66448945",
"0.65929157",
"0.6589357",
"0.6564735",
"0.6548074",
"0.65451777",
"0.6538845",
"0.6533583",
"0.6526959",
"0.6524698",
"0.65198255",
"0.65194213",
"0.651922",
"0.6507999",
"0.6507677",
"0.649533",
"0.649466",
"0.64869076",
"0.64843357",
"0.6470292",
"0.6466974",
"0.6458034",
"0.64539516",
"0.6447122",
"0.6434516",
"0.6432291",
"0.64320797",
"0.64316726",
"0.642648",
"0.6426231",
"0.6423606",
"0.6423479",
"0.64188236",
"0.6417818",
"0.6414097",
"0.6410472",
"0.64055204",
"0.6403016",
"0.6393387",
"0.63895637",
"0.63834304",
"0.63687444",
"0.63661027",
"0.6365142",
"0.6363592",
"0.6361709",
"0.6361689",
"0.6358542",
"0.6353277",
"0.63488364",
"0.63324213",
"0.6330781",
"0.6329935",
"0.63287306",
"0.6328159",
"0.6327957",
"0.6327957",
"0.6327957",
"0.6327957",
"0.6327957",
"0.6320269",
"0.6319658",
"0.63155687",
"0.6314049",
"0.63046926",
"0.6304643",
"0.6300319",
"0.6300056",
"0.6297577",
"0.62961763",
"0.62940806",
"0.62908125",
"0.62848884",
"0.62832904",
"0.6282981",
"0.62819904",
"0.6278601",
"0.6278519",
"0.62778044",
"0.6275941",
"0.6273486",
"0.6271131",
"0.62677264",
"0.6257822",
"0.62541217",
"0.6250442",
"0.6250361"
] | 0.0 | -1 |
PARA RETORNAR LOS USUARIOS | public ArrayList llenar_lv(){
ArrayList<String> lista = new ArrayList<>();
SQLiteDatabase database = this.getWritableDatabase();
String q = "SELECT * FROM " + TABLE_NAME;
Cursor registros = database.rawQuery(q,null);
if(registros.moveToFirst()){
do{
lista.add("\t**********\nNombre: " + registros.getString(0) +
"\nDirección: "+ registros.getString(1) + "\n" +
"Servicio(s): "+ registros.getString(2) +
"\nEdad: "+ registros.getString(3) + " años\n" +
"Telefono: "+ registros.getString(4) +
"\nIdioma(s): "+ registros.getString(5) + "\n");
}while(registros.moveToNext());
}
return lista;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuarios(dataSnapshot);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}",
"public ArrayList<DataUsuario> listarUsaurios();",
"private static void etapa2Urna() {\n\t\t\n\t\tint opcaoNumero = 0;\n\n\t\tdo {\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tSystem.out.println(\"Votação\");\n\t\t\tSystem.out.println(\"1 - Votar\");\n\t\t\tSystem.out.println(\"2 - Justificar ausencia\");\n\t\t\tSystem.out.println(\"Digite o número da etapa ou -1 para sair: \");\n\t\t\t\n\t\t\ttry {\n\t\t\n\t\t\t\topcaoNumero = Integer.parseInt(br.readLine());\n\t\t\n\t\t\t\tswitch( opcaoNumero ) {\n\t\t\n\t\t\t\tcase 1: \n\t\t\t\t\t// Abrir Etapa 1: Configurar Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\trealizarVotacao();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2: \n\t\t\t\t\t// Abrir Etapa 2: Realizar Votacao na Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\tSystem.out.println(\"Insira o numero do seu titulo de eleitor\");\n\t\t\t\t\tint tituloEleitor = Integer.parseInt(br.readLine());\n\t\t\t\t\turna.justificarVoto(tituloEleitor);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\n\t\t}while(opcaoNumero != -1);\n\t}",
"public VOUsuario obtenerdatosUsuario(String[] val, String[] tipo) throws RemoteException {\n VOUsuario usu = null;\n if(tipo.length==val.length)\n try {\n FileReader fr = new FileReader(datos);\n BufferedReader entrada = new BufferedReader(fr);\n String s;\n String texto[]=new String[11];\n\n int n, l=0;\n int campo[]=new int[tipo.length];\n boolean encontrado=false;\n for(int i=0; i<tipo.length; i++) {\n if(tipo[i].compareTo(\"id\")==0) campo[i]=0;\n if(tipo[i].compareTo(\"nombre\")==0) campo[i]=4;\n if(tipo[i].compareTo(\"apellido\")==0) campo[i]=5;\n if(tipo[i].compareTo(\"nomuser\")==0) campo[i]=1;\n if(tipo[i].compareTo(\"email\")==0) campo[i]=7;\n if(tipo[i].compareTo(\"rut\")==0) campo[i]=6;\n if(tipo[i].compareTo(\"pass\")==0) campo[i]=3;\n }\n while((s = entrada.readLine()) != null && !encontrado) {\n texto=s.split(\" \");\n int j=0;\n boolean seguir=true;\n while(j<campo.length && seguir) {\n if(texto[campo[j]].toLowerCase().compareTo(val[j].toLowerCase())!=0) {\n seguir=false;\n j++;\n } else {\n j++;\n }\n }\n if(seguir) {\n encontrado=true;\n }\n l++;\n }\n if(encontrado) {\n int area[] = new int[texto[10].split(\"-\").length];\n String ar[]=texto[10].split(\"-\");\n for(int i=0; i<area.length; i++) {\n area[i]=Integer.parseInt(ar[i]);\n }\n usu=new VOUsuario(\n texto[0],\n texto[1],\n this.quitaGuiones(texto[2]),\n texto[3],\n this.quitaGuiones(texto[4]),\n this.quitaGuiones(texto[5]),\n this.quitaGuiones(texto[6]),\n this.quitaGuiones(texto[7]),\n this.quitaGuiones(texto[8]),\n this.quitaGuiones(texto[9]),\n area);\n entrada.close();\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n } catch (IOException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n }\n return usu;\n }",
"public void inicializarDatos(aplicacion.Usuario u){\n //Pestaña Informacion\n this.usuario=fa.obtenerUsuarioVivo(u.getIdUsuario());\n ModeloTablaBuenasAcciones mba;\n mba = (ModeloTablaBuenasAcciones) tablaBA.getModel();\n mba.setFilas(usuario.getBuenasAcciones());\n ModeloTablaPecados mp;\n mp = (ModeloTablaPecados) tablaPecados.getModel();\n mp.setFilas(usuario.getPecados());\n textoNombre.setText(usuario.getNombre());\n textoUsuario.setText(usuario.getNombreUsuario());\n textoContrasena.setText(usuario.getClave());\n textoLocalidad.setText(usuario.getLocalidad());\n textoFechaNacimiento.setText(String.valueOf(usuario.getFechaNacimiento()));\n //PestañaVenganzas\n ModeloTablaUsuarios mu;\n mu = (ModeloTablaUsuarios) tablaUsuarios.getModel();\n mu.setFilas(fa.consultarUsuariosMenos(usuario.getIdUsuario(), textoNombreBusqueda.getText()));\n ModeloTablaVenganzas mv;\n mv = (ModeloTablaVenganzas) tablaVenganzas.getModel();\n mv.setFilas(fa.listaVenganzas());\n }",
"public void recuperandoDadosUsuarioescolhido(){\n Bundle bundle = getIntent().getExtras();\n if (bundle != null){\n if (bundle.containsKey(\"usuarioSelecionado\")){\n dadosDoUsuario = (Usuario) bundle.getSerializable(\"usuarioSelecionado\");\n }\n }\n\n // Configurando Toolbar\n\n toolbar.setTitle(dadosDoUsuario.getNome());\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n // Configurando Imagem\n if (dadosDoUsuario.getFoto() != null){\n if (!dadosDoUsuario.getFoto().isEmpty()){\n Uri url = Uri.parse(dadosDoUsuario.getFoto());\n Glide.with(getApplicationContext()).load(url).into(civFotoPerfil);\n }\n }\n\n // Configurando Seguidores Postagens e Seguindo\n\n //stPublicacao = String.valueOf(dadosDoUsuario.getPublicacoes());\n stSeguidores = String.valueOf(dadosDoUsuario.getSeguidores());\n stSeguindo = String.valueOf(dadosDoUsuario.getSeguindo());\n\n tvSeguindo.setText(stSeguindo);\n tvSeguidores.setText(stSeguidores);\n //tvPublicacao.setText(stPublicacao);\n\n // Configurando Referencia postagens Usuario Escolhido\n postagensUsuarioRef = ConfiguracaoFirebase.getFirebaseDatabase()\n .child(\"postagens\")\n .child(dadosDoUsuario.getId());\n\n // Inicializa o Universal Image Loader\n inicializarImageLoader();\n // Recupera as Postagens do nosso Banco de Dados\n carregarFotosPostagem();\n }",
"private void eleccionCasoDeUso(String casoDeUso) throws MareException{\t\t\n\t // Seteo de titulo y ID_BUSINESS\n\t if(casoDeUso.equals(LP_ID_ASOC_TERR)){\n\t\t\tidBusiness = ID_BUSINESS_ASOC_TERR;\n\t\t\tcodTituloLP = \"0378\";\n\t\t\tfichero= \"muestraUG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_UG)){\n\t\t\tidBusiness = ID_BUSINESS_UG;\n\t\t\tcodTituloLP = \"0377\";\n\t\t\tfichero = \"muestraMUG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_CREAR_UA)){\n\t\t\tidBusiness = ID_BUSINESS_CREAR_UA;\n\t\t\tcodTituloLP = \"0637\";\n\t\t\tfichero = \"muestraCUAG.txt\";\n\t }else if(casoDeUso.equals(LP_ID_ELIM_UA)){\n\t\t\tidBusiness = ID_BUSINESS_ELIM_UA;\n\t\t\tcodTituloLP = \"0380\";\n\t\t\tfichero = \"EliminaUnidadAdministrativa.txt\";\n\t }else if(casoDeUso.equals(LP_ID_CREAR_EV)){\n\t\t\tidBusiness = ID_BUSINESS_CREAR_EV;\n\t\t\tcodTituloLP = \"0381\";\n\t\t\tfichero = \"altaZON.txt\";\n\t }else if(casoDeUso.equals(LP_ID_MOD_EV)){\n\t\t\tidBusiness = ID_BUSINESS_MOD_EV;\n\t\t\tcodTituloLP = \"0382\";\n\t\t\tfichero = \"modifZON.txt\";\n\t }else if(casoDeUso.equals(LP_ID_ELIM_EV)){\n\t\t\tidBusiness = ID_BUSINESS_ELIM_EV;\n\t\t\tcodTituloLP = \"0383\";\n\t\t\tfichero = \"bajaZON.txt\";\t\t\t\n\t } \n\t}",
"public void lanzarJuegoPianino(View view){\n\n puntuacion=0;\n notasTocadas=0;\n mensaje.setText(R.string.repite);\n switch(pref.getString(\"dificultad\", \"1\")){\n case \"0\": nuevaSecuencia=generarSecuencia(4);\n nuevaSecuencia[3]=nuevaSecuencia[0];\n secuenciaJugador= new int[4];\n break;\n case \"1\": nuevaSecuencia=generarSecuencia(7);\n nuevaSecuencia[6]=nuevaSecuencia[0];\n secuenciaJugador= new int[7];\n break;\n case \"2\": nuevaSecuencia=generarSecuencia(10);\n secuenciaJugador= new int[10];\n break;\n default: nuevaSecuencia= new int[7];\n }\n\n reproducirSecuencia(nuevaSecuencia,false);\n\n }",
"private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }",
"private void cargarDatosUsuario() {\n this.textUsuario.setText(this.usuarioCargado.getUsuario());\n this.textContraseña.setText(this.usuarioCargado.getContraseña());\n this.textNombre.setText(this.usuarioCargado.getNombre());\n this.textApellido.setText(this.usuarioCargado.getApellido());\n this.textDocumento.setText(String.valueOf(this.usuarioCargado.getDocumento()));\n this.textTelefono.setText(String.valueOf(this.usuarioCargado.getTelefono()));\n this.textDireccion.setText(this.usuarioCargado.getDireccion());\n this.textoIdUsuairo.setText(String.valueOf(this.usuarioCargado.getId()));\n\n }",
"private void inicializarJuego() {\n\t\tList<VerboIrregular> lista = utilService.getVerbosIrregulares(faciles, normales, dificiles);\n\n\t\trealmService.cambiarMostrarRespuestasVerbosIrregulares(lista, false);\n\n\t\tverbosIrregularesDesordenadas.clear();\n\n\t\tfor (VerboIrregular x : lista) {\n\t\t\tverbosIrregularesDesordenadas.add(x);\n\t\t}\n\n\t\tCollections.shuffle(verbosIrregularesDesordenadas);\n\t\t// --------------------------------------------------------------\n\n\t\t//------- Esto es por si el usuario quita una palabra problematica y se resetea el juego\n\t\tif (cantidadItems > verbosIrregularesDesordenadas.size()) {\n\t\t\tcantidadItems = verbosIrregularesDesordenadas.size();\n\t\t}\n\t\t// ---------------------------------------------------------------------------------\n\n\t\tverbosIrregularesDesordenadas = verbosIrregularesDesordenadas.subList(0, cantidadItems);\n\n\t\tindice = 0;\n\t\tsetearTitulo();\n\n\t\tbtRestart.setVisibility(View.INVISIBLE);\n\t\tivCongratulations.setVisibility(View.INVISIBLE);\n\t\tmbNext.setVisibility(View.VISIBLE);\n\t\tbtPrevious.setVisibility(View.INVISIBLE);\n\t\ttvJuegoCantidadPalabras.setVisibility(View.VISIBLE);\n\t\tbtMostrarRespuestaJuego.setVisibility(View.VISIBLE);\n\t\ttvInfinitivo.setVisibility(View.VISIBLE);\n\t\tbtDificultad.setVisibility(View.VISIBLE);\n\t\tlyRespuestaJuego.setVisibility(View.INVISIBLE);\n\t\tbtVolver.setVisibility(View.INVISIBLE);\n\n\t\tsetearTextoArribaYColorDeBoton();\n\t}",
"private void consultadadosUtilizador(String username){\n Scanner s = new Scanner(System.in); int opcao = 0;\n try{\n do{\n System.out.println(\"Informações de Conta \");\n System.out.println(b_dados.getUtilizadores().get(username).toString());\n System.out.println(\"1-Mudar localizacao\");\n System.out.println(\"0 - Retroceder\");\n\n opcao = s.nextInt();\n System.out.print(\"\\n\");\n\n switch(opcao){\n case 1:\n mudarLocalizacaoUtilizador(username);\n break;\n default:\n System.out.print(\"Opção inválida\\n\\n\");\n break;\n\n }\n }while(opcao != 0);\n }\n catch(InputMismatchException e){\n System.out.println(\"Entrada inválida\");\n menuCliente(username);\n\n }\n }",
"public void dohvatiJMSPorukuISpremiUListu(JMSPoruka poruka){\r\n listaJMSPoruka.add(poruka);\r\n }",
"private void remplirUtiliseData() {\n\t}",
"private void cargarUsuario() {\n try {\n rol = null;\n if (usuario != null && usuario.getUsuario() != null) {\n for (SsRoles rols : usuario.getUsuario().getSsRolesList()) {\n for (String rl : ROL) {\n if (rols.getCodigoRol().equalsIgnoreCase(rl)) {\n rol = new SsRoles();\n rol = rols;\n }\n }\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void CargarUsuarios(){\n administradores.clear();\n usuariosList.clear();\n for (String i: BienvenidaActivity.UsuariosRegistrados.keySet()) {\n if(EsAdmin(i)){\n administradores.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }else{\n usuariosList.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }\n }\n String admins_string = \"\";\n for(Usuario admin : administradores){\n admins_string += admin.getUsername() + \" -> \" + admin.getNombre() + \" \" + admin.getApellido() + \"\\n\";\n }\n\n String users_string = \"\";\n for(Usuario userss : usuariosList){\n users_string += userss.getUsername() + \" -> \" + userss.getNombre() + \" \" + userss.getApellido() + \"\\n\";\n }\n\n // Finalmente se coloca en la actividad\n\n txtvw_contadmin.setText(String.valueOf(administradores.size()));\n txtvw_contusers.setText(String.valueOf(usuariosList.size()));\n txtvw_admins.setText(admins_string);\n txtvw_users.setText(users_string);\n }",
"public void alquilarMultimediaAlSocio(){\n lector = new Scanner(System.in);\n int opcion = -1;\n int NIF = 0;\n int pedirElemento;\n String titulo;\n Socio socio;\n\n\n\n NIF = pedirNIF(); // pido el NIF por teclado\n\n if(tienda.exiteSocio(NIF)){ // Si exite, continuo\n socio = tienda.getSocioWithNIF(NIF); // Si exite el socio, busco en la tienda y lo asigno.\n if(!socio.isAlquilando()) { // si el socio no está actualmente alquilando, no continuo\n opcion = pedirElemento(); // Pido el elemento\n\n switch (opcion) {\n case 1:\n tienda.imprimirDatos(tienda.getPeliculas());\n System.out.println(\"Introduce el titulo de la pelicula que quieres: \");\n titulo = lector.nextLine();\n if (tienda.exitePelicula(titulo)) {\n\n tienda.alquilarPeliculaSocio(NIF, titulo);\n System.out.println(\"PELICULA ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite la pelicula \" + titulo + \".\");\n }\n\n\n break;\n case 2:\n tienda.imprimirDatos(tienda.getVideojuegos());\n System.out.println(\"Introduce el titulo del videojuego que quieres: \");\n titulo = lector.nextLine();\n if (tienda.existeVideojuego(titulo)) {\n\n tienda.alquilarVideojuegoSocio(NIF, titulo);\n System.out.println(\"VIDEOJUEGO ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite el videojuego \" + titulo + \".\");\n }\n break;\n default:\n break;\n }\n }else{\n System.out.println(\"El socio \" + socio.getNombre() + \" tiene recargos pendientes.\");\n }\n\n }else{\n System.out.println(\"El socio con NIF \" + NIF + \" no exite.\");\n }\n\n\n\n\n\n\n }",
"private void limpiarDatos() {\n\t\t\n\t}",
"public ArrayList<String> Info_Disc_Mus_Compras_usu(String genero, String usuario) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Mus_Rep1(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Musica.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3]) & info_disco_compra[0].equals(usuario)) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }",
"private void actualizaSugerencias() { \t \t\n\n \t// Pide un vector con las últimas N_SUGERENCIAS búsquedas\n \t// get_historial siempre devuelve un vector tamaño N_SUGERENCIAS\n \t// relleno con null si no las hay\n \tString[] historial = buscador.get_historial(N_SUGERENCIAS);\n \t\n \t// Establece el texto para cada botón...\n \tfor(int k=0; k < historial.length; k++) { \t\t \t\t\n \t\t\n \t\tString texto = historial[k]; \n \t\t// Si la entrada k está vacía..\n \t\tif ( texto == null) {\n \t\t\t// Rellena el botón con el valor por defecto\n \t\t\ttexto = DEF_SUGERENCIAS[k];\n \t\t\t// Y lo añade al historial para que haya concordancia\n \t\t\tbuscador.add_to_historial(texto);\n \t\t} \t\t\n \t\tb_sugerencias[k].setText(texto);\n \t} \t\n }",
"private void cargaUsuarios() {\n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n /*Obtiene todos los datos del usuario*/\n try\n {\n sQ = \"SELECT estac FROM estacs WHERE estac <> '\" + Login.sUsrG + \"' AND admcaj <= (SELECT admcaj FROM estacs WHERE estac = '\" + Login.sUsrG + \"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n while(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n jcmbUsuarios.addItem(rs.getString(\"estac\"));\n }\n //si ingreso usuarios al combo, jalo los permisos del primer usuario\n// if(jcmbUsuarios.getItemCount() > 0){\n// cargaPermisos(jcmbUsuarios.getSelectedItem().toString());\n// }\n \n }catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n }\n }",
"private void initVistas() {\n // La actividad responderá al pulsar el botón.\n Button btnSolicitar = (Button) this.findViewById(R.id.btnSolicitar);\n btnSolicitar.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n solicitarDatos();\n }\n });\n lblDatos = (TextView) this.findViewById(R.id.lblDatos);\n }",
"public List<Uang> getSemuaUang(){\n List<Uang> uangList = new ArrayList<>();\n String selectQuery = \"SELECT * FROM \" + TABLE_NAME;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n if (cursor.moveToFirst()){\n do {\n Uang uang = new Uang(cursor.getString(1), cursor.getString(2));\n uangList.add(uang);\n } while (cursor.moveToNext());\n }\n return uangList;\n }",
"public void mostrarlistainciofin(){\n if(!estavacia()){\n String datos=\"<=>\";\n nododoble auxiliar=inicio;\n while(auxiliar!=null){\n datos=datos+\"[\"+auxiliar.dato+\"]<=>\";\n auxiliar=auxiliar.siguiente;\n }\n JOptionPane.showMessageDialog(null,datos,\n \"Mostraando lista de incio a fin\",JOptionPane.INFORMATION_MESSAGE);\n } }",
"private void getProfil() {\n\n try {\n pseudo.setText(users.get(id - 1).getPseudo());\n height.setText(users.get(id - 1).getHeight().toString());\n weight.setText(users.get(id - 1).getWeight().toString());\n hemoglobin.setText(users.get(id - 1).getHb());\n vgm.setText(users.get(id - 1).getVgm());\n tcmh.setText(users.get(id - 1).gettcmh());\n idr_cv.setText(users.get(id - 1).getIdr_cv());\n hypo.setText(users.get(id - 1).getHypo());\n ret_he.setText(users.get(id - 1).getRet_he());\n platelet.setText(users.get(id - 1).getPlatelet());\n ferritin.setText(users.get(id - 1).getFerritin());\n transferrin.setText(users.get(id - 1).getTransferrin());\n serum_iron.setText(users.get(id-1).getSerum_iron());\n cst.setText(users.get(id - 1).getCst());\n fibrinogen.setText(users.get(id - 1).getFibrinogen());\n crp.setText(users.get(id - 1).getCrp());\n other.setText(users.get(id - 1).getOther());\n age.setText(users.get(id - 1).getAge());\n\n String sex = users.get(id - 1).getSexe();\n if(!sex.equals(null)){\n int genderSpinnerPosition = genderSpinnerAdapter.getPosition(sex);\n genderSpinner.setSelection(genderSpinnerPosition);\n }\n\n String serum_iron_unit = users.get(id - 1).getSerum_iron_unit();\n if(!serum_iron_unit.equals(null)){\n int ironUnitPosition = ironSpinnerAdapter.getPosition(serum_iron_unit);\n ironSpinner.setSelection(ironUnitPosition);\n }\n\n //Mise en place du bon radioButton\n String carence = users.get(id - 1).getDeficiency();\n switch(carence) {\n case \"Carence certaine\":\n rbCertain.toggle();\n break;\n case \"Absence de carence\":\n rbAbsence.toggle();\n break;\n case \"Carence incertaine\":\n rbIncertain.toggle();\n break;\n }\n\n } catch (Exception e) {\n }\n }",
"private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }",
"@SuppressWarnings(\"PMD.ExcessiveMethodLength\")\r\n\tprivate void gerarLaudosUTI(MpmPrescricaoMedica prescricao,\r\n\t\t\tList<MpmLaudo> laudoList, FatConvenioSaudePlano convenioSaudePlano,\r\n\t\t\tAghParametros seqLaudoUTI) {\r\n\r\n\t\tIAghuFacade aghuFacade = getAghuFacade();\r\n\t\tif (prescricao.getAtendimento().getUnidadeFuncional() != null) {\r\n\t\t\t// TODO: RETIRAR ESTE MERGE QUANDO AS EXCEPTIONS COM ROLLBACK DOS\r\n\t\t\t// CRUDS DA PRESCRIÇÃO JÁ TIVEREM\r\n\t\t\t// SIDO REMOVIDAS.\r\n\t\t\taghuFacade.atualizarAghUnidadesFuncionaisSemException(prescricao.getAtendimento().getUnidadeFuncional());\r\n\t\t}\r\n\r\n\t\tboolean possuiCaracteristica = aghuFacade.possuiCaracteristicaPorUnidadeEConstante(prescricao.getAtendimento().getUnidadeFuncional().getSeq(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tConstanteAghCaractUnidFuncionais.LAUDO_CTI);\r\n\t\tif (possuiCaracteristica) {\r\n\r\n\t\t\tShort tempoValidade = this.getMpmTipoLaudoConvenioDAO()\r\n\t\t\t\t\t.obterTempoValidadeTipoLaudo(\r\n\t\t\t\t\t\t\tseqLaudoUTI.getVlrNumerico().shortValue(),\r\n\t\t\t\t\t\t\tconvenioSaudePlano);\r\n\r\n\t\t\tif (tempoValidade != null) {\r\n\r\n\t\t\t\tboolean acheiLaudoValido = false;\r\n\r\n\t\t\t\tMpmTipoLaudo tipoLaudoUTI = this.getMpmTipoLaudoDAO()\r\n\t\t\t\t\t\t.obterPorChavePrimaria(\r\n\t\t\t\t\t\t\t\tseqLaudoUTI.getVlrNumerico().shortValue());\r\n\r\n\t\t\t\tList<MpmLaudo> laudos = this.getMpmLaudoDAO()\r\n\t\t\t\t\t\t.listarLaudosPorAtendimentoETipo(\r\n\t\t\t\t\t\t\t\tprescricao.getAtendimento(), tipoLaudoUTI,\r\n\t\t\t\t\t\t\t\tprescricao.getDthrInicio());\r\n\r\n\t\t\t\tString justificativa = null;\r\n\t\t\t\tShort duracaoTratamentoSolicitado = null;\r\n\r\n\t\t\t\tfor (MpmLaudo laudo : laudos) {\r\n\t\t\t\t\tDate dataTeste = DateUtil.adicionaDias(laudo\r\n\t\t\t\t\t\t\t.getDthrInicioValidade(), tempoValidade - 1);\r\n\r\n\t\t\t\t\tif (DateUtil.validaDataTruncadaMaiorIgual(dataTeste,\r\n\t\t\t\t\t\t\tprescricao.getDthrInicio())\r\n\t\t\t\t\t\t\t&& laudo.getDthrFimValidade() == null) {\r\n\r\n\t\t\t\t\t\tacheiLaudoValido = true;\r\n\r\n\t\t\t\t\t} else if (laudo.getDthrFimValidade() != null\r\n\t\t\t\t\t\t\t&& DateUtil.entreTruncado(prescricao\r\n\t\t\t\t\t\t\t\t\t.getDthrInicio(), laudo\r\n\t\t\t\t\t\t\t\t\t.getDthrInicioValidade(), laudo\r\n\t\t\t\t\t\t\t\t\t.getDthrFimValidade())) {\r\n\r\n\t\t\t\t\t\tacheiLaudoValido = true;\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (laudo.getDthrFimValidade() == null) {\r\n\t\t\t\t\t\t\tlaudo.setDthrFimValidade(DateUtil.adicionaDias(\r\n\t\t\t\t\t\t\t\t\tlaudo.getDthrInicioValidade(),\r\n\t\t\t\t\t\t\t\t\ttempoValidade - 1));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tjustificativa = laudo.getJustificativa();\r\n\t\t\t\t\tduracaoTratamentoSolicitado = laudo\r\n\t\t\t\t\t\t\t.getDuracaoTratSolicitado();\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!acheiLaudoValido) {\r\n\r\n\t\t\t\t\tShort maximaDiariaUTI = null;\r\n\r\n\t\t\t\t\tif (prescricao.getAtendimento().getInternacao() != null) {\r\n\t\t\t\t\t\tmaximaDiariaUTI = prescricao.getAtendimento()\r\n\t\t\t\t\t\t\t\t.getInternacao()\r\n\t\t\t\t\t\t\t\t.getItemProcedimentoHospitalar()\r\n\t\t\t\t\t\t\t\t.getMaxDiariaUti();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (maximaDiariaUTI == null || maximaDiariaUTI > 0) {\r\n\t\t\t\t\t\tMpmLaudo laudo = new MpmLaudo();\r\n\t\t\t\t\t\tlaudo.setDthrInicioValidade(prescricao.getDthrInicio());\r\n\t\t\t\t\t\tlaudo.setDthrFimValidade(DateUtil.adicionaDias(laudo\r\n\t\t\t\t\t\t\t\t.getDthrInicioValidade(), tempoValidade - 1));\r\n\t\t\t\t\t\tlaudo.setDthrFimPrevisao(DateUtil.adicionaDias(laudo\r\n\t\t\t\t\t\t\t\t.getDthrInicioValidade(), tempoValidade - 1));\r\n\t\t\t\t\t\tlaudo.setJustificativa(justificativa);\r\n\t\t\t\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\t\t\t\tlaudo.setImpresso(false);\r\n\t\t\t\t\t\tlaudo\r\n\t\t\t\t\t\t\t\t.setDuracaoTratSolicitado(duracaoTratamentoSolicitado);\r\n\t\t\t\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\t\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\t\t\t\tlaudo.setTipoLaudo(tipoLaudoUTI);\r\n\t\t\t\t\t\tlaudoList.add(laudo);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}",
"public void choixduJeu() {\n afficheMessage(\"*- Choisissez le jeu auquel vous voulez jouer : \\n- R pour Recherche +/-\\n- M pour Mastermind\");\n choixJeu = Console.saisieListeDeChoix(\"R|M\");\n afficheMessage(\"*- Choisissez le mode de jeu auquel vous voulez jouer :\\n- C pour Challenger,\\n- U pour Duel\\n- D pour Defense\");\n choixModeJeu = Console.saisieListeDeChoix(\"C|U|D\");\n }",
"public SigalPeticion getUsuarios() throws Exception {\n SigalPeticion msgEnvio = SigalPeticion.getInstance( 2 );\n\n msgEnvio.addParametro( 0, new Parametro( \"FUNCION\", \"CL\" ) ); \n msgEnvio.addParametro( 1, \n /**\n * Somente usuarios ATIVOS\n * N = Ativos\n * S = Ativos e Inativos\n */\n new Parametro( \"USUBAJAC\", \"N\" ) \n );\n\n msgEnvio.setTipoOperacion( \"view\" );\n msgEnvio.setTransaccion( \"SGCLUSU\" );\n\n return msgEnvio;\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t@Override\r\n\tpublic void actulizar(String cUsuario, ColorAuto viejos, ColorAuto nuevos) {\n\t\t\r\n\t\tConnection conexion = null;\r\n\t\ttry {\r\n\t\t\tconexion = ConexionApp.iniConexion();\r\n\r\n\t\t\tBooleanHolder lhResultado = new BooleanHolder();\r\n\t\t\tStringHolder chTexto = new StringHolder();\r\n\t\t\tapp app = new app(conexion);\r\n\r\n\t\t\tVector vViejos = new Vector();\r\n\t\t\tvViejos.add(viejos.getLista());\r\n\t\t\t\t\t\t\r\n\t\t\tVector vNuevos = new Vector();\r\n\t\t\tvNuevos.add(nuevos.getLista());\r\n\t\t\t\r\n\t\t\tResultSet tt_Viejos = new VectorResultSet(vViejos);\r\n\t\t\tResultSet tt_Nuevos = new VectorResultSet(vNuevos);\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\tapp.as_ctColorAuto_Actualiza(cUsuario, tt_Viejos, tt_Nuevos, lhResultado, chTexto);\t\t\t\r\n\t\t\tthis.setResultado(lhResultado.getBooleanValue());\t\t\t\r\n\t\t\tthis.setMensaje(chTexto.getStringValue());\r\n\r\n\t\t\tapp._release();\r\n\r\n\t\t} catch (Open4GLException | IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tthis.setResultado(true);\r\n\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tConexionApp.finConexion(conexion);\r\n\r\n\t\t\t} catch (Open4GLException | IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tthis.setResultado(true);\r\n\t\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\r\n\t}",
"private List<OrarioIngressoUscita> getOrariIngressoUscita(Cliente cliente) throws IOException {\r\n\t\tString userID = cliente.getId();\r\n\t\tBufferedReader reader = Utilities.apriFile(\"orariIngressoUscita.txt\");\r\n\t\t\r\n\t\tString currentLine;\r\n\t\tString[] user = new String[200];\r\n\t\t\r\n\t\tList<OrarioIngressoUscita> result = new ArrayList<>();\r\n\t\t\r\n\t\twhile ((currentLine = reader.readLine()) != null) {\r\n\t\t\tuser = currentLine.split(Pattern.quote(\"|\"));\r\n\t\t\t\r\n\t\t\tif (user[0].equals(userID) && \r\n\t\t\t\t\tcliente.getTes().getUltimoAggiornamento().isAfter(LocalDateTime.parse(user[1], Utilities.formatterDataOra)))\r\n\t\t\t\tif (!user[2].equals(\"null\"))\r\n\t\t\t\t\tresult.add(new OrarioIngressoUscita(LocalDateTime.parse(user[1], Utilities.formatterDataOra), \r\n\t\t\t\t\t\t\tLocalDateTime.parse(user[2], Utilities.formatterDataOra)));\r\n\t\t}\r\n\t\t\r\n\t\treader.close();\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public void subeUsuario() {\n\t\tEditText nicknameText = (EditText) findViewById(R.id.nicknameEditText);\n\t\tstrNickname = nicknameText.getText().toString().trim();\n\t\t\n\t\tif (strNickname.equals(\"\")) {\n\t\t\tToast.makeText(this, \"Nickname no puede estar vacío\",Toast.LENGTH_LONG).show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tguardarPreferences();\n\t\t\n\t\t//lanzamos un uploadService\n\t\tIntent uploadService = new Intent(getApplicationContext(),UploadUserService.class);\n\t\t\n\t\tuploadService.putExtra(\"id\", userId);\n\t\tuploadService.putExtra(\"nickname\", strNickname);\n\t\tuploadService.putExtra(\"mail\", strEmail);\n\t\tuploadService.putExtra(\"dob\", dayOfBirth);\n\t\tuploadService.putExtra(\"pass\", strPassword);\n\t\tuploadService.putExtra(\"genero\", gender);\n\t\tuploadService.putExtra(\"avatar\", strAvatar);\n\t\t\n\t\tstartService(uploadService);\n\t}",
"public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }",
"private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}",
"private void populaUnidade()\n {\n Unidade unidade = new Unidade(\"Unidade Santo Amaro\", \"Horario de funcionamento: 6:00 as 23:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Aclimação\", \"Horario de funcionamento: 7:00 as 22:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Vinhedo\", \"Horario de funcionamento: 6:00 as 22:00\");\n unidadeDAO.insert(unidade);\n }",
"public void solicitarRutinasPorDia() {\n eliminarTodasRutinas();\n\n }",
"java.lang.String getUa();",
"public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }",
"public void loadRutinas() {\n\t\trutinas = rutBuss.getRutinas();\n\t}",
"public void rellenaImagen()\n {\n rellenaDatos(\"1\",\"Samsung\", \"cv3\", \"blanco\" , \"50\", 1200,2);\n rellenaDatos(\"2\",\"Samsung\", \"cv5\", \"negro\" , \"30\", 600,5);\n }",
"public void anuncio() {\n\n\t\tapp.image(pantallaEncontrado, 197, 115, 300, 150);\n\n\t\tapp.image(botonContinuar, 253, 285);\n\n\t}",
"public usuarios Cargar_Usuario(int cedula) {\r\n base_datos_Usuarios ae_db = new base_datos_Usuarios();\r\n usuarios informacion_usuario = ae_db.Buscar_Usuario_DB(cedula);\r\n return informacion_usuario;\r\n }",
"void suplantarIdUsuer(String nombre) throws Exception {\n\t\tLibro[] librosPres = new Libro[Const.MAXLIBROSPRES];\n\t\tint bpn = busquedaPrimerNulo();\n\t\tUsuario[] vu = ArrayObject.listadoUsuarios();\n\n\t\tMiObjectInputStream oi = null;\n\n\t\ttry { // comprueba que el archivo FUSUARIOS existe antes de leerlo\n\t\t\toi = new MiObjectInputStream(new FileInputStream(Const.FUSUARIOS));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Archivo no encontrado - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\n\t\t// busca donde se encuentra el primer usuario null del archivo para crear un\n\t\t// usuario nuevo en ese mismo lugar para obtener un id ordenado. Del mismo modo\n\t\t// la primera vez que esto se ustiliza llena el archivode usuarios de nulos pero\n\t\t// no elimna los usuarios que se encuentran por debajo\n\t\tUsuario u = (Usuario) oi.readObject();\n\t\tu = new Usuario(bpn, nombre, librosPres);\n\t\tvu[bpn] = u;\n\n\t\ttry {\n\t\t\tFileOutputStream fo = new FileOutputStream(Const.FUSUARIOSAUX, true);\n\t\t\tMiObjectOutputStream oo = new MiObjectOutputStream(fo);\n\t\t\tint i = 0;\n\t\t\twhile (i < vu.length) {\n\t\t\t\tu = vu[i];\n\t\t\t\too.writeObject(u);\n\t\t\t\ti++;\n\t\t\t} // finaliza el while para la lectura\n\t\t\too.close();\n\n\t\t} catch (Exception e) { // encaso de encontrar el archivos pero no puede leerlo\n\t\t\tSystem.out.println(\"Problemas al leer el archivo - suplantarIdUsuer - \" + e.toString());\n\t\t}\n\t\toi.close();\n\t}",
"private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }",
"private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }",
"public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }",
"private void populaAula()\n {\n Aula aula = new Aula(\"Abdominal\", \"Aula que tem como objetivo o aumento da força e resistência muscular abdominal,\"\n + \" melhora da postura e diminuição das dores lombares, através de exercícios de resistência \"\n + \"muscular. Indicada para todos os níveis de condicionamento para iniciantes, intermediários e \"\n + \"avançados. DURAÇÃO 30'\", \"ab.jpg\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Boxe\", \"Aula de condicionamento físico que utiliza a técnica e exercícios do boxe. Indicada para todos os níveis \"\n + \"de condicionamento para iniciantes, intermediários e avançados. DURAÇÃO 60'\", \"boxe.gif\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Jiu Jitsu\", \"Aula com treinamento específico da modalidade\", \"jiujitsu.gif\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Bike\", \"Aula que tem como objetivo o condicionamento cardiovascular, através de uma \"\n + \"periodização de treinamento específica da modalidade. Indicada para todos os níveis de condicionamento para \"\n + \"iniciantes, intermediários e avançados. DURAÇÃO 30', 45' E 60'\", \"bike.gif\");\n aulaDAO.insert(aula);\n }",
"public TelaCadastrarUsuarios() {\n initComponents();\n carregarTabela();\n carregarComboBoxFuncionarios();\n carregarImagens();\n }",
"@Override\r\n\tpublic void analizarUsuario() {\n\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\tia.analizarUsuario();\r\n\t\t}\t\r\n\t}",
"public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }",
"protected void pelaajaTuhoutuuOsumasta(UfoKuti ufokuti) {\n pelaaja.setImage(grafiikka.getRajahdys().getImage());\n pelaaja.setKuolee(true);\n ufokuti.setDestroyed(true);\n peliLoppuuPelaajanKuollessa();\n }",
"private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }",
"String getUnidade();",
"public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}",
"public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }",
"public void inicializarSugeridos() {\n\t\tarticulosSugeridos = new ArrayList<>();\n\t\tfor(Articulo articulo : this.getMain().getArticulosEnStock()) {\n\t\t\tarticulosSugeridos.add(articulo.getNombre().get() + \" - \" + articulo.getTalle().get());\n\t\t}\n\t\tasignarSugeridos();\n\t\tinicializarTxtArticuloVendido();\n\t}",
"public SigalPeticion reativarUsuario ( AccountTO usuario ) throws Exception {\n \n // Tratamento para controle de campos opicionais\n int totalParams = 11;\n boolean possuiCenttra = true;\n boolean possuiCodPerfil = true;\n\n if ( usuario.getCenttra() == null || usuario.getCenttra().trim().equals(\"\") ) {\n --totalParams;\n possuiCenttra = false;\n }\n\n if ( usuario.getCodperfil() == null || usuario.getCodperfil().trim().equals(\"\") ) {\n --totalParams;\n possuiCodPerfil = false;\n }\n\n SigalPeticion msgEnvio = SigalPeticion.getInstance( totalParams );\n\n msgEnvio.addParametro( --totalParams, new Parametro( \"FUNCION\", \"RE\" ) );\n\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.USUARIO,\n usuario.getUsuario() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.OFICINA,\n usuario.getOficina() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NOMBREUSU,\n usuario.getNombreusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.PASSWORD,\n usuario.getPassword() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.NIVSEGUSU,\n usuario.getNivsegusu() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODIDIOMA,\n usuario.getCodidioma() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECACTIVA,\n usuario.getFecactivaForEASE() ) );\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.FECDESACT,\n usuario.getFecdesactForEASE() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCenttra )\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CENTTRA,\n usuario.getCenttra() ) );\n\n // CAMPO OPICIONAL, alteração feita na especificação v. 5.0\n if ( possuiCodPerfil ) {\n msgEnvio.addParametro( --totalParams, new Parametro( IUsuarioXML.CODPERFIL,\n usuario.getCodperfil() ) );\n }\n\n msgEnvio.setTipoOperacion( \"update\" );\n msgEnvio.setTransaccion( \"SGREUSU\" );\n\n return msgEnvio; \n }",
"@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}",
"public static void IngresoDatos(){\n int IFila=0,ICol=0;\n int INota;\n for(IFila=0;IFila<10;IFila++)\n {\n StrNotas[IFila][0]=JOptionPane.showInputDialog(null, \"Ingrse nombre del alumno:\");\n INota=LlenadoRandom(0,100);\n StrNotas[IFila][1]=Integer.toString(INota);\n if(INota<61)\n StrNotas[IFila][2]=\"Perdio\";\n else\n StrNotas[IFila][2]=\"gano\";\n }\n }",
"public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }",
"public static void main(String[] args) {\n\n Scanner skaityvtuvas = new Scanner(System.in);\n while (true) {\n System.out.println(\"Turime is viso 9 uzduotis\");\n System.out.println(\"Iveskite uzduoties numeri, kad ja vykdyti.\");\n System.out.println(\"Ivedus 0, programa bus baigta.\");\n int pasirinkimas = skaityvtuvas.nextInt();\n\n switch (pasirinkimas) {\n case CHOISE_0:\n return;\n case CHOISE_1:\n Uzduotis01 pirmoji = new Uzduotis01(); // Vykdo konstruktoriu.\n break;\n case CHOISE_2:\n Uzduotis02 antroji = new Uzduotis02();\n break;\n case CHOISE_3:\n Uzduotis03 trecioji = new Uzduotis03();\n break;\n case CHOISE_4:\n Uzduotis04 ketvirta = new Uzduotis04();\n break;\n case CHOISE_5:\n Uzduotis05 penkta = new Uzduotis05();\n break;\n case CHOISE_6:\n Uzduotis06 sesta = new Uzduotis06();\n break;\n case CHOISE_7:\n Uzduotis07 septinta = new Uzduotis07();\n break;\n case CHOISE_8:\n Uzduotis08 astunta = new Uzduotis08();\n case CHOISE_9:\n Uzduotis09 devinta = new Uzduotis09();\n }\n }\n\n\n }",
"List<Receta> getAllWithUSer();",
"private void capturarControles() {\n \t\n \ttxtNombre = (TextView)findViewById(R.id.txtNombre);\n \timagenDestacada = (ImageView)findViewById(R.id.imagenDestacada);\n\t\ttxtDescripcion = (TextView)findViewById(R.id.txtDescripcion);\n\t\tlblTitulo = (TextView)findViewById(R.id.lblTitulo);\n\t\tbtnVolver = (Button)findViewById(R.id.btnVolver);\n\t\tbtnHome = (Button)findViewById(R.id.btnHome);\n\t\tpanelCargando = (RelativeLayout)findViewById(R.id.panelCargando);\n\t}",
"public int menuListados(){\n lector = new Scanner(System.in);\n\n int opcion = -1;\n do {\n Lib.limpiarPantalla();\n System.out.println(\"************************************\");\n System.out.println(\"* LISTADOS *\");\n System.out.println(\"************************************\");\n System.out.println(\"1. Mostrar todos los multimedias\");\n System.out.println(\"2. Mostrar peliculas ordenadas \");\n System.out.println(\"3. Mostrar videojuegos ordenados por anyo\");\n System.out.println(\"4. Listado del histórico de alquileres de un socio ordenados por fecha de alquiler\");\n System.out.println(\"5. Listado de los alquileres actuales de un socio\");\n System.out.println(\"6. Listado de los socios con recargos pendientes\");\n System.out.println(\"---------------------\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 6) {\n System.out.println(\"Elija una opción del menú [0-7]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 6);\n return opcion;\n\n\n }",
"public void mostrarlistainicifin(){\n if(!estaVacia()){\n String datos = \"<=>\";\n NodoBus auxiliar = inicio;\n while(auxiliar!=null){\n datos = datos + \"(\" + auxiliar.dato +\")<=>\";\n auxiliar = auxiliar.sig;\n JOptionPane.showMessageDialog(null, datos, \"Mostrando lista de inicio a fin\", JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }",
"public List<Usuario> ultimosUsuariosCadastrados(){\r\n List<Usuario> users = new ArrayList<Usuario>();\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(\"SELECT * FROM usuarios ORDER BY id DESC\");\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()){\r\n Usuario u = new Usuario();\r\n u.setId(rs.getInt(\"id\"));\r\n u.setUsuario(rs.getString(\"usuario\"));\r\n u.setNome(rs.getString(\"nome\"));\r\n u.setEmail(rs.getString(\"email\"));\r\n u.setSenha(rs.getString(\"senha\"));\r\n u.setPin(rs.getString(\"pin\"));\r\n u.setUrlfoto(rs.getString(\"urlfoto\"));\r\n u.setAcesso(rs.getTimestamp(\"acesso\"));\r\n u.setAdmin(rs.getInt(\"admin\"));\r\n users.add(u);\r\n }\r\n rs.close();\r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro ao apresentar os ultimos usuarios cadastrados: \"+sqle.getMessage());\r\n }\r\n return users;\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tScanner pedirDato = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Ingresa el tamaño de tu cuadrado:\");\n\t\t\n\t\t// Crear variable donde almacenamos el dato del usuario\n\t\t\n\t\tint dato = pedirDato.nextInt();\n\t\t\n\t\t// Para crear un cuadrado de tamaño razonable solamente estara entre [0,200]\n\t\tif(dato >= 0 && dato <= 200) {\n\t\t\t \n // PARTE SUPERIOR DEL CUADRADO\n\t\t\t\n\t\t\tfor(int a = 0; a<dato;a++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\t\n\t\t\t// PARTE INTERMEDIA DEL CUADRADO\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// CENTRO DEL CUADRADO\n\t\t\t\n\t\t\tfor(int a =0; a<dato-2;a++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\n\t\t\t\t// ESPACIOS\n\t\t\t\tfor(int x=0;x < dato-2;x++){\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"*\");\n\t\t\t}\n\t\t\t\n\t\t\t// PARTE INFERIOR DEL CUADRADO\n\t\t\t\n\t\t\tfor(int a = 0; a<dato;a++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t }\n\t\telse {\n\t\t\tSystem.out.print(\"Ingresa un nuumero entre el rango porfavor.\");\n\t\t}\n\t}",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }",
"private void getPinchazos(){\n mPinchazos = estudioAdapter.getListaPinchazosSinEnviar();\n //ca.close();\n }",
"public String[] getUsuariosInmueble(){\n\t\tint registros=0;\n\t\ttry{\n\t\t\tPreparedStatement statemenet=getConnection().prepareStatement(\"select count(*) as total from usuarios where tipo='A' \");\n\t\t\tResultSet respuesta=statemenet.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tregistros=respuesta.getInt(\"total\");\n\t\t\trespuesta.close();\n\t\t\t\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\tString[] usuarios=new String[registros+1];\n\t\ttry{\n\t\t\tPreparedStatement statement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='R' \");\n\t\t\tResultSet respuesta=statement.executeQuery();\n\t\t\trespuesta.next();\n\t\t\tusuarios[0]=respuesta.getString(1);\n\t\t\tstatement=getConnection().prepareStatement(\"select usuario from usuarios where tipo='A' \");\n\t\t\trespuesta=statement.executeQuery();\n\t\t\tint i=1;\n\t\t\twhile(respuesta.next()){\n\t\t\t\tusuarios[i]=respuesta.getString(1);\n\t\t\t\ti++;\n\t\t\t\n\t\t\t}\n\t\t\tstatement.close();\n\t\t}catch(SQLException exception){\n\t\t\tSystem.err.println(exception.getMessage());\n\t\t}\n\t\treturn usuarios;\n\t}",
"public void generarCuestionario() {\n \n try{\n ValidarOpcionSeleccionada.validar (radios);\n }catch (OpcionNoSeleccionadaException e) {\n etiquetaRespuesta.setText(\"Debes selecionar una opcion\");\n}\n \n\n //Con el modelo construido debemos representar nuestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n Opcion op1 = new Opcion();\n op1.setTitulo(\"Inglaterra\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"México\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Italia\");\n op3.setCorrecta(false);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Francia\");\n op4.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Que país tiene más Premios Nobel de Literatura?\");\n p1.setOpciones(opciones);\n\n \n //opciones de la pregunta 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Ares\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Prometeo\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Poseidón\");\n op23.setCorrecta(true);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Hefesto\");\n op24.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Quién es el padre del cíclope Polifemo según la mitología griega?\");\n p2.setOpciones(opciones2);\n \n //opciones de la pregunta 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"J.K Rowling\");\n op31.setCorrecta(false);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Emily Bronte\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Stephen King\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Jane Austen\");\n op34.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien escribio el libro Orgullo y Prejuicio?\");\n p3.setOpciones(opciones3);\n \n //Opciones pregunta 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"El Cáliz de Fuego\");\n op41.setCorrecta(true);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Festin de Cuervos\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"El prisionero de Azkaban\");\n op43.setCorrecta(false);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Principe Mecánico\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Como se llama el cuarto libro de Harry Potter?\");\n p4.setOpciones(opciones4);\n \n //Opciones pregunta 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Dunkirk\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Los Miserables\");\n op52.setCorrecta(true);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Interestelar\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Batman: El caballero de la noche\");\n op54.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5= {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿Que película NO dirigio Chistopher Nolan?\");\n p5.setOpciones(opciones5);\n \n //Opciones pregunta 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"Joe Greene\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"Tom Brady\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"Joe Montana\");\n op63.setCorrecta(false);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"Peyton Manning\");\n op64.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿Que jugador ha ganado más MVP en la NFL?\");\n p6.setOpciones(opciones6);\n \n //Opciones pregunta 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Bayern Munich\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"Real Madrid\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Barcelona\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"Manchester United\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que equipo ha ganado más Champions League en la hsitoria?\");\n p7.setOpciones(opciones7);\n \n \n //Opciones pregunta 8\n \n Opcion op81 = new Opcion();\n op81.setTitulo(\"Tratado de Versalles\");\n op81.setCorrecta(true);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Tratado de Granada\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"Tratado de Lyon\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Tratado de Londres\");\n op84.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Como se llamo el tratado con el que se le dio fin a la PGM?\");\n p8.setOpciones(opciones8);\n \n //opciones pregunta 9 \n \n Opcion op91 = new Opcion();\n op91.setTitulo(\"Hermanos Lumiere\");\n op91.setCorrecta(false);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"Steven Spielberg\");\n op92.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Thomas Harper\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"George Mellies\");\n op94.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿A quien se le considera como el mago del cine?\");\n p9.setOpciones(opciones9);\n \n //Opciones pregunta 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Miguel Ángel\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Rafael Sanzio\");\n op102.setCorrecta(false);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"Leonardo Da Vinci\");\n op103.setCorrecta(true);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"Bernini\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que artífice NO participo en la construcción de la Basílica de San Pedro?\");\n p10.setOpciones(opciones10);\n \n \n \n //Pregunta p11 =new Pregunta();\n System.out.println(\"Fin de Cuestionario \");\n \n \n \n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n \n \n \n //Se agrega a este list las preguntas que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n // preguntas.add(p11);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n \n c.setPreguntas(preguntas);\n //Ajustamos el titulo de la primera pregunta\n mostrarPregunta (preguntaActual); \n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la pregunta\ntry{\n int opcion= Integer.parseInt (etiquetaRespuesta.getText());\n ValidarNumeroPreguntas.validar (opcion);\n }catch (NumberFormatException e) {\n \n}\n \n }",
"public void automovil(){\r\n System.out.println(\"Ingrese placa: \");\r\n placa = leer.next();\r\n System.out.println(\"Ingrese marca: \");\r\n marca = leer.next();\r\n \r\n Automovil auto = new Automovil(placa, marca, 10000);\r\n controlador.llenarVehiculo(auto);\r\n {\r\n }\r\n }",
"public void alustaAlue() {\n if (x >= 1) {\n for (int i = 0; i < x; i++) {\n this.ruudukko[i] = new ArrayList<Ruutu>();\n for (int j = 0; j < x; j++) {\n this.ruudukko[i].add(new Ruutu(taso));\n }\n }\n for (int i = 0; i < x; i++) {\n for (int j = 0; j < x; j++) {\n ArrayList<Ruutu> lista = this.ruudukko[i];\n if (lista.get(j).isMiina()) {\n lisaaMiina(i, j);\n } else {\n this.ruudut++;\n }\n }\n }\n }\n\n }",
"private void mostrarUsuarios(ArrayList<Usuario> usuarios) {\n\t\tSystem.out.println(\"Id - Nombre Apellidos / Edad / DNI / Fecha_nac\\n\");\r\n\t\tIterator<Usuario> i=usuarios.iterator();\r\n\t\twhile(i.hasNext()){\r\n\t\t\tmostrarUsuario(i.next());\r\n\t\t}\r\n\t}",
"public List<Usuario> todosLosUsuarios() throws SQLException {\n PreparedStatement preSt = connection.prepareStatement(USUARIOS);\n ResultSet result = preSt.executeQuery();\n\n List<Usuario> usuario = new LinkedList<>();\n\n while (result.next()) {\n usuario.add(new Usuario(\n result.getInt(Usuario.USUARIO_ID_DB_NAME),\n result.getString(Usuario.NOMBRE_DB_NAME),\n result.getString(Usuario.PROFESION_DB_NAME),\n result.getString(Usuario.PASSWORD_DB_NAME)\n ));\n }\n System.out.println(\"Usuarios: \" + usuario.size());\n return usuario;\n }",
"public void altaUsuario();",
"public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}",
"public ArrayList<String> Info_Disc_Pel_Compras_usu(String genero, String usuario) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Pel_Rep1(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Peliculas.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3]) & info_disco_compra[0].equals(usuario)) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }",
"private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }",
"private void cargaComonentes() {\n\t\trepoInstituciones = new InstitucionesRepository(session);\n\t\trepoInstitucion_usuario = new Institucion_UsuariosRepository(session);\n\t\tList upgdsList = null;\n\t\tif(mainApp.getUsuarioApp().getPer_Usu_Id().equalsIgnoreCase(\"Alcaldia\")){\n\t\t\tupgdsList = repoInstituciones.listByMunicipio(mainApp.getUsuarioApp().getMun_Usu_Id());\n\t\t\tInstituciones instiL=new Instituciones();\n\t\t\tIterator iter = upgdsList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tinstiL=(Instituciones) iter.next();\n\t\t\t\tinstitucionesList.add(instiL);\n\t\t\t}\n\t\t}else{\n\t\t\tInstitucion_Usuarios institucion_usuario = new Institucion_Usuarios();\n\t\t\tupgdsList = repoInstitucion_usuario.getListIpsByUsuario(mainApp.getUsuarioApp().getUsu_Id());\n\t\t\tIterator iter = upgdsList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tinstitucion_usuario = (Institucion_Usuarios) iter.next();\n\t\t\t\tinstitucionesList.add(repoInstituciones.findById(institucion_usuario.getIps_Ipsu_Id()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tinstitucionesBox.setItems(institucionesList);\n\t\tinstitucionesBox.setValue(mainApp.getInstitucionApp());\n\n\t\tinstitucionesBox.valueProperty().addListener(new ChangeListener<Instituciones>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Instituciones> observable, Instituciones oldValue,\n\t\t\t\t\tInstituciones newValue) {\n\t\t\t\tmainApp.setInstitucionApp(newValue);\n\t\t\t}\n\t\t});\n\t}",
"public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }",
"private void ObtenerImagenUsuario(String nombre)\n {\n // Realizamos la obtención de la imagen\n ImageLoader.getInstance().loadImage(Helpers.URLImagenes(\"Usuarios/\" + nombre + \".jpg\"), new SimpleImageLoadingListener() {\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n super.onLoadingComplete(imageUri, view, loadedImage);\n\n try {\n // Procesamos los bytes de la imagen recibida\n Bitmap imagen = loadedImage;\n\n try {\n // Guardamos la imagen\n FileOutputStream fOut = new FileOutputStream(Helpers.ImagenFotoPerfil(getActivity()));\n imagen.compress(Bitmap.CompressFormat.JPEG, 100, fOut);\n fOut.flush();\n fOut.close();\n } catch (IOException ioe) {\n }\n }\n catch (Exception ex) { }\n\n // Limpiamos la opción de espera\n m_Espera.dismiss();\n\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Cargamos los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n\n @Override\n public void onLoadingFailed(String imageUri, View view, FailReason failReason) {\n super.onLoadingFailed(imageUri, view, failReason);\n\n // Limpiamos la opción de espera\n m_Espera.dismiss();\n\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Cargamos los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n });\n }",
"public void consultarUsuario (List<Aeropuerto> mundoA,List<Ruta> mundoR, String n4Origen, String n4Destino){\n\t\t\n\t\t String paisAux = n4Origen;\n\t\t String paisOrigen = '\"' + paisAux + '\"';\n\t\t System.out.println(\" \");\n\t\t origen = dameAeropuertos(paisOrigen, mundoA);\n\t\t \n\t\t System.out.println(\" \");\n\t\t \n\t\t \n\t\t paisAux = n4Destino;\n\t\t String paisDestino = '\"' + paisAux + '\"';\n\t\t System.out.println(\" \");\n\t\t destino = dameAeropuertos(paisDestino,mundoA);\n\t\t \n\t\t //Ruta\n\t\t System.out.println(\" \");\n\t\t System.out.println(origen.getNombre() + \" ---> \" + destino.getNombre());\n\t\t dibujarRuta(origen,destino,mundoA,mundoR);\n\t\t \n\t }",
"public void obtenerNombreRespondedor(View v){\n String idUser = mAuth.getCurrentUser().getUid();\n dataBaseReference.child(\"Users\").child(idUser).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String nombre = dataSnapshot.child(\"nombre\").getValue().toString();\n String apellidos = dataSnapshot.child(\"apellidos\").getValue().toString();\n generarNombreCompleto(nombre, apellidos);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"private void solicitarDatos() {\n Intent intent = Henson.with(this).gotoAlumnoActivity().edad(mAlumno.getEdad()).nombre(\n mAlumno.getNombre()).build();\n startActivityForResult(intent, RC_ALUMNO);\n }",
"private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }",
"private void cargarFichaLepra_inicio() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_INICIO_TRATAMIENTO_LEPRA,\r\n\t\t\t\tIRutas_historia.LABEL_INICIO_TRATAMIENTO_LEPRA, parametros);\r\n\t}",
"private void SubirFotoUsuario(byte[] bDatos, String nombre)\n {\n // Si no hay datos, salimos\n if (bDatos == null)\treturn ;\n\n // Establecemos los parametros\n RequestParams params = new RequestParams();\n params.put(\"archivo\", new ByteArrayInputStream(bDatos), \"imagen.jpg\");\n params.put(\"directorio\", \"Usuarios\");\n params.put(\"nombre\", nombre);\n\n // Realizamos la petición\n cliente.post(getActivity(), Helpers.URLApi(\"subirimagen\"), params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Abrimos la ventana de los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n else\n {\n try {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n catch (Exception ex) { }\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.failuploadphoto));\n }\n });\n }",
"private void datosVehiculo(boolean esta_en_revista) {\n\t\ttry{\n\t\t\t String Sjson= Utils.doHttpConnection(\"http://datos.labplc.mx/movilidad/vehiculos/\"+placa+\".json\");\n\t\t\t JSONObject json= (JSONObject) new JSONTokener(Sjson).nextValue();\n\t\t\t JSONObject json2 = json.getJSONObject(\"consulta\");\n\t\t\t JSONObject jsonResponse = new JSONObject(json2.toString());\n\t\t\t JSONObject sys = jsonResponse.getJSONObject(\"tenencias\");\n\t\t\t \n\t\t\t if(sys.getString(\"tieneadeudos\").toString().equals(\"0\")){\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.sin_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_verde);\n\t\t\t }else{\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.con_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_rojo);\n\t\t\t \tPUNTOS_APP-=PUNTOS_TENENCIA;\n\t\t\t }\n\t\t\t \n\t\t\t JSONArray cast = jsonResponse.getJSONArray(\"infracciones\");\n\t\t\t String situacion;\n\t\t\t boolean hasInfraccion=false;\n\t\t\t for (int i=0; i<cast.length(); i++) {\n\t\t\t \tJSONObject oneObject = cast.getJSONObject(i);\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t situacion = (String) oneObject.getString(\"situacion\");\n\t\t\t\t\t\t\t if(!situacion.equals(\"Pagada\")){\n\t\t\t\t\t\t\t\t hasInfraccion=true;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t if(hasInfraccion){\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.tiene_infraccion));\n\t\t\t\t \tautoBean.setImagen_infraccones(imagen_rojo);\n\t\t\t\t \tPUNTOS_APP-=PUNTOS_INFRACCIONES;\n\t\t\t }else{\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.no_tiene_infraccion));\n\t\t\t\t autoBean.setImagen_infraccones(imagen_verde);\n\t\t\t }\n\t\t\t JSONArray cast2 = jsonResponse.getJSONArray(\"verificaciones\");\n\t\t\t if(cast2.length()==0){\n\t\t\t \t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t }\n\t\t\t\t\t Date lm = new Date();\n\t\t\t\t\t String lasmod = new SimpleDateFormat(\"yyyy-MM-dd\").format(lm);\n\t\t\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\tBoolean yaValide=true;\n\t\t\t\t for (int i=0; i<cast2.length(); i++) {\n\t\t\t\t \tJSONObject oneObject = cast2.getJSONObject(i);\n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\tif(!esta_en_revista&&yaValide){\n\t\t\t\t\t\t\t\t\t\t autoBean.setMarca((String) oneObject.getString(\"marca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setSubmarca((String) oneObject.getString(\"submarca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setAnio((String) oneObject.getString(\"modelo\"));\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_revista(getResources().getString(R.string.sin_revista));\n\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_revista(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t Calendar calendar = Calendar.getInstance();\n\t\t\t\t\t\t\t\t\t\t int thisYear = calendar.get(Calendar.YEAR);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t if(thisYear-Integer.parseInt(autoBean.getAnio())<=10){\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_nuevo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_verde);\n\t\t\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_viejo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t\t PUNTOS_APP-=PUNTOS_ANIO_VEHICULO;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t yaValide=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t Date date1 = formatter.parse(lasmod);\n\t\t\t\t\t\t\t\t Date date2 = formatter.parse(oneObject.getString(\"vigencia\").toString());\n\t\t\t\t\t\t\t\t int comparison = date2.compareTo(date1);\n\t\t\t\t\t\t\t\t if((comparison==1||comparison==0)&&!oneObject.getString(\"resultado\").toString().equals(\"RECHAZO\")){\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.tiene_verificaciones)+\" \"+oneObject.getString(\"resultado\").toString());\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_verde); \n\t\t\t\t\t\t\t\t\t hasVerificacion=true;\n\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t\t\t\t\t hasVerificacion=false;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t } catch (ParseException e) {\n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t if(!hasVerificacion){\n\t\t\t\t \t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t\t }\n\t\t\t \n\t\t\t}catch(JSONException e){\n\t\t\t\tDatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t}\n\t\t\n\t}",
"private void moverCarroLujo() {\n for (Auto auto : arrEnemigosAuto) {\n auto.render(batch);\n\n auto.moverIzquierda();\n }\n }",
"public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}",
"protected static void setModoUso(String modoUso) {\n Globales.modoUso = modoUso;\n }",
"public List<List<EjemplarVO>> movimientosUsuario(String user) {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tEjemplarDAO OwlDAO = new EjemplarDAO();\n\t\t\tList<EjemplarVO> ventas = OwlDAO.obtenerEjemplaresBy(\"vendedor\", user, 0, mysql);\n\t\t\tList<EjemplarVO> compras = OwlDAO.obtenerEjemplaresBy(\"comprador\", user, 0, mysql);\n\t\t\tList<List<EjemplarVO>> resultado = new ArrayList();\n\t\t\tresultado.add(ventas);\n\t\t\tresultado.add(compras);\n\t\t\treturn resultado;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t\treturn null;\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}",
"public Usuarios(String Cedula){ //método que retorna atributos asociados con la cedula que recibamos\n conexion = base.GetConnection();\n PreparedStatement select;\n try {\n select = conexion.prepareStatement(\"select * from usuarios where Cedula = ?\");\n select.setString(1, Cedula);\n boolean consulta = select.execute();\n if(consulta){\n ResultSet resultado = select.getResultSet();\n if(resultado.next()){\n this.Cedula= resultado.getString(1);\n this.Nombres= resultado.getString(2);\n \n this.Sexo= resultado.getString(3);\n this.Edad= resultado.getInt(4);\n this.Direccion= resultado.getString(5);\n this.Ciudad=resultado.getString(6);\n this.Contrasena=resultado.getString(7);\n this.Estrato=resultado.getInt(8);\n this.Rol=resultado.getString(9);\n }\n resultado.close();\n }\n conexion.close();\n } catch (SQLException ex) {\n System.err.println(\"Ocurrió un error: \"+ex.getMessage().toString());\n }\n}",
"protected void recuperarDados(){\n SharedPreferences sharedPreferences = getSharedPreferences(ARQUIVO_PREFERENCIA,0);\n\n if(sharedPreferences.contains(\"nome\")){\n String nomeUsuario = sharedPreferences.getString(\"nome\",\"Usuario não encontrado\");\n\n if(nomeUsuario.equals(\"Usuario não encontrado\")){\n lblMensagem.setText(nomeUsuario);\n } else {\n lblMensagem.setText((\"Seja bem vindo \" + nomeUsuario));\n }\n\n } else {\n lblMensagem.setText(\"Olá usuario não definido.\");\n }\n }",
"public void genPNGSoloUsuarios() {\n String entrada = genStrSoloUsuarios();\n generarPNG(\"usuarios\", entrada);\n }",
"public void iniciarUI()\n\t{\n\t\tDefaultTableModel model = new DefaultTableModel(columnas, 1);\n\t\tpasabordos = new JTable(model);\n\n\t\tvuelos = new JComboBox();\n\t\tllenarVuelos();\n\t\t\n\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\tif(v!=null)\n\t\t{\n\t\t\tllenarPasabordos(v.getId());\n\t\t}\n\n\t}",
"public void buscarPessoa(){\n\t\tstrCelular = CareFunctions.limpaStrFone(strCelular);\n\t\t System.out.println(\"Preparar \" + strCelular);//\n\t\t \n\t\tif (strCelular.trim().length() > 0){\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tList<Usuario> lstusuario = usuarioDAO.listPorcelular(strCelular);\n\t\t\tSystem.out.println(\"Buscou \" + lstusuario.size());\n\t\t\tsetBooIdentifiquese(false);\n\t\t\tif (lstusuario.size() > 0){\n\t\t\t\tusuario = lstusuario.get(0);\n\t\t\t\tsetBooSelecionouUsuario(true);\n\t\t\t}else{\n\t\t\t\tsetBooSelecionouUsuario(false);\t\t\t\t\n\t\t\t\tsetBooCadastrandose(true);\n\t\t\t\tusuario = new Usuario();\n\t\t\t\tusuario.setUsu_celular(strCelular);\n\t\t\t}\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Ahoe\", \"Bem Vindo\"));\t\n\t\t}else{\n\t\t\tSystem.out.println(\"Buscar \" + strCelular);//\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO,\n\t\t\t\t\t\t\t\"Você deve informar o Celular\", \"Não foi possível pesquisar\"));\t\t\t\n\t\t}\n\t}"
] | [
"0.6425432",
"0.6400124",
"0.63213235",
"0.6170966",
"0.6073861",
"0.60719323",
"0.6022658",
"0.60132265",
"0.59905857",
"0.5966748",
"0.5944699",
"0.5921496",
"0.58894706",
"0.5859111",
"0.5855518",
"0.58519125",
"0.5845736",
"0.5840949",
"0.5821814",
"0.5801074",
"0.57966536",
"0.5785663",
"0.5783871",
"0.5781169",
"0.5773301",
"0.5771298",
"0.5769501",
"0.57678884",
"0.5758508",
"0.5756793",
"0.57547927",
"0.575363",
"0.57340354",
"0.5727668",
"0.57022405",
"0.57015",
"0.5697364",
"0.5693018",
"0.56809884",
"0.5676964",
"0.56654084",
"0.5662955",
"0.5656901",
"0.5646509",
"0.5638601",
"0.5636186",
"0.56295836",
"0.5628647",
"0.5626933",
"0.5622413",
"0.56137645",
"0.5612284",
"0.5607629",
"0.5600961",
"0.5590298",
"0.55895925",
"0.5587907",
"0.55876887",
"0.558666",
"0.5582709",
"0.5578873",
"0.5577973",
"0.557693",
"0.55763245",
"0.5575993",
"0.55547845",
"0.55513746",
"0.5543064",
"0.55393183",
"0.5538436",
"0.5530747",
"0.5528394",
"0.5527964",
"0.5526447",
"0.55249894",
"0.55231774",
"0.5517075",
"0.5516499",
"0.5516143",
"0.55148625",
"0.5512985",
"0.55121696",
"0.5509024",
"0.55077827",
"0.550131",
"0.5500177",
"0.54970044",
"0.5489907",
"0.54859364",
"0.54823273",
"0.5467805",
"0.54666585",
"0.546527",
"0.5464815",
"0.54610556",
"0.5459946",
"0.54565114",
"0.54551506",
"0.5447787",
"0.5444641",
"0.5443799"
] | 0.0 | -1 |
Constructor de la clase. Inicializa sus variable. | public ModuloAdministradorDeClientesYConexiones(Estadistico estadistico, EstadisticoConsulta estadisticoConsulta, PriorityQueue<Evento> listaDeEventos, CalculadorValoresAleatorios calculador, double reloj, int k, double timeout){
super(estadistico, estadisticoConsulta, listaDeEventos, calculador, reloj, k);
this.timeout = timeout;
this.conexionesDescartadas = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public ValorVariavel() {\r\n }",
"public Constructor(){\n\t\t\n\t}",
"public Pasien() {\r\n }",
"public AntrianPasien() {\r\n\r\n }",
"public Caso_de_uso () {\n }",
"public Chauffeur() {\r\n\t}",
"public Alojamiento() {\r\n\t}",
"public Valvula(){}",
"public SlanjePoruke() {\n }",
"public Lanceur() {\n\t}",
"public Curso() {\r\n }",
"public prueba()\r\n {\r\n }",
"public Carrera(){\n }",
"public Corso() {\n\n }",
"public Cgg_jur_anticipo(){}",
"public Pitonyak_09_02() {\r\n }",
"public DetArqueoRunt () {\r\n\r\n }",
"public TradeVariables() { /*gets default values*/ }",
"public CyanSus() {\n\n }",
"public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"protected Asignatura()\r\n\t{}",
"public Clade() {}",
"public MorteSubita() {\n }",
"public JSFOla() {\n }",
"public Supercar() {\r\n\t\t\r\n\t}",
"public void init() {\n \n }",
"public MPaciente() {\r\n\t}",
"public NhanVien()\n {\n }",
"public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}",
"public TebakNusantara()\n {\n }",
"public Livro() {\n\n\t}",
"public Vehiculo() {\r\n }",
"public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }",
"public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"public Kullanici() {}",
"public Visita() {\n initialize();\n }",
"public Tbdcongvan36() {\n super();\n }",
"public TTau() {}",
"public Plato(){\n\t\t\n\t}",
"public _355() {\n\n }",
"public Cohete() {\n\n\t}",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"public Test(){\n calcula = new Calculadora();\n estaBien = \"ERROR\";\n funciona = \"SI\";\n lista = new ArrayList<String>();\n }",
"public void init(){}",
"public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public RptPotonganGaji() {\n }",
"public EnsembleLettre() {\n\t\t\n\t}",
"public Achterbahn() {\n }",
"public Trening() {\n }",
"ClaseColas() { // Constructor que inicializa el frente y el final de la Cola\r\n frente=0; fin=0;\r\n System.out.println(\"Cola inicializada !!!\");\r\n }",
"public Coche() {\n super();\n }",
"public Demo() {\n\t\t\n\t}",
"public Carrinho() {\n\t\tsuper();\n\t}",
"public Odontologo() {\n }",
"public void init(){\n \n }",
"public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }",
"public ejercicio1() {\n this.cadena = \"\";\n this.buscar = \"\";\n }",
"public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }",
"public Erreur() {\n\t}",
"public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }",
"public Propuestas() {}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public GlobalVariable() {\n }",
"public Anschrift() {\r\n }",
"public EngineClass()\n {\n cyl = 10;\n fuel = new String( BATT );\n }",
"@Override public void init()\n\t\t{\n\t\t}",
"@PostConstruct\r\n\tpublic void init() {\n\t\ttexto=\"Nombre : \";\r\n\t\topcion = 1;\r\n\t\tverPn = true;\r\n\t\ttipoPer = 1;\r\n\t\tsTipPer = \"N\";\r\n\t\tverGuar = true;\r\n\t\tvalBus = \"\";\r\n\t\tverCampo = true;\r\n\t\tread = false;\r\n\t\tgrabar = 0;\r\n\t\tcodCli = 0;\r\n\t\tcargarLista();\r\n\t}",
"public PSRelation()\n {\n }",
"public Variable(){\n name = \"\";\n initialValue = 0;\n }",
"public Datos(){\n }",
"public Hello()\n {\n // initialise instance variables\n \n }",
"public Funcionario() {\r\n\t\t\r\n\t}",
"public Libro() {\r\n }",
"public Troco() {\n }",
"public void init() {\n\t\t \r\n\t\t }",
"public void init() {\n\t\t}",
"public Candidatura (){\n \n }",
"public Venda() {\n }",
"public Exercicio(){\n \n }",
"public Busca(){\n }",
"private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}",
"public Phl() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"public Excellon ()\n {}",
"public CSSTidier() {\n\t}",
"public Tarifa() {\n ;\n }",
"public Final_parametre() {\r\n\t}",
"public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }",
"public void init() {\r\n\r\n\t}",
"public AfiliadoVista() {\r\n }",
"Petunia() {\r\n\t\t}",
"private BaseDatos() {\n }",
"public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }",
"public QLNhanVien(){\n \n }",
"public Tra() {\n super();\n initComponents();\n loadData();\n }",
"public YonetimliNesne() {\n }",
"public Tbdtokhaihq3() {\n super();\n }",
"public void init() {\n\n\t}"
] | [
"0.7818523",
"0.74560845",
"0.7341707",
"0.73280793",
"0.72704023",
"0.7235038",
"0.71252185",
"0.71152663",
"0.7098887",
"0.70980066",
"0.70752",
"0.7060938",
"0.7017437",
"0.70151114",
"0.6954102",
"0.6947933",
"0.69438106",
"0.69234943",
"0.691005",
"0.690901",
"0.6900822",
"0.68909764",
"0.6877637",
"0.68699074",
"0.6866963",
"0.68669546",
"0.6857171",
"0.6850469",
"0.6840166",
"0.6831112",
"0.6829742",
"0.6820082",
"0.6815801",
"0.68143535",
"0.68035036",
"0.67959625",
"0.67763335",
"0.6775668",
"0.6769731",
"0.67667186",
"0.6758258",
"0.6756385",
"0.6746573",
"0.67452216",
"0.67395985",
"0.6738664",
"0.67315024",
"0.67225474",
"0.67202955",
"0.67172766",
"0.67165637",
"0.67103845",
"0.67064095",
"0.6697278",
"0.6697269",
"0.6691638",
"0.6681708",
"0.66747075",
"0.6674706",
"0.66723007",
"0.66674095",
"0.66536766",
"0.6647541",
"0.6632998",
"0.6632024",
"0.66315204",
"0.6630124",
"0.6627659",
"0.6627377",
"0.6627278",
"0.6621938",
"0.66141486",
"0.66049355",
"0.66018075",
"0.65997314",
"0.6599463",
"0.6598653",
"0.65975857",
"0.6597197",
"0.65953314",
"0.6594229",
"0.65896356",
"0.65888244",
"0.6588369",
"0.6582312",
"0.6581549",
"0.65805495",
"0.657795",
"0.65773416",
"0.6577231",
"0.6575877",
"0.65722805",
"0.65715784",
"0.6571454",
"0.6567744",
"0.6566872",
"0.6560098",
"0.6559186",
"0.6557797",
"0.65573764",
"0.65555185"
] | 0.0 | -1 |
Procesa la llegada de una consulta. | @Override
public void procesarLlegada(Consulta consulta){
consulta.setTipoModulo(TipoModulo.ClientesYConexiones); //La consulta se encuentra en este módulo.
if(numeroServidores == 0){
conexionesDescartadas++;
listaDeEventos.removeIf((Evento ev) -> ev.getConsulta() == consulta); //Quito el timeout si la conexion fue descartada
}else{
numeroServidores--;
consulta.setTiempoIngreso(this.reloj); //Se le da a la consulta el tiempo en el que ingresó al sistema.
generarLlegadaAdmProcesos(consulta);
}
this.generarLlegadaAdmClientes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void consult() throws Exception {\n\t// TODO Consult\n\ttry {\n\t String page = \"ume_unidade_medidaConsult.jsp\";// defina aqui a pagina que deve ser chamada\n\t getResponse().sendRedirect(page); \n\t} catch (Exception e){} \n }",
"public void action_consultar(ActionEvent actionEvent) throws GWorkException {\r\n\t\ttry {\r\n\r\n\t\t\tConsultsService consultsService = new ConsultsServiceImpl();\r\n\r\n\t\t\tboolean esValido = true;\r\n\r\n\t\t\tif (criterio != null && criterio.trim().length() != 0)\r\n\t\t\t\tesValido = Util.validarPlaca(criterio);\r\n\r\n\t\t\tif (!esValido)\r\n\t\t\t\tthrow new GWorkException(Util\r\n\t\t\t\t\t\t.loadErrorMessageValue(\"CRITERIO.CARACTER\"));\r\n\r\n\t\t\t// List<Users> users = new UsersDAO().find\r\n\t\t\tlistUsers = consultsService.usuariosCiat(criterio.toUpperCase(),\r\n\t\t\t\t\tcriterio.toUpperCase(), criterio.toUpperCase());\r\n\t\t\tif (listUsers != null && listUsers.size() > 0) {\r\n\t\t\t\tsetListUsers(listUsers);\r\n\t\t\t\tsetMostrarTabla(true);\r\n\t\t\t} else\r\n\t\t\t\tthrow new GWorkException(Util\r\n\t\t\t\t\t\t.loadErrorMessageValue(\"search.not.found\"));\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tsetListUsers(null);\r\n\t\t\tmostrarMensaje(e.getMessage(), false);\r\n\t\t}\r\n\t}",
"public void consult() throws Exception {\n\t// TODO Consult\n\ttry {\n\t String page = \"con_contadorConsult.jsp\";// defina aqui a p?gina que deve ser chamada \n\t getResponse().sendRedirect(page); \n\t} catch (Exception e){} \n }",
"@Override\r\n public Resultado consultar(EntidadeDominio entidade) {\n String nmClass = entidade.getClass().getName();\r\n // instanciando DAO de acordo com a classe\r\n IDAO dao = daos.get(nmClass);\r\n //executando validações de regras de negocio \r\n String msg = executarRegras(entidade, \"PESQUISAR\");\r\n if (msg.isEmpty()) {\r\n if (dao.consultar(entidade).isEmpty()) {\r\n //caso dados não foram encontrados\r\n resultado.setMsg(\"dados nao encontrados\");\r\n } else {\r\n //caso dados foram encontrados \r\n resultado.setMsg(\"pesquisa feita com sucesso\");\r\n }\r\n resultado.setEntidades(dao.consultar(entidade));\r\n } else {\r\n resultado.setMsg(msg.toString());\r\n }\r\n return resultado;\r\n }",
"Jugador consultarGanador();",
"public void EjecutarConsulta() {\n try {\n Consultar(\"select * from \"+table);\n this.resultSet = preparedStatement.executeQuery();\n } catch (Exception e) {\n// MessageEmergent(\"Fail EjecutarConsulta(): \"+e.getMessage());\n }\n }",
"public void consult() throws Exception {\n // TODO Consult\n try {\n String page = \"pi_per_intConsult.jsp\";// defina aqui a p?gina que deve ser chamada\n getResponse().sendRedirect(page);\n } catch (Exception e) {\n }\n }",
"public void buscar(){\n \n String atributo=txtBuscar.getText();\n String consulta=extraerCombo();\n DefaultTableModel modelo=da.consultar(consulta, atributo);\n tblConsultar.setModel(modelo);\n lblTotal.setText(\"Se encontraron: \"+Integer.toString(da.getTotalRegistros())+\" resultados\");\n \n }",
"@Override\n public void onClick(View v) {\n queryMain = svBusqueda.getQuery();\n Toast.makeText(getApplicationContext(),\"ejecutando consulta \"+queryMain,Toast.LENGTH_LONG).show();\n consultarDb();\n }",
"private void solicitarDatos() {\n Intent intent = Henson.with(this).gotoAlumnoActivity().edad(mAlumno.getEdad()).nombre(\n mAlumno.getNombre()).build();\n startActivityForResult(intent, RC_ALUMNO);\n }",
"private void llenarListado1() {\r\n\t\tString sql1 = Sentencia1()\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tdet.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor det.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n\t\t\tsql1 += \" and det.permanente is true \";\r\n\t\t}\r\n\t\tString sql2 = Sentencia2()\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarLista(sql1, sql2);\r\n\t}",
"public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n break;\r\n case \"Entrega\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(3, mBsesion.codigoMiSesion());\r\n break;\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultasSeguimiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }",
"public void buscarDatos() throws Exception {\r\n try {\r\n String parameter = lbxParameter.getSelectedItem().getValue()\r\n .toString();\r\n String value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n Map<String, Object> parameters = new HashMap();\r\n parameters.put(\"parameter\", parameter);\r\n parameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n getServiceLocator().getHospitalizacionService().setLimit(\r\n \"limit 25 offset 0\");\r\n\r\n List<Hospitalizacion> lista_datos = getServiceLocator()\r\n .getHospitalizacionService().listar(parameters);\r\n rowsResultado.getChildren().clear();\r\n\r\n for (Hospitalizacion hospitalizacion : lista_datos) {\r\n rowsResultado.appendChild(crearFilas(hospitalizacion, this));\r\n }\r\n\r\n gridResultado.setVisible(true);\r\n gridResultado.setMold(\"paging\");\r\n gridResultado.setPageSize(20);\r\n\r\n gridResultado.applyProperties();\r\n gridResultado.invalidate();\r\n gridResultado.setVisible(true);\r\n\r\n } catch (Exception e) {\r\n MensajesUtil.mensajeError(e, \"\", this);\r\n }\r\n }",
"Turno consultarTurno();",
"public void llenaRsFServicios(Connection c){\n\t\ttry{\n\t\t\tps = c.prepareStatement(\"select * from public.\\\"formularioServ\\\"\", ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE, ResultSet.HOLD_CURSORS_OVER_COMMIT);\n\t\t\trsformularioServ = ps.executeQuery();\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tSystem.out.println(\"DATOS: ERROR EN LISTAR SERVICIOS \"+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"Tablero consultarTablero();",
"private String getConsulta(int indice) {\r\n\t\tString sql = \"\";\r\n\t\tStringBuffer variables = new StringBuffer();\r\n\t\tinParams = ((TxParams)todo.get(indice)).getParams().entrada;\r\n\t\toutParams = ((TxParams)todo.get(indice)).getParams().salida;\r\n\t\tif ((inParams == null || inParams.size() == 0) && (outParams == null || outParams.size() == 0))\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"}\";\r\n\t\telse {\r\n\t\t\t//Por cada parametro de entrada corresponde un ?\r\n\t\t\t//Ojo que tambien hay que considerar los de salida si es necesario\r\n\t\t\t//pero no esta cubierto en esta primera etapa\r\n\t\t\tif (inParams != null) {\r\n\t\t\t\tfor (int i = 0; i < inParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tif (outParams != null) {\r\n\t\t\t\tfor (int i = 0; i < outParams.size(); i++)\r\n\t\t\t\t\tvariables.append(\"?,\");\r\n\t\t\t}\r\n\t\t\tString listaVars = variables.toString();\r\n\t\t\tlistaVars = listaVars.substring(0, listaVars.length() - 1);\r\n\t\t\tsql = \"{call \" + consultas[indice] + \"(\" + listaVars + \")}\";\r\n\t\t}\r\n\t\treturn sql;\r\n\t}",
"public ResultSet hacerConsulta(String query) throws SQLException{\n Statement st = conexion.createStatement();//para poder hacer la consulta a la base necesitamos un objeto de la clase Statement \n ResultSet rs = st.executeQuery(query); //el objeto st realiza la consulta y retorna el resultado en un objeto de la clase ResultSet\n return rs; // devolvemos la consulta al main\n }",
"public void llenarDatos() {\n String nombre = \"\";\n String descripcion = \"\";\n try {\n ResultSet resultado = buscador.getResultSet(\"select nombre, descripcion from NODO where ID = \" + IDNodoPadre + \";\");\n if (resultado.next()) {\n nombre = resultado.getObject(\"nombre\").toString();\n descripcion = resultado.getObject(\"descripcion\").toString();\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n campoNombre.setText(nombre);\n campoDescripcion.setText(descripcion);\n //Si esta asociada a categorias\n if(conCategorias)\n llenarComboCategoria();\n else{\n comboCategoria.setVisible(false);\n labelCategoria.setVisible(false);\n }\n }",
"public void onConsultarEvent() {\r\n\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent()]...\");\r\n\r\n\t\ttry {\r\n\t\t\tif (permitirBuscar) {\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(1)]...\");\r\n\t\t\t\tvisualizarColumnas();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(2)]...\");\r\n\t\t\t\tonMostrarListboxConsulta();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(3)]...\");\r\n\t\t\t\tonConsultar(idMCRZTbxCriterio.getValue(), false);\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(4)]...\");\r\n\t\t\t} else {\r\n\t\t\t\tNotificaciones.mostrarNotificacionAlerta(tituloMensajeExtra,\r\n\t\t\t\t\t\tmensajeExtra, 7000);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.info(\"Eroor.......................\"+e);\r\n\t\t}\r\n\t}",
"public static void ConsultarReq(String codCurso) {\n try {\n DefaultTableModel model = (DefaultTableModel) Vistas.ConsultaCursoReq.tblConsultaCurso.getModel();\n model.setRowCount(0);\n String consulta = \"Select distinct curreq.codigoCursoReq AS 'Requerimiento', Curso.nombreCurso AS 'Nombre curso'\\n\"\n + \"from Curso cur\\n\"\n + \"inner join Curso_Requisito curreq\\n\"\n + \"ON (Cur.codigoCurso= curreq.codigoCurso)\\n\"\n + \"join Curso \\n\"\n + \"ON (Curso.codigoCurso = curreq.codigoCursoReq)\"\n + \"WHERE cur.codigoCurso ='\" + codCurso + \"' \";\n ResultSet res = Modelo.ConexionSQL.consulta(consulta);\n while (res.next()) {\n Vector v = new Vector();\n v.add(res.getString(1));\n v.add(res.getString(2));\n model.addRow(v);\n Vistas.ConsultaCursoReq.tblConsultaCurso.setModel(model);\n }\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage(), \"Error conexion\", JOptionPane.ERROR_MESSAGE);\n }\n\n }",
"public ConsultaPNporproducto() {\n initComponents();\n ListarPro();\n }",
"@Override\r\n public VehiculoModel consultarVehiculo(String placa) {\n Connection conn = null;\r\n VehiculoModel vehiculo = null; //defino un objeto de vehiculo como nulo\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"Select * from vehiculo where vehPlaca=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql); //se prepara para la query\r\n statement.setString(1, placa);\r\n ResultSet result = statement.executeQuery(sql);\r\n while(result.next()){\r\n vehiculo = new VehiculoModel(result.getString(1), result.getString(2), result.getString(3), \r\n result.getInt(4), result.getInt(5), result.getString(6), result.getInt(7));\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Codigo : \" + ex.getErrorCode() + \"\\nError: \" + ex.getMessage());\r\n }\r\n \r\n return vehiculo;\r\n }",
"private void pesquisar_cliente() {\n String sql = \"select id, empresa, cnpj, endereco, telefone, email from empresa where empresa like ?\";\n try {\n pst = conexao.prepareStatement(sql);\n //passando o conteudo para a caixa de pesquisa para o ?\n // atenção ao ? q é a continuacao da string SQL\n pst.setString(1, txtEmpPesquisar.getText() + \"%\");\n rs = pst.executeQuery();\n // a linha abaixo usa a biblioteca rs2xml.jar p preencher a TABELA\n tblEmpresas.setModel(DbUtils.resultSetToTableModel(rs));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }",
"public void cargarPantalla() throws Exception {\n Long oidCabeceraMF = (Long)conectorParametroSesion(\"oidCabeceraMF\");\n\t\tthis.pagina(\"contenido_matriz_facturacion_consultar\");\n\n DTOOID dto = new DTOOID();\n dto.setOid(oidCabeceraMF);\n dto.setOidPais(UtilidadesSession.getPais(this));\n dto.setOidIdioma(UtilidadesSession.getIdioma(this));\n MareBusinessID id = new MareBusinessID(\"PRECargarPantallaConsultarMF\"); \n Vector parametros = new Vector();\n \t\tparametros.add(dto);\n parametros.add(id);\n \t\tDruidaConector conector = conectar(\"ConectorCargarPantallaConsultarMF\", parametros);\n if (oidCabeceraMF!=null)\n asignarAtributo(\"VAR\",\"varOidCabeceraMF\",\"valor\",oidCabeceraMF.toString());\n\t\t asignar(\"COMBO\", \"cbTiposOferta\", conector, \"dtoSalida.resultado_ROWSET\");\n\t\t///* [1]\n\n\n\n\t\ttraza(\" >>>>cargarEstrategia \");\n\t\t//this.pagina(\"contenido_catalogo_seleccion\"); \n\t\t \n\t\tComposerViewElementList cv = crearParametrosEntrada();\n\t\tConectorComposerView conectorV = new ConectorComposerView(cv, this.getRequest());\n\t\tconectorV.ejecucion();\n\t\ttraza(\" >>>Se ejecuto el conector \");\n\t\tDruidaConector resultados = conectorV.getConector();\n\t\tasignar(\"COMBO\", \"cbEstrategia\", resultados, \"PRECargarEstrategias\");\n\t\ttraza(\" >>>Se asignaron los valores \");\n\t\t// */ [1]\n\t\t\n\n }",
"public void Consultar(String query) {\n try {\n conectionSql();\n preparedStatement = conection.prepareStatement(query);\n } catch (Exception e) {\n// MessageEmergent(\"Fail Consultar(): \"+e.getMessage());\n }\n }",
"public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\n\t\t\tgetServiceLocator().getHisc_urgencia_odontologicoService()\n\t\t\t\t\t.setLimit(\"limit 25 offset 0\");\n\n\t\t\tList<Hisc_urgencia_odontologico> lista_datos = getServiceLocator()\n\t\t\t\t\t.getHisc_urgencia_odontologicoService().listar(parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Hisc_urgencia_odontologico hisc_urgencia_odontologico : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\thisc_urgencia_odontologico, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}",
"public void buscarDatos()throws Exception{\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue().toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\t\t\t\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\"limit 25 offset 0\");\n\t\t\t\n\t\t\tList<Ficha_epidemiologia_n13> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n13.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\t\t\t\n\t\t\tfor (Ficha_epidemiologia_n13 ficha_epidemiologia_n13 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(ficha_epidemiologia_n13, this));\n\t\t\t}\n\t\t\t\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\t\t\t\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}",
"private void buscar() {\n try { \n conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/sistema_gmg\", \"root\", \"1405\");\n\n st = conexion.createStatement();\n \n rs = st.executeQuery(\"select * from ciclos where ciclo like '%\" + this.jtf_buscar.getText() + \"%'\");\n\n jtf_id_ciclo.setText(null);\n jtf_ciclo.setText(null);\n jtf_finicio.setText(null);\n jtf_ftermino.setText(null);\n \n jt_ciclos.setModel(DbUtils.resultSetToTableModel(rs));\n \n jb_cancelar.setEnabled(true); \n rs = st.executeQuery(\"select *from ciclos\");\n } catch (SQLException ex) {\n Logger.getLogger(JF_Alumnos.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"public void buscarController() {\n\t\tSystem.out.println(\"\\n*** Consultando Registros\\nCampo de Consulta Pesquisa: \"+selectPesquisa);\n\t\tif (selectPesquisa.equals(null) || selectPesquisa.equals(\"\")){\t\t\t\n\t\t\t\n\t\t\tatualizarTela(); \t\t\t\n\t\t}\n\t\t\n\t\tif (selectPesquisa.equals(\"nome\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\n\t\t\telse{\n\t\t\tSystem.out.println(\"\\n*** Buscando por Nome\\n\");\n\t\t\tString nome = campoPesquisa; // Inserindo o valor que vai passar como parametro para os metodos\n\t\t\tlistaPaciente = pacienteService.buscarPorNome(nome);\t\n\t\t\t}\n\t\t} //FECHANDO O IF SELECTPESQUISA(NOME)\n\t\t\n\t\tif (selectPesquisa.equals(\"idPaciente\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\t\t\n\t\t\t\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\\n*** Buscando por ID\\n\");\n\t\t\t\ttry{ // Tratamento de Erro Caso o usuario Colocar Letras no campo\n\t\t\t\t\tSystem.out.println(\"** ID PACIENTE: \"+campoPesquisa);\n\t\t\t\t\tlong idPaciente = Long.parseLong(campoPesquisa); \n\t\t\t\t\tlistaPaciente = pacienteService.buscarPorId(idPaciente);\t\t\t\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\tSystem.err.println(\"\\n ** ID invalido\\n\"+e);\t\t\t\t\t\n\t\t\t\t\tlistaPaciente = null; // Lista vai ser vazia pois o ID foi invalido\n\t\t\t\t}\t\t\n\t\t\t} // FECHANDO O ELSE\n\t\t} //FECHANDO O IF SELECTPESQUISA(IDPROPRIETARIO)\n\t\t\n\t\tif (selectPesquisa.equals(\"cpf\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\t\t\n\t\t\telse{\n\t\t\tSystem.out.println(\"\\n*** Buscando por CPF\\n\");\t\t\t\n\t\t\tString cpf = campoPesquisa; // Inserindo o valor que vai passar como parametro para os metodos\n\t\t\tlistaPaciente = pacienteService.buscarPorCpf(cpf);\t\n\t\t\t}\n\t\t\n\t\t} // Fechando IF SELECTPESQUISA(CPF)\n\t\t\n\t\n\t}",
"public void buscarDatos() throws Exception {\n\t\ttry {\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\n\t\t\t\t\t.toString();\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\n\n\t\t\tMap<String, Object> parameters = new HashMap<String, Object>();\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\n\n\t\t\tif (parameter.equalsIgnoreCase(\"fecha_inicial\")) {\n\t\t\t\tparameters.put(\"fecha_string\", value);\n\t\t\t} else {\n\t\t\t\tparameters.put(\"parameter\", parameter);\n\t\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\n\t\t\t}\n\t\t\tif (admision != null) {\n\t\t\t\tparameters.put(\"identificacion\",\n\t\t\t\t\t\tadmision.getNro_identificacion());\n\t\t\t}\n\n\t\t\tgetServiceLocator().getFicha_epidemiologia_nnService().setLimit(\n\t\t\t\t\t\"limit 25 offset 0\");\n\n\t\t\tList<Ficha_epidemiologia_n3> lista_datos = getServiceLocator()\n\t\t\t\t\t.getFicha_epidemiologia_nnService().listar(\n\t\t\t\t\t\t\tFicha_epidemiologia_n3.class, parameters);\n\t\t\trowsResultado.getChildren().clear();\n\n\t\t\tfor (Ficha_epidemiologia_n3 ficha_epidemiologia_n3 : lista_datos) {\n\t\t\t\trowsResultado.appendChild(crearFilas(\n\t\t\t\t\t\tficha_epidemiologia_n3, this));\n\t\t\t}\n\n\t\t\tgridResultado.setVisible(true);\n\t\t\tgridResultado.setMold(\"paging\");\n\t\t\tgridResultado.setPageSize(20);\n\n\t\t\tgridResultado.applyProperties();\n\t\t\tgridResultado.invalidate();\n\n\t\t} catch (Exception e) {\n\t\t\tMensajesUtil.mensajeError(e, \"\", this);\n\t\t}\n\t}",
"public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_partoService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_parto> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_partoService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_parto his_parto : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_parto, this));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}",
"public void buscarEntidad(){\r\n\t\tlistaEstructuraDetalle.clear();\r\n\t\tPersona persona = null;\r\n\t\tList<EstructuraDetalle> lstEstructuraDetalle = null;\r\n\t\ttry {\r\n\t\t\tstrFiltroTextoPersona = strFiltroTextoPersona.trim();\r\n\t\t\tif(intTipoPersonaC.equals(Constante.PARAM_T_TIPOPERSONA_JURIDICA)){\r\n\t\t\t\tif (intPersonaRolC.equals(Constante.PARAM_T_TIPOROL_ENTIDAD)) {\r\n\t\t\t\t\tlstEstructuraDetalle = estructuraFacade.getListaEstructuraDetalleIngresos(SESION_IDSUCURSAL,SESION_IDSUBSUCURSAL);\r\n\t\t\t\t\tif (lstEstructuraDetalle!=null && !lstEstructuraDetalle.isEmpty()) {\r\n\t\t\t\t\t\tfor (EstructuraDetalle estructuraDetalle : lstEstructuraDetalle) {\r\n\t\t\t\t\t\t\tpersona = personaFacade.getPersonaPorPK(estructuraDetalle.getEstructura().getJuridica().getIntIdPersona());\r\n\t\t\t\t\t\t\tif (persona.getStrRuc().trim().equals(\"strFiltroTextoPersona\")) {\r\n\t\t\t\t\t\t\t\testructuraDetalle.getEstructura().getJuridica().setPersona(persona);\r\n\t\t\t\t\t\t\t\tlistaEstructuraDetalle.add(estructuraDetalle);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t}\r\n\t}",
"private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }",
"private void consultar(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultar\n vaciarTabla();\n if (materiaSeleccionada && gradoSeleccionado && grupoSeleccionado) {\n vaciarTabla();\n ControlEvaluacion evaluacion = new ControlEvaluacion();\n try {\n// ResultSet resultado = evaluacion.consultarIdEvaluacion(cbox3Evaluacion.getSelectedItem().toString());\n// int idMateria = 0;\n// while (resultado.next()) {\n// idMateria = Integer.parseInt(resultado.getObject(1).toString());\n// }\n\n ControlCalificaciones calificacion = new ControlCalificaciones();\n ResultSet resultadoCalificaciones = calificacion.consultar(cbox3Evaluacion.getSelectedItem().toString(), Integer.parseInt(cbox2Grado.getSelectedItem().toString()), cbox4Grupo.getSelectedItem().toString());\n llenarTabla(resultadoCalificaciones);\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(InterfazConsultarCalificaciones.class.getName()).log(Level.SEVERE, null, ex);\n } catch (NullPointerException ex) {\n System.out.println(\"no hay evaluación que seleccionar\");\n }\n\n } else {\n JOptionPane.showMessageDialog(rootPane, \"SELECCIONE \\nMateria \\nGrado \\nGrupo \\nEvaluacion\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"void Consulta(String consulta){\n if(numUsuario2.getText().equals(\"\") || numUsuario2.getText().length() < 3){\n JOptionPane.showMessageDialog(null,\"Ingresa un Núm. de usuario\");\n numUsuario2.requestFocus();\n }else{//si ya hay numero de usuario\n Double ant = Double.parseDouble(jLabelLecturaAnterior.getText());\n Double act = Double.parseDouble(jTextLectura.getText());\n \n if(reinicio.isSelected()!=false){ \n //si ha seleccionado reinciar registro\n ant = 0.0; //poner lectura anterior = 0\n }\n if(act < ant){\n JOptionPane.showMessageDialog(null,\"LECTURA INVALIDA. \\n La lectura actual es menor a la anterior:\"\n + \"\\n\" + jTextLectura.getText() + \" < \" + jLabelLecturaAnterior.getText());\n jTextLectura.requestFocus();\n }else{\n int seleccion;\n if(consulta.equals(\"guardar\")){\n seleccion = JOptionPane.showConfirmDialog(null, \"¿Guardar cambios?\", \"Confirmar cambios\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n }else{\n seleccion = JOptionPane.showConfirmDialog(null, \"¿Actualizar cambios?\", \"Confirmar cambios\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); \n }\n \n if(seleccion == 0){//Si la respuesta fue SÍ\n\n consumoLectura = act - ant;\n try { \n conn = conecionBD.conexion();\n consumoDAOImpl daoConsumo = new consumoDAOImpl(conn);\n consumo c = new consumo();\n\n String numUser = numUsuario2.getText(); \n\n lecturaAct = Double.valueOf(jTextLectura.getText());\n Double recargo = Double.valueOf(jTextRecargo1.getText());\n Double cooperacion = Double.valueOf(jTextCooperacion1.getText());\n Double bonificacion = Double.valueOf(jTextBonificaciones1.getText());\n Double sanciones = Double.valueOf(jTextSanciones1.getText());\n Double varios = Double.valueOf(jTextVarios1.getText());\n String fecha = null;\n String notas = jTextAreaMotivo1.getText();\n String aviso = \"Sin aviso\";\n int status = 0;\n \n if(estadoUser == 3 || estadoUser == 4){//si usuario no paga status =1 o es pago anual\n status = 1;\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd\");\n String fechaformateada = formato.format(new Date());\n fecha = fechaformateada;\n }\n if(consumoLectura > 10){\n importe = consumoLectura*precio;\n }else{\n importe = 0.0;\n cuota = 40.0;\n }\n Double total = importe+cuota+recargo+cooperacion+bonificacion+sanciones+varios;\n\n c.setNumUsuario(numUser);\n c.setPeriodo(periodo);\n c.setAnio(anio);\n c.setLecturaActual(lecturaAct);\n c.setConsumoMedidor(consumoLectura);\n c.setPrecio(precio);\n c.setImporteConsumo(importe);\n c.setCoutaFija(cuota);\n c.setRecargos(recargo);\n c.setCooperacion(cooperacion);\n c.setBonificaciones(bonificacion);\n c.setSanciones(sanciones);\n c.setVarios(varios);\n c.setTotalPagar(total);\n c.setFechaPAgo(fecha);\n c.setNotas(notas);\n c.setAviso(aviso);\n\n c.setStatus(status);\n\n if(consulta.equals(\"guardar\")){ \n daoConsumo.insertar(c);\n }else{\n daoConsumo.actualizar(c);\n }\n\n numUsuario2.setText(\"\");\n numUsuario2.requestFocus();\n limpiarCampos();\n } catch (DAOException ex) {\n JOptionPane.showMessageDialog(null,\"Este registro ya EXISTE\");\n }\n }\n }\n } \n }",
"public void PagarConsulta() {\n\t\tSystem.out.println(\"el patronato es gratiuto y no necesita pagar \");\r\n\t}",
"@Override\r\n public List<QuestaoDiscursiva> consultarTodosQuestaoDiscursiva()\r\n throws Exception {\n return rnQuestaoDiscursiva.consultarTodos();\r\n }",
"public ConsultaCompradores() {\n initComponents();\n \n \n }",
"public void find() {\n\t\tnome = editTextNome.getText().toString();\n\t\tsexo = \"\" + Sexo.valueOf(spinnerSexo.getSelectedItem().toString()).ordinal();\n\t\tdataNascimento = DateUtil.fromDate(DateUtil.toDate(editTextDataNascimento.getText().toString(), \"\"), \"\");\n\n \tIntent intent = new Intent(this, ClienteListActivity.class);\n\t\tintent.putExtra(\"TYPE_LIST_VIEW\", TypeListView.RESULT);\n\n \tif(checkBoxFindnome.isChecked()) {\n \t\tintent.putExtra(\"nome\", nome);\n \t}\n \tif(checkBoxFindsexo.isChecked()) {\n \t\tintent.putExtra(\"sexo\", sexo);\n \t}\n \tif(checkBoxFinddataNascimento.isChecked()) {\n \t\tintent.putExtra(\"dataNascimento\", dataNascimento);\n \t}\n\n \tstartActivity(intent);\n\t}",
"private void listar(HttpServletRequest request, HttpServletResponse response) throws SQLException {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\t//pasamos un atributo en la redireccion con la lista que devuelve el metodo listarHabitaciones() del modelo\n\t\t\trequest.setAttribute(\"listaClientes\", modelo.listarClientes());//tipo (atributo,valor)\n\t\t\t\t\n\t\t\t//hacemos la redireccion a la vista en el servidor, NO en el cliente. Para no perder la lista que se pasa como atributo\n\t\t\trequest.getRequestDispatcher(\"/clientes/listaClientes.jsp\").forward(request, response);\n\t\t\t\t\n\t\t} catch (ServletException | IOException e) {\n\t\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t}\n\t}",
"private void advanceSearch(StringBuilder consult,\r\n\t\t\tList<SelectItem> parameters, ResourceBundle bundle,\r\n\t\t\tStringBuilder unionMessagesSearch) {\r\n\t\tResourceBundle bundleOrg = ControladorContexto\r\n\t\t\t\t.getBundle(\"messageOrganizations\");\r\n\t\tboolean messageAdd = false;\r\n\t\tString comaEspacio = \", \";\r\n\r\n\t\tconsult.append(\"WHERE ppe.person.id=:idPerson \");\r\n\t\tSelectItem itemPer = new SelectItem(person.getId(), \"idPerson\");\r\n\t\tparameters.add(itemPer);\r\n\r\n\t\tif (Constantes.NOT.equals(vigencia)) {\r\n\t\t\tconsult.append(\"AND (ppe.dateEndValidity IS NOT NULL \");\r\n\t\t\tconsult.append(\"AND ppe.dateEndValidity <= :actualDate) \");\r\n\t\t} else if (Constantes.SI.equals(vigencia)) {\r\n\t\t\tconsult.append(\"AND (ppe.dateEndValidity IS NULL \");\r\n\t\t\tconsult.append(\"OR ppe.dateEndValidity > :actualDate) \");\r\n\t\t}\r\n\t\tSelectItem itemVig = new SelectItem(new Date(), \"actualDate\");\r\n\t\tparameters.add(itemVig);\r\n\r\n\t\tif (idSearchBranchOffice != 0) {\r\n\t\t\tSelectItem item = new SelectItem(idSearchBranchOffice,\r\n\t\t\t\t\t\"idSearchBranchOffice\");\r\n\t\t\tconsult.append(\"AND ppe.sucursal.id=:idSearchBranchOffice \");\r\n\t\t\tparameters.add(item);\r\n\t\t\tString branchOfficeName = (String) ValidacionesAction.getLabel(\r\n\t\t\t\t\titemsBranchOffices, idSearchBranchOffice);\r\n\t\t\tunionMessagesSearch.append(bundleOrg.getString(\"branch_label\")\r\n\t\t\t\t\t+ \": \" + '\"' + branchOfficeName + '\"');\r\n\t\t\tmessageAdd = true;\r\n\t\t}\r\n\t\tif (idFarmSearch != 0) {\r\n\t\t\tSelectItem item = new SelectItem(idFarmSearch, \"idFarm\");\r\n\t\t\tconsult.append(\"AND ppe.farm.idFarm=:idFarm \");\r\n\t\t\tparameters.add(item);\r\n\t\t\tString farmName = (String) ValidacionesAction.getLabel(itemsFarms,\r\n\t\t\t\t\tidFarmSearch);\r\n\t\t\tunionMessagesSearch.append((messageAdd ? comaEspacio : \"\")\r\n\t\t\t\t\t+ bundleOrg.getString(\"farm_label\") + \": \" + '\"' + farmName\r\n\t\t\t\t\t+ '\"');\r\n\t\t\tmessageAdd = true;\r\n\t\t}\r\n\t\tif (this.searchCompanyManage != null\r\n\t\t\t\t&& !\"\".equals(this.searchCompanyManage)) {\r\n\t\t\tSelectItem item = new SelectItem(\"%\" + searchCompanyManage + \"%\",\r\n\t\t\t\t\t\"keyword\");\r\n\t\t\tconsult.append(\"AND UPPER(ppe.business.name) LIKE UPPER(:keyword) \");\r\n\t\t\tparameters.add(item);\r\n\t\t\tunionMessagesSearch.append((messageAdd ? comaEspacio : \"\")\r\n\t\t\t\t\t+ bundle.getString(\"label_name\") + \": \" + '\"'\r\n\t\t\t\t\t+ this.searchCompanyManage + '\"');\r\n\t\t}\r\n\t}",
"public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public void buscarDatos() throws Exception {\r\n\t\ttry {\r\n\t\t\tString codigo_empresa = empresa.getCodigo_empresa();\r\n\t\t\tString codigo_sucursal = sucursal.getCodigo_sucursal();\r\n\t\t\tString parameter = lbxParameter.getSelectedItem().getValue()\r\n\t\t\t\t\t.toString();\r\n\t\t\tString value = tbxValue.getValue().toUpperCase().trim();\r\n\r\n\t\t\tMap<String, Object> parameters = new HashMap();\r\n\t\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\t\tparameters.put(\"parameter\", parameter);\r\n\t\t\tparameters.put(\"value\", \"%\" + value + \"%\");\r\n\r\n\t\t\tgetServiceLocator().getHis_atencion_embarazadaService().setLimit(\r\n\t\t\t\t\t\"limit 25 offset 0\");\r\n\r\n\t\t\tList<His_atencion_embarazada> lista_datos = getServiceLocator()\r\n\t\t\t\t\t.getHis_atencion_embarazadaService().listar(parameters);\r\n\t\t\trowsResultado.getChildren().clear();\r\n\r\n\t\t\tfor (His_atencion_embarazada his_atencion_embarazada : lista_datos) {\r\n\t\t\t\trowsResultado.appendChild(crearFilas(his_atencion_embarazada,\r\n\t\t\t\t\t\tthis));\r\n\t\t\t}\r\n\r\n\t\t\tgridResultado.setVisible(true);\r\n\t\t\tgridResultado.setMold(\"paging\");\r\n\t\t\tgridResultado.setPageSize(20);\r\n\r\n\t\t\tgridResultado.applyProperties();\r\n\t\t\tgridResultado.invalidate();\r\n\t\t\tgridResultado.setVisible(true);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t\tMessagebox.show(e.getMessage(), \"Mensaje de Error !!\",\r\n\t\t\t\t\tMessagebox.OK, Messagebox.ERROR);\r\n\t\t}\r\n\t}",
"public DTOConsultaCliente consultarCliente(DTOOID oid) throws MareException {\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Entrada\");\n\n Boolean bUsaGEOREFERENCIADOR = Boolean.FALSE;\n MONMantenimientoSEG mms;\n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n RecordSet resultado = new RecordSet();\n StringBuffer query = new StringBuffer();\n DTOConsultaCliente dtos = new DTOConsultaCliente();\n\n try {\n query.append(\" select TICL_OID_TIPO_CLIE, SBTI_OID_SUBT_CLIE, I1.VAL_I18N DESC_TIPO_CLIENTE, \");\n query.append(\" I2.VAL_I18N DESC_SUB_TIPO_CLIENTE\");\n query.append(\" from MAE_CLIEN_TIPO_SUBTI T, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = SBTI_OID_SUBT_CLIE \");\n query.append(\" and T.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" ORDER BY DESC_TIPO_CLIENTE ASC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTiposSubtipos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" select TDOC_OID_TIPO_DOCU, NUM_DOCU_IDEN, VAL_IDEN_DOCU_PRIN, VAL_IDEN_PERS_EMPR, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_DOCUM from MAE_CLIEN_IDENT I, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_DOCUM' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TDOC_OID_TIPO_DOCU \");\n query.append(\" and I.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setIdentificaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n // Se agrega campo \"cod_clie\" a la query.\n query.append(\" SELECT val_ape1, val_ape2, val_apel_casa, val_nom1, val_nom2, val_trat, \");\n query.append(\" cod_sexo, fec_ingr, fopa_oid_form_pago, i1.val_i18n desc_forma_pago, \");\n query.append(\" cod_clie \");\n query.append(\" FROM mae_clien m, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.val_oid(+) = fopa_oid_form_pago \");\n query.append(\" AND i1.attr_enti(+) = 'BEL_FORMA_PAGO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma());\n query.append(\" AND m.oid_clie = \" + oid.getOid()); \n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n dtos.setApellido1((String) resultado.getValueAt(0, 0));\n dtos.setApellido2((String) resultado.getValueAt(0, 1));\n dtos.setApellidoCasada((String) resultado.getValueAt(0, 2));\n dtos.setNombre1((String) resultado.getValueAt(0, 3));\n dtos.setNombre2((String) resultado.getValueAt(0, 4));\n\n String tratamiento = (String) resultado.getValueAt(0, 5);\n\n if ((tratamiento != null) && !(tratamiento.equals(\"\"))) {\n dtos.setTratamiento(new Byte(tratamiento));\n }\n\n String sexo = (String) resultado.getValueAt(0, 6);\n\n if ((sexo != null) && !(sexo.equals(\"\"))) {\n dtos.setSexo(new Character(sexo.toCharArray()[0]));\n }\n\n dtos.setFechaIngreso((Date) resultado.getValueAt(0, 7));\n dtos.setFormaPago((String) resultado.getValueAt(0, 9));\n \n // Agregado by ssantana, inc. BELC300021214\n // Se agrega asignacion de parametro CodigoCliente\n dtos.setCodigoCliente((String) resultado.getValueAt(0, 10) );\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT FEC_NACI, COD_EMPL, SNON_OID_NACI, VAL_EDAD, ESCV_OID_ESTA_CIVI, VAL_OCUP, \");\n query.append(\" VAL_PROF, VAL_CENT_TRAB, VAL_CARG_DESE, VAL_CENT_ESTU, NUM_HIJO, NUM_PERS_DEPE, \");\n query.append(\" NSEP_OID_NSEP, TCLV_OID_CICL_VIDA, IND_CORR, IMP_INGR_FAMI, I1.VAL_I18N DESC_NACION, \");\n query.append(\" I2.VAL_I18N DESC_EDO_CIVIL, I3.VAL_I18N DESC_NESP, I4.VAL_I18N DESC_CICLO_VIDA, \");\n query.append(\" NIED_OID_NIVE_ESTU, i5.VAL_I18N desc_nivel_estu, IND_ACTI \");\n query.append(\" FROM MAE_CLIEN_DATOS_ADICI , V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, v_gen_i18n_sicc i5 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_NACIO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = SNON_OID_NACI \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_ESTAD_CIVIL' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = ESCV_OID_ESTA_CIVI \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_TIPO_NIVEL_SOCEC_PERSO' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = NSEP_OID_NSEP \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_CICLO_VIDA' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = TCLV_OID_CICL_VIDA \");\n query.append(\" and i5.ATTR_ENTI(+) = 'MAE_NIVEL_ESTUD' \");\n query.append(\" AND i5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i5.VAL_OID(+) = NIED_OID_NIVE_ESTU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n UtilidadesLog.debug(\"resultado: \" + resultado);\n\n dtos.setFechaNacimiento((Date) resultado.getValueAt(0, 0));\n dtos.setCodigoEmpleado((String) resultado.getValueAt(0, 1));\n /*cleal incidencia 21311 fecha 28/10/2005*/\n // Modificado por ssantana, 8/11/2005\n // dtos.setNacionalidad((resultado.getValueAt(0, 2))!=null ? new String(((BigDecimal) resultado.getValueAt(0, 2)).toString()) : \"\");\n dtos.setNacionalidad((resultado.getValueAt(0, 16)) != null ? (String) resultado.getValueAt(0, 16) : \"\"); \n //(resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null\n\n // dtos.setEdad((String)resultado.getValueAt(0, 3));\n dtos.setEdad((resultado.getValueAt(0, 3) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 3)).toString()) : \"\");\n dtos.setEstadoCivil((String) resultado.getValueAt(0, 17));\n dtos.setOcupacion((String) resultado.getValueAt(0, 5));\n dtos.setProfesion((String) resultado.getValueAt(0, 6));\n dtos.setCentroTrabajo((String) resultado.getValueAt(0, 7));\n dtos.setCargo((String) resultado.getValueAt(0, 8));\n dtos.setCentro((String) resultado.getValueAt(0, 9));\n\n //dtos.setNumeroHijos((BigDecimal)resultado.getValueAt(0, 10));\n /* dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 10)).toString())\n : \"0\");*/\n dtos.setNumeroHijos((resultado.getValueAt(0, 10) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 10)).toString()) : null);\n\n //dtos.setPersonasDependientes((String)resultado.getValueAt(0, 11));\n /* dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null)\n ? new String(\n ((BigDecimal) resultado.getValueAt(0, 11)).toString())\n : \"0\");*/\n dtos.setPersonasDependientes((resultado.getValueAt(0, 11) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 11)).toString()) : null);\n\n dtos.setNSEP((String) resultado.getValueAt(0, 18));\n dtos.setCicloVidaFamiliar((String) resultado.getValueAt(0, 19));\n dtos.setNivelEstudios((String) resultado.getValueAt(0, 21));\n\n //String corres = (String)resultado.getValueAt(0, 14);\n String corres = (resultado.getValueAt(0, 14) != null) ? new String(((BigDecimal) resultado.getValueAt(0, 14)).toString()) : null;\n\n //String corres = ((BigDecimal) resultado.getValueAt(0,14)).toString();\n Boolean correspondencia = null;\n\n if ((corres != null) && !(corres.equals(\"\"))) {\n if (corres.equals(\"1\")) {\n correspondencia = Boolean.TRUE;\n } else {\n correspondencia = Boolean.FALSE;\n }\n }\n\n dtos.setDeseaCorrespondencia(correspondencia);\n\n BigDecimal big = (BigDecimal) resultado.getValueAt(0, 15);\n\n if (big == null) {\n dtos.setImporteIngreso(\"\");\n } else {\n dtos.setImporteIngreso(big.toString());\n }\n \n //SICC-DMCO-MAE-GCC-006 - Cleal\n Boolean indActi = null;\n if(((BigDecimal) resultado.getValueAt(0, 22))!=null){\n\n if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==1){\n indActi = new Boolean(true);\n } else if(((BigDecimal) resultado.getValueAt(0, 22)).longValue()==0){\n indActi = new Boolean(false); \n }\n }\n dtos.setIndicadorActivo(indActi);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT I2.VAL_I18N, C.COD_CLIE, FEC_DESD, FEC_HAST, TIVC_OID_TIPO_VINC, IND_VINC_PPAL, I1.VAL_I18N DESC_TIPO_VINCU \");\n query.append(\" FROM MAE_CLIEN_VINCU, V_GEN_I18N_SICC I1, mae_tipo_vincu tv, seg_pais p, v_gen_i18n_sicc i2, mae_clien c \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_VINCU' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIVC_OID_TIPO_VINC \");\n \n /* inicio deshace modif ciglesias incidencia 24377 17/11/2006\n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n // query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n query.append(\" and CLIE_OID_CLIE_VNTE = \" + oid.getOid() + \" \");\n */\n query.append(\" and CLIE_OID_CLIE_VNDO = \" + oid.getOid() + \" \");\n /*fin deshace ciglesias 24377*/\n \n query.append(\" AND mae_clien_vincu.TIVC_OID_TIPO_VINC = tv.OID_TIPO_VINC \");\n \n // SPLATAS - 26/10/2006 - Error al obtener clientes vinculados \n query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNTE = c.OID_CLIE \"); //eiraola 30/11/2006 Incidencia DBLG7...165\n \n //query.append(\" AND mae_clien_vincu.CLIE_OID_CLIE_VNDO = c.OID_CLIE \");\n \n query.append(\" AND tv.PAIS_OID_PAIS = p.OID_PAIS \");\n query.append(\" AND i2.VAL_OID = p.OID_PAIS \");\n query.append(\" AND i2.ATTR_ENTI = 'SEG_PAIS' \");\n query.append(\" AND i2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n //UtilidadesLog.info(\"resultado Vinculo: \" + resultado.toString() );\n dtos.setVinculos(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*query.append(\" SELECT DES_CLIE_PREF, TIPF_OID_TIPO_PREF, DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.VAL_I18N descripcionTipo , a.TIPF_OID_TIPO_PREF, a.DES_CLIE_PREF \");\n query.append(\" FROM MAE_CLIEN_PREFE a , v_gen_i18n_sicc i1 \");\n query.append(\" where a.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and i1.ATTR_ENTI = 'MAE_TIPO_PREFE' \");\n query.append(\" and i1.VAL_OID = a.TIPF_OID_TIPO_PREF \");\n query.append(\" and i1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" and i1.ATTR_NUM_ATRI = 1 \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPreferencias(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, NUM_OBSE, VAL_TEXT, DES_MARC \");\n query.append(\" FROM MAE_CLIEN_OBSER M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setObservaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT c.PAIS_OID_PAIS , c.COD_CLIE, t. TICL_OID_TIPO_CLIE, p.COD_TIPO_CONT, \");\n query.append(\" p.FEC_CONT, p.FEC_SIGU_CONT, I1.VAL_I18N DESC_PAIS, I2.VAL_I18N DESC_TIPO_CLIENTE \");\n query.append(\" FROM MAE_CLIEN_PRIME_CONTA p, MAE_CLIEN c, MAE_CLIEN_TIPO_SUBTI t, V_GEN_I18N_SICC I1, \");\n query.append(\" V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'SEG_PAIS' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = c.PAIS_OID_PAIS \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TICL_OID_TIPO_CLIE \");\n query.append(\" AND p.CTSU_CLIE_CONT = t.OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = c.OID_CLIE \");\n query.append(\" and p.CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n query.append(\" SELECT c.pais_oid_pais, c.cod_clie, t.ticl_oid_tipo_clie, p.cod_tipo_cont, \");\n query.append(\" p.fec_cont, p.fec_sigu_cont, i1.val_i18n desc_pais, \");\n query.append(\" i2.val_i18n desc_tipo_cliente, i3.val_i18n, perio.val_nomb_peri, marca.DES_MARC \");\n query.append(\" FROM mae_clien_prime_conta p, \");\n query.append(\" mae_clien c, \");\n query.append(\" mae_clien_tipo_subti t, \");\n query.append(\" seg_canal canal, \");\n query.append(\" cra_perio perio, \");\n query.append(\" seg_marca marca, \");\n query.append(\" v_gen_i18n_sicc i1, \");\n query.append(\" v_gen_i18n_sicc i2, \");\n query.append(\" v_gen_i18n_sicc i3 \");\n query.append(\" WHERE i1.attr_enti(+) = 'SEG_PAIS' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = c.pais_oid_pais \");\n query.append(\" AND i2.attr_enti(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND i2.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i2.val_oid(+) = ticl_oid_tipo_clie \");\n query.append(\" AND p.ctsu_clie_cont = t.oid_clie_tipo_subt \");\n query.append(\" AND t.clie_oid_clie = c.oid_clie \");\n query.append(\" AND p.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.perd_oid_peri = perio.oid_peri(+) \");\n query.append(\" AND p.cana_oid_cana = canal.oid_cana(+) \");\n query.append(\" AND canal.oid_cana = i3.val_oid(+) \");\n query.append(\" AND i3.attr_enti(+) = 'SEG_CANAL' \");\n query.append(\" AND i3.attr_num_atri(+) = 1 \");\n query.append(\" AND i3.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" and p.MARC_OID_MARC = marca.OID_MARC(+) \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n if (!resultado.esVacio()) {\n // by Ssantana, 29/7/04 - Se corren algunos indices en -1 al quitar\n // campo Primer Pedido Contacto. \n // 5/8//2004 - Se agregan descripciones de Marca, Canal y Periodo\n dtos.setPaisContactado((String) resultado.getValueAt(0, 6));\n dtos.setCodigoClienteContactado((String) resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String) resultado.getValueAt(0, 7));\n dtos.setTipoContacto((String) resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date) resultado.getValueAt(0, 4));\n dtos.setFechaSiguienteContacto((Date) resultado.getValueAt(0, 5));\n dtos.setMarcaContactoDesc((String) resultado.getValueAt(0, 10));\n dtos.setCanalContactoDesc((String) resultado.getValueAt(0, 8));\n dtos.setPeriodoContactoDesc((String) resultado.getValueAt(0, 9));\n\n /* dtos.setPaisContactado((String)resultado.getValueAt(0, 7));\n dtos.setCodigoClienteContactado((String)resultado.getValueAt(0, 1));\n dtos.setTipoClienteContactado((String)resultado.getValueAt(0, 8));\n dtos.setTipoContacto((String)resultado.getValueAt(0, 3));\n dtos.setFechaContacto((Date)resultado.getValueAt(0, 4));\n //dtos.setFechaPrimerPedido((Date)resultado.getValueAt(0, 5));\n dtos.setFechaSiguienteContacto((Date)resultado.getValueAt(0, 6));*/\n }\n //Cleal Mae-03\n MONMantenimientoSEGHome mmsHome = SEGEjbLocators.getMONMantenimientoSEGHome();\n mms = mmsHome.create();\n bUsaGEOREFERENCIADOR = mms.usaGeoreferenciador(oid.getOidPais());\n \n resultado = new RecordSet();\n if(Boolean.FALSE.equals(bUsaGEOREFERENCIADOR)){\n UtilidadesLog.debug(\"*** No usa GEO\");\n resultado = obtieneDireccionSinGEO(oid);\n } else{\n UtilidadesLog.debug(\"*** Usa GEO\");\n resultado = obtieneDireccionConGEO(oid);\n }//\n \n //\n /*\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT dir.TIDC_OID_TIPO_DIRE, dir.TIVI_OID_TIPO_VIA, \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" NVL(dir.VAL_NOMB_VIA,vi.NOM_VIA) AS VIA, \");\n \n query.append(\" dir.NUM_PPAL, dir.VAL_COD_POST, \");\n query.append(\" dir.VAL_OBSE, I1.VAL_I18N DESC_TIPO_DIREC, I2.VAL_I18N DESC_TIPO_VIA, ind_dire_ppal, VAL.DES_GEOG \");\n query.append(\" FROM MAE_CLIEN_DIREC dir, ZON_VIA vi, ZON_VALOR_ESTRU_GEOPO val, \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" ZON_TERRI terr, \");\n }\n //\n query.append(\" V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_DIREC' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIDC_OID_TIPO_DIRE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'SEG_TIPO_VIA' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n\n //query.append(\" and I2.VAL_OID(+) = vi.TIVI_OID_TIPO_VIA \");\n query.append(\" and I2.VAL_OID(+) = dir.tivi_oid_tipo_via \");\n query.append(\" and dir.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND dir.ZVIA_OID_VIA = vi.OID_VIA(+) \");\n //Cleal MAE-03\n if(bUsaGEOREFERENCIADOR.equals(Boolean.FALSE)){\n query.append(\" AND dir.TERR_OID_TERR = terr.OID_TERR \");\n query.append(\" AND terr.VEPO_OID_VALO_ESTR_GEOP = val.OID_VALO_ESTR_GEOP \");\n //SICC-GCC-MAE-005 - Cleal\n query.append(\" AND vi.PAIS_OID_PAIS = \"+oid.getOidPais());\n } else{\n \n query.append(\" \");\n \n }\n resultado = bs.dbService.executeStaticQuery(query.toString());\n */\n dtos.setDirecciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");*/\n query.append(\" SELECT i1.val_i18n desc_tipo_comun, val_dia_comu, val_text_comu, ind_comu_ppal, \");\n\n /* query.append(\" DECODE(to_char(FEC_HORA_DESD, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_DESD, 'HH24:MI')), \");\n query.append(\" DECODE(to_char(FEC_HORA_HAST, 'HH24:MI'), NULL, ' ', to_char(FEC_HORA_HAST, 'HH24:MI')), \");*/\n query.append(\" to_char(FEC_HORA_DESD, 'HH24:MI'), \");\n query.append(\" to_char(FEC_HORA_HAST, 'HH24:MI'), \");\n query.append(\" val_inte_comu \");\n query.append(\" FROM mae_clien_comun, v_gen_i18n_sicc i1 \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = ticm_oid_tipo_comu \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n\n /* query.append(\" SELECT TICM_OID_TIPO_COMU, VAL_DIA_COMU, VAL_TEXT_COMU, FEC_HORA_DESD, \");\n query.append(\" FEC_HORA_HAST, VAL_INTE_COMU, IND_COMU_PPAL, I1.VAL_I18N DESC_TIPO_COMUN \");\n query.append(\" FROM MAE_CLIEN_COMUN, V_GEN_I18N_SICC I1 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_COMUN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TICM_OID_TIPO_COMU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \"); */\n resultado = bs.dbService.executeStaticQuery(query.toString());\n UtilidadesLog.debug(\"----- resultado Comunicaciones: \" + resultado);\n dtos.setComunicaciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT MARC_OID_MARC, S.DES_MARC \");\n query.append(\" FROM MAE_CLIEN_MARCA M, SEG_MARCA S \");\n query.append(\" where CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and M.MARC_OID_MARC = S.OID_MARC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n\n String[] marcas = new String[resultado.getRowCount()];\n\n for (int i = 0; i < resultado.getRowCount(); i++)\n marcas[i] = (String) resultado.getValueAt(i, 1);\n\n dtos.setMarcas(marcas);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n query.append(\" SELECT TITR_OID_TIPO_TARJ, CLTA_OID_CLAS_TARJ, CBAN_OID_BANC, I1.VAL_I18N DESC_TIPO_TARJ, \");\n query.append(\" DES_CLAS_TARJ, DES_BANC \");\n query.append(\" FROM MAE_CLIEN_TARJE, V_GEN_I18N_SICC I1, MAE_CLASE_TARJE, CCC_BANCO \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_TARJE' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TITR_OID_TIPO_TARJ \");\n query.append(\" and CLTA_OID_CLAS_TARJ = OID_CLAS_TARJ \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and CBAN_OID_BANC = OID_BANC \");\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setTarjetas(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /* query.append(\" SELECT t.TICL_OID_TIPO_CLIE, t.SBTI_OID_SUBT_CLIE, c.CLAS_OID_CLAS, c.TCCL_OID_TIPO_CLASI, \");\n query.append(\n \" c.FEC_CLAS, PERD_OID_PERI, I1.VAL_I18N DESC_TIPO_CLIENTE, I2.VAL_I18N DESC_SUB_TIPO_CLIENTE, I3.VAL_I18N DESC_CLASI, I4.VAL_I18N DESC_TIPO_CLASI_CLIENTE, I5.VAL_I18N DESC_PERIODO, \");\n query.append(\" i6.VAL_I18N desc_canal, m.DES_MARC desc_marca \");\n query.append(\" FROM MAE_CLIEN_TIPO_SUBTI t, MAE_CLIEN_CLASI c, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2, \");\n query.append(\" V_GEN_I18N_SICC I3, V_GEN_I18N_SICC I4, V_GEN_I18N_SICC I5, \");\n query.append(\" cra_perio p, seg_marca m, v_gen_i18n_sicc i6 \");\n query.append(\" WHERE I1.ATTR_ENTI(+) = 'MAE_TIPO_CLIEN' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = t.TICL_OID_TIPO_CLIE \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_SUBTI_CLIEN' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = t.SBTI_OID_SUBT_CLIE \");\n query.append(\" and I3.ATTR_ENTI(+) = 'MAE_CLASI' \");\n query.append(\" and I3.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I3.VAL_OID(+) = c.CLAS_OID_CLAS \");\n query.append(\" and I4.ATTR_ENTI(+) = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" and I4.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I4.VAL_OID(+) = c.TCCL_OID_TIPO_CLASI \");\n query.append(\" and I5.ATTR_ENTI(+) = 'CRA_PERIO' \");\n query.append(\" and I5.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I5.VAL_OID(+) = PERD_OID_PERI \");\n query.append(\" and t.OID_CLIE_TIPO_SUBT = c.CTSU_OID_CLIE_TIPO_SUBT \");\n query.append(\" AND t.CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" AND perd_oid_peri = p.OID_PERI \");\n query.append(\" AND i6.VAL_OID(+) = p.CANA_OID_CANA \");\n query.append(\" AND i6.ATTR_ENTI(+) = 'SEG_CANAL' \");\n query.append(\" AND i6.IDIO_OID_IDIO = \" + oid.getOidIdioma() + \" \");\n query.append(\" AND i6.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); */\n query.append(\" SELECT m.DES_MARC, v1.VAL_I18N, v2.VAL_I18N, \");\n query.append(\" v3.VAL_I18N, v4.VAL_I18N, v5.VAL_I18N \");\n query.append(\" FROM mae_clien_tipo_subti t, mae_clien_clasi c, cra_perio p, seg_marca m, v_gen_i18n_sicc v1, \");\n query.append(\" v_gen_i18n_sicc v2, v_gen_i18n_sicc v3, v_gen_i18n_sicc v4, v_gen_i18n_sicc v5 \");\n query.append(\" WHERE t.oid_clie_tipo_subt = c.ctsu_oid_clie_tipo_subt \");\n query.append(\" AND c.perd_oid_peri = p.oid_peri \");\n query.append(\" AND t.clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND p.MARC_OID_MARC = m.OID_MARC \"); // MARCA\n query.append(\" AND p.CANA_OID_CANA = v1.VAL_OID \"); // CANAL\n query.append(\" AND v1.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v1.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND v1.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.TICL_OID_TIPO_CLIE = v2.VAL_OID \"); // TIPO CLIENTE\n query.append(\" AND v2.ATTR_ENTI = 'MAE_TIPO_CLIEN' \");\n query.append(\" AND v2.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v2.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND t.SBTI_OID_SUBT_CLIE = v3.VAL_OID \"); // SUBTIPO CLIENTE\n query.append(\" AND v3.ATTR_ENTI = 'MAE_SUBTI_CLIEN' \");\n query.append(\" AND v3.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v3.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.TCCL_OID_TIPO_CLASI = v4.VAL_OID \"); // TIPO CLASIFICACION\n query.append(\" AND v4.ATTR_ENTI = 'MAE_TIPO_CLASI_CLIEN' \");\n query.append(\" AND v4.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v4.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" AND c.CLAS_OID_CLAS = v5.VAL_OID \"); // CLASIFICACION\n query.append(\" AND v5.ATTR_ENTI = 'MAE_CLASI' \");\n query.append(\" AND v5.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND v5.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n \n // BELC300023061 - 04/07/2006\n // Si no se obtuvo ninguna clasificacion para el cliente en la consulta anterior, \n // insertar una fila en el atributo clasificaciones, con el indicador principal activo, \n // sólo con la marca y el canal\n if (!resultado.esVacio()) {\n dtos.setClasificaciones(resultado);\n } else {\n query = new StringBuffer();\n resultado = new RecordSet();\n \n query.append(\" SELECT mar.DES_MARC, \");\n query.append(\" \t\t iCa.VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N, null VAL_I18N \");\n query.append(\" FROM MAE_CLIEN_UNIDA_ADMIN uA, \");\n query.append(\" \t CRA_PERIO per, \");\n query.append(\" \t\t SEG_MARCA mar, \");\n query.append(\" \t V_GEN_I18N_SICC iCa \");\n query.append(\" WHERE uA.CLIE_OID_CLIE = \" + oid.getOid().toString());\n query.append(\" AND uA.IND_ACTI = 1 \");\n query.append(\" \t AND uA.PERD_OID_PERI_INI = per.OID_PERI \");\n query.append(\" \t AND per.MARC_OID_MARC = mar.OID_MARC \");\n query.append(\" AND per.CANA_OID_CANA = iCa.VAL_OID \");\n query.append(\" AND iCa.ATTR_NUM_ATRI = 1 \");\n query.append(\" AND iCa.ATTR_ENTI = 'SEG_CANAL' \");\n query.append(\" AND iCa.IDIO_OID_IDIO = \" + oid.getOidIdioma());\n query.append(\" ORDER BY uA.OID_CLIE_UNID_ADMI ASC \");\n \n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setClasificaciones(resultado);\n }\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n //el false se utiliza para indicar que estas filas son de problemas \n //el true indica que estas filas son de soluciones \n query.append(\" SELECT i1.VAL_I18N, DES_PROB, decode(IND_SOLU,0,'false',1,'true') IND_SOLU, I2.VAL_I18N TSOC_OID_TIPO_SOLU, DES_SOLU, VAL_NEGO_PROD \");\n query.append(\" FROM MAE_CLIEN_PROBL, V_GEN_I18N_SICC I1, V_GEN_I18N_SICC I2 \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PROBL' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TIPB_OID_TIPO_PROB \");\n query.append(\" and I2.ATTR_ENTI(+) = 'MAE_TIPO_SOLUC' \");\n query.append(\" and I2.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I2.VAL_OID(+) = TSOC_OID_TIPO_SOLU \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setProblemasSoluciones(resultado);\n\n query = new StringBuffer();\n resultado = new RecordSet();\n\n /*SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic\n FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s\n WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO'\n AND i1.idio_oid_idio(+) = 1\n AND i1.val_oid(+) = tpoid_tipo_perf_psic\n AND clie_oid_clie = 152\n AND marc_oid_marc = s.oid_marc */\n query.append(\" SELECT s.des_marc, i1.val_i18n desc_tipo_perfil_psico, cod_test, fec_psic \");\n query.append(\" FROM mae_psico, v_gen_i18n_sicc i1, seg_marca s \");\n query.append(\" WHERE i1.attr_enti(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" AND i1.idio_oid_idio(+) = \" + oid.getOidIdioma().toString());\n query.append(\" AND i1.val_oid(+) = tpoid_tipo_perf_psic \");\n query.append(\" AND clie_oid_clie = \" + oid.getOid().toString());\n query.append(\" AND marc_oid_marc = s.oid_marc \");\n\n /* query.append(\" SELECT MARC_OID_MARC, TPOID_TIPO_PERF_PSIC, COD_TEST, FEC_PSIC, \");\n query.append(\" I1.VAL_I18N DESC_TIPO_PERFIL_PSICO, S.DES_MARC \");\n query.append(\" FROM MAE_PSICO, V_GEN_I18N_SICC I1, SEG_MARCA S \");\n query.append(\" where I1.ATTR_ENTI(+) = 'MAE_TIPO_PERFI_PSICO' \");\n query.append(\" and I1.IDIO_OID_IDIO(+) = \" + oid.getOidIdioma() + \" \");\n query.append(\" and I1.VAL_OID(+) = TPOID_TIPO_PERF_PSIC \");\n query.append(\" and CLIE_OID_CLIE = \" + oid.getOid() + \" \");\n query.append(\" and MARC_OID_MARC = S.OID_MARC \");*/\n resultado = bs.dbService.executeStaticQuery(query.toString());\n dtos.setPsicografias(resultado);\n } catch (CreateException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (RemoteException re) {\n throw new MareException(re, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_LOCALIZAR_UN_COMPONENTE_EJB));\n } catch (Exception e) {\n e.printStackTrace();\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n UtilidadesLog.debug(\"DTO a retornar: \" + dtos.toString());\n UtilidadesLog.info(\" DAOMAEMaestroClientes.consultarCliente(DTOOID): Salida\");\n\n return dtos;\n }",
"public void limpiarCamposFormBusqueda() {\n\t}",
"public String buscarTrabajadoresPorParametros() {\r\n try {\r\n inicializarFiltros();\r\n listaTrabajadores = null;\r\n //listaTrabajadores = administrarGestionarTrabajadoresBO.consultarTrabajadoresPorParametro(filtros);\r\n return null;\r\n } catch (Exception e) {\r\n System.out.println(\"Error ControllerAdministrarTrabajadores buscarTrabajadoresPorParametros : \" + e.toString());\r\n return null;\r\n }\r\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"public void obtenerPosicionesSolicitud(Solicitud solicitud)\n throws MareException {\n UtilidadesLog.info(\" DAOSolicitudes.obtenerPosicionesSolicitud(Solici\"\n +\"tud solicitud):Entrada\");\n\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n //jrivas 20/7/2006 (indDevolucion) DBLG5000974 / DBLG5000981 / DBLG5001011\n //jrivas 1/8/2006 (indAnulacion) DBLG50001003\n if (!solicitud.getIndDevolucion() && !solicitud.getIndAnulacion()) {\n query.append(\" SELECT OID_SOLI_POSI, \");\n query.append(\" ESPO_OID_ESTA_POSI, \");\n //jrivas 27/04/2006 INC DBLG50000354\n //query.append(\" VAL_PREC_CATA_TOTA_LOCA_UNID, \");\n query.append(\" NUM_UNID_POR_ATEN, \");\n query.append(\" NUM_UNID_COMPR, \");\n query.append(\" VAL_PREC_CATA_UNIT_LOCA, \");\n //jrivas 27/04/2006 INC DBLG50000354\n //query.append(\" VAL_PREC_CONT_UNIT_LOCA, \");\n query.append(\" IND_CTRL_STOC, \");\n query.append(\" IND_CTRL_LIQU, \");\n query.append(\" IND_LIMI_VENT, \");\n query.append(\" NUM_UNID_DEMA_REAL, \");\n query.append(\" MAPR_OID_MARC_PROD, \");\n query.append(\" UNEG_OID_UNID_NEGO, \");\n query.append(\" NEGO_OID_NEGO, \");\n query.append(\" GENE_OID_GENE, \");\n query.append(\" SGEN_OID_SUPE_GENE, \");\n query.append(\" TOFE_OID_TIPO_OFER, \");\n query.append(\" CIVI_OID_CICLO_VIDA, \");\n query.append(\" SP.NUM_UNID_DEMA, \");\n query.append(\" PR.OID_PROD, \");\n query.append(\" VAL_PREC_FACT_UNIT_LOCA, \");\n query.append(\" VAL_PREC_NETO_UNIT_LOCA \");\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n query.append(\" ,OFDE_OID_DETA_OFER \");\n \n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" MAE_PRODU PR, \");\n query.append(\" PRE_OFERT_DETAL OD \");\n query.append(\" WHERE SP.PROD_OID_PROD = PR.OID_PROD \");\n query.append(\" AND SP.OFDE_OID_DETA_OFER = OD.OID_DETA_OFER(+) \");\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n } else {\n query.append(\" SELECT OID_SOLI_POSI, ESPO_OID_ESTA_POSI, NUM_UNID_POR_ATEN, NUM_UNID_COMPR, \");\n query.append(\" VAL_PREC_CATA_UNIT_LOCA, IND_CTRL_STOC, IND_CTRL_LIQU, IND_LIMI_VENT, \");\n query.append(\" NUM_UNID_DEMA_REAL, MAPR_OID_MARC_PROD, UNEG_OID_UNID_NEGO, \");\n query.append(\" NEGO_OID_NEGO, GENE_OID_GENE, SGEN_OID_SUPE_GENE, \");\n query.append(\" A.CIVI_OID_CICLO_VIDA, A.TOFE_OID_TIPO_OFER, SP.NUM_UNID_DEMA, \");\n query.append(\" PR.OID_PROD, VAL_PREC_FACT_UNIT_LOCA, VAL_PREC_NETO_UNIT_LOCA \");\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n query.append(\" ,OFDE_OID_DETA_OFER \");\n \n // sapaza -- PER-SiCC-2011-0279 -- 07/06/2011\n if(solicitud.isValidaReemplazo()) {\n query.append(\" ,(SELECT COUNT(1) FROM pre_matri_factu mf, PRE_MATRI_REEMP mr \");\n query.append(\" WHERE mf.OID_MATR_FACT = mr.MAFA_OID_COD_REEM \"); \n query.append(\" AND mf.ofde_oid_deta_ofer = SP.OFDE_OID_DETA_OFER) COD_REEM \");\n }\n \n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" MAE_PRODU PR, \");\n query.append(\" (SELECT DISTINCT OD.CIVI_OID_CICLO_VIDA, OD.TOFE_OID_TIPO_OFER, \");\n query.append(\" OD.PROD_OID_PROD \");\n query.append(\" FROM PRE_OFERT_DETAL OD, \");\n query.append(\" PRE_OFERT O, \");\n query.append(\" PRE_MATRI_FACTU_CABEC MFC \");\n query.append(\" WHERE OD.OFER_OID_OFER = O.OID_OFER \");\n query.append(\" AND O.MFCA_OID_CABE = MFC.OID_CABE \");\n query.append(\" AND MFC.PERD_OID_PERI = \");\n query.append(\" (SELECT DISTINCT SC3.PERD_OID_PERI \");\n query.append(\" FROM PED_SOLIC_POSIC SP, \");\n query.append(\" PED_SOLIC_CABEC SC, \");\n query.append(\" PED_SOLIC_CABEC SC2, \");\n query.append(\" PED_SOLIC_CABEC SC3 \");\n query.append(\" WHERE SC.OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = SC.OID_SOLI_CABE \");\n query.append(\" AND SC.SOCA_OID_DOCU_REFE = SC2.OID_SOLI_CABE \");\n query.append(\" AND SC3.SOCA_OID_SOLI_CABE = SC2.OID_SOLI_CABE \");\n query.append(\" AND OD.VAL_CODI_VENT = SP.VAL_CODI_VENT \");\n query.append(\" AND OD.PROD_OID_PROD = SP.PROD_OID_PROD)) A \");\n query.append(\" WHERE SP.PROD_OID_PROD = PR.OID_PROD \");\n query.append(\" AND SP.SOCA_OID_SOLI_CABE = \").append(solicitud.getOidSolicitud());\n query.append(\" AND A.PROD_OID_PROD = SP.PROD_OID_PROD \");\n }\n\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* Posiciones \" + respuesta); \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n solicitud.setPosiciones(new Posicion[0]);\n } else {\n Posicion[] posiciones = new Posicion[respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n posiciones[i] = new Posicion();\n posiciones[i].setSolicitud(solicitud);\n posiciones[i].setOidPosicion(new Long(((BigDecimal) \n respuesta.getValueAt(i, \"OID_SOLI_POSI\")).longValue()));\n\n {\n BigDecimal oidPosicion = (BigDecimal) respuesta\n .getValueAt(i, \"ESPO_OID_ESTA_POSI\");\n posiciones[i].setEstado((oidPosicion != null) ? new Long(\n oidPosicion.longValue()) : null);\n }\n\n //jrivas 27/04/2006 INC DBLG50000354\n /*{\n BigDecimal precio1 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CATA_TOTA_LOCA_UNID\");\n posiciones[i].setPrecioCatalogTotalUniDemandaReal(\n (precio1 != null) ? precio1 : new BigDecimal(0));\n }*/\n\n {\n BigDecimal unidadesPorAtender = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_POR_ATEN\");\n posiciones[i].setUnidadesPorAtender(\n (unidadesPorAtender != null) ? new Long(\n unidadesPorAtender.longValue()) : new Long(0));\n }\n\n {\n BigDecimal unidadesComprometidas = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_COMPR\");\n posiciones[i].setUnidadesComprometidas(\n (unidadesComprometidas != null) ? new Long(\n unidadesComprometidas.longValue()) : new Long(0));\n }\n\n {\n BigDecimal precio2 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CATA_UNIT_LOCA\");\n posiciones[i].setPrecioCatalogoUnitarioLocal(\n (precio2 != null) ? precio2 : new BigDecimal(0));\n }\n\n //jrivas 27/04/2006 INC DBLG50000354\n /* BigDecimal precio3 = (BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_CONT_UNIT_LOCA\");\n posiciones[i].setPrecioContableUnitarioLocal(\n (precio3 != null) ? precio3 : new BigDecimal(0));*/\n\n\n {\n BigDecimal controlStock = (BigDecimal) respuesta\n .getValueAt(i, \"IND_CTRL_STOC\");\n\n if (controlStock == null) {\n posiciones[i].setControlStock(false);\n } else {\n if (controlStock.intValue() == 1) {\n posiciones[i].setControlStock(true);\n } else {\n posiciones[i].setControlStock(false);\n }\n }\n }\n\n {\n BigDecimal controlLiquidacion = (BigDecimal) respuesta\n .getValueAt(i, \"IND_CTRL_LIQU\");\n\n if (controlLiquidacion == null) {\n posiciones[i].setControlLiquidacion(false);\n } else {\n if (controlLiquidacion.intValue() == 1) {\n posiciones[i].setControlLiquidacion(true);\n } else {\n posiciones[i].setControlLiquidacion(false);\n }\n }\n }\n\n {\n BigDecimal limiteVenta = (BigDecimal) respuesta\n .getValueAt(i, \"IND_LIMI_VENT\");\n\n if (limiteVenta == null) {\n posiciones[i].setLimiteVenta(false);\n } else {\n if (limiteVenta.intValue() == 1) {\n posiciones[i].setLimiteVenta(true);\n } else {\n posiciones[i].setLimiteVenta(false);\n }\n }\n }\n\n {\n BigDecimal unidades = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_DEMA_REAL\");\n posiciones[i].setUnidadesDemandaReal((unidades != null) \n ? new Long(unidades.longValue()) : new Long(0));\n }\n\n {\n BigDecimal oidMarcaProducto = (BigDecimal) respuesta\n .getValueAt(i, \"MAPR_OID_MARC_PROD\");\n posiciones[i].setOidMarcaProducto(\n (oidMarcaProducto != null) ? new Long(oidMarcaProducto\n .longValue()) : null);\n }\n\n {\n BigDecimal oidUnidadNegocio = (BigDecimal) respuesta\n .getValueAt(i, \"UNEG_OID_UNID_NEGO\");\n posiciones[i].setOidUnidadNegocio(\n (oidUnidadNegocio != null) ? new Long(oidUnidadNegocio\n .longValue()) : null);\n }\n\n {\n BigDecimal oidNegocio = (BigDecimal) respuesta\n .getValueAt(i, \"NEGO_OID_NEGO\");\n posiciones[i].setOidNegocio((oidNegocio != null) \n ? new Long(oidNegocio.longValue()) : null);\n }\n\n {\n BigDecimal oidGenerico = (BigDecimal) respuesta\n .getValueAt(i, \"GENE_OID_GENE\");\n posiciones[i].setOidGenerico((oidGenerico != null) \n ? new Long(oidGenerico.longValue()) : null);\n }\n\n {\n BigDecimal oidSuperGenerico = (BigDecimal) respuesta \n .getValueAt(i, \"SGEN_OID_SUPE_GENE\");\n posiciones[i].setOidSuperGenerico(\n (oidSuperGenerico != null) ? new Long(oidSuperGenerico\n .longValue()) : null);\n }\n\n BigDecimal uniDemandadas = (BigDecimal) respuesta\n .getValueAt(i, \"NUM_UNID_DEMA\");\n posiciones[i].setUnidadesDemandadas((uniDemandadas != null) \n ? new Long(uniDemandadas.longValue()) : new Long(0));\n\n posiciones[i].setOidProducto(new Long(((BigDecimal) respuesta\n .getValueAt(i, \"OID_PROD\")).longValue()));\n \n BigDecimal oidTipoOferta = (BigDecimal) respuesta \n .getValueAt(i, \"TOFE_OID_TIPO_OFER\"); \n posiciones[i].setOidTipoOferta(\n (oidTipoOferta != null) ? new Long(oidTipoOferta\n .longValue()) : null);\n \n BigDecimal oidCicloVida = (BigDecimal) respuesta \n .getValueAt(i, \"CIVI_OID_CICLO_VIDA\"); \n posiciones[i].setOidCicloVida(\n (oidCicloVida != null) ? new Long(oidCicloVida\n .longValue()) : null);\n \n posiciones[i].setPrecioFacturaUnitarioLocal((BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_FACT_UNIT_LOCA\"));\n \n posiciones[i].setPrecioNetoUnitarioLocal((BigDecimal) respuesta\n .getValueAt(i, \"VAL_PREC_NETO_UNIT_LOCA\"));\n \n // sapaza -- PER-SiCC-2011-0279 -- 07/06/2011\n if (solicitud.getIndDevolucion() && solicitud.isValidaReemplazo()) { \n BigDecimal codigoReemplazo = (BigDecimal) respuesta.getValueAt(i, \"COD_REEM\");\n \n if (codigoReemplazo == null) {\n posiciones[i].setProductoReemplazo(false);\n } else {\n if (codigoReemplazo.intValue() > 0) {\n posiciones[i].setProductoReemplazo(true);\n } else {\n posiciones[i].setProductoReemplazo(false);\n }\n }\n } else \n posiciones[i].setProductoReemplazo(false);\n \n // sapaza -- COL-SiCC-2013-0030 -- 28/11/2013 \n BigDecimal oidDetalleOferta = (BigDecimal) respuesta \n .getValueAt(i, \"OFDE_OID_DETA_OFER\"); \n posiciones[i].setOidDetalleOferta(\n (oidDetalleOferta != null) ? new Long(oidDetalleOferta.longValue()) : null); \n \n } // posiciones\n\n solicitud.setPosiciones(posiciones);\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerPosicionesSolicitud(Solici\"\n +\"tud solicitud):Salida\");\n }",
"public DTOSalida obtenerAccesosPlantilla(DTOOID dto) throws MareException\n { \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Entrada\"); \n StringBuffer query = new StringBuffer();\n RecordSet rs = new RecordSet(); \n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n query.append(\" SELECT DISTINCT A.ACCE_OID_ACCE OID, B.VAL_I18N DESCRIPCION \");\n query.append(\" FROM COM_PLANT_COMIS_ACCES A, V_GEN_I18N_SICC B, COM_PLANT_COMIS C \"); \n query.append(\" WHERE \");\n if(dto.getOid() != null) {\n query.append(\" A.PLCO_OID_PLAN_COMI = \" + dto.getOid() + \" AND \");\n }\n query.append(\" A.PLCO_OID_PLAN_COMI = C.OID_PLAN_COMI AND \"); \n query.append(\" C.CEST_OID_ESTA = \" + ConstantesCOM.ESTADO_ACTIVO + \" AND \"); \n \n query.append(\" B.ATTR_ENTI = 'SEG_ACCES' AND \"); \n query.append(\" B.ATTR_NUM_ATRI = 1 AND \");\n query.append(\" B.IDIO_OID_IDIO = \" + dto.getOidIdioma() + \" AND \");\n query.append(\" B.VAL_OID = A.ACCE_OID_ACCE \");\n query.append(\" ORDER BY DESCRIPCION \"); \n UtilidadesLog.debug(query.toString()); \n try {\n rs = bs.dbService.executeStaticQuery(query.toString());\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerAccesosPlantilla(DTOOID dto): Salida\"); \n return dtos;\n }",
"Reserva Obtener();",
"@Override\r\n public List<Prova> consultarTodosProva() throws Exception {\n return rnProva.consultarTodos();\r\n }",
"public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}",
"private void cargaInfoEmpleado(){\r\n Connection conn = null;\r\n Conexion conex = null;\r\n try{\r\n if(!Config.estaCargada){\r\n Config.cargaConfig();\r\n }\r\n conex = new Conexion();\r\n conex.creaConexion(Config.host, Config.user, Config.pass, Config.port, Config.name, Config.driv, Config.surl);\r\n conn = conex.getConexion();\r\n if(conn != null){\r\n ArrayList<Object> paramsIn = new ArrayList();\r\n paramsIn.add(txtLogin);\r\n QryRespDTO resp = new Consulta().ejecutaSelectSP(conn, IQryUsuarios.NOM_FN_OBTIENE_INFO_USUARIOWEB, paramsIn);\r\n System.out.println(\"resp: \" + resp.getRes() + \"-\" + resp.getMsg());\r\n if(resp.getRes() == 1){\r\n ArrayList<ColumnaDTO> listaColumnas = resp.getColumnas();\r\n for(HashMap<String, CampoDTO> fila : resp.getDatosTabla()){\r\n usuario = new UsuarioDTO();\r\n \r\n for(ColumnaDTO col: listaColumnas){\r\n switch(col.getIdTipo()){\r\n case java.sql.Types.INTEGER:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Integer.parseInt(fila.get(col.getEtiqueta()).getValor().toString().replaceAll(\",\", \"\").replaceAll(\"$\", \"\").replaceAll(\" \", \"\")));\r\n break;\r\n \r\n case java.sql.Types.DOUBLE:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Double.parseDouble(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.FLOAT:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.DECIMAL:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n case java.sql.Types.VARCHAR:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n \r\n case java.sql.Types.NUMERIC:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"0\":Float.parseFloat(fila.get(col.getEtiqueta()).getValor().toString()));\r\n break;\r\n \r\n default:\r\n usuario.getClass().getField(col.getEtiqueta()).set(usuario\r\n , fila.get(col.getEtiqueta()).getValor()==null?\"\":fila.get(col.getEtiqueta()).getValor().toString());\r\n break;\r\n } \r\n }\r\n }\r\n sesionMap.put(\"UsuarioDTO\", usuario);\r\n }else{\r\n context.getExternalContext().getApplicationMap().clear();\r\n context.getExternalContext().redirect(\"index.xhtml\");\r\n }\r\n }\r\n }catch(Exception ex){\r\n System.out.println(\"Excepcion en la cargaInfoEmpleado: \" + ex);\r\n }finally{\r\n try{\r\n conn.close();\r\n }catch(Exception ex){\r\n \r\n }\r\n }\r\n }",
"public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }",
"private static void consultaProduto() throws Exception {\r\n boolean erro;\r\n int id;\r\n Produto p;\r\n Categoria c;\r\n System.out.println(\"\\t** Consultar produto **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID do produto a ser consultado: \");\r\n id = read.nextInt();\r\n if (id <= 0) {\r\n erro = true;\r\n System.out.println(\"ID Inválida! \");\r\n }\r\n System.out.println();\r\n } while (erro);\r\n p = arqProdutos.pesquisar(id - 1);\r\n if (p != null && p.getID() != -1) {\r\n c = arqCategorias.pesquisar(p.idCategoria - 1);\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n );\r\n if (c != null) {\r\n System.out.println(\"Categoria: \" + c.nome);\r\n } else {\r\n System.out.println(\"Categoria: \" + p.idCategoria);\r\n }\r\n } else {\r\n System.out.println(\"Produto não encontrado!\");\r\n }\r\n }",
"public NewConsultasS() {\n initComponents();\n limpiar();\n bloquear();\n }",
"public ConsultasConsulta() {\n tablaconsultas = new DefaultTableModel();\n archivo.leer();\n try {\n this.conexioncitas = new ProcesosCitas(archivo.getBase(), archivo.getUser(), archivo.getPassword());\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(Especie.class.getName()).log(Level.SEVERE, null, ex);\n } catch (SQLException ex) {\n Logger.getLogger(Especie.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n initComponents();\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n cargarConsultas();\n\n }",
"public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }",
"private void consultPluviometer() {\r\n\t\tResourceBundle bundle = ControladorContexto.getBundle(\"mensaje\");\r\n\t\tResourceBundle bundleLifeCycle = ControladorContexto\r\n\t\t\t\t.getBundle(\"messageLifeCycle\");\r\n\t\tValidacionesAction validate = ControladorContexto\r\n\t\t\t\t.getContextBean(ValidacionesAction.class);\r\n\t\tpluviometerPojoSubList = new ArrayList<PluviometerPojo>();\r\n\t\tList<SelectItem> parameters = new ArrayList<SelectItem>();\r\n\t\tStringBuilder consult = new StringBuilder();\r\n\t\tStringBuilder unionSearchMessages = new StringBuilder();\r\n\t\tString searchMessages = \"\";\r\n\t\ttry {\r\n\t\t\tadvancedSearch(consult, parameters, bundle, unionSearchMessages);\r\n\t\t\tList<Pluviometer> pluviometerList = pluviometerDao\r\n\t\t\t\t\t.consultPluviometer(consult, parameters);\r\n\t\t\tpluviometerPojoList = new ArrayList<PluviometerPojo>();\r\n\t\t\tif (pluviometerList != null) {\r\n\t\t\t\tfor (Pluviometer pluviometer : pluviometerList) {\r\n\t\t\t\t\tDate date = pluviometer.getDateRecord();\r\n\t\t\t\t\tif (pluviometerPojo == null\r\n\t\t\t\t\t\t\t|| !((date.after(pluviometerPojo.getStartWeek()) && date\r\n\t\t\t\t\t\t\t\t\t.before(pluviometerPojo.getEndWeek())))) {\r\n\t\t\t\t\t\tpluviometerPojo = new PluviometerPojo();\r\n\t\t\t\t\t\tpluviometerPojo.setWeek(ControladorFechas\r\n\t\t\t\t\t\t\t\t.getNumberWeek(pluviometer.getDateRecord()));\r\n\t\t\t\t\t\tpluviometerPojo.setStartWeek(ControladorFechas\r\n\t\t\t\t\t\t\t\t.diaInicialSemana(pluviometer.getDateRecord()));\r\n\t\t\t\t\t\tpluviometerPojo.setEndWeek(ControladorFechas\r\n\t\t\t\t\t\t\t\t.diaFinalSemana(pluviometer.getDateRecord()));\r\n\t\t\t\t\t\tpluviometerPojo.setTotal(0);\r\n\t\t\t\t\t\tpluviometerPojo.setVector(new int[7]);\r\n\t\t\t\t\t\tpluviometerPojoList.add(pluviometerPojo);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tint numberDay = ControladorFechas.getNumberDay(date);\r\n\t\t\t\t\tif (numberDay != 1) {\r\n\t\t\t\t\t\tnumberDay = numberDay - 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnumberDay = 7;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpluviometerPojo.setVectorPos(numberDay - 1,\r\n\t\t\t\t\t\t\tpluviometer.getReading());\r\n\t\t\t\t\tpluviometerPojo.setTotal(pluviometerPojo.getTotal()\r\n\t\t\t\t\t\t\t+ pluviometer.getReading());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlong amount = (long) pluviometerPojoList.size();\r\n\t\t\tpagination.paginar(amount);\r\n\t\t\tint totalReg = pagination.getRango();\r\n\t\t\tint start = pagination.getInicio();\r\n\t\t\tint rank = start + totalReg;\r\n\t\t\tif (pluviometerPojoList.size() < rank) {\r\n\t\t\t\trank = pluviometerPojoList.size();\r\n\t\t\t}\r\n\t\t\tthis.pluviometerPojoSubList = pluviometerPojoList.subList(start,\r\n\t\t\t\t\trank);\r\n\t\t\tif ((pluviometerPojoList == null || pluviometerPojoList.size() <= 0)\r\n\t\t\t\t\t&& !\"\".equals(unionSearchMessages.toString())) {\r\n\t\t\t\tsearchMessages = MessageFormat\r\n\t\t\t\t\t\t.format(bundle\r\n\t\t\t\t\t\t\t\t.getString(\"message_no_existen_registros_criterio_busqueda\"),\r\n\t\t\t\t\t\t\t\tunionSearchMessages);\r\n\t\t\t} else if (pluviometerPojoList == null\r\n\t\t\t\t\t|| pluviometerPojoList.size() <= 0) {\r\n\t\t\t\tControladorContexto.mensajeInformacion(null,\r\n\t\t\t\t\t\tbundle.getString(\"message_no_existen_registros\"));\r\n\t\t\t} else if (!\"\".equals(unionSearchMessages.toString())) {\r\n\t\t\t\tsearchMessages = MessageFormat\r\n\t\t\t\t\t\t.format(bundle\r\n\t\t\t\t\t\t\t\t.getString(\"message_existen_registros_criterio_busqueda\"),\r\n\t\t\t\t\t\t\t\tbundleLifeCycle.getString(\"rain_gauge_label_s\"),\r\n\t\t\t\t\t\t\t\tunionSearchMessages);\r\n\t\t\t}\r\n\t\t\tvalidate.setMensajeBusqueda(searchMessages);\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic ArrayList<Object> leer(Connection connection, String campoBusqueda, String valorBusqueda) {\n\t\tString query = \"\";\n\t\tDetalleSolicitud detalleSolicitud = null;\n\t\tArrayList<Object> listaDetalleSolicitud = new ArrayList<Object>();\n\t\tif (campoBusqueda.isEmpty() || valorBusqueda.isEmpty()) {\n\t\t\tquery = \"SELECT * FROM detallesolicitudes ORDER BY sysPK;\";\n\t\t\ttry {\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tResultSet resultSet = statement.executeQuery(query); \t\t\t\t\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tdetalleSolicitud = new DetalleSolicitud();\n\t\t\t\t\tdetalleSolicitud.setSysPk(resultSet.getInt(1));\n\t\t\t\t\tdetalleSolicitud.setCantidad(resultSet.getInt(2));\n\t\t\t\t\tdetalleSolicitud.setFechaEntrega(resultSet.getDate(3));\n\t\t\t\t\tdetalleSolicitud.setDisenoFk(resultSet.getInt(4));\n\t\t\t\t\tdetalleSolicitud.setSolicitudFk(resultSet.getInt(5));\n\t\t\t\t\tlistaDetalleSolicitud.add(detalleSolicitud);\n\t\t\t\t}//FIN WHILE\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tNotificacion.dialogoException(ex);\n\t\t\t}//FIN TRY/CATCH\n\t\t} else {\n\t\t\tquery = \"SELECT * FROM detallesolicitudes WHERE \" + campoBusqueda + \" = ? ORDER BY sysPK;\";\n\t\t\ttry {\n\t\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(query);\n\t\t\t\tpreparedStatement.setString(1, valorBusqueda);\n\t\t\t\tResultSet resultSet=preparedStatement.executeQuery();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tdetalleSolicitud = new DetalleSolicitud();\n\t\t\t\t\tdetalleSolicitud.setSysPk(resultSet.getInt(1));\n\t\t\t\t\tdetalleSolicitud.setCantidad(resultSet.getInt(2));\n\t\t\t\t\tdetalleSolicitud.setFechaEntrega(resultSet.getDate(3));\n\t\t\t\t\tdetalleSolicitud.setDisenoFk(resultSet.getInt(4));\n\t\t\t\t\tdetalleSolicitud.setSolicitudFk(resultSet.getInt(5));\n\t\t\t\t\tlistaDetalleSolicitud.add(detalleSolicitud);\n\t\t\t\t}//FIN WHILE\n\t\t\t}catch (SQLException ex) {\n\t\t\t\tNotificacion.dialogoException(ex);\n\t\t\t}//FIN TRY/CATCH\n\t\t}//FIN IF/ELSE\n\t\treturn listaDetalleSolicitud;\n\t}",
"public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }",
"public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }",
"public void consultaDatosFiliatorios(Paciente p_paciente){\n\t\tSystem.out.println(\"Hospital: \" + this.getHospital() + \"\\tDirector: \" + this.getDirector());\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------\");\n\t\tp_paciente.mostrarDatosPantalla();\n\t}",
"public Resultado executarConsulta(Requisicao requisicao) throws Exception {\r\n throw new UnsupportedOperationException();\r\n }",
"private void armarQuery(String filtro) throws DatabaseErrorException {\n String query = null;\n if (filtro != null && filtro.length() > 0) {\n query = \"SELECT * FROM \" + CLASS_NAME + \" o WHERE o.nombre ILIKE '\" + filtro + \"%' ORDER BY o.nombre\";\n }\n cargarContenedorTabla(query);\n }",
"private void listar(HttpPresentationComms comms, String _operacion) throws HttpPresentationException, KeywordValueException {\n/* 219 */ activarVista(\"consulta\");\n/* 220 */ if (_operacion.equals(\"X\")) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 225 */ PrcRecursoDAO ob = new PrcRecursoDAO();\n/* 226 */ Collection<PrcRecursoDTO> arr = ob.cargarTodos();\n/* 227 */ HTMLTableSectionElement hte = this.pagHTML.getElementDetalle();\n/* 228 */ int cuantas = 0;\n/* 229 */ Iterator<PrcRecursoDTO> iterator = arr.iterator();\n/* 230 */ while (iterator.hasNext()) {\n/* 231 */ PrcRecursoDTO reg = (PrcRecursoDTO)iterator.next();\n/* 232 */ HTMLElement eltr = (HTMLElement)this.pagHTML.createElement(\"tr\");\n/* 233 */ eltr.appendChild(newtd(\"\" + reg.getIdRecurso()));\n/* 234 */ String url = \"PrcRecurso.po?_operacion=V&idRecurso=\" + reg.getIdRecurso() + \"\";\n/* 235 */ eltr.appendChild(newtdhref(\"\" + reg.getNombreIdTipoRecurso(), url));\n/* 236 */ eltr.appendChild(newtd(\"\" + reg.getDescripcionRecurso()));\n/* 237 */ eltr.appendChild(newtd(\"\" + reg.getNombreIdProcedimiento()));\n/* 238 */ eltr.appendChild(newtd(\"\" + reg.getNombreEstado()));\n/* 239 */ hte.appendChild(eltr);\n/* 240 */ cuantas++;\n/* */ } \n/* 242 */ arr.clear();\n/* 243 */ this.pagHTML.setTextNroRegistros(\"\" + cuantas);\n/* */ }",
"public Resultado executarConsulta(Requisicao requisicao) throws Exception {\r\n return null;\r\n }",
"@Override\n\tpublic Collection<LineaComercialClasificacionDTO> consultarLineaComercialClasificacionAsignacionMasivaNoIngresar(String codigoClasificacion,String nivelClasificacion,String valorTipoLineaComercial,String codigoLinCom)throws SICException{\n\t\tLogeable.LOG_SICV2.info(\"Entr� a consultar Linea Comercial Clasificacion Asignacion Masiva No Ingresar: {}\",codigoClasificacion);\n\t\tStringBuilder query = null;\n\t\tQuery sqlQuery = null;\n\t\tSession session=null;\n\t\tBoolean clearCache = Boolean.TRUE;\n\t\tCollection<LineaComercialClasificacionDTO> lineaComercialClasificacionDTOs = new ArrayList<LineaComercialClasificacionDTO>();\n\t\ttry {\n\t\t\tsession = hibernateHLineaComercialClasificacion.getHibernateSession();\n\t\t\tsession.clear();\n\t\t\n\t\t\t\n\t\t\tquery = new StringBuilder();\n\t\t\tquery.append(\" SELECT LC, L, C, CV \");\n\t\t\tquery.append(\" FROM LineaComercialClasificacionDTO LC, LineaComercialDTO L, ClasificacionDTO C, CatalogoValorDTO CV \");\n\t\t\tquery.append(\" WHERE L.id.codigoLineaComercial = LC.codigoLineaComercial \");\n//\t\t\tquery.append(\" AND L.nivel = 0 \");\n\t\t\tquery.append(\" AND L.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND LC.estado = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = '\"+valorTipoLineaComercial+\"' \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion = C.id.codigoClasificacion \");\n\t\tif(!codigoLinCom.equals(\"null\")){\t\n\t\t\tquery.append(\" AND L.id.codigoLineaComercial != \"+codigoLinCom);\n\t\t}\t\n\t\t\tquery.append(\" AND L.valorTipoLineaComercial = CV.id.codigoCatalogoValor \");\n\t\t\tquery.append(\" AND L.codigoTipoLineaComercial = CV.id.codigoCatalogoTipo \");\n\t\t\tquery.append(\" AND LC.id.codigoClasificacion IN ( \");\n\t\t\tif(!nivelClasificacion.equals(SICConstantes.TIPCLA_CLASIFICACION)){\n\t\t\tif(nivelClasificacion.equals(SICConstantes.TIPCLA_DIVISION)){\n\t\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\t\tquery.append(\" AND codigoClasificacionPadre IN( \");\n\t\t\t}\n\t\t\tquery.append(\" SELECT id.codigoClasificacion FROM ClasificacionDTO \");\n\t\t\tquery.append(\" WHERE estadoClasificacion = '\"+SICConstantes.ESTADO_ACTIVO_NUMERICO+\"' \");\n\t\t\tquery.append(\" AND codigoClasificacionPadre IN (\"+codigoClasificacion+\") \"+\" )) \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" \"+codigoClasificacion+\") \");\n\t\t\t}\n\n\t\t\tsqlQuery = hibernateHLineaComercialClasificacion.createQuery(query.toString(), clearCache);\n\t\t\t\n\t\t\t/**\n\t\t\t * aqui se asigna al objeto LineaComercialClasificacionDTO los objetos (ClasificacionDTO,LineaComercialDTO)\n\t\t\t * que nos entrego la consulta por separado\n\t\t\t */\n\t\t\tCollection<Object[]> var = sqlQuery.list();\n\t\t\tfor(Object[] object:var){\n\t\t\t\tLineaComercialClasificacionDTO l=(LineaComercialClasificacionDTO)object[0];\n\t\t\t\tl.setLineaComercial((LineaComercialDTO)object[1]);\n\t\t\t\tl.setClasificacion((ClasificacionDTO)object[2]);\n\t\t\t\tl.getLineaComercial().setTipoLineaComercial((CatalogoValorDTO)object[3]);\n\t\t\t\tlineaComercialClasificacionDTOs.add(l);\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception e) {\n\t\t\tLogeable.LOG_SICV2.info(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t\tthrow new SICException(\"Error al consultar clasificaciones asignacion masiva {}\", e);\n\t\t}\n\t\t\n\t\t\n\t\treturn lineaComercialClasificacionDTOs;\n\t}",
"protected void exibirPacientes(){\n System.out.println(\"--- PACIENTES CADASTRADOS ----\");\r\n String comando = \"select * from paciente order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nomepaciente\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }",
"public void buscar() { // ATENCION tengo dudas con % telefono% no sale ningun resultado. si sale con telefono%\n String nombre = AgendarA.txtBNombre.getText();\n String apellidos = AgendarA.txtBApellidos.getText();\n String ciudad = AgendarA.txtBCiudad.getText();\n\n modeloagr = new DefaultTableModel(null, columnasAgr) {\n public boolean isCellEditable(int fila, int columna) {\n return false;\n }\n };\n if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY nombre\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chApellidos.isSelected() == true) {\n if (!nombre.equals(\"\") && !apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.Apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!nombre.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,nombre,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true && AgendarA.chCiudad.isSelected() == true) {\n if (!apellidos.equals(\"\") && !ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,personalexterno.cedula,nombres,apellidos,municipios.Nombre FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chNombre.isSelected() == true) {\n if (!nombre.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.nombres LIKE '%\" + nombre + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chApellidos.isSelected() == true) {\n if (!apellidos.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE personalexterno.apellidos LIKE '%\" + apellidos + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else if (AgendarA.chCiudad.isSelected() == true) {\n if (!ciudad.equals(\"\")) {\n tbl.llenarTabla(AgendarA.tblAgricultor, modeloagr, columnasAgr.length, \"SELECT idPersonalExterno,cedula,CONCAT(nombres,' ',apellidos),municipios.Nombre,telefono,telefono2,telefono3 FROM personalexterno,municipios WHERE municipios.Nombre LIKE '%\" + ciudad + \"%' AND personalexterno.idMunicipio=municipios.idMunicipio AND tipo='agricultor' GROUP BY cedula\");\n tbl.alinearHeaderTable(AgendarA.tblAgenda, headerColumnasAgenda);\n tbl.alinearCamposTable(AgendarA.tblAgricultor, camposColumnas);\n } else {\n JOptionPane.showMessageDialog(null, \"Uno de los campos que selecciono para la busqueda esta vacio\");\n }\n } else {\n JOptionPane.showMessageDialog(null, \"Ninguno de los campos de busqueda esta seleccionado\");\n }\n tbl.rowNumberTabel(AgendarA.tblAgricultor);\n //desactivar_checkbox();\n }",
"public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}",
"public AsistenciaRespuesta consultaAsistencia(AsistenciaDTO asistencia) {\n\t\t//Primero generamos el identificador unico de la transaccion\n\t\t\t\tString uid = GUIDGenerator.generateGUID(asistencia);\n\t\t\t\t//Mandamos a log el objeto de entrada\n\t\t\t\tLogHandler.debug(uid, this.getClass(), \"consultaAsistencia - Datos Entrada: \" + asistencia);\n\t\t\t\t//Variable de resultado\n\t\t\t\tAsistenciaRespuesta respuesta = new AsistenciaRespuesta();\n\t\t\t\trespuesta.setHeader( new EncabezadoRespuesta());\n\t\t\t\trespuesta.getHeader().setUid(uid);\n\t\t\t\trespuesta.getHeader().setEstatus(true);\n\t\t\t\trespuesta.getHeader().setMensajeFuncional(\"Consulta correcta.\");\n\t\t\t\tList<AsistenciaDTO> listaAsistencia = null;\n\t\t\t\t try {\n\t\t\t\t\t listaAsistencia = new AsistenciaDAO().consultaAsistencia(uid, asistencia);\n\t\t\t\t \trespuesta.setAsistencia(listaAsistencia);\n\t\t\t\t } catch (ExcepcionesCuadrillas ex) {\n\t\t\t\t\t\tLogHandler.error(uid, this.getClass(), \"consultaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\t\t\t\trespuesta.getHeader().setEstatus(false);\n\t\t\t\t\t\trespuesta.getHeader().setMensajeFuncional(ex.getMessage());\n\t\t\t\t\t\trespuesta.getHeader().setMensajeTecnico(ex.getMessage());\n\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t \tLogHandler.error(uid, this.getClass(), \"consultaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\t\t \trespuesta.getHeader().setEstatus(false);\n\t\t\t\t\t\trespuesta.getHeader().setMensajeFuncional(ex.getMessage());\n\t\t\t\t\t\trespuesta.getHeader().setMensajeTecnico(ex.getMessage());\n\t\t\t\t }\n\t\t\t\t LogHandler.debug(uid, this.getClass(), \"consultaAsistencia - Datos Salida: \" + respuesta);\n\t\t\t\t\treturn respuesta;\n\t}",
"public void buscarxdescrip() {\r\n try {\r\n modelo.setDescripcion(vista.jTbdescripcion.getText());//C.P.M le enviamos al modelo la descripcion y consultamos\r\n rs = modelo.Buscarxdescrip();//C.P.M cachamos el resultado de la consulta\r\n\r\n DefaultTableModel buscar = new DefaultTableModel() {//C.P.M creamos el modelo de la tabla\r\n @Override\r\n public boolean isCellEditable(int rowIndex, int vColIndex) {\r\n return false;\r\n }\r\n };\r\n vista.jTbuscar.setModel(buscar);//C.P.M le mandamos el modelo a la tabla\r\n modelo.estructuraProductos(buscar);//C.P.M obtenemos la estructura de la tabla \"encabezados\"\r\n ResultSetMetaData rsMd = rs.getMetaData();//C.P.M obtenemos los metadatos de la consulta\r\n int cantidadColumnas = rsMd.getColumnCount();//C.P.M obtenemos la cantidad de columnas de la consulta\r\n while (rs.next()) {//C.P.M recorremos el resultado\r\n Object[] fila = new Object[cantidadColumnas];//C.P.M creamos un arreglo con una dimencion igual a la cantidad de columnas\r\n for (int i = 0; i < cantidadColumnas; i++) { //C.P.M lo recorremos \r\n fila[i] = rs.getObject(i + 1); //C.P.M vamos insertando los resultados dentor del arreglo\r\n }\r\n buscar.addRow(fila);//C.P.M y lo agregamos como una nueva fila a la tabla\r\n }\r\n\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Ocurrio un error al buscar producto por descripcion\");\r\n }\r\n }",
"public boolean consultar() {\n consultarReg();\n return true;\n }",
"public String validarResponsableYaAsignado (DTOResponsable dtoe) throws MareException { \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Entrada\");\n StringBuffer consulta = new StringBuffer();\n Vector parametros = new Vector();\n RecordSet rs = new RecordSet();\n \n String asignado = null;\n String unidadAdministrativa = null;\n Long marca = null;\n Long canal = null;\n Long pais = null;\n\n //Recuperamos el pais, marca y canal de la Unidad Administrativa \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n\n /*if (dtoe.getIndUA().intValue() == 1) { \n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_sub_geren_venta \");\n consulta.append(\" WHERE oid_subg_vent = ? \");\n unidadAdministrativa = \"Subgerencia\";\n }*/\n if (dtoe.getIndUA().intValue() == 2){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_regio \");\n consulta.append(\" WHERE oid_regi = ? \");\n unidadAdministrativa = \"Region\";\n }\n if (dtoe.getIndUA().intValue() == 3){\n consulta.append(\" SELECT pais_oid_pais PAIS, marc_oid_marc MARCA, cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona \");\n consulta.append(\" WHERE oid_zona = ? \");\n unidadAdministrativa = \"Zona\";\n }\n /*if (dtoe.getIndUA().intValue() == 4){\n consulta.append(\" SELECT zon.pais_oid_pais PAIS, zon.marc_oid_marc MARCA, zon.cana_oid_cana canal \");\n consulta.append(\" FROM zon_zona zon, zon_secci sec \");\n consulta.append(\" WHERE sec.zzon_oid_zona = zon.oid_zona \"); \n consulta.append(\" AND sec.oid_secc = ? \");\n unidadAdministrativa = \"Seccion\"; \n }*/\n parametros.add(dtoe.getOidUA());\n \n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No existe Unidad Administrativa \");\t\t\t\t\n String sCodigoError = CodigosError.ERROR_DE_PETICION_DE_DATOS_NO_EXISTENTE;\n throw new MareException(new Exception(), UtilidadesError.armarCodigoError(sCodigoError));\n } else {\n pais = new Long(((BigDecimal)rs.getValueAt(0,\"PAIS\")).longValue());\n marca = new Long(((BigDecimal)rs.getValueAt(0,\"MARCA\")).longValue());\n canal = new Long(((BigDecimal)rs.getValueAt(0,\"CANAL\")).longValue());\n }\n\n //Buscamos si el cliente es responsable en otra unidad administrativa\n //para el pais, marca y canal de la unidad administrativa a asignar\n parametros = new Vector(); \n consulta = new StringBuffer();\n /*consulta.append(\" SELECT 'SubGerencia: ' || zon_sub_geren_venta.des_subg_vent DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, mae_clien \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_sub_geren_venta.clie_oid_clie \"); \n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n\n consulta.append(\" UNION \");*/\n \n consulta.append(\" SELECT 'Region: ' || zon_regio.des_regi DESCUNIDADADMIN \");\n consulta.append(\" FROM mae_clien, zon_sub_geren_venta, zon_regio \");\n consulta.append(\" WHERE mae_clien.oid_clie = zon_regio.clie_oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Zona: ' || zon_zona.des_zona DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, zon_zona, mae_clien \");\n consulta.append(\" WHERE zon_zona.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");\n \n /*consulta.append(\" UNION \");\n \n consulta.append(\" SELECT 'Seccion: ' || zon_secci.des_secci DESCUNIDADADMIN \");\n consulta.append(\" FROM zon_sub_geren_venta, zon_regio, \");\n consulta.append(\" zon_zona, zon_secci, mae_clien \");\n consulta.append(\" WHERE zon_secci.clie_oid_clie = mae_clien.oid_clie \");\n consulta.append(\" AND mae_clien.oid_clie = ? \");\n parametros.add(dtoe.getOidResponsable());\n consulta.append(\" AND zon_sub_geren_venta.pais_oid_pais = ? \");\n parametros.add(pais);\n consulta.append(\" AND zon_sub_geren_venta.marc_oid_marc = ? \");\n parametros.add(marca);\n consulta.append(\" AND zon_sub_geren_venta.cana_oid_cana = ? \");\n parametros.add(canal);\n consulta.append(\" AND zon_regio.zsgv_oid_subg_vent = zon_sub_geren_venta.oid_subg_vent \");\n consulta.append(\" AND zon_zona.zorg_oid_regi = zon_regio.oid_regi \");\n consulta.append(\" AND zon_secci.zzon_oid_zona = zon_zona.oid_zona \"); \n consulta.append(\" AND zon_secci.ind_borr = 0 \");\n consulta.append(\" AND zon_zona.ind_borr = 0 \");\n consulta.append(\" AND zon_sub_geren_venta.ind_borr = 0 \");\n consulta.append(\" AND zon_regio.ind_borr = 0 \");*/\n\n try {\n rs = bs.dbService.executePreparedQuery(consulta.toString(), parametros);\n UtilidadesLog.debug(\"rs: \" + rs);\n } catch (Exception e) {\n codigoError = CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(codigoError));\n }\n\n if (rs.esVacio()) {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: No hay datos \");\t\t\t\t\n }\n else {\n UtilidadesLog.debug(\"****DAOZON.validarResponsableYaAsignado: se encontro al menos un cliente \");\t\t\t\t\n asignado = rs.getValueAt(0,\"DESCUNIDADADMIN\").toString();\n }\n \n UtilidadesLog.info(\"DAOZON.validarResponsableYaAsignado(DTOResponsable dtoe): Salida\"); \n \n return asignado;\n }",
"public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }",
"@Override\r\n public List<QuestaoMultiplaEscolha> consultarTodosQuestaoMultiplaEscolha()\r\n throws Exception {\n return rnQuestaoMultiplaEscolha.consultarTodos();\r\n }",
"@Override\r\n public List<Entradas> consultarEntradasPorCole(Colecciones coleccion){\r\n \tString hql = \"SELECT ent FROM Colecciones col, ColeccionesRss colrss, Entradas ent WHERE \"\r\n \t\t\t+ \" col.codigoCole = colrss.colecciones.codigoCole AND colrss.rss.codigoRss = ent.rss.codigoRss AND \"\r\n \t\t\t+ \" col.codigoCole = \"+coleccion.getCodigoCole();\r\n \tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\r\n \tList<Entradas> lasEntradas = query.list();\r\n \treturn lasEntradas;\r\n }",
"public void rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud)\n throws MareException{\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Entrada\");\n Long oidConsolidado = null, oidPeriodo = null;\n RecordSet rs;\n StringBuffer query = new StringBuffer();\n\n query.append(\" SELECT MAX(SOL_ORIG.OID_SOLI_CABE) OID_SOLI_CABE, MAX(SOL_ORIG.PERD_OID_PERI) PERD_OID_PERI \");\n\n query.append(\" FROM PED_SOLIC_CABEC SOL_DEVO, \");\n query.append(\" PED_SOLIC_CABEC SOL_ORIG, \");\n query.append(\" PED_SOLIC_CABEC SOL_DEVUELTA, \");\n query.append(\" INC_SOLIC_CONCU_PUNTA SCP, \");\n query.append(\" PED_TIPO_SOLIC_PAIS PTSP, \");\n query.append(\" PED_TIPO_SOLIC PTS \");\n \n query.append(\" WHERE SOL_DEVO.OID_SOLI_CABE = \" + dtoSolicitud.getOidSolicitud().toString() );\n query.append(\" AND SOL_DEVO.SOCA_OID_DOCU_REFE = SOL_ORIG.OID_SOLI_CABE \");\n query.append(\" AND SOL_ORIG.OID_SOLI_CABE = SOL_DEVUELTA.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVUELTA.OID_SOLI_CABE = SCP.SOCA_OID_SOLI_CABE \");\n query.append(\" AND SOL_DEVO.TSPA_OID_TIPO_SOLI_PAIS = PTSP.OID_TIPO_SOLI_PAIS \");\n query.append(\" AND PTSP.TSOL_OID_TIPO_SOLI = PTS.OID_TIPO_SOLI \");\n query.append(\" AND PTS.IND_DEVO = 1 \");\n \n try {\n rs = BelcorpService.getInstance().dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if(! rs.esVacio() ){\n oidConsolidado = rs.getValueAt(0,\"OID_SOLI_CABE\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"OID_SOLI_CABE\" ) ).longValue() ):null;\n }\n \n if( oidConsolidado != null ){\n oidPeriodo = rs.getValueAt(0,\"PERD_OID_PERI\" )!=null?\n new Long( ((BigDecimal)rs.getValueAt(0,\"PERD_OID_PERI\" ) ).longValue() ):null; \n \n dtoSolicitud.setOidSolicitud( oidConsolidado );\n dtoSolicitud.setOidPeriodo( oidPeriodo );\n }\n\n UtilidadesLog.info(\"DAOSolicitudes.rellenarDevoluciones(DTOSolicitudValidacion dtoSolicitud):Salida\");\n }",
"private void iniciaFrm() {\n statusLbls(false);\n statusBtnInicial();\n try {\n clientes = new Cliente_DAO().findAll();\n } catch (Exception ex) {\n Logger.getLogger(JF_CadastroCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\r\n public List<Funcionario> consultarTodosFuncionarios() throws Exception {\n return rnFuncionario.consultarTodos();\r\n }",
"public Usuarios(String Cedula){ //método que retorna atributos asociados con la cedula que recibamos\n conexion = base.GetConnection();\n PreparedStatement select;\n try {\n select = conexion.prepareStatement(\"select * from usuarios where Cedula = ?\");\n select.setString(1, Cedula);\n boolean consulta = select.execute();\n if(consulta){\n ResultSet resultado = select.getResultSet();\n if(resultado.next()){\n this.Cedula= resultado.getString(1);\n this.Nombres= resultado.getString(2);\n \n this.Sexo= resultado.getString(3);\n this.Edad= resultado.getInt(4);\n this.Direccion= resultado.getString(5);\n this.Ciudad=resultado.getString(6);\n this.Contrasena=resultado.getString(7);\n this.Estrato=resultado.getInt(8);\n this.Rol=resultado.getString(9);\n }\n resultado.close();\n }\n conexion.close();\n } catch (SQLException ex) {\n System.err.println(\"Ocurrió un error: \"+ex.getMessage().toString());\n }\n}",
"public void autStartConsultaDefault() {\t\t\r\n\t\tAUTBaseComponent bs = new AUTBaseComponent() {};\r\n\t\tbs.autGetDataFlow().autInitDataFlow();\r\n\t\tautStartConsulta(bs.autGetCurrentParameter(AUT_TABLE_PARAMETERS_NAMES.AUT_VA_GERACAO_PEDIDOS, \"AUT_CODIGO_ITEM\").toString());\r\n\t}",
"public TelaConsultaCliente() {\n initComponents();\n DefaultTableModel modelo = (DefaultTableModel) JtClientes.getModel();\n JtClientes.setRowSorter(new TableRowSorter(modelo));\n consultarJt();\n }",
"public String recherche() {\n\n listAnnonce = iServiceGestionAnnonce.findByExampleSql( annonce, adresse );\n\n return \"rechercheResultat\";\n\n }",
"public void onMostrarListboxConsulta() {\r\n\t\tgetIdMCRZLbxlista().setVisible(true);\r\n\t\tgetIdMCRZLbxlista().applyProperties();\r\n\t\tgetIdMCRZLbxlista().invalidate();\r\n\t}",
"private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}",
"@Override\r\n public List<Concursando> consultarTodosConcursando() throws Exception {\n return rnConcursando.consultarTodos();\r\n }",
"private String getQuerySelecaoClientesRebarba()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \"\n\t\t\t+\t\" P_ASSINANTE.IDT_MSISDN, \" \n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO, \"\n\t\t\t+\t\" P_ASSINANTE.DAT_EXECUCAO, \" \n\t\t\t+\t\" P_ASSINANTE.DAT_ENTRADA_PROMOCAO, \"\n\t\t\t+\t\" P_ASSINANTE.IND_SUSPENSO, \"\n\t\t\t+\t\" P_ASSINANTE.IND_ISENTO_LIMITE, \"\n\t\t\t+\t\" ASSINANTE.IDT_STATUS, \" \n\t\t\t+\t\" ASSINANTE.VLR_SALDO_PRINCIPAL, \" \n\t\t\t+\t\" ASSINANTE.DAT_EXPIRACAO_PRINCIPAL, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_BONUS, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_SMS, \" \n\t\t\t+\t\" PROMOCAO.IND_ZERAR_SALDO_GPRS, \" \n\t\t\t//A divisao por 60 deve-se a alteracao da carga de CDRs para preencher os valores da \n\t\t\t//TBL_GER_TOTALIZACAO_PULA_PULA em segundos e nao minutos, de forma a diminuir a perda de precisao.\n\t\t\t+\t\" NVL(MINUTOS.MIN_CREDITO, 0)/60 AS MIN_CREDITO, \" \n\t\t\t+\t\" NVL(MINUTOS.MIN_FF, 0)/60 AS MIN_FF \" \n\t\t\t+\t\"FROM \"\n\t\t\t+\t\" TBL_APR_ASSINANTE ASSINANTE, \"\n\t\t\t+\t\" TBL_GER_PROMOCAO PROMOCAO, \" \n\t\t\t+\t\" TBL_GER_PROMOCAO_ASSINANTE P_ASSINANTE, \" \n\t\t\t+\t\" TBL_GER_TOTALIZACAO_PULA_PULA MINUTOS \"\n\t\t\t+\t\"WHERE \"\n\t\t\t+\t\" ASSINANTE.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO = PROMOCAO.IDT_PROMOCAO AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_MSISDN = MINUTOS.IDT_MSISDN (+) AND \"\n\t\t\t+\t\" P_ASSINANTE.IDT_PROMOCAO = ? AND \"\n\t\t\t//Descartar assinantes que entraram na promocao no mes da execucao\n\t\t\t+\t\" MINUTOS.DAT_MES (+) = ? AND \"\n\t\t\t+\t\" P_ASSINANTE.DAT_ENTRADA_PROMOCAO < ? AND \"\n\t\t\t+\t\" PROMOCAO.IDT_CATEGORIA = \" \n\t\t\t+\t\tString.valueOf(ID_CATEGORIA_PULA_PULA) + \" AND \"\n\t\t\t//PONTO DE ATENCAO: Verificar pela fila de recargas e nao pela tabela de recargas devido aos\n\t\t\t//agendamentos (Se a execucao na fila de recargas ainda nao tiver sido realizada, o registro na\n\t\t\t//fila sera duplicado)\n\t\t\t+\t\" NOT EXISTS \"\n\t\t\t+\t\" ( \"\n\t\t\t+\t\" SELECT 1 \" \n\t\t\t+\t\" FROM \"\n\t\t\t+\t\" TBL_REC_FILA_RECARGAS RECARGAS \" \n\t\t\t+\t\" WHERE \" \n\t\t\t+\t\" RECARGAS.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" RECARGAS.TIP_TRANSACAO = ? AND \"\n\t\t\t+\t\" RECARGAS.IDT_STATUS_PROCESSAMENTO IN \" \n\t\t\t+\t\" (\" \n\t\t\t+\t\t\t\tString.valueOf(REC_STATUS_NAO_EXECUTADO) + \", \" \n\t\t\t+\t\t\t\tString.valueOf(REC_STATUS_OK) + \", \"\n\t\t\t+\t\t\t\tString.valueOf(REC_STATUS_TESTE_PULA_PULA) \n\t\t\t+\t\" ) AND \"\n\t\t\t+\t\" RECARGAS.DAT_EXECUCAO >= ? AND \"\n\t\t\t+\t\" RECARGAS.DAT_EXECUCAO < ? \"\n\t\t\t+\t\" ) AND \"\n\t\t\t//Descartar assinantes que nao possuem ligacoes\n\t\t\t+\t\" NOT EXISTS \"\n\t\t\t+\t\" ( \"\n\t\t\t+\t\" SELECT 1 \" \n\t\t\t+\t\" FROM \"\n\t\t\t+\t\" TBL_GER_HISTORICO_PULA_PULA HISTORICO \" \n\t\t\t+\t\" WHERE \" \n\t\t\t+\t\" HISTORICO.IDT_MSISDN = P_ASSINANTE.IDT_MSISDN AND \"\n\t\t\t+\t\" HISTORICO.DAT_EXECUCAO BETWEEN ? AND ? AND \" \n\t\t\t+\t\" HISTORICO.IDT_CODIGO_RETORNO = \" + String.valueOf(RET_PULA_PULA_LIGACOES_NOK) \n\t\t\t+\t\" ) \";\n\n\t\treturn result;\n\t}",
"public ArrayList<ServicioDTO> consultarServicios(String columna, String informacion) throws Exception {\r\n ArrayList<ServicioDTO> dtos = new ArrayList<>();\r\n conn = Conexion.generarConexion();\r\n String sql = \"\";\r\n if (columna.equals(\"nom\")) \r\n sql = \" WHERE SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ? OR \"\r\n + \"SerNombre LIKE ?\";\r\n else if (columna.equals(\"cod\"))\r\n sql = \" WHERE SerCodigo = ? \";\r\n if (conn != null) {\r\n PreparedStatement stmt = conn.prepareStatement(\"SELECT SerCodigo, \"\r\n + \"SerNombre, SerCaracter, SerNotas, SerHabilitado \"\r\n + \"FROM tblservicio\" + sql);\r\n if (columna.equals(\"cod\")) {\r\n stmt.setString(1, informacion);\r\n } else if (columna.equals(\"nom\")) {\r\n stmt.setString(1, informacion);\r\n stmt.setString(2, \"%\" + informacion);\r\n stmt.setString(3, informacion + \"%\");\r\n stmt.setString(4, \"%\" + informacion + \"%\");\r\n }\r\n ResultSet rs = stmt.executeQuery();\r\n while (rs.next()) {\r\n ServicioDTO dto = new ServicioDTO();\r\n dto.setCodigo(rs.getInt(1));\r\n dto.setNombre(rs.getString(2));\r\n dto.setCaracter(rs.getString(3));\r\n dto.setNotas(rs.getString(4));\r\n String habilitado = rs.getString(5);\r\n if(habilitado.equals(\"si\"))\r\n dto.setHabilitado(true);\r\n else\r\n dto.setHabilitado(false);\r\n dtos.add(dto);\r\n }\r\n stmt.close();\r\n rs.close();\r\n conn.close();\r\n }\r\n return dtos;\r\n }",
"public void consultarDatos() throws SQLException {\n String instruccion = \"SELECT * FROM juegos.juegos\";\n try {\n comando = conexion.createStatement();\n resultados = comando.executeQuery(instruccion);\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n }\n }",
"public List<Joueur> List_Joueur_HommesForComboBox() \r\n {\r\n List<Joueur> j = new ArrayList<>();\r\n String req= \"SELECT * FROM personne WHERE datedestruction is NULL and role = 'Joueur' and sexe='Homme' \";\r\n try {\r\n ResultSet res = ste.executeQuery(req);\r\n while (res.next()) {\r\n \r\n Joueur Jou = new Joueur(\r\n res.getInt(\"idpersonne\"),\r\n \r\n res.getString(\"nom\"),\r\n res.getString(\"prenom\")\r\n );\r\n j.add(Jou);\r\n \r\n System.out.println(\"------- joueurs selectionné avec succés----\");\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n System.out.println(\"----------Erreur lors methode : List_Joueur_Hommes()------\");\r\n }\r\n return j;\r\n \r\n}",
"private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}",
"public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }",
"public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }",
"public void consutaBD(String Campo, String txtSQL) {\n String consultaBD = \"SELECT * FROM `cronograma_actividades` WHERE \" + Campo + \" LIKE '\" + txtSQL + \"_%'\";\n //JOptionPane.showMessageDialog(null, consultaBD);\n javax.swing.JTable Tabla = this.Tabla_addActividad;\n // Enviamos los parametros para la consulta de la tabla\n // conexion consulta de la base de datos y el nombre de la tabla\n String cabesera[] = {\"Código\", \"Asunto\", \"Actividad\",\"hora\",\"Fecha\",\"Estado\"};\n cone1.GetTabla_Sincabeseras_sql_bd(cn, consultaBD, Tabla, cabesera);\n\n }"
] | [
"0.6862156",
"0.67460406",
"0.6733953",
"0.66830796",
"0.6626669",
"0.65177464",
"0.65012085",
"0.6440257",
"0.641289",
"0.6398377",
"0.6393097",
"0.63872015",
"0.6369824",
"0.6339738",
"0.6315629",
"0.63068414",
"0.62765884",
"0.6247149",
"0.6242042",
"0.6231125",
"0.6221995",
"0.6216773",
"0.62051445",
"0.61528903",
"0.6149357",
"0.61466306",
"0.6139973",
"0.6135593",
"0.61172235",
"0.61143893",
"0.6097527",
"0.6090445",
"0.6089546",
"0.6066981",
"0.6054269",
"0.60375994",
"0.6036112",
"0.60224354",
"0.6013853",
"0.60129756",
"0.6009639",
"0.6004531",
"0.5985768",
"0.59620357",
"0.5956047",
"0.59515786",
"0.5950584",
"0.59355795",
"0.59335166",
"0.5927451",
"0.592532",
"0.5922058",
"0.5917211",
"0.5912929",
"0.5910159",
"0.5904979",
"0.5902704",
"0.5898187",
"0.58963645",
"0.5888155",
"0.5878908",
"0.5868098",
"0.58676124",
"0.58628225",
"0.5852264",
"0.5851636",
"0.5844884",
"0.5844476",
"0.5843097",
"0.5841716",
"0.58255076",
"0.58162403",
"0.57967955",
"0.57962364",
"0.57852876",
"0.57779133",
"0.5777863",
"0.57628065",
"0.57608503",
"0.5756377",
"0.5755168",
"0.5744764",
"0.574138",
"0.5730593",
"0.5724604",
"0.57214314",
"0.57191503",
"0.5715486",
"0.57117224",
"0.5711113",
"0.56978583",
"0.569366",
"0.56902105",
"0.5687865",
"0.5687398",
"0.5677938",
"0.56755054",
"0.56753665",
"0.56733745",
"0.567201"
] | 0.65124404 | 6 |
Devuelve la cantidad de conexiones que han sido descartadas. | public int getConexionesDescartadas(){
return conexionesDescartadas;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setConexionesDescartadas(int conexionesDescartadas){\n this.conexionesDescartadas = conexionesDescartadas;\n }",
"private void decrConnectionCount() {\n connectionCount.dec();\n }",
"int getConnectionCount();",
"public static int getConnectionCount()\r\n {\r\n return count_; \r\n }",
"int getConnectionsCount();",
"public int getMaxConnections()\n {\n return _maxConnections;\n }",
"@Override\n public int getMaxConnections() throws ResourceException {\n return Integer.MAX_VALUE;\n }",
"private boolean hasTooManyConnections()\n\t{\n\t\treturn (config.getMaxConnections() > -1 && \n\t\t\t\tgetNumberOfConnections() >= config.getMaxConnections());\n\t}",
"public long getConnectionCount() {\n return connectionCount.getCount();\n }",
"public int connectionCount()\n {\n return _connectionCount;\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n int int0 = DBUtil.getOpenConnectionCount();\n assertEquals(0, int0);\n }",
"public int numConnections(){\n return connections.size();\n }",
"public int getTotalConnections()\n {\n // return _connections.size();\n return 0;\n }",
"Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }",
"public int getMaxOverflowConnections()\n {\n return _maxOverflowConnections;\n }",
"public int connectTimeout(){\n return 0; //TODO codavaj!!\n }",
"public int getMaxConnections() {\n return maxConnections;\n }",
"Integer getConnectorCount();",
"public void liberaConexoes(){\n if(portas > 0){ //Se o número de portas ativas for maior que zero\n portas--;\n }\n }",
"public Integer getCantidadDisponible() {\n return cantidadDisponible;\n }",
"@Override\r\n\t\tpublic int getNetworkTimeout() throws SQLException {\n\t\t\treturn 0;\r\n\t\t}",
"@Override\n public int getNumConnections()\n {\n return connections.size();\n }",
"@Override\n public int getNumOpenConnections() {\n return allChannels.size() - 1;\n }",
"int getTotalCreatedConnections();",
"public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}",
"public int getNumConnects() {\n\t\treturn numConnects;\n\t}",
"public int getConnectionTimeout();",
"public int getConnectionMaxTokens() {\n return zks.connThrottle().getMaxTokens();\n }",
"public int getNumOfConnections() {\r\n\t\treturn numOfConnections;\r\n\t}",
"private int size() {\n\t\treturn cerraduras.size();\n\t}",
"public static long getConnections() {\n return connections;\n }",
"public synchronized void decreaseUsersConn() {\r\n\t\tusersConn--;\r\n\t}",
"public int getForbiddenReconnectDownloadNum() {\r\n final boolean allowinterrupt = config.isReconnectAllowedToInterruptResumableDownloads();\r\n\r\n int ret = 0;\r\n synchronized (this.downloadControllers) {\r\n for (final SingleDownloadController con : downloadControllers) {\r\n DownloadLink link = con.getDownloadLink();\r\n if (link.getLinkStatus().hasStatus(LinkStatus.DOWNLOADINTERFACE_IN_PROGRESS)) {\r\n DownloadInterface dl = link.getDownloadInstance();\r\n if (!(dl != null && dl.isResumable() && allowinterrupt)) ret++;\r\n }\r\n }\r\n }\r\n return ret;\r\n }",
"public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}",
"public int getConnectionTimeout(Env env) {\n return client.getConnectTimeout();\n }",
"@Override\n\tpublic long getConnectTimeout() {\n\t\treturn 0;\n\t}",
"private int getConnectionLimit(String businessId) {\n\t\tString schema = getCustomSchema();\n\t\tString sql = StringUtil.join(\"select quota_no as value from \", schema, \"rezdox_connection_quota_view where business_id=?\");\n\n\t\tDBProcessor db = new DBProcessor(getDBConnection(), schema);\n\t\tdb.setGenerateExecutedSQL(log.isDebugEnabled());\n\t\tList<GenericVO> data = db.executeSelect(sql, Arrays.asList(businessId), new GenericVO());\n\t\treturn !data.isEmpty() ? Convert.formatInteger(\"\"+data.get(0).getValue()) : 0;\n\t}",
"private void connectionLost() {\n Log.d(TAG, \"BluetoothManager :: connectionLost()\");\n setState(STATE_LISTEN); //추가됨\n\n // Send a failure message back to the Activity\n // WARNING: This makes too many toast.\n //이것도 어차피 연결잃었다고하는거 알려주는거라 안해도 상관 없다.\n /*\n Message msg = mHandler.obtainMessage(MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(SERVICE_HANDLER_MSG_KEY_TOAST, \"연결되있던장치와 연결을 잃었어요\");\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n */\n // Reserve re-connect timer\n reserveRetryConnect(); //수정됨\n }",
"public int getConnectionCount() {\n int i;\n synchronized (this.bindings) {\n i = 0;\n for (IntentBindRecord intentBindRecord : this.bindings) {\n i += intentBindRecord.connections.size();\n }\n }\n return i;\n }",
"public int getConnectionTimeOut() {\n return connectionTimeOut;\n }",
"public int getConnectionTimeOutMs()\n {\n return arguments.connectionTimeOutMs;\n }",
"public int getResultSetHoldability() throws SQLException {\n return 0;\r\n }",
"public org.apache.axis.types.UnsignedInt getMaxconn() {\n return maxconn;\n }",
"public int getConnTimeout()\n {\n return _connTimeout;\n }",
"public int getConnectTimeouts() {\n return connectTimeouts.get();\n }",
"public int getMaxConns() {\n return maxConns;\n }",
"int getNetTransferMsgsCount();",
"public int getTimeout() {\r\n\t\treturn connTimeout;\r\n\t}",
"@Test(timeout = 4000)\n public void test62() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n connectionFactories0.getXAConnectionFactory();\n int int0 = connectionFactories0.getXATopicConnectionFactoryCount();\n assertEquals(0, int0);\n }",
"public int getCantidadColores() {\n\t\treturn cantColores;\n\t}",
"@Override\n public void connectionLost(Throwable thrwbl) {\n System.out.println(\"服务器的连接丢失\");\n }",
"protected void desconectar() throws Exception {\n if (this.hayConexion()) {\n this.conexion.close();\n this.conexion = null;\n System.err.println(url + \",\" + usuario + \",\" + clave + \":OFF!!!\");\n }\n }",
"public int getSize() {\n\t\treturn currConnections;\n\t}",
"int getPeersCount();",
"public static long getNumberOfOpenConnections() {\n return openConnections.size();\n }",
"private void connectionLost() {\n// mConnectionLostCount++;\n// if (mConnectionLostCount < 3) {\n// \t// Send a reconnect message back to the Activity\n//\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n//\t Bundle bundle = new Bundle();\n//\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost. Reconnecting...\");\n//\t msg.setData(bundle);\n//\t mHandler.sendMessage(msg);\n//\t \n// \tconnect(mSavedDevice); \t\n// } else {\n \tsetState(STATE_LISTEN);\n\t // Send a failure message back to the Activity\n\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n\t Bundle bundle = new Bundle();\n\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost\");\n\t msg.setData(bundle);\n\t mHandler.sendMessage(msg);\n// }\n }",
"public Integer cantidadCompras(){\n\t\t// Implementar\n\t\treturn this.compras.size();\n\t}",
"public String getDatabaseConnectionPoolMaxNumberConnections(){\n \t\treturn getProperty(\"org.sagebionetworks.pool.max.number.connections\");\n \t}",
"public int getAllCount(){\r\n\t\tString sql=\"select count(*) from board_notice\";\r\n\t\tint result=0;\r\n\t\tConnection conn=null;\r\n\t\tStatement stmt=null;\r\n\t\tResultSet rs=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tstmt=conn.createStatement();\r\n\t\t\trs=stmt.executeQuery(sql);\r\n\t\t\trs.next();\r\n\t\t\tresult=rs.getInt(1);\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, stmt, rs);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private long calculateConnectionFailedTimeout()\r\n { \r\n // Once we are over BAD_CANDIDATE_CONNECTION_TRIES we dont call this \r\n // method anymore and use BAD_CANDIDATE_STATUS_TIMEOUT instead.\r\n \r\n // When CONNECTION_FAILED_STEP_TIME time is 2 it gives a sequence of\r\n // tries: 1, 2, 3,| 4, 5, 6, 7, 8, 9, 10\r\n // to: 2, 4, 8,| 16, 32, 64, 128, 128, 128, 128\r\n // to2: 2, 6, 12,| 22, 40, 74, 140, 142, 144, 146 \r\n // \r\n // to1 - would cause the values to double on each repetition.\r\n // CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2, \r\n // Math.min( failedConnectionTries - 1, 7 ) );\r\n // to2 - would add a raising penalty to to1 on each repetition\r\n // CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2,\r\n // Math.min( failedConnectionTries - 1, 7 ) ) \r\n // + (failedConnectionTries - 1) * 2;\r\n //\r\n // We use to2 currently:\r\n return CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2,\r\n Math.min( failedConnectionTries - 1, 7 ) ) \r\n + (failedConnectionTries - 1) * 2;\r\n }",
"public void desconectar() {\n try {\r\n con.close();\r\n } catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}",
"@Override\n public void onConnectionFailed(ConnectionResult conRes) {}",
"@Override\r\n\tpublic int getConnectionsCount() {\r\n\t\treturn currentConnections.get();\r\n\t}",
"public static Integer numValidClients() {\n return getLoggedInUserConnections().size() + anonClients.size();\n }",
"protected int getMaxRetries()\n {\n return heartbeat.getMaxRetries();\n }",
"public ConnectionCount(int counter) {\nthis.counter = counter;\n}",
"int getNetworkInterfacesCount();",
"protected short maxRetries() { return 15; }",
"int getInvalidLoginCount();",
"public int cantidadDispositivos() {\n return dispositivos.size();\n }",
"public int getConnectionTimeout()\r\n\t{\r\n\t\treturn connectionTimeout;\r\n\t}",
"public int numOutgoing() {\r\n int result = outgoing.size();\r\n return result;\r\n }",
"public static void resetConnectionCounts() {\n CREATED_TCP_CONNECTIONS.set(0);\n CREATED_UDP_CONNECTIONS.set(0);\n }",
"private void handleClosedConnection() {\n final int currentConnections = concurrentConnections.decrementAndGet();\n\n log.debug(\"[Vertx-EventMetricsStream] - Current Connections - {} / Max Connections {}\", currentConnections, maxConcurrentConnections.get());\n }",
"protected int maxPktsOut() { return Integer.MAX_VALUE; }",
"public static long getBlockedConnections() {\n return blocks;\n }",
"int closeConnection() {\n\t\tint status = -1; //the return value. -1 if connection failed, 0 if succeeded\r\n\t\ttry {\r\n\t\t\tconn.close();\r\n\t\t\tstatus = 0;\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tSystem.out.println(\"Error: Could not close the connection to the tool rental database.\");\r\n\t\t}\r\n\t\treturn status;\r\n\t}",
"public int getCount(){\r\n\t\tif(_serverinfo != null){\r\n\t\t\treturn _serverinfo.length / 6;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"@Override\n public void connectionLost() {\n }",
"private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}",
"@Override\n public int getResultSetHoldability() throws SQLException {\n return 0;\n }",
"@Test(timeout = 4000)\n public void test43() throws Throwable {\n ConnectionFactories connectionFactories0 = new ConnectionFactories();\n int int0 = connectionFactories0.getTopicConnectionFactoryCount();\n assertEquals(0, int0);\n }",
"public int getHoldability() throws SQLException {\n\n try {\n debugCodeCall(\"getHoldability\");\n checkClosed();\n return conn.getHoldability();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public int getAvailableCount();",
"public void cerrarConexionBD(){\r\n fachada.closeConection(fachada.getConnetion());\r\n }",
"public int getMaxIdleConns() {\n return maxIdleConns;\n }",
"public void onNetDisConnect() {\n\n\t}",
"@Override\n public synchronized void close() {\n mOpenConnections--;\n if (mOpenConnections == 0) {\n super.close();\n }\n }",
"@Override\n public synchronized void close() {\n mOpenConnections--;\n if (mOpenConnections == 0) {\n super.close();\n }\n }",
"public String dlMaxFailures();",
"public int getConnectionStatus()\r\n { return connectionStatus; }",
"public void desconect() {\n\t\tconn = null;\n\t\tif (conn == null) {\n\t\t\tSystem.out.println(\"La base de datos se ha desconectado\");\n\t\t} \n }",
"public int getCapteurCount() {\n String countQuery = \"SELECT * FROM \" + TABLE_LOGIN;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n int rowCount = cursor.getCount();\n cursor.close();\n //db.close();\n return rowCount;\n }",
"@Override\n public void connectionLost(Throwable arg0) {\n\n }",
"public int get_max_accept() throws Exception;",
"public int getUseCount() {\n\t\tint useCount=0;\n\t\tsynchronized(connStatus) {\n\t\t\tfor(int i=0; i < currConnections; i++) {\n\t\t\t\tif(connStatus[i] > 0) { // In use\n\t\t\t\t\tuseCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn useCount;\n\t}",
"public int Sizeofnetwork() {\n\t\treturn Nodeswithconnect.size();\n\t}",
"public void connectionLost(){\n\t\ttry {\n\t\t\tconnect(\"andrewTest\", false, (short) 100);\n\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\t\t\t\n\t\t\t}\n\t\t\tconnectionLost();\n\t\t\t\n\t\t}\n\t}",
"private void incrConnectionCount() {\n connectionCount.inc();\n }"
] | [
"0.69515026",
"0.62869",
"0.6236587",
"0.61678964",
"0.6078476",
"0.5989034",
"0.5978058",
"0.59640074",
"0.59106916",
"0.5904428",
"0.58852756",
"0.587546",
"0.5853921",
"0.5850474",
"0.5827353",
"0.5825351",
"0.5770275",
"0.57316977",
"0.57241046",
"0.5577135",
"0.55436254",
"0.55416405",
"0.5496335",
"0.54810816",
"0.54580843",
"0.54564816",
"0.54447556",
"0.54245377",
"0.5418492",
"0.5410522",
"0.54100883",
"0.5402529",
"0.5391272",
"0.5384794",
"0.53839356",
"0.5379437",
"0.53731847",
"0.53691727",
"0.5362202",
"0.5362043",
"0.5359914",
"0.5359346",
"0.5351821",
"0.5335755",
"0.5324103",
"0.53241",
"0.531153",
"0.5273066",
"0.5270624",
"0.52682155",
"0.5265887",
"0.5255994",
"0.52501136",
"0.52456063",
"0.52446526",
"0.5238574",
"0.5234924",
"0.5231677",
"0.5225553",
"0.5224583",
"0.5224264",
"0.52198666",
"0.5204701",
"0.5203192",
"0.5183081",
"0.5165447",
"0.5160049",
"0.51576734",
"0.5154112",
"0.5154021",
"0.515113",
"0.5146703",
"0.5139347",
"0.51363325",
"0.5134124",
"0.51330775",
"0.5131342",
"0.5115755",
"0.51092464",
"0.510491",
"0.51047003",
"0.510433",
"0.5101278",
"0.5089005",
"0.50767434",
"0.5074305",
"0.5072485",
"0.50675255",
"0.50658697",
"0.50658697",
"0.50639385",
"0.5062864",
"0.5062419",
"0.5058423",
"0.5048236",
"0.5048055",
"0.50469816",
"0.50443554",
"0.5043797",
"0.5043458"
] | 0.7002556 | 0 |
Asigna la cantidad de conexiones que han sido descartadas. | public void setConexionesDescartadas(int conexionesDescartadas){
this.conexionesDescartadas = conexionesDescartadas;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getConexionesDescartadas(){\n return conexionesDescartadas;\n }",
"private void decrConnectionCount() {\n connectionCount.dec();\n }",
"public int connectTimeout(){\n return 0; //TODO codavaj!!\n }",
"public void liberaConexoes(){\n if(portas > 0){ //Se o número de portas ativas for maior que zero\n portas--;\n }\n }",
"private void connectionLost() {\n Log.d(TAG, \"BluetoothManager :: connectionLost()\");\n setState(STATE_LISTEN); //추가됨\n\n // Send a failure message back to the Activity\n // WARNING: This makes too many toast.\n //이것도 어차피 연결잃었다고하는거 알려주는거라 안해도 상관 없다.\n /*\n Message msg = mHandler.obtainMessage(MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(SERVICE_HANDLER_MSG_KEY_TOAST, \"연결되있던장치와 연결을 잃었어요\");\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n */\n // Reserve re-connect timer\n reserveRetryConnect(); //수정됨\n }",
"private boolean hasTooManyConnections()\n\t{\n\t\treturn (config.getMaxConnections() > -1 && \n\t\t\t\tgetNumberOfConnections() >= config.getMaxConnections());\n\t}",
"public synchronized void decreaseUsersConn() {\r\n\t\tusersConn--;\r\n\t}",
"void onConnectToNetByIPReject();",
"private void connectionLost() {\n// mConnectionLostCount++;\n// if (mConnectionLostCount < 3) {\n// \t// Send a reconnect message back to the Activity\n//\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n//\t Bundle bundle = new Bundle();\n//\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost. Reconnecting...\");\n//\t msg.setData(bundle);\n//\t mHandler.sendMessage(msg);\n//\t \n// \tconnect(mSavedDevice); \t\n// } else {\n \tsetState(STATE_LISTEN);\n\t // Send a failure message back to the Activity\n\t Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n\t Bundle bundle = new Bundle();\n\t bundle.putString(RemoteBluetooth.TOAST, \"Device connection was lost\");\n\t msg.setData(bundle);\n\t mHandler.sendMessage(msg);\n// }\n }",
"@Test(timeout = 4000)\n public void test049() throws Throwable {\n int int0 = DBUtil.getOpenConnectionCount();\n assertEquals(0, int0);\n }",
"@Override\n public int getMaxConnections() throws ResourceException {\n return Integer.MAX_VALUE;\n }",
"public LWTRTPdu disConnectReq() throws IncorrectTransitionException;",
"@Override\r\n\t\tpublic int getNetworkTimeout() throws SQLException {\n\t\t\treturn 0;\r\n\t\t}",
"protected void desconectar() throws Exception {\n if (this.hayConexion()) {\n this.conexion.close();\n this.conexion = null;\n System.err.println(url + \",\" + usuario + \",\" + clave + \":OFF!!!\");\n }\n }",
"@Override\n public void connectionLost(Throwable thrwbl) {\n System.out.println(\"服务器的连接丢失\");\n }",
"public void connectionLost(){\n\t\ttry {\n\t\t\tconnect(\"andrewTest\", false, (short) 100);\n\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e1) {\t\t\t\n\t\t\t}\n\t\t\tconnectionLost();\n\t\t\t\n\t\t}\n\t}",
"public void decRetryCount() {\n\t\tint cont = getRetryCount(); \n\t\tif (cont > 0) cont--;\n\t\tsetRetryCount(cont);\n\t}",
"public int getConnectionTimeout();",
"int getConnectionCount();",
"Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }",
"public void onNetDisConnect() {\n\n\t}",
"void onConnectToNetByIPFailure();",
"public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}",
"public void desconectar() {\n try {\r\n con.close();\r\n } catch(Exception e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"void connectionLost() {\n LinearLayout internetStatusContainer = findViewById(R.id.internet_status_container);\n internetStatusContainer.setVisibility(View.VISIBLE);\n }",
"public static int getConnectionCount()\r\n {\r\n return count_; \r\n }",
"@Override\n\tpublic long getConnectTimeout() {\n\t\treturn 0;\n\t}",
"void onDisconnectFailure();",
"public void cerrarConexionBD(){\r\n fachada.closeConection(fachada.getConnetion());\r\n }",
"@Override\n public void onConnectionFailed(ConnectionResult conRes) {}",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n return;\n }",
"public Integer getCantidadDisponible() {\n return cantidadDisponible;\n }",
"private long calculateConnectionFailedTimeout()\r\n { \r\n // Once we are over BAD_CANDIDATE_CONNECTION_TRIES we dont call this \r\n // method anymore and use BAD_CANDIDATE_STATUS_TIMEOUT instead.\r\n \r\n // When CONNECTION_FAILED_STEP_TIME time is 2 it gives a sequence of\r\n // tries: 1, 2, 3,| 4, 5, 6, 7, 8, 9, 10\r\n // to: 2, 4, 8,| 16, 32, 64, 128, 128, 128, 128\r\n // to2: 2, 6, 12,| 22, 40, 74, 140, 142, 144, 146 \r\n // \r\n // to1 - would cause the values to double on each repetition.\r\n // CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2, \r\n // Math.min( failedConnectionTries - 1, 7 ) );\r\n // to2 - would add a raising penalty to to1 on each repetition\r\n // CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2,\r\n // Math.min( failedConnectionTries - 1, 7 ) ) \r\n // + (failedConnectionTries - 1) * 2;\r\n //\r\n // We use to2 currently:\r\n return CONNECTION_FAILED_STEP_TIME * (long)Math.pow( 2,\r\n Math.min( failedConnectionTries - 1, 7 ) ) \r\n + (failedConnectionTries - 1) * 2;\r\n }",
"public int getMaxConnections()\n {\n return _maxConnections;\n }",
"public int getForbiddenReconnectDownloadNum() {\r\n final boolean allowinterrupt = config.isReconnectAllowedToInterruptResumableDownloads();\r\n\r\n int ret = 0;\r\n synchronized (this.downloadControllers) {\r\n for (final SingleDownloadController con : downloadControllers) {\r\n DownloadLink link = con.getDownloadLink();\r\n if (link.getLinkStatus().hasStatus(LinkStatus.DOWNLOADINTERFACE_IN_PROGRESS)) {\r\n DownloadInterface dl = link.getDownloadInstance();\r\n if (!(dl != null && dl.isResumable() && allowinterrupt)) ret++;\r\n }\r\n }\r\n }\r\n return ret;\r\n }",
"public int getMaxOverflowConnections()\n {\n return _maxOverflowConnections;\n }",
"private void handleClosedConnection() {\n final int currentConnections = concurrentConnections.decrementAndGet();\n\n log.debug(\"[Vertx-EventMetricsStream] - Current Connections - {} / Max Connections {}\", currentConnections, maxConcurrentConnections.get());\n }",
"public void desconectar() {\n conn = null;//declaramos la variable conn en null para finalizar la conexion\n if (conn == null) {//para saber si se termino la conexion\n //JOptionPane.showMessageDialog(null,\"Conexion terminada..\");//genera un cuadro de dialogo con el mensaje establecido\n //System.out.println(\"Conexion terminada..\");//genera un mensaje por consola \n }\n }",
"public void desconect() {\n\t\tconn = null;\n\t\tif (conn == null) {\n\t\t\tSystem.out.println(\"La base de datos se ha desconectado\");\n\t\t} \n }",
"public static void resetConnectionCounts() {\n CREATED_TCP_CONNECTIONS.set(0);\n CREATED_UDP_CONNECTIONS.set(0);\n }",
"int closeConnection() {\n\t\tint status = -1; //the return value. -1 if connection failed, 0 if succeeded\r\n\t\ttry {\r\n\t\t\tconn.close();\r\n\t\t\tstatus = 0;\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tSystem.out.println(\"Error: Could not close the connection to the tool rental database.\");\r\n\t\t}\r\n\t\treturn status;\r\n\t}",
"protected short maxRetries() { return 15; }",
"@Override\n public void connectionLost(Throwable arg0) {\n\n }",
"int getConnectionsCount();",
"public int getResultSetHoldability() throws SQLException {\n return 0;\r\n }",
"public void connectCallAppAbilityFail() {\n if (needTryAgain()) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: retry.\", new Object[0]);\n if (this.mHandler == null) {\n this.mHandler = createHandler();\n }\n if (this.mHandler != null) {\n try {\n this.mHandler.sendEvent(InnerEvent.get(1000, 0, null), DELAYED_TIME_RETRY_CONNECT_INCALL_ABILITY, EventHandler.Priority.IMMEDIATE);\n } catch (IllegalArgumentException unused) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: got IllegalArgumentException.\", new Object[0]);\n }\n }\n } else {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: reached max retry counts.\", new Object[0]);\n disconnectLiveCalls();\n this.mRetryConnectCallAppAbilityCount = 0;\n releaseResource();\n }\n }",
"@Override\n public void connectionLost() {\n }",
"protected void connectionClosed() {}",
"public int connectionCount()\n {\n return _connectionCount;\n }",
"public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }",
"@Override\n public void connectionLost(Throwable cause) {\n }",
"@Override\n\tprotected void onNetworkDisConnected() {\n\n\t}",
"@Override\n public void connectionLost(Throwable cause) {\n\n }",
"@Override\r\n\tpublic void connectionLost(Throwable t) {\n\t}",
"public void disconnect() {\r\n\ttry {\r\n\r\n\t if (isConnected() && conn != null) {\r\n\t\tconn.close();\r\n\r\n\t\tif (countTables() <= 0 && conn.isClosed()) {\r\n\t\t setConnected(false);\r\n\t\t}\r\n\t }\r\n\t} catch (Exception e) {\r\n\t // nothing todo here\r\n\t}\r\n }",
"public int getConnectionTimeOut() {\n return connectionTimeOut;\n }",
"public int getConnectionTimeout(Env env) {\n return client.getConnectTimeout();\n }",
"@Override\n public synchronized void close() {\n mOpenConnections--;\n if (mOpenConnections == 0) {\n super.close();\n }\n }",
"@Override\n public synchronized void close() {\n mOpenConnections--;\n if (mOpenConnections == 0) {\n super.close();\n }\n }",
"public int getConnTimeout()\n {\n return _connTimeout;\n }",
"public void desconectaL() {\n try {\n con.close();\n \n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha ao se desconectar\\n\" + ex);\n }\n }",
"private void connectionFailed() {\n if (debugging)\n Log.d(TAG, \"connection Failed\");\n setState(EBluetoothStates.DISCONNECTED);\n if (mConnectionManager != null) {\n mConnectionManager.closeSocket();\n }\n }",
"public void DesconectarBD(){\r\n\t\ttry{\r\n\t\t\tconexion.close();\r\n\t\t}\r\n\t\tcatch(SQLException ex){\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Error desconectando la base de datos: \" + ex); \r\n\t\t} \r\n\t}",
"public int sendTimeout(){\n return 0; //TODO codavaj!!\n }",
"public void testConnecitonFails() {\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tConnection c = new Connection(\"localhost\", 4444, this, this);\n\t\t\t// this connection should fail... wait for that:\n\t\t\tfor (int i=0; i<10; i++) {\n\t\t\t\t// if we have a result before our max-wait-time, break\n\t\t\t\tif (connectionStatus != null)\n\t\t\t\t\tbreak;\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\tassertTrue(connectionStatus != null && connectionStatus.booleanValue() == false);\n\t\t} catch (Exception e) {\n\t\t\tassertTrue(\"should not get an exception\", false);\n\t\t}\n\t}",
"@Override\r\n public void connectFailed() {\n super.connectFailed();\r\n Commons.showToast(act, \"连接失败\");\r\n act.dismissLoadDialog();\r\n }",
"protected void processDisconnection(){}",
"public int getBatchDownloadFailureCountdown()\n {\n return 0; \n }",
"public long getConnectionCount() {\n return connectionCount.getCount();\n }",
"public int getConnectionTimeOutMs()\n {\n return arguments.connectionTimeOutMs;\n }",
"public int getTimeout() {\r\n\t\treturn connTimeout;\r\n\t}",
"public int getTotalConnections()\n {\n // return _connections.size();\n return 0;\n }",
"@Override\r\n\tpublic void connectionLost(Throwable cause) {\n\t\t\r\n\t}",
"@Override\n public int getResultSetHoldability() throws SQLException {\n return 0;\n }",
"@Override\n\t\tpublic void afectarPorNebulosaDeAndromeda(int cantidadturnos) {\n\t\t}",
"@Override\n\t\tpublic void afectarPorNebulosaDeAndromeda(int cantidadturnos) {\n\t\t}",
"@Override\n\t\tpublic void afectarPorNebulosaDeAndromeda(int cantidadturnos) {\n\t\t}",
"private void connectionLost() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Device connection was lost\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n handler.postDelayed(new Runnable() { //sends this stop back to the main thread to exit the reader thread\n @Override\n public void run() {\n stop();\n }\n }, 250);\n }",
"public int getMaxConnections() {\n return maxConnections;\n }",
"public void cerrarConexion()\n {\n bdHelper.close();\n }",
"void connectFailed();",
"@Override\n\tpublic void connectionLost(Throwable cause) {\n\t\t\n\t}",
"@Override\n \tpublic void reconnectionFailed(Exception arg0) {\n \t}",
"public void descontarUnidad() {\r\n\t\tcantidad--;\r\n\t}",
"@Override\n public void connectionLost(Throwable cause) {\n Log.d(TAG, \"Connection lost\");\n }",
"int getInvalidLoginCount();",
"@Scheduled(fixedDelay = 10000)\n\tpublic void verificaConexao() {\n\t\tverificaConexao(internet);\n\t\tverificaConexao(vpn);\n\t}",
"@Override\n public void connectionLost(Throwable t) {\n System.out.println(\"Connection lost!\");\n }",
"private void disConnect() {\n Auth.GoogleSignInApi.revokeAccess(mGoogleApiClient).setResultCallback(\n new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n m_tvStatus.setText(R.string.status_notconnected);\n m_tvEmail.setText(\"\");\n m_tvDispName.setText(\"\");\n }\n });\n }",
"public void disconnect() throws SQLException, NullPointerException\n\t{\n\t\tfor (int i = 0; i < uPass.length; i++)\n\t\t{\n\t\t\tuPass[i] = 0; // snooping prevention\n\t\t}\n\t\tcon.close();\n\t}",
"public void desconectar() {\r\n conn = null;\r\n if (conn == null) {\r\n System.out.println(\"Conexion Terminada\");\r\n }\r\n }",
"@Override\n public void Disconnect() {\n bReConnect = true;\n }",
"private void connectionLost() {\n setState(EBluetoothStates.CONNECTING);\n // Send a failure message back to the Activity\n // updateActivity(General.MessageType.ERROR, General.OnDeviceConnectionLost);\n }",
"public void disconnectTelnet() throws Exception{\n\t log.info(\"trying to disconnect to device \"+deviceIP+\" ... \\n\");\n\t try {\n\t\ttelnetClient.disconnect();\n\t\tlog.info(\"Successfully disconnected from \"+deviceIP+\" via telnet\");\n\t\tif(telnetClient.isConnected())\n\t\tlog.info(\"Still connected\\n\");\n\t\tif(FETCHING_DATA_VIA_DATABASE){\n\t\t\tdbConnect.closeConnection();\n\t\t\tlog.info(\"Successfully closed the database. \");\n\t\t}\n\t} catch (IOException e) {\n\t\tlog.error(\"Unable to disconnect to \"+deviceIP+\" via telnet\");\n\t\tthrow new Exception(\"Unable to disconnect!\");\n\t}\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult result) {\n }",
"public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;",
"@Override\n public void connectionLost(Throwable arg0) {\n DurumLBL.setText(\"Bağlantı koptu\");\n }",
"public LWTRTPdu disConnect() throws IncorrectTransitionException;",
"private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}",
"public int getHoldability() throws SQLException {\n\n try {\n debugCodeCall(\"getHoldability\");\n checkClosed();\n return conn.getHoldability();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }"
] | [
"0.6440303",
"0.64236313",
"0.58287466",
"0.5771286",
"0.570006",
"0.5654561",
"0.5604696",
"0.5549755",
"0.55345213",
"0.5532263",
"0.55295825",
"0.5523452",
"0.55187386",
"0.550414",
"0.5504092",
"0.54881847",
"0.5486521",
"0.54462254",
"0.5435094",
"0.54264474",
"0.5419987",
"0.5405798",
"0.5404281",
"0.5386729",
"0.53755975",
"0.53625053",
"0.5361518",
"0.5355881",
"0.5352068",
"0.5330008",
"0.5318358",
"0.5303392",
"0.5295876",
"0.52955484",
"0.52905947",
"0.5290342",
"0.52810705",
"0.5271082",
"0.5268833",
"0.5260772",
"0.5256924",
"0.52474004",
"0.5241248",
"0.5232502",
"0.52274984",
"0.52133656",
"0.5209307",
"0.5207771",
"0.5205404",
"0.5204209",
"0.51968056",
"0.51830846",
"0.5155997",
"0.5152864",
"0.51452035",
"0.5144522",
"0.5133238",
"0.5133081",
"0.5133081",
"0.51236767",
"0.51192737",
"0.5118226",
"0.51175165",
"0.5109004",
"0.5093593",
"0.5093238",
"0.5091045",
"0.508513",
"0.50849396",
"0.5082182",
"0.50821245",
"0.50711936",
"0.5070352",
"0.5062009",
"0.50615287",
"0.50615287",
"0.50615287",
"0.50604486",
"0.5055449",
"0.5043101",
"0.504231",
"0.50307596",
"0.50263697",
"0.5023568",
"0.50171274",
"0.50066626",
"0.5005144",
"0.5002311",
"0.50021434",
"0.49986583",
"0.49969724",
"0.49964935",
"0.49897358",
"0.4989302",
"0.49889815",
"0.4988443",
"0.49864352",
"0.4984083",
"0.49803206",
"0.49760205"
] | 0.68264467 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.